* pt.c (lookup_template_class_1): Splice out abi_tag attribute if
[official-gcc.git] / gcc / configure
blobfc78f427c2684f4e5f8339ad2004ab86e420afc6
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 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
761 LN_S
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 enable_fixed_point
774 enable_decimal_float
775 with_float
776 with_cpu
777 enable_multiarch
778 enable_multilib
779 coverage_flags
780 valgrind_command
781 valgrind_path_defines
782 valgrind_path
783 TREECHECKING
784 TREEBROWSER
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 EGREP
794 GREP
796 PICFLAG_FOR_TARGET
797 GNATMAKE
798 GNATBIND
799 ac_ct_CXX
800 CXXFLAGS
802 OBJEXT
803 EXEEXT
804 ac_ct_CC
805 CPPFLAGS
806 LDFLAGS
807 CFLAGS
809 GENINSRC
810 target_subdir
811 host_subdir
812 build_subdir
813 build_libsubdir
814 target_noncanonical
815 target_os
816 target_vendor
817 target_cpu
818 target
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 target_alias
828 host_alias
829 build_alias
830 LIBS
831 ECHO_T
832 ECHO_N
833 ECHO_C
834 DEFS
835 mandir
836 localedir
837 libdir
838 psdir
839 pdfdir
840 dvidir
841 htmldir
842 infodir
843 docdir
844 oldincludedir
845 includedir
846 localstatedir
847 sharedstatedir
848 sysconfdir
849 datadir
850 datarootdir
851 libexecdir
852 sbindir
853 bindir
854 program_transform_name
855 prefix
856 exec_prefix
857 PACKAGE_URL
858 PACKAGE_BUGREPORT
859 PACKAGE_STRING
860 PACKAGE_VERSION
861 PACKAGE_TARNAME
862 PACKAGE_NAME
863 PATH_SEPARATOR
864 SHELL'
865 ac_subst_files='option_includes
866 language_hooks'
867 ac_user_opts='
868 enable_option_checking
869 with_build_libsubdir
870 with_local_prefix
871 with_gxx_include_dir
872 with_cpp_install_dir
873 enable_generated_files_in_srcdir
874 with_gnu_ld
875 with_ld
876 with_demangler_in_ld
877 with_gnu_as
878 with_as
879 enable_largefile
880 enable_build_format_warnings
881 enable_werror_always
882 enable_checking
883 enable_coverage
884 enable_gather_detailed_mem_stats
885 enable_valgrind_annotations
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_dwarf2
896 enable_shared
897 with_native_system_header_dir
898 with_build_sysroot
899 with_sysroot
900 with_specs
901 with_pkgversion
902 with_bugurl
903 enable_languages
904 with_multilib_list
905 enable_rpath
906 with_libiconv_prefix
907 enable_sjlj_exceptions
908 enable_secureplt
909 enable_leading_mingw64_underscores
910 enable_cld
911 enable_frame_pointer
912 enable_win32_registry
913 enable_static
914 with_pic
915 enable_fast_install
916 enable_libtool_lock
917 enable_ld
918 enable_gold
919 with_plugin_ld
920 enable_gnu_indirect_function
921 enable_initfini_array
922 enable_comdat
923 with_glibc_version
924 enable_gnu_unique_object
925 enable_linker_build_id
926 with_long_double_128
927 with_gc
928 with_system_zlib
929 enable_maintainer_mode
930 enable_link_mutex
931 enable_version_specific_runtime_libs
932 enable_plugin
933 enable_host_shared
934 enable_libquadmath_support
935 with_linker_hash_style
937 ac_precious_vars='build_alias
938 host_alias
939 target_alias
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
946 CXXFLAGS
949 CXXCPP
950 GMPLIBS
951 GMPINC
952 ISLLIBS
953 ISLINC
954 CLOOGLIBS
955 CLOOGINC'
958 # Initialize some variables set by options.
959 ac_init_help=
960 ac_init_version=false
961 ac_unrecognized_opts=
962 ac_unrecognized_sep=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
965 cache_file=/dev/null
966 exec_prefix=NONE
967 no_create=
968 no_recursion=
969 prefix=NONE
970 program_prefix=NONE
971 program_suffix=NONE
972 program_transform_name=s,x,x,
973 silent=
974 site=
975 srcdir=
976 verbose=
977 x_includes=NONE
978 x_libraries=NONE
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE}'
997 infodir='${datarootdir}/info'
998 htmldir='${docdir}'
999 dvidir='${docdir}'
1000 pdfdir='${docdir}'
1001 psdir='${docdir}'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1006 ac_prev=
1007 ac_dashdash=
1008 for ac_option
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1013 ac_prev=
1014 continue
1017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1026 ac_dashdash=yes ;;
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1049 ac_prev=datadir ;;
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 as_fn_error "invalid feature name: $ac_useropt"
1065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1069 "enable_$ac_useropt"
1070 "*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
1073 esac
1074 eval enable_$ac_useropt=no ;;
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
1086 -enable-* | --enable-*)
1087 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error "invalid feature name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=\$ac_optarg ;;
1306 -without-* | --without-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1315 "with_$ac_useropt"
1316 "*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=no ;;
1322 --x)
1323 # Obsolete; use --with-x.
1324 with_x=yes ;;
1326 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1327 | --x-incl | --x-inc | --x-in | --x-i)
1328 ac_prev=x_includes ;;
1329 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1330 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1331 x_includes=$ac_optarg ;;
1333 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1334 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1335 ac_prev=x_libraries ;;
1336 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1337 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1338 x_libraries=$ac_optarg ;;
1340 -*) as_fn_error "unrecognized option: \`$ac_option'
1341 Try \`$0 --help' for more information."
1344 *=*)
1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1346 # Reject names that are not valid shell variable names.
1347 case $ac_envvar in #(
1348 '' | [0-9]* | *[!_$as_cr_alnum]* )
1349 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1350 esac
1351 eval $ac_envvar=\$ac_optarg
1352 export $ac_envvar ;;
1355 # FIXME: should be removed in autoconf 3.0.
1356 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1357 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1358 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1359 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 esac
1363 done
1365 if test -n "$ac_prev"; then
1366 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1367 as_fn_error "missing argument to $ac_option"
1370 if test -n "$ac_unrecognized_opts"; then
1371 case $enable_option_checking in
1372 no) ;;
1373 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1374 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1375 esac
1378 # Check all directory arguments for consistency.
1379 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1384 eval ac_val=\$$ac_var
1385 # Remove trailing slashes.
1386 case $ac_val in
1387 */ )
1388 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1389 eval $ac_var=\$ac_val;;
1390 esac
1391 # Be sure to have absolute directory names.
1392 case $ac_val in
1393 [\\/$]* | ?:[\\/]* ) continue;;
1394 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 esac
1396 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1397 done
1399 # There might be people who depend on the old broken behavior: `$host'
1400 # used to hold the argument of --host etc.
1401 # FIXME: To remove some day.
1402 build=$build_alias
1403 host=$host_alias
1404 target=$target_alias
1406 # FIXME: To remove some day.
1407 if test "x$host_alias" != x; then
1408 if test "x$build_alias" = x; then
1409 cross_compiling=maybe
1410 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1411 If a cross compiler is detected then cross compile mode will be used." >&2
1412 elif test "x$build_alias" != "x$host_alias"; then
1413 cross_compiling=yes
1417 ac_tool_prefix=
1418 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420 test "$silent" = yes && exec 6>/dev/null
1423 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424 ac_ls_di=`ls -di .` &&
1425 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error "working directory cannot be determined"
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error "pwd does not report name of working directory"
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 $as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1449 /^X\(\/\/\)$/{
1450 s//\1/
1453 /^X\(\/\).*/{
1454 s//\1/
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1462 else
1463 ac_srcdir_defaulted=no
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470 ac_abs_confdir=`(
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1472 pwd)`
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1480 case $srcdir in
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 esac
1483 for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 done
1491 # Report the --help message.
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
1497 \`configure' configures this package to adapt to many kinds of systems.
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1504 Defaults for the options are specified in brackets.
1506 Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1528 For better control, use the options below.
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550 _ACEOF
1552 cat <<\_ACEOF
1554 Program names:
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 --target=TARGET configure for building compilers for TARGET [HOST]
1563 _ACEOF
1566 if test -n "$ac_init_help"; then
1568 cat <<\_ACEOF
1570 Optional Features:
1571 --disable-option-checking ignore unrecognized --enable/--with options
1572 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1573 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1574 --enable-generated-files-in-srcdir
1575 put copies of generated files in source dir intended
1576 for creating source tarballs for users without
1577 texinfo bison or flex
1578 --disable-largefile omit support for large files
1579 --disable-build-format-warnings
1580 don't use -Wformat while building GCC
1581 --enable-werror-always enable -Werror despite compiler version
1582 --enable-checking[=LIST]
1583 enable expensive run-time checks. With LIST, enable
1584 only specific categories of checks. Categories are:
1585 yes,no,all,none,release. Flags are:
1586 assert,df,fold,gc,gcac,gimple,misc,
1587 rtlflag,rtl,runtime,tree,valgrind,types
1588 --enable-coverage[=LEVEL]
1589 enable compiler's code coverage collection. Use to
1590 measure compiler performance and locate unused parts
1591 of the compiler. With LEVEL, specify optimization.
1592 Values are opt, noopt, default is noopt
1593 --enable-gather-detailed-mem-stats
1594 enable detailed memory allocation stats gathering
1595 --enable-valgrind-annotations
1596 enable valgrind runtime interaction
1597 --enable-multilib enable library support for multiple ABIs
1598 --enable-multiarch enable support for multiarch paths
1599 --enable-__cxa_atexit enable __cxa_atexit for C++
1600 --enable-decimal-float={no,yes,bid,dpd}
1601 enable decimal float extension to C. Selecting 'bid'
1602 or 'dpd' choses which decimal floating point format
1603 to use
1604 --enable-fixed-point enable fixed-point arithmetic extension to C
1605 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1606 package
1607 --enable-tls enable or disable generation of tls code overriding
1608 the assembler check for tls support
1609 --enable-objc-gc enable the use of Boehm's garbage collector with the
1610 GNU Objective-C runtime
1611 --disable-shared don't provide a shared libgcc
1612 --enable-languages=LIST specify which front-ends to build
1613 --disable-rpath do not hardcode runtime library paths
1614 --enable-sjlj-exceptions
1615 arrange to use setjmp/longjmp exception handling
1616 --enable-secureplt enable -msecure-plt by default for PowerPC
1617 --enable-leading-mingw64-underscores
1618 enable leading underscores on 64 bit mingw targets
1619 --enable-cld enable -mcld by default for 32bit x86
1620 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1622 --disable-win32-registry
1623 disable lookup of installation paths in the Registry
1624 on Windows hosts
1625 --enable-win32-registry enable registry lookup (default)
1626 --enable-win32-registry=KEY
1627 use KEY instead of GCC version as the last portion
1628 of the registry key
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1635 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1636 --enable-gnu-indirect-function
1637 enable the use of the @gnu_indirect_function to
1638 glibc systems
1639 --enable-initfini-array use .init_array/.fini_array sections
1640 --enable-comdat enable COMDAT group support
1641 --enable-gnu-unique-object
1642 enable the use of the @gnu_unique_object ELF
1643 extension on glibc systems
1644 --enable-linker-build-id
1645 compiler will always pass --build-id to linker
1646 --enable-maintainer-mode
1647 enable make rules and dependencies not useful (and
1648 sometimes confusing) to the casual installer
1649 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1650 thrashing on the build machine
1651 --enable-version-specific-runtime-libs
1652 specify that runtime libraries should be installed
1653 in a compiler-specific directory
1654 --enable-plugin enable plugin support
1655 --enable-host-shared build host code as shared libraries
1656 --disable-libquadmath-support
1657 disable libquadmath support for Fortran
1659 Optional Packages:
1660 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1661 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1662 --with-build-libsubdir=DIR Directory where to find libraries for build system
1663 --with-local-prefix=DIR specifies directory to put local include
1664 --with-gxx-include-dir=DIR
1665 specifies directory to put g++ header files
1666 --with-cpp-install-dir=DIR
1667 install the user visible C preprocessor in DIR
1668 (relative to PREFIX) as well as PREFIX/bin
1669 --with-gnu-ld arrange to work with GNU ld
1670 --with-ld arrange to use the specified ld (full pathname)
1671 --with-demangler-in-ld try to use demangler in GNU ld
1672 --with-gnu-as arrange to work with GNU as
1673 --with-as arrange to use the specified as (full pathname)
1674 --with-stabs arrange to use stabs instead of host debug format
1675 --with-dwarf2 force the default debug format to be DWARF 2
1676 --with-native-system-header-dir=dir
1677 use dir as the directory to look for standard
1678 system header files in. Defaults to /usr/include.
1679 --with-build-sysroot=sysroot
1680 use sysroot as the system root during the build
1681 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1682 --with-specs=SPECS add SPECS to driver command-line processing
1683 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1684 --with-bugurl=URL Direct users to URL to report a bug
1685 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1686 --with-gnu-ld assume the C compiler uses GNU ld default=no
1687 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1688 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1689 --with-pic try to use only PIC/non-PIC objects [default=use
1690 both]
1691 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1692 --with-plugin-ld=[ARG] specify the plugin linker
1693 --with-glibc-version=M.N
1694 assume GCC used with glibc version M.N or later
1695 --with-long-double-128 use 128-bit long double by default
1696 --with-gc={page,zone} this option is not supported anymore. It used to
1697 choose the garbage collection mechanism to use with
1698 the compiler
1699 --with-system-zlib use installed libz
1700 --with-linker-hash-style={sysv,gnu,both}
1701 specify the linker hash style
1703 Some influential environment variables:
1704 CC C compiler command
1705 CFLAGS C compiler flags
1706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1707 nonstandard directory <lib dir>
1708 LIBS libraries to pass to the linker, e.g. -l<library>
1709 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1710 you have headers in a nonstandard directory <include dir>
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1713 CPP C preprocessor
1714 CXXCPP C++ preprocessor
1715 GMPLIBS How to link GMP
1716 GMPINC How to find GMP include files
1717 ISLLIBS How to link ISL
1718 ISLINC How to find ISL include files
1719 CLOOGLIBS How to link CLOOG
1720 CLOOGINC How to find CLOOG include files
1722 Use these variables to override the choices made by `configure' or to help
1723 it to find libraries and programs with nonstandard names/locations.
1725 Report bugs to the package provider.
1726 _ACEOF
1727 ac_status=$?
1730 if test "$ac_init_help" = "recursive"; then
1731 # If there are subdirs, report their specific --help.
1732 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1733 test -d "$ac_dir" ||
1734 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 continue
1736 ac_builddir=.
1738 case "$ac_dir" in
1739 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1741 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1742 # A ".." for each directory in $ac_dir_suffix.
1743 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1744 case $ac_top_builddir_sub in
1745 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1747 esac ;;
1748 esac
1749 ac_abs_top_builddir=$ac_pwd
1750 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1751 # for backward compatibility:
1752 ac_top_builddir=$ac_top_build_prefix
1754 case $srcdir in
1755 .) # We are building in place.
1756 ac_srcdir=.
1757 ac_top_srcdir=$ac_top_builddir_sub
1758 ac_abs_top_srcdir=$ac_pwd ;;
1759 [\\/]* | ?:[\\/]* ) # Absolute name.
1760 ac_srcdir=$srcdir$ac_dir_suffix;
1761 ac_top_srcdir=$srcdir
1762 ac_abs_top_srcdir=$srcdir ;;
1763 *) # Relative name.
1764 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1765 ac_top_srcdir=$ac_top_build_prefix$srcdir
1766 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1767 esac
1768 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1770 cd "$ac_dir" || { ac_status=$?; continue; }
1771 # Check for guested configure.
1772 if test -f "$ac_srcdir/configure.gnu"; then
1773 echo &&
1774 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1775 elif test -f "$ac_srcdir/configure"; then
1776 echo &&
1777 $SHELL "$ac_srcdir/configure" --help=recursive
1778 else
1779 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 fi || ac_status=$?
1781 cd "$ac_pwd" || { ac_status=$?; break; }
1782 done
1785 test -n "$ac_init_help" && exit $ac_status
1786 if $ac_init_version; then
1787 cat <<\_ACEOF
1788 configure
1789 generated by GNU Autoconf 2.64
1791 Copyright (C) 2009 Free Software Foundation, Inc.
1792 This configure script is free software; the Free Software Foundation
1793 gives unlimited permission to copy, distribute and modify it.
1794 _ACEOF
1795 exit
1798 ## ------------------------ ##
1799 ## Autoconf initialization. ##
1800 ## ------------------------ ##
1802 # ac_fn_c_try_compile LINENO
1803 # --------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1838 } # ac_fn_c_try_compile
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=1
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 return $ac_retval
1876 } # ac_fn_cxx_try_compile
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_cpp ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } >/dev/null && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1908 ac_retval=1
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_c_try_cpp
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1919 # accordingly.
1920 ac_fn_c_check_header_mongrel ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1929 eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 else
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1943 else
1944 ac_header_compiler=no
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 #include <$2>
1956 _ACEOF
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1959 else
1960 ac_header_preproc=no
1962 rm -f conftest.err conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 yes:no: )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 no:yes:* )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=\$ac_header_compiler"
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 } # ac_fn_c_check_header_mongrel
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2006 ac_fn_c_try_run ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2010 case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2030 ac_retval=0
2031 else
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2036 ac_retval=$ac_status
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040 return $ac_retval
2042 } # ac_fn_c_try_run
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063 else
2064 eval "$3=no"
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_check_header_compile
2075 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2076 # --------------------------------------------
2077 # Tries to find the compile-time value of EXPR in a program that includes
2078 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2079 # computed
2080 ac_fn_c_compute_int ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 if test "$cross_compiling" = yes; then
2084 # Depending upon the size, compute the lo and hi bounds.
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static int test_array [1 - 2 * !(($2) >= 0)];
2092 test_array [0] = 0
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=0 ac_mid=0
2100 while :; do
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2108 test_array [0] = 0
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid; break
2116 else
2117 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2118 if test $ac_lo -le $ac_mid; then
2119 ac_lo= ac_hi=
2120 break
2122 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 done
2126 else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2131 main ()
2133 static int test_array [1 - 2 * !(($2) < 0)];
2134 test_array [0] = 0
2137 return 0;
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"; then :
2141 ac_hi=-1 ac_mid=-1
2142 while :; do
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 test_array [0] = 0
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_lo=$ac_mid; break
2158 else
2159 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2160 if test $ac_mid -le $ac_hi; then
2161 ac_lo= ac_hi=
2162 break
2164 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 else
2169 ac_lo= ac_hi=
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 main ()
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2184 test_array [0] = 0
2187 return 0;
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid
2192 else
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 case $ac_lo in #((
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 '') ac_retval=1 ;;
2200 esac
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2207 #include <stdio.h>
2208 #include <stdlib.h>
2210 main ()
2213 FILE *f = fopen ("conftest.val", "w");
2214 if (! f)
2215 return 1;
2216 if (($2) < 0)
2218 long int i = longval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%ld", i);
2223 else
2225 unsigned long int i = ulongval ();
2226 if (i != ($2))
2227 return 1;
2228 fprintf (f, "%lu", i);
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2235 return 0;
2237 _ACEOF
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 else
2241 ac_retval=1
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 rm -f conftest.val
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 return $ac_retval
2251 } # ac_fn_c_compute_int
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 eval "$3=no"
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 if (sizeof ($2))
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 if (sizeof (($2)))
2286 return 0;
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2293 else
2294 eval "$3=yes"
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 eval ac_res=\$$3
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305 } # ac_fn_c_check_type
2307 # ac_fn_c_find_intX_t LINENO BITS VAR
2308 # -----------------------------------
2309 # Finds a signed integer type with width BITS, setting cache variable VAR
2310 # accordingly.
2311 ac_fn_c_find_intX_t ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2315 $as_echo_n "checking for int$2_t... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 eval "$3=no"
2320 for ac_type in int$2_t 'int' 'long int' \
2321 'long long int' 'short int' 'signed char'; do
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 $ac_includes_default
2326 main ()
2328 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2329 test_array [0] = 0
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2338 $ac_includes_default
2340 main ()
2342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2343 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2344 test_array [0] = 0
2347 return 0;
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2352 else
2353 case $ac_type in #(
2354 int$2_t) :
2355 eval "$3=yes" ;; #(
2356 *) :
2357 eval "$3=\$ac_type" ;;
2358 esac
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 eval as_val=\$$3
2364 if test "x$as_val" = x""no; then :
2366 else
2367 break
2369 done
2371 eval ac_res=\$$3
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_c_find_intX_t
2378 # ac_fn_c_try_link LINENO
2379 # -----------------------
2380 # Try to link conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_link ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { { ac_try="$ac_link"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_link") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest$ac_exeext && {
2404 test "$cross_compiling" = yes ||
2405 $as_test_x conftest$ac_exeext
2406 }; then :
2407 ac_retval=0
2408 else
2409 $as_echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2412 ac_retval=1
2414 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2415 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2416 # interfere with the next link command; also delete a directory that is
2417 # left behind by Apple's compiler. We do this before executing the actions.
2418 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2419 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2420 return $ac_retval
2422 } # ac_fn_c_try_link
2424 # ac_fn_c_find_uintX_t LINENO BITS VAR
2425 # ------------------------------------
2426 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2427 # accordingly.
2428 ac_fn_c_find_uintX_t ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2432 $as_echo_n "checking for uint$2_t... " >&6; }
2433 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2434 $as_echo_n "(cached) " >&6
2435 else
2436 eval "$3=no"
2437 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2438 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2440 /* end confdefs.h. */
2441 $ac_includes_default
2443 main ()
2445 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2446 test_array [0] = 0
2449 return 0;
2451 _ACEOF
2452 if ac_fn_c_try_compile "$LINENO"; then :
2453 case $ac_type in #(
2454 uint$2_t) :
2455 eval "$3=yes" ;; #(
2456 *) :
2457 eval "$3=\$ac_type" ;;
2458 esac
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 eval as_val=\$$3
2462 if test "x$as_val" = x""no; then :
2464 else
2465 break
2467 done
2469 eval ac_res=\$$3
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 } # ac_fn_c_find_uintX_t
2476 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2477 # ----------------------------------------------
2478 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2479 ac_fn_c_check_header_preproc ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2486 else
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2489 #include <$2>
2490 _ACEOF
2491 if ac_fn_c_try_cpp "$LINENO"; then :
2492 eval "$3=yes"
2493 else
2494 eval "$3=no"
2496 rm -f conftest.err conftest.$ac_ext
2498 eval ac_res=\$$3
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2500 $as_echo "$ac_res" >&6; }
2501 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 } # ac_fn_c_check_header_preproc
2505 # ac_fn_cxx_try_cpp LINENO
2506 # ------------------------
2507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_cpp ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 if { { ac_try="$ac_cpp conftest.$ac_ext"
2512 case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2519 ac_status=$?
2520 if test -s conftest.err; then
2521 grep -v '^ *+' conftest.err >conftest.er1
2522 cat conftest.er1 >&5
2523 mv -f conftest.er1 conftest.err
2525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2526 test $ac_status = 0; } >/dev/null && {
2527 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2528 test ! -s conftest.err
2529 }; then :
2530 ac_retval=0
2531 else
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2535 ac_retval=1
2537 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 return $ac_retval
2540 } # ac_fn_cxx_try_cpp
2542 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2543 # ------------------------------------------------
2544 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2545 ac_fn_cxx_check_header_preproc ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2555 #include <$2>
2556 _ACEOF
2557 if ac_fn_cxx_try_cpp "$LINENO"; then :
2558 eval "$3=yes"
2559 else
2560 eval "$3=no"
2562 rm -f conftest.err conftest.$ac_ext
2564 eval ac_res=\$$3
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_cxx_check_header_preproc
2571 # ac_fn_c_check_func LINENO FUNC VAR
2572 # ----------------------------------
2573 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2574 ac_fn_c_check_func ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 $as_echo_n "checking for $2... " >&6; }
2579 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2584 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2586 #define $2 innocuous_$2
2588 /* System header to define __stub macros and hopefully few prototypes,
2589 which can conflict with char $2 (); below.
2590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2591 <limits.h> exists even on freestanding compilers. */
2593 #ifdef __STDC__
2594 # include <limits.h>
2595 #else
2596 # include <assert.h>
2597 #endif
2599 #undef $2
2601 /* Override any GCC internal prototype to avoid an error.
2602 Use char because int might match the return type of a GCC
2603 builtin and then its argument prototype would still apply. */
2604 #ifdef __cplusplus
2605 extern "C"
2606 #endif
2607 char $2 ();
2608 /* The GNU C library defines this for functions which it implements
2609 to always fail with ENOSYS. Some functions are actually named
2610 something starting with __ and the normal name is an alias. */
2611 #if defined __stub_$2 || defined __stub___$2
2612 choke me
2613 #endif
2616 main ()
2618 return $2 ();
2620 return 0;
2622 _ACEOF
2623 if ac_fn_c_try_link "$LINENO"; then :
2624 eval "$3=yes"
2625 else
2626 eval "$3=no"
2628 rm -f core conftest.err conftest.$ac_objext \
2629 conftest$ac_exeext conftest.$ac_ext
2631 eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2636 } # ac_fn_c_check_func
2638 # ac_fn_cxx_try_link LINENO
2639 # -------------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2641 ac_fn_cxx_try_link ()
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2653 ac_status=$?
2654 if test -s conftest.err; then
2655 grep -v '^ *+' conftest.err >conftest.er1
2656 cat conftest.er1 >&5
2657 mv -f conftest.er1 conftest.err
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_cxx_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest$ac_exeext
2666 }; then :
2667 ac_retval=0
2668 else
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2672 ac_retval=1
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2680 return $ac_retval
2682 } # ac_fn_cxx_try_link
2683 cat >config.log <<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2687 It was created by $as_me, which was
2688 generated by GNU Autoconf 2.64. Invocation command line was
2690 $ $0 $@
2692 _ACEOF
2693 exec 5>>config.log
2695 cat <<_ASUNAME
2696 ## --------- ##
2697 ## Platform. ##
2698 ## --------- ##
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2717 _ASUNAME
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 $as_echo "PATH: $as_dir"
2725 done
2726 IFS=$as_save_IFS
2728 } >&5
2730 cat >&5 <<_ACEOF
2733 ## ----------- ##
2734 ## Core tests. ##
2735 ## ----------- ##
2737 _ACEOF
2740 # Keep a trace of the command line.
2741 # Strip out --no-create and --no-recursion so they do not pile up.
2742 # Strip out --silent because we don't want to record it for future runs.
2743 # Also quote any args containing shell meta-characters.
2744 # Make two passes to allow for proper duplicate-argument suppression.
2745 ac_configure_args=
2746 ac_configure_args0=
2747 ac_configure_args1=
2748 ac_must_keep_next=false
2749 for ac_pass in 1 2
2751 for ac_arg
2753 case $ac_arg in
2754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2756 | -silent | --silent | --silen | --sile | --sil)
2757 continue ;;
2758 *\'*)
2759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2760 esac
2761 case $ac_pass in
2762 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2764 as_fn_append ac_configure_args1 " '$ac_arg'"
2765 if test $ac_must_keep_next = true; then
2766 ac_must_keep_next=false # Got value, back to normal.
2767 else
2768 case $ac_arg in
2769 *=* | --config-cache | -C | -disable-* | --disable-* \
2770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2772 | -with-* | --with-* | -without-* | --without-* | --x)
2773 case "$ac_configure_args0 " in
2774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2775 esac
2777 -* ) ac_must_keep_next=true ;;
2778 esac
2780 as_fn_append ac_configure_args " '$ac_arg'"
2782 esac
2783 done
2784 done
2785 { ac_configure_args0=; unset ac_configure_args0;}
2786 { ac_configure_args1=; unset ac_configure_args1;}
2788 # When interrupted or exit'd, cleanup temporary files, and complete
2789 # config.log. We remove comments because anyway the quotes in there
2790 # would cause problems or look ugly.
2791 # WARNING: Use '\'' to represent an apostrophe within the trap.
2792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2793 trap 'exit_status=$?
2794 # Save into config.log some information that might help in debugging.
2796 echo
2798 cat <<\_ASBOX
2799 ## ---------------- ##
2800 ## Cache variables. ##
2801 ## ---------------- ##
2802 _ASBOX
2803 echo
2804 # The following way of writing the cache mishandles newlines in values,
2806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2807 eval ac_val=\$$ac_var
2808 case $ac_val in #(
2809 *${as_nl}*)
2810 case $ac_var in #(
2811 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2812 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2813 esac
2814 case $ac_var in #(
2815 _ | IFS | as_nl) ;; #(
2816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2817 *) { eval $ac_var=; unset $ac_var;} ;;
2818 esac ;;
2819 esac
2820 done
2821 (set) 2>&1 |
2822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2823 *${as_nl}ac_space=\ *)
2824 sed -n \
2825 "s/'\''/'\''\\\\'\'''\''/g;
2826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2827 ;; #(
2829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2831 esac |
2832 sort
2834 echo
2836 cat <<\_ASBOX
2837 ## ----------------- ##
2838 ## Output variables. ##
2839 ## ----------------- ##
2840 _ASBOX
2841 echo
2842 for ac_var in $ac_subst_vars
2844 eval ac_val=\$$ac_var
2845 case $ac_val in
2846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847 esac
2848 $as_echo "$ac_var='\''$ac_val'\''"
2849 done | sort
2850 echo
2852 if test -n "$ac_subst_files"; then
2853 cat <<\_ASBOX
2854 ## ------------------- ##
2855 ## File substitutions. ##
2856 ## ------------------- ##
2857 _ASBOX
2858 echo
2859 for ac_var in $ac_subst_files
2861 eval ac_val=\$$ac_var
2862 case $ac_val in
2863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864 esac
2865 $as_echo "$ac_var='\''$ac_val'\''"
2866 done | sort
2867 echo
2870 if test -s confdefs.h; then
2871 cat <<\_ASBOX
2872 ## ----------- ##
2873 ## confdefs.h. ##
2874 ## ----------- ##
2875 _ASBOX
2876 echo
2877 cat confdefs.h
2878 echo
2880 test "$ac_signal" != 0 &&
2881 $as_echo "$as_me: caught signal $ac_signal"
2882 $as_echo "$as_me: exit $exit_status"
2883 } >&5
2884 rm -f core *.core core.conftest.* &&
2885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2886 exit $exit_status
2888 for ac_signal in 1 2 13 15; do
2889 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2890 done
2891 ac_signal=0
2893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2894 rm -f -r conftest* confdefs.h
2896 $as_echo "/* confdefs.h */" > confdefs.h
2898 # Predefined preprocessor variables.
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_NAME "$PACKAGE_NAME"
2902 _ACEOF
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2906 _ACEOF
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2910 _ACEOF
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_STRING "$PACKAGE_STRING"
2914 _ACEOF
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2918 _ACEOF
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_URL "$PACKAGE_URL"
2922 _ACEOF
2925 # Let the site file select an alternate cache file if it wants to.
2926 # Prefer an explicitly selected file to automatically selected ones.
2927 ac_site_file1=NONE
2928 ac_site_file2=NONE
2929 if test -n "$CONFIG_SITE"; then
2930 ac_site_file1=$CONFIG_SITE
2931 elif test "x$prefix" != xNONE; then
2932 ac_site_file1=$prefix/share/config.site
2933 ac_site_file2=$prefix/etc/config.site
2934 else
2935 ac_site_file1=$ac_default_prefix/share/config.site
2936 ac_site_file2=$ac_default_prefix/etc/config.site
2938 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2940 test "x$ac_site_file" = xNONE && continue
2941 if test -r "$ac_site_file"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2943 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2944 sed 's/^/| /' "$ac_site_file" >&5
2945 . "$ac_site_file"
2947 done
2949 if test -r "$cache_file"; then
2950 # Some versions of bash will fail to source /dev/null (special
2951 # files actually), so we avoid doing that.
2952 if test -f "$cache_file"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2954 $as_echo "$as_me: loading cache $cache_file" >&6;}
2955 case $cache_file in
2956 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2957 *) . "./$cache_file";;
2958 esac
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2962 $as_echo "$as_me: creating cache $cache_file" >&6;}
2963 >$cache_file
2966 # Check that the precious variables saved in the cache have kept the same
2967 # value.
2968 ac_cache_corrupted=false
2969 for ac_var in $ac_precious_vars; do
2970 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2971 eval ac_new_set=\$ac_env_${ac_var}_set
2972 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2973 eval ac_new_val=\$ac_env_${ac_var}_value
2974 case $ac_old_set,$ac_new_set in
2975 set,)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2979 ,set)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982 ac_cache_corrupted=: ;;
2983 ,);;
2985 if test "x$ac_old_val" != "x$ac_new_val"; then
2986 # differences in whitespace do not lead to failure.
2987 ac_old_val_w=`echo x $ac_old_val`
2988 ac_new_val_w=`echo x $ac_new_val`
2989 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992 ac_cache_corrupted=:
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996 eval $ac_var=\$ac_old_val
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2999 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3001 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3002 fi;;
3003 esac
3004 # Pass precious variables to config.status.
3005 if test "$ac_new_set" = set; then
3006 case $ac_new_val in
3007 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008 *) ac_arg=$ac_var=$ac_new_val ;;
3009 esac
3010 case " $ac_configure_args " in
3011 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3012 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013 esac
3015 done
3016 if $ac_cache_corrupted; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3021 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3023 ## -------------------- ##
3024 ## Main body of script. ##
3025 ## -------------------- ##
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3041 gcc_version=`cat $srcdir/BASE-VER`
3043 # Determine the host, build, and target systems
3044 ac_aux_dir=
3045 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 for ac_t in install-sh install.sh shtool; do
3047 if test -f "$ac_dir/$ac_t"; then
3048 ac_aux_dir=$ac_dir
3049 ac_install_sh="$ac_aux_dir/$ac_t -c"
3050 break 2
3052 done
3053 done
3054 if test -z "$ac_aux_dir"; then
3055 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3058 # These three variables are undocumented and unsupported,
3059 # and are intended to be withdrawn in a future Autoconf release.
3060 # They can cause serious problems if a builder's source tree is in a directory
3061 # whose full name contains unusual characters.
3062 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3063 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3064 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3067 # Make sure we can run config.sub.
3068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3069 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3072 $as_echo_n "checking build system type... " >&6; }
3073 if test "${ac_cv_build+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 ac_build_alias=$build_alias
3077 test "x$ac_build_alias" = x &&
3078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3079 test "x$ac_build_alias" = x &&
3080 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3082 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3086 $as_echo "$ac_cv_build" >&6; }
3087 case $ac_cv_build in
3088 *-*-*) ;;
3089 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3090 esac
3091 build=$ac_cv_build
3092 ac_save_IFS=$IFS; IFS='-'
3093 set x $ac_cv_build
3094 shift
3095 build_cpu=$1
3096 build_vendor=$2
3097 shift; shift
3098 # Remember, the first character of IFS is used to create $*,
3099 # except with old shells:
3100 build_os=$*
3101 IFS=$ac_save_IFS
3102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3106 $as_echo_n "checking host system type... " >&6; }
3107 if test "${ac_cv_host+set}" = set; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test "x$host_alias" = x; then
3111 ac_cv_host=$ac_cv_build
3112 else
3113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3114 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3119 $as_echo "$ac_cv_host" >&6; }
3120 case $ac_cv_host in
3121 *-*-*) ;;
3122 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3123 esac
3124 host=$ac_cv_host
3125 ac_save_IFS=$IFS; IFS='-'
3126 set x $ac_cv_host
3127 shift
3128 host_cpu=$1
3129 host_vendor=$2
3130 shift; shift
3131 # Remember, the first character of IFS is used to create $*,
3132 # except with old shells:
3133 host_os=$*
3134 IFS=$ac_save_IFS
3135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3139 $as_echo_n "checking target system type... " >&6; }
3140 if test "${ac_cv_target+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test "x$target_alias" = x; then
3144 ac_cv_target=$ac_cv_host
3145 else
3146 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3147 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3152 $as_echo "$ac_cv_target" >&6; }
3153 case $ac_cv_target in
3154 *-*-*) ;;
3155 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3156 esac
3157 target=$ac_cv_target
3158 ac_save_IFS=$IFS; IFS='-'
3159 set x $ac_cv_target
3160 shift
3161 target_cpu=$1
3162 target_vendor=$2
3163 shift; shift
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3166 target_os=$*
3167 IFS=$ac_save_IFS
3168 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3171 # The aliases save the names the user supplied, while $host etc.
3172 # will get canonicalized.
3173 test -n "$target_alias" &&
3174 test "$program_prefix$program_suffix$program_transform_name" = \
3175 NONENONEs,x,x, &&
3176 program_prefix=${target_alias}-
3178 # Determine the noncanonical target name, for directory use.
3179 case ${build_alias} in
3180 "") build_noncanonical=${build} ;;
3181 *) build_noncanonical=${build_alias} ;;
3182 esac
3184 case ${host_alias} in
3185 "") host_noncanonical=${build_noncanonical} ;;
3186 *) host_noncanonical=${host_alias} ;;
3187 esac
3189 case ${target_alias} in
3190 "") target_noncanonical=${host_noncanonical} ;;
3191 *) target_noncanonical=${target_alias} ;;
3192 esac
3197 # Determine the target- and build-specific subdirectories
3199 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3200 # have matching libraries, they should use host libraries: Makefile.tpl
3201 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3202 # However, they still use the build modules, because the corresponding
3203 # host modules (e.g. bison) are only built for the host when bootstrap
3204 # finishes. So:
3205 # - build_subdir is where we find build modules, and never changes.
3206 # - build_libsubdir is where we find build libraries, and can be overridden.
3208 # Prefix 'build-' so this never conflicts with target_subdir.
3209 build_subdir="build-${build_noncanonical}"
3211 # Check whether --with-build-libsubdir was given.
3212 if test "${with_build_libsubdir+set}" = set; then :
3213 withval=$with_build_libsubdir; build_libsubdir="$withval"
3214 else
3215 build_libsubdir="$build_subdir"
3218 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3219 if ( test $srcdir = . && test -d gcc ) \
3220 || test -d $srcdir/../host-${host_noncanonical}; then
3221 host_subdir="host-${host_noncanonical}"
3222 else
3223 host_subdir=.
3225 # No prefix.
3226 target_subdir=${target_noncanonical}
3229 # Set program_transform_name
3230 test "$program_prefix" != NONE &&
3231 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3232 # Use a double $ so make ignores it.
3233 test "$program_suffix" != NONE &&
3234 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3235 # Double any \ or $.
3236 # By default was `s,x,x', remove it if useless.
3237 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3238 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3241 # Check for bogus environment variables.
3242 # Test if LIBRARY_PATH contains the notation for the current directory
3243 # since this would lead to problems installing/building glibc.
3244 # LIBRARY_PATH contains the current directory if one of the following
3245 # is true:
3246 # - one of the terminals (":" and ";") is the first or last sign
3247 # - two terminals occur directly after each other
3248 # - the path contains an element with a dot in it
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3250 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3251 case ${LIBRARY_PATH} in
3252 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3253 library_path_setting="contains current directory"
3256 library_path_setting="ok"
3258 esac
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3260 $as_echo "$library_path_setting" >&6; }
3261 if test "$library_path_setting" != "ok"; then
3262 as_fn_error "
3263 *** LIBRARY_PATH shouldn't contain the current directory when
3264 *** building gcc. Please change the environment variable
3265 *** and run configure again." "$LINENO" 5
3268 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3269 # since this would lead to problems installing/building glibc.
3270 # GCC_EXEC_PREFIX contains the current directory if one of the following
3271 # is true:
3272 # - one of the terminals (":" and ";") is the first or last sign
3273 # - two terminals occur directly after each other
3274 # - the path contains an element with a dot in it
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3276 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3277 case ${GCC_EXEC_PREFIX} in
3278 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3279 gcc_exec_prefix_setting="contains current directory"
3282 gcc_exec_prefix_setting="ok"
3284 esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3286 $as_echo "$gcc_exec_prefix_setting" >&6; }
3287 if test "$gcc_exec_prefix_setting" != "ok"; then
3288 as_fn_error "
3289 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3290 *** building gcc. Please change the environment variable
3291 *** and run configure again." "$LINENO" 5
3294 # -----------
3295 # Directories
3296 # -----------
3298 # Specify the local prefix
3299 local_prefix=
3301 # Check whether --with-local-prefix was given.
3302 if test "${with_local_prefix+set}" = set; then :
3303 withval=$with_local_prefix; case "${withval}" in
3304 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3305 no) ;;
3306 *) local_prefix=$with_local_prefix ;;
3307 esac
3311 # Default local prefix if it is empty
3312 if test x$local_prefix = x; then
3313 local_prefix=/usr/local
3316 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3317 # passed in by the toplevel make and thus we'd get different behavior
3318 # depending on where we built the sources.
3319 gcc_gxx_include_dir=
3320 # Specify the g++ header file directory
3322 # Check whether --with-gxx-include-dir was given.
3323 if test "${with_gxx_include_dir+set}" = set; then :
3324 withval=$with_gxx_include_dir; case "${withval}" in
3325 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3326 no) ;;
3327 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3328 esac
3332 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3333 if test x${gcc_gxx_include_dir} = x; then
3334 if test x${enable_version_specific_runtime_libs} = xyes; then
3335 gcc_gxx_include_dir='${libsubdir}/include/c++'
3336 else
3337 libstdcxx_incdir='include/c++/$(version)'
3338 if test x$host != x$target; then
3339 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3341 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3345 gcc_gxx_include_dir_add_sysroot=0
3346 if test "${with_sysroot+set}" = set; then
3347 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3348 if test "${gcc_gxx_without_sysroot}"; then
3349 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3350 gcc_gxx_include_dir_add_sysroot=1
3355 # Check whether --with-cpp_install_dir was given.
3356 if test "${with_cpp_install_dir+set}" = set; then :
3357 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3358 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3359 elif test x$withval != xno; then
3360 cpp_install_dir=$withval
3365 # We would like to our source tree to be readonly. However when releases or
3366 # pre-releases are generated, the flex/bison generated files as well as the
3367 # various formats of manuals need to be included along with the rest of the
3368 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3369 # just that.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3372 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3373 # Check whether --enable-generated-files-in-srcdir was given.
3374 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3375 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3376 else
3377 generated_files_in_srcdir=no
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3382 $as_echo "$generated_files_in_srcdir" >&6; }
3384 if test "$generated_files_in_srcdir" = "yes"; then
3385 GENINSRC=''
3386 else
3387 GENINSRC='#'
3391 # -------------------
3392 # Find default linker
3393 # -------------------
3395 # With GNU ld
3397 # Check whether --with-gnu-ld was given.
3398 if test "${with_gnu_ld+set}" = set; then :
3399 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3400 else
3401 gnu_ld_flag=no
3405 # With pre-defined ld
3407 # Check whether --with-ld was given.
3408 if test "${with_ld+set}" = set; then :
3409 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3412 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3413 if test ! -x "$DEFAULT_LINKER"; then
3414 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3415 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3416 gnu_ld_flag=yes
3419 cat >>confdefs.h <<_ACEOF
3420 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3421 _ACEOF
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3426 $as_echo_n "checking whether a default linker was specified... " >&6; }
3427 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3428 if test x"$gnu_ld_flag" = x"no"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3430 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3433 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3440 # With demangler in GNU ld
3442 # Check whether --with-demangler-in-ld was given.
3443 if test "${with_demangler_in_ld+set}" = set; then :
3444 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3445 else
3446 demangler_in_ld=yes
3450 # ----------------------
3451 # Find default assembler
3452 # ----------------------
3454 # With GNU as
3456 # Check whether --with-gnu-as was given.
3457 if test "${with_gnu_as+set}" = set; then :
3458 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3459 else
3460 gas_flag=no
3465 # Check whether --with-as was given.
3466 if test "${with_as+set}" = set; then :
3467 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3470 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3471 if test ! -x "$DEFAULT_ASSEMBLER"; then
3472 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3473 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3474 gas_flag=yes
3477 cat >>confdefs.h <<_ACEOF
3478 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3479 _ACEOF
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3484 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3485 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3486 if test x"$gas_flag" = x"no"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3488 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3489 else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3491 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3498 # ---------------
3499 # Find C compiler
3500 # ---------------
3502 # If a non-executable a.out is present (e.g. created by GNU as above even if
3503 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3504 # file, even when creating an executable, so an execution test fails.
3505 # Remove possible default executable files to avoid this.
3507 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3508 # Autoconf includes it.
3509 rm -f a.out a.exe b.out
3511 # Find the native compiler
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if test "${ac_cv_prog_CC+set}" = set; then :
3523 $as_echo_n "(cached) " >&6
3524 else
3525 if test -n "$CC"; then
3526 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3539 done
3540 done
3541 IFS=$as_save_IFS
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3556 if test -z "$ac_cv_prog_CC"; then
3557 ac_ct_CC=$CC
3558 # Extract the first word of "gcc", so it can be a program name with args.
3559 set dummy gcc; ac_word=$2
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561 $as_echo_n "checking for $ac_word... " >&6; }
3562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 if test -n "$ac_ct_CC"; then
3566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3567 else
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3571 IFS=$as_save_IFS
3572 test -z "$as_dir" && as_dir=.
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575 ac_cv_prog_ac_ct_CC="gcc"
3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 break 2
3579 done
3580 done
3581 IFS=$as_save_IFS
3585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586 if test -n "$ac_ct_CC"; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588 $as_echo "$ac_ct_CC" >&6; }
3589 else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598 yes:)
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601 ac_tool_warned=yes ;;
3602 esac
3603 CC=$ac_ct_CC
3605 else
3606 CC="$ac_cv_prog_CC"
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612 set dummy ${ac_tool_prefix}cc; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if test "${ac_cv_prog_CC+set}" = set; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628 ac_cv_prog_CC="${ac_tool_prefix}cc"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3632 done
3633 done
3634 IFS=$as_save_IFS
3638 CC=$ac_cv_prog_CC
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3650 if test -z "$CC"; then
3651 # Extract the first word of "cc", so it can be a program name with args.
3652 set dummy cc; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 ac_prog_rejected=no
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670 ac_prog_rejected=yes
3671 continue
3673 ac_cv_prog_CC="cc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 break 2
3677 done
3678 done
3679 IFS=$as_save_IFS
3681 if test $ac_prog_rejected = yes; then
3682 # We found a bogon in the path, so make sure we never use it.
3683 set dummy $ac_cv_prog_CC
3684 shift
3685 if test $# != 0; then
3686 # We chose a different compiler from the bogus one.
3687 # However, it has the same basename, so the bogon will be chosen
3688 # first if we set CC to just the basename; use the full file name.
3689 shift
3690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog in cl.exe
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if test "${ac_cv_prog_CC+set}" = set; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3723 IFS=$as_save_IFS
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3731 done
3732 done
3733 IFS=$as_save_IFS
3737 CC=$ac_cv_prog_CC
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3741 else
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$CC" && break
3748 done
3750 if test -z "$CC"; then
3751 ac_ct_CC=$CC
3752 for ac_prog in cl.exe
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_ac_ct_CC="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3775 done
3776 done
3777 IFS=$as_save_IFS
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3785 else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$ac_ct_CC" && break
3792 done
3794 if test "x$ac_ct_CC" = x; then
3795 CC=""
3796 else
3797 case $cross_compiling:$ac_tool_warned in
3798 yes:)
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3802 esac
3803 CC=$ac_ct_CC
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error "no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details." "$LINENO" 5; }
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817 set X $ac_compile
3818 ac_compiler=$2
3819 for ac_option in --version -v -V -qversion; do
3820 { { ac_try="$ac_compiler $ac_option >&5"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828 ac_status=$?
3829 if test -s conftest.err; then
3830 sed '10a\
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3834 rm -f conftest.er1 conftest.err
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3838 done
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3844 main ()
3848 return 0;
3850 _ACEOF
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3855 # of exeext.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3857 $as_echo_n "checking for C compiler default output file name... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3863 ac_rmfiles=
3864 for ac_file in $ac_files
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3869 esac
3870 done
3871 rm -f $ac_rmfiles
3873 if { { ac_try="$ac_link_default"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3881 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3888 # Autoconf.
3889 for ac_file in $ac_files ''
3891 test -f "$ac_file" || continue
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3895 [ab].out )
3896 # We found the default executable, but exeext='' is most
3897 # certainly right.
3898 break;;
3899 *.* )
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3901 then :; else
3902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3908 # actually working.
3909 break;;
3911 break;;
3912 esac
3913 done
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3916 else
3917 ac_file=''
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3920 $as_echo "$ac_file" >&6; }
3921 if test -z "$ac_file"; then :
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 { as_fn_set_status 77
3928 as_fn_error "C compiler cannot create executables
3929 See \`config.log' for more details." "$LINENO" 5; }; }
3931 ac_exeext=$ac_cv_exeext
3933 # Check that the compiler produces executables we can run. If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3936 $as_echo_n "checking whether the C compiler works... " >&6; }
3937 # If not cross compiling, check that we can run a simple program.
3938 if test "$cross_compiling" != yes; then
3939 if { ac_try='./$ac_file'
3940 { { case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_try") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; }; then
3950 cross_compiling=no
3951 else
3952 if test "$cross_compiling" = maybe; then
3953 cross_compiling=yes
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error "cannot run C compiled programs.
3958 If you meant to cross compile, use \`--host'.
3959 See \`config.log' for more details." "$LINENO" 5; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 # Check that the compiler produces executables we can run. If not, either
3969 # the compiler is broken, or we cross compile.
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3971 $as_echo_n "checking whether we are cross compiling... " >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3973 $as_echo "$cross_compiling" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe'), while it won't with
3991 # `rm'.
3992 for ac_file in conftest.exe conftest conftest.*; do
3993 test -f "$ac_file" || continue
3994 case $ac_file in
3995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 break;;
3998 * ) break;;
3999 esac
4000 done
4001 else
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error "cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details." "$LINENO" 5; }
4007 rm -f conftest$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4011 rm -f conftest.$ac_ext
4012 EXEEXT=$ac_cv_exeext
4013 ac_exeext=$EXEEXT
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4015 $as_echo_n "checking for suffix of object files... " >&6; }
4016 if test "${ac_cv_objext+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4023 main ()
4027 return 0;
4029 _ACEOF
4030 rm -f conftest.o conftest.obj
4031 if { { ac_try="$ac_compile"
4032 case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035 esac
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_compile") 2>&5
4039 ac_status=$?
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }; then :
4042 for ac_file in conftest.o conftest.obj conftest.*; do
4043 test -f "$ac_file" || continue;
4044 case $ac_file in
4045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4047 break;;
4048 esac
4049 done
4050 else
4051 $as_echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of object files: cannot compile
4057 See \`config.log' for more details." "$LINENO" 5; }
4059 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4062 $as_echo "$ac_cv_objext" >&6; }
4063 OBJEXT=$ac_cv_objext
4064 ac_objext=$OBJEXT
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 main ()
4076 #ifndef __GNUC__
4077 choke me
4078 #endif
4081 return 0;
4083 _ACEOF
4084 if ac_fn_c_try_compile "$LINENO"; then :
4085 ac_compiler_gnu=yes
4086 else
4087 ac_compiler_gnu=no
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4096 GCC=yes
4097 else
4098 GCC=
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if test "${ac_cv_prog_cc_g+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4109 ac_cv_prog_cc_g=no
4110 CFLAGS="-g"
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4115 main ()
4119 return 0;
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_prog_cc_g=yes
4124 else
4125 CFLAGS=""
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4139 else
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 main ()
4150 return 0;
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_cv_prog_cc_g=yes
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4169 CFLAGS="-g -O2"
4170 else
4171 CFLAGS="-g"
4173 else
4174 if test "$GCC" = yes; then
4175 CFLAGS="-O2"
4176 else
4177 CFLAGS=
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 ac_cv_prog_cc_c89=no
4186 ac_save_CC=$CC
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <stdarg.h>
4190 #include <stdio.h>
4191 #include <sys/types.h>
4192 #include <sys/stat.h>
4193 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4194 struct buf { int x; };
4195 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4196 static char *e (p, i)
4197 char **p;
4198 int i;
4200 return p[i];
4202 static char *f (char * (*g) (char **, int), char **p, ...)
4204 char *s;
4205 va_list v;
4206 va_start (v,p);
4207 s = g (p, va_arg (v,int));
4208 va_end (v);
4209 return s;
4212 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4213 function prototypes and stuff, but not '\xHH' hex character constants.
4214 These don't provoke an error unfortunately, instead are silently treated
4215 as 'x'. The following induces an error, until -std is added to get
4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4217 array size at least. It's necessary to write '\x00'==0 to get something
4218 that's true only with -std. */
4219 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4221 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4222 inside strings and character constants. */
4223 #define FOO(x) 'x'
4224 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4226 int test (int i, double x);
4227 struct s1 {int (*f) (int a);};
4228 struct s2 {int (*f) (double a);};
4229 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4230 int argc;
4231 char **argv;
4233 main ()
4235 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4237 return 0;
4239 _ACEOF
4240 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4243 CC="$ac_save_CC $ac_arg"
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_c89=$ac_arg
4247 rm -f core conftest.err conftest.$ac_objext
4248 test "x$ac_cv_prog_cc_c89" != "xno" && break
4249 done
4250 rm -f conftest.$ac_ext
4251 CC=$ac_save_CC
4254 # AC_CACHE_VAL
4255 case "x$ac_cv_prog_cc_c89" in
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4258 $as_echo "none needed" >&6; } ;;
4259 xno)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4261 $as_echo "unsupported" >&6; } ;;
4263 CC="$CC $ac_cv_prog_cc_c89"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4265 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4266 esac
4267 if test "x$ac_cv_prog_cc_c89" != xno; then :
4271 ac_ext=c
4272 ac_cpp='$CPP $CPPFLAGS'
4273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4277 ac_ext=cpp
4278 ac_cpp='$CXXCPP $CPPFLAGS'
4279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4282 if test -z "$CXX"; then
4283 if test -n "$CCC"; then
4284 CXX=$CCC
4285 else
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_CXX+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if test -n "$CXX"; then
4297 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4310 done
4311 done
4312 IFS=$as_save_IFS
4316 CXX=$ac_cv_prog_CXX
4317 if test -n "$CXX"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4319 $as_echo "$CXX" >&6; }
4320 else
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$CXX" && break
4327 done
4329 if test -z "$CXX"; then
4330 ac_ct_CXX=$CXX
4331 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$ac_ct_CXX"; then
4341 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CXX="$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4354 done
4355 done
4356 IFS=$as_save_IFS
4360 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4361 if test -n "$ac_ct_CXX"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4363 $as_echo "$ac_ct_CXX" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$ac_ct_CXX" && break
4371 done
4373 if test "x$ac_ct_CXX" = x; then
4374 CXX="g++"
4375 else
4376 case $cross_compiling:$ac_tool_warned in
4377 yes:)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380 ac_tool_warned=yes ;;
4381 esac
4382 CXX=$ac_ct_CXX
4388 # Provide some information about the compiler.
4389 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4390 set X $ac_compile
4391 ac_compiler=$2
4392 for ac_option in --version -v -V -qversion; do
4393 { { ac_try="$ac_compiler $ac_option >&5"
4394 case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4401 ac_status=$?
4402 if test -s conftest.err; then
4403 sed '10a\
4404 ... rest of stderr output deleted ...
4405 10q' conftest.err >conftest.er1
4406 cat conftest.er1 >&5
4407 rm -f conftest.er1 conftest.err
4409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410 test $ac_status = 0; }
4411 done
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4414 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4415 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4422 main ()
4424 #ifndef __GNUC__
4425 choke me
4426 #endif
4429 return 0;
4431 _ACEOF
4432 if ac_fn_cxx_try_compile "$LINENO"; then :
4433 ac_compiler_gnu=yes
4434 else
4435 ac_compiler_gnu=no
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4442 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4443 if test $ac_compiler_gnu = yes; then
4444 GXX=yes
4445 else
4446 GXX=
4448 ac_test_CXXFLAGS=${CXXFLAGS+set}
4449 ac_save_CXXFLAGS=$CXXFLAGS
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4451 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4452 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4456 ac_cxx_werror_flag=yes
4457 ac_cv_prog_cxx_g=no
4458 CXXFLAGS="-g"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4463 main ()
4467 return 0;
4469 _ACEOF
4470 if ac_fn_cxx_try_compile "$LINENO"; then :
4471 ac_cv_prog_cxx_g=yes
4472 else
4473 CXXFLAGS=""
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4478 main ()
4482 return 0;
4484 _ACEOF
4485 if ac_fn_cxx_try_compile "$LINENO"; then :
4487 else
4488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4489 CXXFLAGS="-g"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4494 main ()
4498 return 0;
4500 _ACEOF
4501 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 ac_cv_prog_cxx_g=yes
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4512 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4513 if test "$ac_test_CXXFLAGS" = set; then
4514 CXXFLAGS=$ac_save_CXXFLAGS
4515 elif test $ac_cv_prog_cxx_g = yes; then
4516 if test "$GXX" = yes; then
4517 CXXFLAGS="-g -O2"
4518 else
4519 CXXFLAGS="-g"
4521 else
4522 if test "$GXX" = yes; then
4523 CXXFLAGS="-O2"
4524 else
4525 CXXFLAGS=
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 if test -n "$ac_tool_prefix"; then
4538 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4539 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$GNATBIND"; then
4546 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 GNATBIND=$ac_cv_prog_GNATBIND
4566 if test -n "$GNATBIND"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4568 $as_echo "$GNATBIND" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$ac_cv_prog_GNATBIND"; then
4577 ac_ct_GNATBIND=$GNATBIND
4578 # Extract the first word of "gnatbind", so it can be a program name with args.
4579 set dummy gnatbind; ac_word=$2
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 $as_echo_n "checking for $ac_word... " >&6; }
4582 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if test -n "$ac_ct_GNATBIND"; then
4586 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 break 2
4599 done
4600 done
4601 IFS=$as_save_IFS
4605 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4606 if test -n "$ac_ct_GNATBIND"; then
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4608 $as_echo "$ac_ct_GNATBIND" >&6; }
4609 else
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 $as_echo "no" >&6; }
4614 if test "x$ac_ct_GNATBIND" = x; then
4615 GNATBIND="no"
4616 else
4617 case $cross_compiling:$ac_tool_warned in
4618 yes:)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4621 ac_tool_warned=yes ;;
4622 esac
4623 GNATBIND=$ac_ct_GNATBIND
4625 else
4626 GNATBIND="$ac_cv_prog_GNATBIND"
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4631 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 if test -n "$GNATMAKE"; then
4638 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
4651 done
4652 done
4653 IFS=$as_save_IFS
4657 GNATMAKE=$ac_cv_prog_GNATMAKE
4658 if test -n "$GNATMAKE"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4660 $as_echo "$GNATMAKE" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$ac_cv_prog_GNATMAKE"; then
4669 ac_ct_GNATMAKE=$GNATMAKE
4670 # Extract the first word of "gnatmake", so it can be a program name with args.
4671 set dummy gnatmake; ac_word=$2
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$ac_ct_GNATMAKE"; then
4678 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4691 done
4692 done
4693 IFS=$as_save_IFS
4697 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4698 if test -n "$ac_ct_GNATMAKE"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4700 $as_echo "$ac_ct_GNATMAKE" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4703 $as_echo "no" >&6; }
4706 if test "x$ac_ct_GNATMAKE" = x; then
4707 GNATMAKE="no"
4708 else
4709 case $cross_compiling:$ac_tool_warned in
4710 yes:)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715 GNATMAKE=$ac_ct_GNATMAKE
4717 else
4718 GNATMAKE="$ac_cv_prog_GNATMAKE"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4722 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4723 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 cat >conftest.adb <<EOF
4727 procedure conftest is begin null; end conftest;
4729 acx_cv_cc_gcc_supports_ada=no
4730 # There is a bug in old released versions of GCC which causes the
4731 # driver to exit successfully when the appropriate language module
4732 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4733 # Therefore we must check for the error message as well as an
4734 # unsuccessful exit.
4735 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4736 # given a .adb file, but produce no object file. So we must check
4737 # if an object file was really produced to guard against this.
4738 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4739 if test x"$errors" = x && test -f conftest.$ac_objext; then
4740 acx_cv_cc_gcc_supports_ada=yes
4742 rm -f conftest.*
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4745 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4747 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4748 have_gnat=yes
4749 else
4750 have_gnat=no
4754 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4755 # optimizations to be activated explicitly by the toplevel.
4756 case "$CC" in
4757 */prev-gcc/xgcc*) ;;
4758 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4759 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4760 esac
4764 # Determine PICFLAG for target gnatlib.
4769 case "${target}" in
4770 # PIC is the default on some targets or must not be used.
4771 *-*-darwin*)
4772 # PIC is the default on this platform
4773 # Common symbols not allowed in MH_DYLIB files
4774 PICFLAG_FOR_TARGET=-fno-common
4776 alpha*-dec-osf5*)
4777 # PIC is the default.
4779 hppa*64*-*-hpux*)
4780 # PIC is the default for 64-bit PA HP-UX.
4782 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4784 i[34567]86-*-mingw* | x86_64-*-mingw*)
4786 i[34567]86-*-interix[3-9]*)
4787 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4788 # Instead, we relocate shared libraries at runtime.
4790 i[34567]86-*-nto-qnx*)
4791 # QNX uses GNU C++, but need to define -shared option too, otherwise
4792 # it will coredump.
4793 PICFLAG_FOR_TARGET='-fPIC -shared'
4795 i[34567]86-pc-msdosdjgpp*)
4796 # DJGPP does not support shared libraries at all.
4798 ia64*-*-hpux*)
4799 # On IA64 HP-UX, PIC is the default but the pic flag
4800 # sets the default TLS model and affects inlining.
4801 PICFLAG_FOR_TARGET=-fPIC
4803 mips-sgi-irix6*)
4804 # PIC is the default.
4806 rs6000-ibm-aix* | powerpc-ibm-aix*)
4807 # All AIX code is PIC.
4810 # Some targets support both -fPIC and -fpic, but prefer the latter.
4811 # FIXME: Why?
4812 i[34567]86-*-* | x86_64-*-*)
4813 PICFLAG_FOR_TARGET=-fpic
4815 # FIXME: Override -fPIC default in libgcc only?
4816 sh-*-linux* | sh[2346lbe]*-*-linux*)
4817 PICFLAG_FOR_TARGET=-fpic
4819 # FIXME: Simplify to sh*-*-netbsd*?
4820 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4821 sh64-*-netbsd* | sh64l*-*-netbsd*)
4822 PICFLAG_FOR_TARGET=-fpic
4824 # Default to -fPIC unless specified otherwise.
4826 PICFLAG_FOR_TARGET=-fPIC
4828 esac
4830 # If the user explicitly uses -fpic/-fPIC, keep that.
4831 case "${CFLAGS_FOR_TARGET}" in
4832 *-fpic*)
4833 PICFLAG_FOR_TARGET=-fpic
4835 *-fPIC*)
4836 PICFLAG_FOR_TARGET=-fPIC
4838 esac
4842 # -------------------------
4843 # Check C compiler features
4844 # -------------------------
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4853 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4854 # On Suns, sometimes $CPP names a directory.
4855 if test -n "$CPP" && test -d "$CPP"; then
4856 CPP=
4858 if test -z "$CPP"; then
4859 if test "${ac_cv_prog_CPP+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 # Double quotes because CPP needs to be expanded
4863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4865 ac_preproc_ok=false
4866 for ac_c_preproc_warn_flag in '' yes
4868 # Use a header file that comes with gcc, so configuring glibc
4869 # with a fresh cross-compiler works.
4870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4871 # <limits.h> exists even on freestanding compilers.
4872 # On the NeXT, cc -E runs the code through the compiler's parser,
4873 # not just through cpp. "Syntax error" is here to catch this case.
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #ifdef __STDC__
4877 # include <limits.h>
4878 #else
4879 # include <assert.h>
4880 #endif
4881 Syntax error
4882 _ACEOF
4883 if ac_fn_c_try_cpp "$LINENO"; then :
4885 else
4886 # Broken: fails on valid input.
4887 continue
4889 rm -f conftest.err conftest.$ac_ext
4891 # OK, works on sane cases. Now check whether nonexistent headers
4892 # can be detected and how.
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4896 _ACEOF
4897 if ac_fn_c_try_cpp "$LINENO"; then :
4898 # Broken: success on invalid input.
4899 continue
4900 else
4901 # Passes both tests.
4902 ac_preproc_ok=:
4903 break
4905 rm -f conftest.err conftest.$ac_ext
4907 done
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.err conftest.$ac_ext
4910 if $ac_preproc_ok; then :
4911 break
4914 done
4915 ac_cv_prog_CPP=$CPP
4918 CPP=$ac_cv_prog_CPP
4919 else
4920 ac_cv_prog_CPP=$CPP
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4923 $as_echo "$CPP" >&6; }
4924 ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940 Syntax error
4941 _ACEOF
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4944 else
4945 # Broken: fails on valid input.
4946 continue
4948 rm -f conftest.err conftest.$ac_ext
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957 # Broken: success on invalid input.
4958 continue
4959 else
4960 # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4964 rm -f conftest.err conftest.$ac_ext
4966 done
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4971 else
4972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4974 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4975 See \`config.log' for more details." "$LINENO" 5; }
4978 ac_ext=c
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4986 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4987 if test "${ac_cv_path_GREP+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -z "$GREP"; then
4991 ac_path_GREP_found=false
4992 # Loop through the user's path and test for each of PROGNAME-LIST
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_prog in grep ggrep; do
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5001 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5002 # Check for GNU ac_path_GREP and select it if it is found.
5003 # Check for GNU $ac_path_GREP
5004 case `"$ac_path_GREP" --version 2>&1` in
5005 *GNU*)
5006 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5008 ac_count=0
5009 $as_echo_n 0123456789 >"conftest.in"
5010 while :
5012 cat "conftest.in" "conftest.in" >"conftest.tmp"
5013 mv "conftest.tmp" "conftest.in"
5014 cp "conftest.in" "conftest.nl"
5015 $as_echo 'GREP' >> "conftest.nl"
5016 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5018 as_fn_arith $ac_count + 1 && ac_count=$as_val
5019 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5020 # Best one so far, save it but keep looking for a better one
5021 ac_cv_path_GREP="$ac_path_GREP"
5022 ac_path_GREP_max=$ac_count
5024 # 10*(2^10) chars as input seems more than enough
5025 test $ac_count -gt 10 && break
5026 done
5027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028 esac
5030 $ac_path_GREP_found && break 3
5031 done
5032 done
5033 done
5034 IFS=$as_save_IFS
5035 if test -z "$ac_cv_path_GREP"; then
5036 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5038 else
5039 ac_cv_path_GREP=$GREP
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5044 $as_echo "$ac_cv_path_GREP" >&6; }
5045 GREP="$ac_cv_path_GREP"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5049 $as_echo_n "checking for egrep... " >&6; }
5050 if test "${ac_cv_path_EGREP+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5054 then ac_cv_path_EGREP="$GREP -E"
5055 else
5056 if test -z "$EGREP"; then
5057 ac_path_EGREP_found=false
5058 # Loop through the user's path and test for each of PROGNAME-LIST
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_prog in egrep; do
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5067 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5068 # Check for GNU ac_path_EGREP and select it if it is found.
5069 # Check for GNU $ac_path_EGREP
5070 case `"$ac_path_EGREP" --version 2>&1` in
5071 *GNU*)
5072 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5074 ac_count=0
5075 $as_echo_n 0123456789 >"conftest.in"
5076 while :
5078 cat "conftest.in" "conftest.in" >"conftest.tmp"
5079 mv "conftest.tmp" "conftest.in"
5080 cp "conftest.in" "conftest.nl"
5081 $as_echo 'EGREP' >> "conftest.nl"
5082 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5084 as_fn_arith $ac_count + 1 && ac_count=$as_val
5085 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5086 # Best one so far, save it but keep looking for a better one
5087 ac_cv_path_EGREP="$ac_path_EGREP"
5088 ac_path_EGREP_max=$ac_count
5090 # 10*(2^10) chars as input seems more than enough
5091 test $ac_count -gt 10 && break
5092 done
5093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5094 esac
5096 $ac_path_EGREP_found && break 3
5097 done
5098 done
5099 done
5100 IFS=$as_save_IFS
5101 if test -z "$ac_cv_path_EGREP"; then
5102 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5104 else
5105 ac_cv_path_EGREP=$EGREP
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5111 $as_echo "$ac_cv_path_EGREP" >&6; }
5112 EGREP="$ac_cv_path_EGREP"
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5116 $as_echo_n "checking for ANSI C header files... " >&6; }
5117 if test "${ac_cv_header_stdc+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <stdlib.h>
5123 #include <stdarg.h>
5124 #include <string.h>
5125 #include <float.h>
5128 main ()
5132 return 0;
5134 _ACEOF
5135 if ac_fn_c_try_compile "$LINENO"; then :
5136 ac_cv_header_stdc=yes
5137 else
5138 ac_cv_header_stdc=no
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 if test $ac_cv_header_stdc = yes; then
5143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #include <string.h>
5148 _ACEOF
5149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5150 $EGREP "memchr" >/dev/null 2>&1; then :
5152 else
5153 ac_cv_header_stdc=no
5155 rm -f conftest*
5159 if test $ac_cv_header_stdc = yes; then
5160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <stdlib.h>
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "free" >/dev/null 2>&1; then :
5169 else
5170 ac_cv_header_stdc=no
5172 rm -f conftest*
5176 if test $ac_cv_header_stdc = yes; then
5177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5178 if test "$cross_compiling" = yes; then :
5180 else
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5183 #include <ctype.h>
5184 #include <stdlib.h>
5185 #if ((' ' & 0x0FF) == 0x020)
5186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5188 #else
5189 # define ISLOWER(c) \
5190 (('a' <= (c) && (c) <= 'i') \
5191 || ('j' <= (c) && (c) <= 'r') \
5192 || ('s' <= (c) && (c) <= 'z'))
5193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5194 #endif
5196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5198 main ()
5200 int i;
5201 for (i = 0; i < 256; i++)
5202 if (XOR (islower (i), ISLOWER (i))
5203 || toupper (i) != TOUPPER (i))
5204 return 2;
5205 return 0;
5207 _ACEOF
5208 if ac_fn_c_try_run "$LINENO"; then :
5210 else
5211 ac_cv_header_stdc=no
5213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5214 conftest.$ac_objext conftest.beam conftest.$ac_ext
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5220 $as_echo "$ac_cv_header_stdc" >&6; }
5221 if test $ac_cv_header_stdc = yes; then
5223 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5227 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5229 inttypes.h stdint.h unistd.h
5230 do :
5231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5232 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5234 eval as_val=\$$as_ac_Header
5235 if test "x$as_val" = x""yes; then :
5236 cat >>confdefs.h <<_ACEOF
5237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5238 _ACEOF
5242 done
5246 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5247 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5248 MINIX=yes
5249 else
5250 MINIX=
5254 if test "$MINIX" = yes; then
5256 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5259 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5262 $as_echo "#define _MINIX 1" >>confdefs.h
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5268 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5269 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5275 # define __EXTENSIONS__ 1
5276 $ac_includes_default
5278 main ()
5282 return 0;
5284 _ACEOF
5285 if ac_fn_c_try_compile "$LINENO"; then :
5286 ac_cv_safe_to_define___extensions__=yes
5287 else
5288 ac_cv_safe_to_define___extensions__=no
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5293 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5294 test $ac_cv_safe_to_define___extensions__ = yes &&
5295 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5297 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5299 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5301 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5303 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5306 ac_ext=c
5307 ac_cpp='$CPP $CPPFLAGS'
5308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5312 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5313 # On Suns, sometimes $CPP names a directory.
5314 if test -n "$CPP" && test -d "$CPP"; then
5315 CPP=
5317 if test -z "$CPP"; then
5318 if test "${ac_cv_prog_CPP+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 # Double quotes because CPP needs to be expanded
5322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5324 ac_preproc_ok=false
5325 for ac_c_preproc_warn_flag in '' yes
5327 # Use a header file that comes with gcc, so configuring glibc
5328 # with a fresh cross-compiler works.
5329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330 # <limits.h> exists even on freestanding compilers.
5331 # On the NeXT, cc -E runs the code through the compiler's parser,
5332 # not just through cpp. "Syntax error" is here to catch this case.
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #ifdef __STDC__
5336 # include <limits.h>
5337 #else
5338 # include <assert.h>
5339 #endif
5340 Syntax error
5341 _ACEOF
5342 if ac_fn_c_try_cpp "$LINENO"; then :
5344 else
5345 # Broken: fails on valid input.
5346 continue
5348 rm -f conftest.err conftest.$ac_ext
5350 # OK, works on sane cases. Now check whether nonexistent headers
5351 # can be detected and how.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <ac_nonexistent.h>
5355 _ACEOF
5356 if ac_fn_c_try_cpp "$LINENO"; then :
5357 # Broken: success on invalid input.
5358 continue
5359 else
5360 # Passes both tests.
5361 ac_preproc_ok=:
5362 break
5364 rm -f conftest.err conftest.$ac_ext
5366 done
5367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5368 rm -f conftest.err conftest.$ac_ext
5369 if $ac_preproc_ok; then :
5370 break
5373 done
5374 ac_cv_prog_CPP=$CPP
5377 CPP=$ac_cv_prog_CPP
5378 else
5379 ac_cv_prog_CPP=$CPP
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5382 $as_echo "$CPP" >&6; }
5383 ac_preproc_ok=false
5384 for ac_c_preproc_warn_flag in '' yes
5386 # Use a header file that comes with gcc, so configuring glibc
5387 # with a fresh cross-compiler works.
5388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 # <limits.h> exists even on freestanding compilers.
5390 # On the NeXT, cc -E runs the code through the compiler's parser,
5391 # not just through cpp. "Syntax error" is here to catch this case.
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #ifdef __STDC__
5395 # include <limits.h>
5396 #else
5397 # include <assert.h>
5398 #endif
5399 Syntax error
5400 _ACEOF
5401 if ac_fn_c_try_cpp "$LINENO"; then :
5403 else
5404 # Broken: fails on valid input.
5405 continue
5407 rm -f conftest.err conftest.$ac_ext
5409 # OK, works on sane cases. Now check whether nonexistent headers
5410 # can be detected and how.
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <ac_nonexistent.h>
5414 _ACEOF
5415 if ac_fn_c_try_cpp "$LINENO"; then :
5416 # Broken: success on invalid input.
5417 continue
5418 else
5419 # Passes both tests.
5420 ac_preproc_ok=:
5421 break
5423 rm -f conftest.err conftest.$ac_ext
5425 done
5426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5427 rm -f conftest.err conftest.$ac_ext
5428 if $ac_preproc_ok; then :
5430 else
5431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5433 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5434 See \`config.log' for more details." "$LINENO" 5; }
5437 ac_ext=c
5438 ac_cpp='$CPP $CPPFLAGS'
5439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5444 $as_echo_n "checking for inline... " >&6; }
5445 if test "${ac_cv_c_inline+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 ac_cv_c_inline=no
5449 for ac_kw in inline __inline__ __inline; do
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifndef __cplusplus
5453 typedef int foo_t;
5454 static $ac_kw foo_t static_foo () {return 0; }
5455 $ac_kw foo_t foo () {return 0; }
5456 #endif
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 ac_cv_c_inline=$ac_kw
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 test "$ac_cv_c_inline" != no && break
5464 done
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5468 $as_echo "$ac_cv_c_inline" >&6; }
5470 case $ac_cv_c_inline in
5471 inline | yes) ;;
5473 case $ac_cv_c_inline in
5474 no) ac_val=;;
5475 *) ac_val=$ac_cv_c_inline;;
5476 esac
5477 cat >>confdefs.h <<_ACEOF
5478 #ifndef __cplusplus
5479 #define inline $ac_val
5480 #endif
5481 _ACEOF
5483 esac
5486 # Check whether --enable-largefile was given.
5487 if test "${enable_largefile+set}" = set; then :
5488 enableval=$enable_largefile;
5491 if test "$enable_largefile" != no; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5494 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5495 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 ac_cv_sys_largefile_CC=no
5499 if test "$GCC" != yes; then
5500 ac_save_CC=$CC
5501 while :; do
5502 # IRIX 6.2 and later do not support large files by default,
5503 # so use the C compiler's -n32 option if that helps.
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #include <sys/types.h>
5507 /* Check that off_t can represent 2**63 - 1 correctly.
5508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5509 since some C++ compilers masquerading as C compilers
5510 incorrectly reject 9223372036854775807. */
5511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5513 && LARGE_OFF_T % 2147483647 == 1)
5514 ? 1 : -1];
5516 main ()
5520 return 0;
5522 _ACEOF
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 break
5526 rm -f core conftest.err conftest.$ac_objext
5527 CC="$CC -n32"
5528 if ac_fn_c_try_compile "$LINENO"; then :
5529 ac_cv_sys_largefile_CC=' -n32'; break
5531 rm -f core conftest.err conftest.$ac_objext
5532 break
5533 done
5534 CC=$ac_save_CC
5535 rm -f conftest.$ac_ext
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5539 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5540 if test "$ac_cv_sys_largefile_CC" != no; then
5541 CC=$CC$ac_cv_sys_largefile_CC
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5545 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5546 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 while :; do
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #include <sys/types.h>
5553 /* Check that off_t can represent 2**63 - 1 correctly.
5554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5555 since some C++ compilers masquerading as C compilers
5556 incorrectly reject 9223372036854775807. */
5557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5559 && LARGE_OFF_T % 2147483647 == 1)
5560 ? 1 : -1];
5562 main ()
5566 return 0;
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_sys_file_offset_bits=no; break
5572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #define _FILE_OFFSET_BITS 64
5576 #include <sys/types.h>
5577 /* Check that off_t can represent 2**63 - 1 correctly.
5578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5579 since some C++ compilers masquerading as C compilers
5580 incorrectly reject 9223372036854775807. */
5581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5583 && LARGE_OFF_T % 2147483647 == 1)
5584 ? 1 : -1];
5586 main ()
5590 return 0;
5592 _ACEOF
5593 if ac_fn_c_try_compile "$LINENO"; then :
5594 ac_cv_sys_file_offset_bits=64; break
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 ac_cv_sys_file_offset_bits=unknown
5598 break
5599 done
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5602 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5603 case $ac_cv_sys_file_offset_bits in #(
5604 no | unknown) ;;
5606 cat >>confdefs.h <<_ACEOF
5607 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5608 _ACEOF
5610 esac
5611 rm -rf conftest*
5612 if test $ac_cv_sys_file_offset_bits = unknown; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5614 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5615 if test "${ac_cv_sys_large_files+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 while :; do
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 #include <sys/types.h>
5622 /* Check that off_t can represent 2**63 - 1 correctly.
5623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5624 since some C++ compilers masquerading as C compilers
5625 incorrectly reject 9223372036854775807. */
5626 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5628 && LARGE_OFF_T % 2147483647 == 1)
5629 ? 1 : -1];
5631 main ()
5635 return 0;
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639 ac_cv_sys_large_files=no; break
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #define _LARGE_FILES 1
5645 #include <sys/types.h>
5646 /* Check that off_t can represent 2**63 - 1 correctly.
5647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5648 since some C++ compilers masquerading as C compilers
5649 incorrectly reject 9223372036854775807. */
5650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5652 && LARGE_OFF_T % 2147483647 == 1)
5653 ? 1 : -1];
5655 main ()
5659 return 0;
5661 _ACEOF
5662 if ac_fn_c_try_compile "$LINENO"; then :
5663 ac_cv_sys_large_files=1; break
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 ac_cv_sys_large_files=unknown
5667 break
5668 done
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5671 $as_echo "$ac_cv_sys_large_files" >&6; }
5672 case $ac_cv_sys_large_files in #(
5673 no | unknown) ;;
5675 cat >>confdefs.h <<_ACEOF
5676 #define _LARGE_FILES $ac_cv_sys_large_files
5677 _ACEOF
5679 esac
5680 rm -rf conftest*
5685 # sizeof(char) is 1 by definition.
5686 # The cast to long int works around a bug in the HP C Compiler
5687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5689 # This bug is HP SR number 8606223364.
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5691 $as_echo_n "checking size of void *... " >&6; }
5692 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5697 else
5698 if test "$ac_cv_type_void_p" = yes; then
5699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5701 { as_fn_set_status 77
5702 as_fn_error "cannot compute sizeof (void *)
5703 See \`config.log' for more details." "$LINENO" 5; }; }
5704 else
5705 ac_cv_sizeof_void_p=0
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5711 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5715 cat >>confdefs.h <<_ACEOF
5716 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5717 _ACEOF
5720 # The cast to long int works around a bug in the HP C Compiler
5721 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5722 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5723 # This bug is HP SR number 8606223364.
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5725 $as_echo_n "checking size of short... " >&6; }
5726 if test "${ac_cv_sizeof_short+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5731 else
5732 if test "$ac_cv_type_short" = yes; then
5733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5735 { as_fn_set_status 77
5736 as_fn_error "cannot compute sizeof (short)
5737 See \`config.log' for more details." "$LINENO" 5; }; }
5738 else
5739 ac_cv_sizeof_short=0
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5745 $as_echo "$ac_cv_sizeof_short" >&6; }
5749 cat >>confdefs.h <<_ACEOF
5750 #define SIZEOF_SHORT $ac_cv_sizeof_short
5751 _ACEOF
5754 # The cast to long int works around a bug in the HP C Compiler
5755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5757 # This bug is HP SR number 8606223364.
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5759 $as_echo_n "checking size of int... " >&6; }
5760 if test "${ac_cv_sizeof_int+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5765 else
5766 if test "$ac_cv_type_int" = yes; then
5767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 { as_fn_set_status 77
5770 as_fn_error "cannot compute sizeof (int)
5771 See \`config.log' for more details." "$LINENO" 5; }; }
5772 else
5773 ac_cv_sizeof_int=0
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5779 $as_echo "$ac_cv_sizeof_int" >&6; }
5783 cat >>confdefs.h <<_ACEOF
5784 #define SIZEOF_INT $ac_cv_sizeof_int
5785 _ACEOF
5788 # The cast to long int works around a bug in the HP C Compiler
5789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5791 # This bug is HP SR number 8606223364.
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5793 $as_echo_n "checking size of long... " >&6; }
5794 if test "${ac_cv_sizeof_long+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5799 else
5800 if test "$ac_cv_type_long" = yes; then
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803 { as_fn_set_status 77
5804 as_fn_error "cannot compute sizeof (long)
5805 See \`config.log' for more details." "$LINENO" 5; }; }
5806 else
5807 ac_cv_sizeof_long=0
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5813 $as_echo "$ac_cv_sizeof_long" >&6; }
5817 cat >>confdefs.h <<_ACEOF
5818 #define SIZEOF_LONG $ac_cv_sizeof_long
5819 _ACEOF
5822 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5823 if test "x$ac_cv_type_long_long" = x""yes; then :
5825 cat >>confdefs.h <<_ACEOF
5826 #define HAVE_LONG_LONG 1
5827 _ACEOF
5829 # The cast to long int works around a bug in the HP C Compiler
5830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5832 # This bug is HP SR number 8606223364.
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5834 $as_echo_n "checking size of long long... " >&6; }
5835 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837 else
5838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5840 else
5841 if test "$ac_cv_type_long_long" = yes; then
5842 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5844 { as_fn_set_status 77
5845 as_fn_error "cannot compute sizeof (long long)
5846 See \`config.log' for more details." "$LINENO" 5; }; }
5847 else
5848 ac_cv_sizeof_long_long=0
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5854 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5858 cat >>confdefs.h <<_ACEOF
5859 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5860 _ACEOF
5865 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5866 case $ac_cv_c_int8_t in #(
5867 no|yes) ;; #(
5870 cat >>confdefs.h <<_ACEOF
5871 #define int8_t $ac_cv_c_int8_t
5872 _ACEOF
5874 esac
5876 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5877 case $ac_cv_c_int16_t in #(
5878 no|yes) ;; #(
5881 cat >>confdefs.h <<_ACEOF
5882 #define int16_t $ac_cv_c_int16_t
5883 _ACEOF
5885 esac
5887 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5888 case $ac_cv_c_int32_t in #(
5889 no|yes) ;; #(
5892 cat >>confdefs.h <<_ACEOF
5893 #define int32_t $ac_cv_c_int32_t
5894 _ACEOF
5896 esac
5898 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5899 case $ac_cv_c_int64_t in #(
5900 no|yes) ;; #(
5903 cat >>confdefs.h <<_ACEOF
5904 #define int64_t $ac_cv_c_int64_t
5905 _ACEOF
5907 esac
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5911 $as_echo_n "checking for long long int... " >&6; }
5912 if test "${ac_cv_type_long_long_int+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5918 /* For now, do not test the preprocessor; as of 2007 there are too many
5919 implementations with broken preprocessors. Perhaps this can
5920 be revisited in 2012. In the meantime, code should not expect
5921 #if to work with literals wider than 32 bits. */
5922 /* Test literals. */
5923 long long int ll = 9223372036854775807ll;
5924 long long int nll = -9223372036854775807LL;
5925 unsigned long long int ull = 18446744073709551615ULL;
5926 /* Test constant expressions. */
5927 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5928 ? 1 : -1)];
5929 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5930 ? 1 : -1)];
5931 int i = 63;
5933 main ()
5935 /* Test availability of runtime routines for shift and division. */
5936 long long int llmax = 9223372036854775807ll;
5937 unsigned long long int ullmax = 18446744073709551615ull;
5938 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5939 | (llmax / ll) | (llmax % ll)
5940 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5941 | (ullmax / ull) | (ullmax % ull));
5943 return 0;
5946 _ACEOF
5947 if ac_fn_c_try_link "$LINENO"; then :
5948 if test "$cross_compiling" = yes; then :
5949 ac_cv_type_long_long_int=yes
5950 else
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #include <limits.h>
5954 #ifndef LLONG_MAX
5955 # define HALF \
5956 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5957 # define LLONG_MAX (HALF - 1 + HALF)
5958 #endif
5960 main ()
5962 long long int n = 1;
5963 int i;
5964 for (i = 0; ; i++)
5966 long long int m = n << i;
5967 if (m >> i != n)
5968 return 1;
5969 if (LLONG_MAX / 2 < m)
5970 break;
5972 return 0;
5974 return 0;
5976 _ACEOF
5977 if ac_fn_c_try_run "$LINENO"; then :
5978 ac_cv_type_long_long_int=yes
5979 else
5980 ac_cv_type_long_long_int=no
5982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5983 conftest.$ac_objext conftest.beam conftest.$ac_ext
5986 else
5987 ac_cv_type_long_long_int=no
5989 rm -f core conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5993 $as_echo "$ac_cv_type_long_long_int" >&6; }
5994 if test $ac_cv_type_long_long_int = yes; then
5996 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6002 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6003 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6005 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6007 else
6008 test $ac_cv_type_long_long_int = yes \
6009 && ac_type='long long int' \
6010 || ac_type='long int'
6012 cat >>confdefs.h <<_ACEOF
6013 #define intmax_t $ac_type
6014 _ACEOF
6020 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6021 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6023 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6025 else
6026 for ac_type in 'int' 'long int' 'long long int'; do
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 $ac_includes_default
6031 main ()
6033 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6034 test_array [0] = 0
6037 return 0;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6042 cat >>confdefs.h <<_ACEOF
6043 #define intptr_t $ac_type
6044 _ACEOF
6046 ac_type=
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 test -z "$ac_type" && break
6050 done
6054 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6055 case $ac_cv_c_uint8_t in #(
6056 no|yes) ;; #(
6059 $as_echo "#define _UINT8_T 1" >>confdefs.h
6062 cat >>confdefs.h <<_ACEOF
6063 #define uint8_t $ac_cv_c_uint8_t
6064 _ACEOF
6066 esac
6068 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6069 case $ac_cv_c_uint16_t in #(
6070 no|yes) ;; #(
6074 cat >>confdefs.h <<_ACEOF
6075 #define uint16_t $ac_cv_c_uint16_t
6076 _ACEOF
6078 esac
6080 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6081 case $ac_cv_c_uint32_t in #(
6082 no|yes) ;; #(
6085 $as_echo "#define _UINT32_T 1" >>confdefs.h
6088 cat >>confdefs.h <<_ACEOF
6089 #define uint32_t $ac_cv_c_uint32_t
6090 _ACEOF
6092 esac
6094 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6095 case $ac_cv_c_uint64_t in #(
6096 no|yes) ;; #(
6099 $as_echo "#define _UINT64_T 1" >>confdefs.h
6102 cat >>confdefs.h <<_ACEOF
6103 #define uint64_t $ac_cv_c_uint64_t
6104 _ACEOF
6106 esac
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6110 $as_echo_n "checking for unsigned long long int... " >&6; }
6111 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6117 /* For now, do not test the preprocessor; as of 2007 there are too many
6118 implementations with broken preprocessors. Perhaps this can
6119 be revisited in 2012. In the meantime, code should not expect
6120 #if to work with literals wider than 32 bits. */
6121 /* Test literals. */
6122 long long int ll = 9223372036854775807ll;
6123 long long int nll = -9223372036854775807LL;
6124 unsigned long long int ull = 18446744073709551615ULL;
6125 /* Test constant expressions. */
6126 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6127 ? 1 : -1)];
6128 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6129 ? 1 : -1)];
6130 int i = 63;
6132 main ()
6134 /* Test availability of runtime routines for shift and division. */
6135 long long int llmax = 9223372036854775807ll;
6136 unsigned long long int ullmax = 18446744073709551615ull;
6137 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6138 | (llmax / ll) | (llmax % ll)
6139 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6140 | (ullmax / ull) | (ullmax % ull));
6142 return 0;
6145 _ACEOF
6146 if ac_fn_c_try_link "$LINENO"; then :
6147 ac_cv_type_unsigned_long_long_int=yes
6148 else
6149 ac_cv_type_unsigned_long_long_int=no
6151 rm -f core conftest.err conftest.$ac_objext \
6152 conftest$ac_exeext conftest.$ac_ext
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6155 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6156 if test $ac_cv_type_unsigned_long_long_int = yes; then
6158 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6164 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6165 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6167 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6169 else
6170 test $ac_cv_type_unsigned_long_long_int = yes \
6171 && ac_type='unsigned long long int' \
6172 || ac_type='unsigned long int'
6174 cat >>confdefs.h <<_ACEOF
6175 #define uintmax_t $ac_type
6176 _ACEOF
6182 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6183 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6185 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6187 else
6188 for ac_type in 'unsigned int' 'unsigned long int' \
6189 'unsigned long long int'; do
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 $ac_includes_default
6194 main ()
6196 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6197 test_array [0] = 0
6200 return 0;
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6205 cat >>confdefs.h <<_ACEOF
6206 #define uintptr_t $ac_type
6207 _ACEOF
6209 ac_type=
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 test -z "$ac_type" && break
6213 done
6229 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6230 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6233 # check what underlying integer type int64_t uses
6234 ac_ext=cpp
6235 ac_cpp='$CXXCPP $CPPFLAGS'
6236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6242 $as_echo_n "checking for int64_t underlying type... " >&6; }
6243 if test "${ac_cv_int64_t_type+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248 /* end confdefs.h. */
6250 #ifdef HAVE_STDINT_H
6251 #include <stdint.h>
6252 #endif
6253 template <typename T> struct X { };
6254 template <>
6255 struct X<long> { typedef long t; };
6258 main ()
6260 X<int64_t>::t x;
6262 return 0;
6264 _ACEOF
6265 if ac_fn_cxx_try_compile "$LINENO"; then :
6266 ac_cv_int64_t_type=long
6267 else
6268 ac_cv_int64_t_type="long long"
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6273 $as_echo "$ac_cv_int64_t_type" >&6; }
6274 if test "$ac_cv_int64_t_type" = "long"; then
6276 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6278 else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6282 #ifdef HAVE_STDINT_H
6283 #include <stdint.h>
6284 #endif
6285 template <typename T> struct X { };
6286 template <>
6287 struct X<long long> { typedef long long t; };
6290 main ()
6292 X<int64_t>::t x;
6294 return 0;
6296 _ACEOF
6297 if ac_fn_cxx_try_compile "$LINENO"; then :
6299 else
6300 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 ac_ext=c
6305 ac_cpp='$CPP $CPPFLAGS'
6306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314 # ---------------------
6315 # Warnings and checking
6316 # ---------------------
6318 # Check $CC warning features (if it's GCC).
6319 # We want to use -pedantic, but we don't want warnings about
6320 # * 'long long'
6321 # * variadic macros
6322 # * overlong strings
6323 # * C++11 narrowing conversions in { }
6324 # So, we only use -pedantic if we can disable those warnings.
6326 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6327 # Check whether --enable-build-format-warnings was given.
6328 if test "${enable_build_format_warnings+set}" = set; then :
6329 enableval=$enable_build_format_warnings;
6330 else
6331 enable_build_format_warnings=yes
6334 if test $enable_build_format_warnings = no; then :
6335 wf_opt=-Wno-format
6336 else
6337 wf_opt=
6339 loose_warn=
6340 save_CFLAGS="$CFLAGS"
6341 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6342 # Do the check with the no- prefix removed since gcc silently
6343 # accepts any -Wno-* option on purpose
6344 case $real_option in
6345 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6346 *) option=$real_option ;;
6347 esac
6348 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6351 $as_echo_n "checking whether $CC supports $option... " >&6; }
6352 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 CFLAGS="$option"
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6360 main ()
6364 return 0;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"; then :
6368 eval "$as_acx_Woption=yes"
6369 else
6370 eval "$as_acx_Woption=no"
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 eval ac_res=\$$as_acx_Woption
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6377 $as_echo "$ac_res" >&6; }
6378 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6379 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6381 done
6382 CFLAGS="$save_CFLAGS"
6384 c_loose_warn=
6385 save_CFLAGS="$CFLAGS"
6386 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6387 # Do the check with the no- prefix removed since gcc silently
6388 # accepts any -Wno-* option on purpose
6389 case $real_option in
6390 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6391 *) option=$real_option ;;
6392 esac
6393 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6396 $as_echo_n "checking whether $CC supports $option... " >&6; }
6397 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 CFLAGS="$option"
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6405 main ()
6409 return 0;
6411 _ACEOF
6412 if ac_fn_c_try_compile "$LINENO"; then :
6413 eval "$as_acx_Woption=yes"
6414 else
6415 eval "$as_acx_Woption=no"
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 eval ac_res=\$$as_acx_Woption
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6422 $as_echo "$ac_res" >&6; }
6423 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6424 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6426 done
6427 CFLAGS="$save_CFLAGS"
6429 strict_warn=
6430 save_CFLAGS="$CFLAGS"
6431 for real_option in -Wmissing-format-attribute; do
6432 # Do the check with the no- prefix removed since gcc silently
6433 # accepts any -Wno-* option on purpose
6434 case $real_option in
6435 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6436 *) option=$real_option ;;
6437 esac
6438 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6441 $as_echo_n "checking whether $CC supports $option... " >&6; }
6442 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 CFLAGS="$option"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6450 main ()
6454 return 0;
6456 _ACEOF
6457 if ac_fn_c_try_compile "$LINENO"; then :
6458 eval "$as_acx_Woption=yes"
6459 else
6460 eval "$as_acx_Woption=no"
6462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6465 eval ac_res=\$$as_acx_Woption
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6467 $as_echo "$ac_res" >&6; }
6468 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6469 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6471 done
6472 CFLAGS="$save_CFLAGS"
6474 save_CFLAGS="$CFLAGS"
6475 for real_option in -Woverloaded-virtual; do
6476 # Do the check with the no- prefix removed since gcc silently
6477 # accepts any -Wno-* option on purpose
6478 case $real_option in
6479 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6480 *) option=$real_option ;;
6481 esac
6482 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 CFLAGS="$option"
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6494 main ()
6498 return 0;
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 eval "$as_acx_Woption=yes"
6503 else
6504 eval "$as_acx_Woption=no"
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 eval ac_res=\$$as_acx_Woption
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6515 done
6516 CFLAGS="$save_CFLAGS"
6518 c_strict_warn=
6519 save_CFLAGS="$CFLAGS"
6520 for real_option in -Wold-style-definition -Wc++-compat; do
6521 # Do the check with the no- prefix removed since gcc silently
6522 # accepts any -Wno-* option on purpose
6523 case $real_option in
6524 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6525 *) option=$real_option ;;
6526 esac
6527 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6530 $as_echo_n "checking whether $CC supports $option... " >&6; }
6531 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 CFLAGS="$option"
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6539 main ()
6543 return 0;
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547 eval "$as_acx_Woption=yes"
6548 else
6549 eval "$as_acx_Woption=no"
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 eval ac_res=\$$as_acx_Woption
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6556 $as_echo "$ac_res" >&6; }
6557 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6558 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6560 done
6561 CFLAGS="$save_CFLAGS"
6563 # Do the check with the no- prefix removed from the warning options
6564 # since gcc silently accepts any -Wno-* option on purpose
6565 if test "$GCC" = yes; then :
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6567 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6568 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 save_CFLAGS="$CFLAGS"
6572 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6577 main ()
6581 return 0;
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6586 else
6587 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590 CFLAGS="$save_CFLAGS"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6593 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6594 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6595 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6600 # Check whether --enable-werror-always was given.
6601 if test "${enable_werror_always+set}" = set; then :
6602 enableval=$enable_werror_always;
6603 else
6604 enable_werror_always=no
6607 if test $enable_werror_always = yes; then :
6608 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6613 # The above macros do nothing if the compiler is not GCC. However, the
6614 # Makefile has more goo to add other flags, so these variables are used
6615 # to enable warnings only for GCC.
6616 warn_cflags=
6617 warn_cxxflags=
6618 if test "x$GCC" = "xyes"; then
6619 warn_cflags='$(GCC_WARN_CFLAGS)'
6620 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6625 # Disable exceptions and RTTI if building with g++
6626 noexception_flags=
6627 save_CFLAGS="$CFLAGS"
6628 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6629 # Do the check with the no- prefix removed since gcc silently
6630 # accepts any -Wno-* option on purpose
6631 case $real_option in
6632 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6633 *) option=$real_option ;;
6634 esac
6635 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6638 $as_echo_n "checking whether $CC supports $option... " >&6; }
6639 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 CFLAGS="$option"
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6647 main ()
6651 return 0;
6653 _ACEOF
6654 if ac_fn_c_try_compile "$LINENO"; then :
6655 eval "$as_acx_Woption=yes"
6656 else
6657 eval "$as_acx_Woption=no"
6659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 eval ac_res=\$$as_acx_Woption
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6664 $as_echo "$ac_res" >&6; }
6665 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6666 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6668 done
6669 CFLAGS="$save_CFLAGS"
6672 # Enable expensive internal checks
6673 is_release=
6674 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6675 is_release=yes
6678 # Check whether --enable-checking was given.
6679 if test "${enable_checking+set}" = set; then :
6680 enableval=$enable_checking; ac_checking_flags="${enableval}"
6681 else
6683 # Determine the default checks.
6684 if test x$is_release = x ; then
6685 ac_checking_flags=yes
6686 else
6687 ac_checking_flags=release
6691 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6692 for check in release $ac_checking_flags
6694 case $check in
6695 # these set all the flags to specific states
6696 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6697 ac_fold_checking= ; ac_gc_checking=1 ;
6698 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6699 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6700 ac_tree_checking=1 ; ac_valgrind_checking= ;
6701 ac_types_checking=1 ;;
6702 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6703 ac_fold_checking= ; ac_gc_checking= ;
6704 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6705 ac_rtlflag_checking= ; ac_runtime_checking= ;
6706 ac_tree_checking= ; ac_valgrind_checking= ;
6707 ac_types_checking= ;;
6708 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6709 ac_fold_checking=1 ; ac_gc_checking=1 ;
6710 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6711 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6712 ac_tree_checking=1 ; ac_valgrind_checking= ;
6713 ac_types_checking=1 ;;
6714 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6715 ac_fold_checking= ; ac_gc_checking= ;
6716 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6717 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6718 ac_tree_checking= ; ac_valgrind_checking= ;
6719 ac_types_checking= ;;
6720 # these enable particular checks
6721 assert) ac_assert_checking=1 ;;
6722 df) ac_df_checking=1 ;;
6723 fold) ac_fold_checking=1 ;;
6724 gc) ac_gc_checking=1 ;;
6725 gcac) ac_gc_always_collect=1 ;;
6726 gimple) ac_gimple_checking=1 ;;
6727 misc) ac_checking=1 ;;
6728 rtl) ac_rtl_checking=1 ;;
6729 rtlflag) ac_rtlflag_checking=1 ;;
6730 runtime) ac_runtime_checking=1 ;;
6731 tree) ac_tree_checking=1 ;;
6732 types) ac_types_checking=1 ;;
6733 valgrind) ac_valgrind_checking=1 ;;
6734 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6735 esac
6736 done
6737 IFS="$ac_save_IFS"
6739 nocommon_flag=""
6740 if test x$ac_checking != x ; then
6742 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6744 nocommon_flag=-fno-common
6747 if test x$ac_df_checking != x ; then
6749 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6752 if test x$ac_assert_checking != x ; then
6754 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6757 if test x$ac_gimple_checking != x ; then
6759 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6763 if test x$ac_runtime_checking != x ; then
6765 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6768 if test x$ac_tree_checking != x ; then
6770 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6772 TREEBROWSER=tree-browser.o
6773 TREECHECKING=yes
6775 if test x$ac_types_checking != x ; then
6777 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6782 if test x$ac_rtl_checking != x ; then
6784 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6787 if test x$ac_rtlflag_checking != x ; then
6789 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6792 if test x$ac_gc_checking != x ; then
6794 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6797 if test x$ac_gc_always_collect != x ; then
6799 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6802 if test x$ac_fold_checking != x ; then
6804 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6807 valgrind_path_defines=
6808 valgrind_command=
6810 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6811 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6812 have_valgrind_h=yes
6813 else
6814 have_valgrind_h=no
6819 # It is certainly possible that there's valgrind but no valgrind.h.
6820 # GCC relies on making annotations so we must have both.
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6822 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 #include <valgrind/memcheck.h>
6826 #ifndef VALGRIND_DISCARD
6827 #error VALGRIND_DISCARD not defined
6828 #endif
6829 _ACEOF
6830 if ac_fn_c_try_cpp "$LINENO"; then :
6831 gcc_cv_header_valgrind_memcheck_h=yes
6832 else
6833 gcc_cv_header_valgrind_memcheck_h=no
6835 rm -f conftest.err conftest.$ac_ext
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6837 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6839 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <memcheck.h>
6843 #ifndef VALGRIND_DISCARD
6844 #error VALGRIND_DISCARD not defined
6845 #endif
6846 _ACEOF
6847 if ac_fn_c_try_cpp "$LINENO"; then :
6848 gcc_cv_header_memcheck_h=yes
6849 else
6850 gcc_cv_header_memcheck_h=no
6852 rm -f conftest.err conftest.$ac_ext
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6854 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6855 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6857 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6860 if test $gcc_cv_header_memcheck_h = yes; then
6862 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6866 if test x$ac_valgrind_checking != x ; then
6868 # Prepare PATH_SEPARATOR.
6869 # The user is always right.
6870 if test "${PATH_SEPARATOR+set}" != set; then
6871 echo "#! /bin/sh" >conf$$.sh
6872 echo "exit 0" >>conf$$.sh
6873 chmod +x conf$$.sh
6874 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6875 PATH_SEPARATOR=';'
6876 else
6877 PATH_SEPARATOR=:
6879 rm -f conf$$.sh
6882 # Find out how to test for executable files. Don't use a zero-byte file,
6883 # as systems may use methods other than mode bits to determine executability.
6884 cat >conf$$.file <<_ASEOF
6885 #! /bin/sh
6886 exit 0
6887 _ASEOF
6888 chmod +x conf$$.file
6889 if test -x conf$$.file >/dev/null 2>&1; then
6890 ac_executable_p="test -x"
6891 else
6892 ac_executable_p="test -f"
6894 rm -f conf$$.file
6896 # Extract the first word of "valgrind", so it can be a program name with args.
6897 set dummy valgrind; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 case "$valgrind_path" in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6908 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6909 for ac_dir in $PATH; do
6910 IFS="$ac_save_IFS"
6911 test -z "$ac_dir" && ac_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6914 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6915 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6916 break 2
6919 done
6920 done
6921 IFS="$ac_save_IFS"
6923 esac
6925 valgrind_path="$ac_cv_path_valgrind_path"
6926 if test -n "$valgrind_path"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6928 $as_echo "$valgrind_path" >&6; }
6929 else
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6934 if test "x$valgrind_path" = "x" \
6935 || (test $have_valgrind_h = no \
6936 && test $gcc_cv_header_memcheck_h = no \
6937 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6938 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6940 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6941 valgrind_command="$valgrind_path -q"
6943 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6949 # Enable code coverage collection
6950 # Check whether --enable-coverage was given.
6951 if test "${enable_coverage+set}" = set; then :
6952 enableval=$enable_coverage; case "${enableval}" in
6953 yes|noopt)
6954 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6956 opt)
6957 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6960 # a.k.a. --disable-coverage
6961 coverage_flags=""
6964 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6966 esac
6967 else
6968 coverage_flags=""
6973 # Check whether --enable-gather-detailed-mem-stats was given.
6974 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6975 enableval=$enable_gather_detailed_mem_stats;
6976 else
6977 enable_gather_detailed_mem_stats=no
6980 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6982 cat >>confdefs.h <<_ACEOF
6983 #define GATHER_STATISTICS $gather_stats
6984 _ACEOF
6987 # Check whether --enable-valgrind-annotations was given.
6988 if test "${enable_valgrind_annotations+set}" = set; then :
6989 enableval=$enable_valgrind_annotations;
6990 else
6991 enable_valgrind_annotations=no
6994 if test x$enable_valgrind_annotations != xno \
6995 || test x$ac_valgrind_checking != x; then
6996 if (test $have_valgrind_h = no \
6997 && test $gcc_cv_header_memcheck_h = no \
6998 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6999 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7002 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7006 # -------------------------------
7007 # Miscenalleous configure options
7008 # -------------------------------
7010 # With stabs
7012 # Check whether --with-stabs was given.
7013 if test "${with_stabs+set}" = set; then :
7014 withval=$with_stabs; stabs="$with_stabs"
7015 else
7016 stabs=no
7020 # Determine whether or not multilibs are enabled.
7021 # Check whether --enable-multilib was given.
7022 if test "${enable_multilib+set}" = set; then :
7023 enableval=$enable_multilib;
7024 else
7025 enable_multilib=yes
7030 # Determine whether or not multiarch is enabled.
7031 # Check whether --enable-multiarch was given.
7032 if test "${enable_multiarch+set}" = set; then :
7033 enableval=$enable_multiarch; case "${enableval}" in
7034 yes|no|auto) enable_multiarch=$enableval;;
7035 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7036 esac
7037 else
7038 enable_multiarch=auto
7041 if test x${enable_multiarch} = xauto; then
7042 if test x${with_native_system_header_dir} != x; then
7043 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7044 enable_multiarch=no
7046 if test x$host != x$target && test "x$with_sysroot" = x; then
7047 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7048 enable_multiarch=no
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7052 $as_echo_n "checking for multiarch configuration... " >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7055 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7057 # needed for setting the multiarch name for soft-float/hard-float ABIs
7061 # Enable __cxa_atexit for C++.
7062 # Check whether --enable-__cxa_atexit was given.
7063 if test "${enable___cxa_atexit+set}" = set; then :
7064 enableval=$enable___cxa_atexit;
7068 # Enable C extension for decimal float if target supports it.
7070 # Check whether --enable-decimal-float was given.
7071 if test "${enable_decimal_float+set}" = set; then :
7072 enableval=$enable_decimal_float;
7073 case $enable_decimal_float in
7074 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7075 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7076 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7077 esac
7079 else
7081 case $target in
7082 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7083 i?86*-*-gnu* | \
7084 i?86*-*-mingw* | x86_64*-*-mingw* | \
7085 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7086 enable_decimal_float=yes
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7090 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7091 enable_decimal_float=no
7093 esac
7098 # x86's use BID format instead of DPD
7099 case x$enable_decimal_float in
7100 xyes)
7101 case $target in
7102 i?86*-*-* | x86_64*-*-*)
7103 enable_decimal_float=bid
7106 enable_decimal_float=dpd
7108 esac
7109 default_decimal_float=$enable_decimal_float
7111 xno)
7112 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7113 # dependency on libdecnumber.
7114 default_decimal_float=dpd
7116 esac
7121 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7123 cat >>confdefs.h <<_ACEOF
7124 #define ENABLE_DECIMAL_FLOAT $dfp
7125 _ACEOF
7128 # Use default_decimal_float for dependency.
7129 enable_decimal_float=$default_decimal_float
7131 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7133 cat >>confdefs.h <<_ACEOF
7134 #define ENABLE_DECIMAL_BID_FORMAT $bid
7135 _ACEOF
7138 # Enable C extension for fixed-point arithmetic.
7139 # Check whether --enable-fixed-point was given.
7140 if test "${enable_fixed_point+set}" = set; then :
7141 enableval=$enable_fixed_point;
7142 else
7144 case $target in
7145 arm*)
7146 enable_fixed_point=yes
7149 mips*-*-*)
7150 enable_fixed_point=yes
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7154 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7155 enable_fixed_point=no
7157 esac
7163 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7165 cat >>confdefs.h <<_ACEOF
7166 #define ENABLE_FIXED_POINT $fixedpoint
7167 _ACEOF
7170 # Enable threads
7171 # Pass with no value to take the default
7172 # Pass with a value to specify a thread package
7173 # Check whether --enable-threads was given.
7174 if test "${enable_threads+set}" = set; then :
7175 enableval=$enable_threads;
7176 else
7177 enable_threads=''
7181 # Check whether --enable-tls was given.
7182 if test "${enable_tls+set}" = set; then :
7183 enableval=$enable_tls;
7184 case $enable_tls in
7185 yes | no) ;;
7186 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7187 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7188 esac
7190 else
7191 enable_tls=''
7195 # Check whether --enable-objc-gc was given.
7196 if test "${enable_objc_gc+set}" = set; then :
7197 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7198 objc_boehm_gc=''
7199 else
7200 objc_boehm_gc=1
7202 else
7203 objc_boehm_gc=''
7208 # Check whether --with-dwarf2 was given.
7209 if test "${with_dwarf2+set}" = set; then :
7210 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7211 else
7212 dwarf2=no
7216 # Check whether --enable-shared was given.
7217 if test "${enable_shared+set}" = set; then :
7218 enableval=$enable_shared;
7219 case $enable_shared in
7220 yes | no) ;;
7222 enable_shared=no
7223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7224 for pkg in $enableval; do
7225 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7226 enable_shared=yes
7228 done
7229 IFS="$ac_save_ifs"
7231 esac
7233 else
7234 enable_shared=yes
7240 # Check whether --with-native-system-header-dir was given.
7241 if test "${with_native_system_header_dir+set}" = set; then :
7242 withval=$with_native_system_header_dir;
7243 case ${with_native_system_header_dir} in
7244 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7245 /* | [A-Za-z]:[\\/]*) ;;
7246 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7247 esac
7248 configured_native_system_header_dir="${withval}"
7250 else
7251 configured_native_system_header_dir=
7256 # Check whether --with-build-sysroot was given.
7257 if test "${with_build_sysroot+set}" = set; then :
7258 withval=$with_build_sysroot; if test x"$withval" != x ; then
7259 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7261 else
7262 SYSROOT_CFLAGS_FOR_TARGET=
7267 if test "x$prefix" = xNONE; then
7268 test_prefix=/usr/local
7269 else
7270 test_prefix=$prefix
7272 if test "x$exec_prefix" = xNONE; then
7273 test_exec_prefix=$test_prefix
7274 else
7275 test_exec_prefix=$exec_prefix
7279 # Check whether --with-sysroot was given.
7280 if test "${with_sysroot+set}" = set; then :
7281 withval=$with_sysroot;
7282 case ${with_sysroot} in
7283 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7284 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7285 esac
7287 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7288 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7290 case ${TARGET_SYSTEM_ROOT} in
7291 "${test_prefix}"|"${test_prefix}/"*|\
7292 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7293 '${prefix}'|'${prefix}/'*|\
7294 '${exec_prefix}'|'${exec_prefix}/'*)
7295 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7296 TARGET_SYSTEM_ROOT_DEFINE="$t"
7298 esac
7300 else
7302 TARGET_SYSTEM_ROOT=
7303 TARGET_SYSTEM_ROOT_DEFINE=
7304 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7313 # Check whether --with-specs was given.
7314 if test "${with_specs+set}" = set; then :
7315 withval=$with_specs; CONFIGURE_SPECS=$withval
7316 else
7317 CONFIGURE_SPECS=
7325 # Check whether --with-pkgversion was given.
7326 if test "${with_pkgversion+set}" = set; then :
7327 withval=$with_pkgversion; case "$withval" in
7328 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7329 no) PKGVERSION= ;;
7330 *) PKGVERSION="($withval) " ;;
7331 esac
7332 else
7333 PKGVERSION="(GCC) "
7341 # Check whether --with-bugurl was given.
7342 if test "${with_bugurl+set}" = set; then :
7343 withval=$with_bugurl; case "$withval" in
7344 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7345 no) BUGURL=
7347 *) BUGURL="$withval"
7349 esac
7350 else
7351 BUGURL="http://gcc.gnu.org/bugs.html"
7355 case ${BUGURL} in
7357 REPORT_BUGS_TO=
7358 REPORT_BUGS_TEXI=
7361 REPORT_BUGS_TO="<$BUGURL>"
7362 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7364 esac;
7369 # Sanity check enable_languages in case someone does not run the toplevel
7370 # configure # script.
7371 # Check whether --enable-languages was given.
7372 if test "${enable_languages+set}" = set; then :
7373 enableval=$enable_languages; case ,${enable_languages}, in
7374 ,,|,yes,)
7375 # go safe -- we cannot be much sure without the toplevel
7376 # configure's
7377 # analysis of which target libs are present and usable
7378 enable_languages=c
7380 *,all,*)
7381 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7383 *,c,*)
7386 enable_languages=c,${enable_languages}
7388 esac
7389 else
7390 enable_languages=c
7395 # Check whether --with-multilib-list was given.
7396 if test "${with_multilib_list+set}" = set; then :
7397 withval=$with_multilib_list; :
7398 else
7399 with_multilib_list=default
7403 # -------------------------
7404 # Checks for other programs
7405 # -------------------------
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7408 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7409 set x ${MAKE-make}
7410 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7411 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 cat >conftest.make <<\_ACEOF
7415 SHELL = /bin/sh
7416 all:
7417 @echo '@@@%%%=$(MAKE)=@@@%%%'
7418 _ACEOF
7419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7420 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7421 *@@@%%%=?*=@@@%%%*)
7422 eval ac_cv_prog_make_${ac_make}_set=yes;;
7424 eval ac_cv_prog_make_${ac_make}_set=no;;
7425 esac
7426 rm -f conftest.make
7428 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7430 $as_echo "yes" >&6; }
7431 SET_MAKE=
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 SET_MAKE="MAKE=${MAKE-make}"
7439 # Find some useful tools
7440 for ac_prog in gawk mawk nawk awk
7442 # Extract the first word of "$ac_prog", so it can be a program name with args.
7443 set dummy $ac_prog; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_AWK+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$AWK"; then
7450 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_AWK="$ac_prog"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7469 AWK=$ac_cv_prog_AWK
7470 if test -n "$AWK"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7472 $as_echo "$AWK" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7479 test -n "$AWK" && break
7480 done
7482 # We need awk to create options.c and options.h.
7483 # Bail out if it's missing.
7484 case ${AWK} in
7485 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7486 esac
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7489 $as_echo_n "checking whether ln -s works... " >&6; }
7490 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 rm -f conftestdata_t
7494 echo >conftestdata_f
7495 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7496 then
7497 gcc_cv_prog_LN_S="ln -s"
7498 else
7499 if ln conftestdata_f conftestdata_t 2>/dev/null
7500 then
7501 gcc_cv_prog_LN_S=ln
7502 else
7503 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7504 then
7505 gcc_cv_prog_LN_S="cp -p"
7506 else
7507 gcc_cv_prog_LN_S=cp
7511 rm -f conftestdata_f conftestdata_t
7514 LN_S="$gcc_cv_prog_LN_S"
7515 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7517 $as_echo "yes" >&6; }
7518 else
7519 if test "$gcc_cv_prog_LN_S" = "ln"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7521 $as_echo "no, using ln" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7524 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7529 $as_echo_n "checking whether ln works... " >&6; }
7530 if test "${acx_cv_prog_LN+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 rm -f conftestdata_t
7534 echo >conftestdata_f
7535 if ln conftestdata_f conftestdata_t 2>/dev/null
7536 then
7537 acx_cv_prog_LN=ln
7538 else
7539 acx_cv_prog_LN=no
7541 rm -f conftestdata_f conftestdata_t
7544 if test $acx_cv_prog_LN = no; then
7545 LN="$LN_S"
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7547 $as_echo "no, using $LN" >&6; }
7548 else
7549 LN="$acx_cv_prog_LN"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7551 $as_echo "yes" >&6; }
7554 if test -n "$ac_tool_prefix"; then
7555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 if test -n "$RANLIB"; then
7563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7576 done
7577 done
7578 IFS=$as_save_IFS
7582 RANLIB=$ac_cv_prog_RANLIB
7583 if test -n "$RANLIB"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7585 $as_echo "$RANLIB" >&6; }
7586 else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7593 if test -z "$ac_cv_prog_RANLIB"; then
7594 ac_ct_RANLIB=$RANLIB
7595 # Extract the first word of "ranlib", so it can be a program name with args.
7596 set dummy ranlib; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$ac_ct_RANLIB"; then
7603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_ac_ct_RANLIB="ranlib"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7618 IFS=$as_save_IFS
7622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7623 if test -n "$ac_ct_RANLIB"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7625 $as_echo "$ac_ct_RANLIB" >&6; }
7626 else
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7631 if test "x$ac_ct_RANLIB" = x; then
7632 RANLIB=":"
7633 else
7634 case $cross_compiling:$ac_tool_warned in
7635 yes:)
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7638 ac_tool_warned=yes ;;
7639 esac
7640 RANLIB=$ac_ct_RANLIB
7642 else
7643 RANLIB="$ac_cv_prog_RANLIB"
7646 ranlib_flags=""
7649 # Find a good install program. We prefer a C program (faster),
7650 # so one script is as good as another. But avoid the broken or
7651 # incompatible versions:
7652 # SysV /etc/install, /usr/sbin/install
7653 # SunOS /usr/etc/install
7654 # IRIX /sbin/install
7655 # AIX /bin/install
7656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7658 # ./install, which can be erroneously created by make from ./install.sh.
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7660 $as_echo_n "checking for a BSD compatible install... " >&6; }
7661 if test -z "$INSTALL"; then
7662 if test "${ac_cv_path_install+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7666 for ac_dir in $PATH; do
7667 # Account for people who put trailing slashes in PATH elements.
7668 case "$ac_dir/" in
7669 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7671 # OSF1 and SCO ODT 3.0 have their own names for install.
7672 for ac_prog in ginstall scoinst install; do
7673 if test -f $ac_dir/$ac_prog; then
7674 if test $ac_prog = install &&
7675 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7676 # AIX install. It has an incompatible calling convention.
7677 # OSF/1 installbsd also uses dspmsg, but is usable.
7679 else
7680 ac_cv_path_install="$ac_dir/$ac_prog -c"
7681 break 2
7684 done
7686 esac
7687 done
7688 IFS="$ac_save_IFS"
7691 if test "${ac_cv_path_install+set}" = set; then
7692 INSTALL="$ac_cv_path_install"
7693 else
7694 # As a last resort, use the slow shell script. We don't cache a
7695 # path for INSTALL within a source directory, because that will
7696 # break other packages using the cache if that directory is
7697 # removed, or if the path is relative.
7698 INSTALL="$ac_install_sh"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7702 $as_echo "$INSTALL" >&6; }
7704 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7705 # It thinks the first close brace ends the variable substitution.
7706 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7708 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7711 # See if cmp has --ignore-initial.
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7713 $as_echo_n "checking for cmp's capabilities... " >&6; }
7714 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7716 else
7717 echo abfoo >t1
7718 echo cdfoo >t2
7719 gcc_cv_prog_cmp_skip=slowcompare
7720 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7721 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7723 else
7724 gcc_cv_prog_cmp_skip=gnucompare
7727 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7728 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7729 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7731 else
7732 gcc_cv_prog_cmp_skip=fastcompare
7736 rm t1 t2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7740 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7741 make_compare_target=$gcc_cv_prog_cmp_skip
7745 # See if we have the mktemp command.
7746 # Extract the first word of "mktemp", so it can be a program name with args.
7747 set dummy mktemp; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 if test -n "$have_mktemp_command"; then
7754 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7755 else
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_prog_have_mktemp_command="yes"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7767 done
7768 done
7769 IFS=$as_save_IFS
7771 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7774 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7775 if test -n "$have_mktemp_command"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7777 $as_echo "$have_mktemp_command" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7785 # See if makeinfo has been installed and is modern enough
7786 # that we can use it.
7788 # Extract the first word of "makeinfo", so it can be a program name with args.
7789 set dummy makeinfo; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$MAKEINFO"; then
7796 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805 ac_cv_prog_MAKEINFO="makeinfo"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7811 IFS=$as_save_IFS
7815 MAKEINFO=$ac_cv_prog_MAKEINFO
7816 if test -n "$MAKEINFO"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7818 $as_echo "$MAKEINFO" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7825 if test -n "$MAKEINFO"; then
7826 # Found it, now check the version.
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7828 $as_echo_n "checking for modern makeinfo... " >&6; }
7829 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7833 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7835 case $ac_prog_version in
7836 '') gcc_cv_prog_makeinfo_modern=no;;
7837 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7838 *) gcc_cv_prog_makeinfo_modern=no;;
7839 esac
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7843 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7844 else
7845 gcc_cv_prog_makeinfo_modern=no
7847 if test $gcc_cv_prog_makeinfo_modern = no; then
7848 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7851 if test $gcc_cv_prog_makeinfo_modern = no; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7853 *** Makeinfo is missing or too old.
7854 *** Info documentation will not be built." >&5
7855 $as_echo "$as_me: WARNING:
7856 *** Makeinfo is missing or too old.
7857 *** Info documentation will not be built." >&2;}
7858 BUILD_INFO=
7859 else
7860 BUILD_INFO=info
7864 # Is pod2man recent enough to regenerate manpages?
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7866 $as_echo_n "checking for recent Pod::Man... " >&6; }
7867 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869 $as_echo "yes" >&6; }
7870 GENERATED_MANPAGES=generated-manpages
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 GENERATED_MANPAGES=
7878 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7880 # How about lex?
7881 for ac_prog in flex
7883 # Extract the first word of "$ac_prog", so it can be a program name with args.
7884 set dummy $ac_prog; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_prog_FLEX+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$FLEX"; then
7891 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_FLEX="$ac_prog"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7904 done
7905 done
7906 IFS=$as_save_IFS
7910 FLEX=$ac_cv_prog_FLEX
7911 if test -n "$FLEX"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7913 $as_echo "$FLEX" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7920 test -n "$FLEX" && break
7921 done
7922 test -n "$FLEX" || FLEX="$MISSING flex"
7925 # Bison?
7926 for ac_prog in bison
7928 # Extract the first word of "$ac_prog", so it can be a program name with args.
7929 set dummy $ac_prog; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if test "${ac_cv_prog_BISON+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 if test -n "$BISON"; then
7936 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945 ac_cv_prog_BISON="$ac_prog"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7949 done
7950 done
7951 IFS=$as_save_IFS
7955 BISON=$ac_cv_prog_BISON
7956 if test -n "$BISON"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7958 $as_echo "$BISON" >&6; }
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7965 test -n "$BISON" && break
7966 done
7967 test -n "$BISON" || BISON="$MISSING bison"
7970 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7971 # check for build == host before using them.
7973 # NM
7974 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7975 && test -d ../binutils ; then
7976 NM='${objdir}/../binutils/nm-new'
7977 else
7978 # Extract the first word of "nm", so it can be a program name with args.
7979 set dummy nm; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_NM+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$NM"; then
7986 ac_cv_prog_NM="$NM" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_NM="nm"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7999 done
8000 done
8001 IFS=$as_save_IFS
8003 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8006 NM=$ac_cv_prog_NM
8007 if test -n "$NM"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8009 $as_echo "$NM" >&6; }
8010 else
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012 $as_echo "no" >&6; }
8018 # AR
8019 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8020 && test -d ../binutils ; then
8021 AR='${objdir}/../binutils/ar'
8022 else
8023 # Extract the first word of "ar", so it can be a program name with args.
8024 set dummy ar; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_AR+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 if test -n "$AR"; then
8031 ac_cv_prog_AR="$AR" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_AR="ar"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8044 done
8045 done
8046 IFS=$as_save_IFS
8048 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8051 AR=$ac_cv_prog_AR
8052 if test -n "$AR"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8054 $as_echo "$AR" >&6; }
8055 else
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8057 $as_echo "no" >&6; }
8064 # --------------------
8065 # Checks for C headers
8066 # --------------------
8068 # Need to reject headers which give warnings, so that the -Werror bootstrap
8069 # works later. *sigh* This needs to come before all header checks.
8071 ac_c_preproc_warn_flag=yes
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8074 $as_echo_n "checking for ANSI C header files... " >&6; }
8075 if test "${ac_cv_header_stdc+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h. */
8080 #include <stdlib.h>
8081 #include <stdarg.h>
8082 #include <string.h>
8083 #include <float.h>
8086 main ()
8090 return 0;
8092 _ACEOF
8093 if ac_fn_c_try_compile "$LINENO"; then :
8094 ac_cv_header_stdc=yes
8095 else
8096 ac_cv_header_stdc=no
8098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 if test $ac_cv_header_stdc = yes; then
8101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #include <string.h>
8106 _ACEOF
8107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8108 $EGREP "memchr" >/dev/null 2>&1; then :
8110 else
8111 ac_cv_header_stdc=no
8113 rm -f conftest*
8117 if test $ac_cv_header_stdc = yes; then
8118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 #include <stdlib.h>
8123 _ACEOF
8124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8125 $EGREP "free" >/dev/null 2>&1; then :
8127 else
8128 ac_cv_header_stdc=no
8130 rm -f conftest*
8134 if test $ac_cv_header_stdc = yes; then
8135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8136 if test "$cross_compiling" = yes; then :
8138 else
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141 #include <ctype.h>
8142 #include <stdlib.h>
8143 #if ((' ' & 0x0FF) == 0x020)
8144 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8145 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8146 #else
8147 # define ISLOWER(c) \
8148 (('a' <= (c) && (c) <= 'i') \
8149 || ('j' <= (c) && (c) <= 'r') \
8150 || ('s' <= (c) && (c) <= 'z'))
8151 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8152 #endif
8154 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8156 main ()
8158 int i;
8159 for (i = 0; i < 256; i++)
8160 if (XOR (islower (i), ISLOWER (i))
8161 || toupper (i) != TOUPPER (i))
8162 return 2;
8163 return 0;
8165 _ACEOF
8166 if ac_fn_c_try_run "$LINENO"; then :
8168 else
8169 ac_cv_header_stdc=no
8171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8172 conftest.$ac_objext conftest.beam conftest.$ac_ext
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8178 $as_echo "$ac_cv_header_stdc" >&6; }
8179 if test $ac_cv_header_stdc = yes; then
8181 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8186 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8187 if test "${ac_cv_header_time+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 #include <sys/types.h>
8193 #include <sys/time.h>
8194 #include <time.h>
8197 main ()
8199 if ((struct tm *) 0)
8200 return 0;
8202 return 0;
8204 _ACEOF
8205 if ac_fn_c_try_compile "$LINENO"; then :
8206 ac_cv_header_time=yes
8207 else
8208 ac_cv_header_time=no
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8213 $as_echo "$ac_cv_header_time" >&6; }
8214 if test $ac_cv_header_time = yes; then
8216 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8221 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8222 if test "${gcc_cv_header_string+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8227 #include <string.h>
8228 #include <strings.h>
8230 main ()
8234 return 0;
8236 _ACEOF
8237 if ac_fn_c_try_compile "$LINENO"; then :
8238 gcc_cv_header_string=yes
8239 else
8240 gcc_cv_header_string=no
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8245 $as_echo "$gcc_cv_header_string" >&6; }
8246 if test $gcc_cv_header_string = yes; then
8248 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8253 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8254 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <sys/types.h>
8260 #include <sys/wait.h>
8261 #ifndef WEXITSTATUS
8262 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8263 #endif
8264 #ifndef WIFEXITED
8265 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8266 #endif
8269 main ()
8271 int s;
8272 wait (&s);
8273 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8275 return 0;
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 ac_cv_header_sys_wait_h=yes
8280 else
8281 ac_cv_header_sys_wait_h=no
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8286 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8287 if test $ac_cv_header_sys_wait_h = yes; then
8289 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8294 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8295 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 #include <sys/types.h>
8301 #include <termios.h>
8302 #ifdef TIOCGWINSZ
8304 #endif
8306 _ACEOF
8307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8308 $EGREP "yes" >/dev/null 2>&1; then :
8309 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8310 else
8311 ac_cv_sys_tiocgwinsz_in_termios_h=no
8313 rm -f conftest*
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8317 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8319 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8321 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8322 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 #include <sys/types.h>
8328 #include <sys/ioctl.h>
8329 #ifdef TIOCGWINSZ
8331 #endif
8333 _ACEOF
8334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8335 $EGREP "yes" >/dev/null 2>&1; then :
8336 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8337 else
8338 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8340 rm -f conftest*
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8344 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8346 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8348 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8353 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8354 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8355 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8356 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8357 do :
8358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8359 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8360 eval as_val=\$$as_ac_Header
8361 if test "x$as_val" = x""yes; then :
8362 cat >>confdefs.h <<_ACEOF
8363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8364 _ACEOF
8367 done
8370 # Check for thread headers.
8371 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8372 if test "x$ac_cv_header_thread_h" = x""yes; then :
8373 have_thread_h=yes
8374 else
8375 have_thread_h=
8378 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8379 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8380 have_pthread_h=yes
8381 else
8382 have_pthread_h=
8386 # These tests can't be done till we know if we have limits.h.
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8388 $as_echo_n "checking for CHAR_BIT... " >&6; }
8389 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
8391 else
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394 #ifdef HAVE_LIMITS_H
8395 #include <limits.h>
8396 #endif
8397 #ifdef CHAR_BIT
8398 found
8399 #endif
8400 _ACEOF
8401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8402 $EGREP "found" >/dev/null 2>&1; then :
8403 gcc_cv_decl_char_bit=yes
8404 else
8405 gcc_cv_decl_char_bit=no
8407 rm -f conftest*
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8412 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8413 if test $gcc_cv_decl_char_bit = no; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8415 $as_echo_n "checking number of bits in a byte... " >&6; }
8416 if test "${gcc_cv_c_nbby+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8420 gcc_cv_c_nbby=
8421 while test $i -lt 65; do
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8426 main ()
8428 switch(0) {
8429 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8430 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8433 return 0;
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437 gcc_cv_c_nbby=$i; break
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 i=`expr $i + 1`
8441 done
8442 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8446 $as_echo "$gcc_cv_c_nbby" >&6; }
8447 if test $gcc_cv_c_nbby = failed; then
8448 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8449 else
8451 cat >>confdefs.h <<_ACEOF
8452 #define CHAR_BIT $gcc_cv_c_nbby
8453 _ACEOF
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8458 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8459 if test "${ac_cv_c_bigendian+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 ac_cv_c_bigendian=unknown
8463 # See if we're dealing with a universal compiler.
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #ifndef __APPLE_CC__
8467 not a universal capable compiler
8468 #endif
8469 typedef int dummy;
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8474 # Check for potential -arch flags. It is not universal unless
8475 # there are at least two -arch flags with different values.
8476 ac_arch=
8477 ac_prev=
8478 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8479 if test -n "$ac_prev"; then
8480 case $ac_word in
8481 i?86 | x86_64 | ppc | ppc64)
8482 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8483 ac_arch=$ac_word
8484 else
8485 ac_cv_c_bigendian=universal
8486 break
8489 esac
8490 ac_prev=
8491 elif test "x$ac_word" = "x-arch"; then
8492 ac_prev=arch
8494 done
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 if test $ac_cv_c_bigendian = unknown; then
8498 # See if sys/param.h defines the BYTE_ORDER macro.
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <sys/types.h>
8502 #include <sys/param.h>
8505 main ()
8507 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8508 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8509 && LITTLE_ENDIAN)
8510 bogus endian macros
8511 #endif
8514 return 0;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 # It does; now see whether it defined to BIG_ENDIAN or not.
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 #include <sys/types.h>
8522 #include <sys/param.h>
8525 main ()
8527 #if BYTE_ORDER != BIG_ENDIAN
8528 not big endian
8529 #endif
8532 return 0;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"; then :
8536 ac_cv_c_bigendian=yes
8537 else
8538 ac_cv_c_bigendian=no
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544 if test $ac_cv_c_bigendian = unknown; then
8545 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 #include <limits.h>
8551 main ()
8553 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8554 bogus endian macros
8555 #endif
8558 return 0;
8560 _ACEOF
8561 if ac_fn_c_try_compile "$LINENO"; then :
8562 # It does; now see whether it defined to _BIG_ENDIAN or not.
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #include <limits.h>
8568 main ()
8570 #ifndef _BIG_ENDIAN
8571 not big endian
8572 #endif
8575 return 0;
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"; then :
8579 ac_cv_c_bigendian=yes
8580 else
8581 ac_cv_c_bigendian=no
8583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 if test $ac_cv_c_bigendian = unknown; then
8588 # Compile a test program.
8589 if test "$cross_compiling" = yes; then :
8590 # Try to guess by grepping values from an object file.
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 short int ascii_mm[] =
8594 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8595 short int ascii_ii[] =
8596 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8597 int use_ascii (int i) {
8598 return ascii_mm[i] + ascii_ii[i];
8600 short int ebcdic_ii[] =
8601 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8602 short int ebcdic_mm[] =
8603 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8604 int use_ebcdic (int i) {
8605 return ebcdic_mm[i] + ebcdic_ii[i];
8607 extern int foo;
8610 main ()
8612 return use_ascii (foo) == use_ebcdic (foo);
8614 return 0;
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8619 ac_cv_c_bigendian=yes
8621 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8622 if test "$ac_cv_c_bigendian" = unknown; then
8623 ac_cv_c_bigendian=no
8624 else
8625 # finding both strings is unlikely to happen, but who knows?
8626 ac_cv_c_bigendian=unknown
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 else
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8634 $ac_includes_default
8636 main ()
8639 /* Are we little or big endian? From Harbison&Steele. */
8640 union
8642 long int l;
8643 char c[sizeof (long int)];
8644 } u;
8645 u.l = 1;
8646 return u.c[sizeof (long int) - 1] == 1;
8649 return 0;
8651 _ACEOF
8652 if ac_fn_c_try_run "$LINENO"; then :
8653 ac_cv_c_bigendian=no
8654 else
8655 ac_cv_c_bigendian=yes
8657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8658 conftest.$ac_objext conftest.beam conftest.$ac_ext
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8664 $as_echo "$ac_cv_c_bigendian" >&6; }
8665 case $ac_cv_c_bigendian in #(
8666 yes)
8667 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8668 ;; #(
8670 ;; #(
8671 universal)
8673 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8675 ;; #(
8677 as_fn_error "unknown endianness
8678 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8679 esac
8682 # ----------------------
8683 # Checks for C++ headers
8684 # ----------------------
8686 ac_ext=cpp
8687 ac_cpp='$CXXCPP $CPPFLAGS'
8688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8692 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8693 if test -z "$CXXCPP"; then
8694 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 # Double quotes because CXXCPP needs to be expanded
8698 for CXXCPP in "$CXX -E" "/lib/cpp"
8700 ac_preproc_ok=false
8701 for ac_cxx_preproc_warn_flag in '' yes
8703 # Use a header file that comes with gcc, so configuring glibc
8704 # with a fresh cross-compiler works.
8705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8706 # <limits.h> exists even on freestanding compilers.
8707 # On the NeXT, cc -E runs the code through the compiler's parser,
8708 # not just through cpp. "Syntax error" is here to catch this case.
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 #ifdef __STDC__
8712 # include <limits.h>
8713 #else
8714 # include <assert.h>
8715 #endif
8716 Syntax error
8717 _ACEOF
8718 if ac_fn_cxx_try_cpp "$LINENO"; then :
8720 else
8721 # Broken: fails on valid input.
8722 continue
8724 rm -f conftest.err conftest.$ac_ext
8726 # OK, works on sane cases. Now check whether nonexistent headers
8727 # can be detected and how.
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #include <ac_nonexistent.h>
8731 _ACEOF
8732 if ac_fn_cxx_try_cpp "$LINENO"; then :
8733 # Broken: success on invalid input.
8734 continue
8735 else
8736 # Passes both tests.
8737 ac_preproc_ok=:
8738 break
8740 rm -f conftest.err conftest.$ac_ext
8742 done
8743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8744 rm -f conftest.err conftest.$ac_ext
8745 if $ac_preproc_ok; then :
8746 break
8749 done
8750 ac_cv_prog_CXXCPP=$CXXCPP
8753 CXXCPP=$ac_cv_prog_CXXCPP
8754 else
8755 ac_cv_prog_CXXCPP=$CXXCPP
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8758 $as_echo "$CXXCPP" >&6; }
8759 ac_preproc_ok=false
8760 for ac_cxx_preproc_warn_flag in '' yes
8762 # Use a header file that comes with gcc, so configuring glibc
8763 # with a fresh cross-compiler works.
8764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8765 # <limits.h> exists even on freestanding compilers.
8766 # On the NeXT, cc -E runs the code through the compiler's parser,
8767 # not just through cpp. "Syntax error" is here to catch this case.
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770 #ifdef __STDC__
8771 # include <limits.h>
8772 #else
8773 # include <assert.h>
8774 #endif
8775 Syntax error
8776 _ACEOF
8777 if ac_fn_cxx_try_cpp "$LINENO"; then :
8779 else
8780 # Broken: fails on valid input.
8781 continue
8783 rm -f conftest.err conftest.$ac_ext
8785 # OK, works on sane cases. Now check whether nonexistent headers
8786 # can be detected and how.
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <ac_nonexistent.h>
8790 _ACEOF
8791 if ac_fn_cxx_try_cpp "$LINENO"; then :
8792 # Broken: success on invalid input.
8793 continue
8794 else
8795 # Passes both tests.
8796 ac_preproc_ok=:
8797 break
8799 rm -f conftest.err conftest.$ac_ext
8801 done
8802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8803 rm -f conftest.err conftest.$ac_ext
8804 if $ac_preproc_ok; then :
8806 else
8807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8810 See \`config.log' for more details." >&5
8811 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8812 See \`config.log' for more details." >&2;}; }
8815 ac_ext=c
8816 ac_cpp='$CPP $CPPFLAGS'
8817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8822 ac_ext=cpp
8823 ac_cpp='$CXXCPP $CPPFLAGS'
8824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8830 for ac_header in unordered_map
8831 do :
8832 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8833 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8834 cat >>confdefs.h <<_ACEOF
8835 #define HAVE_UNORDERED_MAP 1
8836 _ACEOF
8839 done
8841 for ac_header in tr1/unordered_map
8842 do :
8843 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8844 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8845 cat >>confdefs.h <<_ACEOF
8846 #define HAVE_TR1_UNORDERED_MAP 1
8847 _ACEOF
8850 done
8852 for ac_header in ext/hash_map
8853 do :
8854 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8855 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8856 cat >>confdefs.h <<_ACEOF
8857 #define HAVE_EXT_HASH_MAP 1
8858 _ACEOF
8861 done
8864 ac_ext=c
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871 # --------
8872 # Dependency checking.
8873 # --------
8875 ac_ext=cpp
8876 ac_cpp='$CXXCPP $CPPFLAGS'
8877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8881 rm -rf .tst 2>/dev/null
8882 mkdir .tst 2>/dev/null
8883 if test -d .tst; then
8884 am__leading_dot=.
8885 else
8886 am__leading_dot=_
8888 rmdir .tst 2>/dev/null
8890 DEPDIR="${am__leading_dot}deps"
8892 ac_config_commands="$ac_config_commands depdir"
8895 ac_config_commands="$ac_config_commands gccdepdir"
8898 depcc="$CXX" am_compiler_list=
8900 am_depcomp=$ac_aux_dir/depcomp
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8902 $as_echo_n "checking dependency style of $depcc... " >&6; }
8903 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 if test -f "$am_depcomp"; then
8907 # We make a subdir and do the tests there. Otherwise we can end up
8908 # making bogus files that we don't know about and never remove. For
8909 # instance it was reported that on HP-UX the gcc test will end up
8910 # making a dummy file named `D' -- because `-MD' means `put the output
8911 # in D'.
8912 mkdir conftest.dir
8913 # Copy depcomp to subdir because otherwise we won't find it if we're
8914 # using a relative directory.
8915 cp "$am_depcomp" conftest.dir
8916 cd conftest.dir
8917 # We will build objects and dependencies in a subdirectory because
8918 # it helps to detect inapplicable dependency modes. For instance
8919 # both Tru64's cc and ICC support -MD to output dependencies as a
8920 # side effect of compilation, but ICC will put the dependencies in
8921 # the current directory while Tru64 will put them in the object
8922 # directory.
8923 mkdir sub
8925 am_cv_CXX_dependencies_compiler_type=none
8926 if test "$am_compiler_list" = ""; then
8927 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8929 for depmode in $am_compiler_list; do
8930 if test $depmode = none; then break; fi
8932 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8933 # Setup a source with many dependencies, because some compilers
8934 # like to wrap large dependency lists on column 80 (with \), and
8935 # we should not choose a depcomp mode which is confused by this.
8937 # We need to recreate these files for each test, as the compiler may
8938 # overwrite some of them when testing with obscure command lines.
8939 # This happens at least with the AIX C compiler.
8940 : > sub/conftest.c
8941 for i in 1 2 3 4 5 6; do
8942 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8943 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8944 # Solaris 8's {/usr,}/bin/sh.
8945 touch sub/conftst$i.h
8946 done
8947 echo "include sub/conftest.Po" > confmf
8949 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8950 # mode. It turns out that the SunPro C++ compiler does not properly
8951 # handle `-M -o', and we need to detect this.
8952 depcmd="depmode=$depmode \
8953 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8955 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8956 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8957 if env $depcmd > conftest.err 2>&1 &&
8958 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8959 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8960 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8961 # icc doesn't choke on unknown options, it will just issue warnings
8962 # or remarks (even with -Werror). So we grep stderr for any message
8963 # that says an option was ignored or not supported.
8964 # When given -MP, icc 7.0 and 7.1 complain thusly:
8965 # icc: Command line warning: ignoring option '-M'; no argument required
8966 # The diagnosis changed in icc 8.0:
8967 # icc: Command line remark: option '-MP' not supported
8968 if (grep 'ignoring option' conftest.err ||
8969 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8970 am_cv_CXX_dependencies_compiler_type=$depmode
8971 $as_echo "$as_me:$LINENO: success" >&5
8972 break
8975 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8976 sed -e 's/^/| /' < conftest.err >&5
8977 done
8979 cd ..
8980 rm -rf conftest.dir
8981 else
8982 am_cv_CXX_dependencies_compiler_type=none
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8987 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8988 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
8989 then as_fn_error "no usable dependency style found" "$LINENO" 5
8990 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8994 ac_ext=c
8995 ac_cpp='$CPP $CPPFLAGS'
8996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001 # --------
9002 # UNSORTED
9003 # --------
9006 # These libraries may be used by collect2.
9007 # We may need a special search path to get them linked.
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9009 $as_echo_n "checking for collect2 libraries... " >&6; }
9010 if test "${gcc_cv_collect2_libs+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 save_LIBS="$LIBS"
9014 for libs in '' -lld -lmld \
9015 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9016 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9018 LIBS="$libs"
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9025 #ifdef __cplusplus
9026 extern "C"
9027 #endif
9028 char ldopen ();
9030 main ()
9032 return ldopen ();
9034 return 0;
9036 _ACEOF
9037 if ac_fn_c_try_link "$LINENO"; then :
9038 gcc_cv_collect2_libs="$libs"; break
9040 rm -f core conftest.err conftest.$ac_objext \
9041 conftest$ac_exeext conftest.$ac_ext
9042 done
9043 LIBS="$save_LIBS"
9044 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9047 $as_echo "$gcc_cv_collect2_libs" >&6; }
9048 case $gcc_cv_collect2_libs in
9049 "none required") ;;
9050 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9051 esac
9054 # When building Ada code on Alpha, we need exc_resume which is usually in
9055 # -lexc. So test for it.
9056 save_LIBS="$LIBS"
9057 LIBS=
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9059 $as_echo_n "checking for library containing exc_resume... " >&6; }
9060 if test "${ac_cv_search_exc_resume+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 ac_func_search_save_LIBS=$LIBS
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9070 #ifdef __cplusplus
9071 extern "C"
9072 #endif
9073 char exc_resume ();
9075 main ()
9077 return exc_resume ();
9079 return 0;
9081 _ACEOF
9082 for ac_lib in '' exc; do
9083 if test -z "$ac_lib"; then
9084 ac_res="none required"
9085 else
9086 ac_res=-l$ac_lib
9087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_search_exc_resume=$ac_res
9092 rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext
9094 if test "${ac_cv_search_exc_resume+set}" = set; then :
9095 break
9097 done
9098 if test "${ac_cv_search_exc_resume+set}" = set; then :
9100 else
9101 ac_cv_search_exc_resume=no
9103 rm conftest.$ac_ext
9104 LIBS=$ac_func_search_save_LIBS
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9107 $as_echo "$ac_cv_search_exc_resume" >&6; }
9108 ac_res=$ac_cv_search_exc_resume
9109 if test "$ac_res" != no; then :
9110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9114 GNAT_LIBEXC="$LIBS"
9115 LIBS="$save_LIBS"
9118 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9119 save_LIBS="$LIBS"
9120 LIBS=
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9122 $as_echo_n "checking for library containing kstat_open... " >&6; }
9123 if test "${ac_cv_search_kstat_open+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 ac_func_search_save_LIBS=$LIBS
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 char kstat_open ();
9138 main ()
9140 return kstat_open ();
9142 return 0;
9144 _ACEOF
9145 for ac_lib in '' kstat; do
9146 if test -z "$ac_lib"; then
9147 ac_res="none required"
9148 else
9149 ac_res=-l$ac_lib
9150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9152 if ac_fn_c_try_link "$LINENO"; then :
9153 ac_cv_search_kstat_open=$ac_res
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext
9157 if test "${ac_cv_search_kstat_open+set}" = set; then :
9158 break
9160 done
9161 if test "${ac_cv_search_kstat_open+set}" = set; then :
9163 else
9164 ac_cv_search_kstat_open=no
9166 rm conftest.$ac_ext
9167 LIBS=$ac_func_search_save_LIBS
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9170 $as_echo "$ac_cv_search_kstat_open" >&6; }
9171 ac_res=$ac_cv_search_kstat_open
9172 if test "$ac_res" != no; then :
9173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9177 EXTRA_GCC_LIBS="$LIBS"
9178 LIBS="$save_LIBS"
9181 # Some systems put ldexp and frexp in libm instead of libc; assume
9182 # they're both in the same place. jcf-dump needs them.
9183 save_LIBS="$LIBS"
9184 LIBS=
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9186 $as_echo_n "checking for library containing ldexp... " >&6; }
9187 if test "${ac_cv_search_ldexp+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189 else
9190 ac_func_search_save_LIBS=$LIBS
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9194 /* Override any GCC internal prototype to avoid an error.
9195 Use char because int might match the return type of a GCC
9196 builtin and then its argument prototype would still apply. */
9197 #ifdef __cplusplus
9198 extern "C"
9199 #endif
9200 char ldexp ();
9202 main ()
9204 return ldexp ();
9206 return 0;
9208 _ACEOF
9209 for ac_lib in '' m; do
9210 if test -z "$ac_lib"; then
9211 ac_res="none required"
9212 else
9213 ac_res=-l$ac_lib
9214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 ac_cv_search_ldexp=$ac_res
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext
9221 if test "${ac_cv_search_ldexp+set}" = set; then :
9222 break
9224 done
9225 if test "${ac_cv_search_ldexp+set}" = set; then :
9227 else
9228 ac_cv_search_ldexp=no
9230 rm conftest.$ac_ext
9231 LIBS=$ac_func_search_save_LIBS
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9234 $as_echo "$ac_cv_search_ldexp" >&6; }
9235 ac_res=$ac_cv_search_ldexp
9236 if test "$ac_res" != no; then :
9237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9241 LDEXP_LIB="$LIBS"
9242 LIBS="$save_LIBS"
9245 # Use <inttypes.h> only if it exists,
9246 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9247 # PRId64
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9249 $as_echo_n "checking for inttypes.h... " >&6; }
9250 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 #define __STDC_FORMAT_MACROS
9256 #include <sys/types.h>
9257 #include <inttypes.h>
9259 main ()
9261 intmax_t i = -1;
9262 #ifndef PRId64
9263 choke me
9264 #endif
9266 return 0;
9268 _ACEOF
9269 if ac_fn_c_try_compile "$LINENO"; then :
9270 gcc_cv_header_inttypes_h=yes
9271 else
9272 gcc_cv_header_inttypes_h=no
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9278 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9279 if test $gcc_cv_header_inttypes_h = yes; then
9281 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9287 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9288 popen sysconf strsignal getrusage nl_langinfo \
9289 gettimeofday mbstowcs wcswidth mmap setlocale \
9290 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
9291 do :
9292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9293 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9294 eval as_val=\$$as_ac_var
9295 if test "x$as_val" = x""yes; then :
9296 cat >>confdefs.h <<_ACEOF
9297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9298 _ACEOF
9301 done
9304 if test x$ac_cv_func_mbstowcs = xyes; then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9306 $as_echo_n "checking whether mbstowcs works... " >&6; }
9307 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 if test "$cross_compiling" = yes; then :
9311 gcc_cv_func_mbstowcs_works=yes
9312 else
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <stdlib.h>
9316 int main()
9318 mbstowcs(0, "", 0);
9319 return 0;
9321 _ACEOF
9322 if ac_fn_c_try_run "$LINENO"; then :
9323 gcc_cv_func_mbstowcs_works=yes
9324 else
9325 gcc_cv_func_mbstowcs_works=no
9327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9328 conftest.$ac_objext conftest.beam conftest.$ac_ext
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9333 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9334 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9336 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9341 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9342 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9344 else
9346 cat >>confdefs.h <<_ACEOF
9347 #define ssize_t int
9348 _ACEOF
9352 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9353 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9355 else
9357 cat >>confdefs.h <<_ACEOF
9358 #define caddr_t char *
9359 _ACEOF
9365 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9366 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9367 gcc_header_sys_mman_h=yes
9368 else
9369 gcc_header_sys_mman_h=no
9372 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9373 if test "x$ac_cv_func_mmap" = x""yes; then :
9374 gcc_func_mmap=yes
9375 else
9376 gcc_func_mmap=no
9379 if test "$gcc_header_sys_mman_h" != yes \
9380 || test "$gcc_func_mmap" != yes; then
9381 gcc_cv_func_mmap_file=no
9382 gcc_cv_func_mmap_dev_zero=no
9383 gcc_cv_func_mmap_anon=no
9384 else
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9386 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9387 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9389 else
9390 # Add a system to this blacklist if
9391 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9392 # memory area containing the same data that you'd get if you applied
9393 # read() to the same fd. The only system known to have a problem here
9394 # is VMS, where text files have record structure.
9395 case "$host_os" in
9396 *vms* | ultrix*)
9397 gcc_cv_func_mmap_file=no ;;
9399 gcc_cv_func_mmap_file=yes;;
9400 esac
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9403 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9405 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9406 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 # Add a system to this blacklist if it has mmap() but /dev/zero
9410 # does not exist, or if mmapping /dev/zero does not give anonymous
9411 # zeroed pages with both the following properties:
9412 # 1. If you map N consecutive pages in with one call, and then
9413 # unmap any subset of those pages, the pages that were not
9414 # explicitly unmapped remain accessible.
9415 # 2. If you map two adjacent blocks of memory and then unmap them
9416 # both at once, they must both go away.
9417 # Systems known to be in this category are Windows (all variants),
9418 # VMS, and Darwin.
9419 case "$host_os" in
9420 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9421 gcc_cv_func_mmap_dev_zero=no ;;
9423 gcc_cv_func_mmap_dev_zero=yes;;
9424 esac
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9427 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9429 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9431 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9432 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9437 #include <sys/types.h>
9438 #include <sys/mman.h>
9439 #include <unistd.h>
9441 #ifndef MAP_ANONYMOUS
9442 #define MAP_ANONYMOUS MAP_ANON
9443 #endif
9446 main ()
9448 int n = MAP_ANONYMOUS;
9450 return 0;
9452 _ACEOF
9453 if ac_fn_c_try_compile "$LINENO"; then :
9454 gcc_cv_decl_map_anon=yes
9455 else
9456 gcc_cv_decl_map_anon=no
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9461 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9463 if test $gcc_cv_decl_map_anon = no; then
9464 gcc_cv_func_mmap_anon=no
9465 else
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9467 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9468 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9469 $as_echo_n "(cached) " >&6
9470 else
9471 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9472 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9473 # doesn't give anonymous zeroed pages with the same properties listed
9474 # above for use of /dev/zero.
9475 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9476 case "$host_os" in
9477 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9478 gcc_cv_func_mmap_anon=no ;;
9480 gcc_cv_func_mmap_anon=yes;;
9481 esac
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9484 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9488 if test $gcc_cv_func_mmap_file = yes; then
9490 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9493 if test $gcc_cv_func_mmap_dev_zero = yes; then
9495 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9498 if test $gcc_cv_func_mmap_anon = yes; then
9500 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9505 case "${host}" in
9506 *-*-*vms*)
9507 # Under VMS, vfork works very differently than on Unix. The standard test
9508 # won't work, and it isn't easily adaptable. It makes more sense to
9509 # just force it.
9510 ac_cv_func_vfork_works=yes
9512 esac
9513 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9514 if test "x$ac_cv_type_pid_t" = x""yes; then :
9516 else
9518 cat >>confdefs.h <<_ACEOF
9519 #define pid_t int
9520 _ACEOF
9524 for ac_header in vfork.h
9525 do :
9526 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9527 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9528 cat >>confdefs.h <<_ACEOF
9529 #define HAVE_VFORK_H 1
9530 _ACEOF
9533 done
9535 for ac_func in fork vfork
9536 do :
9537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9539 eval as_val=\$$as_ac_var
9540 if test "x$as_val" = x""yes; then :
9541 cat >>confdefs.h <<_ACEOF
9542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9543 _ACEOF
9546 done
9548 if test "x$ac_cv_func_fork" = xyes; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9550 $as_echo_n "checking for working fork... " >&6; }
9551 if test "${ac_cv_func_fork_works+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9553 else
9554 if test "$cross_compiling" = yes; then :
9555 ac_cv_func_fork_works=cross
9556 else
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 $ac_includes_default
9561 main ()
9564 /* By Ruediger Kuhlmann. */
9565 return fork () < 0;
9568 return 0;
9570 _ACEOF
9571 if ac_fn_c_try_run "$LINENO"; then :
9572 ac_cv_func_fork_works=yes
9573 else
9574 ac_cv_func_fork_works=no
9576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9577 conftest.$ac_objext conftest.beam conftest.$ac_ext
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9582 $as_echo "$ac_cv_func_fork_works" >&6; }
9584 else
9585 ac_cv_func_fork_works=$ac_cv_func_fork
9587 if test "x$ac_cv_func_fork_works" = xcross; then
9588 case $host in
9589 *-*-amigaos* | *-*-msdosdjgpp*)
9590 # Override, as these systems have only a dummy fork() stub
9591 ac_cv_func_fork_works=no
9594 ac_cv_func_fork_works=yes
9596 esac
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9598 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9600 ac_cv_func_vfork_works=$ac_cv_func_vfork
9601 if test "x$ac_cv_func_vfork" = xyes; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9603 $as_echo_n "checking for working vfork... " >&6; }
9604 if test "${ac_cv_func_vfork_works+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
9606 else
9607 if test "$cross_compiling" = yes; then :
9608 ac_cv_func_vfork_works=cross
9609 else
9610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h. */
9612 /* Thanks to Paul Eggert for this test. */
9613 $ac_includes_default
9614 #include <sys/wait.h>
9615 #ifdef HAVE_VFORK_H
9616 # include <vfork.h>
9617 #endif
9618 /* On some sparc systems, changes by the child to local and incoming
9619 argument registers are propagated back to the parent. The compiler
9620 is told about this with #include <vfork.h>, but some compilers
9621 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9622 static variable whose address is put into a register that is
9623 clobbered by the vfork. */
9624 static void
9625 #ifdef __cplusplus
9626 sparc_address_test (int arg)
9627 # else
9628 sparc_address_test (arg) int arg;
9629 #endif
9631 static pid_t child;
9632 if (!child) {
9633 child = vfork ();
9634 if (child < 0) {
9635 perror ("vfork");
9636 _exit(2);
9638 if (!child) {
9639 arg = getpid();
9640 write(-1, "", 0);
9641 _exit (arg);
9647 main ()
9649 pid_t parent = getpid ();
9650 pid_t child;
9652 sparc_address_test (0);
9654 child = vfork ();
9656 if (child == 0) {
9657 /* Here is another test for sparc vfork register problems. This
9658 test uses lots of local variables, at least as many local
9659 variables as main has allocated so far including compiler
9660 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9661 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9662 reuse the register of parent for one of the local variables,
9663 since it will think that parent can't possibly be used any more
9664 in this routine. Assigning to the local variable will thus
9665 munge parent in the parent process. */
9666 pid_t
9667 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9668 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9669 /* Convince the compiler that p..p7 are live; otherwise, it might
9670 use the same hardware register for all 8 local variables. */
9671 if (p != p1 || p != p2 || p != p3 || p != p4
9672 || p != p5 || p != p6 || p != p7)
9673 _exit(1);
9675 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9676 from child file descriptors. If the child closes a descriptor
9677 before it execs or exits, this munges the parent's descriptor
9678 as well. Test for this by closing stdout in the child. */
9679 _exit(close(fileno(stdout)) != 0);
9680 } else {
9681 int status;
9682 struct stat st;
9684 while (wait(&status) != child)
9686 return (
9687 /* Was there some problem with vforking? */
9688 child < 0
9690 /* Did the child fail? (This shouldn't happen.) */
9691 || status
9693 /* Did the vfork/compiler bug occur? */
9694 || parent != getpid()
9696 /* Did the file descriptor bug occur? */
9697 || fstat(fileno(stdout), &st) != 0
9701 _ACEOF
9702 if ac_fn_c_try_run "$LINENO"; then :
9703 ac_cv_func_vfork_works=yes
9704 else
9705 ac_cv_func_vfork_works=no
9707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9708 conftest.$ac_objext conftest.beam conftest.$ac_ext
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9713 $as_echo "$ac_cv_func_vfork_works" >&6; }
9716 if test "x$ac_cv_func_fork_works" = xcross; then
9717 ac_cv_func_vfork_works=$ac_cv_func_vfork
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9719 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9722 if test "x$ac_cv_func_vfork_works" = xyes; then
9724 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9726 else
9728 $as_echo "#define vfork fork" >>confdefs.h
9731 if test "x$ac_cv_func_fork_works" = xyes; then
9733 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9738 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9739 # iconv() prototype.
9740 ac_ext=cpp
9741 ac_cpp='$CXXCPP $CPPFLAGS'
9742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9747 if test "X$prefix" = "XNONE"; then
9748 acl_final_prefix="$ac_default_prefix"
9749 else
9750 acl_final_prefix="$prefix"
9752 if test "X$exec_prefix" = "XNONE"; then
9753 acl_final_exec_prefix='${prefix}'
9754 else
9755 acl_final_exec_prefix="$exec_prefix"
9757 acl_save_prefix="$prefix"
9758 prefix="$acl_final_prefix"
9759 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9760 prefix="$acl_save_prefix"
9763 # Check whether --with-gnu-ld was given.
9764 if test "${with_gnu_ld+set}" = set; then :
9765 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9766 else
9767 with_gnu_ld=no
9770 # Prepare PATH_SEPARATOR.
9771 # The user is always right.
9772 if test "${PATH_SEPARATOR+set}" != set; then
9773 echo "#! /bin/sh" >conf$$.sh
9774 echo "exit 0" >>conf$$.sh
9775 chmod +x conf$$.sh
9776 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9777 PATH_SEPARATOR=';'
9778 else
9779 PATH_SEPARATOR=:
9781 rm -f conf$$.sh
9783 ac_prog=ld
9784 if test "$GCC" = yes; then
9785 # Check if gcc -print-prog-name=ld gives a path.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9787 $as_echo_n "checking for ld used by GCC... " >&6; }
9788 case $host in
9789 *-*-mingw*)
9790 # gcc leaves a trailing carriage return which upsets mingw
9791 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9793 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9794 esac
9795 case $ac_prog in
9796 # Accept absolute paths.
9797 [\\/]* | [A-Za-z]:[\\/]*)
9798 re_direlt='/[^/][^/]*/\.\./'
9799 # Canonicalize the path of ld
9800 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9801 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9802 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9803 done
9804 test -z "$LD" && LD="$ac_prog"
9807 # If it fails, then pretend we aren't using GCC.
9808 ac_prog=ld
9811 # If it is relative, then search for the first ld in PATH.
9812 with_gnu_ld=unknown
9814 esac
9815 elif test "$with_gnu_ld" = yes; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9817 $as_echo_n "checking for GNU ld... " >&6; }
9818 else
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9820 $as_echo_n "checking for non-GNU ld... " >&6; }
9822 if test "${acl_cv_path_LD+set}" = set; then :
9823 $as_echo_n "(cached) " >&6
9824 else
9825 if test -z "$LD"; then
9826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9827 for ac_dir in $PATH; do
9828 test -z "$ac_dir" && ac_dir=.
9829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9830 acl_cv_path_LD="$ac_dir/$ac_prog"
9831 # Check to see if the program is GNU ld. I'd rather use --version,
9832 # but apparently some GNU ld's only accept -v.
9833 # Break only if it was the GNU/non-GNU ld that we prefer.
9834 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9835 test "$with_gnu_ld" != no && break
9836 else
9837 test "$with_gnu_ld" != yes && break
9840 done
9841 IFS="$ac_save_ifs"
9842 else
9843 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9847 LD="$acl_cv_path_LD"
9848 if test -n "$LD"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9850 $as_echo "$LD" >&6; }
9851 else
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853 $as_echo "no" >&6; }
9855 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9858 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9862 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9863 acl_cv_prog_gnu_ld=yes
9864 else
9865 acl_cv_prog_gnu_ld=no
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9869 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9870 with_gnu_ld=$acl_cv_prog_gnu_ld
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9875 $as_echo_n "checking for shared library run path origin... " >&6; }
9876 if test "${acl_cv_rpath+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9880 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9881 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9882 . ./conftest.sh
9883 rm -f ./conftest.sh
9884 acl_cv_rpath=done
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9888 $as_echo "$acl_cv_rpath" >&6; }
9889 wl="$acl_cv_wl"
9890 libext="$acl_cv_libext"
9891 shlibext="$acl_cv_shlibext"
9892 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9893 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9894 hardcode_direct="$acl_cv_hardcode_direct"
9895 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9896 # Check whether --enable-rpath was given.
9897 if test "${enable_rpath+set}" = set; then :
9898 enableval=$enable_rpath; :
9899 else
9900 enable_rpath=yes
9910 use_additional=yes
9912 acl_save_prefix="$prefix"
9913 prefix="$acl_final_prefix"
9914 acl_save_exec_prefix="$exec_prefix"
9915 exec_prefix="$acl_final_exec_prefix"
9917 eval additional_includedir=\"$includedir\"
9918 eval additional_libdir=\"$libdir\"
9920 exec_prefix="$acl_save_exec_prefix"
9921 prefix="$acl_save_prefix"
9924 # Check whether --with-libiconv-prefix was given.
9925 if test "${with_libiconv_prefix+set}" = set; then :
9926 withval=$with_libiconv_prefix;
9927 if test "X$withval" = "Xno"; then
9928 use_additional=no
9929 else
9930 if test "X$withval" = "X"; then
9932 acl_save_prefix="$prefix"
9933 prefix="$acl_final_prefix"
9934 acl_save_exec_prefix="$exec_prefix"
9935 exec_prefix="$acl_final_exec_prefix"
9937 eval additional_includedir=\"$includedir\"
9938 eval additional_libdir=\"$libdir\"
9940 exec_prefix="$acl_save_exec_prefix"
9941 prefix="$acl_save_prefix"
9943 else
9944 additional_includedir="$withval/include"
9945 additional_libdir="$withval/lib"
9951 LIBICONV=
9952 LTLIBICONV=
9953 INCICONV=
9954 rpathdirs=
9955 ltrpathdirs=
9956 names_already_handled=
9957 names_next_round='iconv '
9958 while test -n "$names_next_round"; do
9959 names_this_round="$names_next_round"
9960 names_next_round=
9961 for name in $names_this_round; do
9962 already_handled=
9963 for n in $names_already_handled; do
9964 if test "$n" = "$name"; then
9965 already_handled=yes
9966 break
9968 done
9969 if test -z "$already_handled"; then
9970 names_already_handled="$names_already_handled $name"
9971 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9972 eval value=\"\$HAVE_LIB$uppername\"
9973 if test -n "$value"; then
9974 if test "$value" = yes; then
9975 eval value=\"\$LIB$uppername\"
9976 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9977 eval value=\"\$LTLIB$uppername\"
9978 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9979 else
9982 else
9983 found_dir=
9984 found_la=
9985 found_so=
9986 found_a=
9987 if test $use_additional = yes; then
9988 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9989 found_dir="$additional_libdir"
9990 found_so="$additional_libdir/lib$name.$shlibext"
9991 if test -f "$additional_libdir/lib$name.la"; then
9992 found_la="$additional_libdir/lib$name.la"
9994 else
9995 if test -f "$additional_libdir/lib$name.$libext"; then
9996 found_dir="$additional_libdir"
9997 found_a="$additional_libdir/lib$name.$libext"
9998 if test -f "$additional_libdir/lib$name.la"; then
9999 found_la="$additional_libdir/lib$name.la"
10004 if test "X$found_dir" = "X"; then
10005 for x in $LDFLAGS $LTLIBICONV; do
10007 acl_save_prefix="$prefix"
10008 prefix="$acl_final_prefix"
10009 acl_save_exec_prefix="$exec_prefix"
10010 exec_prefix="$acl_final_exec_prefix"
10011 eval x=\"$x\"
10012 exec_prefix="$acl_save_exec_prefix"
10013 prefix="$acl_save_prefix"
10015 case "$x" in
10016 -L*)
10017 dir=`echo "X$x" | sed -e 's/^X-L//'`
10018 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10019 found_dir="$dir"
10020 found_so="$dir/lib$name.$shlibext"
10021 if test -f "$dir/lib$name.la"; then
10022 found_la="$dir/lib$name.la"
10024 else
10025 if test -f "$dir/lib$name.$libext"; then
10026 found_dir="$dir"
10027 found_a="$dir/lib$name.$libext"
10028 if test -f "$dir/lib$name.la"; then
10029 found_la="$dir/lib$name.la"
10034 esac
10035 if test "X$found_dir" != "X"; then
10036 break
10038 done
10040 if test "X$found_dir" != "X"; then
10041 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10042 if test "X$found_so" != "X"; then
10043 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10044 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10045 else
10046 haveit=
10047 for x in $ltrpathdirs; do
10048 if test "X$x" = "X$found_dir"; then
10049 haveit=yes
10050 break
10052 done
10053 if test -z "$haveit"; then
10054 ltrpathdirs="$ltrpathdirs $found_dir"
10056 if test "$hardcode_direct" = yes; then
10057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10058 else
10059 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10060 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10061 haveit=
10062 for x in $rpathdirs; do
10063 if test "X$x" = "X$found_dir"; then
10064 haveit=yes
10065 break
10067 done
10068 if test -z "$haveit"; then
10069 rpathdirs="$rpathdirs $found_dir"
10071 else
10072 haveit=
10073 for x in $LDFLAGS $LIBICONV; do
10075 acl_save_prefix="$prefix"
10076 prefix="$acl_final_prefix"
10077 acl_save_exec_prefix="$exec_prefix"
10078 exec_prefix="$acl_final_exec_prefix"
10079 eval x=\"$x\"
10080 exec_prefix="$acl_save_exec_prefix"
10081 prefix="$acl_save_prefix"
10083 if test "X$x" = "X-L$found_dir"; then
10084 haveit=yes
10085 break
10087 done
10088 if test -z "$haveit"; then
10089 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10091 if test "$hardcode_minus_L" != no; then
10092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10093 else
10094 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10099 else
10100 if test "X$found_a" != "X"; then
10101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10102 else
10103 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10106 additional_includedir=
10107 case "$found_dir" in
10108 */lib | */lib/)
10109 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10110 additional_includedir="$basedir/include"
10112 esac
10113 if test "X$additional_includedir" != "X"; then
10114 if test "X$additional_includedir" != "X/usr/include"; then
10115 haveit=
10116 if test "X$additional_includedir" = "X/usr/local/include"; then
10117 if test -n "$GCC"; then
10118 case $host_os in
10119 linux*) haveit=yes;;
10120 esac
10123 if test -z "$haveit"; then
10124 for x in $CPPFLAGS $INCICONV; do
10126 acl_save_prefix="$prefix"
10127 prefix="$acl_final_prefix"
10128 acl_save_exec_prefix="$exec_prefix"
10129 exec_prefix="$acl_final_exec_prefix"
10130 eval x=\"$x\"
10131 exec_prefix="$acl_save_exec_prefix"
10132 prefix="$acl_save_prefix"
10134 if test "X$x" = "X-I$additional_includedir"; then
10135 haveit=yes
10136 break
10138 done
10139 if test -z "$haveit"; then
10140 if test -d "$additional_includedir"; then
10141 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10147 if test -n "$found_la"; then
10148 save_libdir="$libdir"
10149 case "$found_la" in
10150 */* | *\\*) . "$found_la" ;;
10151 *) . "./$found_la" ;;
10152 esac
10153 libdir="$save_libdir"
10154 for dep in $dependency_libs; do
10155 case "$dep" in
10156 -L*)
10157 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10158 if test "X$additional_libdir" != "X/usr/lib"; then
10159 haveit=
10160 if test "X$additional_libdir" = "X/usr/local/lib"; then
10161 if test -n "$GCC"; then
10162 case $host_os in
10163 linux*) haveit=yes;;
10164 esac
10167 if test -z "$haveit"; then
10168 haveit=
10169 for x in $LDFLAGS $LIBICONV; do
10171 acl_save_prefix="$prefix"
10172 prefix="$acl_final_prefix"
10173 acl_save_exec_prefix="$exec_prefix"
10174 exec_prefix="$acl_final_exec_prefix"
10175 eval x=\"$x\"
10176 exec_prefix="$acl_save_exec_prefix"
10177 prefix="$acl_save_prefix"
10179 if test "X$x" = "X-L$additional_libdir"; then
10180 haveit=yes
10181 break
10183 done
10184 if test -z "$haveit"; then
10185 if test -d "$additional_libdir"; then
10186 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10189 haveit=
10190 for x in $LDFLAGS $LTLIBICONV; do
10192 acl_save_prefix="$prefix"
10193 prefix="$acl_final_prefix"
10194 acl_save_exec_prefix="$exec_prefix"
10195 exec_prefix="$acl_final_exec_prefix"
10196 eval x=\"$x\"
10197 exec_prefix="$acl_save_exec_prefix"
10198 prefix="$acl_save_prefix"
10200 if test "X$x" = "X-L$additional_libdir"; then
10201 haveit=yes
10202 break
10204 done
10205 if test -z "$haveit"; then
10206 if test -d "$additional_libdir"; then
10207 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10213 -R*)
10214 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10215 if test "$enable_rpath" != no; then
10216 haveit=
10217 for x in $rpathdirs; do
10218 if test "X$x" = "X$dir"; then
10219 haveit=yes
10220 break
10222 done
10223 if test -z "$haveit"; then
10224 rpathdirs="$rpathdirs $dir"
10226 haveit=
10227 for x in $ltrpathdirs; do
10228 if test "X$x" = "X$dir"; then
10229 haveit=yes
10230 break
10232 done
10233 if test -z "$haveit"; then
10234 ltrpathdirs="$ltrpathdirs $dir"
10238 -l*)
10239 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10241 *.la)
10242 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10245 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10246 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10248 esac
10249 done
10251 else
10252 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10257 done
10258 done
10259 if test "X$rpathdirs" != "X"; then
10260 if test -n "$hardcode_libdir_separator"; then
10261 alldirs=
10262 for found_dir in $rpathdirs; do
10263 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10264 done
10265 acl_save_libdir="$libdir"
10266 libdir="$alldirs"
10267 eval flag=\"$hardcode_libdir_flag_spec\"
10268 libdir="$acl_save_libdir"
10269 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10270 else
10271 for found_dir in $rpathdirs; do
10272 acl_save_libdir="$libdir"
10273 libdir="$found_dir"
10274 eval flag=\"$hardcode_libdir_flag_spec\"
10275 libdir="$acl_save_libdir"
10276 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10277 done
10280 if test "X$ltrpathdirs" != "X"; then
10281 for found_dir in $ltrpathdirs; do
10282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10283 done
10292 am_save_CPPFLAGS="$CPPFLAGS"
10294 for element in $INCICONV; do
10295 haveit=
10296 for x in $CPPFLAGS; do
10298 acl_save_prefix="$prefix"
10299 prefix="$acl_final_prefix"
10300 acl_save_exec_prefix="$exec_prefix"
10301 exec_prefix="$acl_final_exec_prefix"
10302 eval x=\"$x\"
10303 exec_prefix="$acl_save_exec_prefix"
10304 prefix="$acl_save_prefix"
10306 if test "X$x" = "X$element"; then
10307 haveit=yes
10308 break
10310 done
10311 if test -z "$haveit"; then
10312 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10314 done
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10318 $as_echo_n "checking for iconv... " >&6; }
10319 if test "${am_cv_func_iconv+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10323 am_cv_func_iconv="no, consider installing GNU libiconv"
10324 am_cv_lib_iconv=no
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 #include <stdlib.h>
10328 #include <iconv.h>
10330 main ()
10332 iconv_t cd = iconv_open("","");
10333 iconv(cd,NULL,NULL,NULL,NULL);
10334 iconv_close(cd);
10336 return 0;
10338 _ACEOF
10339 if ac_fn_cxx_try_link "$LINENO"; then :
10340 am_cv_func_iconv=yes
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 if test "$am_cv_func_iconv" != yes; then
10345 am_save_LIBS="$LIBS"
10346 LIBS="$LIBS $LIBICONV"
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 #include <stdlib.h>
10350 #include <iconv.h>
10352 main ()
10354 iconv_t cd = iconv_open("","");
10355 iconv(cd,NULL,NULL,NULL,NULL);
10356 iconv_close(cd);
10358 return 0;
10360 _ACEOF
10361 if ac_fn_cxx_try_link "$LINENO"; then :
10362 am_cv_lib_iconv=yes
10363 am_cv_func_iconv=yes
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 LIBS="$am_save_LIBS"
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10372 $as_echo "$am_cv_func_iconv" >&6; }
10373 if test "$am_cv_func_iconv" = yes; then
10375 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10378 if test "$am_cv_lib_iconv" = yes; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10380 $as_echo_n "checking how to link with libiconv... " >&6; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10382 $as_echo "$LIBICONV" >&6; }
10383 else
10384 CPPFLAGS="$am_save_CPPFLAGS"
10385 LIBICONV=
10386 LTLIBICONV=
10391 if test "$am_cv_func_iconv" = yes; then
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10393 $as_echo_n "checking for iconv declaration... " >&6; }
10394 if test "${am_cv_proto_iconv+set}" = set; then :
10395 $as_echo_n "(cached) " >&6
10396 else
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10401 #include <stdlib.h>
10402 #include <iconv.h>
10403 extern
10404 #ifdef __cplusplus
10406 #endif
10407 #if defined(__STDC__) || defined(__cplusplus)
10408 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10409 #else
10410 size_t iconv();
10411 #endif
10414 main ()
10418 return 0;
10420 _ACEOF
10421 if ac_fn_cxx_try_compile "$LINENO"; then :
10422 am_cv_proto_iconv_arg1=""
10423 else
10424 am_cv_proto_iconv_arg1="const"
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 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);"
10430 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10432 }$am_cv_proto_iconv" >&5
10433 $as_echo "${ac_t:-
10434 }$am_cv_proto_iconv" >&6; }
10436 cat >>confdefs.h <<_ACEOF
10437 #define ICONV_CONST $am_cv_proto_iconv_arg1
10438 _ACEOF
10442 ac_ext=c
10443 ac_cpp='$CPP $CPPFLAGS'
10444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10449 # Until we have in-tree GNU iconv:
10450 LIBICONV_DEP=
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10455 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10456 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10457 $as_echo_n "(cached) " >&6
10458 else
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 #include <locale.h>
10463 main ()
10465 return LC_MESSAGES
10467 return 0;
10469 _ACEOF
10470 if ac_fn_c_try_link "$LINENO"; then :
10471 am_cv_val_LC_MESSAGES=yes
10472 else
10473 am_cv_val_LC_MESSAGES=no
10475 rm -f core conftest.err conftest.$ac_objext \
10476 conftest$ac_exeext conftest.$ac_ext
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10479 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10480 if test $am_cv_val_LC_MESSAGES = yes; then
10482 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10489 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10490 if test "${am_cv_langinfo_codeset+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 #include <langinfo.h>
10497 main ()
10499 char* cs = nl_langinfo(CODESET);
10501 return 0;
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 am_cv_langinfo_codeset=yes
10506 else
10507 am_cv_langinfo_codeset=no
10509 rm -f core conftest.err conftest.$ac_objext \
10510 conftest$ac_exeext conftest.$ac_ext
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10514 $as_echo "$am_cv_langinfo_codeset" >&6; }
10515 if test $am_cv_langinfo_codeset = yes; then
10517 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10522 # We will need to find libiberty.h and ansidecl.h
10523 saved_CFLAGS="$CFLAGS"
10524 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10525 saved_CXXFLAGS="$CXXFLAGS"
10526 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10527 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10528 stpcpy strnlen strsignal strstr strverscmp \
10529 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10530 free basename 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
10532 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10534 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10535 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 #undef $ac_tr_decl
10541 #define $ac_tr_decl 1
10543 #include "ansidecl.h"
10544 #include "system.h"
10547 main ()
10549 #ifndef $ac_func
10550 char *(*pfn) = (char *(*)) $ac_func ;
10551 #endif
10553 return 0;
10555 _ACEOF
10556 if ac_fn_c_try_compile "$LINENO"; then :
10557 eval "gcc_cv_have_decl_$ac_func=yes"
10558 else
10559 eval "gcc_cv_have_decl_$ac_func=no"
10561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10564 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10566 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10567 #define $ac_tr_decl 1
10568 _ACEOF
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10573 #define $ac_tr_decl 0
10574 _ACEOF
10578 done
10581 for ac_func in getrlimit setrlimit getrusage
10583 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10585 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10586 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #undef $ac_tr_decl
10592 #define $ac_tr_decl 1
10594 #include "ansidecl.h"
10595 #include "system.h"
10596 #ifdef HAVE_SYS_RESOURCE_H
10597 #include <sys/resource.h>
10598 #endif
10602 main ()
10604 #ifndef $ac_func
10605 char *(*pfn) = (char *(*)) $ac_func ;
10606 #endif
10608 return 0;
10610 _ACEOF
10611 if ac_fn_c_try_compile "$LINENO"; then :
10612 eval "gcc_cv_have_decl_$ac_func=yes"
10613 else
10614 eval "gcc_cv_have_decl_$ac_func=no"
10616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10621 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10622 #define $ac_tr_decl 1
10623 _ACEOF
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10627 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10628 #define $ac_tr_decl 0
10629 _ACEOF
10633 done
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10639 #include "ansidecl.h"
10640 #include "system.h"
10641 #ifdef HAVE_SYS_RESOURCE_H
10642 #include <sys/resource.h>
10643 #endif
10646 main ()
10648 rlim_t l = 0;
10650 return 0;
10652 _ACEOF
10653 if ac_fn_c_try_compile "$LINENO"; then :
10655 else
10657 $as_echo "#define rlim_t long" >>confdefs.h
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10663 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10664 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10665 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10666 for ac_func in ldgetname
10668 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10670 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10671 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #undef $ac_tr_decl
10677 #define $ac_tr_decl 1
10679 #include "ansidecl.h"
10680 #include "system.h"
10681 #ifdef HAVE_LDFCN_H
10682 #undef FREAD
10683 #undef FWRITE
10684 #include <ldfcn.h>
10685 #endif
10689 main ()
10691 #ifndef $ac_func
10692 char *(*pfn) = (char *(*)) $ac_func ;
10693 #endif
10695 return 0;
10697 _ACEOF
10698 if ac_fn_c_try_compile "$LINENO"; then :
10699 eval "gcc_cv_have_decl_$ac_func=yes"
10700 else
10701 eval "gcc_cv_have_decl_$ac_func=no"
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10706 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10709 #define $ac_tr_decl 1
10710 _ACEOF
10712 else
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10714 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10715 #define $ac_tr_decl 0
10716 _ACEOF
10720 done
10723 for ac_func in times
10725 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10727 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10728 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #undef $ac_tr_decl
10734 #define $ac_tr_decl 1
10736 #include "ansidecl.h"
10737 #include "system.h"
10738 #ifdef HAVE_SYS_TIMES_H
10739 #include <sys/times.h>
10740 #endif
10744 main ()
10746 #ifndef $ac_func
10747 char *(*pfn) = (char *(*)) $ac_func ;
10748 #endif
10750 return 0;
10752 _ACEOF
10753 if ac_fn_c_try_compile "$LINENO"; then :
10754 eval "gcc_cv_have_decl_$ac_func=yes"
10755 else
10756 eval "gcc_cv_have_decl_$ac_func=no"
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10763 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10764 #define $ac_tr_decl 1
10765 _ACEOF
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10770 #define $ac_tr_decl 0
10771 _ACEOF
10775 done
10778 for ac_func in sigaltstack
10780 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10782 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10783 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 #undef $ac_tr_decl
10789 #define $ac_tr_decl 1
10791 #include "ansidecl.h"
10792 #include "system.h"
10793 #include <signal.h>
10797 main ()
10799 #ifndef $ac_func
10800 char *(*pfn) = (char *(*)) $ac_func ;
10801 #endif
10803 return 0;
10805 _ACEOF
10806 if ac_fn_c_try_compile "$LINENO"; then :
10807 eval "gcc_cv_have_decl_$ac_func=yes"
10808 else
10809 eval "gcc_cv_have_decl_$ac_func=no"
10811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10816 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10817 #define $ac_tr_decl 1
10818 _ACEOF
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10823 #define $ac_tr_decl 0
10824 _ACEOF
10828 done
10831 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10832 # prototype.
10833 ac_ext=cpp
10834 ac_cpp='$CXXCPP $CPPFLAGS'
10835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10839 for ac_func in madvise
10841 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10843 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10844 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849 #undef $ac_tr_decl
10850 #define $ac_tr_decl 1
10852 #include "ansidecl.h"
10853 #include "system.h"
10857 main ()
10859 #ifndef $ac_func
10860 char *(*pfn) = (char *(*)) $ac_func ;
10861 #endif
10863 return 0;
10865 _ACEOF
10866 if ac_fn_cxx_try_compile "$LINENO"; then :
10867 eval "gcc_cv_have_decl_$ac_func=yes"
10868 else
10869 eval "gcc_cv_have_decl_$ac_func=no"
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10876 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10877 #define $ac_tr_decl 1
10878 _ACEOF
10880 else
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10883 #define $ac_tr_decl 0
10884 _ACEOF
10888 done
10890 ac_ext=c
10891 ac_cpp='$CPP $CPPFLAGS'
10892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10897 # More time-related stuff.
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10899 $as_echo_n "checking for struct tms... " >&6; }
10900 if test "${ac_cv_struct_tms+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 #include "ansidecl.h"
10908 #include "system.h"
10909 #ifdef HAVE_SYS_TIMES_H
10910 #include <sys/times.h>
10911 #endif
10914 main ()
10916 struct tms tms;
10918 return 0;
10920 _ACEOF
10921 if ac_fn_c_try_compile "$LINENO"; then :
10922 ac_cv_struct_tms=yes
10923 else
10924 ac_cv_struct_tms=no
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10929 $as_echo "$ac_cv_struct_tms" >&6; }
10930 if test $ac_cv_struct_tms = yes; then
10932 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10936 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10937 # revisit after autoconf 2.50.
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10939 $as_echo_n "checking for clock_t... " >&6; }
10940 if test "${gcc_cv_type_clock_t+set}" = set; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10947 #include "ansidecl.h"
10948 #include "system.h"
10951 main ()
10953 clock_t x;
10955 return 0;
10957 _ACEOF
10958 if ac_fn_c_try_compile "$LINENO"; then :
10959 gcc_cv_type_clock_t=yes
10960 else
10961 gcc_cv_type_clock_t=no
10963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10966 $as_echo "$gcc_cv_type_clock_t" >&6; }
10967 if test $gcc_cv_type_clock_t = yes; then
10969 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10973 # Check if F_SETLKW is supported by fcntl.
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10975 $as_echo_n "checking for F_SETLKW... " >&6; }
10976 if test "${ac_cv_f_setlkw+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10983 #include <fcntl.h>
10985 main ()
10988 struct flock fl;
10989 fl.l_whence = 0;
10990 fl.l_start = 0;
10991 fl.l_len = 0;
10992 fl.l_pid = 0;
10993 return fcntl (1, F_SETLKW, &fl);
10995 return 0;
10997 _ACEOF
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999 ac_cv_f_setlkw=yes
11000 else
11001 ac_cv_f_setlkw=no
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11006 $as_echo "$ac_cv_f_setlkw" >&6; }
11007 if test $ac_cv_f_setlkw = yes; then
11009 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11013 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11014 CFLAGS="$saved_CFLAGS"
11015 CXXFLAGS="$saved_CXXFLAGS"
11017 # mkdir takes a single argument on some systems.
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11019 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11020 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11026 #include <sys/types.h>
11027 #ifdef HAVE_SYS_STAT_H
11028 # include <sys/stat.h>
11029 #endif
11030 #ifdef HAVE_UNISTD_H
11031 # include <unistd.h>
11032 #endif
11033 #ifdef HAVE_DIRECT_H
11034 # include <direct.h>
11035 #endif
11037 main ()
11039 mkdir ("foo", 0);
11041 return 0;
11043 _ACEOF
11044 if ac_fn_c_try_compile "$LINENO"; then :
11045 gcc_cv_mkdir_takes_one_arg=no
11046 else
11047 gcc_cv_mkdir_takes_one_arg=yes
11049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11052 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11053 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11055 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11060 # File extensions
11061 manext='.1'
11062 objext='.o'
11066 # With Setjmp/Longjmp based exception handling.
11067 # Check whether --enable-sjlj-exceptions was given.
11068 if test "${enable_sjlj_exceptions+set}" = set; then :
11069 enableval=$enable_sjlj_exceptions; case $target in
11070 *-*-hpux10*)
11071 if test $enableval != yes; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11073 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11074 enableval=yes
11077 esac
11078 force_sjlj_exceptions=yes
11079 else
11080 case $target in
11081 *-*-hpux10*)
11082 force_sjlj_exceptions=yes
11083 enableval=yes
11085 lm32*-*-*)
11086 force_sjlj_exceptions=yes
11087 enableval=yes
11090 force_sjlj_exceptions=no
11092 esac
11095 if test $force_sjlj_exceptions = yes; then
11096 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11098 cat >>confdefs.h <<_ACEOF
11099 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11100 _ACEOF
11104 # --------------------------------------------------------
11105 # Build, host, and target specific configuration fragments
11106 # --------------------------------------------------------
11108 # Collect build-machine-specific information.
11109 . ${srcdir}/config.build
11111 # Collect host-machine-specific information.
11112 . ${srcdir}/config.host
11114 target_gtfiles=
11116 # Collect target-machine-specific information.
11117 . ${srcdir}/config.gcc
11119 extra_objs="${host_extra_objs} ${extra_objs}"
11120 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11122 # Default the target-machine variables that were not explicitly set.
11123 if test x"$tm_file" = x
11124 then tm_file=$cpu_type/$cpu_type.h; fi
11126 if test x"$extra_headers" = x
11127 then extra_headers=; fi
11129 if test x$md_file = x
11130 then md_file=$cpu_type/$cpu_type.md; fi
11132 if test x$out_file = x
11133 then out_file=$cpu_type/$cpu_type.c; fi
11135 if test x"$tmake_file" = x
11136 then tmake_file=$cpu_type/t-$cpu_type
11139 # Support --enable-initfini-array.
11140 if test x$enable_initfini_array != xno; then
11141 tm_file="${tm_file} initfini-array.h"
11144 if test x"$dwarf2" = xyes
11145 then tm_file="$tm_file tm-dwarf2.h"
11148 # Say what files are being used for the output code and MD file.
11149 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11150 echo "Using \`$srcdir/config/$md_file' as machine description file."
11152 # If any of the xm_file variables contain nonexistent files, warn
11153 # about them and drop them.
11156 for x in $build_xm_file; do
11157 if test -f $srcdir/config/$x
11158 then bx="$bx $x"
11159 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11160 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11162 done
11163 build_xm_file="$bx"
11166 for x in $host_xm_file; do
11167 if test -f $srcdir/config/$x
11168 then hx="$hx $x"
11169 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11170 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11172 done
11173 host_xm_file="$hx"
11176 for x in $xm_file; do
11177 if test -f $srcdir/config/$x
11178 then tx="$tx $x"
11179 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11180 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11182 done
11183 xm_file="$tx"
11185 count=a
11186 for f in $tm_file; do
11187 count=${count}x
11188 done
11189 if test $count = ax; then
11190 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11191 else
11192 echo "Using the following target machine macro files:"
11193 for f in $tm_file; do
11194 echo " $srcdir/config/$f"
11195 done
11198 if test x$use_long_long_for_widest_fast_int = xyes; then
11200 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11204 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11206 cat >>confdefs.h <<_ACEOF
11207 #define HAVE_GNU_LD $gnu_ld_bool
11208 _ACEOF
11211 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11213 cat >>confdefs.h <<_ACEOF
11214 #define HAVE_GNU_AS $gnu_as_bool
11215 _ACEOF
11218 count=a
11219 for f in $host_xm_file; do
11220 count=${count}x
11221 done
11222 if test $count = a; then
11224 elif test $count = ax; then
11225 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11226 else
11227 echo "Using the following host machine macro files:"
11228 for f in $host_xm_file; do
11229 echo " $srcdir/config/$f"
11230 done
11232 echo "Using ${out_host_hook_obj} for host machine hooks."
11234 if test "$host_xm_file" != "$build_xm_file"; then
11235 count=a
11236 for f in $build_xm_file; do
11237 count=${count}x
11238 done
11239 if test $count = a; then
11241 elif test $count = ax; then
11242 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11243 else
11244 echo "Using the following build machine macro files:"
11245 for f in $build_xm_file; do
11246 echo " $srcdir/config/$f"
11247 done
11251 if test -n "$configured_native_system_header_dir"; then
11252 native_system_header_dir=$configured_native_system_header_dir
11254 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11257 case ${host} in
11258 powerpc*-*-darwin*)
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11260 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11261 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11267 #include <sys/cdefs.h>
11268 #include <sys/signal.h>
11269 #include <ucontext.h>
11270 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11272 _ACEOF
11273 if ac_fn_c_try_compile "$LINENO"; then :
11274 gcc_cv_mcontext_underscores=no
11275 else
11276 gcc_cv_mcontext_underscores=yes
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11281 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11282 if test $gcc_cv_mcontext_underscores = yes; then
11284 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11288 esac
11290 # ---------
11291 # Threading
11292 # ---------
11294 # Check if a valid thread package
11295 case ${enable_threads} in
11296 "" | no)
11297 # No threads
11298 target_thread_file='single'
11300 yes)
11301 # default
11302 target_thread_file='single'
11304 aix | dce | lynx | mipssde | posix | rtems | \
11305 single | tpf | vxworks | win32)
11306 target_thread_file=${enable_threads}
11309 echo "${enable_threads} is an unknown thread package" 1>&2
11310 exit 1
11312 esac
11314 if test x${thread_file} = x; then
11315 # No thread file set by target-specific clauses in config.gcc,
11316 # so use file chosen by default logic above
11317 thread_file=${target_thread_file}
11320 # --------
11321 # UNSORTED
11322 # --------
11324 use_cxa_atexit=no
11325 if test x$enable___cxa_atexit = xyes || \
11326 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11327 if test x$host = x$target; then
11328 case $host in
11329 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11330 # keyed to flag_use_cxa_atexit
11331 *-*-mingw32*)
11332 use_cxa_atexit=yes
11334 powerpc-ibm-aix*)
11335 use_cxa_atexit=yes
11338 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11339 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11340 use_cxa_atexit=yes
11341 else
11342 echo "__cxa_atexit can't be enabled on this target"
11346 esac
11347 else
11348 # We can't check for __cxa_atexit when building a cross, so assume
11349 # it is available
11350 use_cxa_atexit=yes
11352 if test x$use_cxa_atexit = xyes; then
11354 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11359 # Look for a file containing extra machine modes.
11360 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11361 extra_modes_file='$(srcdir)'/config/${extra_modes}
11364 cat >>confdefs.h <<_ACEOF
11365 #define EXTRA_MODES_FILE "config/$extra_modes"
11366 _ACEOF
11370 # Convert extra_options into a form suitable for Makefile use.
11371 extra_opt_files=
11372 all_opt_files=
11373 for f in $extra_options; do
11374 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11375 all_opt_files="$all_opt_files $srcdir/config/$f"
11376 done
11379 # auto-host.h is the file containing items generated by autoconf and is
11380 # the first file included by config.h.
11381 # If host=build, it is correct to have bconfig include auto-host.h
11382 # as well. If host!=build, we are in error and need to do more
11383 # work to find out the build config parameters.
11384 if test x$host = x$build
11385 then
11386 build_auto=auto-host.h
11387 else
11388 # We create a subdir, then run autoconf in the subdir.
11389 # To prevent recursion we set host and build for the new
11390 # invocation of configure to the build for this invocation
11391 # of configure.
11392 tempdir=build.$$
11393 rm -rf $tempdir
11394 mkdir $tempdir
11395 cd $tempdir
11396 case ${srcdir} in
11397 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11398 *) realsrcdir=../${srcdir};;
11399 esac
11400 # Clearing GMPINC is necessary to prevent host headers being
11401 # used by the build compiler. Defining GENERATOR_FILE stops
11402 # system.h from including gmp.h.
11403 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11404 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11405 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11406 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11407 ${realsrcdir}/configure \
11408 --enable-languages=${enable_languages-all} \
11409 --target=$target_alias --host=$build_alias --build=$build_alias
11411 # We just finished tests for the build machine, so rename
11412 # the file auto-build.h in the gcc directory.
11413 mv auto-host.h ../auto-build.h
11414 cd ..
11415 rm -rf $tempdir
11416 build_auto=auto-build.h
11420 tm_file="${tm_file} defaults.h"
11421 tm_p_file="${tm_p_file} tm-preds.h"
11422 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11423 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11424 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11425 # put this back in temporarily.
11426 xm_file="auto-host.h ansidecl.h ${xm_file}"
11428 # --------
11429 # UNSORTED
11430 # --------
11432 # Compile in configure arguments.
11433 if test -f configargs.h ; then
11434 # Being re-configured.
11435 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11436 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11437 else
11438 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11441 # Double all backslashes and backslash all quotes to turn
11442 # gcc_config_arguments into a C string.
11443 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11444 $gcc_config_arguments
11446 gcc_config_arguments_str=`cat conftest.out`
11447 rm -f conftest.out
11449 cat > configargs.h <<EOF
11450 /* Generated automatically. */
11451 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11452 static const char thread_model[] = "$thread_file";
11454 static const struct {
11455 const char *name, *value;
11456 } configure_default_options[] = $configure_default_options;
11459 gcc_BASEVER=`cat $srcdir/BASE-VER`
11460 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11461 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11462 if test -f $srcdir/REVISION ; then
11463 gcc_REVISION=`cat $srcdir/REVISION`
11464 else
11465 gcc_REVISION=""
11467 cat > plugin-version.h <<EOF
11468 #include "configargs.h"
11470 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11471 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11472 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11473 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11475 static char basever[] = "$gcc_BASEVER";
11476 static char datestamp[] = "$gcc_DATESTAMP";
11477 static char devphase[] = "$gcc_DEVPHASE";
11478 static char revision[] = "$gcc_REVISION";
11480 /* FIXME plugins: We should make the version information more precise.
11481 One way to do is to add a checksum. */
11483 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11484 devphase, revision,
11485 configuration_arguments};
11488 # Internationalization
11489 # If we haven't got the data from the intl directory,
11490 # assume NLS is disabled.
11491 USE_NLS=no
11492 LIBINTL=
11493 LIBINTL_DEP=
11494 INCINTL=
11495 XGETTEXT=
11496 GMSGFMT=
11497 POSUB=
11499 if test -f ../intl/config.intl; then
11500 . ../intl/config.intl
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11503 $as_echo_n "checking whether NLS is requested... " >&6; }
11504 if test x"$USE_NLS" != xyes; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507 else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11509 $as_echo "yes" >&6; }
11511 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11515 $as_echo_n "checking for catalogs to be installed... " >&6; }
11516 # Look for .po and .gmo files in the source directory.
11517 CATALOGS=
11518 XLINGUAS=
11519 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11520 # If there aren't any .gmo files the shell will give us the
11521 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11522 # weeded out.
11523 case "$cat" in *\**)
11524 continue;;
11525 esac
11526 # The quadruple backslash is collapsed to a double backslash
11527 # by the backticks, then collapsed again by the double quotes,
11528 # leaving us with one backslash in the sed expression (right
11529 # before the dot that mustn't act as a wildcard).
11530 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11531 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11532 # The user is allowed to set LINGUAS to a list of languages to
11533 # install catalogs for. If it's empty that means "all of them."
11534 if test "x$LINGUAS" = x; then
11535 CATALOGS="$CATALOGS $cat"
11536 XLINGUAS="$XLINGUAS $lang"
11537 else
11538 case "$LINGUAS" in *$lang*)
11539 CATALOGS="$CATALOGS $cat"
11540 XLINGUAS="$XLINGUAS $lang"
11542 esac
11544 done
11545 LINGUAS="$XLINGUAS"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11547 $as_echo "$LINGUAS" >&6; }
11550 DATADIRNAME=share
11552 INSTOBJEXT=.mo
11554 GENCAT=gencat
11556 CATOBJEXT=.gmo
11560 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11561 # -liconv on the link line twice.
11562 case "$LIBINTL" in *$LIBICONV*)
11563 LIBICONV= ;;
11564 esac
11566 # Check whether --enable-secureplt was given.
11567 if test "${enable_secureplt+set}" = set; then :
11568 enableval=$enable_secureplt;
11572 # Check whether --enable-leading-mingw64-underscores was given.
11573 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11574 enableval=$enable_leading_mingw64_underscores;
11577 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11579 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11583 # Check whether --enable-cld was given.
11584 if test "${enable_cld+set}" = set; then :
11585 enableval=$enable_cld;
11586 else
11587 enable_cld=no
11591 # Check whether --enable-frame-pointer was given.
11592 if test "${enable_frame_pointer+set}" = set; then :
11593 enableval=$enable_frame_pointer;
11594 else
11596 case $target_os in
11597 linux* | darwin[8912]*)
11598 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11599 # DWARF2.
11600 enable_frame_pointer=no
11603 enable_frame_pointer=yes
11605 esac
11610 # Windows32 Registry support for specifying GCC installation paths.
11611 # Check whether --enable-win32-registry was given.
11612 if test "${enable_win32_registry+set}" = set; then :
11613 enableval=$enable_win32_registry;
11617 case $host_os in
11618 win32 | pe | cygwin* | mingw32* | uwin*)
11619 if test "x$enable_win32_registry" != xno; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11621 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11622 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 ac_func_search_save_LIBS=$LIBS
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char RegOpenKeyExA ();
11637 main ()
11639 return RegOpenKeyExA ();
11641 return 0;
11643 _ACEOF
11644 for ac_lib in '' advapi32; do
11645 if test -z "$ac_lib"; then
11646 ac_res="none required"
11647 else
11648 ac_res=-l$ac_lib
11649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 ac_cv_search_RegOpenKeyExA=$ac_res
11654 rm -f core conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext
11656 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11657 break
11659 done
11660 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11662 else
11663 ac_cv_search_RegOpenKeyExA=no
11665 rm conftest.$ac_ext
11666 LIBS=$ac_func_search_save_LIBS
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11669 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11670 ac_res=$ac_cv_search_RegOpenKeyExA
11671 if test "$ac_res" != no; then :
11672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11674 else
11675 enable_win32_registry=no
11680 if test "x$enable_win32_registry" != xno; then
11682 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11685 if test "x$enable_win32_registry" != xyes \
11686 && test "x$enable_win32_registry" != x; then
11688 cat >>confdefs.h <<_ACEOF
11689 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11690 _ACEOF
11695 esac
11697 # Get an absolute path to the GCC top-level source directory
11698 holddir=`${PWDCMD-pwd}`
11699 cd $srcdir
11700 topdir=`${PWDCMD-pwd}`
11701 cd $holddir
11703 # Conditionalize the makefile for this host machine.
11704 xmake_file=
11705 for f in ${host_xmake_file}
11707 if test -f ${srcdir}/config/$f
11708 then
11709 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11711 done
11713 # Conditionalize the makefile for this target machine.
11714 tmake_file_=
11715 for f in ${tmake_file}
11717 if test -f ${srcdir}/config/$f
11718 then
11719 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11721 done
11722 tmake_file="${tmake_file_}"
11724 out_object_file=`basename $out_file .c`.o
11725 common_out_object_file=`basename $common_out_file .c`.o
11727 tm_file_list="options.h"
11728 tm_include_list="options.h insn-constants.h"
11729 for f in $tm_file; do
11730 case $f in
11731 ./* )
11732 f=`echo $f | sed 's/^..//'`
11733 tm_file_list="${tm_file_list} $f"
11734 tm_include_list="${tm_include_list} $f"
11736 defaults.h )
11737 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11738 tm_include_list="${tm_include_list} $f"
11741 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11742 tm_include_list="${tm_include_list} config/$f"
11744 esac
11745 done
11747 tm_p_file_list=
11748 tm_p_include_list=
11749 for f in $tm_p_file; do
11750 case $f in
11751 tm-preds.h )
11752 tm_p_file_list="${tm_p_file_list} $f"
11753 tm_p_include_list="${tm_p_include_list} $f"
11756 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11757 tm_p_include_list="${tm_p_include_list} config/$f"
11758 esac
11759 done
11761 xm_file_list=
11762 xm_include_list=
11763 for f in $xm_file; do
11764 case $f in
11765 ansidecl.h )
11766 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11767 xm_include_list="${xm_include_list} $f"
11769 auto-host.h )
11770 xm_file_list="${xm_file_list} $f"
11771 xm_include_list="${xm_include_list} $f"
11774 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11775 xm_include_list="${xm_include_list} config/$f"
11777 esac
11778 done
11780 host_xm_file_list=
11781 host_xm_include_list=
11782 for f in $host_xm_file; do
11783 case $f in
11784 ansidecl.h )
11785 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11786 host_xm_include_list="${host_xm_include_list} $f"
11788 auto-host.h )
11789 host_xm_file_list="${host_xm_file_list} $f"
11790 host_xm_include_list="${host_xm_include_list} $f"
11793 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11794 host_xm_include_list="${host_xm_include_list} config/$f"
11796 esac
11797 done
11799 build_xm_file_list=
11800 for f in $build_xm_file; do
11801 case $f in
11802 ansidecl.h )
11803 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11804 build_xm_include_list="${build_xm_include_list} $f"
11806 auto-build.h | auto-host.h )
11807 build_xm_file_list="${build_xm_file_list} $f"
11808 build_xm_include_list="${build_xm_include_list} $f"
11811 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11812 build_xm_include_list="${build_xm_include_list} config/$f"
11814 esac
11815 done
11817 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11818 # cross-compiler which does not use the native headers and libraries.
11819 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11820 CROSS=
11821 ALL=all.internal
11822 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11824 if test "x$with_build_sysroot" != x; then
11825 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11826 else
11827 # This value is used, even on a native system, because
11828 # CROSS_SYSTEM_HEADER_DIR is just
11829 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11830 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11833 if test x$host != x$target
11834 then
11835 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11836 ALL=all.cross
11837 SYSTEM_HEADER_DIR=$build_system_header_dir
11838 case "$host","$target" in
11839 # Darwin crosses can use the host system's libraries and headers,
11840 # because of the fat library support. Of course, it must be the
11841 # same version of Darwin on both sides. Allow the user to
11842 # just say --target=foo-darwin without a version number to mean
11843 # "the version on this system".
11844 *-*-darwin*,*-*-darwin*)
11845 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11846 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11847 if test $hostos = $targetos -o $targetos = darwin ; then
11848 CROSS=
11849 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11850 with_headers=yes
11854 i?86-*-*,x86_64-*-* \
11855 | powerpc*-*-*,powerpc64*-*-*)
11856 CROSS="$CROSS -DNATIVE_CROSS" ;;
11857 esac
11859 case $target in
11860 *-*-mingw*)
11861 if test "x$with_headers" = x; then
11862 with_headers=yes
11867 esac
11868 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11869 SYSTEM_HEADER_DIR=$build_system_header_dir
11872 # If this is a cross-compiler that does not
11873 # have its own set of headers then define
11874 # inhibit_libc
11876 # If this is using newlib, without having the headers available now,
11877 # then define inhibit_libc in LIBGCC2_CFLAGS.
11878 # This prevents libgcc2 from containing any code which requires libc
11879 # support.
11880 : ${inhibit_libc=false}
11881 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11882 test x$with_newlib = xyes ; } &&
11883 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11884 inhibit_libc=true
11888 # When building gcc with a cross-compiler, we need to adjust things so
11889 # that the generator programs are still built with the native compiler.
11890 # Also, we cannot run fixincludes.
11892 # These are the normal (build=host) settings:
11893 CC_FOR_BUILD='$(CC)'
11894 CXX_FOR_BUILD='$(CXX)'
11895 BUILD_CFLAGS='$(ALL_CFLAGS)'
11896 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11897 BUILD_LDFLAGS='$(LDFLAGS)'
11898 STMP_FIXINC=stmp-fixinc
11900 # And these apply if build != host, or we are generating coverage data
11901 if test x$build != x$host || test "x$coverage_flags" != x
11902 then
11903 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11904 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11905 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11908 # Expand extra_headers to include complete path.
11909 # This substitutes for lots of t-* files.
11910 extra_headers_list=
11911 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11912 for file in ${extra_headers} ; do
11913 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11914 done
11916 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11917 if test x"$use_gcc_tgmath" = xyes
11918 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11921 # Define collect2 in Makefile.
11922 case $host_can_use_collect2 in
11923 no) collect2= ;;
11924 *) collect2='collect2$(exeext)' ;;
11925 esac
11928 # Add a definition of USE_COLLECT2 if system wants one.
11929 case $use_collect2 in
11930 no) use_collect2= ;;
11931 "") ;;
11933 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11934 xm_defines="${xm_defines} USE_COLLECT2"
11935 case $host_can_use_collect2 in
11937 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11939 esac
11941 esac
11944 cat >>confdefs.h <<_ACEOF
11945 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11946 _ACEOF
11949 # ---------------------------
11950 # Assembler & linker features
11951 # ---------------------------
11953 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11954 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11955 # However when ld-new is first executed from the build tree, libtool will
11956 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11957 # to the build tree. While doing this we need to use the previous-stage
11958 # linker, or we have an infinite loop. The presence of a shell script as
11959 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11960 # the gcc/collect-ld script. So we need to know how libtool works, or
11961 # exec-tool will fail.
11964 case `pwd` in
11965 *\ * | *\ *)
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11967 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11968 esac
11972 macro_version='2.2.7a'
11973 macro_revision='1.3134'
11987 ltmain="$ac_aux_dir/ltmain.sh"
11989 # Backslashify metacharacters that are still active within
11990 # double-quoted strings.
11991 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11993 # Same as above, but do not quote variable references.
11994 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11996 # Sed substitution to delay expansion of an escaped shell variable in a
11997 # double_quote_subst'ed string.
11998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12000 # Sed substitution to delay expansion of an escaped single quote.
12001 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12003 # Sed substitution to avoid accidental globbing in evaled expressions
12004 no_glob_subst='s/\*/\\\*/g'
12006 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12007 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12011 $as_echo_n "checking how to print strings... " >&6; }
12012 # Test print first, because it will be a builtin if present.
12013 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12014 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12015 ECHO='print -r --'
12016 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12017 ECHO='printf %s\n'
12018 else
12019 # Use this function as a fallback that always works.
12020 func_fallback_echo ()
12022 eval 'cat <<_LTECHO_EOF
12024 _LTECHO_EOF'
12026 ECHO='func_fallback_echo'
12029 # func_echo_all arg...
12030 # Invoke $ECHO with all args, space-separated.
12031 func_echo_all ()
12033 $ECHO ""
12036 case "$ECHO" in
12037 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12038 $as_echo "printf" >&6; } ;;
12039 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12040 $as_echo "print -r" >&6; } ;;
12041 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12042 $as_echo "cat" >&6; } ;;
12043 esac
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12059 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12060 if test "${ac_cv_path_SED+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12064 for ac_i in 1 2 3 4 5 6 7; do
12065 ac_script="$ac_script$as_nl$ac_script"
12066 done
12067 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12068 { ac_script=; unset ac_script;}
12069 if test -z "$SED"; then
12070 ac_path_SED_found=false
12071 # Loop through the user's path and test for each of PROGNAME-LIST
12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073 for as_dir in $PATH
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
12077 for ac_prog in sed gsed; do
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12080 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12081 # Check for GNU ac_path_SED and select it if it is found.
12082 # Check for GNU $ac_path_SED
12083 case `"$ac_path_SED" --version 2>&1` in
12084 *GNU*)
12085 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12087 ac_count=0
12088 $as_echo_n 0123456789 >"conftest.in"
12089 while :
12091 cat "conftest.in" "conftest.in" >"conftest.tmp"
12092 mv "conftest.tmp" "conftest.in"
12093 cp "conftest.in" "conftest.nl"
12094 $as_echo '' >> "conftest.nl"
12095 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12097 as_fn_arith $ac_count + 1 && ac_count=$as_val
12098 if test $ac_count -gt ${ac_path_SED_max-0}; then
12099 # Best one so far, save it but keep looking for a better one
12100 ac_cv_path_SED="$ac_path_SED"
12101 ac_path_SED_max=$ac_count
12103 # 10*(2^10) chars as input seems more than enough
12104 test $ac_count -gt 10 && break
12105 done
12106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12107 esac
12109 $ac_path_SED_found && break 3
12110 done
12111 done
12112 done
12113 IFS=$as_save_IFS
12114 if test -z "$ac_cv_path_SED"; then
12115 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12117 else
12118 ac_cv_path_SED=$SED
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12123 $as_echo "$ac_cv_path_SED" >&6; }
12124 SED="$ac_cv_path_SED"
12125 rm -f conftest.sed
12127 test -z "$SED" && SED=sed
12128 Xsed="$SED -e 1s/^X//"
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12141 $as_echo_n "checking for fgrep... " >&6; }
12142 if test "${ac_cv_path_FGREP+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12146 then ac_cv_path_FGREP="$GREP -F"
12147 else
12148 if test -z "$FGREP"; then
12149 ac_path_FGREP_found=false
12150 # Loop through the user's path and test for each of PROGNAME-LIST
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_prog in fgrep; do
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12159 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12160 # Check for GNU ac_path_FGREP and select it if it is found.
12161 # Check for GNU $ac_path_FGREP
12162 case `"$ac_path_FGREP" --version 2>&1` in
12163 *GNU*)
12164 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12166 ac_count=0
12167 $as_echo_n 0123456789 >"conftest.in"
12168 while :
12170 cat "conftest.in" "conftest.in" >"conftest.tmp"
12171 mv "conftest.tmp" "conftest.in"
12172 cp "conftest.in" "conftest.nl"
12173 $as_echo 'FGREP' >> "conftest.nl"
12174 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12176 as_fn_arith $ac_count + 1 && ac_count=$as_val
12177 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12178 # Best one so far, save it but keep looking for a better one
12179 ac_cv_path_FGREP="$ac_path_FGREP"
12180 ac_path_FGREP_max=$ac_count
12182 # 10*(2^10) chars as input seems more than enough
12183 test $ac_count -gt 10 && break
12184 done
12185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12186 esac
12188 $ac_path_FGREP_found && break 3
12189 done
12190 done
12191 done
12192 IFS=$as_save_IFS
12193 if test -z "$ac_cv_path_FGREP"; then
12194 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12196 else
12197 ac_cv_path_FGREP=$FGREP
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12203 $as_echo "$ac_cv_path_FGREP" >&6; }
12204 FGREP="$ac_cv_path_FGREP"
12207 test -z "$GREP" && GREP=grep
12227 # Check whether --with-gnu-ld was given.
12228 if test "${with_gnu_ld+set}" = set; then :
12229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12230 else
12231 with_gnu_ld=no
12234 ac_prog=ld
12235 if test "$GCC" = yes; then
12236 # Check if gcc -print-prog-name=ld gives a path.
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12238 $as_echo_n "checking for ld used by $CC... " >&6; }
12239 case $host in
12240 *-*-mingw*)
12241 # gcc leaves a trailing carriage return which upsets mingw
12242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12245 esac
12246 case $ac_prog in
12247 # Accept absolute paths.
12248 [\\/]* | ?:[\\/]*)
12249 re_direlt='/[^/][^/]*/\.\./'
12250 # Canonicalize the pathname of ld
12251 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12252 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12253 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12254 done
12255 test -z "$LD" && LD="$ac_prog"
12258 # If it fails, then pretend we aren't using GCC.
12259 ac_prog=ld
12262 # If it is relative, then search for the first ld in PATH.
12263 with_gnu_ld=unknown
12265 esac
12266 elif test "$with_gnu_ld" = yes; then
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12268 $as_echo_n "checking for GNU ld... " >&6; }
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12271 $as_echo_n "checking for non-GNU ld... " >&6; }
12273 if test "${lt_cv_path_LD+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 if test -z "$LD"; then
12277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12278 for ac_dir in $PATH; do
12279 IFS="$lt_save_ifs"
12280 test -z "$ac_dir" && ac_dir=.
12281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12282 lt_cv_path_LD="$ac_dir/$ac_prog"
12283 # Check to see if the program is GNU ld. I'd rather use --version,
12284 # but apparently some variants of GNU ld only accept -v.
12285 # Break only if it was the GNU/non-GNU ld that we prefer.
12286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12287 *GNU* | *'with BFD'*)
12288 test "$with_gnu_ld" != no && break
12291 test "$with_gnu_ld" != yes && break
12293 esac
12295 done
12296 IFS="$lt_save_ifs"
12297 else
12298 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12302 LD="$lt_cv_path_LD"
12303 if test -n "$LD"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12305 $as_echo "$LD" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12310 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12312 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12313 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12317 case `$LD -v 2>&1 </dev/null` in
12318 *GNU* | *'with BFD'*)
12319 lt_cv_prog_gnu_ld=yes
12322 lt_cv_prog_gnu_ld=no
12324 esac
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12327 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12328 with_gnu_ld=$lt_cv_prog_gnu_ld
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12339 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12340 if test "${lt_cv_path_NM+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 if test -n "$NM"; then
12344 # Let the user override the test.
12345 lt_cv_path_NM="$NM"
12346 else
12347 lt_nm_to_check="${ac_tool_prefix}nm"
12348 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12349 lt_nm_to_check="$lt_nm_to_check nm"
12351 for lt_tmp_nm in $lt_nm_to_check; do
12352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12353 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12354 IFS="$lt_save_ifs"
12355 test -z "$ac_dir" && ac_dir=.
12356 tmp_nm="$ac_dir/$lt_tmp_nm"
12357 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12358 # Check to see if the nm accepts a BSD-compat flag.
12359 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12360 # nm: unknown option "B" ignored
12361 # Tru64's nm complains that /dev/null is an invalid object file
12362 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12363 */dev/null* | *'Invalid file or object type'*)
12364 lt_cv_path_NM="$tmp_nm -B"
12365 break
12368 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12369 */dev/null*)
12370 lt_cv_path_NM="$tmp_nm -p"
12371 break
12374 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12375 continue # so that we can try to find one that supports BSD flags
12377 esac
12379 esac
12381 done
12382 IFS="$lt_save_ifs"
12383 done
12384 : ${lt_cv_path_NM=no}
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12388 $as_echo "$lt_cv_path_NM" >&6; }
12389 if test "$lt_cv_path_NM" != "no"; then
12390 NM="$lt_cv_path_NM"
12391 else
12392 # Didn't find any BSD compatible name lister, look for dumpbin.
12393 if test -n "$DUMPBIN"; then :
12394 # Let the user override the test.
12395 else
12396 if test -n "$ac_tool_prefix"; then
12397 for ac_prog in dumpbin "link -dump"
12399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
12405 else
12406 if test -n "$DUMPBIN"; then
12407 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12408 else
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418 break 2
12420 done
12421 done
12422 IFS=$as_save_IFS
12426 DUMPBIN=$ac_cv_prog_DUMPBIN
12427 if test -n "$DUMPBIN"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12429 $as_echo "$DUMPBIN" >&6; }
12430 else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12436 test -n "$DUMPBIN" && break
12437 done
12439 if test -z "$DUMPBIN"; then
12440 ac_ct_DUMPBIN=$DUMPBIN
12441 for ac_prog in dumpbin "link -dump"
12443 # Extract the first word of "$ac_prog", so it can be a program name with args.
12444 set dummy $ac_prog; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12448 $as_echo_n "(cached) " >&6
12449 else
12450 if test -n "$ac_ct_DUMPBIN"; then
12451 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12452 else
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462 break 2
12464 done
12465 done
12466 IFS=$as_save_IFS
12470 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12471 if test -n "$ac_ct_DUMPBIN"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12473 $as_echo "$ac_ct_DUMPBIN" >&6; }
12474 else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12480 test -n "$ac_ct_DUMPBIN" && break
12481 done
12483 if test "x$ac_ct_DUMPBIN" = x; then
12484 DUMPBIN=":"
12485 else
12486 case $cross_compiling:$ac_tool_warned in
12487 yes:)
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12490 ac_tool_warned=yes ;;
12491 esac
12492 DUMPBIN=$ac_ct_DUMPBIN
12496 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12497 *COFF*)
12498 DUMPBIN="$DUMPBIN -symbols"
12501 DUMPBIN=:
12503 esac
12506 if test "$DUMPBIN" != ":"; then
12507 NM="$DUMPBIN"
12510 test -z "$NM" && NM=nm
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12518 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12519 if test "${lt_cv_nm_interface+set}" = set; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 lt_cv_nm_interface="BSD nm"
12523 echo "int some_variable = 0;" > conftest.$ac_ext
12524 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12525 (eval "$ac_compile" 2>conftest.err)
12526 cat conftest.err >&5
12527 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12528 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12529 cat conftest.err >&5
12530 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12531 cat conftest.out >&5
12532 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12533 lt_cv_nm_interface="MS dumpbin"
12535 rm -f conftest*
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12538 $as_echo "$lt_cv_nm_interface" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12541 $as_echo_n "checking whether ln -s works... " >&6; }
12542 LN_S=$as_ln_s
12543 if test "$LN_S" = "ln -s"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12545 $as_echo "yes" >&6; }
12546 else
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12548 $as_echo "no, using $LN_S" >&6; }
12551 # find the maximum length of command line arguments
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12553 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12554 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12558 teststring="ABCD"
12560 case $build_os in
12561 msdosdjgpp*)
12562 # On DJGPP, this test can blow up pretty badly due to problems in libc
12563 # (any single argument exceeding 2000 bytes causes a buffer overrun
12564 # during glob expansion). Even if it were fixed, the result of this
12565 # check would be larger than it should be.
12566 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12569 gnu*)
12570 # Under GNU Hurd, this test is not required because there is
12571 # no limit to the length of command line arguments.
12572 # Libtool will interpret -1 as no limit whatsoever
12573 lt_cv_sys_max_cmd_len=-1;
12576 cygwin* | mingw* | cegcc*)
12577 # On Win9x/ME, this test blows up -- it succeeds, but takes
12578 # about 5 minutes as the teststring grows exponentially.
12579 # Worse, since 9x/ME are not pre-emptively multitasking,
12580 # you end up with a "frozen" computer, even though with patience
12581 # the test eventually succeeds (with a max line length of 256k).
12582 # Instead, let's just punt: use the minimum linelength reported by
12583 # all of the supported platforms: 8192 (on NT/2K/XP).
12584 lt_cv_sys_max_cmd_len=8192;
12587 mint*)
12588 # On MiNT this can take a long time and run out of memory.
12589 lt_cv_sys_max_cmd_len=8192;
12592 amigaos*)
12593 # On AmigaOS with pdksh, this test takes hours, literally.
12594 # So we just punt and use a minimum line length of 8192.
12595 lt_cv_sys_max_cmd_len=8192;
12598 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12599 # This has been around since 386BSD, at least. Likely further.
12600 if test -x /sbin/sysctl; then
12601 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12602 elif test -x /usr/sbin/sysctl; then
12603 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12604 else
12605 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12607 # And add a safety zone
12608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12612 interix*)
12613 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12614 lt_cv_sys_max_cmd_len=196608
12617 osf*)
12618 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12619 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12620 # nice to cause kernel panics so lets avoid the loop below.
12621 # First set a reasonable default.
12622 lt_cv_sys_max_cmd_len=16384
12624 if test -x /sbin/sysconfig; then
12625 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12626 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12627 esac
12630 sco3.2v5*)
12631 lt_cv_sys_max_cmd_len=102400
12633 sysv5* | sco5v6* | sysv4.2uw2*)
12634 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12635 if test -n "$kargmax"; then
12636 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12637 else
12638 lt_cv_sys_max_cmd_len=32768
12642 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12643 if test -n "$lt_cv_sys_max_cmd_len"; then
12644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12646 else
12647 # Make teststring a little bigger before we do anything with it.
12648 # a 1K string should be a reasonable start.
12649 for i in 1 2 3 4 5 6 7 8 ; do
12650 teststring=$teststring$teststring
12651 done
12652 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12653 # If test is not a shell built-in, we'll probably end up computing a
12654 # maximum length that is only half of the actual maximum length, but
12655 # we can't tell.
12656 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12657 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12658 test $i != 17 # 1/2 MB should be enough
12660 i=`expr $i + 1`
12661 teststring=$teststring$teststring
12662 done
12663 # Only check the string length outside the loop.
12664 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12665 teststring=
12666 # Add a significant safety factor because C++ compilers can tack on
12667 # massive amounts of additional arguments before passing them to the
12668 # linker. It appears as though 1/2 is a usable value.
12669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12672 esac
12676 if test -n $lt_cv_sys_max_cmd_len ; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12678 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12679 else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12681 $as_echo "none" >&6; }
12683 max_cmd_len=$lt_cv_sys_max_cmd_len
12690 : ${CP="cp -f"}
12691 : ${MV="mv -f"}
12692 : ${RM="rm -f"}
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12695 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12696 # Try some XSI features
12697 xsi_shell=no
12698 ( _lt_dummy="a/b/c"
12699 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12700 = c,a/b,, \
12701 && eval 'test $(( 1 + 1 )) -eq 2 \
12702 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12703 && xsi_shell=yes
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12705 $as_echo "$xsi_shell" >&6; }
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12709 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12710 lt_shell_append=no
12711 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12712 >/dev/null 2>&1 \
12713 && lt_shell_append=yes
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12715 $as_echo "$lt_shell_append" >&6; }
12718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12719 lt_unset=unset
12720 else
12721 lt_unset=false
12728 # test EBCDIC or ASCII
12729 case `echo X|tr X '\101'` in
12730 A) # ASCII based system
12731 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12732 lt_SP2NL='tr \040 \012'
12733 lt_NL2SP='tr \015\012 \040\040'
12735 *) # EBCDIC based system
12736 lt_SP2NL='tr \100 \n'
12737 lt_NL2SP='tr \r\n \100\100'
12739 esac
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12750 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12751 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 lt_cv_ld_reload_flag='-r'
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12757 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12758 reload_flag=$lt_cv_ld_reload_flag
12759 case $reload_flag in
12760 "" | " "*) ;;
12761 *) reload_flag=" $reload_flag" ;;
12762 esac
12763 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12764 case $host_os in
12765 darwin*)
12766 if test "$GCC" = yes; then
12767 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12768 else
12769 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12772 esac
12782 if test -n "$ac_tool_prefix"; then
12783 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12784 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12788 $as_echo_n "(cached) " >&6
12789 else
12790 if test -n "$OBJDUMP"; then
12791 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12792 else
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12800 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802 break 2
12804 done
12805 done
12806 IFS=$as_save_IFS
12810 OBJDUMP=$ac_cv_prog_OBJDUMP
12811 if test -n "$OBJDUMP"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12813 $as_echo "$OBJDUMP" >&6; }
12814 else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12821 if test -z "$ac_cv_prog_OBJDUMP"; then
12822 ac_ct_OBJDUMP=$OBJDUMP
12823 # Extract the first word of "objdump", so it can be a program name with args.
12824 set dummy objdump; ac_word=$2
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826 $as_echo_n "checking for $ac_word... " >&6; }
12827 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
12829 else
12830 if test -n "$ac_ct_OBJDUMP"; then
12831 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12832 else
12833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12836 IFS=$as_save_IFS
12837 test -z "$as_dir" && as_dir=.
12838 for ac_exec_ext in '' $ac_executable_extensions; do
12839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12840 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842 break 2
12844 done
12845 done
12846 IFS=$as_save_IFS
12850 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12851 if test -n "$ac_ct_OBJDUMP"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12853 $as_echo "$ac_ct_OBJDUMP" >&6; }
12854 else
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856 $as_echo "no" >&6; }
12859 if test "x$ac_ct_OBJDUMP" = x; then
12860 OBJDUMP="false"
12861 else
12862 case $cross_compiling:$ac_tool_warned in
12863 yes:)
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12866 ac_tool_warned=yes ;;
12867 esac
12868 OBJDUMP=$ac_ct_OBJDUMP
12870 else
12871 OBJDUMP="$ac_cv_prog_OBJDUMP"
12874 test -z "$OBJDUMP" && OBJDUMP=objdump
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12885 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12886 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
12888 else
12889 lt_cv_file_magic_cmd='$MAGIC_CMD'
12890 lt_cv_file_magic_test_file=
12891 lt_cv_deplibs_check_method='unknown'
12892 # Need to set the preceding variable on all platforms that support
12893 # interlibrary dependencies.
12894 # 'none' -- dependencies not supported.
12895 # `unknown' -- same as none, but documents that we really don't know.
12896 # 'pass_all' -- all dependencies passed with no checks.
12897 # 'test_compile' -- check by making test program.
12898 # 'file_magic [[regex]]' -- check by looking for files in library path
12899 # which responds to the $file_magic_cmd with a given extended regex.
12900 # If you have `file' or equivalent on your system and you're not sure
12901 # whether `pass_all' will *always* work, you probably want this one.
12903 case $host_os in
12904 aix[4-9]*)
12905 lt_cv_deplibs_check_method=pass_all
12908 beos*)
12909 lt_cv_deplibs_check_method=pass_all
12912 bsdi[45]*)
12913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12914 lt_cv_file_magic_cmd='/usr/bin/file -L'
12915 lt_cv_file_magic_test_file=/shlib/libc.so
12918 cygwin*)
12919 # func_win32_libid is a shell function defined in ltmain.sh
12920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12921 lt_cv_file_magic_cmd='func_win32_libid'
12924 mingw* | pw32*)
12925 # Base MSYS/MinGW do not provide the 'file' command needed by
12926 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12927 # unless we find 'file', for example because we are cross-compiling.
12928 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12929 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12930 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12931 lt_cv_file_magic_cmd='func_win32_libid'
12932 else
12933 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12934 lt_cv_file_magic_cmd='$OBJDUMP -f'
12938 cegcc*)
12939 # use the weaker test based on 'objdump'. See mingw*.
12940 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12941 lt_cv_file_magic_cmd='$OBJDUMP -f'
12944 darwin* | rhapsody*)
12945 lt_cv_deplibs_check_method=pass_all
12948 freebsd* | dragonfly*)
12949 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12950 case $host_cpu in
12951 i*86 )
12952 # Not sure whether the presence of OpenBSD here was a mistake.
12953 # Let's accept both of them until this is cleared up.
12954 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12955 lt_cv_file_magic_cmd=/usr/bin/file
12956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12958 esac
12959 else
12960 lt_cv_deplibs_check_method=pass_all
12964 gnu*)
12965 lt_cv_deplibs_check_method=pass_all
12968 haiku*)
12969 lt_cv_deplibs_check_method=pass_all
12972 hpux10.20* | hpux11*)
12973 lt_cv_file_magic_cmd=/usr/bin/file
12974 case $host_cpu in
12975 ia64*)
12976 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12977 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12979 hppa*64*)
12980 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]'
12981 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12985 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12987 esac
12990 interix[3-9]*)
12991 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12995 irix5* | irix6* | nonstopux*)
12996 case $LD in
12997 *-32|*"-32 ") libmagic=32-bit;;
12998 *-n32|*"-n32 ") libmagic=N32;;
12999 *-64|*"-64 ") libmagic=64-bit;;
13000 *) libmagic=never-match;;
13001 esac
13002 lt_cv_deplibs_check_method=pass_all
13005 # This must be Linux ELF.
13006 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13007 lt_cv_deplibs_check_method=pass_all
13010 netbsd*)
13011 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13013 else
13014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13018 newos6*)
13019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13020 lt_cv_file_magic_cmd=/usr/bin/file
13021 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13024 *nto* | *qnx*)
13025 lt_cv_deplibs_check_method=pass_all
13028 openbsd*)
13029 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13031 else
13032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13036 osf3* | osf4* | osf5*)
13037 lt_cv_deplibs_check_method=pass_all
13040 rdos*)
13041 lt_cv_deplibs_check_method=pass_all
13044 solaris*)
13045 lt_cv_deplibs_check_method=pass_all
13048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13049 lt_cv_deplibs_check_method=pass_all
13052 sysv4 | sysv4.3*)
13053 case $host_vendor in
13054 motorola)
13055 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]'
13056 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13058 ncr)
13059 lt_cv_deplibs_check_method=pass_all
13061 sequent)
13062 lt_cv_file_magic_cmd='/bin/file'
13063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13065 sni)
13066 lt_cv_file_magic_cmd='/bin/file'
13067 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13068 lt_cv_file_magic_test_file=/lib/libc.so
13070 siemens)
13071 lt_cv_deplibs_check_method=pass_all
13074 lt_cv_deplibs_check_method=pass_all
13076 esac
13079 tpf*)
13080 lt_cv_deplibs_check_method=pass_all
13082 esac
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13086 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13087 file_magic_cmd=$lt_cv_file_magic_cmd
13088 deplibs_check_method=$lt_cv_deplibs_check_method
13089 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13102 if test -n "$ac_tool_prefix"; then
13103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13104 set dummy ${ac_tool_prefix}ar; ac_word=$2
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13106 $as_echo_n "checking for $ac_word... " >&6; }
13107 if test "${ac_cv_prog_AR+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 if test -n "$AR"; then
13111 ac_cv_prog_AR="$AR" # Let the user override the test.
13112 else
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_prog_AR="${ac_tool_prefix}ar"
13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13124 done
13125 done
13126 IFS=$as_save_IFS
13130 AR=$ac_cv_prog_AR
13131 if test -n "$AR"; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13133 $as_echo "$AR" >&6; }
13134 else
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13141 if test -z "$ac_cv_prog_AR"; then
13142 ac_ct_AR=$AR
13143 # Extract the first word of "ar", so it can be a program name with args.
13144 set dummy ar; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 if test -n "$ac_ct_AR"; then
13151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13152 else
13153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in $PATH
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13160 ac_cv_prog_ac_ct_AR="ar"
13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13162 break 2
13164 done
13165 done
13166 IFS=$as_save_IFS
13170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13171 if test -n "$ac_ct_AR"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13173 $as_echo "$ac_ct_AR" >&6; }
13174 else
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176 $as_echo "no" >&6; }
13179 if test "x$ac_ct_AR" = x; then
13180 AR="false"
13181 else
13182 case $cross_compiling:$ac_tool_warned in
13183 yes:)
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13186 ac_tool_warned=yes ;;
13187 esac
13188 AR=$ac_ct_AR
13190 else
13191 AR="$ac_cv_prog_AR"
13194 test -z "$AR" && AR=ar
13195 test -z "$AR_FLAGS" && AR_FLAGS=cru
13207 if test -n "$ac_tool_prefix"; then
13208 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13209 set dummy ${ac_tool_prefix}strip; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if test "${ac_cv_prog_STRIP+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 if test -n "$STRIP"; then
13216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13217 else
13218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13219 for as_dir in $PATH
13221 IFS=$as_save_IFS
13222 test -z "$as_dir" && as_dir=.
13223 for ac_exec_ext in '' $ac_executable_extensions; do
13224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13225 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13227 break 2
13229 done
13230 done
13231 IFS=$as_save_IFS
13235 STRIP=$ac_cv_prog_STRIP
13236 if test -n "$STRIP"; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13238 $as_echo "$STRIP" >&6; }
13239 else
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13246 if test -z "$ac_cv_prog_STRIP"; then
13247 ac_ct_STRIP=$STRIP
13248 # Extract the first word of "strip", so it can be a program name with args.
13249 set dummy strip; ac_word=$2
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251 $as_echo_n "checking for $ac_word... " >&6; }
13252 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 if test -n "$ac_ct_STRIP"; then
13256 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13257 else
13258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13261 IFS=$as_save_IFS
13262 test -z "$as_dir" && as_dir=.
13263 for ac_exec_ext in '' $ac_executable_extensions; do
13264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13265 ac_cv_prog_ac_ct_STRIP="strip"
13266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13267 break 2
13269 done
13270 done
13271 IFS=$as_save_IFS
13275 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13276 if test -n "$ac_ct_STRIP"; then
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13278 $as_echo "$ac_ct_STRIP" >&6; }
13279 else
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13284 if test "x$ac_ct_STRIP" = x; then
13285 STRIP=":"
13286 else
13287 case $cross_compiling:$ac_tool_warned in
13288 yes:)
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13291 ac_tool_warned=yes ;;
13292 esac
13293 STRIP=$ac_ct_STRIP
13295 else
13296 STRIP="$ac_cv_prog_STRIP"
13299 test -z "$STRIP" && STRIP=:
13306 if test -n "$ac_tool_prefix"; then
13307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13308 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13310 $as_echo_n "checking for $ac_word... " >&6; }
13311 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 if test -n "$RANLIB"; then
13315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13316 else
13317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318 for as_dir in $PATH
13320 IFS=$as_save_IFS
13321 test -z "$as_dir" && as_dir=.
13322 for ac_exec_ext in '' $ac_executable_extensions; do
13323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13324 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13326 break 2
13328 done
13329 done
13330 IFS=$as_save_IFS
13334 RANLIB=$ac_cv_prog_RANLIB
13335 if test -n "$RANLIB"; then
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13337 $as_echo "$RANLIB" >&6; }
13338 else
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340 $as_echo "no" >&6; }
13345 if test -z "$ac_cv_prog_RANLIB"; then
13346 ac_ct_RANLIB=$RANLIB
13347 # Extract the first word of "ranlib", so it can be a program name with args.
13348 set dummy ranlib; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350 $as_echo_n "checking for $ac_word... " >&6; }
13351 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 if test -n "$ac_ct_RANLIB"; then
13355 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13356 else
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13364 ac_cv_prog_ac_ct_RANLIB="ranlib"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366 break 2
13368 done
13369 done
13370 IFS=$as_save_IFS
13374 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13375 if test -n "$ac_ct_RANLIB"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13377 $as_echo "$ac_ct_RANLIB" >&6; }
13378 else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
13383 if test "x$ac_ct_RANLIB" = x; then
13384 RANLIB=":"
13385 else
13386 case $cross_compiling:$ac_tool_warned in
13387 yes:)
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13390 ac_tool_warned=yes ;;
13391 esac
13392 RANLIB=$ac_ct_RANLIB
13394 else
13395 RANLIB="$ac_cv_prog_RANLIB"
13398 test -z "$RANLIB" && RANLIB=:
13405 # Determine commands to create old-style static archives.
13406 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13407 old_postinstall_cmds='chmod 644 $oldlib'
13408 old_postuninstall_cmds=
13410 if test -n "$RANLIB"; then
13411 case $host_os in
13412 openbsd*)
13413 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13416 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13418 esac
13419 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13422 case $host_os in
13423 darwin*)
13424 lock_old_archive_extraction=yes ;;
13426 lock_old_archive_extraction=no ;;
13427 esac
13467 # If no C compiler was specified, use CC.
13468 LTCC=${LTCC-"$CC"}
13470 # If no C compiler flags were specified, use CFLAGS.
13471 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13473 # Allow CC to be a program name with arguments.
13474 compiler=$CC
13477 # Check for command to grab the raw symbol name followed by C symbol from nm.
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13479 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13481 $as_echo_n "(cached) " >&6
13482 else
13484 # These are sane defaults that work on at least a few old systems.
13485 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13487 # Character class describing NM global symbol codes.
13488 symcode='[BCDEGRST]'
13490 # Regexp to match symbols that can be accessed directly from C.
13491 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13493 # Define system-specific variables.
13494 case $host_os in
13495 aix*)
13496 symcode='[BCDT]'
13498 cygwin* | mingw* | pw32* | cegcc*)
13499 symcode='[ABCDGISTW]'
13501 hpux*)
13502 if test "$host_cpu" = ia64; then
13503 symcode='[ABCDEGRST]'
13506 irix* | nonstopux*)
13507 symcode='[BCDEGRST]'
13509 osf*)
13510 symcode='[BCDEGQRST]'
13512 solaris*)
13513 symcode='[BDRT]'
13515 sco3.2v5*)
13516 symcode='[DT]'
13518 sysv4.2uw2*)
13519 symcode='[DT]'
13521 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13522 symcode='[ABDT]'
13524 sysv4)
13525 symcode='[DFNSTU]'
13527 esac
13529 # If we're using GNU nm, then use its standard symbol codes.
13530 case `$NM -V 2>&1` in
13531 *GNU* | *'with BFD'*)
13532 symcode='[ABCDGIRSTW]' ;;
13533 esac
13535 # Transform an extracted symbol line into a proper C declaration.
13536 # Some systems (esp. on ia64) link data and code symbols differently,
13537 # so use this general approach.
13538 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13540 # Transform an extracted symbol line into symbol name and symbol address
13541 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13542 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'"
13544 # Handle CRLF in mingw tool chain
13545 opt_cr=
13546 case $build_os in
13547 mingw*)
13548 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13550 esac
13552 # Try without a prefix underscore, then with it.
13553 for ac_symprfx in "" "_"; do
13555 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13556 symxfrm="\\1 $ac_symprfx\\2 \\2"
13558 # Write the raw and C identifiers.
13559 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13560 # Fake it for dumpbin and say T for any non-static function
13561 # and D for any global variable.
13562 # Also find C++ and __fastcall symbols from MSVC++,
13563 # which start with @ or ?.
13564 lt_cv_sys_global_symbol_pipe="$AWK '"\
13565 " {last_section=section; section=\$ 3};"\
13566 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13567 " \$ 0!~/External *\|/{next};"\
13568 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13569 " {if(hide[section]) next};"\
13570 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13571 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13572 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13573 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13574 " ' prfx=^$ac_symprfx"
13575 else
13576 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13579 # Check to see that the pipe works correctly.
13580 pipe_works=no
13582 rm -f conftest*
13583 cat > conftest.$ac_ext <<_LT_EOF
13584 #ifdef __cplusplus
13585 extern "C" {
13586 #endif
13587 char nm_test_var;
13588 void nm_test_func(void);
13589 void nm_test_func(void){}
13590 #ifdef __cplusplus
13592 #endif
13593 int main(){nm_test_var='a';nm_test_func();return(0);}
13594 _LT_EOF
13596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13597 (eval $ac_compile) 2>&5
13598 ac_status=$?
13599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13600 test $ac_status = 0; }; then
13601 # Now try to grab the symbols.
13602 nlist=conftest.nm
13603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13604 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13605 ac_status=$?
13606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607 test $ac_status = 0; } && test -s "$nlist"; then
13608 # Try sorting and uniquifying the output.
13609 if sort "$nlist" | uniq > "$nlist"T; then
13610 mv -f "$nlist"T "$nlist"
13611 else
13612 rm -f "$nlist"T
13615 # Make sure that we snagged all the symbols we need.
13616 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13617 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13618 cat <<_LT_EOF > conftest.$ac_ext
13619 #ifdef __cplusplus
13620 extern "C" {
13621 #endif
13623 _LT_EOF
13624 # Now generate the symbol file.
13625 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13627 cat <<_LT_EOF >> conftest.$ac_ext
13629 /* The mapping between symbol names and symbols. */
13630 const struct {
13631 const char *name;
13632 void *address;
13634 lt__PROGRAM__LTX_preloaded_symbols[] =
13636 { "@PROGRAM@", (void *) 0 },
13637 _LT_EOF
13638 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13639 cat <<\_LT_EOF >> conftest.$ac_ext
13640 {0, (void *) 0}
13643 /* This works around a problem in FreeBSD linker */
13644 #ifdef FREEBSD_WORKAROUND
13645 static const void *lt_preloaded_setup() {
13646 return lt__PROGRAM__LTX_preloaded_symbols;
13648 #endif
13650 #ifdef __cplusplus
13652 #endif
13653 _LT_EOF
13654 # Now try linking the two files.
13655 mv conftest.$ac_objext conftstm.$ac_objext
13656 lt_save_LIBS="$LIBS"
13657 lt_save_CFLAGS="$CFLAGS"
13658 LIBS="conftstm.$ac_objext"
13659 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13661 (eval $ac_link) 2>&5
13662 ac_status=$?
13663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13664 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13665 pipe_works=yes
13667 LIBS="$lt_save_LIBS"
13668 CFLAGS="$lt_save_CFLAGS"
13669 else
13670 echo "cannot find nm_test_func in $nlist" >&5
13672 else
13673 echo "cannot find nm_test_var in $nlist" >&5
13675 else
13676 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13678 else
13679 echo "$progname: failed program was:" >&5
13680 cat conftest.$ac_ext >&5
13682 rm -rf conftest* conftst*
13684 # Do not use the global_symbol_pipe unless it works.
13685 if test "$pipe_works" = yes; then
13686 break
13687 else
13688 lt_cv_sys_global_symbol_pipe=
13690 done
13694 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13695 lt_cv_sys_global_symbol_to_cdecl=
13697 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13699 $as_echo "failed" >&6; }
13700 else
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13702 $as_echo "ok" >&6; }
13726 # Check whether --enable-libtool-lock was given.
13727 if test "${enable_libtool_lock+set}" = set; then :
13728 enableval=$enable_libtool_lock;
13731 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13733 # Some flags need to be propagated to the compiler or linker for good
13734 # libtool support.
13735 case $host in
13736 ia64-*-hpux*)
13737 # Find out which ABI we are using.
13738 echo 'int i;' > conftest.$ac_ext
13739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13740 (eval $ac_compile) 2>&5
13741 ac_status=$?
13742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13743 test $ac_status = 0; }; then
13744 case `/usr/bin/file conftest.$ac_objext` in
13745 *ELF-32*)
13746 HPUX_IA64_MODE="32"
13748 *ELF-64*)
13749 HPUX_IA64_MODE="64"
13751 esac
13753 rm -rf conftest*
13755 *-*-irix6*)
13756 # Find out which ABI we are using.
13757 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13759 (eval $ac_compile) 2>&5
13760 ac_status=$?
13761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13762 test $ac_status = 0; }; then
13763 if test "$lt_cv_prog_gnu_ld" = yes; then
13764 case `/usr/bin/file conftest.$ac_objext` in
13765 *32-bit*)
13766 LD="${LD-ld} -melf32bsmip"
13768 *N32*)
13769 LD="${LD-ld} -melf32bmipn32"
13771 *64-bit*)
13772 LD="${LD-ld} -melf64bmip"
13774 esac
13775 else
13776 case `/usr/bin/file conftest.$ac_objext` in
13777 *32-bit*)
13778 LD="${LD-ld} -32"
13780 *N32*)
13781 LD="${LD-ld} -n32"
13783 *64-bit*)
13784 LD="${LD-ld} -64"
13786 esac
13789 rm -rf conftest*
13792 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13793 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13794 # Find out which ABI we are using.
13795 echo 'int i;' > conftest.$ac_ext
13796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13797 (eval $ac_compile) 2>&5
13798 ac_status=$?
13799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13800 test $ac_status = 0; }; then
13801 case `/usr/bin/file conftest.o` in
13802 *32-bit*)
13803 case $host in
13804 x86_64-*kfreebsd*-gnu)
13805 LD="${LD-ld} -m elf_i386_fbsd"
13807 x86_64-*linux*)
13808 case `/usr/bin/file conftest.o` in
13809 *x86-64*)
13810 LD="${LD-ld} -m elf32_x86_64"
13813 LD="${LD-ld} -m elf_i386"
13815 esac
13817 powerpc64le-*linux*)
13818 LD="${LD-ld} -m elf32lppclinux"
13820 powerpc64-*linux*)
13821 LD="${LD-ld} -m elf32ppclinux"
13823 s390x-*linux*)
13824 LD="${LD-ld} -m elf_s390"
13826 sparc64-*linux*)
13827 LD="${LD-ld} -m elf32_sparc"
13829 esac
13831 *64-bit*)
13832 case $host in
13833 x86_64-*kfreebsd*-gnu)
13834 LD="${LD-ld} -m elf_x86_64_fbsd"
13836 x86_64-*linux*)
13837 LD="${LD-ld} -m elf_x86_64"
13839 powerpcle-*linux*)
13840 LD="${LD-ld} -m elf64lppc"
13842 powerpc-*linux*)
13843 LD="${LD-ld} -m elf64ppc"
13845 s390*-*linux*|s390*-*tpf*)
13846 LD="${LD-ld} -m elf64_s390"
13848 sparc*-*linux*)
13849 LD="${LD-ld} -m elf64_sparc"
13851 esac
13853 esac
13855 rm -rf conftest*
13858 *-*-sco3.2v5*)
13859 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13860 SAVE_CFLAGS="$CFLAGS"
13861 CFLAGS="$CFLAGS -belf"
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13863 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13864 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 ac_ext=c
13868 ac_cpp='$CPP $CPPFLAGS'
13869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h. */
13877 main ()
13881 return 0;
13883 _ACEOF
13884 if ac_fn_c_try_link "$LINENO"; then :
13885 lt_cv_cc_needs_belf=yes
13886 else
13887 lt_cv_cc_needs_belf=no
13889 rm -f core conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13891 ac_ext=c
13892 ac_cpp='$CPP $CPPFLAGS'
13893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13899 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13900 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13901 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13902 CFLAGS="$SAVE_CFLAGS"
13905 sparc*-*solaris*)
13906 # Find out which ABI we are using.
13907 echo 'int i;' > conftest.$ac_ext
13908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13909 (eval $ac_compile) 2>&5
13910 ac_status=$?
13911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13912 test $ac_status = 0; }; then
13913 case `/usr/bin/file conftest.o` in
13914 *64-bit*)
13915 case $lt_cv_prog_gnu_ld in
13916 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13918 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13919 LD="${LD-ld} -64"
13922 esac
13924 esac
13926 rm -rf conftest*
13928 esac
13930 need_locks="$enable_libtool_lock"
13933 case $host_os in
13934 rhapsody* | darwin*)
13935 if test -n "$ac_tool_prefix"; then
13936 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13937 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13939 $as_echo_n "checking for $ac_word... " >&6; }
13940 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 if test -n "$DSYMUTIL"; then
13944 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13945 else
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13949 IFS=$as_save_IFS
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13953 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 break 2
13957 done
13958 done
13959 IFS=$as_save_IFS
13963 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13964 if test -n "$DSYMUTIL"; then
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13966 $as_echo "$DSYMUTIL" >&6; }
13967 else
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13969 $as_echo "no" >&6; }
13974 if test -z "$ac_cv_prog_DSYMUTIL"; then
13975 ac_ct_DSYMUTIL=$DSYMUTIL
13976 # Extract the first word of "dsymutil", so it can be a program name with args.
13977 set dummy dsymutil; ac_word=$2
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979 $as_echo_n "checking for $ac_word... " >&6; }
13980 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 if test -n "$ac_ct_DSYMUTIL"; then
13984 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13985 else
13986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13989 IFS=$as_save_IFS
13990 test -z "$as_dir" && as_dir=.
13991 for ac_exec_ext in '' $ac_executable_extensions; do
13992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13993 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13995 break 2
13997 done
13998 done
13999 IFS=$as_save_IFS
14003 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14004 if test -n "$ac_ct_DSYMUTIL"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14006 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14007 else
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14012 if test "x$ac_ct_DSYMUTIL" = x; then
14013 DSYMUTIL=":"
14014 else
14015 case $cross_compiling:$ac_tool_warned in
14016 yes:)
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14019 ac_tool_warned=yes ;;
14020 esac
14021 DSYMUTIL=$ac_ct_DSYMUTIL
14023 else
14024 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14027 if test -n "$ac_tool_prefix"; then
14028 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14029 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14031 $as_echo_n "checking for $ac_word... " >&6; }
14032 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 if test -n "$NMEDIT"; then
14036 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14037 else
14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039 for as_dir in $PATH
14041 IFS=$as_save_IFS
14042 test -z "$as_dir" && as_dir=.
14043 for ac_exec_ext in '' $ac_executable_extensions; do
14044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14045 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14047 break 2
14049 done
14050 done
14051 IFS=$as_save_IFS
14055 NMEDIT=$ac_cv_prog_NMEDIT
14056 if test -n "$NMEDIT"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14058 $as_echo "$NMEDIT" >&6; }
14059 else
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061 $as_echo "no" >&6; }
14066 if test -z "$ac_cv_prog_NMEDIT"; then
14067 ac_ct_NMEDIT=$NMEDIT
14068 # Extract the first word of "nmedit", so it can be a program name with args.
14069 set dummy nmedit; ac_word=$2
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14071 $as_echo_n "checking for $ac_word... " >&6; }
14072 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14073 $as_echo_n "(cached) " >&6
14074 else
14075 if test -n "$ac_ct_NMEDIT"; then
14076 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14077 else
14078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079 for as_dir in $PATH
14081 IFS=$as_save_IFS
14082 test -z "$as_dir" && as_dir=.
14083 for ac_exec_ext in '' $ac_executable_extensions; do
14084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14085 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14087 break 2
14089 done
14090 done
14091 IFS=$as_save_IFS
14095 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14096 if test -n "$ac_ct_NMEDIT"; then
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14098 $as_echo "$ac_ct_NMEDIT" >&6; }
14099 else
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14104 if test "x$ac_ct_NMEDIT" = x; then
14105 NMEDIT=":"
14106 else
14107 case $cross_compiling:$ac_tool_warned in
14108 yes:)
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14111 ac_tool_warned=yes ;;
14112 esac
14113 NMEDIT=$ac_ct_NMEDIT
14115 else
14116 NMEDIT="$ac_cv_prog_NMEDIT"
14119 if test -n "$ac_tool_prefix"; then
14120 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14121 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14123 $as_echo_n "checking for $ac_word... " >&6; }
14124 if test "${ac_cv_prog_LIPO+set}" = set; then :
14125 $as_echo_n "(cached) " >&6
14126 else
14127 if test -n "$LIPO"; then
14128 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14129 else
14130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in $PATH
14133 IFS=$as_save_IFS
14134 test -z "$as_dir" && as_dir=.
14135 for ac_exec_ext in '' $ac_executable_extensions; do
14136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14137 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14139 break 2
14141 done
14142 done
14143 IFS=$as_save_IFS
14147 LIPO=$ac_cv_prog_LIPO
14148 if test -n "$LIPO"; then
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14150 $as_echo "$LIPO" >&6; }
14151 else
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 $as_echo "no" >&6; }
14158 if test -z "$ac_cv_prog_LIPO"; then
14159 ac_ct_LIPO=$LIPO
14160 # Extract the first word of "lipo", so it can be a program name with args.
14161 set dummy lipo; ac_word=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14163 $as_echo_n "checking for $ac_word... " >&6; }
14164 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 if test -n "$ac_ct_LIPO"; then
14168 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14169 else
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14173 IFS=$as_save_IFS
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14177 ac_cv_prog_ac_ct_LIPO="lipo"
14178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14179 break 2
14181 done
14182 done
14183 IFS=$as_save_IFS
14187 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14188 if test -n "$ac_ct_LIPO"; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14190 $as_echo "$ac_ct_LIPO" >&6; }
14191 else
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; }
14196 if test "x$ac_ct_LIPO" = x; then
14197 LIPO=":"
14198 else
14199 case $cross_compiling:$ac_tool_warned in
14200 yes:)
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14203 ac_tool_warned=yes ;;
14204 esac
14205 LIPO=$ac_ct_LIPO
14207 else
14208 LIPO="$ac_cv_prog_LIPO"
14211 if test -n "$ac_tool_prefix"; then
14212 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14213 set dummy ${ac_tool_prefix}otool; ac_word=$2
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14215 $as_echo_n "checking for $ac_word... " >&6; }
14216 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14217 $as_echo_n "(cached) " >&6
14218 else
14219 if test -n "$OTOOL"; then
14220 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14221 else
14222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14223 for as_dir in $PATH
14225 IFS=$as_save_IFS
14226 test -z "$as_dir" && as_dir=.
14227 for ac_exec_ext in '' $ac_executable_extensions; do
14228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14229 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14231 break 2
14233 done
14234 done
14235 IFS=$as_save_IFS
14239 OTOOL=$ac_cv_prog_OTOOL
14240 if test -n "$OTOOL"; then
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14242 $as_echo "$OTOOL" >&6; }
14243 else
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14250 if test -z "$ac_cv_prog_OTOOL"; then
14251 ac_ct_OTOOL=$OTOOL
14252 # Extract the first word of "otool", so it can be a program name with args.
14253 set dummy otool; ac_word=$2
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14255 $as_echo_n "checking for $ac_word... " >&6; }
14256 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 if test -n "$ac_ct_OTOOL"; then
14260 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14261 else
14262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263 for as_dir in $PATH
14265 IFS=$as_save_IFS
14266 test -z "$as_dir" && as_dir=.
14267 for ac_exec_ext in '' $ac_executable_extensions; do
14268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14269 ac_cv_prog_ac_ct_OTOOL="otool"
14270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14271 break 2
14273 done
14274 done
14275 IFS=$as_save_IFS
14279 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14280 if test -n "$ac_ct_OTOOL"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14282 $as_echo "$ac_ct_OTOOL" >&6; }
14283 else
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14288 if test "x$ac_ct_OTOOL" = x; then
14289 OTOOL=":"
14290 else
14291 case $cross_compiling:$ac_tool_warned in
14292 yes:)
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14295 ac_tool_warned=yes ;;
14296 esac
14297 OTOOL=$ac_ct_OTOOL
14299 else
14300 OTOOL="$ac_cv_prog_OTOOL"
14303 if test -n "$ac_tool_prefix"; then
14304 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14305 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307 $as_echo_n "checking for $ac_word... " >&6; }
14308 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 if test -n "$OTOOL64"; then
14312 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14313 else
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in $PATH
14317 IFS=$as_save_IFS
14318 test -z "$as_dir" && as_dir=.
14319 for ac_exec_ext in '' $ac_executable_extensions; do
14320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14321 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14323 break 2
14325 done
14326 done
14327 IFS=$as_save_IFS
14331 OTOOL64=$ac_cv_prog_OTOOL64
14332 if test -n "$OTOOL64"; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14334 $as_echo "$OTOOL64" >&6; }
14335 else
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14342 if test -z "$ac_cv_prog_OTOOL64"; then
14343 ac_ct_OTOOL64=$OTOOL64
14344 # Extract the first word of "otool64", so it can be a program name with args.
14345 set dummy otool64; ac_word=$2
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14347 $as_echo_n "checking for $ac_word... " >&6; }
14348 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 if test -n "$ac_ct_OTOOL64"; then
14352 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14353 else
14354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14355 for as_dir in $PATH
14357 IFS=$as_save_IFS
14358 test -z "$as_dir" && as_dir=.
14359 for ac_exec_ext in '' $ac_executable_extensions; do
14360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14361 ac_cv_prog_ac_ct_OTOOL64="otool64"
14362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14363 break 2
14365 done
14366 done
14367 IFS=$as_save_IFS
14371 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14372 if test -n "$ac_ct_OTOOL64"; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14374 $as_echo "$ac_ct_OTOOL64" >&6; }
14375 else
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14380 if test "x$ac_ct_OTOOL64" = x; then
14381 OTOOL64=":"
14382 else
14383 case $cross_compiling:$ac_tool_warned in
14384 yes:)
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14387 ac_tool_warned=yes ;;
14388 esac
14389 OTOOL64=$ac_ct_OTOOL64
14391 else
14392 OTOOL64="$ac_cv_prog_OTOOL64"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14422 $as_echo_n "checking for -single_module linker flag... " >&6; }
14423 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 lt_cv_apple_cc_single_mod=no
14427 if test -z "${LT_MULTI_MODULE}"; then
14428 # By default we will add the -single_module flag. You can override
14429 # by either setting the environment variable LT_MULTI_MODULE
14430 # non-empty at configure time, or by adding -multi_module to the
14431 # link flags.
14432 rm -rf libconftest.dylib*
14433 echo "int foo(void){return 1;}" > conftest.c
14434 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14435 -dynamiclib -Wl,-single_module conftest.c" >&5
14436 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14437 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14438 _lt_result=$?
14439 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14440 lt_cv_apple_cc_single_mod=yes
14441 else
14442 cat conftest.err >&5
14444 rm -rf libconftest.dylib*
14445 rm -f conftest.*
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14449 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14451 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14452 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 lt_cv_ld_exported_symbols_list=no
14456 save_LDFLAGS=$LDFLAGS
14457 echo "_main" > conftest.sym
14458 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14463 main ()
14467 return 0;
14469 _ACEOF
14470 if ac_fn_c_try_link "$LINENO"; then :
14471 lt_cv_ld_exported_symbols_list=yes
14472 else
14473 lt_cv_ld_exported_symbols_list=no
14475 rm -f core conftest.err conftest.$ac_objext \
14476 conftest$ac_exeext conftest.$ac_ext
14477 LDFLAGS="$save_LDFLAGS"
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14481 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14483 $as_echo_n "checking for -force_load linker flag... " >&6; }
14484 if test "${lt_cv_ld_force_load+set}" = set; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 lt_cv_ld_force_load=no
14488 cat > conftest.c << _LT_EOF
14489 int forced_loaded() { return 2;}
14490 _LT_EOF
14491 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14492 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14493 echo "$AR cru libconftest.a conftest.o" >&5
14494 $AR cru libconftest.a conftest.o 2>&5
14495 cat > conftest.c << _LT_EOF
14496 int main() { return 0;}
14497 _LT_EOF
14498 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14499 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14500 _lt_result=$?
14501 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14502 lt_cv_ld_force_load=yes
14503 else
14504 cat conftest.err >&5
14506 rm -f conftest.err libconftest.a conftest conftest.c
14507 rm -rf conftest.dSYM
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14511 $as_echo "$lt_cv_ld_force_load" >&6; }
14512 case $host_os in
14513 rhapsody* | darwin1.[012])
14514 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14515 darwin1.*)
14516 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14517 darwin*) # darwin 5.x on
14518 # if running on 10.5 or later, the deployment target defaults
14519 # to the OS version, if on x86, and 10.4, the deployment
14520 # target defaults to 10.4. Don't you love it?
14521 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14522 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14523 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14524 10.[012]*)
14525 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14526 10.*)
14527 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14528 esac
14530 esac
14531 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14532 _lt_dar_single_mod='$single_module'
14534 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14535 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14536 else
14537 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14539 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14540 _lt_dsymutil='~$DSYMUTIL $lib || :'
14541 else
14542 _lt_dsymutil=
14545 esac
14547 for ac_header in dlfcn.h
14548 do :
14549 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14550 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14551 cat >>confdefs.h <<_ACEOF
14552 #define HAVE_DLFCN_H 1
14553 _ACEOF
14556 done
14562 # Set options
14566 enable_dlopen=no
14569 enable_win32_dll=no
14572 # Check whether --enable-shared was given.
14573 if test "${enable_shared+set}" = set; then :
14574 enableval=$enable_shared; p=${PACKAGE-default}
14575 case $enableval in
14576 yes) enable_shared=yes ;;
14577 no) enable_shared=no ;;
14579 enable_shared=no
14580 # Look at the argument we got. We use all the common list separators.
14581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14582 for pkg in $enableval; do
14583 IFS="$lt_save_ifs"
14584 if test "X$pkg" = "X$p"; then
14585 enable_shared=yes
14587 done
14588 IFS="$lt_save_ifs"
14590 esac
14591 else
14592 enable_shared=yes
14603 # Check whether --enable-static was given.
14604 if test "${enable_static+set}" = set; then :
14605 enableval=$enable_static; p=${PACKAGE-default}
14606 case $enableval in
14607 yes) enable_static=yes ;;
14608 no) enable_static=no ;;
14610 enable_static=no
14611 # Look at the argument we got. We use all the common list separators.
14612 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14613 for pkg in $enableval; do
14614 IFS="$lt_save_ifs"
14615 if test "X$pkg" = "X$p"; then
14616 enable_static=yes
14618 done
14619 IFS="$lt_save_ifs"
14621 esac
14622 else
14623 enable_static=yes
14635 # Check whether --with-pic was given.
14636 if test "${with_pic+set}" = set; then :
14637 withval=$with_pic; pic_mode="$withval"
14638 else
14639 pic_mode=default
14643 test -z "$pic_mode" && pic_mode=default
14651 # Check whether --enable-fast-install was given.
14652 if test "${enable_fast_install+set}" = set; then :
14653 enableval=$enable_fast_install; p=${PACKAGE-default}
14654 case $enableval in
14655 yes) enable_fast_install=yes ;;
14656 no) enable_fast_install=no ;;
14658 enable_fast_install=no
14659 # Look at the argument we got. We use all the common list separators.
14660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14661 for pkg in $enableval; do
14662 IFS="$lt_save_ifs"
14663 if test "X$pkg" = "X$p"; then
14664 enable_fast_install=yes
14666 done
14667 IFS="$lt_save_ifs"
14669 esac
14670 else
14671 enable_fast_install=yes
14684 # This can be used to rebuild libtool when needed
14685 LIBTOOL_DEPS="$ltmain"
14687 # Always use our own libtool.
14688 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14715 test -z "$LN_S" && LN_S="ln -s"
14730 if test -n "${ZSH_VERSION+set}" ; then
14731 setopt NO_GLOB_SUBST
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14735 $as_echo_n "checking for objdir... " >&6; }
14736 if test "${lt_cv_objdir+set}" = set; then :
14737 $as_echo_n "(cached) " >&6
14738 else
14739 rm -f .libs 2>/dev/null
14740 mkdir .libs 2>/dev/null
14741 if test -d .libs; then
14742 lt_cv_objdir=.libs
14743 else
14744 # MS-DOS does not allow filenames that begin with a dot.
14745 lt_cv_objdir=_libs
14747 rmdir .libs 2>/dev/null
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14750 $as_echo "$lt_cv_objdir" >&6; }
14751 objdir=$lt_cv_objdir
14757 cat >>confdefs.h <<_ACEOF
14758 #define LT_OBJDIR "$lt_cv_objdir/"
14759 _ACEOF
14764 case $host_os in
14765 aix3*)
14766 # AIX sometimes has problems with the GCC collect2 program. For some
14767 # reason, if we set the COLLECT_NAMES environment variable, the problems
14768 # vanish in a puff of smoke.
14769 if test "X${COLLECT_NAMES+set}" != Xset; then
14770 COLLECT_NAMES=
14771 export COLLECT_NAMES
14774 esac
14776 # Global variables:
14777 ofile=libtool
14778 can_build_shared=yes
14780 # All known linkers require a `.a' archive for static linking (except MSVC,
14781 # which needs '.lib').
14782 libext=a
14784 with_gnu_ld="$lt_cv_prog_gnu_ld"
14786 old_CC="$CC"
14787 old_CFLAGS="$CFLAGS"
14789 # Set sane defaults for various variables
14790 test -z "$CC" && CC=cc
14791 test -z "$LTCC" && LTCC=$CC
14792 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14793 test -z "$LD" && LD=ld
14794 test -z "$ac_objext" && ac_objext=o
14796 for cc_temp in $compiler""; do
14797 case $cc_temp in
14798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14800 \-*) ;;
14801 *) break;;
14802 esac
14803 done
14804 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14807 # Only perform the check for file, if the check method requires it
14808 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14809 case $deplibs_check_method in
14810 file_magic*)
14811 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14813 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14814 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 case $MAGIC_CMD in
14818 [\\/*] | ?:[\\/]*)
14819 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14822 lt_save_MAGIC_CMD="$MAGIC_CMD"
14823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14824 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14825 for ac_dir in $ac_dummy; do
14826 IFS="$lt_save_ifs"
14827 test -z "$ac_dir" && ac_dir=.
14828 if test -f $ac_dir/${ac_tool_prefix}file; then
14829 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14830 if test -n "$file_magic_test_file"; then
14831 case $deplibs_check_method in
14832 "file_magic "*)
14833 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14835 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14836 $EGREP "$file_magic_regex" > /dev/null; then
14838 else
14839 cat <<_LT_EOF 1>&2
14841 *** Warning: the command libtool uses to detect shared libraries,
14842 *** $file_magic_cmd, produces output that libtool cannot recognize.
14843 *** The result is that libtool may fail to recognize shared libraries
14844 *** as such. This will affect the creation of libtool libraries that
14845 *** depend on shared libraries, but programs linked with such libtool
14846 *** libraries will work regardless of this problem. Nevertheless, you
14847 *** may want to report the problem to your system manager and/or to
14848 *** bug-libtool@gnu.org
14850 _LT_EOF
14851 fi ;;
14852 esac
14854 break
14856 done
14857 IFS="$lt_save_ifs"
14858 MAGIC_CMD="$lt_save_MAGIC_CMD"
14860 esac
14863 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14864 if test -n "$MAGIC_CMD"; then
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14866 $as_echo "$MAGIC_CMD" >&6; }
14867 else
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 $as_echo "no" >&6; }
14876 if test -z "$lt_cv_path_MAGIC_CMD"; then
14877 if test -n "$ac_tool_prefix"; then
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14879 $as_echo_n "checking for file... " >&6; }
14880 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14881 $as_echo_n "(cached) " >&6
14882 else
14883 case $MAGIC_CMD in
14884 [\\/*] | ?:[\\/]*)
14885 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14888 lt_save_MAGIC_CMD="$MAGIC_CMD"
14889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14891 for ac_dir in $ac_dummy; do
14892 IFS="$lt_save_ifs"
14893 test -z "$ac_dir" && ac_dir=.
14894 if test -f $ac_dir/file; then
14895 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14896 if test -n "$file_magic_test_file"; then
14897 case $deplibs_check_method in
14898 "file_magic "*)
14899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14900 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14902 $EGREP "$file_magic_regex" > /dev/null; then
14904 else
14905 cat <<_LT_EOF 1>&2
14907 *** Warning: the command libtool uses to detect shared libraries,
14908 *** $file_magic_cmd, produces output that libtool cannot recognize.
14909 *** The result is that libtool may fail to recognize shared libraries
14910 *** as such. This will affect the creation of libtool libraries that
14911 *** depend on shared libraries, but programs linked with such libtool
14912 *** libraries will work regardless of this problem. Nevertheless, you
14913 *** may want to report the problem to your system manager and/or to
14914 *** bug-libtool@gnu.org
14916 _LT_EOF
14917 fi ;;
14918 esac
14920 break
14922 done
14923 IFS="$lt_save_ifs"
14924 MAGIC_CMD="$lt_save_MAGIC_CMD"
14926 esac
14929 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14930 if test -n "$MAGIC_CMD"; then
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14932 $as_echo "$MAGIC_CMD" >&6; }
14933 else
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14935 $as_echo "no" >&6; }
14939 else
14940 MAGIC_CMD=:
14946 esac
14948 # Use C for the default configuration in the libtool script
14950 lt_save_CC="$CC"
14951 ac_ext=c
14952 ac_cpp='$CPP $CPPFLAGS'
14953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14958 # Source file extension for C test sources.
14959 ac_ext=c
14961 # Object file extension for compiled C test sources.
14962 objext=o
14963 objext=$objext
14965 # Code to be used in simple compile tests
14966 lt_simple_compile_test_code="int some_variable = 0;"
14968 # Code to be used in simple link tests
14969 lt_simple_link_test_code='int main(){return(0);}'
14977 # If no C compiler was specified, use CC.
14978 LTCC=${LTCC-"$CC"}
14980 # If no C compiler flags were specified, use CFLAGS.
14981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14983 # Allow CC to be a program name with arguments.
14984 compiler=$CC
14986 # Save the default compiler, since it gets overwritten when the other
14987 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14988 compiler_DEFAULT=$CC
14990 # save warnings/boilerplate of simple test code
14991 ac_outfile=conftest.$ac_objext
14992 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14994 _lt_compiler_boilerplate=`cat conftest.err`
14995 $RM conftest*
14997 ac_outfile=conftest.$ac_objext
14998 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15000 _lt_linker_boilerplate=`cat conftest.err`
15001 $RM -r conftest*
15004 ## CAVEAT EMPTOR:
15005 ## There is no encapsulation within the following macros, do not change
15006 ## the running order or otherwise move them around unless you know exactly
15007 ## what you are doing...
15008 if test -n "$compiler"; then
15010 lt_prog_compiler_no_builtin_flag=
15012 if test "$GCC" = yes; then
15013 case $cc_basename in
15014 nvcc*)
15015 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15017 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15018 esac
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15021 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15022 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 lt_cv_prog_compiler_rtti_exceptions=no
15026 ac_outfile=conftest.$ac_objext
15027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15028 lt_compiler_flag="-fno-rtti -fno-exceptions"
15029 # Insert the option either (1) after the last *FLAGS variable, or
15030 # (2) before a word containing "conftest.", or (3) at the end.
15031 # Note that $ac_compile itself does not contain backslashes and begins
15032 # with a dollar sign (not a hyphen), so the echo should work correctly.
15033 # The option is referenced via a variable to avoid confusing sed.
15034 lt_compile=`echo "$ac_compile" | $SED \
15035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15037 -e 's:$: $lt_compiler_flag:'`
15038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15039 (eval "$lt_compile" 2>conftest.err)
15040 ac_status=$?
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 if (exit $ac_status) && test -s "$ac_outfile"; then
15044 # The compiler can only warn and ignore the option if not recognized
15045 # So say no if there are warnings other than the usual output.
15046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15049 lt_cv_prog_compiler_rtti_exceptions=yes
15052 $RM conftest*
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15056 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15058 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15059 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15060 else
15071 lt_prog_compiler_wl=
15072 lt_prog_compiler_pic=
15073 lt_prog_compiler_static=
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15076 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15078 if test "$GCC" = yes; then
15079 lt_prog_compiler_wl='-Wl,'
15080 lt_prog_compiler_static='-static'
15082 case $host_os in
15083 aix*)
15084 # All AIX code is PIC.
15085 if test "$host_cpu" = ia64; then
15086 # AIX 5 now supports IA64 processor
15087 lt_prog_compiler_static='-Bstatic'
15089 lt_prog_compiler_pic='-fPIC'
15092 amigaos*)
15093 case $host_cpu in
15094 powerpc)
15095 # see comment about AmigaOS4 .so support
15096 lt_prog_compiler_pic='-fPIC'
15098 m68k)
15099 # FIXME: we need at least 68020 code to build shared libraries, but
15100 # adding the `-m68020' flag to GCC prevents building anything better,
15101 # like `-m68040'.
15102 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15104 esac
15107 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15108 # PIC is the default for these OSes.
15111 mingw* | cygwin* | pw32* | os2* | cegcc*)
15112 # This hack is so that the source file can tell whether it is being
15113 # built for inclusion in a dll (and should export symbols for example).
15114 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15115 # (--disable-auto-import) libraries
15116 lt_prog_compiler_pic='-DDLL_EXPORT'
15119 darwin* | rhapsody*)
15120 # PIC is the default on this platform
15121 # Common symbols not allowed in MH_DYLIB files
15122 lt_prog_compiler_pic='-fno-common'
15125 haiku*)
15126 # PIC is the default for Haiku.
15127 # The "-static" flag exists, but is broken.
15128 lt_prog_compiler_static=
15131 hpux*)
15132 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15133 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15134 # sets the default TLS model and affects inlining.
15135 case $host_cpu in
15136 hppa*64*)
15137 # +Z the default
15140 lt_prog_compiler_pic='-fPIC'
15142 esac
15145 interix[3-9]*)
15146 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15147 # Instead, we relocate shared libraries at runtime.
15150 msdosdjgpp*)
15151 # Just because we use GCC doesn't mean we suddenly get shared libraries
15152 # on systems that don't support them.
15153 lt_prog_compiler_can_build_shared=no
15154 enable_shared=no
15157 *nto* | *qnx*)
15158 # QNX uses GNU C++, but need to define -shared option too, otherwise
15159 # it will coredump.
15160 lt_prog_compiler_pic='-fPIC -shared'
15163 sysv4*MP*)
15164 if test -d /usr/nec; then
15165 lt_prog_compiler_pic=-Kconform_pic
15170 lt_prog_compiler_pic='-fPIC'
15172 esac
15174 case $cc_basename in
15175 nvcc*) # Cuda Compiler Driver 2.2
15176 lt_prog_compiler_wl='-Xlinker '
15177 lt_prog_compiler_pic='-Xcompiler -fPIC'
15179 esac
15180 else
15181 # PORTME Check for flag to pass linker flags through the system compiler.
15182 case $host_os in
15183 aix*)
15184 lt_prog_compiler_wl='-Wl,'
15185 if test "$host_cpu" = ia64; then
15186 # AIX 5 now supports IA64 processor
15187 lt_prog_compiler_static='-Bstatic'
15188 else
15189 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15193 mingw* | cygwin* | pw32* | os2* | cegcc*)
15194 # This hack is so that the source file can tell whether it is being
15195 # built for inclusion in a dll (and should export symbols for example).
15196 lt_prog_compiler_pic='-DDLL_EXPORT'
15199 hpux9* | hpux10* | hpux11*)
15200 lt_prog_compiler_wl='-Wl,'
15201 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15202 # not for PA HP-UX.
15203 case $host_cpu in
15204 hppa*64*|ia64*)
15205 # +Z the default
15208 lt_prog_compiler_pic='+Z'
15210 esac
15211 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15212 lt_prog_compiler_static='${wl}-a ${wl}archive'
15215 irix5* | irix6* | nonstopux*)
15216 lt_prog_compiler_wl='-Wl,'
15217 # PIC (with -KPIC) is the default.
15218 lt_prog_compiler_static='-non_shared'
15221 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15222 case $cc_basename in
15223 # old Intel for x86_64 which still supported -KPIC.
15224 ecc*)
15225 lt_prog_compiler_wl='-Wl,'
15226 lt_prog_compiler_pic='-KPIC'
15227 lt_prog_compiler_static='-static'
15229 # icc used to be incompatible with GCC.
15230 # ICC 10 doesn't accept -KPIC any more.
15231 icc* | ifort*)
15232 lt_prog_compiler_wl='-Wl,'
15233 lt_prog_compiler_pic='-fPIC'
15234 lt_prog_compiler_static='-static'
15236 # Lahey Fortran 8.1.
15237 lf95*)
15238 lt_prog_compiler_wl='-Wl,'
15239 lt_prog_compiler_pic='--shared'
15240 lt_prog_compiler_static='--static'
15242 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15243 # Portland Group compilers (*not* the Pentium gcc compiler,
15244 # which looks to be a dead project)
15245 lt_prog_compiler_wl='-Wl,'
15246 lt_prog_compiler_pic='-fpic'
15247 lt_prog_compiler_static='-Bstatic'
15249 ccc*)
15250 lt_prog_compiler_wl='-Wl,'
15251 # All Alpha code is PIC.
15252 lt_prog_compiler_static='-non_shared'
15254 xl* | bgxl* | bgf* | mpixl*)
15255 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15256 lt_prog_compiler_wl='-Wl,'
15257 lt_prog_compiler_pic='-qpic'
15258 lt_prog_compiler_static='-qstaticlink'
15261 case `$CC -V 2>&1 | sed 5q` in
15262 *Sun\ F* | *Sun*Fortran*)
15263 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15264 lt_prog_compiler_pic='-KPIC'
15265 lt_prog_compiler_static='-Bstatic'
15266 lt_prog_compiler_wl=''
15268 *Sun\ C*)
15269 # Sun C 5.9
15270 lt_prog_compiler_pic='-KPIC'
15271 lt_prog_compiler_static='-Bstatic'
15272 lt_prog_compiler_wl='-Wl,'
15274 esac
15276 esac
15279 newsos6)
15280 lt_prog_compiler_pic='-KPIC'
15281 lt_prog_compiler_static='-Bstatic'
15284 *nto* | *qnx*)
15285 # QNX uses GNU C++, but need to define -shared option too, otherwise
15286 # it will coredump.
15287 lt_prog_compiler_pic='-fPIC -shared'
15290 osf3* | osf4* | osf5*)
15291 lt_prog_compiler_wl='-Wl,'
15292 # All OSF/1 code is PIC.
15293 lt_prog_compiler_static='-non_shared'
15296 rdos*)
15297 lt_prog_compiler_static='-non_shared'
15300 solaris*)
15301 lt_prog_compiler_pic='-KPIC'
15302 lt_prog_compiler_static='-Bstatic'
15303 case $cc_basename in
15304 f77* | f90* | f95*)
15305 lt_prog_compiler_wl='-Qoption ld ';;
15307 lt_prog_compiler_wl='-Wl,';;
15308 esac
15311 sunos4*)
15312 lt_prog_compiler_wl='-Qoption ld '
15313 lt_prog_compiler_pic='-PIC'
15314 lt_prog_compiler_static='-Bstatic'
15317 sysv4 | sysv4.2uw2* | sysv4.3*)
15318 lt_prog_compiler_wl='-Wl,'
15319 lt_prog_compiler_pic='-KPIC'
15320 lt_prog_compiler_static='-Bstatic'
15323 sysv4*MP*)
15324 if test -d /usr/nec ;then
15325 lt_prog_compiler_pic='-Kconform_pic'
15326 lt_prog_compiler_static='-Bstatic'
15330 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15331 lt_prog_compiler_wl='-Wl,'
15332 lt_prog_compiler_pic='-KPIC'
15333 lt_prog_compiler_static='-Bstatic'
15336 unicos*)
15337 lt_prog_compiler_wl='-Wl,'
15338 lt_prog_compiler_can_build_shared=no
15341 uts4*)
15342 lt_prog_compiler_pic='-pic'
15343 lt_prog_compiler_static='-Bstatic'
15347 lt_prog_compiler_can_build_shared=no
15349 esac
15352 case $host_os in
15353 # For platforms which do not support PIC, -DPIC is meaningless:
15354 *djgpp*)
15355 lt_prog_compiler_pic=
15358 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15360 esac
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15362 $as_echo "$lt_prog_compiler_pic" >&6; }
15370 # Check to make sure the PIC flag actually works.
15372 if test -n "$lt_prog_compiler_pic"; then
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15374 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15375 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15376 $as_echo_n "(cached) " >&6
15377 else
15378 lt_cv_prog_compiler_pic_works=no
15379 ac_outfile=conftest.$ac_objext
15380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15381 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15382 # Insert the option either (1) after the last *FLAGS variable, or
15383 # (2) before a word containing "conftest.", or (3) at the end.
15384 # Note that $ac_compile itself does not contain backslashes and begins
15385 # with a dollar sign (not a hyphen), so the echo should work correctly.
15386 # The option is referenced via a variable to avoid confusing sed.
15387 lt_compile=`echo "$ac_compile" | $SED \
15388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15390 -e 's:$: $lt_compiler_flag:'`
15391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15392 (eval "$lt_compile" 2>conftest.err)
15393 ac_status=$?
15394 cat conftest.err >&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 if (exit $ac_status) && test -s "$ac_outfile"; then
15397 # The compiler can only warn and ignore the option if not recognized
15398 # So say no if there are warnings other than the usual output.
15399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15401 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15402 lt_cv_prog_compiler_pic_works=yes
15405 $RM conftest*
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15409 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15411 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15412 case $lt_prog_compiler_pic in
15413 "" | " "*) ;;
15414 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15415 esac
15416 else
15417 lt_prog_compiler_pic=
15418 lt_prog_compiler_can_build_shared=no
15429 # Check to make sure the static flag actually works.
15431 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15433 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15434 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15435 $as_echo_n "(cached) " >&6
15436 else
15437 lt_cv_prog_compiler_static_works=no
15438 save_LDFLAGS="$LDFLAGS"
15439 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15440 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15441 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15442 # The linker can only warn and ignore the option if not recognized
15443 # So say no if there are warnings
15444 if test -s conftest.err; then
15445 # Append any errors to the config.log.
15446 cat conftest.err 1>&5
15447 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15449 if diff conftest.exp conftest.er2 >/dev/null; then
15450 lt_cv_prog_compiler_static_works=yes
15452 else
15453 lt_cv_prog_compiler_static_works=yes
15456 $RM -r conftest*
15457 LDFLAGS="$save_LDFLAGS"
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15461 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15463 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15465 else
15466 lt_prog_compiler_static=
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15477 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15478 $as_echo_n "(cached) " >&6
15479 else
15480 lt_cv_prog_compiler_c_o=no
15481 $RM -r conftest 2>/dev/null
15482 mkdir conftest
15483 cd conftest
15484 mkdir out
15485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15487 lt_compiler_flag="-o out/conftest2.$ac_objext"
15488 # Insert the option either (1) after the last *FLAGS variable, or
15489 # (2) before a word containing "conftest.", or (3) at the end.
15490 # Note that $ac_compile itself does not contain backslashes and begins
15491 # with a dollar sign (not a hyphen), so the echo should work correctly.
15492 lt_compile=`echo "$ac_compile" | $SED \
15493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15495 -e 's:$: $lt_compiler_flag:'`
15496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15497 (eval "$lt_compile" 2>out/conftest.err)
15498 ac_status=$?
15499 cat out/conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15502 then
15503 # The compiler can only warn and ignore the option if not recognized
15504 # So say no if there are warnings
15505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15508 lt_cv_prog_compiler_c_o=yes
15511 chmod u+w . 2>&5
15512 $RM conftest*
15513 # SGI C++ compiler will create directory out/ii_files/ for
15514 # template instantiation
15515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15516 $RM out/* && rmdir out
15517 cd ..
15518 $RM -r conftest
15519 $RM conftest*
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15523 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15532 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15533 $as_echo_n "(cached) " >&6
15534 else
15535 lt_cv_prog_compiler_c_o=no
15536 $RM -r conftest 2>/dev/null
15537 mkdir conftest
15538 cd conftest
15539 mkdir out
15540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15542 lt_compiler_flag="-o out/conftest2.$ac_objext"
15543 # Insert the option either (1) after the last *FLAGS variable, or
15544 # (2) before a word containing "conftest.", or (3) at the end.
15545 # Note that $ac_compile itself does not contain backslashes and begins
15546 # with a dollar sign (not a hyphen), so the echo should work correctly.
15547 lt_compile=`echo "$ac_compile" | $SED \
15548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15550 -e 's:$: $lt_compiler_flag:'`
15551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15552 (eval "$lt_compile" 2>out/conftest.err)
15553 ac_status=$?
15554 cat out/conftest.err >&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15557 then
15558 # The compiler can only warn and ignore the option if not recognized
15559 # So say no if there are warnings
15560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15563 lt_cv_prog_compiler_c_o=yes
15566 chmod u+w . 2>&5
15567 $RM conftest*
15568 # SGI C++ compiler will create directory out/ii_files/ for
15569 # template instantiation
15570 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15571 $RM out/* && rmdir out
15572 cd ..
15573 $RM -r conftest
15574 $RM conftest*
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15578 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15583 hard_links="nottested"
15584 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15585 # do not overwrite the value of need_locks provided by the user
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15587 $as_echo_n "checking if we can lock with hard links... " >&6; }
15588 hard_links=yes
15589 $RM conftest*
15590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15591 touch conftest.a
15592 ln conftest.a conftest.b 2>&5 || hard_links=no
15593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15595 $as_echo "$hard_links" >&6; }
15596 if test "$hard_links" = no; then
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15598 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15599 need_locks=warn
15601 else
15602 need_locks=no
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15611 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15613 runpath_var=
15614 allow_undefined_flag=
15615 always_export_symbols=no
15616 archive_cmds=
15617 archive_expsym_cmds=
15618 compiler_needs_object=no
15619 enable_shared_with_static_runtimes=no
15620 export_dynamic_flag_spec=
15621 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15622 hardcode_automatic=no
15623 hardcode_direct=no
15624 hardcode_direct_absolute=no
15625 hardcode_libdir_flag_spec=
15626 hardcode_libdir_flag_spec_ld=
15627 hardcode_libdir_separator=
15628 hardcode_minus_L=no
15629 hardcode_shlibpath_var=unsupported
15630 inherit_rpath=no
15631 link_all_deplibs=unknown
15632 module_cmds=
15633 module_expsym_cmds=
15634 old_archive_from_new_cmds=
15635 old_archive_from_expsyms_cmds=
15636 thread_safe_flag_spec=
15637 whole_archive_flag_spec=
15638 # include_expsyms should be a list of space-separated symbols to be *always*
15639 # included in the symbol list
15640 include_expsyms=
15641 # exclude_expsyms can be an extended regexp of symbols to exclude
15642 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15643 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15644 # as well as any symbol that contains `d'.
15645 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15646 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15647 # platforms (ab)use it in PIC code, but their linkers get confused if
15648 # the symbol is explicitly referenced. Since portable code cannot
15649 # rely on this symbol name, it's probably fine to never include it in
15650 # preloaded symbol tables.
15651 # Exclude shared library initialization/finalization symbols.
15652 extract_expsyms_cmds=
15654 case $host_os in
15655 cygwin* | mingw* | pw32* | cegcc*)
15656 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15657 # When not using gcc, we currently assume that we are using
15658 # Microsoft Visual C++.
15659 if test "$GCC" != yes; then
15660 with_gnu_ld=no
15663 interix*)
15664 # we just hope/assume this is gcc and not c89 (= MSVC++)
15665 with_gnu_ld=yes
15667 openbsd*)
15668 with_gnu_ld=no
15670 esac
15672 ld_shlibs=yes
15674 # On some targets, GNU ld is compatible enough with the native linker
15675 # that we're better off using the native interface for both.
15676 lt_use_gnu_ld_interface=no
15677 if test "$with_gnu_ld" = yes; then
15678 case $host_os in
15679 aix*)
15680 # The AIX port of GNU ld has always aspired to compatibility
15681 # with the native linker. However, as the warning in the GNU ld
15682 # block says, versions before 2.19.5* couldn't really create working
15683 # shared libraries, regardless of the interface used.
15684 case `$LD -v 2>&1` in
15685 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15686 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15687 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15689 lt_use_gnu_ld_interface=yes
15691 esac
15694 lt_use_gnu_ld_interface=yes
15696 esac
15699 if test "$lt_use_gnu_ld_interface" = yes; then
15700 # If archive_cmds runs LD, not CC, wlarc should be empty
15701 wlarc='${wl}'
15703 # Set some defaults for GNU ld with shared library support. These
15704 # are reset later if shared libraries are not supported. Putting them
15705 # here allows them to be overridden if necessary.
15706 runpath_var=LD_RUN_PATH
15707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15708 export_dynamic_flag_spec='${wl}--export-dynamic'
15709 # ancient GNU ld didn't support --whole-archive et. al.
15710 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15711 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15712 else
15713 whole_archive_flag_spec=
15715 supports_anon_versioning=no
15716 case `$LD -v 2>&1` in
15717 *GNU\ gold*) supports_anon_versioning=yes ;;
15718 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15719 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15720 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15721 *\ 2.11.*) ;; # other 2.11 versions
15722 *) supports_anon_versioning=yes ;;
15723 esac
15725 # See if GNU ld supports shared libraries.
15726 case $host_os in
15727 aix[3-9]*)
15728 # On AIX/PPC, the GNU linker is very broken
15729 if test "$host_cpu" != ia64; then
15730 ld_shlibs=no
15731 cat <<_LT_EOF 1>&2
15733 *** Warning: the GNU linker, at least up to release 2.19, is reported
15734 *** to be unable to reliably create shared libraries on AIX.
15735 *** Therefore, libtool is disabling shared libraries support. If you
15736 *** really care for shared libraries, you may want to install binutils
15737 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15738 *** You will then need to restart the configuration process.
15740 _LT_EOF
15744 amigaos*)
15745 case $host_cpu in
15746 powerpc)
15747 # see comment about AmigaOS4 .so support
15748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15749 archive_expsym_cmds=''
15751 m68k)
15752 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)'
15753 hardcode_libdir_flag_spec='-L$libdir'
15754 hardcode_minus_L=yes
15756 esac
15759 beos*)
15760 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15761 allow_undefined_flag=unsupported
15762 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15763 # support --undefined. This deserves some investigation. FIXME
15764 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15765 else
15766 ld_shlibs=no
15770 cygwin* | mingw* | pw32* | cegcc*)
15771 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15772 # as there is no search path for DLLs.
15773 hardcode_libdir_flag_spec='-L$libdir'
15774 export_dynamic_flag_spec='${wl}--export-all-symbols'
15775 allow_undefined_flag=unsupported
15776 always_export_symbols=no
15777 enable_shared_with_static_runtimes=yes
15778 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15780 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15782 # If the export-symbols file already is a .def file (1st line
15783 # is EXPORTS), use it as is; otherwise, prepend...
15784 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15785 cp $export_symbols $output_objdir/$soname.def;
15786 else
15787 echo EXPORTS > $output_objdir/$soname.def;
15788 cat $export_symbols >> $output_objdir/$soname.def;
15790 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15791 else
15792 ld_shlibs=no
15796 haiku*)
15797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798 link_all_deplibs=yes
15801 interix[3-9]*)
15802 hardcode_direct=no
15803 hardcode_shlibpath_var=no
15804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15805 export_dynamic_flag_spec='${wl}-E'
15806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15807 # Instead, shared libraries are loaded at an image base (0x10000000 by
15808 # default) and relocated if they conflict, which is a slow very memory
15809 # consuming and fragmenting process. To avoid this, we pick a random,
15810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15811 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15813 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'
15816 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15817 tmp_diet=no
15818 if test "$host_os" = linux-dietlibc; then
15819 case $cc_basename in
15820 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15821 esac
15823 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15824 && test "$tmp_diet" = no
15825 then
15826 tmp_addflag=
15827 tmp_sharedflag='-shared'
15828 case $cc_basename,$host_cpu in
15829 pgcc*) # Portland Group C compiler
15830 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'
15831 tmp_addflag=' $pic_flag'
15833 pgf77* | pgf90* | pgf95* | pgfortran*)
15834 # Portland Group f77 and f90 compilers
15835 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'
15836 tmp_addflag=' $pic_flag -Mnomain' ;;
15837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15838 tmp_addflag=' -i_dynamic' ;;
15839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15840 tmp_addflag=' -i_dynamic -nofor_main' ;;
15841 ifc* | ifort*) # Intel Fortran compiler
15842 tmp_addflag=' -nofor_main' ;;
15843 lf95*) # Lahey Fortran 8.1
15844 whole_archive_flag_spec=
15845 tmp_sharedflag='--shared' ;;
15846 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15847 tmp_sharedflag='-qmkshrobj'
15848 tmp_addflag= ;;
15849 nvcc*) # Cuda Compiler Driver 2.2
15850 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'
15851 compiler_needs_object=yes
15853 esac
15854 case `$CC -V 2>&1 | sed 5q` in
15855 *Sun\ C*) # Sun C 5.9
15856 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'
15857 compiler_needs_object=yes
15858 tmp_sharedflag='-G' ;;
15859 *Sun\ F*) # Sun Fortran 8.3
15860 tmp_sharedflag='-G' ;;
15861 esac
15862 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15864 if test "x$supports_anon_versioning" = xyes; then
15865 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15866 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15867 echo "local: *; };" >> $output_objdir/$libname.ver~
15868 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15871 case $cc_basename in
15872 xlf* | bgf* | bgxlf* | mpixlf*)
15873 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15874 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15875 hardcode_libdir_flag_spec=
15876 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15877 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15878 if test "x$supports_anon_versioning" = xyes; then
15879 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15880 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15881 echo "local: *; };" >> $output_objdir/$libname.ver~
15882 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15885 esac
15886 else
15887 ld_shlibs=no
15891 netbsd*)
15892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15893 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15894 wlarc=
15895 else
15896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15901 solaris*)
15902 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15903 ld_shlibs=no
15904 cat <<_LT_EOF 1>&2
15906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15907 *** create shared libraries on Solaris systems. Therefore, libtool
15908 *** is disabling shared libraries support. We urge you to upgrade GNU
15909 *** binutils to release 2.9.1 or newer. Another option is to modify
15910 *** your PATH or compiler configuration so that the native linker is
15911 *** used, and then restart.
15913 _LT_EOF
15914 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15917 else
15918 ld_shlibs=no
15922 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15923 case `$LD -v 2>&1` in
15924 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15925 ld_shlibs=no
15926 cat <<_LT_EOF 1>&2
15928 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15929 *** reliably create shared libraries on SCO systems. Therefore, libtool
15930 *** is disabling shared libraries support. We urge you to upgrade GNU
15931 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15932 *** your PATH or compiler configuration so that the native linker is
15933 *** used, and then restart.
15935 _LT_EOF
15938 # For security reasons, it is highly recommended that you always
15939 # use absolute paths for naming shared libraries, and exclude the
15940 # DT_RUNPATH tag from executables and libraries. But doing so
15941 # requires that you compile everything twice, which is a pain.
15942 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15946 else
15947 ld_shlibs=no
15950 esac
15953 sunos4*)
15954 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15955 wlarc=
15956 hardcode_direct=yes
15957 hardcode_shlibpath_var=no
15961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15964 else
15965 ld_shlibs=no
15968 esac
15970 if test "$ld_shlibs" = no; then
15971 runpath_var=
15972 hardcode_libdir_flag_spec=
15973 export_dynamic_flag_spec=
15974 whole_archive_flag_spec=
15976 else
15977 # PORTME fill in a description of your system's linker (not GNU ld)
15978 case $host_os in
15979 aix3*)
15980 allow_undefined_flag=unsupported
15981 always_export_symbols=yes
15982 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'
15983 # Note: this linker hardcodes the directories in LIBPATH if there
15984 # are no directories specified by -L.
15985 hardcode_minus_L=yes
15986 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15987 # Neither direct hardcoding nor static linking is supported with a
15988 # broken collect2.
15989 hardcode_direct=unsupported
15993 aix[4-9]*)
15994 if test "$host_cpu" = ia64; then
15995 # On IA64, the linker does run time linking by default, so we don't
15996 # have to do anything special.
15997 aix_use_runtimelinking=no
15998 exp_sym_flag='-Bexport'
15999 no_entry_flag=""
16000 else
16001 # If we're using GNU nm, then we don't want the "-C" option.
16002 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16003 # Also, AIX nm treats weak defined symbols like other global
16004 # defined symbols, whereas GNU nm marks them as "W".
16005 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16006 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'
16007 else
16008 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'
16010 aix_use_runtimelinking=no
16012 # Test if we are trying to use run time linking or normal
16013 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16014 # need to do runtime linking.
16015 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16016 for ld_flag in $LDFLAGS; do
16017 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16018 aix_use_runtimelinking=yes
16019 break
16021 done
16023 esac
16025 exp_sym_flag='-bexport'
16026 no_entry_flag='-bnoentry'
16029 # When large executables or shared objects are built, AIX ld can
16030 # have problems creating the table of contents. If linking a library
16031 # or program results in "error TOC overflow" add -mminimal-toc to
16032 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16033 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16035 archive_cmds=''
16036 hardcode_direct=yes
16037 hardcode_direct_absolute=yes
16038 hardcode_libdir_separator=':'
16039 link_all_deplibs=yes
16040 file_list_spec='${wl}-f,'
16042 if test "$GCC" = yes; then
16043 case $host_os in aix4.[012]|aix4.[012].*)
16044 # We only want to do this on AIX 4.2 and lower, the check
16045 # below for broken collect2 doesn't work under 4.3+
16046 collect2name=`${CC} -print-prog-name=collect2`
16047 if test -f "$collect2name" &&
16048 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16049 then
16050 # We have reworked collect2
16052 else
16053 # We have old collect2
16054 hardcode_direct=unsupported
16055 # It fails to find uninstalled libraries when the uninstalled
16056 # path is not listed in the libpath. Setting hardcode_minus_L
16057 # to unsupported forces relinking
16058 hardcode_minus_L=yes
16059 hardcode_libdir_flag_spec='-L$libdir'
16060 hardcode_libdir_separator=
16063 esac
16064 shared_flag='-shared'
16065 if test "$aix_use_runtimelinking" = yes; then
16066 shared_flag="$shared_flag "'${wl}-G'
16068 else
16069 # not using gcc
16070 if test "$host_cpu" = ia64; then
16071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16072 # chokes on -Wl,-G. The following line is correct:
16073 shared_flag='-G'
16074 else
16075 if test "$aix_use_runtimelinking" = yes; then
16076 shared_flag='${wl}-G'
16077 else
16078 shared_flag='${wl}-bM:SRE'
16083 export_dynamic_flag_spec='${wl}-bexpall'
16084 # It seems that -bexpall does not export symbols beginning with
16085 # underscore (_), so it is better to generate a list of symbols to export.
16086 always_export_symbols=yes
16087 if test "$aix_use_runtimelinking" = yes; then
16088 # Warning - without using the other runtime loading flags (-brtl),
16089 # -berok will link without error, but may produce a broken library.
16090 allow_undefined_flag='-berok'
16091 # Determine the default libpath from the value encoded in an
16092 # empty executable.
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16097 main ()
16101 return 0;
16103 _ACEOF
16104 if ac_fn_c_try_link "$LINENO"; then :
16106 lt_aix_libpath_sed='
16107 /Import File Strings/,/^$/ {
16108 /^0/ {
16109 s/^0 *\(.*\)$/\1/
16113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16114 # Check for a 64-bit object if we didn't find anything.
16115 if test -z "$aix_libpath"; then
16116 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16119 rm -f core conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16123 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16124 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"
16125 else
16126 if test "$host_cpu" = ia64; then
16127 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16128 allow_undefined_flag="-z nodefs"
16129 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"
16130 else
16131 # Determine the default libpath from the value encoded in an
16132 # empty executable.
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16137 main ()
16141 return 0;
16143 _ACEOF
16144 if ac_fn_c_try_link "$LINENO"; then :
16146 lt_aix_libpath_sed='
16147 /Import File Strings/,/^$/ {
16148 /^0/ {
16149 s/^0 *\(.*\)$/\1/
16153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16154 # Check for a 64-bit object if we didn't find anything.
16155 if test -z "$aix_libpath"; then
16156 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16159 rm -f core conftest.err conftest.$ac_objext \
16160 conftest$ac_exeext conftest.$ac_ext
16161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16164 # Warning - without using the other run time loading flags,
16165 # -berok will link without error, but may produce a broken library.
16166 no_undefined_flag=' ${wl}-bernotok'
16167 allow_undefined_flag=' ${wl}-berok'
16168 if test "$with_gnu_ld" = yes; then
16169 # We only use this code for GNU lds that support --whole-archive.
16170 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16171 else
16172 # Exported symbols can be pulled into shared objects from archives
16173 whole_archive_flag_spec='$convenience'
16175 archive_cmds_need_lc=yes
16176 # This is similar to how AIX traditionally builds its shared libraries.
16177 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'
16182 amigaos*)
16183 case $host_cpu in
16184 powerpc)
16185 # see comment about AmigaOS4 .so support
16186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16187 archive_expsym_cmds=''
16189 m68k)
16190 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)'
16191 hardcode_libdir_flag_spec='-L$libdir'
16192 hardcode_minus_L=yes
16194 esac
16197 bsdi[45]*)
16198 export_dynamic_flag_spec=-rdynamic
16201 cygwin* | mingw* | pw32* | cegcc*)
16202 # When not using gcc, we currently assume that we are using
16203 # Microsoft Visual C++.
16204 # hardcode_libdir_flag_spec is actually meaningless, as there is
16205 # no search path for DLLs.
16206 hardcode_libdir_flag_spec=' '
16207 allow_undefined_flag=unsupported
16208 # Tell ltmain to make .lib files, not .a files.
16209 libext=lib
16210 # Tell ltmain to make .dll files, not .so files.
16211 shrext_cmds=".dll"
16212 # FIXME: Setting linknames here is a bad hack.
16213 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16214 # The linker will automatically build a .lib file if we build a DLL.
16215 old_archive_from_new_cmds='true'
16216 # FIXME: Should let the user specify the lib program.
16217 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16218 fix_srcfile_path='`cygpath -w "$srcfile"`'
16219 enable_shared_with_static_runtimes=yes
16222 darwin* | rhapsody*)
16225 archive_cmds_need_lc=no
16226 hardcode_direct=no
16227 hardcode_automatic=yes
16228 hardcode_shlibpath_var=unsupported
16229 if test "$lt_cv_ld_force_load" = "yes"; then
16230 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\"`'
16231 else
16232 whole_archive_flag_spec=''
16234 link_all_deplibs=yes
16235 allow_undefined_flag="$_lt_dar_allow_undefined"
16236 case $cc_basename in
16237 ifort*) _lt_dar_can_shared=yes ;;
16238 *) _lt_dar_can_shared=$GCC ;;
16239 esac
16240 if test "$_lt_dar_can_shared" = "yes"; then
16241 output_verbose_link_cmd=func_echo_all
16242 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16243 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16244 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}"
16245 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}"
16247 else
16248 ld_shlibs=no
16253 dgux*)
16254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16255 hardcode_libdir_flag_spec='-L$libdir'
16256 hardcode_shlibpath_var=no
16259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16260 # support. Future versions do this automatically, but an explicit c++rt0.o
16261 # does not break anything, and helps significantly (at the cost of a little
16262 # extra space).
16263 freebsd2.2*)
16264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16265 hardcode_libdir_flag_spec='-R$libdir'
16266 hardcode_direct=yes
16267 hardcode_shlibpath_var=no
16270 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16271 freebsd2.*)
16272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16273 hardcode_direct=yes
16274 hardcode_minus_L=yes
16275 hardcode_shlibpath_var=no
16278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16279 freebsd* | dragonfly*)
16280 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16281 hardcode_libdir_flag_spec='-R$libdir'
16282 hardcode_direct=yes
16283 hardcode_shlibpath_var=no
16286 hpux9*)
16287 if test "$GCC" = yes; then
16288 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'
16289 else
16290 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'
16292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16293 hardcode_libdir_separator=:
16294 hardcode_direct=yes
16296 # hardcode_minus_L: Not really in the search PATH,
16297 # but as the default location of the library.
16298 hardcode_minus_L=yes
16299 export_dynamic_flag_spec='${wl}-E'
16302 hpux10*)
16303 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16304 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16305 else
16306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16308 if test "$with_gnu_ld" = no; then
16309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16310 hardcode_libdir_flag_spec_ld='+b $libdir'
16311 hardcode_libdir_separator=:
16312 hardcode_direct=yes
16313 hardcode_direct_absolute=yes
16314 export_dynamic_flag_spec='${wl}-E'
16315 # hardcode_minus_L: Not really in the search PATH,
16316 # but as the default location of the library.
16317 hardcode_minus_L=yes
16321 hpux11*)
16322 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16323 case $host_cpu in
16324 hppa*64*)
16325 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16327 ia64*)
16328 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16331 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16333 esac
16334 else
16335 case $host_cpu in
16336 hppa*64*)
16337 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16339 ia64*)
16340 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16344 # Older versions of the 11.00 compiler do not understand -b yet
16345 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16347 $as_echo_n "checking if $CC understands -b... " >&6; }
16348 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16349 $as_echo_n "(cached) " >&6
16350 else
16351 lt_cv_prog_compiler__b=no
16352 save_LDFLAGS="$LDFLAGS"
16353 LDFLAGS="$LDFLAGS -b"
16354 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16356 # The linker can only warn and ignore the option if not recognized
16357 # So say no if there are warnings
16358 if test -s conftest.err; then
16359 # Append any errors to the config.log.
16360 cat conftest.err 1>&5
16361 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16363 if diff conftest.exp conftest.er2 >/dev/null; then
16364 lt_cv_prog_compiler__b=yes
16366 else
16367 lt_cv_prog_compiler__b=yes
16370 $RM -r conftest*
16371 LDFLAGS="$save_LDFLAGS"
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16375 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16377 if test x"$lt_cv_prog_compiler__b" = xyes; then
16378 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16379 else
16380 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16384 esac
16386 if test "$with_gnu_ld" = no; then
16387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16388 hardcode_libdir_separator=:
16390 case $host_cpu in
16391 hppa*64*|ia64*)
16392 hardcode_direct=no
16393 hardcode_shlibpath_var=no
16396 hardcode_direct=yes
16397 hardcode_direct_absolute=yes
16398 export_dynamic_flag_spec='${wl}-E'
16400 # hardcode_minus_L: Not really in the search PATH,
16401 # but as the default location of the library.
16402 hardcode_minus_L=yes
16404 esac
16408 irix5* | irix6* | nonstopux*)
16409 if test "$GCC" = yes; then
16410 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'
16411 # Try to use the -exported_symbol ld option, if it does not
16412 # work, assume that -exports_file does not work either and
16413 # implicitly export all symbols.
16414 save_LDFLAGS="$LDFLAGS"
16415 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16418 int foo(void) {}
16419 _ACEOF
16420 if ac_fn_c_try_link "$LINENO"; then :
16421 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'
16424 rm -f core conftest.err conftest.$ac_objext \
16425 conftest$ac_exeext conftest.$ac_ext
16426 LDFLAGS="$save_LDFLAGS"
16427 else
16428 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'
16429 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'
16431 archive_cmds_need_lc='no'
16432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16433 hardcode_libdir_separator=:
16434 inherit_rpath=yes
16435 link_all_deplibs=yes
16438 netbsd*)
16439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16441 else
16442 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16444 hardcode_libdir_flag_spec='-R$libdir'
16445 hardcode_direct=yes
16446 hardcode_shlibpath_var=no
16449 newsos6)
16450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16451 hardcode_direct=yes
16452 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16453 hardcode_libdir_separator=:
16454 hardcode_shlibpath_var=no
16457 *nto* | *qnx*)
16460 openbsd*)
16461 if test -f /usr/libexec/ld.so; then
16462 hardcode_direct=yes
16463 hardcode_shlibpath_var=no
16464 hardcode_direct_absolute=yes
16465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16466 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16467 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16469 export_dynamic_flag_spec='${wl}-E'
16470 else
16471 case $host_os in
16472 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16474 hardcode_libdir_flag_spec='-R$libdir'
16477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16480 esac
16482 else
16483 ld_shlibs=no
16487 os2*)
16488 hardcode_libdir_flag_spec='-L$libdir'
16489 hardcode_minus_L=yes
16490 allow_undefined_flag=unsupported
16491 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'
16492 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16495 osf3*)
16496 if test "$GCC" = yes; then
16497 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16498 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'
16499 else
16500 allow_undefined_flag=' -expect_unresolved \*'
16501 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'
16503 archive_cmds_need_lc='no'
16504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16505 hardcode_libdir_separator=:
16508 osf4* | osf5*) # as osf3* with the addition of -msym flag
16509 if test "$GCC" = yes; then
16510 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16511 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'
16512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16513 else
16514 allow_undefined_flag=' -expect_unresolved \*'
16515 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'
16516 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~
16517 $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'
16519 # Both c and cxx compiler support -rpath directly
16520 hardcode_libdir_flag_spec='-rpath $libdir'
16522 archive_cmds_need_lc='no'
16523 hardcode_libdir_separator=:
16526 solaris*)
16527 no_undefined_flag=' -z defs'
16528 if test "$GCC" = yes; then
16529 wlarc='${wl}'
16530 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16532 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16533 else
16534 case `$CC -V 2>&1` in
16535 *"Compilers 5.0"*)
16536 wlarc=''
16537 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16538 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16539 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16542 wlarc='${wl}'
16543 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16544 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16545 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16547 esac
16549 hardcode_libdir_flag_spec='-R$libdir'
16550 hardcode_shlibpath_var=no
16551 case $host_os in
16552 solaris2.[0-5] | solaris2.[0-5].*) ;;
16554 # The compiler driver will combine and reorder linker options,
16555 # but understands `-z linker_flag'. GCC discards it without `$wl',
16556 # but is careful enough not to reorder.
16557 # Supported since Solaris 2.6 (maybe 2.5.1?)
16558 if test "$GCC" = yes; then
16559 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16560 else
16561 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16564 esac
16565 link_all_deplibs=yes
16568 sunos4*)
16569 if test "x$host_vendor" = xsequent; then
16570 # Use $CC to link under sequent, because it throws in some extra .o
16571 # files that make .init and .fini sections work.
16572 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16573 else
16574 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16576 hardcode_libdir_flag_spec='-L$libdir'
16577 hardcode_direct=yes
16578 hardcode_minus_L=yes
16579 hardcode_shlibpath_var=no
16582 sysv4)
16583 case $host_vendor in
16584 sni)
16585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586 hardcode_direct=yes # is this really true???
16588 siemens)
16589 ## LD is ld it makes a PLAMLIB
16590 ## CC just makes a GrossModule.
16591 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16592 reload_cmds='$CC -r -o $output$reload_objs'
16593 hardcode_direct=no
16595 motorola)
16596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16599 esac
16600 runpath_var='LD_RUN_PATH'
16601 hardcode_shlibpath_var=no
16604 sysv4.3*)
16605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16606 hardcode_shlibpath_var=no
16607 export_dynamic_flag_spec='-Bexport'
16610 sysv4*MP*)
16611 if test -d /usr/nec; then
16612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16613 hardcode_shlibpath_var=no
16614 runpath_var=LD_RUN_PATH
16615 hardcode_runpath_var=yes
16616 ld_shlibs=yes
16620 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16621 no_undefined_flag='${wl}-z,text'
16622 archive_cmds_need_lc=no
16623 hardcode_shlibpath_var=no
16624 runpath_var='LD_RUN_PATH'
16626 if test "$GCC" = yes; then
16627 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16628 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16629 else
16630 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16635 sysv5* | sco3.2v5* | sco5v6*)
16636 # Note: We can NOT use -z defs as we might desire, because we do not
16637 # link with -lc, and that would cause any symbols used from libc to
16638 # always be unresolved, which means just about no library would
16639 # ever link correctly. If we're not using GNU ld we use -z text
16640 # though, which does catch some bad symbols but isn't as heavy-handed
16641 # as -z defs.
16642 no_undefined_flag='${wl}-z,text'
16643 allow_undefined_flag='${wl}-z,nodefs'
16644 archive_cmds_need_lc=no
16645 hardcode_shlibpath_var=no
16646 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16647 hardcode_libdir_separator=':'
16648 link_all_deplibs=yes
16649 export_dynamic_flag_spec='${wl}-Bexport'
16650 runpath_var='LD_RUN_PATH'
16652 if test "$GCC" = yes; then
16653 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16654 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16655 else
16656 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16661 uts4*)
16662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16663 hardcode_libdir_flag_spec='-L$libdir'
16664 hardcode_shlibpath_var=no
16668 ld_shlibs=no
16670 esac
16672 if test x$host_vendor = xsni; then
16673 case $host in
16674 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16675 export_dynamic_flag_spec='${wl}-Blargedynsym'
16677 esac
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16682 $as_echo "$ld_shlibs" >&6; }
16683 test "$ld_shlibs" = no && can_build_shared=no
16685 with_gnu_ld=$with_gnu_ld
16702 # Do we need to explicitly link libc?
16704 case "x$archive_cmds_need_lc" in
16705 x|xyes)
16706 # Assume -lc should be added
16707 archive_cmds_need_lc=yes
16709 if test "$enable_shared" = yes && test "$GCC" = yes; then
16710 case $archive_cmds in
16711 *'~'*)
16712 # FIXME: we may have to deal with multi-command sequences.
16714 '$CC '*)
16715 # Test whether the compiler implicitly links with -lc since on some
16716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16717 # to ld, don't add -lc before -lgcc.
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16719 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16720 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16721 $as_echo_n "(cached) " >&6
16722 else
16723 $RM conftest*
16724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16727 (eval $ac_compile) 2>&5
16728 ac_status=$?
16729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16730 test $ac_status = 0; } 2>conftest.err; then
16731 soname=conftest
16732 lib=conftest
16733 libobjs=conftest.$ac_objext
16734 deplibs=
16735 wl=$lt_prog_compiler_wl
16736 pic_flag=$lt_prog_compiler_pic
16737 compiler_flags=-v
16738 linker_flags=-v
16739 verstring=
16740 output_objdir=.
16741 libname=conftest
16742 lt_save_allow_undefined_flag=$allow_undefined_flag
16743 allow_undefined_flag=
16744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16745 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16746 ac_status=$?
16747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16748 test $ac_status = 0; }
16749 then
16750 lt_cv_archive_cmds_need_lc=no
16751 else
16752 lt_cv_archive_cmds_need_lc=yes
16754 allow_undefined_flag=$lt_save_allow_undefined_flag
16755 else
16756 cat conftest.err 1>&5
16758 $RM conftest*
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16762 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16763 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16765 esac
16768 esac
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16927 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16929 if test "$GCC" = yes; then
16930 case $host_os in
16931 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16932 *) lt_awk_arg="/^libraries:/" ;;
16933 esac
16934 case $host_os in
16935 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16936 *) lt_sed_strip_eq="s,=/,/,g" ;;
16937 esac
16938 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16939 case $lt_search_path_spec in
16940 *\;*)
16941 # if the path contains ";" then we assume it to be the separator
16942 # otherwise default to the standard path separator (i.e. ":") - it is
16943 # assumed that no part of a normal pathname contains ";" but that should
16944 # okay in the real world where ";" in dirpaths is itself problematic.
16945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16948 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16950 esac
16951 # Ok, now we have the path, separated by spaces, we can step through it
16952 # and add multilib dir if necessary.
16953 lt_tmp_lt_search_path_spec=
16954 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16955 for lt_sys_path in $lt_search_path_spec; do
16956 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16957 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16958 else
16959 test -d "$lt_sys_path" && \
16960 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16962 done
16963 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16964 BEGIN {RS=" "; FS="/|\n";} {
16965 lt_foo="";
16966 lt_count=0;
16967 for (lt_i = NF; lt_i > 0; lt_i--) {
16968 if ($lt_i != "" && $lt_i != ".") {
16969 if ($lt_i == "..") {
16970 lt_count++;
16971 } else {
16972 if (lt_count == 0) {
16973 lt_foo="/" $lt_i lt_foo;
16974 } else {
16975 lt_count--;
16980 if (lt_foo != "") { lt_freq[lt_foo]++; }
16981 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16983 # AWK program above erroneously prepends '/' to C:/dos/paths
16984 # for these hosts.
16985 case $host_os in
16986 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16987 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16988 esac
16989 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16990 else
16991 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16993 library_names_spec=
16994 libname_spec='lib$name'
16995 soname_spec=
16996 shrext_cmds=".so"
16997 postinstall_cmds=
16998 postuninstall_cmds=
16999 finish_cmds=
17000 finish_eval=
17001 shlibpath_var=
17002 shlibpath_overrides_runpath=unknown
17003 version_type=none
17004 dynamic_linker="$host_os ld.so"
17005 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17006 need_lib_prefix=unknown
17007 hardcode_into_libs=no
17009 # when you set need_version to no, make sure it does not cause -set_version
17010 # flags to be left without arguments
17011 need_version=unknown
17013 case $host_os in
17014 aix3*)
17015 version_type=linux
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17017 shlibpath_var=LIBPATH
17019 # AIX 3 has no versioning support, so we append a major version to the name.
17020 soname_spec='${libname}${release}${shared_ext}$major'
17023 aix[4-9]*)
17024 version_type=linux
17025 need_lib_prefix=no
17026 need_version=no
17027 hardcode_into_libs=yes
17028 if test "$host_cpu" = ia64; then
17029 # AIX 5 supports IA64
17030 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17031 shlibpath_var=LD_LIBRARY_PATH
17032 else
17033 # With GCC up to 2.95.x, collect2 would create an import file
17034 # for dependence libraries. The import file would start with
17035 # the line `#! .'. This would cause the generated library to
17036 # depend on `.', always an invalid library. This was fixed in
17037 # development snapshots of GCC prior to 3.0.
17038 case $host_os in
17039 aix4 | aix4.[01] | aix4.[01].*)
17040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17041 echo ' yes '
17042 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17044 else
17045 can_build_shared=no
17048 esac
17049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17050 # soname into executable. Probably we can add versioning support to
17051 # collect2, so additional links can be useful in future.
17052 if test "$aix_use_runtimelinking" = yes; then
17053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17054 # instead of lib<name>.a to let people know that these are not
17055 # typical AIX shared libraries.
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057 else
17058 # We preserve .a as extension for shared libraries through AIX4.2
17059 # and later when we are not doing run time linking.
17060 library_names_spec='${libname}${release}.a $libname.a'
17061 soname_spec='${libname}${release}${shared_ext}$major'
17063 shlibpath_var=LIBPATH
17067 amigaos*)
17068 case $host_cpu in
17069 powerpc)
17070 # Since July 2007 AmigaOS4 officially supports .so libraries.
17071 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17074 m68k)
17075 library_names_spec='$libname.ixlibrary $libname.a'
17076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17077 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'
17079 esac
17082 beos*)
17083 library_names_spec='${libname}${shared_ext}'
17084 dynamic_linker="$host_os ld.so"
17085 shlibpath_var=LIBRARY_PATH
17088 bsdi[45]*)
17089 version_type=linux
17090 need_version=no
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17097 # the default ld.so.conf also contains /usr/contrib/lib and
17098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17099 # libtool to hard-code these into programs
17102 cygwin* | mingw* | pw32* | cegcc*)
17103 version_type=windows
17104 shrext_cmds=".dll"
17105 need_version=no
17106 need_lib_prefix=no
17108 case $GCC,$host_os in
17109 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17110 library_names_spec='$libname.dll.a'
17111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17112 postinstall_cmds='base_file=`basename \${file}`~
17113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17114 dldir=$destdir/`dirname \$dlpath`~
17115 test -d \$dldir || mkdir -p \$dldir~
17116 $install_prog $dir/$dlname \$dldir/$dlname~
17117 chmod a+x \$dldir/$dlname~
17118 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17119 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17122 dlpath=$dir/\$dldll~
17123 $RM \$dlpath'
17124 shlibpath_overrides_runpath=yes
17126 case $host_os in
17127 cygwin*)
17128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17131 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17133 mingw* | cegcc*)
17134 # MinGW DLLs use traditional 'lib' prefix
17135 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17137 pw32*)
17138 # pw32 DLLs use 'pw' prefix rather than 'lib'
17139 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17141 esac
17145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17147 esac
17148 dynamic_linker='Win32 ld.exe'
17149 # FIXME: first we should search . and the directory the executable is in
17150 shlibpath_var=PATH
17153 darwin* | rhapsody*)
17154 dynamic_linker="$host_os dyld"
17155 version_type=darwin
17156 need_lib_prefix=no
17157 need_version=no
17158 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17159 soname_spec='${libname}${release}${major}$shared_ext'
17160 shlibpath_overrides_runpath=yes
17161 shlibpath_var=DYLD_LIBRARY_PATH
17162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17164 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17168 dgux*)
17169 version_type=linux
17170 need_lib_prefix=no
17171 need_version=no
17172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 shlibpath_var=LD_LIBRARY_PATH
17177 freebsd* | dragonfly*)
17178 # DragonFly does not have aout. When/if they implement a new
17179 # versioning mechanism, adjust this.
17180 if test -x /usr/bin/objformat; then
17181 objformat=`/usr/bin/objformat`
17182 else
17183 case $host_os in
17184 freebsd[23].*) objformat=aout ;;
17185 *) objformat=elf ;;
17186 esac
17188 version_type=freebsd-$objformat
17189 case $version_type in
17190 freebsd-elf*)
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17192 need_version=no
17193 need_lib_prefix=no
17195 freebsd-*)
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17197 need_version=yes
17199 esac
17200 shlibpath_var=LD_LIBRARY_PATH
17201 case $host_os in
17202 freebsd2.*)
17203 shlibpath_overrides_runpath=yes
17205 freebsd3.[01]* | freebsdelf3.[01]*)
17206 shlibpath_overrides_runpath=yes
17207 hardcode_into_libs=yes
17209 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17210 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17211 shlibpath_overrides_runpath=no
17212 hardcode_into_libs=yes
17214 *) # from 4.6 on, and DragonFly
17215 shlibpath_overrides_runpath=yes
17216 hardcode_into_libs=yes
17218 esac
17221 gnu*)
17222 version_type=linux
17223 need_lib_prefix=no
17224 need_version=no
17225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17226 soname_spec='${libname}${release}${shared_ext}$major'
17227 shlibpath_var=LD_LIBRARY_PATH
17228 hardcode_into_libs=yes
17231 haiku*)
17232 version_type=linux
17233 need_lib_prefix=no
17234 need_version=no
17235 dynamic_linker="$host_os runtime_loader"
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 shlibpath_var=LIBRARY_PATH
17239 shlibpath_overrides_runpath=yes
17240 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17241 hardcode_into_libs=yes
17244 hpux9* | hpux10* | hpux11*)
17245 # Give a soname corresponding to the major version so that dld.sl refuses to
17246 # link against other versions.
17247 version_type=sunos
17248 need_lib_prefix=no
17249 need_version=no
17250 case $host_cpu in
17251 ia64*)
17252 shrext_cmds='.so'
17253 hardcode_into_libs=yes
17254 dynamic_linker="$host_os dld.so"
17255 shlibpath_var=LD_LIBRARY_PATH
17256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17258 soname_spec='${libname}${release}${shared_ext}$major'
17259 if test "X$HPUX_IA64_MODE" = X32; then
17260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17261 else
17262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17266 hppa*64*)
17267 shrext_cmds='.sl'
17268 hardcode_into_libs=yes
17269 dynamic_linker="$host_os dld.sl"
17270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17278 shrext_cmds='.sl'
17279 dynamic_linker="$host_os dld.sl"
17280 shlibpath_var=SHLIB_PATH
17281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 soname_spec='${libname}${release}${shared_ext}$major'
17285 esac
17286 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17287 postinstall_cmds='chmod 555 $lib'
17288 # or fails outright, so override atomically:
17289 install_override_mode=555
17292 interix[3-9]*)
17293 version_type=linux
17294 need_lib_prefix=no
17295 need_version=no
17296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17297 soname_spec='${libname}${release}${shared_ext}$major'
17298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=no
17301 hardcode_into_libs=yes
17304 irix5* | irix6* | nonstopux*)
17305 case $host_os in
17306 nonstopux*) version_type=nonstopux ;;
17308 if test "$lt_cv_prog_gnu_ld" = yes; then
17309 version_type=linux
17310 else
17311 version_type=irix
17312 fi ;;
17313 esac
17314 need_lib_prefix=no
17315 need_version=no
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17318 case $host_os in
17319 irix5* | nonstopux*)
17320 libsuff= shlibsuff=
17323 case $LD in # libtool.m4 will add one of these switches to LD
17324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17325 libsuff= shlibsuff= libmagic=32-bit;;
17326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17327 libsuff=32 shlibsuff=N32 libmagic=N32;;
17328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17330 *) libsuff= shlibsuff= libmagic=never-match;;
17331 esac
17333 esac
17334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17335 shlibpath_overrides_runpath=no
17336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17338 hardcode_into_libs=yes
17341 # No shared lib support for Linux oldld, aout, or coff.
17342 linux*oldld* | linux*aout* | linux*coff*)
17343 dynamic_linker=no
17346 # This must be Linux ELF.
17347 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17348 version_type=linux
17349 need_lib_prefix=no
17350 need_version=no
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17354 shlibpath_var=LD_LIBRARY_PATH
17355 shlibpath_overrides_runpath=no
17357 # Some binutils ld are patched to set DT_RUNPATH
17358 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17359 $as_echo_n "(cached) " >&6
17360 else
17361 lt_cv_shlibpath_overrides_runpath=no
17362 save_LDFLAGS=$LDFLAGS
17363 save_libdir=$libdir
17364 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17365 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17370 main ()
17374 return 0;
17376 _ACEOF
17377 if ac_fn_c_try_link "$LINENO"; then :
17378 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17379 lt_cv_shlibpath_overrides_runpath=yes
17382 rm -f core conftest.err conftest.$ac_objext \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LDFLAGS=$save_LDFLAGS
17385 libdir=$save_libdir
17389 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17391 # This implies no fast_install, which is unacceptable.
17392 # Some rework will be needed to allow for fast_install
17393 # before this can be enabled.
17394 hardcode_into_libs=yes
17396 # Append ld.so.conf contents to the search path
17397 if test -f /etc/ld.so.conf; then
17398 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' ' '`
17399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17402 # We used to test for /lib/ld.so.1 and disable shared libraries on
17403 # powerpc, because MkLinux only supported shared libraries with the
17404 # GNU dynamic linker. Since this was broken with cross compilers,
17405 # most powerpc-linux boxes support dynamic linking these days and
17406 # people can always --disable-shared, the test was removed, and we
17407 # assume the GNU/Linux dynamic linker is in use.
17408 dynamic_linker='GNU/Linux ld.so'
17411 netbsd*)
17412 version_type=sunos
17413 need_lib_prefix=no
17414 need_version=no
17415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17418 dynamic_linker='NetBSD (a.out) ld.so'
17419 else
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17421 soname_spec='${libname}${release}${shared_ext}$major'
17422 dynamic_linker='NetBSD ld.elf_so'
17424 shlibpath_var=LD_LIBRARY_PATH
17425 shlibpath_overrides_runpath=yes
17426 hardcode_into_libs=yes
17429 newsos6)
17430 version_type=linux
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 shlibpath_overrides_runpath=yes
17436 *nto* | *qnx*)
17437 version_type=qnx
17438 need_lib_prefix=no
17439 need_version=no
17440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441 soname_spec='${libname}${release}${shared_ext}$major'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=no
17444 hardcode_into_libs=yes
17445 dynamic_linker='ldqnx.so'
17448 openbsd*)
17449 version_type=sunos
17450 sys_lib_dlsearch_path_spec="/usr/lib"
17451 need_lib_prefix=no
17452 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17453 case $host_os in
17454 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17455 *) need_version=no ;;
17456 esac
17457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17459 shlibpath_var=LD_LIBRARY_PATH
17460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17461 case $host_os in
17462 openbsd2.[89] | openbsd2.[89].*)
17463 shlibpath_overrides_runpath=no
17466 shlibpath_overrides_runpath=yes
17468 esac
17469 else
17470 shlibpath_overrides_runpath=yes
17474 os2*)
17475 libname_spec='$name'
17476 shrext_cmds=".dll"
17477 need_lib_prefix=no
17478 library_names_spec='$libname${shared_ext} $libname.a'
17479 dynamic_linker='OS/2 ld.exe'
17480 shlibpath_var=LIBPATH
17483 osf3* | osf4* | osf5*)
17484 version_type=osf
17485 need_lib_prefix=no
17486 need_version=no
17487 soname_spec='${libname}${release}${shared_ext}$major'
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17491 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17494 rdos*)
17495 dynamic_linker=no
17498 solaris*)
17499 version_type=linux
17500 need_lib_prefix=no
17501 need_version=no
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17503 soname_spec='${libname}${release}${shared_ext}$major'
17504 shlibpath_var=LD_LIBRARY_PATH
17505 shlibpath_overrides_runpath=yes
17506 hardcode_into_libs=yes
17507 # ldd complains unless libraries are executable
17508 postinstall_cmds='chmod +x $lib'
17511 sunos4*)
17512 version_type=sunos
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17514 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17515 shlibpath_var=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath=yes
17517 if test "$with_gnu_ld" = yes; then
17518 need_lib_prefix=no
17520 need_version=yes
17523 sysv4 | sysv4.3*)
17524 version_type=linux
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17526 soname_spec='${libname}${release}${shared_ext}$major'
17527 shlibpath_var=LD_LIBRARY_PATH
17528 case $host_vendor in
17529 sni)
17530 shlibpath_overrides_runpath=no
17531 need_lib_prefix=no
17532 runpath_var=LD_RUN_PATH
17534 siemens)
17535 need_lib_prefix=no
17537 motorola)
17538 need_lib_prefix=no
17539 need_version=no
17540 shlibpath_overrides_runpath=no
17541 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17543 esac
17546 sysv4*MP*)
17547 if test -d /usr/nec ;then
17548 version_type=linux
17549 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17550 soname_spec='$libname${shared_ext}.$major'
17551 shlibpath_var=LD_LIBRARY_PATH
17555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17556 version_type=freebsd-elf
17557 need_lib_prefix=no
17558 need_version=no
17559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17560 soname_spec='${libname}${release}${shared_ext}$major'
17561 shlibpath_var=LD_LIBRARY_PATH
17562 shlibpath_overrides_runpath=yes
17563 hardcode_into_libs=yes
17564 if test "$with_gnu_ld" = yes; then
17565 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17566 else
17567 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17568 case $host_os in
17569 sco3.2v5*)
17570 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17572 esac
17574 sys_lib_dlsearch_path_spec='/usr/lib'
17577 tpf*)
17578 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17579 version_type=linux
17580 need_lib_prefix=no
17581 need_version=no
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath=no
17585 hardcode_into_libs=yes
17588 uts4*)
17589 version_type=linux
17590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591 soname_spec='${libname}${release}${shared_ext}$major'
17592 shlibpath_var=LD_LIBRARY_PATH
17596 dynamic_linker=no
17598 esac
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17600 $as_echo "$dynamic_linker" >&6; }
17601 test "$dynamic_linker" = no && can_build_shared=no
17603 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17604 if test "$GCC" = yes; then
17605 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17608 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17609 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17611 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17612 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17707 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17708 hardcode_action=
17709 if test -n "$hardcode_libdir_flag_spec" ||
17710 test -n "$runpath_var" ||
17711 test "X$hardcode_automatic" = "Xyes" ; then
17713 # We can hardcode non-existent directories.
17714 if test "$hardcode_direct" != no &&
17715 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17716 # have to relink, otherwise we might link with an installed library
17717 # when we should be linking with a yet-to-be-installed one
17718 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17719 test "$hardcode_minus_L" != no; then
17720 # Linking always hardcodes the temporary library directory.
17721 hardcode_action=relink
17722 else
17723 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17724 hardcode_action=immediate
17726 else
17727 # We cannot hardcode anything, or else we can only hardcode existing
17728 # directories.
17729 hardcode_action=unsupported
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17732 $as_echo "$hardcode_action" >&6; }
17734 if test "$hardcode_action" = relink ||
17735 test "$inherit_rpath" = yes; then
17736 # Fast installation is not supported
17737 enable_fast_install=no
17738 elif test "$shlibpath_overrides_runpath" = yes ||
17739 test "$enable_shared" = no; then
17740 # Fast installation is not necessary
17741 enable_fast_install=needless
17749 if test "x$enable_dlopen" != xyes; then
17750 enable_dlopen=unknown
17751 enable_dlopen_self=unknown
17752 enable_dlopen_self_static=unknown
17753 else
17754 lt_cv_dlopen=no
17755 lt_cv_dlopen_libs=
17757 case $host_os in
17758 beos*)
17759 lt_cv_dlopen="load_add_on"
17760 lt_cv_dlopen_libs=
17761 lt_cv_dlopen_self=yes
17764 mingw* | pw32* | cegcc*)
17765 lt_cv_dlopen="LoadLibrary"
17766 lt_cv_dlopen_libs=
17769 cygwin*)
17770 lt_cv_dlopen="dlopen"
17771 lt_cv_dlopen_libs=
17774 darwin*)
17775 # if libdl is installed we need to link against it
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17777 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17781 ac_check_lib_save_LIBS=$LIBS
17782 LIBS="-ldl $LIBS"
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h. */
17786 /* Override any GCC internal prototype to avoid an error.
17787 Use char because int might match the return type of a GCC
17788 builtin and then its argument prototype would still apply. */
17789 #ifdef __cplusplus
17790 extern "C"
17791 #endif
17792 char dlopen ();
17794 main ()
17796 return dlopen ();
17798 return 0;
17800 _ACEOF
17801 if ac_fn_c_try_link "$LINENO"; then :
17802 ac_cv_lib_dl_dlopen=yes
17803 else
17804 ac_cv_lib_dl_dlopen=no
17806 rm -f core conftest.err conftest.$ac_objext \
17807 conftest$ac_exeext conftest.$ac_ext
17808 LIBS=$ac_check_lib_save_LIBS
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17811 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17812 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17813 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17814 else
17816 lt_cv_dlopen="dyld"
17817 lt_cv_dlopen_libs=
17818 lt_cv_dlopen_self=yes
17825 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17826 if test "x$ac_cv_func_shl_load" = x""yes; then :
17827 lt_cv_dlopen="shl_load"
17828 else
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17830 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17831 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17832 $as_echo_n "(cached) " >&6
17833 else
17834 ac_check_lib_save_LIBS=$LIBS
17835 LIBS="-ldld $LIBS"
17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17837 /* end confdefs.h. */
17839 /* Override any GCC internal prototype to avoid an error.
17840 Use char because int might match the return type of a GCC
17841 builtin and then its argument prototype would still apply. */
17842 #ifdef __cplusplus
17843 extern "C"
17844 #endif
17845 char shl_load ();
17847 main ()
17849 return shl_load ();
17851 return 0;
17853 _ACEOF
17854 if ac_fn_c_try_link "$LINENO"; then :
17855 ac_cv_lib_dld_shl_load=yes
17856 else
17857 ac_cv_lib_dld_shl_load=no
17859 rm -f core conftest.err conftest.$ac_objext \
17860 conftest$ac_exeext conftest.$ac_ext
17861 LIBS=$ac_check_lib_save_LIBS
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17864 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17865 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17866 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17867 else
17868 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17869 if test "x$ac_cv_func_dlopen" = x""yes; then :
17870 lt_cv_dlopen="dlopen"
17871 else
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17873 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17875 $as_echo_n "(cached) " >&6
17876 else
17877 ac_check_lib_save_LIBS=$LIBS
17878 LIBS="-ldl $LIBS"
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17882 /* Override any GCC internal prototype to avoid an error.
17883 Use char because int might match the return type of a GCC
17884 builtin and then its argument prototype would still apply. */
17885 #ifdef __cplusplus
17886 extern "C"
17887 #endif
17888 char dlopen ();
17890 main ()
17892 return dlopen ();
17894 return 0;
17896 _ACEOF
17897 if ac_fn_c_try_link "$LINENO"; then :
17898 ac_cv_lib_dl_dlopen=yes
17899 else
17900 ac_cv_lib_dl_dlopen=no
17902 rm -f core conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17907 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17908 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17910 else
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17912 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17914 $as_echo_n "(cached) " >&6
17915 else
17916 ac_check_lib_save_LIBS=$LIBS
17917 LIBS="-lsvld $LIBS"
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 char dlopen ();
17929 main ()
17931 return dlopen ();
17933 return 0;
17935 _ACEOF
17936 if ac_fn_c_try_link "$LINENO"; then :
17937 ac_cv_lib_svld_dlopen=yes
17938 else
17939 ac_cv_lib_svld_dlopen=no
17941 rm -f core conftest.err conftest.$ac_objext \
17942 conftest$ac_exeext conftest.$ac_ext
17943 LIBS=$ac_check_lib_save_LIBS
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17946 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17947 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17948 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17949 else
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17951 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17952 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17954 else
17955 ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-ldld $LIBS"
17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h. */
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17963 #ifdef __cplusplus
17964 extern "C"
17965 #endif
17966 char dld_link ();
17968 main ()
17970 return dld_link ();
17972 return 0;
17974 _ACEOF
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 ac_cv_lib_dld_dld_link=yes
17977 else
17978 ac_cv_lib_dld_dld_link=no
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 LIBS=$ac_check_lib_save_LIBS
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17985 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17986 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17987 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18006 esac
18008 if test "x$lt_cv_dlopen" != xno; then
18009 enable_dlopen=yes
18010 else
18011 enable_dlopen=no
18014 case $lt_cv_dlopen in
18015 dlopen)
18016 save_CPPFLAGS="$CPPFLAGS"
18017 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18019 save_LDFLAGS="$LDFLAGS"
18020 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18022 save_LIBS="$LIBS"
18023 LIBS="$lt_cv_dlopen_libs $LIBS"
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18026 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18027 if test "${lt_cv_dlopen_self+set}" = set; then :
18028 $as_echo_n "(cached) " >&6
18029 else
18030 if test "$cross_compiling" = yes; then :
18031 lt_cv_dlopen_self=cross
18032 else
18033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18034 lt_status=$lt_dlunknown
18035 cat > conftest.$ac_ext <<_LT_EOF
18036 #line 18036 "configure"
18037 #include "confdefs.h"
18039 #if HAVE_DLFCN_H
18040 #include <dlfcn.h>
18041 #endif
18043 #include <stdio.h>
18045 #ifdef RTLD_GLOBAL
18046 # define LT_DLGLOBAL RTLD_GLOBAL
18047 #else
18048 # ifdef DL_GLOBAL
18049 # define LT_DLGLOBAL DL_GLOBAL
18050 # else
18051 # define LT_DLGLOBAL 0
18052 # endif
18053 #endif
18055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18056 find out it does not work in some platform. */
18057 #ifndef LT_DLLAZY_OR_NOW
18058 # ifdef RTLD_LAZY
18059 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18060 # else
18061 # ifdef DL_LAZY
18062 # define LT_DLLAZY_OR_NOW DL_LAZY
18063 # else
18064 # ifdef RTLD_NOW
18065 # define LT_DLLAZY_OR_NOW RTLD_NOW
18066 # else
18067 # ifdef DL_NOW
18068 # define LT_DLLAZY_OR_NOW DL_NOW
18069 # else
18070 # define LT_DLLAZY_OR_NOW 0
18071 # endif
18072 # endif
18073 # endif
18074 # endif
18075 #endif
18077 /* When -fvisbility=hidden is used, assume the code has been annotated
18078 correspondingly for the symbols needed. */
18079 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18080 void fnord () __attribute__((visibility("default")));
18081 #endif
18083 void fnord () { int i=42; }
18084 int main ()
18086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18087 int status = $lt_dlunknown;
18089 if (self)
18091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18092 else
18094 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18095 else puts (dlerror ());
18097 /* dlclose (self); */
18099 else
18100 puts (dlerror ());
18102 return status;
18104 _LT_EOF
18105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18106 (eval $ac_link) 2>&5
18107 ac_status=$?
18108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18109 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18110 (./conftest; exit; ) >&5 2>/dev/null
18111 lt_status=$?
18112 case x$lt_status in
18113 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18114 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18115 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18116 esac
18117 else :
18118 # compilation failed
18119 lt_cv_dlopen_self=no
18122 rm -fr conftest*
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18127 $as_echo "$lt_cv_dlopen_self" >&6; }
18129 if test "x$lt_cv_dlopen_self" = xyes; then
18130 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18132 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18133 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18134 $as_echo_n "(cached) " >&6
18135 else
18136 if test "$cross_compiling" = yes; then :
18137 lt_cv_dlopen_self_static=cross
18138 else
18139 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18140 lt_status=$lt_dlunknown
18141 cat > conftest.$ac_ext <<_LT_EOF
18142 #line 18142 "configure"
18143 #include "confdefs.h"
18145 #if HAVE_DLFCN_H
18146 #include <dlfcn.h>
18147 #endif
18149 #include <stdio.h>
18151 #ifdef RTLD_GLOBAL
18152 # define LT_DLGLOBAL RTLD_GLOBAL
18153 #else
18154 # ifdef DL_GLOBAL
18155 # define LT_DLGLOBAL DL_GLOBAL
18156 # else
18157 # define LT_DLGLOBAL 0
18158 # endif
18159 #endif
18161 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18162 find out it does not work in some platform. */
18163 #ifndef LT_DLLAZY_OR_NOW
18164 # ifdef RTLD_LAZY
18165 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18166 # else
18167 # ifdef DL_LAZY
18168 # define LT_DLLAZY_OR_NOW DL_LAZY
18169 # else
18170 # ifdef RTLD_NOW
18171 # define LT_DLLAZY_OR_NOW RTLD_NOW
18172 # else
18173 # ifdef DL_NOW
18174 # define LT_DLLAZY_OR_NOW DL_NOW
18175 # else
18176 # define LT_DLLAZY_OR_NOW 0
18177 # endif
18178 # endif
18179 # endif
18180 # endif
18181 #endif
18183 /* When -fvisbility=hidden is used, assume the code has been annotated
18184 correspondingly for the symbols needed. */
18185 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18186 void fnord () __attribute__((visibility("default")));
18187 #endif
18189 void fnord () { int i=42; }
18190 int main ()
18192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18193 int status = $lt_dlunknown;
18195 if (self)
18197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18198 else
18200 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18201 else puts (dlerror ());
18203 /* dlclose (self); */
18205 else
18206 puts (dlerror ());
18208 return status;
18210 _LT_EOF
18211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18212 (eval $ac_link) 2>&5
18213 ac_status=$?
18214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18215 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18216 (./conftest; exit; ) >&5 2>/dev/null
18217 lt_status=$?
18218 case x$lt_status in
18219 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18220 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18221 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18222 esac
18223 else :
18224 # compilation failed
18225 lt_cv_dlopen_self_static=no
18228 rm -fr conftest*
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18233 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18236 CPPFLAGS="$save_CPPFLAGS"
18237 LDFLAGS="$save_LDFLAGS"
18238 LIBS="$save_LIBS"
18240 esac
18242 case $lt_cv_dlopen_self in
18243 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18244 *) enable_dlopen_self=unknown ;;
18245 esac
18247 case $lt_cv_dlopen_self_static in
18248 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18249 *) enable_dlopen_self_static=unknown ;;
18250 esac
18269 striplib=
18270 old_striplib=
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18272 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18273 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18274 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18275 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18277 $as_echo "yes" >&6; }
18278 else
18279 # FIXME - insert some real tests, host_os isn't really good enough
18280 case $host_os in
18281 darwin*)
18282 if test -n "$STRIP" ; then
18283 striplib="$STRIP -x"
18284 old_striplib="$STRIP -S"
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18286 $as_echo "yes" >&6; }
18287 else
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289 $as_echo "no" >&6; }
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18294 $as_echo "no" >&6; }
18296 esac
18310 # Report which library types will actually be built
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18312 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18314 $as_echo "$can_build_shared" >&6; }
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18317 $as_echo_n "checking whether to build shared libraries... " >&6; }
18318 test "$can_build_shared" = "no" && enable_shared=no
18320 # On AIX, shared libraries and static libraries use the same namespace, and
18321 # are all built from PIC.
18322 case $host_os in
18323 aix3*)
18324 test "$enable_shared" = yes && enable_static=no
18325 if test -n "$RANLIB"; then
18326 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18327 postinstall_cmds='$RANLIB $lib'
18331 aix[4-9]*)
18332 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18333 test "$enable_shared" = yes && enable_static=no
18336 esac
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18338 $as_echo "$enable_shared" >&6; }
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18341 $as_echo_n "checking whether to build static libraries... " >&6; }
18342 # Make sure either enable_shared or enable_static is yes.
18343 test "$enable_shared" = yes || enable_static=yes
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18345 $as_echo "$enable_static" >&6; }
18351 ac_ext=c
18352 ac_cpp='$CPP $CPPFLAGS'
18353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18357 CC="$lt_save_CC"
18359 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18360 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18361 (test "X$CXX" != "Xg++"))) ; then
18362 ac_ext=cpp
18363 ac_cpp='$CXXCPP $CPPFLAGS'
18364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18368 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18369 if test -z "$CXXCPP"; then
18370 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 # Double quotes because CXXCPP needs to be expanded
18374 for CXXCPP in "$CXX -E" "/lib/cpp"
18376 ac_preproc_ok=false
18377 for ac_cxx_preproc_warn_flag in '' yes
18379 # Use a header file that comes with gcc, so configuring glibc
18380 # with a fresh cross-compiler works.
18381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18382 # <limits.h> exists even on freestanding compilers.
18383 # On the NeXT, cc -E runs the code through the compiler's parser,
18384 # not just through cpp. "Syntax error" is here to catch this case.
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18387 #ifdef __STDC__
18388 # include <limits.h>
18389 #else
18390 # include <assert.h>
18391 #endif
18392 Syntax error
18393 _ACEOF
18394 if ac_fn_cxx_try_cpp "$LINENO"; then :
18396 else
18397 # Broken: fails on valid input.
18398 continue
18400 rm -f conftest.err conftest.$ac_ext
18402 # OK, works on sane cases. Now check whether nonexistent headers
18403 # can be detected and how.
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18406 #include <ac_nonexistent.h>
18407 _ACEOF
18408 if ac_fn_cxx_try_cpp "$LINENO"; then :
18409 # Broken: success on invalid input.
18410 continue
18411 else
18412 # Passes both tests.
18413 ac_preproc_ok=:
18414 break
18416 rm -f conftest.err conftest.$ac_ext
18418 done
18419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18420 rm -f conftest.err conftest.$ac_ext
18421 if $ac_preproc_ok; then :
18422 break
18425 done
18426 ac_cv_prog_CXXCPP=$CXXCPP
18429 CXXCPP=$ac_cv_prog_CXXCPP
18430 else
18431 ac_cv_prog_CXXCPP=$CXXCPP
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18434 $as_echo "$CXXCPP" >&6; }
18435 ac_preproc_ok=false
18436 for ac_cxx_preproc_warn_flag in '' yes
18438 # Use a header file that comes with gcc, so configuring glibc
18439 # with a fresh cross-compiler works.
18440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18441 # <limits.h> exists even on freestanding compilers.
18442 # On the NeXT, cc -E runs the code through the compiler's parser,
18443 # not just through cpp. "Syntax error" is here to catch this case.
18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18446 #ifdef __STDC__
18447 # include <limits.h>
18448 #else
18449 # include <assert.h>
18450 #endif
18451 Syntax error
18452 _ACEOF
18453 if ac_fn_cxx_try_cpp "$LINENO"; then :
18455 else
18456 # Broken: fails on valid input.
18457 continue
18459 rm -f conftest.err conftest.$ac_ext
18461 # OK, works on sane cases. Now check whether nonexistent headers
18462 # can be detected and how.
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h. */
18465 #include <ac_nonexistent.h>
18466 _ACEOF
18467 if ac_fn_cxx_try_cpp "$LINENO"; then :
18468 # Broken: success on invalid input.
18469 continue
18470 else
18471 # Passes both tests.
18472 ac_preproc_ok=:
18473 break
18475 rm -f conftest.err conftest.$ac_ext
18477 done
18478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18479 rm -f conftest.err conftest.$ac_ext
18480 if $ac_preproc_ok; then :
18482 else
18483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18485 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18486 See \`config.log' for more details." "$LINENO" 5; }
18489 ac_ext=c
18490 ac_cpp='$CPP $CPPFLAGS'
18491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18495 else
18496 _lt_caught_CXX_error=yes
18499 ac_ext=cpp
18500 ac_cpp='$CXXCPP $CPPFLAGS'
18501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18505 archive_cmds_need_lc_CXX=no
18506 allow_undefined_flag_CXX=
18507 always_export_symbols_CXX=no
18508 archive_expsym_cmds_CXX=
18509 compiler_needs_object_CXX=no
18510 export_dynamic_flag_spec_CXX=
18511 hardcode_direct_CXX=no
18512 hardcode_direct_absolute_CXX=no
18513 hardcode_libdir_flag_spec_CXX=
18514 hardcode_libdir_flag_spec_ld_CXX=
18515 hardcode_libdir_separator_CXX=
18516 hardcode_minus_L_CXX=no
18517 hardcode_shlibpath_var_CXX=unsupported
18518 hardcode_automatic_CXX=no
18519 inherit_rpath_CXX=no
18520 module_cmds_CXX=
18521 module_expsym_cmds_CXX=
18522 link_all_deplibs_CXX=unknown
18523 old_archive_cmds_CXX=$old_archive_cmds
18524 reload_flag_CXX=$reload_flag
18525 reload_cmds_CXX=$reload_cmds
18526 no_undefined_flag_CXX=
18527 whole_archive_flag_spec_CXX=
18528 enable_shared_with_static_runtimes_CXX=no
18530 # Source file extension for C++ test sources.
18531 ac_ext=cpp
18533 # Object file extension for compiled C++ test sources.
18534 objext=o
18535 objext_CXX=$objext
18537 # No sense in running all these tests if we already determined that
18538 # the CXX compiler isn't working. Some variables (like enable_shared)
18539 # are currently assumed to apply to all compilers on this platform,
18540 # and will be corrupted by setting them based on a non-working compiler.
18541 if test "$_lt_caught_CXX_error" != yes; then
18542 # Code to be used in simple compile tests
18543 lt_simple_compile_test_code="int some_variable = 0;"
18545 # Code to be used in simple link tests
18546 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18548 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18555 # If no C compiler was specified, use CC.
18556 LTCC=${LTCC-"$CC"}
18558 # If no C compiler flags were specified, use CFLAGS.
18559 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18561 # Allow CC to be a program name with arguments.
18562 compiler=$CC
18565 # save warnings/boilerplate of simple test code
18566 ac_outfile=conftest.$ac_objext
18567 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18569 _lt_compiler_boilerplate=`cat conftest.err`
18570 $RM conftest*
18572 ac_outfile=conftest.$ac_objext
18573 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18575 _lt_linker_boilerplate=`cat conftest.err`
18576 $RM -r conftest*
18579 # Allow CC to be a program name with arguments.
18580 lt_save_CC=$CC
18581 lt_save_LD=$LD
18582 lt_save_GCC=$GCC
18583 GCC=$GXX
18584 lt_save_with_gnu_ld=$with_gnu_ld
18585 lt_save_path_LD=$lt_cv_path_LD
18586 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18587 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18588 else
18589 $as_unset lt_cv_prog_gnu_ld
18591 if test -n "${lt_cv_path_LDCXX+set}"; then
18592 lt_cv_path_LD=$lt_cv_path_LDCXX
18593 else
18594 $as_unset lt_cv_path_LD
18596 test -z "${LDCXX+set}" || LD=$LDCXX
18597 CC=${CXX-"c++"}
18598 compiler=$CC
18599 compiler_CXX=$CC
18600 for cc_temp in $compiler""; do
18601 case $cc_temp in
18602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18604 \-*) ;;
18605 *) break;;
18606 esac
18607 done
18608 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18611 if test -n "$compiler"; then
18612 # We don't want -fno-exception when compiling C++ code, so set the
18613 # no_builtin_flag separately
18614 if test "$GXX" = yes; then
18615 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18616 else
18617 lt_prog_compiler_no_builtin_flag_CXX=
18620 if test "$GXX" = yes; then
18621 # Set up default GNU C++ configuration
18625 # Check whether --with-gnu-ld was given.
18626 if test "${with_gnu_ld+set}" = set; then :
18627 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18628 else
18629 with_gnu_ld=no
18632 ac_prog=ld
18633 if test "$GCC" = yes; then
18634 # Check if gcc -print-prog-name=ld gives a path.
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18636 $as_echo_n "checking for ld used by $CC... " >&6; }
18637 case $host in
18638 *-*-mingw*)
18639 # gcc leaves a trailing carriage return which upsets mingw
18640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18643 esac
18644 case $ac_prog in
18645 # Accept absolute paths.
18646 [\\/]* | ?:[\\/]*)
18647 re_direlt='/[^/][^/]*/\.\./'
18648 # Canonicalize the pathname of ld
18649 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18650 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18651 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18652 done
18653 test -z "$LD" && LD="$ac_prog"
18656 # If it fails, then pretend we aren't using GCC.
18657 ac_prog=ld
18660 # If it is relative, then search for the first ld in PATH.
18661 with_gnu_ld=unknown
18663 esac
18664 elif test "$with_gnu_ld" = yes; then
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18666 $as_echo_n "checking for GNU ld... " >&6; }
18667 else
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18669 $as_echo_n "checking for non-GNU ld... " >&6; }
18671 if test "${lt_cv_path_LD+set}" = set; then :
18672 $as_echo_n "(cached) " >&6
18673 else
18674 if test -z "$LD"; then
18675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18676 for ac_dir in $PATH; do
18677 IFS="$lt_save_ifs"
18678 test -z "$ac_dir" && ac_dir=.
18679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18680 lt_cv_path_LD="$ac_dir/$ac_prog"
18681 # Check to see if the program is GNU ld. I'd rather use --version,
18682 # but apparently some variants of GNU ld only accept -v.
18683 # Break only if it was the GNU/non-GNU ld that we prefer.
18684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18685 *GNU* | *'with BFD'*)
18686 test "$with_gnu_ld" != no && break
18689 test "$with_gnu_ld" != yes && break
18691 esac
18693 done
18694 IFS="$lt_save_ifs"
18695 else
18696 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18700 LD="$lt_cv_path_LD"
18701 if test -n "$LD"; then
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18703 $as_echo "$LD" >&6; }
18704 else
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18706 $as_echo "no" >&6; }
18708 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18710 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18711 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18712 $as_echo_n "(cached) " >&6
18713 else
18714 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18715 case `$LD -v 2>&1 </dev/null` in
18716 *GNU* | *'with BFD'*)
18717 lt_cv_prog_gnu_ld=yes
18720 lt_cv_prog_gnu_ld=no
18722 esac
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18725 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18726 with_gnu_ld=$lt_cv_prog_gnu_ld
18734 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18735 # archiving commands below assume that GNU ld is being used.
18736 if test "$with_gnu_ld" = yes; then
18737 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18738 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18740 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18741 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18743 # If archive_cmds runs LD, not CC, wlarc should be empty
18744 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18745 # investigate it a little bit more. (MM)
18746 wlarc='${wl}'
18748 # ancient GNU ld didn't support --whole-archive et. al.
18749 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18750 $GREP 'no-whole-archive' > /dev/null; then
18751 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18752 else
18753 whole_archive_flag_spec_CXX=
18755 else
18756 with_gnu_ld=no
18757 wlarc=
18759 # A generic and very simple default shared library creation
18760 # command for GNU C++ for the case where it uses the native
18761 # linker, instead of GNU ld. If possible, this setting should
18762 # overridden to take advantage of the native linker features on
18763 # the platform it is being used on.
18764 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18767 # Commands to make compiler produce verbose output that lists
18768 # what "hidden" libraries, object files and flags are used when
18769 # linking a shared library.
18770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18772 else
18773 GXX=no
18774 with_gnu_ld=no
18775 wlarc=
18778 # PORTME: fill in a description of your system's C++ link characteristics
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18780 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18781 ld_shlibs_CXX=yes
18782 case $host_os in
18783 aix3*)
18784 # FIXME: insert proper C++ library support
18785 ld_shlibs_CXX=no
18787 aix[4-9]*)
18788 if test "$host_cpu" = ia64; then
18789 # On IA64, the linker does run time linking by default, so we don't
18790 # have to do anything special.
18791 aix_use_runtimelinking=no
18792 exp_sym_flag='-Bexport'
18793 no_entry_flag=""
18794 else
18795 aix_use_runtimelinking=no
18797 # Test if we are trying to use run time linking or normal
18798 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18799 # need to do runtime linking.
18800 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18801 for ld_flag in $LDFLAGS; do
18802 case $ld_flag in
18803 *-brtl*)
18804 aix_use_runtimelinking=yes
18805 break
18807 esac
18808 done
18810 esac
18812 exp_sym_flag='-bexport'
18813 no_entry_flag='-bnoentry'
18816 # When large executables or shared objects are built, AIX ld can
18817 # have problems creating the table of contents. If linking a library
18818 # or program results in "error TOC overflow" add -mminimal-toc to
18819 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18820 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18822 archive_cmds_CXX=''
18823 hardcode_direct_CXX=yes
18824 hardcode_direct_absolute_CXX=yes
18825 hardcode_libdir_separator_CXX=':'
18826 link_all_deplibs_CXX=yes
18827 file_list_spec_CXX='${wl}-f,'
18829 if test "$GXX" = yes; then
18830 case $host_os in aix4.[012]|aix4.[012].*)
18831 # We only want to do this on AIX 4.2 and lower, the check
18832 # below for broken collect2 doesn't work under 4.3+
18833 collect2name=`${CC} -print-prog-name=collect2`
18834 if test -f "$collect2name" &&
18835 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18836 then
18837 # We have reworked collect2
18839 else
18840 # We have old collect2
18841 hardcode_direct_CXX=unsupported
18842 # It fails to find uninstalled libraries when the uninstalled
18843 # path is not listed in the libpath. Setting hardcode_minus_L
18844 # to unsupported forces relinking
18845 hardcode_minus_L_CXX=yes
18846 hardcode_libdir_flag_spec_CXX='-L$libdir'
18847 hardcode_libdir_separator_CXX=
18849 esac
18850 shared_flag='-shared'
18851 if test "$aix_use_runtimelinking" = yes; then
18852 shared_flag="$shared_flag "'${wl}-G'
18854 else
18855 # not using gcc
18856 if test "$host_cpu" = ia64; then
18857 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18858 # chokes on -Wl,-G. The following line is correct:
18859 shared_flag='-G'
18860 else
18861 if test "$aix_use_runtimelinking" = yes; then
18862 shared_flag='${wl}-G'
18863 else
18864 shared_flag='${wl}-bM:SRE'
18869 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18870 # It seems that -bexpall does not export symbols beginning with
18871 # underscore (_), so it is better to generate a list of symbols to
18872 # export.
18873 always_export_symbols_CXX=yes
18874 if test "$aix_use_runtimelinking" = yes; then
18875 # Warning - without using the other runtime loading flags (-brtl),
18876 # -berok will link without error, but may produce a broken library.
18877 allow_undefined_flag_CXX='-berok'
18878 # Determine the default libpath from the value encoded in an empty
18879 # executable.
18880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18881 /* end confdefs.h. */
18884 main ()
18888 return 0;
18890 _ACEOF
18891 if ac_fn_cxx_try_link "$LINENO"; then :
18893 lt_aix_libpath_sed='
18894 /Import File Strings/,/^$/ {
18895 /^0/ {
18896 s/^0 *\(.*\)$/\1/
18900 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18901 # Check for a 64-bit object if we didn't find anything.
18902 if test -z "$aix_libpath"; then
18903 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18906 rm -f core conftest.err conftest.$ac_objext \
18907 conftest$ac_exeext conftest.$ac_ext
18908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18910 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18912 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"
18913 else
18914 if test "$host_cpu" = ia64; then
18915 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18916 allow_undefined_flag_CXX="-z nodefs"
18917 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"
18918 else
18919 # Determine the default libpath from the value encoded in an
18920 # empty executable.
18921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18925 main ()
18929 return 0;
18931 _ACEOF
18932 if ac_fn_cxx_try_link "$LINENO"; then :
18934 lt_aix_libpath_sed='
18935 /Import File Strings/,/^$/ {
18936 /^0/ {
18937 s/^0 *\(.*\)$/\1/
18941 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18942 # Check for a 64-bit object if we didn't find anything.
18943 if test -z "$aix_libpath"; then
18944 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18947 rm -f core conftest.err conftest.$ac_objext \
18948 conftest$ac_exeext conftest.$ac_ext
18949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18951 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18952 # Warning - without using the other run time loading flags,
18953 # -berok will link without error, but may produce a broken library.
18954 no_undefined_flag_CXX=' ${wl}-bernotok'
18955 allow_undefined_flag_CXX=' ${wl}-berok'
18956 if test "$with_gnu_ld" = yes; then
18957 # We only use this code for GNU lds that support --whole-archive.
18958 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18959 else
18960 # Exported symbols can be pulled into shared objects from archives
18961 whole_archive_flag_spec_CXX='$convenience'
18963 archive_cmds_need_lc_CXX=yes
18964 # This is similar to how AIX traditionally builds its shared
18965 # libraries.
18966 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'
18971 beos*)
18972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18973 allow_undefined_flag_CXX=unsupported
18974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18975 # support --undefined. This deserves some investigation. FIXME
18976 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18977 else
18978 ld_shlibs_CXX=no
18982 chorus*)
18983 case $cc_basename in
18985 # FIXME: insert proper C++ library support
18986 ld_shlibs_CXX=no
18988 esac
18991 cygwin* | mingw* | pw32* | cegcc*)
18992 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18993 # as there is no search path for DLLs.
18994 hardcode_libdir_flag_spec_CXX='-L$libdir'
18995 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18996 allow_undefined_flag_CXX=unsupported
18997 always_export_symbols_CXX=no
18998 enable_shared_with_static_runtimes_CXX=yes
19000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19001 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'
19002 # If the export-symbols file already is a .def file (1st line
19003 # is EXPORTS), use it as is; otherwise, prepend...
19004 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19005 cp $export_symbols $output_objdir/$soname.def;
19006 else
19007 echo EXPORTS > $output_objdir/$soname.def;
19008 cat $export_symbols >> $output_objdir/$soname.def;
19010 $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'
19011 else
19012 ld_shlibs_CXX=no
19015 darwin* | rhapsody*)
19018 archive_cmds_need_lc_CXX=no
19019 hardcode_direct_CXX=no
19020 hardcode_automatic_CXX=yes
19021 hardcode_shlibpath_var_CXX=unsupported
19022 if test "$lt_cv_ld_force_load" = "yes"; then
19023 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\"`'
19024 else
19025 whole_archive_flag_spec_CXX=''
19027 link_all_deplibs_CXX=yes
19028 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19029 case $cc_basename in
19030 ifort*) _lt_dar_can_shared=yes ;;
19031 *) _lt_dar_can_shared=$GCC ;;
19032 esac
19033 if test "$_lt_dar_can_shared" = "yes"; then
19034 output_verbose_link_cmd=func_echo_all
19035 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}"
19036 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19037 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}"
19038 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}"
19039 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19040 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}"
19041 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}"
19044 else
19045 ld_shlibs_CXX=no
19050 dgux*)
19051 case $cc_basename in
19052 ec++*)
19053 # FIXME: insert proper C++ library support
19054 ld_shlibs_CXX=no
19056 ghcx*)
19057 # Green Hills C++ Compiler
19058 # FIXME: insert proper C++ library support
19059 ld_shlibs_CXX=no
19062 # FIXME: insert proper C++ library support
19063 ld_shlibs_CXX=no
19065 esac
19068 freebsd2.*)
19069 # C++ shared libraries reported to be fairly broken before
19070 # switch to ELF
19071 ld_shlibs_CXX=no
19074 freebsd-elf*)
19075 archive_cmds_need_lc_CXX=no
19078 freebsd* | dragonfly*)
19079 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19080 # conventions
19081 ld_shlibs_CXX=yes
19084 gnu*)
19087 haiku*)
19088 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19089 link_all_deplibs_CXX=yes
19092 hpux9*)
19093 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19094 hardcode_libdir_separator_CXX=:
19095 export_dynamic_flag_spec_CXX='${wl}-E'
19096 hardcode_direct_CXX=yes
19097 hardcode_minus_L_CXX=yes # Not in the search PATH,
19098 # but as the default
19099 # location of the library.
19101 case $cc_basename in
19102 CC*)
19103 # FIXME: insert proper C++ library support
19104 ld_shlibs_CXX=no
19106 aCC*)
19107 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'
19108 # Commands to make compiler produce verbose output that lists
19109 # what "hidden" libraries, object files and flags are used when
19110 # linking a shared library.
19112 # There doesn't appear to be a way to prevent this compiler from
19113 # explicitly linking system object files so we need to strip them
19114 # from the output so that they don't get included in the library
19115 # dependencies.
19116 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"'
19119 if test "$GXX" = yes; then
19120 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'
19121 else
19122 # FIXME: insert proper C++ library support
19123 ld_shlibs_CXX=no
19126 esac
19129 hpux10*|hpux11*)
19130 if test $with_gnu_ld = no; then
19131 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19132 hardcode_libdir_separator_CXX=:
19134 case $host_cpu in
19135 hppa*64*|ia64*)
19138 export_dynamic_flag_spec_CXX='${wl}-E'
19140 esac
19142 case $host_cpu in
19143 hppa*64*|ia64*)
19144 hardcode_direct_CXX=no
19145 hardcode_shlibpath_var_CXX=no
19148 hardcode_direct_CXX=yes
19149 hardcode_direct_absolute_CXX=yes
19150 hardcode_minus_L_CXX=yes # Not in the search PATH,
19151 # but as the default
19152 # location of the library.
19154 esac
19156 case $cc_basename in
19157 CC*)
19158 # FIXME: insert proper C++ library support
19159 ld_shlibs_CXX=no
19161 aCC*)
19162 case $host_cpu in
19163 hppa*64*)
19164 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19166 ia64*)
19167 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19170 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19172 esac
19173 # Commands to make compiler produce verbose output that lists
19174 # what "hidden" libraries, object files and flags are used when
19175 # linking a shared library.
19177 # There doesn't appear to be a way to prevent this compiler from
19178 # explicitly linking system object files so we need to strip them
19179 # from the output so that they don't get included in the library
19180 # dependencies.
19181 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"'
19184 if test "$GXX" = yes; then
19185 if test $with_gnu_ld = no; then
19186 case $host_cpu in
19187 hppa*64*)
19188 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19190 ia64*)
19191 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19194 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'
19196 esac
19198 else
19199 # FIXME: insert proper C++ library support
19200 ld_shlibs_CXX=no
19203 esac
19206 interix[3-9]*)
19207 hardcode_direct_CXX=no
19208 hardcode_shlibpath_var_CXX=no
19209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19210 export_dynamic_flag_spec_CXX='${wl}-E'
19211 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19212 # Instead, shared libraries are loaded at an image base (0x10000000 by
19213 # default) and relocated if they conflict, which is a slow very memory
19214 # consuming and fragmenting process. To avoid this, we pick a random,
19215 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19216 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19217 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'
19218 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'
19220 irix5* | irix6*)
19221 case $cc_basename in
19222 CC*)
19223 # SGI C++
19224 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'
19226 # Archives containing C++ object files must be created using
19227 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19228 # necessary to make sure instantiated templates are included
19229 # in the archive.
19230 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19233 if test "$GXX" = yes; then
19234 if test "$with_gnu_ld" = no; then
19235 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'
19236 else
19237 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'
19240 link_all_deplibs_CXX=yes
19242 esac
19243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19244 hardcode_libdir_separator_CXX=:
19245 inherit_rpath_CXX=yes
19248 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19249 case $cc_basename in
19250 KCC*)
19251 # Kuck and Associates, Inc. (KAI) C++ Compiler
19253 # KCC will only create a shared library if the output file
19254 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19255 # to its proper name (with version) after linking.
19256 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'
19257 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'
19258 # Commands to make compiler produce verbose output that lists
19259 # what "hidden" libraries, object files and flags are used when
19260 # linking a shared library.
19262 # There doesn't appear to be a way to prevent this compiler from
19263 # explicitly linking system object files so we need to strip them
19264 # from the output so that they don't get included in the library
19265 # dependencies.
19266 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"'
19268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19271 # Archives containing C++ object files must be created using
19272 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19273 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19275 icpc* | ecpc* )
19276 # Intel C++
19277 with_gnu_ld=yes
19278 # version 8.0 and above of icpc choke on multiply defined symbols
19279 # if we add $predep_objects and $postdep_objects, however 7.1 and
19280 # earlier do not add the objects themselves.
19281 case `$CC -V 2>&1` in
19282 *"Version 7."*)
19283 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19284 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'
19286 *) # Version 8.0 or newer
19287 tmp_idyn=
19288 case $host_cpu in
19289 ia64*) tmp_idyn=' -i_dynamic';;
19290 esac
19291 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19292 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'
19294 esac
19295 archive_cmds_need_lc_CXX=no
19296 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19297 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19298 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19300 pgCC* | pgcpp*)
19301 # Portland Group C++ compiler
19302 case `$CC -V` in
19303 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19304 prelink_cmds_CXX='tpldir=Template.dir~
19305 rm -rf $tpldir~
19306 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19307 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19308 old_archive_cmds_CXX='tpldir=Template.dir~
19309 rm -rf $tpldir~
19310 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19311 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19312 $RANLIB $oldlib'
19313 archive_cmds_CXX='tpldir=Template.dir~
19314 rm -rf $tpldir~
19315 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19316 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19317 archive_expsym_cmds_CXX='tpldir=Template.dir~
19318 rm -rf $tpldir~
19319 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19320 $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'
19322 *) # Version 6 and above use weak symbols
19323 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19324 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'
19326 esac
19328 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19329 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19330 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'
19332 cxx*)
19333 # Compaq C++
19334 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19335 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'
19337 runpath_var=LD_RUN_PATH
19338 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19339 hardcode_libdir_separator_CXX=:
19341 # Commands to make compiler produce verbose output that lists
19342 # what "hidden" libraries, object files and flags are used when
19343 # linking a shared library.
19345 # There doesn't appear to be a way to prevent this compiler from
19346 # explicitly linking system object files so we need to strip them
19347 # from the output so that they don't get included in the library
19348 # dependencies.
19349 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'
19351 xl* | mpixl* | bgxl*)
19352 # IBM XL 8.0 on PPC, with GNU ld
19353 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19355 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19356 if test "x$supports_anon_versioning" = xyes; then
19357 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19358 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19359 echo "local: *; };" >> $output_objdir/$libname.ver~
19360 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19364 case `$CC -V 2>&1 | sed 5q` in
19365 *Sun\ C*)
19366 # Sun C++ 5.9
19367 no_undefined_flag_CXX=' -zdefs'
19368 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19369 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'
19370 hardcode_libdir_flag_spec_CXX='-R$libdir'
19371 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'
19372 compiler_needs_object_CXX=yes
19374 # Not sure whether something based on
19375 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19376 # would be better.
19377 output_verbose_link_cmd='func_echo_all'
19379 # Archives containing C++ object files must be created using
19380 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19381 # necessary to make sure instantiated templates are included
19382 # in the archive.
19383 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19385 esac
19387 esac
19390 lynxos*)
19391 # FIXME: insert proper C++ library support
19392 ld_shlibs_CXX=no
19395 m88k*)
19396 # FIXME: insert proper C++ library support
19397 ld_shlibs_CXX=no
19400 mvs*)
19401 case $cc_basename in
19402 cxx*)
19403 # FIXME: insert proper C++ library support
19404 ld_shlibs_CXX=no
19407 # FIXME: insert proper C++ library support
19408 ld_shlibs_CXX=no
19410 esac
19413 netbsd*)
19414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19415 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19416 wlarc=
19417 hardcode_libdir_flag_spec_CXX='-R$libdir'
19418 hardcode_direct_CXX=yes
19419 hardcode_shlibpath_var_CXX=no
19421 # Workaround some broken pre-1.5 toolchains
19422 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19425 *nto* | *qnx*)
19426 ld_shlibs_CXX=yes
19429 openbsd2*)
19430 # C++ shared libraries are fairly broken
19431 ld_shlibs_CXX=no
19434 openbsd*)
19435 if test -f /usr/libexec/ld.so; then
19436 hardcode_direct_CXX=yes
19437 hardcode_shlibpath_var_CXX=no
19438 hardcode_direct_absolute_CXX=yes
19439 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19440 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19441 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19442 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19443 export_dynamic_flag_spec_CXX='${wl}-E'
19444 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19446 output_verbose_link_cmd=func_echo_all
19447 else
19448 ld_shlibs_CXX=no
19452 osf3* | osf4* | osf5*)
19453 case $cc_basename in
19454 KCC*)
19455 # Kuck and Associates, Inc. (KAI) C++ Compiler
19457 # KCC will only create a shared library if the output file
19458 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19459 # to its proper name (with version) after linking.
19460 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'
19462 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19463 hardcode_libdir_separator_CXX=:
19465 # Archives containing C++ object files must be created using
19466 # the KAI C++ compiler.
19467 case $host in
19468 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19469 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19470 esac
19472 RCC*)
19473 # Rational C++ 2.4.1
19474 # FIXME: insert proper C++ library support
19475 ld_shlibs_CXX=no
19477 cxx*)
19478 case $host in
19479 osf3*)
19480 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19481 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'
19482 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19485 allow_undefined_flag_CXX=' -expect_unresolved \*'
19486 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'
19487 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19488 echo "-hidden">> $lib.exp~
19489 $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~
19490 $RM $lib.exp'
19491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19493 esac
19495 hardcode_libdir_separator_CXX=:
19497 # Commands to make compiler produce verbose output that lists
19498 # what "hidden" libraries, object files and flags are used when
19499 # linking a shared library.
19501 # There doesn't appear to be a way to prevent this compiler from
19502 # explicitly linking system object files so we need to strip them
19503 # from the output so that they don't get included in the library
19504 # dependencies.
19505 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"'
19508 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19509 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19510 case $host in
19511 osf3*)
19512 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'
19515 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'
19517 esac
19519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19520 hardcode_libdir_separator_CXX=:
19522 # Commands to make compiler produce verbose output that lists
19523 # what "hidden" libraries, object files and flags are used when
19524 # linking a shared library.
19525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19527 else
19528 # FIXME: insert proper C++ library support
19529 ld_shlibs_CXX=no
19532 esac
19535 psos*)
19536 # FIXME: insert proper C++ library support
19537 ld_shlibs_CXX=no
19540 sunos4*)
19541 case $cc_basename in
19542 CC*)
19543 # Sun C++ 4.x
19544 # FIXME: insert proper C++ library support
19545 ld_shlibs_CXX=no
19547 lcc*)
19548 # Lucid
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19553 # FIXME: insert proper C++ library support
19554 ld_shlibs_CXX=no
19556 esac
19559 solaris*)
19560 case $cc_basename in
19561 CC*)
19562 # Sun C++ 4.2, 5.x and Centerline C++
19563 archive_cmds_need_lc_CXX=yes
19564 no_undefined_flag_CXX=' -zdefs'
19565 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19566 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19567 $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'
19569 hardcode_libdir_flag_spec_CXX='-R$libdir'
19570 hardcode_shlibpath_var_CXX=no
19571 case $host_os in
19572 solaris2.[0-5] | solaris2.[0-5].*) ;;
19574 # The compiler driver will combine and reorder linker options,
19575 # but understands `-z linker_flag'.
19576 # Supported since Solaris 2.6 (maybe 2.5.1?)
19577 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19579 esac
19580 link_all_deplibs_CXX=yes
19582 output_verbose_link_cmd='func_echo_all'
19584 # Archives containing C++ object files must be created using
19585 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19586 # necessary to make sure instantiated templates are included
19587 # in the archive.
19588 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19590 gcx*)
19591 # Green Hills C++ Compiler
19592 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19594 # The C++ compiler must be used to create the archive.
19595 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19598 # GNU C++ compiler with Solaris linker
19599 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19600 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19601 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19602 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19603 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19604 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19606 # Commands to make compiler produce verbose output that lists
19607 # what "hidden" libraries, object files and flags are used when
19608 # linking a shared library.
19609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19610 else
19611 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19612 # platform.
19613 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19614 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19615 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19617 # Commands to make compiler produce verbose output that lists
19618 # what "hidden" libraries, object files and flags are used when
19619 # linking a shared library.
19620 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19623 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19624 case $host_os in
19625 solaris2.[0-5] | solaris2.[0-5].*) ;;
19627 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19629 esac
19632 esac
19635 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19636 no_undefined_flag_CXX='${wl}-z,text'
19637 archive_cmds_need_lc_CXX=no
19638 hardcode_shlibpath_var_CXX=no
19639 runpath_var='LD_RUN_PATH'
19641 case $cc_basename in
19642 CC*)
19643 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19647 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19650 esac
19653 sysv5* | sco3.2v5* | sco5v6*)
19654 # Note: We can NOT use -z defs as we might desire, because we do not
19655 # link with -lc, and that would cause any symbols used from libc to
19656 # always be unresolved, which means just about no library would
19657 # ever link correctly. If we're not using GNU ld we use -z text
19658 # though, which does catch some bad symbols but isn't as heavy-handed
19659 # as -z defs.
19660 no_undefined_flag_CXX='${wl}-z,text'
19661 allow_undefined_flag_CXX='${wl}-z,nodefs'
19662 archive_cmds_need_lc_CXX=no
19663 hardcode_shlibpath_var_CXX=no
19664 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19665 hardcode_libdir_separator_CXX=':'
19666 link_all_deplibs_CXX=yes
19667 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19668 runpath_var='LD_RUN_PATH'
19670 case $cc_basename in
19671 CC*)
19672 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19673 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19674 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19675 '"$old_archive_cmds_CXX"
19676 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19677 '"$reload_cmds_CXX"
19680 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19681 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19683 esac
19686 tandem*)
19687 case $cc_basename in
19688 NCC*)
19689 # NonStop-UX NCC 3.20
19690 # FIXME: insert proper C++ library support
19691 ld_shlibs_CXX=no
19694 # FIXME: insert proper C++ library support
19695 ld_shlibs_CXX=no
19697 esac
19700 vxworks*)
19701 # FIXME: insert proper C++ library support
19702 ld_shlibs_CXX=no
19706 # FIXME: insert proper C++ library support
19707 ld_shlibs_CXX=no
19709 esac
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19712 $as_echo "$ld_shlibs_CXX" >&6; }
19713 test "$ld_shlibs_CXX" = no && can_build_shared=no
19715 GCC_CXX="$GXX"
19716 LD_CXX="$LD"
19718 ## CAVEAT EMPTOR:
19719 ## There is no encapsulation within the following macros, do not change
19720 ## the running order or otherwise move them around unless you know exactly
19721 ## what you are doing...
19722 # Dependencies to place before and after the object being linked:
19723 predep_objects_CXX=
19724 postdep_objects_CXX=
19725 predeps_CXX=
19726 postdeps_CXX=
19727 compiler_lib_search_path_CXX=
19729 cat > conftest.$ac_ext <<_LT_EOF
19730 class Foo
19732 public:
19733 Foo (void) { a = 0; }
19734 private:
19735 int a;
19737 _LT_EOF
19739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19740 (eval $ac_compile) 2>&5
19741 ac_status=$?
19742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19743 test $ac_status = 0; }; then
19744 # Parse the compiler output and extract the necessary
19745 # objects, libraries and library flags.
19747 # Sentinel used to keep track of whether or not we are before
19748 # the conftest object file.
19749 pre_test_object_deps_done=no
19751 for p in `eval "$output_verbose_link_cmd"`; do
19752 case $p in
19754 -L* | -R* | -l*)
19755 # Some compilers place space between "-{L,R}" and the path.
19756 # Remove the space.
19757 if test $p = "-L" ||
19758 test $p = "-R"; then
19759 prev=$p
19760 continue
19761 else
19762 prev=
19765 if test "$pre_test_object_deps_done" = no; then
19766 case $p in
19767 -L* | -R*)
19768 # Internal compiler library paths should come after those
19769 # provided the user. The postdeps already come after the
19770 # user supplied libs so there is no need to process them.
19771 if test -z "$compiler_lib_search_path_CXX"; then
19772 compiler_lib_search_path_CXX="${prev}${p}"
19773 else
19774 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19777 # The "-l" case would never come before the object being
19778 # linked, so don't bother handling this case.
19779 esac
19780 else
19781 if test -z "$postdeps_CXX"; then
19782 postdeps_CXX="${prev}${p}"
19783 else
19784 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19789 *.$objext)
19790 # This assumes that the test object file only shows up
19791 # once in the compiler output.
19792 if test "$p" = "conftest.$objext"; then
19793 pre_test_object_deps_done=yes
19794 continue
19797 if test "$pre_test_object_deps_done" = no; then
19798 if test -z "$predep_objects_CXX"; then
19799 predep_objects_CXX="$p"
19800 else
19801 predep_objects_CXX="$predep_objects_CXX $p"
19803 else
19804 if test -z "$postdep_objects_CXX"; then
19805 postdep_objects_CXX="$p"
19806 else
19807 postdep_objects_CXX="$postdep_objects_CXX $p"
19812 *) ;; # Ignore the rest.
19814 esac
19815 done
19817 # Clean up.
19818 rm -f a.out a.exe
19819 else
19820 echo "libtool.m4: error: problem compiling CXX test program"
19823 $RM -f confest.$objext
19825 # PORTME: override above test on systems where it is broken
19826 case $host_os in
19827 interix[3-9]*)
19828 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19829 # hack all around it, let's just trust "g++" to DTRT.
19830 predep_objects_CXX=
19831 postdep_objects_CXX=
19832 postdeps_CXX=
19835 linux*)
19836 case `$CC -V 2>&1 | sed 5q` in
19837 *Sun\ C*)
19838 # Sun C++ 5.9
19840 # The more standards-conforming stlport4 library is
19841 # incompatible with the Cstd library. Avoid specifying
19842 # it if it's in CXXFLAGS. Ignore libCrun as
19843 # -library=stlport4 depends on it.
19844 case " $CXX $CXXFLAGS " in
19845 *" -library=stlport4 "*)
19846 solaris_use_stlport4=yes
19848 esac
19850 if test "$solaris_use_stlport4" != yes; then
19851 postdeps_CXX='-library=Cstd -library=Crun'
19854 esac
19857 solaris*)
19858 case $cc_basename in
19859 CC*)
19860 # The more standards-conforming stlport4 library is
19861 # incompatible with the Cstd library. Avoid specifying
19862 # it if it's in CXXFLAGS. Ignore libCrun as
19863 # -library=stlport4 depends on it.
19864 case " $CXX $CXXFLAGS " in
19865 *" -library=stlport4 "*)
19866 solaris_use_stlport4=yes
19868 esac
19870 # Adding this requires a known-good setup of shared libraries for
19871 # Sun compiler versions before 5.6, else PIC objects from an old
19872 # archive will be linked into the output, leading to subtle bugs.
19873 if test "$solaris_use_stlport4" != yes; then
19874 postdeps_CXX='-library=Cstd -library=Crun'
19877 esac
19879 esac
19882 case " $postdeps_CXX " in
19883 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19884 esac
19885 compiler_lib_search_dirs_CXX=
19886 if test -n "${compiler_lib_search_path_CXX}"; then
19887 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19920 lt_prog_compiler_wl_CXX=
19921 lt_prog_compiler_pic_CXX=
19922 lt_prog_compiler_static_CXX=
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19925 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19927 # C++ specific cases for pic, static, wl, etc.
19928 if test "$GXX" = yes; then
19929 lt_prog_compiler_wl_CXX='-Wl,'
19930 lt_prog_compiler_static_CXX='-static'
19932 case $host_os in
19933 aix*)
19934 # All AIX code is PIC.
19935 if test "$host_cpu" = ia64; then
19936 # AIX 5 now supports IA64 processor
19937 lt_prog_compiler_static_CXX='-Bstatic'
19939 lt_prog_compiler_pic_CXX='-fPIC'
19942 amigaos*)
19943 case $host_cpu in
19944 powerpc)
19945 # see comment about AmigaOS4 .so support
19946 lt_prog_compiler_pic_CXX='-fPIC'
19948 m68k)
19949 # FIXME: we need at least 68020 code to build shared libraries, but
19950 # adding the `-m68020' flag to GCC prevents building anything better,
19951 # like `-m68040'.
19952 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19954 esac
19957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19958 # PIC is the default for these OSes.
19960 mingw* | cygwin* | os2* | pw32* | cegcc*)
19961 # This hack is so that the source file can tell whether it is being
19962 # built for inclusion in a dll (and should export symbols for example).
19963 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19964 # (--disable-auto-import) libraries
19965 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19967 darwin* | rhapsody*)
19968 # PIC is the default on this platform
19969 # Common symbols not allowed in MH_DYLIB files
19970 lt_prog_compiler_pic_CXX='-fno-common'
19972 *djgpp*)
19973 # DJGPP does not support shared libraries at all
19974 lt_prog_compiler_pic_CXX=
19976 haiku*)
19977 # PIC is the default for Haiku.
19978 # The "-static" flag exists, but is broken.
19979 lt_prog_compiler_static_CXX=
19981 interix[3-9]*)
19982 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19983 # Instead, we relocate shared libraries at runtime.
19985 sysv4*MP*)
19986 if test -d /usr/nec; then
19987 lt_prog_compiler_pic_CXX=-Kconform_pic
19990 hpux*)
19991 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19992 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19993 # sets the default TLS model and affects inlining.
19994 case $host_cpu in
19995 hppa*64*)
19998 lt_prog_compiler_pic_CXX='-fPIC'
20000 esac
20002 *qnx* | *nto*)
20003 # QNX uses GNU C++, but need to define -shared option too, otherwise
20004 # it will coredump.
20005 lt_prog_compiler_pic_CXX='-fPIC -shared'
20008 lt_prog_compiler_pic_CXX='-fPIC'
20010 esac
20011 else
20012 case $host_os in
20013 aix[4-9]*)
20014 # All AIX code is PIC.
20015 if test "$host_cpu" = ia64; then
20016 # AIX 5 now supports IA64 processor
20017 lt_prog_compiler_static_CXX='-Bstatic'
20018 else
20019 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20022 chorus*)
20023 case $cc_basename in
20024 cxch68*)
20025 # Green Hills C++ Compiler
20026 # _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"
20028 esac
20030 dgux*)
20031 case $cc_basename in
20032 ec++*)
20033 lt_prog_compiler_pic_CXX='-KPIC'
20035 ghcx*)
20036 # Green Hills C++ Compiler
20037 lt_prog_compiler_pic_CXX='-pic'
20041 esac
20043 freebsd* | dragonfly*)
20044 # FreeBSD uses GNU C++
20046 hpux9* | hpux10* | hpux11*)
20047 case $cc_basename in
20048 CC*)
20049 lt_prog_compiler_wl_CXX='-Wl,'
20050 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20051 if test "$host_cpu" != ia64; then
20052 lt_prog_compiler_pic_CXX='+Z'
20055 aCC*)
20056 lt_prog_compiler_wl_CXX='-Wl,'
20057 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20058 case $host_cpu in
20059 hppa*64*|ia64*)
20060 # +Z the default
20063 lt_prog_compiler_pic_CXX='+Z'
20065 esac
20069 esac
20071 interix*)
20072 # This is c89, which is MS Visual C++ (no shared libs)
20073 # Anyone wants to do a port?
20075 irix5* | irix6* | nonstopux*)
20076 case $cc_basename in
20077 CC*)
20078 lt_prog_compiler_wl_CXX='-Wl,'
20079 lt_prog_compiler_static_CXX='-non_shared'
20080 # CC pic flag -KPIC is the default.
20084 esac
20086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20087 case $cc_basename in
20088 KCC*)
20089 # KAI C++ Compiler
20090 lt_prog_compiler_wl_CXX='--backend -Wl,'
20091 lt_prog_compiler_pic_CXX='-fPIC'
20093 ecpc* )
20094 # old Intel C++ for x86_64 which still supported -KPIC.
20095 lt_prog_compiler_wl_CXX='-Wl,'
20096 lt_prog_compiler_pic_CXX='-KPIC'
20097 lt_prog_compiler_static_CXX='-static'
20099 icpc* )
20100 # Intel C++, used to be incompatible with GCC.
20101 # ICC 10 doesn't accept -KPIC any more.
20102 lt_prog_compiler_wl_CXX='-Wl,'
20103 lt_prog_compiler_pic_CXX='-fPIC'
20104 lt_prog_compiler_static_CXX='-static'
20106 pgCC* | pgcpp*)
20107 # Portland Group C++ compiler
20108 lt_prog_compiler_wl_CXX='-Wl,'
20109 lt_prog_compiler_pic_CXX='-fpic'
20110 lt_prog_compiler_static_CXX='-Bstatic'
20112 cxx*)
20113 # Compaq C++
20114 # Make sure the PIC flag is empty. It appears that all Alpha
20115 # Linux and Compaq Tru64 Unix objects are PIC.
20116 lt_prog_compiler_pic_CXX=
20117 lt_prog_compiler_static_CXX='-non_shared'
20119 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20120 # IBM XL 8.0, 9.0 on PPC and BlueGene
20121 lt_prog_compiler_wl_CXX='-Wl,'
20122 lt_prog_compiler_pic_CXX='-qpic'
20123 lt_prog_compiler_static_CXX='-qstaticlink'
20126 case `$CC -V 2>&1 | sed 5q` in
20127 *Sun\ C*)
20128 # Sun C++ 5.9
20129 lt_prog_compiler_pic_CXX='-KPIC'
20130 lt_prog_compiler_static_CXX='-Bstatic'
20131 lt_prog_compiler_wl_CXX='-Qoption ld '
20133 esac
20135 esac
20137 lynxos*)
20139 m88k*)
20141 mvs*)
20142 case $cc_basename in
20143 cxx*)
20144 lt_prog_compiler_pic_CXX='-W c,exportall'
20148 esac
20150 netbsd*)
20152 *qnx* | *nto*)
20153 # QNX uses GNU C++, but need to define -shared option too, otherwise
20154 # it will coredump.
20155 lt_prog_compiler_pic_CXX='-fPIC -shared'
20157 osf3* | osf4* | osf5*)
20158 case $cc_basename in
20159 KCC*)
20160 lt_prog_compiler_wl_CXX='--backend -Wl,'
20162 RCC*)
20163 # Rational C++ 2.4.1
20164 lt_prog_compiler_pic_CXX='-pic'
20166 cxx*)
20167 # Digital/Compaq C++
20168 lt_prog_compiler_wl_CXX='-Wl,'
20169 # Make sure the PIC flag is empty. It appears that all Alpha
20170 # Linux and Compaq Tru64 Unix objects are PIC.
20171 lt_prog_compiler_pic_CXX=
20172 lt_prog_compiler_static_CXX='-non_shared'
20176 esac
20178 psos*)
20180 solaris*)
20181 case $cc_basename in
20182 CC*)
20183 # Sun C++ 4.2, 5.x and Centerline C++
20184 lt_prog_compiler_pic_CXX='-KPIC'
20185 lt_prog_compiler_static_CXX='-Bstatic'
20186 lt_prog_compiler_wl_CXX='-Qoption ld '
20188 gcx*)
20189 # Green Hills C++ Compiler
20190 lt_prog_compiler_pic_CXX='-PIC'
20194 esac
20196 sunos4*)
20197 case $cc_basename in
20198 CC*)
20199 # Sun C++ 4.x
20200 lt_prog_compiler_pic_CXX='-pic'
20201 lt_prog_compiler_static_CXX='-Bstatic'
20203 lcc*)
20204 # Lucid
20205 lt_prog_compiler_pic_CXX='-pic'
20209 esac
20211 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20212 case $cc_basename in
20213 CC*)
20214 lt_prog_compiler_wl_CXX='-Wl,'
20215 lt_prog_compiler_pic_CXX='-KPIC'
20216 lt_prog_compiler_static_CXX='-Bstatic'
20218 esac
20220 tandem*)
20221 case $cc_basename in
20222 NCC*)
20223 # NonStop-UX NCC 3.20
20224 lt_prog_compiler_pic_CXX='-KPIC'
20228 esac
20230 vxworks*)
20233 lt_prog_compiler_can_build_shared_CXX=no
20235 esac
20238 case $host_os in
20239 # For platforms which do not support PIC, -DPIC is meaningless:
20240 *djgpp*)
20241 lt_prog_compiler_pic_CXX=
20244 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20246 esac
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20248 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20253 # Check to make sure the PIC flag actually works.
20255 if test -n "$lt_prog_compiler_pic_CXX"; then
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20257 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20258 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20259 $as_echo_n "(cached) " >&6
20260 else
20261 lt_cv_prog_compiler_pic_works_CXX=no
20262 ac_outfile=conftest.$ac_objext
20263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20264 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20265 # Insert the option either (1) after the last *FLAGS variable, or
20266 # (2) before a word containing "conftest.", or (3) at the end.
20267 # Note that $ac_compile itself does not contain backslashes and begins
20268 # with a dollar sign (not a hyphen), so the echo should work correctly.
20269 # The option is referenced via a variable to avoid confusing sed.
20270 lt_compile=`echo "$ac_compile" | $SED \
20271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20273 -e 's:$: $lt_compiler_flag:'`
20274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20275 (eval "$lt_compile" 2>conftest.err)
20276 ac_status=$?
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 if (exit $ac_status) && test -s "$ac_outfile"; then
20280 # The compiler can only warn and ignore the option if not recognized
20281 # So say no if there are warnings other than the usual output.
20282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20285 lt_cv_prog_compiler_pic_works_CXX=yes
20288 $RM conftest*
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20292 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20294 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20295 case $lt_prog_compiler_pic_CXX in
20296 "" | " "*) ;;
20297 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20298 esac
20299 else
20300 lt_prog_compiler_pic_CXX=
20301 lt_prog_compiler_can_build_shared_CXX=no
20309 # Check to make sure the static flag actually works.
20311 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20313 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20314 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20315 $as_echo_n "(cached) " >&6
20316 else
20317 lt_cv_prog_compiler_static_works_CXX=no
20318 save_LDFLAGS="$LDFLAGS"
20319 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20320 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20322 # The linker can only warn and ignore the option if not recognized
20323 # So say no if there are warnings
20324 if test -s conftest.err; then
20325 # Append any errors to the config.log.
20326 cat conftest.err 1>&5
20327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20329 if diff conftest.exp conftest.er2 >/dev/null; then
20330 lt_cv_prog_compiler_static_works_CXX=yes
20332 else
20333 lt_cv_prog_compiler_static_works_CXX=yes
20336 $RM -r conftest*
20337 LDFLAGS="$save_LDFLAGS"
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20341 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20343 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20345 else
20346 lt_prog_compiler_static_CXX=
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20353 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20354 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20355 $as_echo_n "(cached) " >&6
20356 else
20357 lt_cv_prog_compiler_c_o_CXX=no
20358 $RM -r conftest 2>/dev/null
20359 mkdir conftest
20360 cd conftest
20361 mkdir out
20362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20364 lt_compiler_flag="-o out/conftest2.$ac_objext"
20365 # Insert the option either (1) after the last *FLAGS variable, or
20366 # (2) before a word containing "conftest.", or (3) at the end.
20367 # Note that $ac_compile itself does not contain backslashes and begins
20368 # with a dollar sign (not a hyphen), so the echo should work correctly.
20369 lt_compile=`echo "$ac_compile" | $SED \
20370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20372 -e 's:$: $lt_compiler_flag:'`
20373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20374 (eval "$lt_compile" 2>out/conftest.err)
20375 ac_status=$?
20376 cat out/conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20379 then
20380 # The compiler can only warn and ignore the option if not recognized
20381 # So say no if there are warnings
20382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20385 lt_cv_prog_compiler_c_o_CXX=yes
20388 chmod u+w . 2>&5
20389 $RM conftest*
20390 # SGI C++ compiler will create directory out/ii_files/ for
20391 # template instantiation
20392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20393 $RM out/* && rmdir out
20394 cd ..
20395 $RM -r conftest
20396 $RM conftest*
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20400 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20405 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20406 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20407 $as_echo_n "(cached) " >&6
20408 else
20409 lt_cv_prog_compiler_c_o_CXX=no
20410 $RM -r conftest 2>/dev/null
20411 mkdir conftest
20412 cd conftest
20413 mkdir out
20414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20416 lt_compiler_flag="-o out/conftest2.$ac_objext"
20417 # Insert the option either (1) after the last *FLAGS variable, or
20418 # (2) before a word containing "conftest.", or (3) at the end.
20419 # Note that $ac_compile itself does not contain backslashes and begins
20420 # with a dollar sign (not a hyphen), so the echo should work correctly.
20421 lt_compile=`echo "$ac_compile" | $SED \
20422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20424 -e 's:$: $lt_compiler_flag:'`
20425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20426 (eval "$lt_compile" 2>out/conftest.err)
20427 ac_status=$?
20428 cat out/conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20431 then
20432 # The compiler can only warn and ignore the option if not recognized
20433 # So say no if there are warnings
20434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20437 lt_cv_prog_compiler_c_o_CXX=yes
20440 chmod u+w . 2>&5
20441 $RM conftest*
20442 # SGI C++ compiler will create directory out/ii_files/ for
20443 # template instantiation
20444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20445 $RM out/* && rmdir out
20446 cd ..
20447 $RM -r conftest
20448 $RM conftest*
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20452 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20457 hard_links="nottested"
20458 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20459 # do not overwrite the value of need_locks provided by the user
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20461 $as_echo_n "checking if we can lock with hard links... " >&6; }
20462 hard_links=yes
20463 $RM conftest*
20464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20465 touch conftest.a
20466 ln conftest.a conftest.b 2>&5 || hard_links=no
20467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20469 $as_echo "$hard_links" >&6; }
20470 if test "$hard_links" = no; then
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20472 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20473 need_locks=warn
20475 else
20476 need_locks=no
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20482 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20484 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20485 case $host_os in
20486 aix[4-9]*)
20487 # If we're using GNU nm, then we don't want the "-C" option.
20488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20489 # Also, AIX nm treats weak defined symbols like other global defined
20490 # symbols, whereas GNU nm marks them as "W".
20491 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20492 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'
20493 else
20494 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'
20497 pw32*)
20498 export_symbols_cmds_CXX="$ltdll_cmds"
20500 cygwin* | mingw* | cegcc*)
20501 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'
20504 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20506 esac
20507 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20510 $as_echo "$ld_shlibs_CXX" >&6; }
20511 test "$ld_shlibs_CXX" = no && can_build_shared=no
20513 with_gnu_ld_CXX=$with_gnu_ld
20521 # Do we need to explicitly link libc?
20523 case "x$archive_cmds_need_lc_CXX" in
20524 x|xyes)
20525 # Assume -lc should be added
20526 archive_cmds_need_lc_CXX=yes
20528 if test "$enable_shared" = yes && test "$GCC" = yes; then
20529 case $archive_cmds_CXX in
20530 *'~'*)
20531 # FIXME: we may have to deal with multi-command sequences.
20533 '$CC '*)
20534 # Test whether the compiler implicitly links with -lc since on some
20535 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20536 # to ld, don't add -lc before -lgcc.
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20538 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20539 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20540 $as_echo_n "(cached) " >&6
20541 else
20542 $RM conftest*
20543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20546 (eval $ac_compile) 2>&5
20547 ac_status=$?
20548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20549 test $ac_status = 0; } 2>conftest.err; then
20550 soname=conftest
20551 lib=conftest
20552 libobjs=conftest.$ac_objext
20553 deplibs=
20554 wl=$lt_prog_compiler_wl_CXX
20555 pic_flag=$lt_prog_compiler_pic_CXX
20556 compiler_flags=-v
20557 linker_flags=-v
20558 verstring=
20559 output_objdir=.
20560 libname=conftest
20561 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20562 allow_undefined_flag_CXX=
20563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20564 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20565 ac_status=$?
20566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20567 test $ac_status = 0; }
20568 then
20569 lt_cv_archive_cmds_need_lc_CXX=no
20570 else
20571 lt_cv_archive_cmds_need_lc_CXX=yes
20573 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20574 else
20575 cat conftest.err 1>&5
20577 $RM conftest*
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20581 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20582 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20584 esac
20587 esac
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20653 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20655 library_names_spec=
20656 libname_spec='lib$name'
20657 soname_spec=
20658 shrext_cmds=".so"
20659 postinstall_cmds=
20660 postuninstall_cmds=
20661 finish_cmds=
20662 finish_eval=
20663 shlibpath_var=
20664 shlibpath_overrides_runpath=unknown
20665 version_type=none
20666 dynamic_linker="$host_os ld.so"
20667 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20668 need_lib_prefix=unknown
20669 hardcode_into_libs=no
20671 # when you set need_version to no, make sure it does not cause -set_version
20672 # flags to be left without arguments
20673 need_version=unknown
20675 case $host_os in
20676 aix3*)
20677 version_type=linux
20678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20679 shlibpath_var=LIBPATH
20681 # AIX 3 has no versioning support, so we append a major version to the name.
20682 soname_spec='${libname}${release}${shared_ext}$major'
20685 aix[4-9]*)
20686 version_type=linux
20687 need_lib_prefix=no
20688 need_version=no
20689 hardcode_into_libs=yes
20690 if test "$host_cpu" = ia64; then
20691 # AIX 5 supports IA64
20692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20693 shlibpath_var=LD_LIBRARY_PATH
20694 else
20695 # With GCC up to 2.95.x, collect2 would create an import file
20696 # for dependence libraries. The import file would start with
20697 # the line `#! .'. This would cause the generated library to
20698 # depend on `.', always an invalid library. This was fixed in
20699 # development snapshots of GCC prior to 3.0.
20700 case $host_os in
20701 aix4 | aix4.[01] | aix4.[01].*)
20702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20703 echo ' yes '
20704 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20706 else
20707 can_build_shared=no
20710 esac
20711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20712 # soname into executable. Probably we can add versioning support to
20713 # collect2, so additional links can be useful in future.
20714 if test "$aix_use_runtimelinking" = yes; then
20715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20716 # instead of lib<name>.a to let people know that these are not
20717 # typical AIX shared libraries.
20718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20719 else
20720 # We preserve .a as extension for shared libraries through AIX4.2
20721 # and later when we are not doing run time linking.
20722 library_names_spec='${libname}${release}.a $libname.a'
20723 soname_spec='${libname}${release}${shared_ext}$major'
20725 shlibpath_var=LIBPATH
20729 amigaos*)
20730 case $host_cpu in
20731 powerpc)
20732 # Since July 2007 AmigaOS4 officially supports .so libraries.
20733 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20736 m68k)
20737 library_names_spec='$libname.ixlibrary $libname.a'
20738 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20739 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'
20741 esac
20744 beos*)
20745 library_names_spec='${libname}${shared_ext}'
20746 dynamic_linker="$host_os ld.so"
20747 shlibpath_var=LIBRARY_PATH
20750 bsdi[45]*)
20751 version_type=linux
20752 need_version=no
20753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20754 soname_spec='${libname}${release}${shared_ext}$major'
20755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20756 shlibpath_var=LD_LIBRARY_PATH
20757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20759 # the default ld.so.conf also contains /usr/contrib/lib and
20760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20761 # libtool to hard-code these into programs
20764 cygwin* | mingw* | pw32* | cegcc*)
20765 version_type=windows
20766 shrext_cmds=".dll"
20767 need_version=no
20768 need_lib_prefix=no
20770 case $GCC,$host_os in
20771 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20772 library_names_spec='$libname.dll.a'
20773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20774 postinstall_cmds='base_file=`basename \${file}`~
20775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20776 dldir=$destdir/`dirname \$dlpath`~
20777 test -d \$dldir || mkdir -p \$dldir~
20778 $install_prog $dir/$dlname \$dldir/$dlname~
20779 chmod a+x \$dldir/$dlname~
20780 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20781 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20783 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20784 dlpath=$dir/\$dldll~
20785 $RM \$dlpath'
20786 shlibpath_overrides_runpath=yes
20788 case $host_os in
20789 cygwin*)
20790 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20791 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20794 mingw* | cegcc*)
20795 # MinGW DLLs use traditional 'lib' prefix
20796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20798 pw32*)
20799 # pw32 DLLs use 'pw' prefix rather than 'lib'
20800 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20802 esac
20806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20808 esac
20809 dynamic_linker='Win32 ld.exe'
20810 # FIXME: first we should search . and the directory the executable is in
20811 shlibpath_var=PATH
20814 darwin* | rhapsody*)
20815 dynamic_linker="$host_os dyld"
20816 version_type=darwin
20817 need_lib_prefix=no
20818 need_version=no
20819 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20820 soname_spec='${libname}${release}${major}$shared_ext'
20821 shlibpath_overrides_runpath=yes
20822 shlibpath_var=DYLD_LIBRARY_PATH
20823 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20828 dgux*)
20829 version_type=linux
20830 need_lib_prefix=no
20831 need_version=no
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20833 soname_spec='${libname}${release}${shared_ext}$major'
20834 shlibpath_var=LD_LIBRARY_PATH
20837 freebsd* | dragonfly*)
20838 # DragonFly does not have aout. When/if they implement a new
20839 # versioning mechanism, adjust this.
20840 if test -x /usr/bin/objformat; then
20841 objformat=`/usr/bin/objformat`
20842 else
20843 case $host_os in
20844 freebsd[23].*) objformat=aout ;;
20845 *) objformat=elf ;;
20846 esac
20848 version_type=freebsd-$objformat
20849 case $version_type in
20850 freebsd-elf*)
20851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20852 need_version=no
20853 need_lib_prefix=no
20855 freebsd-*)
20856 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20857 need_version=yes
20859 esac
20860 shlibpath_var=LD_LIBRARY_PATH
20861 case $host_os in
20862 freebsd2.*)
20863 shlibpath_overrides_runpath=yes
20865 freebsd3.[01]* | freebsdelf3.[01]*)
20866 shlibpath_overrides_runpath=yes
20867 hardcode_into_libs=yes
20869 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20870 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20871 shlibpath_overrides_runpath=no
20872 hardcode_into_libs=yes
20874 *) # from 4.6 on, and DragonFly
20875 shlibpath_overrides_runpath=yes
20876 hardcode_into_libs=yes
20878 esac
20881 gnu*)
20882 version_type=linux
20883 need_lib_prefix=no
20884 need_version=no
20885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20886 soname_spec='${libname}${release}${shared_ext}$major'
20887 shlibpath_var=LD_LIBRARY_PATH
20888 hardcode_into_libs=yes
20891 haiku*)
20892 version_type=linux
20893 need_lib_prefix=no
20894 need_version=no
20895 dynamic_linker="$host_os runtime_loader"
20896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20897 soname_spec='${libname}${release}${shared_ext}$major'
20898 shlibpath_var=LIBRARY_PATH
20899 shlibpath_overrides_runpath=yes
20900 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20901 hardcode_into_libs=yes
20904 hpux9* | hpux10* | hpux11*)
20905 # Give a soname corresponding to the major version so that dld.sl refuses to
20906 # link against other versions.
20907 version_type=sunos
20908 need_lib_prefix=no
20909 need_version=no
20910 case $host_cpu in
20911 ia64*)
20912 shrext_cmds='.so'
20913 hardcode_into_libs=yes
20914 dynamic_linker="$host_os dld.so"
20915 shlibpath_var=LD_LIBRARY_PATH
20916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20918 soname_spec='${libname}${release}${shared_ext}$major'
20919 if test "X$HPUX_IA64_MODE" = X32; then
20920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20921 else
20922 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20926 hppa*64*)
20927 shrext_cmds='.sl'
20928 hardcode_into_libs=yes
20929 dynamic_linker="$host_os dld.sl"
20930 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20933 soname_spec='${libname}${release}${shared_ext}$major'
20934 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20938 shrext_cmds='.sl'
20939 dynamic_linker="$host_os dld.sl"
20940 shlibpath_var=SHLIB_PATH
20941 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 soname_spec='${libname}${release}${shared_ext}$major'
20945 esac
20946 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20947 postinstall_cmds='chmod 555 $lib'
20948 # or fails outright, so override atomically:
20949 install_override_mode=555
20952 interix[3-9]*)
20953 version_type=linux
20954 need_lib_prefix=no
20955 need_version=no
20956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20957 soname_spec='${libname}${release}${shared_ext}$major'
20958 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath=no
20961 hardcode_into_libs=yes
20964 irix5* | irix6* | nonstopux*)
20965 case $host_os in
20966 nonstopux*) version_type=nonstopux ;;
20968 if test "$lt_cv_prog_gnu_ld" = yes; then
20969 version_type=linux
20970 else
20971 version_type=irix
20972 fi ;;
20973 esac
20974 need_lib_prefix=no
20975 need_version=no
20976 soname_spec='${libname}${release}${shared_ext}$major'
20977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20978 case $host_os in
20979 irix5* | nonstopux*)
20980 libsuff= shlibsuff=
20983 case $LD in # libtool.m4 will add one of these switches to LD
20984 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20985 libsuff= shlibsuff= libmagic=32-bit;;
20986 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20987 libsuff=32 shlibsuff=N32 libmagic=N32;;
20988 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20989 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20990 *) libsuff= shlibsuff= libmagic=never-match;;
20991 esac
20993 esac
20994 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20995 shlibpath_overrides_runpath=no
20996 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20997 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20998 hardcode_into_libs=yes
21001 # No shared lib support for Linux oldld, aout, or coff.
21002 linux*oldld* | linux*aout* | linux*coff*)
21003 dynamic_linker=no
21006 # This must be Linux ELF.
21007 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21008 version_type=linux
21009 need_lib_prefix=no
21010 need_version=no
21011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21012 soname_spec='${libname}${release}${shared_ext}$major'
21013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21014 shlibpath_var=LD_LIBRARY_PATH
21015 shlibpath_overrides_runpath=no
21017 # Some binutils ld are patched to set DT_RUNPATH
21018 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21019 $as_echo_n "(cached) " >&6
21020 else
21021 lt_cv_shlibpath_overrides_runpath=no
21022 save_LDFLAGS=$LDFLAGS
21023 save_libdir=$libdir
21024 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21025 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21030 main ()
21034 return 0;
21036 _ACEOF
21037 if ac_fn_cxx_try_link "$LINENO"; then :
21038 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21039 lt_cv_shlibpath_overrides_runpath=yes
21042 rm -f core conftest.err conftest.$ac_objext \
21043 conftest$ac_exeext conftest.$ac_ext
21044 LDFLAGS=$save_LDFLAGS
21045 libdir=$save_libdir
21049 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21051 # This implies no fast_install, which is unacceptable.
21052 # Some rework will be needed to allow for fast_install
21053 # before this can be enabled.
21054 hardcode_into_libs=yes
21056 # Append ld.so.conf contents to the search path
21057 if test -f /etc/ld.so.conf; then
21058 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' ' '`
21059 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21062 # We used to test for /lib/ld.so.1 and disable shared libraries on
21063 # powerpc, because MkLinux only supported shared libraries with the
21064 # GNU dynamic linker. Since this was broken with cross compilers,
21065 # most powerpc-linux boxes support dynamic linking these days and
21066 # people can always --disable-shared, the test was removed, and we
21067 # assume the GNU/Linux dynamic linker is in use.
21068 dynamic_linker='GNU/Linux ld.so'
21071 netbsd*)
21072 version_type=sunos
21073 need_lib_prefix=no
21074 need_version=no
21075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21078 dynamic_linker='NetBSD (a.out) ld.so'
21079 else
21080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21081 soname_spec='${libname}${release}${shared_ext}$major'
21082 dynamic_linker='NetBSD ld.elf_so'
21084 shlibpath_var=LD_LIBRARY_PATH
21085 shlibpath_overrides_runpath=yes
21086 hardcode_into_libs=yes
21089 newsos6)
21090 version_type=linux
21091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21092 shlibpath_var=LD_LIBRARY_PATH
21093 shlibpath_overrides_runpath=yes
21096 *nto* | *qnx*)
21097 version_type=qnx
21098 need_lib_prefix=no
21099 need_version=no
21100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21101 soname_spec='${libname}${release}${shared_ext}$major'
21102 shlibpath_var=LD_LIBRARY_PATH
21103 shlibpath_overrides_runpath=no
21104 hardcode_into_libs=yes
21105 dynamic_linker='ldqnx.so'
21108 openbsd*)
21109 version_type=sunos
21110 sys_lib_dlsearch_path_spec="/usr/lib"
21111 need_lib_prefix=no
21112 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21113 case $host_os in
21114 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21115 *) need_version=no ;;
21116 esac
21117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21119 shlibpath_var=LD_LIBRARY_PATH
21120 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21121 case $host_os in
21122 openbsd2.[89] | openbsd2.[89].*)
21123 shlibpath_overrides_runpath=no
21126 shlibpath_overrides_runpath=yes
21128 esac
21129 else
21130 shlibpath_overrides_runpath=yes
21134 os2*)
21135 libname_spec='$name'
21136 shrext_cmds=".dll"
21137 need_lib_prefix=no
21138 library_names_spec='$libname${shared_ext} $libname.a'
21139 dynamic_linker='OS/2 ld.exe'
21140 shlibpath_var=LIBPATH
21143 osf3* | osf4* | osf5*)
21144 version_type=osf
21145 need_lib_prefix=no
21146 need_version=no
21147 soname_spec='${libname}${release}${shared_ext}$major'
21148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21149 shlibpath_var=LD_LIBRARY_PATH
21150 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21151 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21154 rdos*)
21155 dynamic_linker=no
21158 solaris*)
21159 version_type=linux
21160 need_lib_prefix=no
21161 need_version=no
21162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21163 soname_spec='${libname}${release}${shared_ext}$major'
21164 shlibpath_var=LD_LIBRARY_PATH
21165 shlibpath_overrides_runpath=yes
21166 hardcode_into_libs=yes
21167 # ldd complains unless libraries are executable
21168 postinstall_cmds='chmod +x $lib'
21171 sunos4*)
21172 version_type=sunos
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21174 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21175 shlibpath_var=LD_LIBRARY_PATH
21176 shlibpath_overrides_runpath=yes
21177 if test "$with_gnu_ld" = yes; then
21178 need_lib_prefix=no
21180 need_version=yes
21183 sysv4 | sysv4.3*)
21184 version_type=linux
21185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21186 soname_spec='${libname}${release}${shared_ext}$major'
21187 shlibpath_var=LD_LIBRARY_PATH
21188 case $host_vendor in
21189 sni)
21190 shlibpath_overrides_runpath=no
21191 need_lib_prefix=no
21192 runpath_var=LD_RUN_PATH
21194 siemens)
21195 need_lib_prefix=no
21197 motorola)
21198 need_lib_prefix=no
21199 need_version=no
21200 shlibpath_overrides_runpath=no
21201 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21203 esac
21206 sysv4*MP*)
21207 if test -d /usr/nec ;then
21208 version_type=linux
21209 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21210 soname_spec='$libname${shared_ext}.$major'
21211 shlibpath_var=LD_LIBRARY_PATH
21215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21216 version_type=freebsd-elf
21217 need_lib_prefix=no
21218 need_version=no
21219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21220 soname_spec='${libname}${release}${shared_ext}$major'
21221 shlibpath_var=LD_LIBRARY_PATH
21222 shlibpath_overrides_runpath=yes
21223 hardcode_into_libs=yes
21224 if test "$with_gnu_ld" = yes; then
21225 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21226 else
21227 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21228 case $host_os in
21229 sco3.2v5*)
21230 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21232 esac
21234 sys_lib_dlsearch_path_spec='/usr/lib'
21237 tpf*)
21238 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21239 version_type=linux
21240 need_lib_prefix=no
21241 need_version=no
21242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21243 shlibpath_var=LD_LIBRARY_PATH
21244 shlibpath_overrides_runpath=no
21245 hardcode_into_libs=yes
21248 uts4*)
21249 version_type=linux
21250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21251 soname_spec='${libname}${release}${shared_ext}$major'
21252 shlibpath_var=LD_LIBRARY_PATH
21256 dynamic_linker=no
21258 esac
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21260 $as_echo "$dynamic_linker" >&6; }
21261 test "$dynamic_linker" = no && can_build_shared=no
21263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21264 if test "$GCC" = yes; then
21265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21268 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21269 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21271 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21272 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21313 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21314 hardcode_action_CXX=
21315 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21316 test -n "$runpath_var_CXX" ||
21317 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21319 # We can hardcode non-existent directories.
21320 if test "$hardcode_direct_CXX" != no &&
21321 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21322 # have to relink, otherwise we might link with an installed library
21323 # when we should be linking with a yet-to-be-installed one
21324 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21325 test "$hardcode_minus_L_CXX" != no; then
21326 # Linking always hardcodes the temporary library directory.
21327 hardcode_action_CXX=relink
21328 else
21329 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21330 hardcode_action_CXX=immediate
21332 else
21333 # We cannot hardcode anything, or else we can only hardcode existing
21334 # directories.
21335 hardcode_action_CXX=unsupported
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21338 $as_echo "$hardcode_action_CXX" >&6; }
21340 if test "$hardcode_action_CXX" = relink ||
21341 test "$inherit_rpath_CXX" = yes; then
21342 # Fast installation is not supported
21343 enable_fast_install=no
21344 elif test "$shlibpath_overrides_runpath" = yes ||
21345 test "$enable_shared" = no; then
21346 # Fast installation is not necessary
21347 enable_fast_install=needless
21356 fi # test -n "$compiler"
21358 CC=$lt_save_CC
21359 LDCXX=$LD
21360 LD=$lt_save_LD
21361 GCC=$lt_save_GCC
21362 with_gnu_ld=$lt_save_with_gnu_ld
21363 lt_cv_path_LDCXX=$lt_cv_path_LD
21364 lt_cv_path_LD=$lt_save_path_LD
21365 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21366 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21367 fi # test "$_lt_caught_CXX_error" != yes
21369 ac_ext=c
21370 ac_cpp='$CPP $CPPFLAGS'
21371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21390 # Only expand once:
21396 # Identify the assembler which will work hand-in-glove with the newly
21397 # built GCC, so that we can examine its features. This is the assembler
21398 # which will be driven by the driver program.
21400 # If build != host, and we aren't building gas in-tree, we identify a
21401 # build->target assembler and hope that it will have the same features
21402 # as the host->target assembler we'll be using.
21403 gcc_cv_gas_major_version=
21404 gcc_cv_gas_minor_version=
21405 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21407 if test "${gcc_cv_as+set}" = set; then :
21409 else
21411 if test -x "$DEFAULT_ASSEMBLER"; then
21412 gcc_cv_as="$DEFAULT_ASSEMBLER"
21413 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21414 && test -f ../gas/Makefile \
21415 && test x$build = x$host; then
21416 gcc_cv_as=../gas/as-new$build_exeext
21417 elif test -x as$build_exeext; then
21418 # Build using assembler in the current directory.
21419 gcc_cv_as=./as$build_exeext
21420 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21421 gcc_cv_as="$AS_FOR_TARGET"
21422 else
21423 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21424 set dummy $AS_FOR_TARGET; ac_word=$2
21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21426 $as_echo_n "checking for $ac_word... " >&6; }
21427 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21428 $as_echo_n "(cached) " >&6
21429 else
21430 case $gcc_cv_as in
21431 [\\/]* | ?:[\\/]*)
21432 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21436 for as_dir in $PATH
21438 IFS=$as_save_IFS
21439 test -z "$as_dir" && as_dir=.
21440 for ac_exec_ext in '' $ac_executable_extensions; do
21441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21442 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21444 break 2
21446 done
21447 done
21448 IFS=$as_save_IFS
21451 esac
21453 gcc_cv_as=$ac_cv_path_gcc_cv_as
21454 if test -n "$gcc_cv_as"; then
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21456 $as_echo "$gcc_cv_as" >&6; }
21457 else
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21459 $as_echo "no" >&6; }
21466 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21468 case "$ORIGINAL_AS_FOR_TARGET" in
21469 ./as | ./as$build_exeext) ;;
21470 *) ac_config_files="$ac_config_files as:exec-tool.in"
21472 esac
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21475 $as_echo_n "checking what assembler to use... " >&6; }
21476 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21477 # Single tree build which includes gas. We want to prefer it
21478 # over whatever linker top-level may have detected, since
21479 # we'll use what we're building after installation anyway.
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21481 $as_echo "newly built gas" >&6; }
21482 in_tree_gas=yes
21483 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21484 for f in $gcc_cv_as_bfd_srcdir/configure \
21485 $gcc_cv_as_gas_srcdir/configure \
21486 $gcc_cv_as_gas_srcdir/configure.in \
21487 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21488 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21489 if test x$gcc_cv_gas_version != x; then
21490 break
21492 done
21493 case $gcc_cv_gas_version in
21494 VERSION=[0-9]*) ;;
21495 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21496 esac
21497 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21498 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21499 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21500 case $gcc_cv_gas_patch_version in
21501 "") gcc_cv_gas_patch_version="0" ;;
21502 esac
21503 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21504 + $gcc_cv_gas_minor_version \) \* 1000 \
21505 + $gcc_cv_gas_patch_version`
21507 in_tree_gas_is_elf=no
21508 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21509 || (grep 'obj_format = multi' ../gas/Makefile \
21510 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21511 then
21512 in_tree_gas_is_elf=yes
21514 else
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21516 $as_echo "$gcc_cv_as" >&6; }
21517 in_tree_gas=no
21520 default_ld=
21521 # Check whether --enable-ld was given.
21522 if test "${enable_ld+set}" = set; then :
21523 enableval=$enable_ld; case "${enableval}" in
21525 default_ld=ld.gold
21527 esac
21531 install_gold_as_default=no
21532 # Check whether --enable-gold was given.
21533 if test "${enable_gold+set}" = set; then :
21534 enableval=$enable_gold; case "${enableval}" in
21535 default)
21536 install_gold_as_default=yes
21538 yes)
21539 if test x${default_ld} != x; then
21540 install_gold_as_default=yes
21546 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21548 esac
21552 # Identify the linker which will work hand-in-glove with the newly
21553 # built GCC, so that we can examine its features. This is the linker
21554 # which will be driven by the driver program.
21556 # If build != host, and we aren't building gas in-tree, we identify a
21557 # build->target linker and hope that it will have the same features
21558 # as the host->target linker we'll be using.
21559 gcc_cv_gld_major_version=
21560 gcc_cv_gld_minor_version=
21561 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21562 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21563 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21565 if test "${gcc_cv_ld+set}" = set; then :
21567 else
21569 if test -x "$DEFAULT_LINKER"; then
21570 gcc_cv_ld="$DEFAULT_LINKER"
21571 elif test $install_gold_as_default = yes \
21572 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21573 && test -f ../gold/Makefile \
21574 && test x$build = x$host; then
21575 gcc_cv_ld=../gold/ld-new$build_exeext
21576 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21577 && test -f ../ld/Makefile \
21578 && test x$build = x$host; then
21579 gcc_cv_ld=../ld/ld-new$build_exeext
21580 elif test -x collect-ld$build_exeext; then
21581 # Build using linker in the current directory.
21582 gcc_cv_ld=./collect-ld$build_exeext
21583 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21584 gcc_cv_ld="$LD_FOR_TARGET"
21585 else
21586 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21587 set dummy $LD_FOR_TARGET; ac_word=$2
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21589 $as_echo_n "checking for $ac_word... " >&6; }
21590 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21591 $as_echo_n "(cached) " >&6
21592 else
21593 case $gcc_cv_ld in
21594 [\\/]* | ?:[\\/]*)
21595 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21599 for as_dir in $PATH
21601 IFS=$as_save_IFS
21602 test -z "$as_dir" && as_dir=.
21603 for ac_exec_ext in '' $ac_executable_extensions; do
21604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21605 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21607 break 2
21609 done
21610 done
21611 IFS=$as_save_IFS
21614 esac
21616 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21617 if test -n "$gcc_cv_ld"; then
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21619 $as_echo "$gcc_cv_ld" >&6; }
21620 else
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21622 $as_echo "no" >&6; }
21629 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21630 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21631 # if the PLUGIN_LD is set ld-new, just have it as ld
21632 # as that is the installed named.
21633 if test x$PLUGIN_LD_SUFFIX = xld-new \
21634 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21635 PLUGIN_LD_SUFFIX=ld
21638 # Check whether --with-plugin-ld was given.
21639 if test "${with_plugin_ld+set}" = set; then :
21640 withval=$with_plugin_ld; if test x"$withval" != x; then
21641 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21642 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21648 cat >>confdefs.h <<_ACEOF
21649 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21650 _ACEOF
21653 # Check to see if we are using gold instead of ld
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21655 $as_echo_n "checking whether we are using gold... " >&6; }
21656 ld_is_gold=no
21657 if test x$gcc_cv_ld != x; then
21658 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21659 | grep "GNU gold" > /dev/null; then
21660 ld_is_gold=yes
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21664 $as_echo "$ld_is_gold" >&6; }
21666 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21668 case "$ORIGINAL_LD_FOR_TARGET" in
21669 ./collect-ld | ./collect-ld$build_exeext) ;;
21670 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21672 esac
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21675 $as_echo_n "checking what linker to use... " >&6; }
21676 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21677 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21678 # Single tree build which includes ld. We want to prefer it
21679 # over whatever linker top-level may have detected, since
21680 # we'll use what we're building after installation anyway.
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21682 $as_echo "newly built ld" >&6; }
21683 in_tree_ld=yes
21684 in_tree_ld_is_elf=no
21685 if (grep 'EMUL = .*elf' ../ld/Makefile \
21686 || grep 'EMUL = .*linux' ../ld/Makefile \
21687 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21688 in_tree_ld_is_elf=yes
21689 elif test "$ld_is_gold" = yes; then
21690 in_tree_ld_is_elf=yes
21692 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21694 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21695 if test x$gcc_cv_gld_version != x; then
21696 break
21698 done
21699 case $gcc_cv_gld_version in
21700 VERSION=[0-9]*) ;;
21701 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21702 esac
21703 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21704 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21705 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21706 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21707 else
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21709 $as_echo "$gcc_cv_ld" >&6; }
21710 in_tree_ld=no
21711 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21712 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21713 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21719 # Figure out what nm we will be using.
21720 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21721 if test "${gcc_cv_nm+set}" = set; then :
21723 else
21725 if test -f $gcc_cv_binutils_srcdir/configure.in \
21726 && test -f ../binutils/Makefile \
21727 && test x$build = x$host; then
21728 gcc_cv_nm=../binutils/nm-new$build_exeext
21729 elif test -x nm$build_exeext; then
21730 gcc_cv_nm=./nm$build_exeext
21731 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21732 gcc_cv_nm="$NM_FOR_TARGET"
21733 else
21734 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21735 set dummy $NM_FOR_TARGET; ac_word=$2
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21737 $as_echo_n "checking for $ac_word... " >&6; }
21738 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21739 $as_echo_n "(cached) " >&6
21740 else
21741 case $gcc_cv_nm in
21742 [\\/]* | ?:[\\/]*)
21743 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21747 for as_dir in $PATH
21749 IFS=$as_save_IFS
21750 test -z "$as_dir" && as_dir=.
21751 for ac_exec_ext in '' $ac_executable_extensions; do
21752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21753 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21755 break 2
21757 done
21758 done
21759 IFS=$as_save_IFS
21762 esac
21764 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21765 if test -n "$gcc_cv_nm"; then
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21767 $as_echo "$gcc_cv_nm" >&6; }
21768 else
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21770 $as_echo "no" >&6; }
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21778 $as_echo_n "checking what nm to use... " >&6; }
21779 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21780 # Single tree build which includes binutils.
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21782 $as_echo "newly built nm" >&6; }
21783 in_tree_nm=yes
21784 else
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21786 $as_echo "$gcc_cv_nm" >&6; }
21787 in_tree_nm=no
21790 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21792 case "$ORIGINAL_NM_FOR_TARGET" in
21793 ./nm | ./nm$build_exeext) ;;
21794 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21796 esac
21799 # Figure out what objdump we will be using.
21800 if test "${gcc_cv_objdump+set}" = set; then :
21802 else
21804 if test -f $gcc_cv_binutils_srcdir/configure.in \
21805 && test -f ../binutils/Makefile \
21806 && test x$build = x$host; then
21807 # Single tree build which includes binutils.
21808 gcc_cv_objdump=../binutils/objdump$build_exeext
21809 elif test -x objdump$build_exeext; then
21810 gcc_cv_objdump=./objdump$build_exeext
21811 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21812 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21813 else
21814 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21815 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21817 $as_echo_n "checking for $ac_word... " >&6; }
21818 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21819 $as_echo_n "(cached) " >&6
21820 else
21821 case $gcc_cv_objdump in
21822 [\\/]* | ?:[\\/]*)
21823 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21829 IFS=$as_save_IFS
21830 test -z "$as_dir" && as_dir=.
21831 for ac_exec_ext in '' $ac_executable_extensions; do
21832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21833 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21835 break 2
21837 done
21838 done
21839 IFS=$as_save_IFS
21842 esac
21844 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21845 if test -n "$gcc_cv_objdump"; then
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21847 $as_echo "$gcc_cv_objdump" >&6; }
21848 else
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21858 $as_echo_n "checking what objdump to use... " >&6; }
21859 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21860 # Single tree build which includes binutils.
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21862 $as_echo "newly built objdump" >&6; }
21863 elif test x$gcc_cv_objdump = x; then
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21865 $as_echo "not found" >&6; }
21866 else
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21868 $as_echo "$gcc_cv_objdump" >&6; }
21871 # Figure out what readelf we will be using.
21872 if test "${gcc_cv_readelf+set}" = set; then :
21874 else
21876 if test -f $gcc_cv_binutils_srcdir/configure.in \
21877 && test -f ../binutils/Makefile \
21878 && test x$build = x$host; then
21879 # Single tree build which includes binutils.
21880 gcc_cv_readelf=../binutils/readelf$build_exeext
21881 elif test -x readelf$build_exeext; then
21882 gcc_cv_readelf=./readelf$build_exeext
21883 else
21884 # Extract the first word of "readelf", so it can be a program name with args.
21885 set dummy readelf; ac_word=$2
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21887 $as_echo_n "checking for $ac_word... " >&6; }
21888 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21889 $as_echo_n "(cached) " >&6
21890 else
21891 case $gcc_cv_readelf in
21892 [\\/]* | ?:[\\/]*)
21893 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21897 for as_dir in $PATH
21899 IFS=$as_save_IFS
21900 test -z "$as_dir" && as_dir=.
21901 for ac_exec_ext in '' $ac_executable_extensions; do
21902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21903 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21905 break 2
21907 done
21908 done
21909 IFS=$as_save_IFS
21912 esac
21914 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21915 if test -n "$gcc_cv_readelf"; then
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21917 $as_echo "$gcc_cv_readelf" >&6; }
21918 else
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21920 $as_echo "no" >&6; }
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21928 $as_echo_n "checking what readelf to use... " >&6; }
21929 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21930 # Single tree build which includes binutils.
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21932 $as_echo "newly built readelf" >&6; }
21933 elif test x$gcc_cv_readelf = x; then
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21935 $as_echo "not found" >&6; }
21936 else
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21938 $as_echo "$gcc_cv_readelf" >&6; }
21941 # Figure out what assembler alignment features are present.
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21943 $as_echo_n "checking assembler flags... " >&6; }
21944 if test "${gcc_cv_as_flags+set}" = set; then :
21945 $as_echo_n "(cached) " >&6
21946 else
21947 case "$target" in
21948 i[34567]86-*-linux*)
21949 gcc_cv_as_flags=--32
21951 x86_64-*-linux-gnux32)
21952 gcc_cv_as_flags=--x32
21954 x86_64-*-linux*)
21955 gcc_cv_as_flags=--64
21957 powerpc*-*-darwin*)
21958 gcc_cv_as_flags="-arch ppc"
21961 gcc_cv_as_flags=" "
21963 esac
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21966 $as_echo "$gcc_cv_as_flags" >&6; }
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21969 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21970 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21971 $as_echo_n "(cached) " >&6
21972 else
21973 gcc_cv_as_balign_and_p2align=no
21974 if test $in_tree_gas = yes; then
21975 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21976 then gcc_cv_as_balign_and_p2align=yes
21978 elif test x$gcc_cv_as != x; then
21979 $as_echo '.balign 4
21980 .p2align 2' > conftest.s
21981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983 (eval $ac_try) 2>&5
21984 ac_status=$?
21985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986 test $ac_status = 0; }; }
21987 then
21988 gcc_cv_as_balign_and_p2align=yes
21989 else
21990 echo "configure: failed program was" >&5
21991 cat conftest.s >&5
21993 rm -f conftest.o conftest.s
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21997 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21998 if test $gcc_cv_as_balign_and_p2align = yes; then
22000 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22005 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22006 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22007 $as_echo_n "(cached) " >&6
22008 else
22009 gcc_cv_as_max_skip_p2align=no
22010 if test $in_tree_gas = yes; then
22011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22012 then gcc_cv_as_max_skip_p2align=yes
22014 elif test x$gcc_cv_as != x; then
22015 $as_echo '.p2align 4,,7' > conftest.s
22016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22018 (eval $ac_try) 2>&5
22019 ac_status=$?
22020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22021 test $ac_status = 0; }; }
22022 then
22023 gcc_cv_as_max_skip_p2align=yes
22024 else
22025 echo "configure: failed program was" >&5
22026 cat conftest.s >&5
22028 rm -f conftest.o conftest.s
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22032 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22033 if test $gcc_cv_as_max_skip_p2align = yes; then
22035 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22040 $as_echo_n "checking assembler for .literal16... " >&6; }
22041 if test "${gcc_cv_as_literal16+set}" = set; then :
22042 $as_echo_n "(cached) " >&6
22043 else
22044 gcc_cv_as_literal16=no
22045 if test $in_tree_gas = yes; then
22046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22047 then gcc_cv_as_literal16=yes
22049 elif test x$gcc_cv_as != x; then
22050 $as_echo '.literal16' > conftest.s
22051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22053 (eval $ac_try) 2>&5
22054 ac_status=$?
22055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22056 test $ac_status = 0; }; }
22057 then
22058 gcc_cv_as_literal16=yes
22059 else
22060 echo "configure: failed program was" >&5
22061 cat conftest.s >&5
22063 rm -f conftest.o conftest.s
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22067 $as_echo "$gcc_cv_as_literal16" >&6; }
22068 if test $gcc_cv_as_literal16 = yes; then
22070 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22075 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22076 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22077 $as_echo_n "(cached) " >&6
22078 else
22079 gcc_cv_as_subsection_m1=no
22080 if test $in_tree_gas = yes; then
22081 if test $in_tree_gas_is_elf = yes \
22082 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22083 then gcc_cv_as_subsection_m1=yes
22085 elif test x$gcc_cv_as != x; then
22086 $as_echo 'conftest_label1: .word 0
22087 .subsection -1
22088 conftest_label2: .word 0
22089 .previous' > conftest.s
22090 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095 test $ac_status = 0; }; }
22096 then
22097 if test x$gcc_cv_nm != x; then
22098 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22099 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22100 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22101 then :
22102 else gcc_cv_as_subsection_m1=yes
22104 rm -f conftest.nm1 conftest.nm2
22106 else
22107 echo "configure: failed program was" >&5
22108 cat conftest.s >&5
22110 rm -f conftest.o conftest.s
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22114 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22115 if test $gcc_cv_as_subsection_m1 = yes; then
22117 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22122 $as_echo_n "checking assembler for .weak... " >&6; }
22123 if test "${gcc_cv_as_weak+set}" = set; then :
22124 $as_echo_n "(cached) " >&6
22125 else
22126 gcc_cv_as_weak=no
22127 if test $in_tree_gas = yes; then
22128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22129 then gcc_cv_as_weak=yes
22131 elif test x$gcc_cv_as != x; then
22132 $as_echo ' .weak foobar' > conftest.s
22133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22135 (eval $ac_try) 2>&5
22136 ac_status=$?
22137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22138 test $ac_status = 0; }; }
22139 then
22140 gcc_cv_as_weak=yes
22141 else
22142 echo "configure: failed program was" >&5
22143 cat conftest.s >&5
22145 rm -f conftest.o conftest.s
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22149 $as_echo "$gcc_cv_as_weak" >&6; }
22150 if test $gcc_cv_as_weak = yes; then
22152 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22157 $as_echo_n "checking assembler for .weakref... " >&6; }
22158 if test "${gcc_cv_as_weakref+set}" = set; then :
22159 $as_echo_n "(cached) " >&6
22160 else
22161 gcc_cv_as_weakref=no
22162 if test $in_tree_gas = yes; then
22163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22164 then gcc_cv_as_weakref=yes
22166 elif test x$gcc_cv_as != x; then
22167 $as_echo ' .weakref foobar, barfnot' > conftest.s
22168 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22173 test $ac_status = 0; }; }
22174 then
22175 gcc_cv_as_weakref=yes
22176 else
22177 echo "configure: failed program was" >&5
22178 cat conftest.s >&5
22180 rm -f conftest.o conftest.s
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22184 $as_echo "$gcc_cv_as_weakref" >&6; }
22185 if test $gcc_cv_as_weakref = yes; then
22187 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22192 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22193 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22194 $as_echo_n "(cached) " >&6
22195 else
22196 gcc_cv_as_nsubspa_comdat=no
22197 if test $in_tree_gas = yes; then
22198 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22199 then gcc_cv_as_nsubspa_comdat=yes
22201 elif test x$gcc_cv_as != x; then
22202 $as_echo ' .SPACE $TEXT$
22203 .NSUBSPA $CODE$,COMDAT' > conftest.s
22204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22206 (eval $ac_try) 2>&5
22207 ac_status=$?
22208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22209 test $ac_status = 0; }; }
22210 then
22211 gcc_cv_as_nsubspa_comdat=yes
22212 else
22213 echo "configure: failed program was" >&5
22214 cat conftest.s >&5
22216 rm -f conftest.o conftest.s
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22220 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22221 if test $gcc_cv_as_nsubspa_comdat = yes; then
22223 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22227 # .hidden needs to be supported in both the assembler and the linker,
22228 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22229 # This is irritatingly difficult to feature test for; we have to check the
22230 # date string after the version number. If we've got an in-tree
22231 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22232 # to be safe.
22233 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22235 $as_echo_n "checking assembler for .hidden... " >&6; }
22236 if test "${gcc_cv_as_hidden+set}" = set; then :
22237 $as_echo_n "(cached) " >&6
22238 else
22239 gcc_cv_as_hidden=no
22240 if test $in_tree_gas = yes; then
22241 if test $in_tree_gas_is_elf = yes \
22242 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22243 then gcc_cv_as_hidden=yes
22245 elif test x$gcc_cv_as != x; then
22246 $as_echo ' .hidden foobar
22247 foobar:' > conftest.s
22248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22250 (eval $ac_try) 2>&5
22251 ac_status=$?
22252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22253 test $ac_status = 0; }; }
22254 then
22255 gcc_cv_as_hidden=yes
22256 else
22257 echo "configure: failed program was" >&5
22258 cat conftest.s >&5
22260 rm -f conftest.o conftest.s
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22264 $as_echo "$gcc_cv_as_hidden" >&6; }
22266 case "${target}" in
22267 *-*-darwin*)
22268 # Darwin as has some visibility support, though with a different syntax.
22269 gcc_cv_as_hidden=yes
22271 esac
22273 # gnu_indirect_function type is an extension proposed at
22274 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22275 # selection of function implementation
22276 # Check whether --enable-gnu-indirect-function was given.
22277 if test "${enable_gnu_indirect_function+set}" = set; then :
22278 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22279 yes | no) ;;
22280 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22281 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22282 esac
22283 else
22284 enable_gnu_indirect_function="$default_gnu_indirect_function"
22288 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22290 cat >>confdefs.h <<_ACEOF
22291 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22292 _ACEOF
22296 if test $in_tree_ld != yes ; then
22297 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22298 if echo "$ld_ver" | grep GNU > /dev/null; then
22299 if test x"$ld_is_gold" = xyes; then
22300 # GNU gold --version looks like this:
22302 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22304 # We extract the binutils version which is more familiar and specific
22305 # than the gold version.
22306 ld_vers=`echo $ld_ver | sed -n \
22307 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22308 else
22309 # GNU ld --version looks like this:
22311 # GNU ld (GNU Binutils) 2.21.51.20110225
22312 ld_vers=`echo $ld_ver | sed -n \
22313 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22315 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'`
22316 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22317 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22318 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22319 else
22320 case "${target}" in
22321 *-*-solaris2*)
22322 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22323 # format.
22325 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22326 # /usr/ccs/bin/ld has been configured.
22327 ld_ver=`$gcc_cv_ld -V 2>&1`
22328 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22329 ld_vers=`echo $ld_ver | sed -n \
22330 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22331 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22332 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22335 esac
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22340 $as_echo_n "checking linker for .hidden support... " >&6; }
22341 if test "${gcc_cv_ld_hidden+set}" = set; then :
22342 $as_echo_n "(cached) " >&6
22343 else
22344 if test $in_tree_ld = yes ; then
22345 gcc_cv_ld_hidden=no
22346 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 \
22347 && test $in_tree_ld_is_elf = yes; then
22348 gcc_cv_ld_hidden=yes
22350 else
22351 gcc_cv_ld_hidden=yes
22352 if test x"$ld_is_gold" = xyes; then
22354 elif echo "$ld_ver" | grep GNU > /dev/null; then
22355 case "${target}" in
22356 mmix-knuth-mmixware)
22357 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22358 gcc_cv_ld_hidden=no
22360 esac
22361 if test 0"$ld_date" -lt 20020404; then
22362 if test -n "$ld_date"; then
22363 # If there was date string, but was earlier than 2002-04-04, fail
22364 gcc_cv_ld_hidden=no
22365 elif test -z "$ld_vers"; then
22366 # If there was no date string nor ld version number, something is wrong
22367 gcc_cv_ld_hidden=no
22368 else
22369 test -z "$ld_vers_patch" && ld_vers_patch=0
22370 if test "$ld_vers_major" -lt 2; then
22371 gcc_cv_ld_hidden=no
22372 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22373 gcc_cv_ld_hidden="no"
22374 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22375 gcc_cv_ld_hidden=no
22379 else
22380 case "${target}" in
22381 *-*-darwin*)
22382 # Darwin ld has some visibility support.
22383 gcc_cv_ld_hidden=yes
22385 hppa64*-*-hpux* | ia64*-*-hpux*)
22386 gcc_cv_ld_hidden=yes
22388 *-*-solaris2.1[0-9]*)
22389 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22390 # .symbolic was only added in Solaris 9 12/02.
22391 gcc_cv_ld_hidden=yes
22394 gcc_cv_ld_hidden=no
22396 esac
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22401 $as_echo "$gcc_cv_ld_hidden" >&6; }
22402 libgcc_visibility=no
22405 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22406 libgcc_visibility=yes
22408 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22413 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22414 gcc_cv_ld_ro_rw_mix=unknown
22415 if test $in_tree_ld = yes ; then
22416 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 \
22417 && test $in_tree_ld_is_elf = yes; then
22418 gcc_cv_ld_ro_rw_mix=read-write
22420 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22421 echo '.section myfoosect, "a"' > conftest1.s
22422 echo '.section myfoosect, "aw"' > conftest2.s
22423 echo '.byte 1' >> conftest2.s
22424 echo '.section myfoosect, "a"' > conftest3.s
22425 echo '.byte 0' >> conftest3.s
22426 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22427 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22428 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22429 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22430 conftest2.o conftest3.o > /dev/null 2>&1; then
22431 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22432 | sed -e '/myfoosect/!d' -e N`
22433 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22434 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22435 gcc_cv_ld_ro_rw_mix=read-only
22436 else
22437 gcc_cv_ld_ro_rw_mix=read-write
22441 rm -f conftest.* conftest[123].*
22443 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22445 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22449 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22451 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22452 case "${target}" in
22453 *-*-solaris2*)
22455 # Solaris 2 ld -V output looks like this for a regular version:
22457 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22459 # but test versions add stuff at the end:
22461 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22463 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22464 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22465 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22466 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22467 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22468 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22471 esac
22474 # Check whether --enable-initfini-array was given.
22475 if test "${enable_initfini_array+set}" = set; then :
22476 enableval=$enable_initfini_array;
22477 else
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22480 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22481 if test "${gcc_cv_initfini_array+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
22483 else
22484 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22485 case "${target}" in
22486 ia64-*)
22487 if test "$cross_compiling" = yes; then :
22488 gcc_cv_initfini_array=no
22489 else
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22493 #ifndef __ELF__
22494 #error Not an ELF OS
22495 #endif
22496 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22497 if it can be used. */
22498 static int x = -1;
22499 int main (void) { return x; }
22500 int foo (void) { x = 0; }
22501 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22503 _ACEOF
22504 if ac_fn_c_try_run "$LINENO"; then :
22505 gcc_cv_initfini_array=yes
22506 else
22507 gcc_cv_initfini_array=no
22509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22510 conftest.$ac_objext conftest.beam conftest.$ac_ext
22514 gcc_cv_initfini_array=no
22515 if test $in_tree_ld = yes ; then
22516 if test "$gcc_cv_gld_major_version" -eq 2 \
22517 -a "$gcc_cv_gld_minor_version" -ge 22 \
22518 -o "$gcc_cv_gld_major_version" -gt 2 \
22519 && test $in_tree_ld_is_elf = yes; then
22520 gcc_cv_initfini_array=yes
22522 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22523 cat > conftest.s <<\EOF
22524 .section .dtors,"a",%progbits
22525 .balign 4
22526 .byte 'A', 'A', 'A', 'A'
22527 .section .ctors,"a",%progbits
22528 .balign 4
22529 .byte 'B', 'B', 'B', 'B'
22530 .section .fini_array.65530,"a",%progbits
22531 .balign 4
22532 .byte 'C', 'C', 'C', 'C'
22533 .section .init_array.65530,"a",%progbits
22534 .balign 4
22535 .byte 'D', 'D', 'D', 'D'
22536 .section .dtors.64528,"a",%progbits
22537 .balign 4
22538 .byte 'E', 'E', 'E', 'E'
22539 .section .ctors.64528,"a",%progbits
22540 .balign 4
22541 .byte 'F', 'F', 'F', 'F'
22542 .section .fini_array.01005,"a",%progbits
22543 .balign 4
22544 .byte 'G', 'G', 'G', 'G'
22545 .section .init_array.01005,"a",%progbits
22546 .balign 4
22547 .byte 'H', 'H', 'H', 'H'
22548 .text
22549 .globl _start
22550 _start:
22552 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22553 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22554 && $gcc_cv_objdump -s -j .init_array conftest \
22555 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22556 && $gcc_cv_objdump -s -j .fini_array conftest \
22557 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22558 gcc_cv_initfini_array=yes
22560 rm -f conftest conftest.*
22562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563 /* end confdefs.h. */
22565 #ifndef __ELF__
22566 # error Not an ELF OS
22567 #endif
22568 #include <stdlib.h>
22569 #if defined __GLIBC_PREREQ
22570 # if __GLIBC_PREREQ (2, 4)
22571 # else
22572 # error GLIBC 2.4 required
22573 # endif
22574 #else
22575 # if defined __sun__ && defined __svr4__
22576 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22577 # else
22578 # error The C library not known to support .init_array/.fini_array
22579 # endif
22580 #endif
22582 _ACEOF
22583 if ac_fn_c_try_cpp "$LINENO"; then :
22585 else
22586 gcc_cv_initfini_array=no
22588 rm -f conftest.err conftest.$ac_ext;;
22589 esac
22590 else
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22592 $as_echo_n "checking cross compile... guessing... " >&6; }
22593 gcc_cv_initfini_array=no
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22597 $as_echo "$gcc_cv_initfini_array" >&6; }
22598 enable_initfini_array=$gcc_cv_initfini_array
22602 if test $enable_initfini_array = yes; then
22604 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22608 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22610 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22611 if test "${gcc_cv_as_leb128+set}" = set; then :
22612 $as_echo_n "(cached) " >&6
22613 else
22614 gcc_cv_as_leb128=no
22615 if test $in_tree_gas = yes; then
22616 if test $in_tree_gas_is_elf = yes \
22617 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22618 then gcc_cv_as_leb128=yes
22620 elif test x$gcc_cv_as != x; then
22621 $as_echo ' .data
22622 .uleb128 L2 - L1
22624 .uleb128 1280
22625 .sleb128 -1010
22626 L2:' > conftest.s
22627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22629 (eval $ac_try) 2>&5
22630 ac_status=$?
22631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22632 test $ac_status = 0; }; }
22633 then
22634 # GAS versions before 2.11 do not support uleb128,
22635 # despite appearing to.
22636 # ??? There exists an elf-specific test that will crash
22637 # the assembler. Perhaps it's better to figure out whether
22638 # arbitrary sections are supported and try the test.
22639 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22640 if echo "$as_ver" | grep GNU > /dev/null; then
22641 as_vers=`echo $as_ver | sed -n \
22642 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22643 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22644 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22645 if test $as_major -eq 2 && test $as_minor -lt 11
22646 then :
22647 else gcc_cv_as_leb128=yes
22650 else
22651 echo "configure: failed program was" >&5
22652 cat conftest.s >&5
22654 rm -f conftest.o conftest.s
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22658 $as_echo "$gcc_cv_as_leb128" >&6; }
22659 if test $gcc_cv_as_leb128 = yes; then
22661 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22665 # Check if we have assembler support for unwind directives.
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22667 $as_echo_n "checking assembler for cfi directives... " >&6; }
22668 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22669 $as_echo_n "(cached) " >&6
22670 else
22671 gcc_cv_as_cfi_directive=no
22672 if test x$gcc_cv_as != x; then
22673 $as_echo ' .text
22674 .cfi_startproc
22675 .cfi_offset 0, 0
22676 .cfi_same_value 1
22677 .cfi_def_cfa 1, 2
22678 .cfi_escape 1, 2, 3, 4, 5
22679 .cfi_endproc' > conftest.s
22680 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22685 test $ac_status = 0; }; }
22686 then
22687 case "$target" in
22688 *-*-solaris*)
22689 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22690 # read-only and read-write sections, we need to make sure that the
22691 # assembler used emits read-write .eh_frame sections.
22692 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22693 if test "x$gcc_cv_objdump" != x; then
22694 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22695 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22696 gcc_cv_as_cfi_directive=no
22697 else
22698 case "$target" in
22699 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22700 # On Solaris/x86, make sure that GCC and assembler agree on using
22701 # read-only .eh_frame sections for 64-bit.
22702 if test x$gas = xyes; then
22703 as_ix86_64_opt="--64"
22704 else
22705 as_ix86_64_opt="-xarch=amd64"
22707 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22708 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22709 sed -e /.eh_frame/!d -e N | \
22710 grep READONLY > /dev/null; then
22711 gcc_cv_as_cfi_directive=yes
22712 else
22713 gcc_cv_as_cfi_directive=no
22717 gcc_cv_as_cfi_directive=yes
22719 esac
22721 else
22722 # no objdump, err on the side of caution
22723 gcc_cv_as_cfi_directive=no
22725 else
22726 gcc_cv_as_cfi_directive=yes
22729 *-*-*)
22730 gcc_cv_as_cfi_directive=yes
22732 esac
22733 else
22734 echo "configure: failed program was" >&5
22735 cat conftest.s >&5
22737 rm -f conftest.o conftest.s
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22741 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22743 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22745 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22746 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22747 $as_echo_n "(cached) " >&6
22748 else
22749 gcc_cv_as_cfi_advance_working=no
22750 if test x$gcc_cv_as != x; then
22751 $as_echo ' .text
22752 .cfi_startproc
22753 .cfi_adjust_cfa_offset 64
22754 .skip 75040, 0
22755 .cfi_adjust_cfa_offset 128
22756 .cfi_endproc' > conftest.s
22757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }
22763 then
22765 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22766 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22767 gcc_cv_as_cfi_advance_working=yes
22770 else
22771 echo "configure: failed program was" >&5
22772 cat conftest.s >&5
22774 rm -f conftest.o conftest.s
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22778 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22780 else
22781 # no objdump, err on the side of caution
22782 gcc_cv_as_cfi_advance_working=no
22786 cat >>confdefs.h <<_ACEOF
22787 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22788 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22789 _ACEOF
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22794 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22795 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22796 $as_echo_n "(cached) " >&6
22797 else
22798 gcc_cv_as_cfi_personality_directive=no
22799 if test x$gcc_cv_as != x; then
22800 $as_echo ' .text
22801 .cfi_startproc
22802 .cfi_personality 0, symbol
22803 .cfi_endproc' > conftest.s
22804 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22806 (eval $ac_try) 2>&5
22807 ac_status=$?
22808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22809 test $ac_status = 0; }; }
22810 then
22811 gcc_cv_as_cfi_personality_directive=yes
22812 else
22813 echo "configure: failed program was" >&5
22814 cat conftest.s >&5
22816 rm -f conftest.o conftest.s
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22820 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22823 cat >>confdefs.h <<_ACEOF
22824 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22825 then echo 1; else echo 0; fi`
22826 _ACEOF
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22830 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22831 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22832 $as_echo_n "(cached) " >&6
22833 else
22834 gcc_cv_as_cfi_sections_directive=no
22835 if test x$gcc_cv_as != x; then
22836 $as_echo ' .text
22837 .cfi_sections .debug_frame, .eh_frame
22838 .cfi_startproc
22839 .cfi_endproc' > conftest.s
22840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22845 test $ac_status = 0; }; }
22846 then
22847 case $target_os in
22848 win32 | pe | cygwin* | mingw32* | uwin*)
22849 # Need to check that we generated the correct relocation for the
22850 # .debug_frame section. This was fixed for binutils 2.21.
22851 gcc_cv_as_cfi_sections_directive=no
22852 if test "x$gcc_cv_objdump" != x; then
22853 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22854 grep secrel > /dev/null; then
22855 gcc_cv_as_cfi_sections_directive=yes
22860 gcc_cv_as_cfi_sections_directive=yes
22862 esac
22863 else
22864 echo "configure: failed program was" >&5
22865 cat conftest.s >&5
22867 rm -f conftest.o conftest.s
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22871 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22875 cat >>confdefs.h <<_ACEOF
22876 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22877 then echo 1; else echo 0; fi`
22878 _ACEOF
22881 # GAS versions up to and including 2.11.0 may mis-optimize
22882 # .eh_frame data.
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22884 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22885 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22886 $as_echo_n "(cached) " >&6
22887 else
22888 gcc_cv_as_eh_frame=no
22889 if test $in_tree_gas = yes; then
22890 if test $in_tree_gas_is_elf = yes \
22891 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22892 then gcc_cv_as_eh_frame=yes
22894 elif test x$gcc_cv_as != x; then
22895 $as_echo ' .text
22896 .LFB1:
22897 .4byte 0
22898 .L1:
22899 .4byte 0
22900 .LFE1:
22901 .section .eh_frame,"aw",@progbits
22902 __FRAME_BEGIN__:
22903 .4byte .LECIE1-.LSCIE1
22904 .LSCIE1:
22905 .4byte 0x0
22906 .byte 0x1
22907 .ascii "z\0"
22908 .byte 0x1
22909 .byte 0x78
22910 .byte 0x1a
22911 .byte 0x0
22912 .byte 0x4
22913 .4byte 1
22914 .p2align 1
22915 .LECIE1:
22916 .LSFDE1:
22917 .4byte .LEFDE1-.LASFDE1
22918 .LASFDE1:
22919 .4byte .LASFDE1-__FRAME_BEGIN__
22920 .4byte .LFB1
22921 .4byte .LFE1-.LFB1
22922 .byte 0x4
22923 .4byte .LFE1-.LFB1
22924 .byte 0x4
22925 .4byte .L1-.LFB1
22926 .LEFDE1:' > conftest.s
22927 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; }
22933 then
22934 cat > conftest.lit <<EOF
22935 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22936 0010 01000000 12000000 18000000 00000000 ................
22937 0020 08000000 04080000 0044 .........D
22939 cat > conftest.big <<EOF
22940 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22941 0010 00000001 00000012 00000018 00000000 ................
22942 0020 00000008 04000000 0844 .........D
22944 # If the assembler didn't choke, and we can objdump,
22945 # and we got the correct data, then succeed.
22946 # The text in the here-document typically retains its unix-style line
22947 # endings, while the output of objdump will use host line endings.
22948 # Therefore, use diff -b for the comparisons.
22949 if test x$gcc_cv_objdump != x \
22950 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22951 | tail -3 > conftest.got \
22952 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22953 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22954 then
22955 gcc_cv_as_eh_frame=yes
22956 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22958 (eval $ac_try) 2>&5
22959 ac_status=$?
22960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22961 test $ac_status = 0; }; }; then
22962 gcc_cv_as_eh_frame=buggy
22963 else
22964 # Uh oh, what do we do now?
22965 gcc_cv_as_eh_frame=no
22967 else
22968 echo "configure: failed program was" >&5
22969 cat conftest.s >&5
22971 rm -f conftest.o conftest.s
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22975 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22978 if test $gcc_cv_as_eh_frame = buggy; then
22980 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22985 $as_echo_n "checking assembler for section merging support... " >&6; }
22986 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22987 $as_echo_n "(cached) " >&6
22988 else
22989 gcc_cv_as_shf_merge=no
22990 if test $in_tree_gas = yes; then
22991 if test $in_tree_gas_is_elf = yes \
22992 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22993 then gcc_cv_as_shf_merge=yes
22995 elif test x$gcc_cv_as != x; then
22996 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22999 (eval $ac_try) 2>&5
23000 ac_status=$?
23001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23002 test $ac_status = 0; }; }
23003 then
23004 gcc_cv_as_shf_merge=yes
23005 else
23006 echo "configure: failed program was" >&5
23007 cat conftest.s >&5
23009 rm -f conftest.o conftest.s
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23013 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23015 if test $gcc_cv_as_shf_merge = no; then
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23017 $as_echo_n "checking assembler for section merging support... " >&6; }
23018 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23019 $as_echo_n "(cached) " >&6
23020 else
23021 gcc_cv_as_shf_merge=no
23022 if test $in_tree_gas = yes; then
23023 if test $in_tree_gas_is_elf = yes \
23024 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23025 then gcc_cv_as_shf_merge=yes
23027 elif test x$gcc_cv_as != x; then
23028 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23029 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23031 (eval $ac_try) 2>&5
23032 ac_status=$?
23033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23034 test $ac_status = 0; }; }
23035 then
23036 gcc_cv_as_shf_merge=yes
23037 else
23038 echo "configure: failed program was" >&5
23039 cat conftest.s >&5
23041 rm -f conftest.o conftest.s
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23045 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23049 cat >>confdefs.h <<_ACEOF
23050 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23051 _ACEOF
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23055 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23056 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23057 $as_echo_n "(cached) " >&6
23058 else
23059 gcc_cv_as_comdat_group=no
23060 if test $in_tree_gas = yes; then
23061 if test $in_tree_gas_is_elf = yes \
23062 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23063 then gcc_cv_as_comdat_group=yes
23065 elif test x$gcc_cv_as != x; then
23066 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23069 (eval $ac_try) 2>&5
23070 ac_status=$?
23071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23072 test $ac_status = 0; }; }
23073 then
23074 gcc_cv_as_comdat_group=yes
23075 else
23076 echo "configure: failed program was" >&5
23077 cat conftest.s >&5
23079 rm -f conftest.o conftest.s
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23083 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23085 if test $gcc_cv_as_comdat_group = yes; then
23086 gcc_cv_as_comdat_group_percent=no
23087 gcc_cv_as_comdat_group_group=no
23088 else
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23090 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23091 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23092 $as_echo_n "(cached) " >&6
23093 else
23094 gcc_cv_as_comdat_group_percent=no
23095 if test $in_tree_gas = yes; then
23096 if test $in_tree_gas_is_elf = yes \
23097 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23098 then gcc_cv_as_comdat_group_percent=yes
23100 elif test x$gcc_cv_as != x; then
23101 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23104 (eval $ac_try) 2>&5
23105 ac_status=$?
23106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23107 test $ac_status = 0; }; }
23108 then
23109 gcc_cv_as_comdat_group_percent=yes
23110 else
23111 echo "configure: failed program was" >&5
23112 cat conftest.s >&5
23114 rm -f conftest.o conftest.s
23117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23118 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23120 if test $gcc_cv_as_comdat_group_percent = yes; then
23121 gcc_cv_as_comdat_group_group=no
23122 else
23123 case "${target}" in
23124 # Sun as uses a completely different syntax.
23125 *-*-solaris2*)
23126 case "${target}" in
23127 sparc*-*-solaris2*)
23128 conftest_s='
23129 .group foo,".text%foo",#comdat
23130 .section ".text%foo", #alloc,#execinstr,#progbits
23131 .globl foo
23132 foo:
23135 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23136 conftest_s='
23137 .group foo,.text%foo,#comdat
23138 .section .text%foo, "ax", @progbits
23139 .globl foo
23140 foo:
23143 esac
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23145 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23146 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23147 $as_echo_n "(cached) " >&6
23148 else
23149 gcc_cv_as_comdat_group_group=no
23150 if test x$gcc_cv_as != x; then
23151 $as_echo "$conftest_s" > conftest.s
23152 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23154 (eval $ac_try) 2>&5
23155 ac_status=$?
23156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23157 test $ac_status = 0; }; }
23158 then
23159 gcc_cv_as_comdat_group_group=yes
23160 else
23161 echo "configure: failed program was" >&5
23162 cat conftest.s >&5
23164 rm -f conftest.o conftest.s
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23168 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23171 esac
23172 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23173 gcc_cv_as_comdat_group_group=no
23177 if test x"$ld_is_gold" = xyes; then
23178 comdat_group=yes
23179 elif test $in_tree_ld = yes ; then
23180 comdat_group=no
23181 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 \
23182 && test $in_tree_ld_is_elf = yes; then
23183 comdat_group=yes
23185 elif echo "$ld_ver" | grep GNU > /dev/null; then
23186 comdat_group=yes
23187 if test 0"$ld_date" -lt 20050308; then
23188 if test -n "$ld_date"; then
23189 # If there was date string, but was earlier than 2005-03-08, fail
23190 comdat_group=no
23191 elif test "$ld_vers_major" -lt 2; then
23192 comdat_group=no
23193 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23194 comdat_group=no
23197 else
23198 case "${target}" in
23199 *-*-solaris2.1[1-9]*)
23200 comdat_group=no
23201 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23202 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23203 # version 1.688.
23205 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23206 # least ld version 1.2267.
23207 if test "$ld_vers_major" -gt 1; then
23208 comdat_group=yes
23209 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23210 comdat_group=yes
23211 elif test "$ld_vers_minor" -ge 2267; then
23212 comdat_group=yes
23216 # Assume linkers other than GNU ld don't support COMDAT group.
23217 comdat_group=no
23219 esac
23221 # Allow overriding the automatic COMDAT group tests above.
23222 # Check whether --enable-comdat was given.
23223 if test "${enable_comdat+set}" = set; then :
23224 enableval=$enable_comdat; comdat_group="$enable_comdat"
23227 if test $comdat_group = no; then
23228 gcc_cv_as_comdat_group=no
23229 gcc_cv_as_comdat_group_percent=no
23230 gcc_cv_as_comdat_group_group=no
23233 cat >>confdefs.h <<_ACEOF
23234 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23235 || test $gcc_cv_as_comdat_group_percent = yes \
23236 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23237 _ACEOF
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23241 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23242 if test "${gcc_cv_as_discriminator+set}" = set; then :
23243 $as_echo_n "(cached) " >&6
23244 else
23245 gcc_cv_as_discriminator=no
23246 if test $in_tree_gas = yes; then
23247 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23248 then gcc_cv_as_discriminator=yes
23250 elif test x$gcc_cv_as != x; then
23251 $as_echo ' .text
23252 .file 1 "conf.c"
23253 .loc 1 1 0 discriminator 1' > conftest.s
23254 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23256 (eval $ac_try) 2>&5
23257 ac_status=$?
23258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23259 test $ac_status = 0; }; }
23260 then
23261 gcc_cv_as_discriminator=yes
23262 else
23263 echo "configure: failed program was" >&5
23264 cat conftest.s >&5
23266 rm -f conftest.o conftest.s
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23270 $as_echo "$gcc_cv_as_discriminator" >&6; }
23271 if test $gcc_cv_as_discriminator = yes; then
23273 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23277 # Thread-local storage - the check is heavily parameterized.
23278 conftest_s=
23279 tls_first_major=
23280 tls_first_minor=
23281 tls_as_opt=
23282 case "$target" in
23283 alpha*-*-*)
23284 conftest_s='
23285 .section ".tdata","awT",@progbits
23286 foo: .long 25
23287 .text
23288 ldq $27,__tls_get_addr($29) !literal!1
23289 lda $16,foo($29) !tlsgd!1
23290 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23291 ldq $27,__tls_get_addr($29) !literal!2
23292 lda $16,foo($29) !tlsldm!2
23293 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23294 ldq $1,foo($29) !gotdtprel
23295 ldah $2,foo($29) !dtprelhi
23296 lda $3,foo($2) !dtprello
23297 lda $4,foo($29) !dtprel
23298 ldq $1,foo($29) !gottprel
23299 ldah $2,foo($29) !tprelhi
23300 lda $3,foo($2) !tprello
23301 lda $4,foo($29) !tprel'
23302 tls_first_major=2
23303 tls_first_minor=13
23304 tls_as_opt=--fatal-warnings
23306 cris-*-*|crisv32-*-*)
23307 conftest_s='
23308 .section ".tdata","awT",@progbits
23309 x: .long 25
23310 .text
23311 move.d x:IE,$r10
23312 nop'
23313 tls_first_major=2
23314 tls_first_minor=20
23315 tls_as_opt=--fatal-warnings
23317 frv*-*-*)
23318 conftest_s='
23319 .section ".tdata","awT",@progbits
23320 x: .long 25
23321 .text
23322 call #gettlsoff(x)'
23323 tls_first_major=2
23324 tls_first_minor=14
23326 hppa*-*-linux*)
23327 conftest_s='
23328 t1: .reg %r20
23329 t2: .reg %r21
23330 gp: .reg %r19
23331 .section ".tdata","awT",@progbits
23332 foo: .long 25
23333 .text
23334 .align 4
23335 addil LT%foo-$tls_gdidx$,gp
23336 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23337 b __tls_get_addr
23339 addil LT%foo-$tls_ldidx$,gp
23340 b __tls_get_addr
23341 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23342 addil LR%foo-$tls_dtpoff$,%ret0
23343 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23344 mfctl %cr27,%t1
23345 addil LT%foo-$tls_ieoff$,gp
23346 ldw RT%foo-$tls_ieoff$(%r1),%t2
23347 add %t1,%t2,%t3
23348 mfctl %cr27,%t1
23349 addil LR%foo-$tls_leoff$,%t1
23350 ldo RR%foo-$tls_leoff$(%r1),%t2'
23351 tls_first_major=2
23352 tls_first_minor=15
23353 tls_as_opt=--fatal-warnings
23355 arm*-*-*)
23356 conftest_s='
23357 .section ".tdata","awT",%progbits
23358 foo: .long 25
23359 .text
23360 .word foo(gottpoff)
23361 .word foo(tpoff)
23362 .word foo(tlsgd)
23363 .word foo(tlsldm)
23364 .word foo(tlsldo)'
23365 tls_first_major=2
23366 tls_first_minor=17
23368 i[34567]86-*-* | x86_64-*-*)
23369 case "$target" in
23370 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23371 on_solaris=yes
23374 on_solaris=no
23376 esac
23377 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23378 conftest_s='
23379 .section .tdata,"awt",@progbits'
23380 tls_first_major=0
23381 tls_first_minor=0
23382 tls_section_flag=t
23384 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23386 else
23387 conftest_s='
23388 .section ".tdata","awT",@progbits'
23389 tls_first_major=2
23390 tls_first_minor=14
23391 tls_section_flag=T
23392 tls_as_opt="--fatal-warnings"
23394 case "$target" in
23395 i[34567]86-*-*)
23396 conftest_s="$conftest_s
23397 foo: .long 25
23398 .text
23399 movl %gs:0, %eax
23400 leal foo@tlsgd(,%ebx,1), %eax
23401 leal foo@tlsldm(%ebx), %eax
23402 leal foo@dtpoff(%eax), %edx
23403 movl foo@gottpoff(%ebx), %eax
23404 subl foo@gottpoff(%ebx), %eax
23405 addl foo@gotntpoff(%ebx), %eax
23406 movl foo@indntpoff, %eax
23407 movl \$foo@tpoff, %eax
23408 subl \$foo@tpoff, %eax
23409 leal foo@ntpoff(%ecx), %eax"
23411 x86_64-*-*)
23412 if test x$on_solaris = xyes; then
23413 case $gas_flag in
23414 yes) tls_as_opt="$tls_as_opt --64" ;;
23415 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23416 esac
23418 conftest_s="$conftest_s
23419 foo: .long 25
23420 .text
23421 movq %fs:0, %rax
23422 leaq foo@tlsgd(%rip), %rdi
23423 leaq foo@tlsld(%rip), %rdi
23424 leaq foo@dtpoff(%rax), %rdx
23425 movq foo@gottpoff(%rip), %rax
23426 movq \$foo@tpoff, %rax"
23428 esac
23430 ia64-*-*)
23431 conftest_s='
23432 .section ".tdata","awT",@progbits
23433 foo: data8 25
23434 .text
23435 addl r16 = @ltoff(@dtpmod(foo#)), gp
23436 addl r17 = @ltoff(@dtprel(foo#)), gp
23437 addl r18 = @ltoff(@tprel(foo#)), gp
23438 addl r19 = @dtprel(foo#), gp
23439 adds r21 = @dtprel(foo#), r13
23440 movl r23 = @dtprel(foo#)
23441 addl r20 = @tprel(foo#), gp
23442 adds r22 = @tprel(foo#), r13
23443 movl r24 = @tprel(foo#)'
23444 tls_first_major=2
23445 tls_first_minor=13
23446 tls_as_opt=--fatal-warnings
23448 microblaze*-*-*)
23449 conftest_s='
23450 .section .tdata,"awT",@progbits
23452 .word 2
23453 .text
23454 addik r5,r20,x@TLSGD
23455 addik r5,r20,x@TLSLDM'
23456 tls_first_major=2
23457 tls_first_minor=20
23458 tls_as_opt='--fatal-warnings'
23460 mips*-*-*)
23461 conftest_s='
23462 .section .tdata,"awT",@progbits
23464 .word 2
23465 .text
23466 addiu $4, $28, %tlsgd(x)
23467 addiu $4, $28, %tlsldm(x)
23468 lui $4, %dtprel_hi(x)
23469 addiu $4, $4, %dtprel_lo(x)
23470 lw $4, %gottprel(x)($28)
23471 lui $4, %tprel_hi(x)
23472 addiu $4, $4, %tprel_lo(x)'
23473 tls_first_major=2
23474 tls_first_minor=16
23475 tls_as_opt='-32 --fatal-warnings'
23477 m68k-*-*)
23478 conftest_s='
23479 .section .tdata,"awT",@progbits
23481 .word 2
23482 .text
23483 foo:
23484 move.l x@TLSGD(%a5),%a0
23485 move.l x@TLSLDM(%a5),%a0
23486 move.l x@TLSLDO(%a5),%a0
23487 move.l x@TLSIE(%a5),%a0
23488 move.l x@TLSLE(%a5),%a0'
23489 tls_first_major=2
23490 tls_first_minor=19
23491 tls_as_opt='--fatal-warnings'
23493 nios2-*-*)
23494 conftest_s='
23495 .section ".tdata","awT",@progbits'
23496 tls_first_major=2
23497 tls_first_minor=23
23498 tls_as_opt="--fatal-warnings"
23500 aarch64*-*-*)
23501 conftest_s='
23502 .section ".tdata","awT",%progbits
23503 foo: .long 25
23504 .text
23505 adrp x0, :tlsgd:x
23506 add x0, x0, #:tlsgd_lo12:x
23507 bl __tls_get_addr
23508 nop'
23509 tls_first_major=2
23510 tls_first_minor=20
23511 tls_as_opt='--fatal-warnings'
23513 powerpc-ibm-aix*)
23514 conftest_s='
23515 .extern __get_tpointer
23516 .toc
23517 LC..1:
23518 .tc a[TC],a[TL]@le
23519 .csect .text[PR]
23520 .tlstest:
23521 lwz 9,LC..1(2)
23522 bla __get_tpointer
23523 lwzx 3,9,3
23524 .globl a
23525 .csect a[TL],4
23527 .space 4'
23528 tls_first_major=0
23529 tls_first_minor=0
23531 powerpc64*-*-*)
23532 conftest_s='
23533 .section ".tdata","awT",@progbits
23534 .align 3
23535 ld0: .space 8
23536 ld1: .space 8
23537 x1: .space 8
23538 x2: .space 8
23539 x3: .space 8
23540 .text
23541 addi 3,2,ld0@got@tlsgd
23542 bl .__tls_get_addr
23544 addi 3,2,ld1@toc
23545 bl .__tls_get_addr
23547 addi 3,2,x1@got@tlsld
23548 bl .__tls_get_addr
23550 addi 9,3,x1@dtprel
23551 bl .__tls_get_addr
23553 addis 9,3,x2@dtprel@ha
23554 addi 9,9,x2@dtprel@l
23555 bl .__tls_get_addr
23557 ld 9,x3@got@dtprel(2)
23558 add 9,9,3
23559 bl .__tls_get_addr
23560 nop'
23561 tls_first_major=2
23562 tls_first_minor=14
23563 tls_as_opt="-a64 --fatal-warnings"
23565 powerpc*-*-*)
23566 conftest_s='
23567 .section ".tdata","awT",@progbits
23568 .align 2
23569 ld0: .space 4
23570 ld1: .space 4
23571 x1: .space 4
23572 x2: .space 4
23573 x3: .space 4
23574 .text
23575 addi 3,31,ld0@got@tlsgd
23576 bl __tls_get_addr
23577 addi 3,31,x1@got@tlsld
23578 bl __tls_get_addr
23579 addi 9,3,x1@dtprel
23580 addis 9,3,x2@dtprel@ha
23581 addi 9,9,x2@dtprel@l
23582 lwz 9,x3@got@tprel(31)
23583 add 9,9,x@tls
23584 addi 9,2,x1@tprel
23585 addis 9,2,x2@tprel@ha
23586 addi 9,9,x2@tprel@l'
23587 tls_first_major=2
23588 tls_first_minor=14
23589 tls_as_opt="-a32 --fatal-warnings"
23591 s390-*-*)
23592 conftest_s='
23593 .section ".tdata","awT",@progbits
23594 foo: .long 25
23595 .text
23596 .long foo@TLSGD
23597 .long foo@TLSLDM
23598 .long foo@DTPOFF
23599 .long foo@NTPOFF
23600 .long foo@GOTNTPOFF
23601 .long foo@INDNTPOFF
23602 l %r1,foo@GOTNTPOFF(%r12)
23603 l %r1,0(%r1):tls_load:foo
23604 bas %r14,0(%r1,%r13):tls_gdcall:foo
23605 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23606 tls_first_major=2
23607 tls_first_minor=14
23608 tls_as_opt="-m31 --fatal-warnings"
23610 s390x-*-*)
23611 conftest_s='
23612 .section ".tdata","awT",@progbits
23613 foo: .long 25
23614 .text
23615 .quad foo@TLSGD
23616 .quad foo@TLSLDM
23617 .quad foo@DTPOFF
23618 .quad foo@NTPOFF
23619 .quad foo@GOTNTPOFF
23620 lg %r1,foo@GOTNTPOFF(%r12)
23621 larl %r1,foo@INDNTPOFF
23622 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23623 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23624 tls_first_major=2
23625 tls_first_minor=14
23626 tls_as_opt="-m64 -Aesame --fatal-warnings"
23628 sh-*-* | sh[34]-*-*)
23629 conftest_s='
23630 .section ".tdata","awT",@progbits
23631 foo: .long 25
23632 .text
23633 .long foo@TLSGD
23634 .long foo@TLSLDM
23635 .long foo@DTPOFF
23636 .long foo@GOTTPOFF
23637 .long foo@TPOFF'
23638 tls_first_major=2
23639 tls_first_minor=13
23640 tls_as_opt=--fatal-warnings
23642 sparc*-*-*)
23643 case "$target" in
23644 sparc*-sun-solaris2.*)
23645 on_solaris=yes
23648 on_solaris=no
23650 esac
23651 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23652 conftest_s='
23653 .section ".tdata",#alloc,#write,#tls'
23654 tls_first_major=0
23655 tls_first_minor=0
23656 else
23657 conftest_s='
23658 .section ".tdata","awT",@progbits'
23659 tls_first_major=2
23660 tls_first_minor=14
23661 tls_as_opt="-32 --fatal-warnings"
23663 conftest_s="$conftest_s
23664 foo: .long 25
23665 .text
23666 sethi %tgd_hi22(foo), %o0
23667 add %o0, %tgd_lo10(foo), %o1
23668 add %l7, %o1, %o0, %tgd_add(foo)
23669 call __tls_get_addr, %tgd_call(foo)
23670 sethi %tldm_hi22(foo), %l1
23671 add %l1, %tldm_lo10(foo), %l2
23672 add %l7, %l2, %o0, %tldm_add(foo)
23673 call __tls_get_addr, %tldm_call(foo)
23674 sethi %tldo_hix22(foo), %l3
23675 xor %l3, %tldo_lox10(foo), %l4
23676 add %o0, %l4, %l5, %tldo_add(foo)
23677 sethi %tie_hi22(foo), %o3
23678 add %o3, %tie_lo10(foo), %o3
23679 ld [%l7 + %o3], %o2, %tie_ld(foo)
23680 add %g7, %o2, %o4, %tie_add(foo)
23681 sethi %tle_hix22(foo), %l1
23682 xor %l1, %tle_lox10(foo), %o5
23683 ld [%g7 + %o5], %o1"
23685 tilepro*-*-*)
23686 conftest_s='
23687 .section ".tdata","awT",@progbits
23688 foo: .long 25
23689 .text
23690 addli r0, zero, tls_gd(foo)
23691 auli r0, zero, tls_gd_ha16(foo)
23692 addli r0, r0, tls_gd_lo16(foo)
23693 jal __tls_get_addr
23694 addli r0, zero, tls_ie(foo)
23695 auli r0, r0, tls_ie_ha16(foo)
23696 addli r0, r0, tls_ie_lo16(foo)'
23697 tls_first_major=2
23698 tls_first_minor=22
23699 tls_as_opt="--fatal-warnings"
23701 tilegx*-*-*)
23702 conftest_s='
23703 .section ".tdata","awT",@progbits
23704 foo: .long 25
23705 .text
23706 shl16insli r0, zero, hw0_last_tls_gd(foo)
23707 shl16insli r0, zero, hw1_last_tls_gd(foo)
23708 shl16insli r0, r0, hw0_tls_gd(foo)
23709 jal __tls_get_addr
23710 shl16insli r0, zero, hw1_last_tls_ie(foo)
23711 shl16insli r0, r0, hw0_tls_ie(foo)'
23712 tls_first_major=2
23713 tls_first_minor=22
23714 tls_as_opt="--fatal-warnings"
23716 xtensa*-*-*)
23717 conftest_s='
23718 .section ".tdata","awT",@progbits
23719 foo: .long 25
23720 .text
23721 movi a8, foo@TLSFUNC
23722 movi a10, foo@TLSARG
23723 callx8.tls a8, foo@TLSCALL'
23724 tls_first_major=2
23725 tls_first_minor=19
23727 esac
23728 set_have_as_tls=no
23729 if test "x$enable_tls" = xno ; then
23730 : # TLS explicitly disabled.
23731 elif test "x$enable_tls" = xyes ; then
23732 set_have_as_tls=yes # TLS explicitly enabled.
23733 elif test -z "$tls_first_major"; then
23734 : # If we don't have a check, assume no support.
23735 else
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23737 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23738 if test "${gcc_cv_as_tls+set}" = set; then :
23739 $as_echo_n "(cached) " >&6
23740 else
23741 gcc_cv_as_tls=no
23742 if test $in_tree_gas = yes; then
23743 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23744 then gcc_cv_as_tls=yes
23746 elif test x$gcc_cv_as != x; then
23747 $as_echo "$conftest_s" > conftest.s
23748 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23750 (eval $ac_try) 2>&5
23751 ac_status=$?
23752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23753 test $ac_status = 0; }; }
23754 then
23755 gcc_cv_as_tls=yes
23756 else
23757 echo "configure: failed program was" >&5
23758 cat conftest.s >&5
23760 rm -f conftest.o conftest.s
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23764 $as_echo "$gcc_cv_as_tls" >&6; }
23765 if test $gcc_cv_as_tls = yes; then
23766 set_have_as_tls=yes
23769 if test $set_have_as_tls = yes ; then
23771 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23775 # Target-specific assembler checks.
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23778 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23779 gcc_cv_ld_static_dynamic=no
23780 gcc_cv_ld_static_option='-Bstatic'
23781 gcc_cv_ld_dynamic_option='-Bdynamic'
23782 if test $in_tree_ld = yes ; then
23783 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
23784 gcc_cv_ld_static_dynamic=yes
23786 elif test x$gcc_cv_ld != x; then
23787 # Check if linker supports -Bstatic/-Bdynamic option
23788 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23789 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23790 gcc_cv_ld_static_dynamic=yes
23791 else
23792 case "$target" in
23793 # AIX ld uses -b flags
23794 *-*-aix4.[23]* | *-*-aix[5-9]*)
23795 gcc_cv_ld_static_dynamic=yes
23796 gcc_cv_ld_static_option="-bstatic"
23797 gcc_cv_ld_dynamic_option="-bdynamic"
23799 # HP-UX ld uses -a flags to select between shared and archive.
23800 *-*-hpux*)
23801 if test x"$gnu_ld" = xno; then
23802 gcc_cv_ld_static_dynamic=yes
23803 gcc_cv_ld_static_option="-aarchive_shared"
23804 gcc_cv_ld_dynamic_option="-adefault"
23807 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23808 *-*-solaris2*)
23809 gcc_cv_ld_static_dynamic=yes
23811 esac
23814 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23816 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23819 cat >>confdefs.h <<_ACEOF
23820 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23821 _ACEOF
23824 cat >>confdefs.h <<_ACEOF
23825 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23826 _ACEOF
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23830 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23832 if test x"$demangler_in_ld" = xyes; then
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23834 $as_echo_n "checking linker --demangle support... " >&6; }
23835 gcc_cv_ld_demangle=no
23836 if test $in_tree_ld = yes; then
23837 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 \
23838 gcc_cv_ld_demangle=yes
23840 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23841 # Check if the GNU linker supports --demangle option
23842 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23843 gcc_cv_ld_demangle=yes
23846 if test x"$gcc_cv_ld_demangle" = xyes; then
23848 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23852 $as_echo "$gcc_cv_ld_demangle" >&6; }
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23856 $as_echo_n "checking linker plugin support... " >&6; }
23857 gcc_cv_lto_plugin=0
23858 if test -f liblto_plugin.la; then
23859 save_ld_ver="$ld_ver"
23860 save_ld_vers_major="$ld_vers_major"
23861 save_ld_vers_minor="$ld_vers_minor"
23862 save_ld_is_gold="$ld_is_gold"
23864 ld_is_gold=no
23866 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23867 ld_ver="GNU ld"
23868 # FIXME: ld_is_gold?
23869 ld_vers_major="$gcc_cv_gld_major_version"
23870 ld_vers_minor="$gcc_cv_gld_minor_version"
23871 else
23872 # Determine plugin linker version.
23873 # FIXME: Partial duplicate from above, generalize.
23874 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23875 if echo "$ld_ver" | grep GNU > /dev/null; then
23876 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23877 ld_is_gold=yes
23878 ld_vers=`echo $ld_ver | sed -n \
23879 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23880 else
23881 ld_vers=`echo $ld_ver | sed -n \
23882 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23884 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23885 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23889 # Determine plugin support.
23890 if echo "$ld_ver" | grep GNU > /dev/null; then
23891 # Require GNU ld or gold 2.21+ for plugin support by default.
23892 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23893 gcc_cv_lto_plugin=2
23894 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23895 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23896 gcc_cv_lto_plugin=1
23900 ld_ver="$save_ld_ver"
23901 ld_vers_major="$save_ld_vers_major"
23902 ld_vers_minor="$save_ld_vers_minor"
23903 ld_is_gold="$save_ld_is_gold"
23906 cat >>confdefs.h <<_ACEOF
23907 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23908 _ACEOF
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23911 $as_echo "$gcc_cv_lto_plugin" >&6; }
23913 case "$target" in
23914 aarch64*-*-*)
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23916 $as_echo_n "checking assembler for -mabi option... " >&6; }
23917 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23918 $as_echo_n "(cached) " >&6
23919 else
23920 gcc_cv_as_aarch64_mabi=no
23921 if test x$gcc_cv_as != x; then
23922 $as_echo '.text' > conftest.s
23923 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23925 (eval $ac_try) 2>&5
23926 ac_status=$?
23927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23928 test $ac_status = 0; }; }
23929 then
23930 gcc_cv_as_aarch64_mabi=yes
23931 else
23932 echo "configure: failed program was" >&5
23933 cat conftest.s >&5
23935 rm -f conftest.o conftest.s
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23939 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23941 if test x$gcc_cv_as_aarch64_mabi = xyes; then
23943 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23945 else
23946 if test x$with_abi = xilp32; then
23947 as_fn_error "Assembler does not support -mabi=ilp32.\
23948 Upgrade the Assembler." "$LINENO" 5
23950 if test x"$with_multilib_list" = xdefault; then
23951 TM_MULTILIB_CONFIG=lp64
23952 else
23953 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
23954 for aarch64_multilib in ${aarch64_multilibs}; do
23955 case ${aarch64_multilib} in
23956 ilp32)
23957 as_fn_error "Assembler does not support -mabi=ilp32.\
23958 Upgrade the Assembler." "$LINENO" 5
23962 esac
23963 done
23968 # All TARGET_ABI_OSF targets.
23969 alpha*-*-linux* | alpha*-*-*bsd*)
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23971 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23972 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23973 $as_echo_n "(cached) " >&6
23974 else
23975 gcc_cv_as_alpha_explicit_relocs=no
23976 if test $in_tree_gas = yes; then
23977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23978 then gcc_cv_as_alpha_explicit_relocs=yes
23980 elif test x$gcc_cv_as != x; then
23981 $as_echo ' .set nomacro
23982 .text
23983 extbl $3, $2, $3 !lituse_bytoff!1
23984 ldq $2, a($29) !literal!1
23985 ldq $4, b($29) !literal!2
23986 ldq_u $3, 0($2) !lituse_base!1
23987 ldq $27, f($29) !literal!5
23988 jsr $26, ($27), f !lituse_jsr!5
23989 ldah $29, 0($26) !gpdisp!3
23990 lda $0, c($29) !gprel
23991 ldah $1, d($29) !gprelhigh
23992 lda $1, d($1) !gprellow
23993 lda $29, 0($29) !gpdisp!3' > conftest.s
23994 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23997 ac_status=$?
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; }
24000 then
24001 gcc_cv_as_alpha_explicit_relocs=yes
24002 else
24003 echo "configure: failed program was" >&5
24004 cat conftest.s >&5
24006 rm -f conftest.o conftest.s
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24010 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24011 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24013 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24017 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24018 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24019 $as_echo_n "(cached) " >&6
24020 else
24021 gcc_cv_as_alpha_jsrdirect_relocs=no
24022 if test $in_tree_gas = yes; then
24023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24024 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24026 elif test x$gcc_cv_as != x; then
24027 $as_echo ' .set nomacro
24028 .text
24029 ldq $27, a($29) !literal!1
24030 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24031 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24033 (eval $ac_try) 2>&5
24034 ac_status=$?
24035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24036 test $ac_status = 0; }; }
24037 then
24038 gcc_cv_as_alpha_jsrdirect_relocs=yes
24039 else
24040 echo "configure: failed program was" >&5
24041 cat conftest.s >&5
24043 rm -f conftest.o conftest.s
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24047 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24048 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24050 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24055 cris-*-*)
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24057 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24058 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24059 $as_echo_n "(cached) " >&6
24060 else
24061 gcc_cv_as_cris_no_mul_bug=no
24062 if test $in_tree_gas = yes; then
24063 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24064 then gcc_cv_as_cris_no_mul_bug=yes
24066 elif test x$gcc_cv_as != x; then
24067 $as_echo '.text' > conftest.s
24068 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }; }
24074 then
24075 gcc_cv_as_cris_no_mul_bug=yes
24076 else
24077 echo "configure: failed program was" >&5
24078 cat conftest.s >&5
24080 rm -f conftest.o conftest.s
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24084 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24085 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24087 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24092 sparc*-*-*)
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24094 $as_echo_n "checking assembler for .register... " >&6; }
24095 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24096 $as_echo_n "(cached) " >&6
24097 else
24098 gcc_cv_as_sparc_register_op=no
24099 if test x$gcc_cv_as != x; then
24100 $as_echo '.register %g2, #scratch' > conftest.s
24101 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24103 (eval $ac_try) 2>&5
24104 ac_status=$?
24105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24106 test $ac_status = 0; }; }
24107 then
24108 gcc_cv_as_sparc_register_op=yes
24109 else
24110 echo "configure: failed program was" >&5
24111 cat conftest.s >&5
24113 rm -f conftest.o conftest.s
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24117 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24118 if test $gcc_cv_as_sparc_register_op = yes; then
24120 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24125 $as_echo_n "checking assembler for #nobits... " >&6; }
24126 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24127 $as_echo_n "(cached) " >&6
24128 else
24129 gcc_cv_as_sparc_nobits=no
24130 if test x$gcc_cv_as != x; then
24131 $as_echo '.section "nobits",#alloc,#write,#nobits
24132 .section "progbits",#alloc,#write,#progbits' > conftest.s
24133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24139 then
24140 gcc_cv_as_sparc_nobits=yes
24141 else
24142 echo "configure: failed program was" >&5
24143 cat conftest.s >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24149 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24152 cat >>confdefs.h <<_ACEOF
24153 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24154 _ACEOF
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24158 $as_echo_n "checking assembler for -relax option... " >&6; }
24159 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24160 $as_echo_n "(cached) " >&6
24161 else
24162 gcc_cv_as_sparc_relax=no
24163 if test x$gcc_cv_as != x; then
24164 $as_echo '.text' > conftest.s
24165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24171 then
24172 gcc_cv_as_sparc_relax=yes
24173 else
24174 echo "configure: failed program was" >&5
24175 cat conftest.s >&5
24177 rm -f conftest.o conftest.s
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24181 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24182 if test $gcc_cv_as_sparc_relax = yes; then
24184 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24189 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24190 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24191 $as_echo_n "(cached) " >&6
24192 else
24193 gcc_cv_as_sparc_gotdata_op=no
24194 if test x$gcc_cv_as != x; then
24195 $as_echo '.text
24196 .align 4
24197 foo:
24199 bar:
24200 sethi %gdop_hix22(foo), %g1
24201 xor %g1, %gdop_lox10(foo), %g1
24202 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24203 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24208 test $ac_status = 0; }; }
24209 then
24210 if test x$gcc_cv_ld != x \
24211 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24212 if test x$gcc_cv_objdump != x; then
24213 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24214 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24215 gcc_cv_as_sparc_gotdata_op=no
24216 else
24217 gcc_cv_as_sparc_gotdata_op=yes
24221 rm -f conftest
24222 else
24223 echo "configure: failed program was" >&5
24224 cat conftest.s >&5
24226 rm -f conftest.o conftest.s
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24230 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24231 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24233 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24238 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24239 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24240 $as_echo_n "(cached) " >&6
24241 else
24242 gcc_cv_as_sparc_ua_pcrel=no
24243 if test x$gcc_cv_as != x; then
24244 $as_echo '.text
24245 foo:
24247 .data
24248 .align 4
24249 .byte 0
24250 .uaword %r_disp32(foo)' > conftest.s
24251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24253 (eval $ac_try) 2>&5
24254 ac_status=$?
24255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24256 test $ac_status = 0; }; }
24257 then
24258 if test x$gcc_cv_ld != x \
24259 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24260 gcc_cv_as_sparc_ua_pcrel=yes
24262 rm -f conftest
24263 else
24264 echo "configure: failed program was" >&5
24265 cat conftest.s >&5
24267 rm -f conftest.o conftest.s
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24271 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24272 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24274 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24278 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24279 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24280 $as_echo_n "(cached) " >&6
24281 else
24282 gcc_cv_as_sparc_ua_pcrel_hidden=no
24283 if test x$gcc_cv_as != x; then
24284 $as_echo '.data
24285 .align 4
24286 .byte 0x31
24287 .uaword %r_disp32(foo)
24288 .byte 0x32, 0x33, 0x34
24289 .global foo
24290 .hidden foo
24291 foo:
24292 .skip 4' > conftest.s
24293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24298 test $ac_status = 0; }; }
24299 then
24300 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24301 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24302 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24303 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24304 if $gcc_cv_objdump -R conftest 2> /dev/null \
24305 | grep 'DISP32' > /dev/null 2>&1; then
24307 else
24308 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24311 rm -f conftest
24312 else
24313 echo "configure: failed program was" >&5
24314 cat conftest.s >&5
24316 rm -f conftest.o conftest.s
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24320 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24321 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24323 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24327 fi # unaligned pcrel relocs
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24330 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24331 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24332 $as_echo_n "(cached) " >&6
24333 else
24334 gcc_cv_as_sparc_offsetable_lo10=no
24335 if test x$gcc_cv_as != x; then
24336 $as_echo '.text
24337 or %g1, %lo(ab) + 12, %g1
24338 or %g1, %lo(ab + 12), %g1' > conftest.s
24339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24341 (eval $ac_try) 2>&5
24342 ac_status=$?
24343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24344 test $ac_status = 0; }; }
24345 then
24346 if test x$gcc_cv_objdump != x \
24347 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24348 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24349 gcc_cv_as_sparc_offsetable_lo10=yes
24351 else
24352 echo "configure: failed program was" >&5
24353 cat conftest.s >&5
24355 rm -f conftest.o conftest.s
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24359 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24360 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24362 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24367 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24368 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24369 $as_echo_n "(cached) " >&6
24370 else
24371 gcc_cv_as_sparc_fmaf=no
24372 if test x$gcc_cv_as != x; then
24373 $as_echo '.text
24374 .register %g2, #scratch
24375 .register %g3, #scratch
24376 .align 4
24377 fmaddd %f0, %f2, %f4, %f6
24378 addxccc %g1, %g2, %g3
24379 fsrl32 %f2, %f4, %f8
24380 fnaddd %f10, %f12, %f14' > conftest.s
24381 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24383 (eval $ac_try) 2>&5
24384 ac_status=$?
24385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24386 test $ac_status = 0; }; }
24387 then
24388 gcc_cv_as_sparc_fmaf=yes
24389 else
24390 echo "configure: failed program was" >&5
24391 cat conftest.s >&5
24393 rm -f conftest.o conftest.s
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24397 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24398 if test $gcc_cv_as_sparc_fmaf = yes; then
24400 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24405 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24406 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24407 $as_echo_n "(cached) " >&6
24408 else
24409 gcc_cv_as_sparc_sparc4=no
24410 if test x$gcc_cv_as != x; then
24411 $as_echo '.text
24412 .register %g2, #scratch
24413 .register %g3, #scratch
24414 .align 4
24415 cxbe %g2, %g3, 1f
24416 1: cwbneg %g2, %g3, 1f
24417 1: sha1
24419 aes_kexpand0 %f4, %f6, %f8
24420 des_round %f38, %f40, %f42, %f44
24421 camellia_f %f54, %f56, %f58, %f60
24422 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24425 (eval $ac_try) 2>&5
24426 ac_status=$?
24427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24428 test $ac_status = 0; }; }
24429 then
24430 gcc_cv_as_sparc_sparc4=yes
24431 else
24432 echo "configure: failed program was" >&5
24433 cat conftest.s >&5
24435 rm -f conftest.o conftest.s
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24439 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24440 if test $gcc_cv_as_sparc_sparc4 = yes; then
24442 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24447 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24448 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24449 $as_echo_n "(cached) " >&6
24450 else
24451 gcc_cv_as_sparc_leon=no
24452 if test x$gcc_cv_as != x; then
24453 $as_echo '.text
24454 .register %g2, #scratch
24455 .register %g3, #scratch
24456 .align 4
24457 smac %g2, %g3, %g1
24458 umac %g2, %g3, %g1
24459 casa [%g2] 0xb, %g3, %g1' > conftest.s
24460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24462 (eval $ac_try) 2>&5
24463 ac_status=$?
24464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24465 test $ac_status = 0; }; }
24466 then
24467 gcc_cv_as_sparc_leon=yes
24468 else
24469 echo "configure: failed program was" >&5
24470 cat conftest.s >&5
24472 rm -f conftest.o conftest.s
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24476 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24477 if test $gcc_cv_as_sparc_leon = yes; then
24479 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24484 i[34567]86-*-* | x86_64-*-*)
24485 case $target_os in
24486 cygwin*)
24487 # Full C++ conformance when using a shared libstdc++-v3 requires some
24488 # support from the Cygwin DLL, which in more recent versions exports
24489 # wrappers to aid in interposing and redirecting operators new, delete,
24490 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24491 # are configuring for a version of Cygwin that exports the wrappers.
24492 if test x$host = x$target && test x$host_cpu = xi686; then
24493 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24494 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24495 gcc_ac_cygwin_dll_wrappers=yes
24496 else
24497 gcc_ac_cygwin_dll_wrappers=no
24500 else
24501 # Can't check presence of libc functions during cross-compile, so
24502 # we just have to assume we're building for an up-to-date target.
24503 gcc_ac_cygwin_dll_wrappers=yes
24506 cat >>confdefs.h <<_ACEOF
24507 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24508 _ACEOF
24510 esac
24511 case $target_os in
24512 cygwin* | pe | mingw32* | interix*)
24513 # Recent binutils allows the three-operand form of ".comm" on PE. This
24514 # definition is used unconditionally to initialise the default state of
24515 # the target option variable that governs usage of the feature.
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24517 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24518 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24519 $as_echo_n "(cached) " >&6
24520 else
24521 gcc_cv_as_comm_has_align=no
24522 if test $in_tree_gas = yes; then
24523 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24524 then gcc_cv_as_comm_has_align=yes
24526 elif test x$gcc_cv_as != x; then
24527 $as_echo '.comm foo,1,32' > conftest.s
24528 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24530 (eval $ac_try) 2>&5
24531 ac_status=$?
24532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24533 test $ac_status = 0; }; }
24534 then
24535 gcc_cv_as_comm_has_align=yes
24536 else
24537 echo "configure: failed program was" >&5
24538 cat conftest.s >&5
24540 rm -f conftest.o conftest.s
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24544 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24547 cat >>confdefs.h <<_ACEOF
24548 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24549 _ACEOF
24551 # Used for DWARF 2 in PE
24552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24553 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24554 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24555 $as_echo_n "(cached) " >&6
24556 else
24557 gcc_cv_as_ix86_pe_secrel32=no
24558 if test $in_tree_gas = yes; then
24559 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24560 then gcc_cv_as_ix86_pe_secrel32=yes
24562 elif test x$gcc_cv_as != x; then
24563 $as_echo '.text
24564 foo: nop
24565 .data
24566 .secrel32 foo' > conftest.s
24567 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24569 (eval $ac_try) 2>&5
24570 ac_status=$?
24571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24572 test $ac_status = 0; }; }
24573 then
24574 if test x$gcc_cv_ld != x \
24575 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24576 gcc_cv_as_ix86_pe_secrel32=yes
24578 rm -f conftest
24579 else
24580 echo "configure: failed program was" >&5
24581 cat conftest.s >&5
24583 rm -f conftest.o conftest.s
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24587 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24588 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24590 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24593 # Test if the assembler supports the extended form of the .section
24594 # directive that specifies section alignment. LTO support uses this,
24595 # but normally only after installation, so we warn but don't fail the
24596 # configure if LTO is enabled but the assembler does not support it.
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24598 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24599 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24600 $as_echo_n "(cached) " >&6
24601 else
24602 gcc_cv_as_section_has_align=no
24603 if test $in_tree_gas = yes; then
24604 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24605 then gcc_cv_as_section_has_align=yes
24607 elif test x$gcc_cv_as != x; then
24608 $as_echo '.section lto_test,"dr0"' > conftest.s
24609 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24611 (eval $ac_try) 2>&5
24612 ac_status=$?
24613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24614 test $ac_status = 0; }; }
24615 then
24616 gcc_cv_as_section_has_align=yes
24617 else
24618 echo "configure: failed program was" >&5
24619 cat conftest.s >&5
24621 rm -f conftest.o conftest.s
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24625 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24627 if test x$gcc_cv_as_section_has_align != xyes; then
24628 case ",$enable_languages," in
24629 *,lto,*)
24630 { $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
24631 $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;}
24633 esac
24635 # Test if the assembler supports the section flag 'e' for specifying
24636 # an excluded section.
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24638 $as_echo_n "checking assembler for .section with e... " >&6; }
24639 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24640 $as_echo_n "(cached) " >&6
24641 else
24642 gcc_cv_as_section_has_e=no
24643 if test $in_tree_gas = yes; then
24644 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24645 then gcc_cv_as_section_has_e=yes
24647 elif test x$gcc_cv_as != x; then
24648 $as_echo '.section foo1,"e"
24649 .byte 0,0,0,0' > conftest.s
24650 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24652 (eval $ac_try) 2>&5
24653 ac_status=$?
24654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24655 test $ac_status = 0; }; }
24656 then
24657 gcc_cv_as_section_has_e=yes
24658 else
24659 echo "configure: failed program was" >&5
24660 cat conftest.s >&5
24662 rm -f conftest.o conftest.s
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24666 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24669 cat >>confdefs.h <<_ACEOF
24670 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24671 _ACEOF
24674 esac
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24677 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24678 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24679 $as_echo_n "(cached) " >&6
24680 else
24681 gcc_cv_as_ix86_filds=no
24682 if test x$gcc_cv_as != x; then
24683 $as_echo 'filds mem; fists mem' > conftest.s
24684 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24689 test $ac_status = 0; }; }
24690 then
24691 gcc_cv_as_ix86_filds=yes
24692 else
24693 echo "configure: failed program was" >&5
24694 cat conftest.s >&5
24696 rm -f conftest.o conftest.s
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24700 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24701 if test $gcc_cv_as_ix86_filds = yes; then
24703 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24708 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24709 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24710 $as_echo_n "(cached) " >&6
24711 else
24712 gcc_cv_as_ix86_fildq=no
24713 if test x$gcc_cv_as != x; then
24714 $as_echo 'fildq mem; fistpq mem' > conftest.s
24715 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24717 (eval $ac_try) 2>&5
24718 ac_status=$?
24719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24720 test $ac_status = 0; }; }
24721 then
24722 gcc_cv_as_ix86_fildq=yes
24723 else
24724 echo "configure: failed program was" >&5
24725 cat conftest.s >&5
24727 rm -f conftest.o conftest.s
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24731 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24732 if test $gcc_cv_as_ix86_fildq = yes; then
24734 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24739 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24740 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24742 else
24743 gcc_cv_as_ix86_cmov_sun_syntax=no
24744 if test x$gcc_cv_as != x; then
24745 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24746 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24751 test $ac_status = 0; }; }
24752 then
24753 gcc_cv_as_ix86_cmov_sun_syntax=yes
24754 else
24755 echo "configure: failed program was" >&5
24756 cat conftest.s >&5
24758 rm -f conftest.o conftest.s
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24762 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24763 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24765 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24770 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24771 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24772 $as_echo_n "(cached) " >&6
24773 else
24774 gcc_cv_as_ix86_ffreep=no
24775 if test x$gcc_cv_as != x; then
24776 $as_echo 'ffreep %st(1)' > conftest.s
24777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24779 (eval $ac_try) 2>&5
24780 ac_status=$?
24781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24782 test $ac_status = 0; }; }
24783 then
24784 gcc_cv_as_ix86_ffreep=yes
24785 else
24786 echo "configure: failed program was" >&5
24787 cat conftest.s >&5
24789 rm -f conftest.o conftest.s
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24793 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24794 if test $gcc_cv_as_ix86_ffreep = yes; then
24796 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24801 $as_echo_n "checking assembler for .quad directive... " >&6; }
24802 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24803 $as_echo_n "(cached) " >&6
24804 else
24805 gcc_cv_as_ix86_quad=no
24806 if test x$gcc_cv_as != x; then
24807 $as_echo '.quad 0' > conftest.s
24808 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24810 (eval $ac_try) 2>&5
24811 ac_status=$?
24812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24813 test $ac_status = 0; }; }
24814 then
24815 gcc_cv_as_ix86_quad=yes
24816 else
24817 echo "configure: failed program was" >&5
24818 cat conftest.s >&5
24820 rm -f conftest.o conftest.s
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24824 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24825 if test $gcc_cv_as_ix86_quad = yes; then
24827 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24832 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24833 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24834 $as_echo_n "(cached) " >&6
24835 else
24836 gcc_cv_as_ix86_sahf=no
24837 if test x$gcc_cv_as != x; then
24838 $as_echo '.code64
24839 sahf' > conftest.s
24840 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24842 (eval $ac_try) 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24845 test $ac_status = 0; }; }
24846 then
24847 gcc_cv_as_ix86_sahf=yes
24848 else
24849 echo "configure: failed program was" >&5
24850 cat conftest.s >&5
24852 rm -f conftest.o conftest.s
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24856 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24857 if test $gcc_cv_as_ix86_sahf = yes; then
24859 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24864 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24865 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24866 $as_echo_n "(cached) " >&6
24867 else
24868 gcc_cv_as_ix86_interunit_movq=no
24869 if test x$gcc_cv_as != x; then
24870 $as_echo '.code64
24871 movq %mm0, %rax
24872 movq %rax, %xmm0' > conftest.s
24873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24875 (eval $ac_try) 2>&5
24876 ac_status=$?
24877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24878 test $ac_status = 0; }; }
24879 then
24880 gcc_cv_as_ix86_interunit_movq=yes
24881 else
24882 echo "configure: failed program was" >&5
24883 cat conftest.s >&5
24885 rm -f conftest.o conftest.s
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24889 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24892 cat >>confdefs.h <<_ACEOF
24893 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24894 _ACEOF
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24898 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24899 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24900 $as_echo_n "(cached) " >&6
24901 else
24902 gcc_cv_as_ix86_hle=no
24903 if test x$gcc_cv_as != x; then
24904 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24907 (eval $ac_try) 2>&5
24908 ac_status=$?
24909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24910 test $ac_status = 0; }; }
24911 then
24912 gcc_cv_as_ix86_hle=yes
24913 else
24914 echo "configure: failed program was" >&5
24915 cat conftest.s >&5
24917 rm -f conftest.o conftest.s
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24921 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24922 if test $gcc_cv_as_ix86_hle = yes; then
24924 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24929 $as_echo_n "checking assembler for swap suffix... " >&6; }
24930 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24932 else
24933 gcc_cv_as_ix86_swap=no
24934 if test x$gcc_cv_as != x; then
24935 $as_echo 'movl.s %esp, %ebp' > conftest.s
24936 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24938 (eval $ac_try) 2>&5
24939 ac_status=$?
24940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24941 test $ac_status = 0; }; }
24942 then
24943 gcc_cv_as_ix86_swap=yes
24944 else
24945 echo "configure: failed program was" >&5
24946 cat conftest.s >&5
24948 rm -f conftest.o conftest.s
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24952 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24953 if test $gcc_cv_as_ix86_swap = yes; then
24955 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24960 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24961 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24964 gcc_cv_as_ix86_diff_sect_delta=no
24965 if test x$gcc_cv_as != x; then
24966 $as_echo '.section .rodata
24967 .L1:
24968 .long .L2-.L1
24969 .long .L3-.L1
24970 .text
24971 .L3: nop
24972 .L2: nop' > conftest.s
24973 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24975 (eval $ac_try) 2>&5
24976 ac_status=$?
24977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24978 test $ac_status = 0; }; }
24979 then
24980 gcc_cv_as_ix86_diff_sect_delta=yes
24981 else
24982 echo "configure: failed program was" >&5
24983 cat conftest.s >&5
24985 rm -f conftest.o conftest.s
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24989 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24990 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24992 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24996 # These two are used unconditionally by i386.[ch]; it is to be defined
24997 # to 1 if the feature is present, 0 otherwise.
24998 as_ix86_gotoff_in_data_opt=
24999 if test x$gas = xyes; then
25000 as_ix86_gotoff_in_data_opt="--32"
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25003 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25004 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25005 $as_echo_n "(cached) " >&6
25006 else
25007 gcc_cv_as_ix86_gotoff_in_data=no
25008 if test $in_tree_gas = yes; then
25009 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25010 then gcc_cv_as_ix86_gotoff_in_data=yes
25012 elif test x$gcc_cv_as != x; then
25013 $as_echo ' .text
25014 .L0:
25016 .data
25017 .long .L0@GOTOFF' > conftest.s
25018 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25023 test $ac_status = 0; }; }
25024 then
25025 gcc_cv_as_ix86_gotoff_in_data=yes
25026 else
25027 echo "configure: failed program was" >&5
25028 cat conftest.s >&5
25030 rm -f conftest.o conftest.s
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25034 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25037 cat >>confdefs.h <<_ACEOF
25038 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25039 _ACEOF
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25043 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25044 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25045 $as_echo_n "(cached) " >&6
25046 else
25047 gcc_cv_as_ix86_rep_lock_prefix=no
25048 if test x$gcc_cv_as != x; then
25049 $as_echo 'rep movsl
25050 rep ret
25051 rep nop
25052 rep bsf %ecx, %eax
25053 rep bsr %ecx, %eax
25054 lock addl %edi, (%eax,%esi)
25055 lock orl $0, (%esp)' > conftest.s
25056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25059 ac_status=$?
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; }
25062 then
25063 gcc_cv_as_ix86_rep_lock_prefix=yes
25064 else
25065 echo "configure: failed program was" >&5
25066 cat conftest.s >&5
25068 rm -f conftest.o conftest.s
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25072 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25073 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25075 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25080 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25081 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25082 $as_echo_n "(cached) " >&6
25083 else
25084 gcc_cv_as_ix86_ud2=no
25085 if test x$gcc_cv_as != x; then
25086 $as_echo 'ud2' > conftest.s
25087 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25089 (eval $ac_try) 2>&5
25090 ac_status=$?
25091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25092 test $ac_status = 0; }; }
25093 then
25094 gcc_cv_as_ix86_ud2=yes
25095 else
25096 echo "configure: failed program was" >&5
25097 cat conftest.s >&5
25099 rm -f conftest.o conftest.s
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25103 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25104 if test $gcc_cv_as_ix86_ud2 = yes; then
25106 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25111 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25112 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25113 $as_echo_n "(cached) " >&6
25114 else
25115 gcc_cv_as_ix86_tlsgdplt=no
25116 if test x$gcc_cv_as != x; then
25117 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; }; }
25124 then
25125 if test x$gcc_cv_ld != x \
25126 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25127 gcc_cv_as_ix86_tlsgdplt=yes
25129 rm -f conftest
25130 else
25131 echo "configure: failed program was" >&5
25132 cat conftest.s >&5
25134 rm -f conftest.o conftest.s
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25138 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25139 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25141 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25145 conftest_s='
25146 .section .tdata,"aw'$tls_section_flag'",@progbits
25147 tls_ld:
25148 .section .text,"ax",@progbits
25149 call tls_ld@tlsldmplt'
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25151 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25152 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25153 $as_echo_n "(cached) " >&6
25154 else
25155 gcc_cv_as_ix86_tlsldmplt=no
25156 if test x$gcc_cv_as != x; then
25157 $as_echo "$conftest_s" > conftest.s
25158 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25160 (eval $ac_try) 2>&5
25161 ac_status=$?
25162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25163 test $ac_status = 0; }; }
25164 then
25165 if test x$gcc_cv_ld != x \
25166 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25167 gcc_cv_as_ix86_tlsldmplt=yes
25169 rm -f conftest
25170 else
25171 echo "configure: failed program was" >&5
25172 cat conftest.s >&5
25174 rm -f conftest.o conftest.s
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25178 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25181 cat >>confdefs.h <<_ACEOF
25182 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25183 _ACEOF
25186 # Enforce 32-bit output with gas and gld.
25187 if test x$gas = xyes; then
25188 as_ix86_tls_ldm_opt="--32"
25190 if echo "$ld_ver" | grep GNU > /dev/null; then
25191 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25192 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25193 else
25194 ld_ix86_tls_ldm_opt="-melf_i386"
25197 conftest_s='
25198 .section .text,"ax",@progbits
25199 .globl _start
25200 .type _start, @function
25201 _start:
25202 leal value@tlsldm(%ebx), %eax
25203 call ___tls_get_addr@plt
25205 .section .tdata,"aw'$tls_section_flag'",@progbits
25206 .type value, @object
25207 value:'
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25209 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25210 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25211 $as_echo_n "(cached) " >&6
25212 else
25213 gcc_cv_as_ix86_tlsldm=no
25214 if test x$gcc_cv_as != x; then
25215 $as_echo "$conftest_s" > conftest.s
25216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25218 (eval $ac_try) 2>&5
25219 ac_status=$?
25220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25221 test $ac_status = 0; }; }
25222 then
25223 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25224 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25225 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25226 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25227 gcc_cv_as_ix86_tlsldm=yes
25230 rm -f conftest
25231 else
25232 echo "configure: failed program was" >&5
25233 cat conftest.s >&5
25235 rm -f conftest.o conftest.s
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25239 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25242 cat >>confdefs.h <<_ACEOF
25243 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25244 _ACEOF
25249 ia64*-*-*)
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25251 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25252 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25253 $as_echo_n "(cached) " >&6
25254 else
25255 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25256 if test $in_tree_gas = yes; then
25257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25258 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25260 elif test x$gcc_cv_as != x; then
25261 $as_echo ' .text
25262 addl r15 = @ltoffx(x#), gp
25264 ld8.mov r16 = [r15], x#' > conftest.s
25265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25270 test $ac_status = 0; }; }
25271 then
25272 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25273 else
25274 echo "configure: failed program was" >&5
25275 cat conftest.s >&5
25277 rm -f conftest.o conftest.s
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25281 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25282 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25284 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25290 powerpc*-*-*)
25291 case $target in
25292 *-*-aix*) conftest_s=' .machine "pwr5"
25293 .csect .text[PR]
25294 mfcr 3,128';;
25295 *-*-darwin*)
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25297 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25298 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25299 $as_echo_n "(cached) " >&6
25300 else
25301 gcc_cv_as_machine_directive=no
25302 if test x$gcc_cv_as != x; then
25303 $as_echo ' .machine ppc7400' > conftest.s
25304 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25306 (eval $ac_try) 2>&5
25307 ac_status=$?
25308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25309 test $ac_status = 0; }; }
25310 then
25311 gcc_cv_as_machine_directive=yes
25312 else
25313 echo "configure: failed program was" >&5
25314 cat conftest.s >&5
25316 rm -f conftest.o conftest.s
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25320 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25322 if test x$gcc_cv_as_machine_directive != xyes; then
25323 echo "*** This target requires an assembler supporting \".machine\"" >&2
25324 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25325 test x$build = x$target && exit 1
25327 conftest_s=' .text
25328 mfcr r3,128';;
25329 *) conftest_s=' .machine power4
25330 .text
25331 mfcr 3,128';;
25332 esac
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25335 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25336 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25337 $as_echo_n "(cached) " >&6
25338 else
25339 gcc_cv_as_powerpc_mfcrf=no
25340 if test $in_tree_gas = yes; then
25341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25342 then gcc_cv_as_powerpc_mfcrf=yes
25344 elif test x$gcc_cv_as != x; then
25345 $as_echo "$conftest_s" > conftest.s
25346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25348 (eval $ac_try) 2>&5
25349 ac_status=$?
25350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25351 test $ac_status = 0; }; }
25352 then
25353 gcc_cv_as_powerpc_mfcrf=yes
25354 else
25355 echo "configure: failed program was" >&5
25356 cat conftest.s >&5
25358 rm -f conftest.o conftest.s
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25362 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25363 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25365 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25369 case $target in
25370 *-*-aix*) conftest_s=' .machine "pwr5"
25371 .csect .text[PR]
25372 popcntb 3,3';;
25373 *) conftest_s=' .machine power5
25374 .text
25375 popcntb 3,3';;
25376 esac
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25379 $as_echo_n "checking assembler for popcntb support... " >&6; }
25380 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25381 $as_echo_n "(cached) " >&6
25382 else
25383 gcc_cv_as_powerpc_popcntb=no
25384 if test $in_tree_gas = yes; then
25385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25386 then gcc_cv_as_powerpc_popcntb=yes
25388 elif test x$gcc_cv_as != x; then
25389 $as_echo "$conftest_s" > conftest.s
25390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }
25396 then
25397 gcc_cv_as_powerpc_popcntb=yes
25398 else
25399 echo "configure: failed program was" >&5
25400 cat conftest.s >&5
25402 rm -f conftest.o conftest.s
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25406 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25407 if test $gcc_cv_as_powerpc_popcntb = yes; then
25409 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25413 case $target in
25414 *-*-aix*) conftest_s=' .machine "pwr5x"
25415 .csect .text[PR]
25416 frin 1,1';;
25417 *) conftest_s=' .machine power5
25418 .text
25419 frin 1,1';;
25420 esac
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25423 $as_echo_n "checking assembler for fp round support... " >&6; }
25424 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25425 $as_echo_n "(cached) " >&6
25426 else
25427 gcc_cv_as_powerpc_fprnd=no
25428 if test $in_tree_gas = yes; then
25429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25430 then gcc_cv_as_powerpc_fprnd=yes
25432 elif test x$gcc_cv_as != x; then
25433 $as_echo "$conftest_s" > conftest.s
25434 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25439 test $ac_status = 0; }; }
25440 then
25441 gcc_cv_as_powerpc_fprnd=yes
25442 else
25443 echo "configure: failed program was" >&5
25444 cat conftest.s >&5
25446 rm -f conftest.o conftest.s
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25450 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25451 if test $gcc_cv_as_powerpc_fprnd = yes; then
25453 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25457 case $target in
25458 *-*-aix*) conftest_s=' .machine "pwr6"
25459 .csect .text[PR]
25460 mffgpr 1,3';;
25461 *) conftest_s=' .machine power6
25462 .text
25463 mffgpr 1,3';;
25464 esac
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25467 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25468 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25469 $as_echo_n "(cached) " >&6
25470 else
25471 gcc_cv_as_powerpc_mfpgpr=no
25472 if test $in_tree_gas = yes; then
25473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25474 then gcc_cv_as_powerpc_mfpgpr=yes
25476 elif test x$gcc_cv_as != x; then
25477 $as_echo "$conftest_s" > conftest.s
25478 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25483 test $ac_status = 0; }; }
25484 then
25485 gcc_cv_as_powerpc_mfpgpr=yes
25486 else
25487 echo "configure: failed program was" >&5
25488 cat conftest.s >&5
25490 rm -f conftest.o conftest.s
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25494 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25495 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25497 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25501 case $target in
25502 *-*-aix*) conftest_s=' .csect .text[PR]
25503 LCF..0:
25504 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25505 *-*-darwin*)
25506 conftest_s=' .text
25507 LCF0:
25508 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25509 *) conftest_s=' .text
25510 .LCF0:
25511 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25512 esac
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25515 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25516 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25517 $as_echo_n "(cached) " >&6
25518 else
25519 gcc_cv_as_powerpc_rel16=no
25520 if test $in_tree_gas = yes; then
25521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25522 then gcc_cv_as_powerpc_rel16=yes
25524 elif test x$gcc_cv_as != x; then
25525 $as_echo "$conftest_s" > conftest.s
25526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528 (eval $ac_try) 2>&5
25529 ac_status=$?
25530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531 test $ac_status = 0; }; }
25532 then
25533 gcc_cv_as_powerpc_rel16=yes
25534 else
25535 echo "configure: failed program was" >&5
25536 cat conftest.s >&5
25538 rm -f conftest.o conftest.s
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25542 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25543 if test $gcc_cv_as_powerpc_rel16 = yes; then
25545 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25549 case $target in
25550 *-*-aix*) conftest_s=' .machine "pwr6"
25551 .csect .text[PR]
25552 cmpb 3,4,5';;
25553 *) conftest_s=' .machine power6
25554 .text
25555 cmpb 3,4,5';;
25556 esac
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25559 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25560 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25561 $as_echo_n "(cached) " >&6
25562 else
25563 gcc_cv_as_powerpc_cmpb=no
25564 if test $in_tree_gas = yes; then
25565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25566 then gcc_cv_as_powerpc_cmpb=yes
25568 elif test x$gcc_cv_as != x; then
25569 $as_echo "$conftest_s" > conftest.s
25570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25573 ac_status=$?
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }
25576 then
25577 gcc_cv_as_powerpc_cmpb=yes
25578 else
25579 echo "configure: failed program was" >&5
25580 cat conftest.s >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25586 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25587 if test $gcc_cv_as_powerpc_cmpb = yes; then
25589 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25593 case $target in
25594 *-*-aix*) conftest_s=' .machine "pwr6"
25595 .csect .text[PR]
25596 dadd 1,2,3';;
25597 *) conftest_s=' .machine power6
25598 .text
25599 dadd 1,2,3';;
25600 esac
25602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25603 $as_echo_n "checking assembler for decimal float support... " >&6; }
25604 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25605 $as_echo_n "(cached) " >&6
25606 else
25607 gcc_cv_as_powerpc_dfp=no
25608 if test $in_tree_gas = yes; then
25609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25610 then gcc_cv_as_powerpc_dfp=yes
25612 elif test x$gcc_cv_as != x; then
25613 $as_echo "$conftest_s" > conftest.s
25614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25616 (eval $ac_try) 2>&5
25617 ac_status=$?
25618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25619 test $ac_status = 0; }; }
25620 then
25621 gcc_cv_as_powerpc_dfp=yes
25622 else
25623 echo "configure: failed program was" >&5
25624 cat conftest.s >&5
25626 rm -f conftest.o conftest.s
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25630 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25631 if test $gcc_cv_as_powerpc_dfp = yes; then
25633 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25637 case $target in
25638 *-*-aix*) conftest_s=' .machine "pwr7"
25639 .csect .text[PR]
25640 lxvd2x 1,2,3';;
25641 *) conftest_s=' .machine power7
25642 .text
25643 lxvd2x 1,2,3';;
25644 esac
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25647 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25648 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25649 $as_echo_n "(cached) " >&6
25650 else
25651 gcc_cv_as_powerpc_vsx=no
25652 if test $in_tree_gas = yes; then
25653 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25654 then gcc_cv_as_powerpc_vsx=yes
25656 elif test x$gcc_cv_as != x; then
25657 $as_echo "$conftest_s" > conftest.s
25658 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25663 test $ac_status = 0; }; }
25664 then
25665 gcc_cv_as_powerpc_vsx=yes
25666 else
25667 echo "configure: failed program was" >&5
25668 cat conftest.s >&5
25670 rm -f conftest.o conftest.s
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25674 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25675 if test $gcc_cv_as_powerpc_vsx = yes; then
25677 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25681 case $target in
25682 *-*-aix*) conftest_s=' .machine "pwr7"
25683 .csect .text[PR]
25684 popcntd 3,3';;
25685 *) conftest_s=' .machine power7
25686 .text
25687 popcntd 3,3';;
25688 esac
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25691 $as_echo_n "checking assembler for popcntd support... " >&6; }
25692 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25693 $as_echo_n "(cached) " >&6
25694 else
25695 gcc_cv_as_powerpc_popcntd=no
25696 if test $in_tree_gas = yes; then
25697 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25698 then gcc_cv_as_powerpc_popcntd=yes
25700 elif test x$gcc_cv_as != x; then
25701 $as_echo "$conftest_s" > conftest.s
25702 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25704 (eval $ac_try) 2>&5
25705 ac_status=$?
25706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25707 test $ac_status = 0; }; }
25708 then
25709 gcc_cv_as_powerpc_popcntd=yes
25710 else
25711 echo "configure: failed program was" >&5
25712 cat conftest.s >&5
25714 rm -f conftest.o conftest.s
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25718 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25719 if test $gcc_cv_as_powerpc_popcntd = yes; then
25721 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25725 case $target in
25726 *-*-aix*) conftest_s=' .machine "pwr8"
25727 .csect .text[PR]';;
25728 *) conftest_s=' .machine power8
25729 .text';;
25730 esac
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25733 $as_echo_n "checking assembler for power8 support... " >&6; }
25734 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25735 $as_echo_n "(cached) " >&6
25736 else
25737 gcc_cv_as_powerpc_power8=no
25738 if test $in_tree_gas = yes; then
25739 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25740 then gcc_cv_as_powerpc_power8=yes
25742 elif test x$gcc_cv_as != x; then
25743 $as_echo "$conftest_s" > conftest.s
25744 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25746 (eval $ac_try) 2>&5
25747 ac_status=$?
25748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25749 test $ac_status = 0; }; }
25750 then
25751 gcc_cv_as_powerpc_power8=yes
25752 else
25753 echo "configure: failed program was" >&5
25754 cat conftest.s >&5
25756 rm -f conftest.o conftest.s
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25760 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25761 if test $gcc_cv_as_powerpc_power8 = yes; then
25763 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25767 case $target in
25768 *-*-aix*) conftest_s=' .csect .text[PR]
25769 lwsync';;
25770 *) conftest_s=' .text
25771 lwsync';;
25772 esac
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25775 $as_echo_n "checking assembler for lwsync support... " >&6; }
25776 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25777 $as_echo_n "(cached) " >&6
25778 else
25779 gcc_cv_as_powerpc_lwsync=no
25780 if test $in_tree_gas = yes; then
25781 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25782 then gcc_cv_as_powerpc_lwsync=yes
25784 elif test x$gcc_cv_as != x; then
25785 $as_echo "$conftest_s" > conftest.s
25786 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25791 test $ac_status = 0; }; }
25792 then
25793 gcc_cv_as_powerpc_lwsync=yes
25794 else
25795 echo "configure: failed program was" >&5
25796 cat conftest.s >&5
25798 rm -f conftest.o conftest.s
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25802 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25803 if test $gcc_cv_as_powerpc_lwsync = yes; then
25805 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25809 case $target in
25810 *-*-aix*) conftest_s=' .machine "476"
25811 .csect .text[PR]
25812 dci 0';;
25813 *) conftest_s=' .machine "476"
25814 .text
25815 dci 0';;
25816 esac
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25819 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25820 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25821 $as_echo_n "(cached) " >&6
25822 else
25823 gcc_cv_as_powerpc_dci=no
25824 if test $in_tree_gas = yes; then
25825 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25826 then gcc_cv_as_powerpc_dci=yes
25828 elif test x$gcc_cv_as != x; then
25829 $as_echo "$conftest_s" > conftest.s
25830 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25835 test $ac_status = 0; }; }
25836 then
25837 gcc_cv_as_powerpc_dci=yes
25838 else
25839 echo "configure: failed program was" >&5
25840 cat conftest.s >&5
25842 rm -f conftest.o conftest.s
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25846 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25847 if test $gcc_cv_as_powerpc_dci = yes; then
25849 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25854 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25855 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25856 $as_echo_n "(cached) " >&6
25857 else
25858 gcc_cv_as_powerpc_gnu_attribute=no
25859 if test $in_tree_gas = yes; then
25860 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25861 then gcc_cv_as_powerpc_gnu_attribute=yes
25863 elif test x$gcc_cv_as != x; then
25864 $as_echo '.gnu_attribute 4,1' > conftest.s
25865 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25870 test $ac_status = 0; }; }
25871 then
25872 gcc_cv_as_powerpc_gnu_attribute=yes
25873 else
25874 echo "configure: failed program was" >&5
25875 cat conftest.s >&5
25877 rm -f conftest.o conftest.s
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25881 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25882 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25884 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25889 $as_echo_n "checking assembler for tls marker support... " >&6; }
25890 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25891 $as_echo_n "(cached) " >&6
25892 else
25893 gcc_cv_as_powerpc_tls_markers=no
25894 if test $in_tree_gas = yes; then
25895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25896 then gcc_cv_as_powerpc_tls_markers=yes
25898 elif test x$gcc_cv_as != x; then
25899 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25902 (eval $ac_try) 2>&5
25903 ac_status=$?
25904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25905 test $ac_status = 0; }; }
25906 then
25907 gcc_cv_as_powerpc_tls_markers=yes
25908 else
25909 echo "configure: failed program was" >&5
25910 cat conftest.s >&5
25912 rm -f conftest.o conftest.s
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25916 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25917 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25919 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25923 case $target in
25924 *-*-aix*)
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25926 $as_echo_n "checking assembler for .ref support... " >&6; }
25927 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25928 $as_echo_n "(cached) " >&6
25929 else
25930 gcc_cv_as_aix_ref=no
25931 if test $in_tree_gas = yes; then
25932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25933 then gcc_cv_as_aix_ref=yes
25935 elif test x$gcc_cv_as != x; then
25936 $as_echo ' .csect stuff[rw]
25937 stuff:
25938 .long 1
25939 .extern sym
25940 .ref sym
25941 ' > conftest.s
25942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25944 (eval $ac_try) 2>&5
25945 ac_status=$?
25946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25947 test $ac_status = 0; }; }
25948 then
25949 gcc_cv_as_aix_ref=yes
25950 else
25951 echo "configure: failed program was" >&5
25952 cat conftest.s >&5
25954 rm -f conftest.o conftest.s
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25958 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25959 if test $gcc_cv_as_aix_ref = yes; then
25961 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25965 esac
25968 mips*-*-*)
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25970 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25971 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25972 $as_echo_n "(cached) " >&6
25973 else
25974 gcc_cv_as_mips_explicit_relocs=no
25975 if test $in_tree_gas = yes; then
25976 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25977 then gcc_cv_as_mips_explicit_relocs=yes
25979 elif test x$gcc_cv_as != x; then
25980 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25986 test $ac_status = 0; }; }
25987 then
25988 gcc_cv_as_mips_explicit_relocs=yes
25989 else
25990 echo "configure: failed program was" >&5
25991 cat conftest.s >&5
25993 rm -f conftest.o conftest.s
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25997 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25998 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25999 if test x$target_cpu_default = x
26000 then target_cpu_default=MASK_EXPLICIT_RELOCS
26001 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26005 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26006 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26007 $as_echo_n "(cached) " >&6
26008 else
26009 gcc_cv_as_mips_no_shared=no
26010 if test $in_tree_gas = yes; then
26011 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26012 then gcc_cv_as_mips_no_shared=yes
26014 elif test x$gcc_cv_as != x; then
26015 $as_echo 'nop' > conftest.s
26016 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26021 test $ac_status = 0; }; }
26022 then
26023 gcc_cv_as_mips_no_shared=yes
26024 else
26025 echo "configure: failed program was" >&5
26026 cat conftest.s >&5
26028 rm -f conftest.o conftest.s
26031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26032 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26033 if test $gcc_cv_as_mips_no_shared = yes; then
26035 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26040 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26041 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26042 $as_echo_n "(cached) " >&6
26043 else
26044 gcc_cv_as_mips_gnu_attribute=no
26045 if test $in_tree_gas = yes; then
26046 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26047 then gcc_cv_as_mips_gnu_attribute=yes
26049 elif test x$gcc_cv_as != x; then
26050 $as_echo '.gnu_attribute 4,1' > conftest.s
26051 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26056 test $ac_status = 0; }; }
26057 then
26058 gcc_cv_as_mips_gnu_attribute=yes
26059 else
26060 echo "configure: failed program was" >&5
26061 cat conftest.s >&5
26063 rm -f conftest.o conftest.s
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26067 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26068 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26070 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26075 $as_echo_n "checking assembler for .micromips support... " >&6; }
26076 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26077 $as_echo_n "(cached) " >&6
26078 else
26079 gcc_cv_as_micromips_support=no
26080 if test x$gcc_cv_as != x; then
26081 $as_echo '.set micromips' > conftest.s
26082 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26084 (eval $ac_try) 2>&5
26085 ac_status=$?
26086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26087 test $ac_status = 0; }; }
26088 then
26089 gcc_cv_as_micromips_support=yes
26090 else
26091 echo "configure: failed program was" >&5
26092 cat conftest.s >&5
26094 rm -f conftest.o conftest.s
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26098 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26099 if test $gcc_cv_as_micromips_support = yes; then
26101 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26106 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26107 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26108 $as_echo_n "(cached) " >&6
26109 else
26110 gcc_cv_as_mips_dtprelword=no
26111 if test $in_tree_gas = yes; then
26112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26113 then gcc_cv_as_mips_dtprelword=yes
26115 elif test x$gcc_cv_as != x; then
26116 $as_echo '.section .tdata,"awT",@progbits
26118 .word 2
26119 .text
26120 .dtprelword x+0x8000' > conftest.s
26121 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123 (eval $ac_try) 2>&5
26124 ac_status=$?
26125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126 test $ac_status = 0; }; }
26127 then
26128 gcc_cv_as_mips_dtprelword=yes
26129 else
26130 echo "configure: failed program was" >&5
26131 cat conftest.s >&5
26133 rm -f conftest.o conftest.s
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26137 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26138 if test $gcc_cv_as_mips_dtprelword = yes; then
26140 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26145 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26146 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26147 $as_echo_n "(cached) " >&6
26148 else
26149 gcc_cv_as_mips_dspr1_mult=no
26150 if test x$gcc_cv_as != x; then
26151 $as_echo ' .set mips32r2
26152 .set nodspr2
26153 .set dsp
26154 madd $ac3,$4,$5
26155 maddu $ac3,$4,$5
26156 msub $ac3,$4,$5
26157 msubu $ac3,$4,$5
26158 mult $ac3,$4,$5
26159 multu $ac3,$4,$5' > conftest.s
26160 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26162 (eval $ac_try) 2>&5
26163 ac_status=$?
26164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26165 test $ac_status = 0; }; }
26166 then
26167 gcc_cv_as_mips_dspr1_mult=yes
26168 else
26169 echo "configure: failed program was" >&5
26170 cat conftest.s >&5
26172 rm -f conftest.o conftest.s
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26176 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26177 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26179 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26184 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26185 gcc_cv_as_ld_jalr_reloc=no
26186 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26187 if test $in_tree_ld = yes ; then
26188 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 \
26189 && test $in_tree_ld_is_elf = yes; then
26190 gcc_cv_as_ld_jalr_reloc=yes
26192 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26193 echo ' .ent x' > conftest.s
26194 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26195 echo ' lw $25,%call16(y)($28)' >> conftest.s
26196 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26197 echo '1: jalr $25' >> conftest.s
26198 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26199 echo '1: jalr $25' >> conftest.s
26200 echo ' .end x' >> conftest.s
26201 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26202 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26203 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26204 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26205 gcc_cv_as_ld_jalr_reloc=yes
26208 rm -f conftest.*
26211 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26212 if test x$target_cpu_default = x; then
26213 target_cpu_default=MASK_RELAX_PIC_CALLS
26214 else
26215 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26219 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26222 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26223 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26224 $as_echo_n "(cached) " >&6
26225 else
26226 gcc_cv_ld_mips_personality_relaxation=no
26227 if test $in_tree_ld = yes ; then
26228 if test "$gcc_cv_gld_major_version" -eq 2 \
26229 -a "$gcc_cv_gld_minor_version" -ge 21 \
26230 -o "$gcc_cv_gld_major_version" -gt 2; then
26231 gcc_cv_ld_mips_personality_relaxation=yes
26233 elif test x$gcc_cv_as != x \
26234 -a x$gcc_cv_ld != x \
26235 -a x$gcc_cv_readelf != x ; then
26236 cat > conftest.s <<EOF
26237 .cfi_startproc
26238 .cfi_personality 0x80,indirect_ptr
26239 .ent test
26240 test:
26242 .end test
26243 .cfi_endproc
26245 .section .data,"aw",@progbits
26246 indirect_ptr:
26247 .dc.a personality
26249 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26250 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26251 if $gcc_cv_readelf -d conftest 2>&1 \
26252 | grep TEXTREL > /dev/null 2>&1; then
26254 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26255 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26257 else
26258 gcc_cv_ld_mips_personality_relaxation=yes
26262 rm -f conftest.s conftest.o conftest
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26265 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26266 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26268 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26273 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26274 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26275 $as_echo_n "(cached) " >&6
26276 else
26277 gcc_cv_as_mips_nan=no
26278 if test x$gcc_cv_as != x; then
26279 $as_echo '' > conftest.s
26280 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26282 (eval $ac_try) 2>&5
26283 ac_status=$?
26284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26285 test $ac_status = 0; }; }
26286 then
26287 gcc_cv_as_mips_nan=yes
26288 else
26289 echo "configure: failed program was" >&5
26290 cat conftest.s >&5
26292 rm -f conftest.o conftest.s
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26296 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26297 if test $gcc_cv_as_mips_nan = yes; then
26299 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26302 if test x$gcc_cv_as_mips_nan = xno \
26303 && test x$with_nan != x; then
26304 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26307 esac
26309 # Mips and HP-UX need the GNU assembler.
26310 # Linux on IA64 might be able to use the Intel assembler.
26312 case "$target" in
26313 mips*-*-* | *-*-hpux* )
26314 if test x$gas_flag = xyes \
26315 || test x"$host" != x"$build" \
26316 || test ! -x "$gcc_cv_as" \
26317 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26319 else
26320 echo "*** This configuration requires the GNU assembler" >&2
26321 exit 1
26324 esac
26326 # ??? Not all targets support dwarf2 debug_line, even within a version
26327 # of gas. Moreover, we need to emit a valid instruction to trigger any
26328 # info to the output file. So, as supported targets are added to gas 2.11,
26329 # add some instruction here to (also) show we expect this might work.
26330 # ??? Once 2.11 is released, probably need to add first known working
26331 # version to the per-target configury.
26332 case "$cpu_type" in
26333 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26334 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26335 | xstormy16 | xtensa)
26336 insn="nop"
26338 ia64 | s390)
26339 insn="nop 0"
26341 mmix)
26342 insn="swym 0"
26344 esac
26345 if test x"$insn" != x; then
26346 conftest_s="\
26347 .file 1 \"conftest.s\"
26348 .loc 1 3 0
26349 $insn"
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26351 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26352 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26353 $as_echo_n "(cached) " >&6
26354 else
26355 gcc_cv_as_dwarf2_debug_line=no
26356 if test $in_tree_gas = yes; then
26357 if test $in_tree_gas_is_elf = yes \
26358 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26359 then gcc_cv_as_dwarf2_debug_line=yes
26361 elif test x$gcc_cv_as != x; then
26362 $as_echo "$conftest_s" > conftest.s
26363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26368 test $ac_status = 0; }; }
26369 then
26370 if test x$gcc_cv_objdump != x \
26371 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26372 | grep debug_line > /dev/null 2>&1; then
26373 gcc_cv_as_dwarf2_debug_line=yes
26375 else
26376 echo "configure: failed program was" >&5
26377 cat conftest.s >&5
26379 rm -f conftest.o conftest.s
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26383 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26386 # The .debug_line file table must be in the exact order that
26387 # we specified the files, since these indices are also used
26388 # by DW_AT_decl_file. Approximate this test by testing if
26389 # the assembler bitches if the same index is assigned twice.
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26391 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26392 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26393 $as_echo_n "(cached) " >&6
26394 else
26395 gcc_cv_as_dwarf2_file_buggy=no
26396 if test x$gcc_cv_as != x; then
26397 $as_echo ' .file 1 "foo.s"
26398 .file 1 "bar.s"' > conftest.s
26399 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26401 (eval $ac_try) 2>&5
26402 ac_status=$?
26403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26404 test $ac_status = 0; }; }
26405 then
26406 gcc_cv_as_dwarf2_file_buggy=yes
26407 else
26408 echo "configure: failed program was" >&5
26409 cat conftest.s >&5
26411 rm -f conftest.o conftest.s
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26415 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26418 if test $gcc_cv_as_dwarf2_debug_line = yes \
26419 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26421 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26426 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26427 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26428 $as_echo_n "(cached) " >&6
26429 else
26430 gcc_cv_as_gdwarf2_flag=no
26431 if test $in_tree_gas = yes; then
26432 if test $in_tree_gas_is_elf = yes \
26433 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26434 then gcc_cv_as_gdwarf2_flag=yes
26436 elif test x$gcc_cv_as != x; then
26437 $as_echo "$insn" > conftest.s
26438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26440 (eval $ac_try) 2>&5
26441 ac_status=$?
26442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26443 test $ac_status = 0; }; }
26444 then
26445 gcc_cv_as_gdwarf2_flag=yes
26446 else
26447 echo "configure: failed program was" >&5
26448 cat conftest.s >&5
26450 rm -f conftest.o conftest.s
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26454 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26455 if test $gcc_cv_as_gdwarf2_flag = yes; then
26457 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26462 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26463 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26464 $as_echo_n "(cached) " >&6
26465 else
26466 gcc_cv_as_gstabs_flag=no
26467 if test $in_tree_gas = yes; then
26468 if test $in_tree_gas_is_elf = yes \
26469 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26470 then gcc_cv_as_gstabs_flag=yes
26472 elif test x$gcc_cv_as != x; then
26473 $as_echo "$insn" > conftest.s
26474 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26479 test $ac_status = 0; }; }
26480 then
26481 gcc_cv_as_gstabs_flag=yes
26482 else
26483 echo "configure: failed program was" >&5
26484 cat conftest.s >&5
26486 rm -f conftest.o conftest.s
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26490 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26491 if test $gcc_cv_as_gstabs_flag = yes; then
26493 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26498 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26499 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26500 $as_echo_n "(cached) " >&6
26501 else
26502 gcc_cv_as_debug_prefix_map_flag=no
26503 if test $in_tree_gas = yes; then
26504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26505 then gcc_cv_as_debug_prefix_map_flag=yes
26507 elif test x$gcc_cv_as != x; then
26508 $as_echo "$insn" > conftest.s
26509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26511 (eval $ac_try) 2>&5
26512 ac_status=$?
26513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26514 test $ac_status = 0; }; }
26515 then
26516 gcc_cv_as_debug_prefix_map_flag=yes
26517 else
26518 echo "configure: failed program was" >&5
26519 cat conftest.s >&5
26521 rm -f conftest.o conftest.s
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26525 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26526 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26528 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26534 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26535 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26536 $as_echo_n "(cached) " >&6
26537 else
26538 gcc_cv_as_compress_debug=no
26539 if test x$gcc_cv_as != x; then
26540 $as_echo '' > conftest.s
26541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26543 (eval $ac_try) 2>&5
26544 ac_status=$?
26545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26546 test $ac_status = 0; }; }
26547 then
26548 # gas compiled without zlib cannot compress debug sections and warns
26549 # about it, but still exits successfully. So check for this, too.
26550 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26551 then
26552 gcc_cv_as_compress_debug=0
26553 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26554 then
26555 gcc_cv_as_compress_debug=1
26556 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26557 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26558 else
26559 gcc_cv_as_compress_debug=0
26560 # FIXME: Future gas versions will support ELF gABI style via
26561 # --compress-debug-sections[=type].
26563 else
26564 echo "configure: failed program was" >&5
26565 cat conftest.s >&5
26567 rm -f conftest.o conftest.s
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26571 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26574 cat >>confdefs.h <<_ACEOF
26575 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26576 _ACEOF
26579 cat >>confdefs.h <<_ACEOF
26580 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26581 _ACEOF
26584 cat >>confdefs.h <<_ACEOF
26585 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26586 _ACEOF
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26590 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26591 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26592 $as_echo_n "(cached) " >&6
26593 else
26594 gcc_cv_as_lcomm_with_alignment=no
26595 if test x$gcc_cv_as != x; then
26596 $as_echo '.lcomm bar,4,16' > conftest.s
26597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26602 test $ac_status = 0; }; }
26603 then
26604 gcc_cv_as_lcomm_with_alignment=yes
26605 else
26606 echo "configure: failed program was" >&5
26607 cat conftest.s >&5
26609 rm -f conftest.o conftest.s
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26613 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26614 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26616 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26620 if test x$with_sysroot = x && test x$host = x$target \
26621 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26622 && test "$prefix" != "NONE"; then
26624 cat >>confdefs.h <<_ACEOF
26625 #define PREFIX_INCLUDE_DIR "$prefix/include"
26626 _ACEOF
26630 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26631 if test "x$with_headers" != x; then
26632 target_header_dir=$with_headers
26633 elif test "x$with_sysroot" = x; then
26634 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26635 elif test "x$with_build_sysroot" != "x"; then
26636 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26637 elif test "x$with_sysroot" = xyes; then
26638 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26639 else
26640 target_header_dir="${with_sysroot}${native_system_header_dir}"
26642 else
26643 target_header_dir=${native_system_header_dir}
26646 # Determine the version of glibc, if any, used on the target.
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26648 $as_echo_n "checking for target glibc version... " >&6; }
26650 # Check whether --with-glibc-version was given.
26651 if test "${with_glibc_version+set}" = set; then :
26652 withval=$with_glibc_version;
26653 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26654 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26655 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26656 else
26657 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26659 else
26661 glibc_version_major=0
26662 glibc_version_minor=0
26663 if test -f $target_header_dir/features.h \
26664 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26665 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26666 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26667 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26672 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26674 # Check whether --enable-gnu-unique-object was given.
26675 if test "${enable_gnu_unique_object+set}" = set; then :
26676 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26677 yes | no) ;;
26678 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26679 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26680 esac
26681 else
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26683 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26684 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26685 $as_echo_n "(cached) " >&6
26686 else
26687 gcc_cv_as_gnu_unique_object=no
26688 if test $in_tree_gas = yes; then
26689 if test $in_tree_gas_is_elf = yes \
26690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26691 then gcc_cv_as_gnu_unique_object=yes
26693 elif test x$gcc_cv_as != x; then
26694 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26700 test $ac_status = 0; }; }
26701 then
26702 gcc_cv_as_gnu_unique_object=yes
26703 else
26704 echo "configure: failed program was" >&5
26705 cat conftest.s >&5
26707 rm -f conftest.o conftest.s
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26711 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26712 if test $gcc_cv_as_gnu_unique_object = yes; then
26713 # We need to unquote above to to use the definition from config.gcc.
26714 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26716 if test $glibc_version_major -gt 2 \
26717 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26718 enable_gnu_unique_object=yes
26724 if test x$enable_gnu_unique_object = xyes; then
26726 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26731 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26732 if test "${gcc_cv_as_line_zero+set}" = set; then :
26733 $as_echo_n "(cached) " >&6
26734 else
26735 gcc_cv_as_line_zero=no
26736 if test $in_tree_gas = yes; then
26737 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26738 then gcc_cv_as_line_zero=yes
26740 elif test "x$gcc_cv_as" != x; then
26741 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26742 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26745 ac_status=$?
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; } &&
26748 test "x`cat conftest.out`" = x
26749 then
26750 gcc_cv_as_line_zero=yes
26751 else
26752 echo "configure: failed program was" >&5
26753 cat conftest.s >&5
26754 echo "configure: error output was" >&5
26755 cat conftest.out >&5
26757 rm -f conftest.o conftest.s conftest.out
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26761 $as_echo "$gcc_cv_as_line_zero" >&6; }
26762 if test "x$gcc_cv_as_line_zero" = xyes; then
26764 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26769 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26770 gcc_cv_ld_eh_frame_hdr=no
26771 if test $in_tree_ld = yes ; then
26772 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 \
26773 && test $in_tree_ld_is_elf = yes; then
26774 gcc_cv_ld_eh_frame_hdr=yes
26776 elif test x$gcc_cv_ld != x; then
26777 if echo "$ld_ver" | grep GNU > /dev/null; then
26778 # Check if linker supports --eh-frame-hdr option
26779 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26780 gcc_cv_ld_eh_frame_hdr=yes
26782 else
26783 case "$target" in
26784 *-*-solaris2*)
26785 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26786 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26787 gcc_cv_ld_eh_frame_hdr=yes
26790 esac
26794 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26796 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26800 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26803 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26804 gcc_cv_ld_eh_frame_ciev3=no
26805 if test $in_tree_ld = yes ; then
26806 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 \
26807 && test $in_tree_ld_is_elf = yes; then
26808 gcc_cv_ld_eh_frame_ciev3=yes
26810 elif test x$gcc_cv_ld != x; then
26811 if echo "$ld_ver" | grep GNU > /dev/null; then
26812 gcc_cv_ld_eh_frame_ciev3=yes
26813 if test 0"$ld_date" -lt 20040513; then
26814 if test -n "$ld_date"; then
26815 # If there was date string, but was earlier than 2004-05-13, fail
26816 gcc_cv_ld_eh_frame_ciev3=no
26817 elif test "$ld_vers_major" -lt 2; then
26818 gcc_cv_ld_eh_frame_ciev3=no
26819 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26820 gcc_cv_ld_eh_frame_ciev3=no
26823 else
26824 case "$target" in
26825 *-*-solaris2*)
26826 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26827 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26828 gcc_cv_ld_eh_frame_ciev3=yes
26831 esac
26835 cat >>confdefs.h <<_ACEOF
26836 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26837 _ACEOF
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26840 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26843 $as_echo_n "checking linker position independent executable support... " >&6; }
26844 gcc_cv_ld_pie=no
26845 if test $in_tree_ld = yes ; then
26846 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
26847 && test $in_tree_ld_is_elf = yes; then
26848 gcc_cv_ld_pie=yes
26850 elif test x$gcc_cv_ld != x; then
26851 # Check if linker supports -pie option
26852 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26853 gcc_cv_ld_pie=yes
26856 if test x"$gcc_cv_ld_pie" = xyes; then
26858 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26862 $as_echo "$gcc_cv_ld_pie" >&6; }
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26865 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26866 gcc_cv_ld_eh_gc_sections=no
26867 if test $in_tree_ld = yes ; then
26868 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 \
26869 && test $in_tree_ld_is_elf = yes; then
26870 gcc_cv_ld_eh_gc_sections=yes
26872 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26873 cat > conftest.s <<EOF
26874 .section .text
26875 .globl _start
26876 .type _start, @function
26877 _start:
26878 .long foo
26879 .size _start, .-_start
26880 .section .text.foo,"ax",@progbits
26881 .type foo, @function
26882 foo:
26883 .long 0
26884 .size foo, .-foo
26885 .section .gcc_except_table.foo,"a",@progbits
26886 .L0:
26887 .long 0
26888 .section .eh_frame,"a",@progbits
26889 .long .L0
26891 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26892 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26893 | grep "gc-sections option ignored" > /dev/null; then
26894 gcc_cv_ld_eh_gc_sections=no
26895 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26896 | grep gcc_except_table > /dev/null; then
26897 gcc_cv_ld_eh_gc_sections=yes
26898 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26899 if test x$gcc_cv_as_comdat_group != xyes; then
26900 gcc_cv_ld_eh_gc_sections=no
26901 cat > conftest.s <<EOF
26902 .section .text
26903 .globl _start
26904 .type _start, @function
26905 _start:
26906 .long foo
26907 .size _start, .-_start
26908 .section .gnu.linkonce.t.foo,"ax",@progbits
26909 .type foo, @function
26910 foo:
26911 .long 0
26912 .size foo, .-foo
26913 .section .gcc_except_table.foo,"a",@progbits
26914 .L0:
26915 .long 0
26916 .section .eh_frame,"a",@progbits
26917 .long .L0
26919 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26920 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26921 | grep "gc-sections option ignored" > /dev/null; then
26922 gcc_cv_ld_eh_gc_sections=no
26923 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26924 | grep gcc_except_table > /dev/null; then
26925 gcc_cv_ld_eh_gc_sections=yes
26931 rm -f conftest.s conftest.o conftest
26933 case "$target" in
26934 hppa*-*-linux*)
26935 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26936 gcc_cv_ld_eh_gc_sections=no
26938 esac
26939 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26941 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26945 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26948 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26949 gcc_cv_ld_eh_gc_sections_bug=no
26950 if test $in_tree_ld = yes ; then
26951 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 \
26952 && test $in_tree_ld_is_elf = yes; then
26953 gcc_cv_ld_eh_gc_sections_bug=yes
26955 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
26956 gcc_cv_ld_eh_gc_sections_bug=yes
26957 cat > conftest.s <<EOF
26958 .section .text
26959 .globl _start
26960 .type _start, @function
26961 _start:
26962 .long foo
26963 .size _start, .-_start
26964 .section .text.startup.foo,"ax",@progbits
26965 .type foo, @function
26966 foo:
26967 .long 0
26968 .size foo, .-foo
26969 .section .gcc_except_table.foo,"a",@progbits
26970 .L0:
26971 .long 0
26972 .section .eh_frame,"a",@progbits
26973 .long .L0
26975 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26976 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26977 | grep "gc-sections option ignored" > /dev/null; then
26979 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26980 | grep gcc_except_table > /dev/null; then
26981 gcc_cv_ld_eh_gc_sections_bug=no
26984 rm -f conftest.s conftest.o conftest
26986 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26988 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26992 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
26995 $as_echo_n "checking linker for compressed debug sections... " >&6; }
26996 # gold/gld support compressed debug sections since binutils 2.19/2.21
26997 if test $in_tree_ld = yes ; then
26998 gcc_cv_ld_compress_debug=0
26999 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 \
27000 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27001 gcc_cv_ld_compress_debug=2
27002 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27003 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 \
27004 && test $in_tree_ld_is_elf = yes; then
27005 gcc_cv_ld_compress_debug=1
27007 elif echo "$ld_ver" | grep GNU > /dev/null; then
27008 gcc_cv_ld_compress_debug=1
27009 if test 0"$ld_date" -lt 20050308; then
27010 if test -n "$ld_date"; then
27011 # If there was date string, but was earlier than 2005-03-08, fail
27012 gcc_cv_ld_compress_debug=0
27013 elif test "$ld_vers_major" -lt 2; then
27014 gcc_cv_ld_compress_debug=0
27015 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27016 gcc_cv_ld_compress_debug=0
27019 if test $ld_is_gold = yes; then
27020 gcc_cv_ld_compress_debug=2
27021 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27023 else
27024 case "${target}" in
27025 *-*-solaris2*)
27026 # Introduced in Solaris 11.2.
27027 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27028 gcc_cv_ld_compress_debug=3
27029 gcc_cv_ld_compress_debug_option="-z compress-sections"
27030 else
27031 gcc_cv_ld_compress_debug=0
27035 # Assume linkers other than GNU ld don't support compessed debug
27036 # sections.
27037 gcc_cv_ld_compress_debug=0
27039 esac
27042 cat >>confdefs.h <<_ACEOF
27043 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27044 _ACEOF
27047 cat >>confdefs.h <<_ACEOF
27048 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27049 _ACEOF
27051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27052 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27054 # --------
27055 # UNSORTED
27056 # --------
27058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27059 $as_echo_n "checking linker --as-needed support... " >&6; }
27060 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27061 $as_echo_n "(cached) " >&6
27062 else
27063 gcc_cv_ld_as_needed=no
27064 gcc_cv_ld_as_needed_option='--as-needed'
27065 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27066 if test $in_tree_ld = yes ; then
27067 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 \
27068 && test $in_tree_ld_is_elf = yes; then
27069 gcc_cv_ld_as_needed=yes
27071 elif test x$gcc_cv_ld != x; then
27072 # Check if linker supports --as-needed and --no-as-needed options
27073 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27074 gcc_cv_ld_as_needed=yes
27075 else
27076 case "$target" in
27077 # Solaris 2 ld always supports -z ignore/-z record.
27078 *-*-solaris2*)
27079 gcc_cv_ld_as_needed=yes
27080 gcc_cv_ld_as_needed_option="-z ignore"
27081 gcc_cv_ld_no_as_needed_option="-z record"
27083 esac
27086 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27087 # dl_iterate_phdr, i.e. since Solaris 11.
27088 case "$target" in
27089 *-*-solaris2.1[1-9]*)
27090 case "$target" in
27091 i?86-*-* | x86_64-*-*)
27092 if echo "$ld_ver" | grep GNU > /dev/null; then
27093 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27094 gcc_cv_ld_as_needed=no
27097 esac
27099 *-*-solaris2*)
27100 gcc_cv_ld_as_needed=no
27102 esac
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27106 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27107 if test x"$gcc_cv_ld_as_needed" = xyes; then
27109 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27112 cat >>confdefs.h <<_ACEOF
27113 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27114 _ACEOF
27117 cat >>confdefs.h <<_ACEOF
27118 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27119 _ACEOF
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27124 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27125 saved_LDFLAGS="$LDFLAGS"
27126 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27127 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27129 /* end confdefs.h. */
27130 int main(void) {return 0;}
27131 _ACEOF
27132 if ac_fn_c_try_link "$LINENO"; then :
27133 gcc_cv_ld_clearcap=yes; break
27134 else
27135 gcc_cv_ld_clearcap=no
27137 rm -f core conftest.err conftest.$ac_objext \
27138 conftest$ac_exeext conftest.$ac_ext
27139 done
27140 LDFLAGS="$saved_LDFLAGS"
27141 if test "x$gcc_cv_ld_clearcap" = xyes; then
27143 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27145 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27149 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27151 case "$target:$tm_file" in
27152 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27153 case "$target" in
27154 *le-*-linux*)
27155 emul_name="-melf64lppc"
27157 *-*-linux*)
27158 emul_name="-melf64ppc"
27160 *-*-freebsd*)
27161 emul_name="-melf64ppc_fbsd"
27163 esac
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27165 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27166 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27167 $as_echo_n "(cached) " >&6
27168 else
27169 gcc_cv_ld_no_dot_syms=no
27170 if test x"$ld_is_gold" = xyes; then
27171 gcc_cv_ld_no_dot_syms=yes
27172 elif test $in_tree_ld = yes ; then
27173 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
27174 gcc_cv_ld_no_dot_syms=yes
27176 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27177 cat > conftest1.s <<EOF
27178 .text
27179 bl .foo
27181 cat > conftest2.s <<EOF
27182 .section ".opd","aw"
27183 .align 3
27184 .globl foo
27185 .type foo,@function
27186 foo:
27187 .quad .LEfoo,.TOC.@tocbase,0
27188 .text
27189 .LEfoo:
27191 .size foo,.-.LEfoo
27193 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27194 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27195 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27196 gcc_cv_ld_no_dot_syms=yes
27198 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27203 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27204 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27206 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27211 $as_echo_n "checking linker large toc support... " >&6; }
27212 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27213 $as_echo_n "(cached) " >&6
27214 else
27215 gcc_cv_ld_large_toc=no
27216 if test x"$ld_is_gold" = xyes; then
27217 gcc_cv_ld_large_toc=yes
27218 elif test $in_tree_ld = yes ; then
27219 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
27220 gcc_cv_ld_large_toc=yes
27222 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27223 cat > conftest.s <<EOF
27224 .section ".tbss","awT",@nobits
27225 .align 3
27226 ie0: .space 8
27227 .global _start
27228 .text
27229 _start:
27230 addis 9,13,ie0@got@tprel@ha
27231 ld 9,ie0@got@tprel@l(9)
27233 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27234 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27235 gcc_cv_ld_large_toc=yes
27237 rm -f conftest conftest.o conftest.s
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27242 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27243 if test x"$gcc_cv_ld_large_toc" = xyes; then
27245 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27249 esac
27251 case "$target" in
27252 *-*-aix*)
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27254 $as_echo_n "checking linker large toc support... " >&6; }
27255 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27256 $as_echo_n "(cached) " >&6
27257 else
27258 gcc_cv_ld_large_toc=no
27259 if test x$gcc_cv_as != x ; then
27260 cat > conftest.s <<EOF
27261 .toc
27262 LC..1:
27263 .tc a[TC],a[RW]
27264 .extern a[RW]
27265 .csect .text[PR]
27266 .largetoctest:
27267 addis 9,LC..1@u(2)
27268 ld 3,LC..1@l(9)
27270 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27271 gcc_cv_ld_large_toc=yes
27273 rm -f conftest conftest.o conftest.s
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27278 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27279 if test x"$gcc_cv_ld_large_toc" = xyes; then
27281 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27285 esac
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27288 $as_echo_n "checking linker --build-id support... " >&6; }
27289 if test "${gcc_cv_ld_buildid+set}" = set; then :
27290 $as_echo_n "(cached) " >&6
27291 else
27292 gcc_cv_ld_buildid=no
27293 if test $in_tree_ld = yes ; then
27294 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27295 "$gcc_cv_gld_minor_version" -ge 18 -o \
27296 "$gcc_cv_gld_major_version" -gt 2 \
27297 && test $in_tree_ld_is_elf = yes; then
27298 gcc_cv_ld_buildid=yes
27300 elif test x$gcc_cv_ld != x; then
27301 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27302 gcc_cv_ld_buildid=yes
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27307 $as_echo "$gcc_cv_ld_buildid" >&6; }
27308 if test x"$gcc_cv_ld_buildid" = xyes; then
27310 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27314 # Check whether --enable-linker-build-id was given.
27315 if test "${enable_linker_build_id+set}" = set; then :
27316 enableval=$enable_linker_build_id;
27317 else
27318 enable_linker_build_id=no
27322 if test x"$enable_linker_build_id" = xyes; then
27323 if test x"$gcc_cv_ld_buildid" = xyes; then
27325 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27327 else
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27329 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27333 # In binutils 2.21, GNU ld gained support for new emulations fully
27334 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27336 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27337 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27338 $as_echo_n "(cached) " >&6
27339 else
27340 gcc_cv_ld_sol2_emulation=no
27341 if test $in_tree_ld = yes ; then
27342 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27343 "$gcc_cv_gld_minor_version" -ge 21 -o \
27344 "$gcc_cv_gld_major_version" -gt 2 \
27345 && test $in_tree_ld_is_elf = yes; then
27346 gcc_cv_ld_sol2_emulation=yes
27348 elif test x$gcc_cv_ld != x; then
27349 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27350 grep _sol2 > /dev/null; then
27351 gcc_cv_ld_sol2_emulation=yes
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27356 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27357 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27359 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27364 $as_echo_n "checking linker --sysroot support... " >&6; }
27365 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27366 $as_echo_n "(cached) " >&6
27367 else
27368 gcc_cv_ld_sysroot=no
27369 if test $in_tree_ld = yes ; then
27370 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
27371 gcc_cv_ld_sysroot=yes
27373 elif test x$gcc_cv_ld != x; then
27374 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27375 gcc_cv_ld_sysroot=yes
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27380 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27381 if test x"$gcc_cv_ld_sysroot" = xyes; then
27383 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27387 # Test for stack protector support in target C library.
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27389 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27390 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27391 $as_echo_n "(cached) " >&6
27392 else
27393 gcc_cv_libc_provides_ssp=no
27394 case "$target" in
27395 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27396 # glibc 2.4 and later provides __stack_chk_fail and
27397 # either __stack_chk_guard, or TLS access to stack guard canary.
27399 if test $glibc_version_major -gt 2 \
27400 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27401 gcc_cv_libc_provides_ssp=yes
27402 else
27404 if test -f $target_header_dir/features.h \
27405 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27406 $target_header_dir/features.h > /dev/null; then
27407 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27408 $target_header_dir/features.h > /dev/null && \
27409 test -f $target_header_dir/bits/uClibc_config.h && \
27410 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27411 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27412 gcc_cv_libc_provides_ssp=yes
27414 # all versions of Bionic support stack protector
27415 elif test -f $target_header_dir/sys/cdefs.h \
27416 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27417 $target_header_dir/sys/cdefs.h > /dev/null; then
27418 gcc_cv_libc_provides_ssp=yes
27422 *-*-gnu*)
27423 # Avoid complicated tests (see
27424 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27425 # simply assert that glibc does provide this, which is true for all
27426 # realistically usable GNU/Hurd configurations.
27427 gcc_cv_libc_provides_ssp=yes;;
27428 *-*-darwin* | *-*-freebsd*)
27429 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27430 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27431 gcc_cv_libc_provides_ssp=yes
27432 else
27433 echo "no __stack_chk_fail on this target"
27437 *) gcc_cv_libc_provides_ssp=no ;;
27438 esac
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27441 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27443 if test x$gcc_cv_libc_provides_ssp = xyes; then
27445 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27449 # Test for <sys/sdt.h> on the target.
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27452 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27453 have_sys_sdt_h=no
27454 if test -f $target_header_dir/sys/sdt.h; then
27455 have_sys_sdt_h=yes
27457 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27461 $as_echo "$have_sys_sdt_h" >&6; }
27463 # Check if TFmode long double should be used by default or not.
27464 # Some glibc targets used DFmode long double, but with glibc 2.4
27465 # and later they can use TFmode.
27466 case "$target" in
27467 powerpc*-*-linux* | \
27468 sparc*-*-linux* | \
27469 s390*-*-linux* | \
27470 alpha*-*-linux*)
27472 # Check whether --with-long-double-128 was given.
27473 if test "${with_long_double_128+set}" = set; then :
27474 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27475 else
27477 if test $glibc_version_major -gt 2 \
27478 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27479 gcc_cv_target_ldbl128=yes
27480 else
27482 gcc_cv_target_ldbl128=no
27483 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27484 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27485 && gcc_cv_target_ldbl128=yes
27491 esac
27492 if test x$gcc_cv_target_ldbl128 = xyes; then
27494 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27499 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27500 gcc_cv_target_dl_iterate_phdr=unknown
27501 case "$target" in
27502 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27503 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27504 # libdl there, both complicating its use and breaking compatibility
27505 # between Solaris 10 updates.
27506 *-*-solaris2.1[1-9]*)
27507 # <link.h> needs both a dl_iterate_phdr declaration and support for
27508 # compilation with largefile support.
27509 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27510 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27511 gcc_cv_target_dl_iterate_phdr=yes
27512 else
27513 gcc_cv_target_dl_iterate_phdr=no
27516 *-*-dragonfly* | *-*-freebsd*)
27517 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27518 gcc_cv_target_dl_iterate_phdr=yes
27519 else
27520 gcc_cv_target_dl_iterate_phdr=no
27523 esac
27525 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27527 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27531 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27533 # We no longer support different GC mechanisms. Emit an error if
27534 # the user configures with --with-gc.
27536 # Check whether --with-gc was given.
27537 if test "${with_gc+set}" = set; then :
27538 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27542 # Libraries to use on the host. This will normally be set by the top
27543 # level Makefile. Here we simply capture the value for our Makefile.
27544 if test -z "${HOST_LIBS+set}"; then
27545 HOST_LIBS=
27549 # Use the system's zlib library.
27550 zlibdir=-L../zlib
27551 zlibinc="-I\$(srcdir)/../zlib"
27553 # Check whether --with-system-zlib was given.
27554 if test "${with_system_zlib+set}" = set; then :
27555 withval=$with_system_zlib; zlibdir=
27556 zlibinc=
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27565 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27566 # Check whether --enable-maintainer-mode was given.
27567 if test "${enable_maintainer_mode+set}" = set; then :
27568 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27569 else
27570 maintainer_mode=no
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27575 $as_echo "$maintainer_mode" >&6; }
27577 if test "$maintainer_mode" = "yes"; then
27578 MAINT=''
27579 else
27580 MAINT='#'
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27585 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27586 # Check whether --enable-link-mutex was given.
27587 if test "${enable_link_mutex+set}" = set; then :
27588 enableval=$enable_link_mutex; do_link_mutex=$enableval
27589 else
27590 do_link_mutex=no
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27594 $as_echo "$do_link_mutex" >&6; }
27596 if test "$do_link_mutex" = "yes"; then
27597 DO_LINK_MUTEX=true
27598 else
27599 DO_LINK_MUTEX=false
27603 # --------------
27604 # Language hooks
27605 # --------------
27607 # Make empty files to contain the specs and options for each language.
27608 # Then add #include lines to for a compiler that has specs and/or options.
27610 subdirs=
27611 lang_opt_files=
27612 lang_specs_files=
27613 lang_tree_files=
27614 # These (without "all_") are set in each config-lang.in.
27615 # `language' must be a single word so is spelled singularly.
27616 all_languages=
27617 all_compilers=
27618 all_outputs='Makefile'
27619 # List of language makefile fragments.
27620 all_lang_makefrags=
27621 # Additional files for gengtype
27622 all_gtfiles="$target_gtfiles"
27624 # These are the languages that are set in --enable-languages,
27625 # and are available in the GCC tree.
27626 all_selected_languages=
27628 # Add the language fragments.
27629 # Languages are added via two mechanisms. Some information must be
27630 # recorded in makefile variables, these are defined in config-lang.in.
27631 # We accumulate them and plug them into the main Makefile.
27632 # The other mechanism is a set of hooks for each of the main targets
27633 # like `clean', `install', etc.
27635 language_hooks="Make-hooks"
27637 for lang in ${srcdir}/*/config-lang.in
27639 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27641 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27642 if test "x$lang_alias" = x
27643 then
27644 echo "$lang doesn't set \$language." 1>&2
27645 exit 1
27647 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27648 subdirs="$subdirs $subdir"
27650 # $gcc_subdir is where the gcc integration files are to be found
27651 # for a language, both for internal compiler purposes (compiler
27652 # sources implementing front-end to GCC tree converters), and for
27653 # build infrastructure purposes (Make-lang.in, etc.)
27655 # This will be <subdir> (relative to $srcdir) if a line like
27656 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27657 # is found in <langdir>/config-lang.in, and will remain <langdir>
27658 # otherwise.
27660 # Except for the language alias (fetched above), the regular
27661 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27662 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27663 # only this and the language alias.
27665 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27666 if [ "$gcc_subdir" = "" ]; then
27667 gcc_subdir="$subdir"
27670 case ",$enable_languages," in
27671 *,$lang_alias,*)
27672 all_selected_languages="$all_selected_languages $lang_alias"
27673 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27674 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27677 esac
27679 language=
27680 boot_language=
27681 compilers=
27682 outputs=
27683 gtfiles=
27684 subdir_requires=
27685 . ${srcdir}/$gcc_subdir/config-lang.in
27686 if test "x$language" = x
27687 then
27688 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27689 exit 1
27692 ok=:
27693 case ",$enable_languages," in
27694 *,$lang_alias,*) ;;
27696 for i in $subdir_requires; do
27697 test -f "${srcdir}/$i/config-lang.in" && continue
27698 ok=false
27699 break
27700 done
27702 esac
27703 $ok || continue
27705 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27706 if test -f $srcdir/$gcc_subdir/lang.opt; then
27707 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27708 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27710 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27711 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27713 all_languages="$all_languages $language"
27714 all_compilers="$all_compilers $compilers"
27715 all_outputs="$all_outputs $outputs"
27716 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27717 case ",$enable_languages," in
27718 *,lto,*)
27720 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27722 enable_lto=yes
27725 *) ;;
27726 esac
27727 done
27729 check_languages=
27730 for language in $all_selected_languages
27732 check_languages="$check_languages check-$language"
27733 done
27735 # We link each language in with a set of hooks, reached indirectly via
27736 # lang.${target}. Only do so for selected languages.
27738 rm -f Make-hooks
27739 touch Make-hooks
27740 target_list="all.cross start.encap rest.encap tags \
27741 install-common install-man install-info install-pdf install-html dvi \
27742 pdf html uninstall info man srcextra srcman srcinfo \
27743 mostlyclean clean distclean maintainer-clean install-plugin"
27745 for t in $target_list
27748 for lang in $all_selected_languages
27750 x="$x $lang.$t"
27751 done
27752 echo "lang.$t: $x" >> Make-hooks
27753 done
27755 # --------
27756 # Option include files
27757 # --------
27759 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27760 option_includes="option-includes.mk"
27763 # --------
27764 # UNSORTED
27765 # --------
27767 # Create .gdbinit.
27769 echo "dir ." > .gdbinit
27770 echo "dir ${srcdir}" >> .gdbinit
27771 if test x$gdb_needs_out_file_path = xyes
27772 then
27773 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27775 if test "x$subdirs" != x; then
27776 for s in $subdirs
27778 echo "dir ${srcdir}/$s" >> .gdbinit
27779 done
27781 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27782 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27784 # Put a breakpoint on __asan_report_error to help with debugging buffer
27785 # overflow.
27786 case "$CFLAGS" in
27787 *-fsanitize=address*)
27788 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27790 esac
27792 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27796 # Find a directory in which to install a shared libgcc.
27798 # Check whether --enable-version-specific-runtime-libs was given.
27799 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27800 enableval=$enable_version_specific_runtime_libs;
27804 # Substitute configuration variables
27867 # Echo link setup.
27868 if test x${build} = x${host} ; then
27869 if test x${host} = x${target} ; then
27870 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27871 else
27872 echo "Links are now set up to build a cross-compiler" 1>&2
27873 echo " from ${host} to ${target}." 1>&2
27875 else
27876 if test x${host} = x${target} ; then
27877 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27878 echo " for ${target}." 1>&2
27879 else
27880 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27881 echo " from ${host} to ${target}." 1>&2
27890 if test "x${ISLLIBS}" != "x" ; then
27892 $as_echo "#define HAVE_isl 1" >>confdefs.h
27898 if test "x${CLOOGLIBS}" != "x" ; then
27900 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27904 # Check for plugin support
27905 # Check whether --enable-plugin was given.
27906 if test "${enable_plugin+set}" = set; then :
27907 enableval=$enable_plugin; enable_plugin=$enableval
27908 else
27909 enable_plugin=yes; default_plugin=yes
27913 pluginlibs=
27915 case "${host}" in
27916 *-*-darwin*)
27917 if test x$build = x$host; then
27918 export_sym_check="nm${exeext} -g"
27919 elif test x$host = x$target; then
27920 export_sym_check="$gcc_cv_nm -g"
27921 else
27922 export_sym_check=
27926 if test x$build = x$host; then
27927 export_sym_check="objdump${exeext} -T"
27928 elif test x$host = x$target; then
27929 export_sym_check="$gcc_cv_objdump -T"
27930 else
27931 export_sym_check=
27934 esac
27936 if test x"$enable_plugin" = x"yes"; then
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27939 $as_echo_n "checking for exported symbols... " >&6; }
27940 if test "x$export_sym_check" != x; then
27941 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27942 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27943 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27944 : # No need to use a flag
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27946 $as_echo "yes" >&6; }
27947 else
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27949 $as_echo "yes" >&6; }
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27951 $as_echo_n "checking for -rdynamic... " >&6; }
27952 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
27953 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
27954 plugin_rdynamic=yes
27955 pluginlibs="-rdynamic"
27956 else
27957 plugin_rdynamic=no
27958 enable_plugin=no
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27961 $as_echo "$plugin_rdynamic" >&6; }
27963 else
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27965 $as_echo "unable to check" >&6; }
27968 # Check -ldl
27969 saved_LIBS="$LIBS"
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27971 $as_echo_n "checking for library containing dlopen... " >&6; }
27972 if test "${ac_cv_search_dlopen+set}" = set; then :
27973 $as_echo_n "(cached) " >&6
27974 else
27975 ac_func_search_save_LIBS=$LIBS
27976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27977 /* end confdefs.h. */
27979 /* Override any GCC internal prototype to avoid an error.
27980 Use char because int might match the return type of a GCC
27981 builtin and then its argument prototype would still apply. */
27982 #ifdef __cplusplus
27983 extern "C"
27984 #endif
27985 char dlopen ();
27987 main ()
27989 return dlopen ();
27991 return 0;
27993 _ACEOF
27994 for ac_lib in '' dl; do
27995 if test -z "$ac_lib"; then
27996 ac_res="none required"
27997 else
27998 ac_res=-l$ac_lib
27999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28001 if ac_fn_c_try_link "$LINENO"; then :
28002 ac_cv_search_dlopen=$ac_res
28004 rm -f core conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext
28006 if test "${ac_cv_search_dlopen+set}" = set; then :
28007 break
28009 done
28010 if test "${ac_cv_search_dlopen+set}" = set; then :
28012 else
28013 ac_cv_search_dlopen=no
28015 rm conftest.$ac_ext
28016 LIBS=$ac_func_search_save_LIBS
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28019 $as_echo "$ac_cv_search_dlopen" >&6; }
28020 ac_res=$ac_cv_search_dlopen
28021 if test "$ac_res" != no; then :
28022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28026 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28027 pluginlibs="$pluginlibs -ldl"
28029 LIBS="$saved_LIBS"
28031 # Check that we can build shared objects with -fPIC -shared
28032 saved_LDFLAGS="$LDFLAGS"
28033 saved_CFLAGS="$CFLAGS"
28034 case "${host}" in
28035 *-*-darwin*)
28036 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28037 CFLAGS="$CFLAGS -fPIC"
28038 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28041 CFLAGS="$CFLAGS -fPIC"
28042 LDFLAGS="$LDFLAGS -fPIC -shared"
28044 esac
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28046 $as_echo_n "checking for -fPIC -shared... " >&6; }
28047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28048 /* end confdefs.h. */
28049 extern int X;
28051 main ()
28053 return X == 0;
28055 return 0;
28057 _ACEOF
28058 if ac_fn_c_try_link "$LINENO"; then :
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28060 $as_echo "yes" >&6; }; have_pic_shared=yes
28061 else
28062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28063 $as_echo "no" >&6; }; have_pic_shared=no
28065 rm -f core conftest.err conftest.$ac_objext \
28066 conftest$ac_exeext conftest.$ac_ext
28067 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28068 pluginlibs=
28069 enable_plugin=no
28071 LDFLAGS="$saved_LDFLAGS"
28072 CFLAGS="$saved_CFLAGS"
28074 # If plugin support had been requested but not available, fail.
28075 if test x"$enable_plugin" = x"no" ; then
28076 if test x"$default_plugin" != x"yes"; then
28077 as_fn_error "
28078 Building GCC with plugin support requires a host that supports
28079 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28086 if test x"$enable_plugin" = x"yes"; then
28088 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28093 # Enable --enable-host-shared
28094 # Check whether --enable-host-shared was given.
28095 if test "${enable_host_shared+set}" = set; then :
28096 enableval=$enable_host_shared; PICFLAG=-fPIC
28097 else
28098 PICFLAG=
28105 # Check whether --enable-libquadmath-support was given.
28106 if test "${enable_libquadmath_support+set}" = set; then :
28107 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28108 else
28109 ENABLE_LIBQUADMATH_SUPPORT=yes
28112 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28114 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28119 # Specify what hash style to use by default.
28121 # Check whether --with-linker-hash-style was given.
28122 if test "${with_linker_hash_style+set}" = set; then :
28123 withval=$with_linker_hash_style; case x"$withval" in
28124 xsysv)
28125 LINKER_HASH_STYLE=sysv
28127 xgnu)
28128 LINKER_HASH_STYLE=gnu
28130 xboth)
28131 LINKER_HASH_STYLE=both
28134 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28136 esac
28137 else
28138 LINKER_HASH_STYLE=''
28141 if test x"${LINKER_HASH_STYLE}" != x; then
28143 cat >>confdefs.h <<_ACEOF
28144 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28145 _ACEOF
28149 # Configure the subdirectories
28150 # AC_CONFIG_SUBDIRS($subdirs)
28152 # Create the Makefile
28153 # and configure language subdirectories
28154 ac_config_files="$ac_config_files $all_outputs"
28157 ac_config_commands="$ac_config_commands default"
28159 cat >confcache <<\_ACEOF
28160 # This file is a shell script that caches the results of configure
28161 # tests run on this system so they can be shared between configure
28162 # scripts and configure runs, see configure's option --config-cache.
28163 # It is not useful on other systems. If it contains results you don't
28164 # want to keep, you may remove or edit it.
28166 # config.status only pays attention to the cache file if you give it
28167 # the --recheck option to rerun configure.
28169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28171 # following values.
28173 _ACEOF
28175 # The following way of writing the cache mishandles newlines in values,
28176 # but we know of no workaround that is simple, portable, and efficient.
28177 # So, we kill variables containing newlines.
28178 # Ultrix sh set writes to stderr and can't be redirected directly,
28179 # and sets the high bit in the cache file unless we assign to the vars.
28181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28182 eval ac_val=\$$ac_var
28183 case $ac_val in #(
28184 *${as_nl}*)
28185 case $ac_var in #(
28186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28188 esac
28189 case $ac_var in #(
28190 _ | IFS | as_nl) ;; #(
28191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28192 *) { eval $ac_var=; unset $ac_var;} ;;
28193 esac ;;
28194 esac
28195 done
28197 (set) 2>&1 |
28198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28199 *${as_nl}ac_space=\ *)
28200 # `set' does not quote correctly, so add quotes: double-quote
28201 # substitution turns \\\\ into \\, and sed turns \\ into \.
28202 sed -n \
28203 "s/'/'\\\\''/g;
28204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28205 ;; #(
28207 # `set' quotes correctly as required by POSIX, so do not add quotes.
28208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28210 esac |
28211 sort
28213 sed '
28214 /^ac_cv_env_/b end
28215 t clear
28216 :clear
28217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28218 t end
28219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28220 :end' >>confcache
28221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28222 if test -w "$cache_file"; then
28223 test "x$cache_file" != "x/dev/null" &&
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28225 $as_echo "$as_me: updating cache $cache_file" >&6;}
28226 cat confcache >$cache_file
28227 else
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28232 rm -f confcache
28234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28235 # Let make expand exec_prefix.
28236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28238 DEFS=-DHAVE_CONFIG_H
28240 ac_libobjs=
28241 ac_ltlibobjs=
28242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28243 # 1. Remove the extension, and $U if already installed.
28244 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28245 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28246 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28247 # will be set to the directory where LIBOBJS objects are built.
28248 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28249 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28250 done
28251 LIBOBJS=$ac_libobjs
28253 LTLIBOBJS=$ac_ltlibobjs
28258 : ${CONFIG_STATUS=./config.status}
28259 ac_write_fail=0
28260 ac_clean_files_save=$ac_clean_files
28261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28264 as_write_fail=0
28265 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28266 #! $SHELL
28267 # Generated by $as_me.
28268 # Run this file to recreate the current configuration.
28269 # Compiler output produced by configure, useful for debugging
28270 # configure, is in config.log if it exists.
28272 debug=false
28273 ac_cs_recheck=false
28274 ac_cs_silent=false
28276 SHELL=\${CONFIG_SHELL-$SHELL}
28277 export SHELL
28278 _ASEOF
28279 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28280 ## -------------------- ##
28281 ## M4sh Initialization. ##
28282 ## -------------------- ##
28284 # Be more Bourne compatible
28285 DUALCASE=1; export DUALCASE # for MKS sh
28286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28287 emulate sh
28288 NULLCMD=:
28289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28290 # is contrary to our usage. Disable this feature.
28291 alias -g '${1+"$@"}'='"$@"'
28292 setopt NO_GLOB_SUBST
28293 else
28294 case `(set -o) 2>/dev/null` in #(
28295 *posix*) :
28296 set -o posix ;; #(
28297 *) :
28299 esac
28303 as_nl='
28305 export as_nl
28306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28307 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28310 # Prefer a ksh shell builtin over an external printf program on Solaris,
28311 # but without wasting forks for bash or zsh.
28312 if test -z "$BASH_VERSION$ZSH_VERSION" \
28313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28314 as_echo='print -r --'
28315 as_echo_n='print -rn --'
28316 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28317 as_echo='printf %s\n'
28318 as_echo_n='printf %s'
28319 else
28320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28322 as_echo_n='/usr/ucb/echo -n'
28323 else
28324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28325 as_echo_n_body='eval
28326 arg=$1;
28327 case $arg in #(
28328 *"$as_nl"*)
28329 expr "X$arg" : "X\\(.*\\)$as_nl";
28330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28331 esac;
28332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28334 export as_echo_n_body
28335 as_echo_n='sh -c $as_echo_n_body as_echo'
28337 export as_echo_body
28338 as_echo='sh -c $as_echo_body as_echo'
28341 # The user is always right.
28342 if test "${PATH_SEPARATOR+set}" != set; then
28343 PATH_SEPARATOR=:
28344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28346 PATH_SEPARATOR=';'
28351 # IFS
28352 # We need space, tab and new line, in precisely that order. Quoting is
28353 # there to prevent editors from complaining about space-tab.
28354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28355 # splitting by setting IFS to empty value.)
28356 IFS=" "" $as_nl"
28358 # Find who we are. Look in the path if we contain no directory separator.
28359 case $0 in #((
28360 *[\\/]* ) as_myself=$0 ;;
28361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28362 for as_dir in $PATH
28364 IFS=$as_save_IFS
28365 test -z "$as_dir" && as_dir=.
28366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28367 done
28368 IFS=$as_save_IFS
28371 esac
28372 # We did not find ourselves, most probably we were run as `sh COMMAND'
28373 # in which case we are not to be found in the path.
28374 if test "x$as_myself" = x; then
28375 as_myself=$0
28377 if test ! -f "$as_myself"; then
28378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28379 exit 1
28382 # Unset variables that we do not need and which cause bugs (e.g. in
28383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28384 # suppresses any "Segmentation fault" message there. '((' could
28385 # trigger a bug in pdksh 5.2.14.
28386 for as_var in BASH_ENV ENV MAIL MAILPATH
28387 do eval test x\${$as_var+set} = xset \
28388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28389 done
28390 PS1='$ '
28391 PS2='> '
28392 PS4='+ '
28394 # NLS nuisances.
28395 LC_ALL=C
28396 export LC_ALL
28397 LANGUAGE=C
28398 export LANGUAGE
28400 # CDPATH.
28401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28404 # as_fn_error ERROR [LINENO LOG_FD]
28405 # ---------------------------------
28406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28408 # script with status $?, using 1 if that was 0.
28409 as_fn_error ()
28411 as_status=$?; test $as_status -eq 0 && as_status=1
28412 if test "$3"; then
28413 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28416 $as_echo "$as_me: error: $1" >&2
28417 as_fn_exit $as_status
28418 } # as_fn_error
28421 # as_fn_set_status STATUS
28422 # -----------------------
28423 # Set $? to STATUS, without forking.
28424 as_fn_set_status ()
28426 return $1
28427 } # as_fn_set_status
28429 # as_fn_exit STATUS
28430 # -----------------
28431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28432 as_fn_exit ()
28434 set +e
28435 as_fn_set_status $1
28436 exit $1
28437 } # as_fn_exit
28439 # as_fn_unset VAR
28440 # ---------------
28441 # Portably unset VAR.
28442 as_fn_unset ()
28444 { eval $1=; unset $1;}
28446 as_unset=as_fn_unset
28447 # as_fn_append VAR VALUE
28448 # ----------------------
28449 # Append the text in VALUE to the end of the definition contained in VAR. Take
28450 # advantage of any shell optimizations that allow amortized linear growth over
28451 # repeated appends, instead of the typical quadratic growth present in naive
28452 # implementations.
28453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28454 eval 'as_fn_append ()
28456 eval $1+=\$2
28458 else
28459 as_fn_append ()
28461 eval $1=\$$1\$2
28463 fi # as_fn_append
28465 # as_fn_arith ARG...
28466 # ------------------
28467 # Perform arithmetic evaluation on the ARGs, and store the result in the
28468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28469 # must be portable across $(()) and expr.
28470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28471 eval 'as_fn_arith ()
28473 as_val=$(( $* ))
28475 else
28476 as_fn_arith ()
28478 as_val=`expr "$@" || test $? -eq 1`
28480 fi # as_fn_arith
28483 if expr a : '\(a\)' >/dev/null 2>&1 &&
28484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28485 as_expr=expr
28486 else
28487 as_expr=false
28490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28491 as_basename=basename
28492 else
28493 as_basename=false
28496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28497 as_dirname=dirname
28498 else
28499 as_dirname=false
28502 as_me=`$as_basename -- "$0" ||
28503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28504 X"$0" : 'X\(//\)$' \| \
28505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28506 $as_echo X/"$0" |
28507 sed '/^.*\/\([^/][^/]*\)\/*$/{
28508 s//\1/
28511 /^X\/\(\/\/\)$/{
28512 s//\1/
28515 /^X\/\(\/\).*/{
28516 s//\1/
28519 s/.*/./; q'`
28521 # Avoid depending upon Character Ranges.
28522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28525 as_cr_digits='0123456789'
28526 as_cr_alnum=$as_cr_Letters$as_cr_digits
28528 ECHO_C= ECHO_N= ECHO_T=
28529 case `echo -n x` in #(((((
28530 -n*)
28531 case `echo 'xy\c'` in
28532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28533 xy) ECHO_C='\c';;
28534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28535 ECHO_T=' ';;
28536 esac;;
28538 ECHO_N='-n';;
28539 esac
28541 rm -f conf$$ conf$$.exe conf$$.file
28542 if test -d conf$$.dir; then
28543 rm -f conf$$.dir/conf$$.file
28544 else
28545 rm -f conf$$.dir
28546 mkdir conf$$.dir 2>/dev/null
28548 if (echo >conf$$.file) 2>/dev/null; then
28549 if ln -s conf$$.file conf$$ 2>/dev/null; then
28550 as_ln_s='ln -s'
28551 # ... but there are two gotchas:
28552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28554 # In both cases, we have to default to `cp -p'.
28555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28556 as_ln_s='cp -p'
28557 elif ln conf$$.file conf$$ 2>/dev/null; then
28558 as_ln_s=ln
28559 else
28560 as_ln_s='cp -p'
28562 else
28563 as_ln_s='cp -p'
28565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28566 rmdir conf$$.dir 2>/dev/null
28569 # as_fn_mkdir_p
28570 # -------------
28571 # Create "$as_dir" as a directory, including parents if necessary.
28572 as_fn_mkdir_p ()
28575 case $as_dir in #(
28576 -*) as_dir=./$as_dir;;
28577 esac
28578 test -d "$as_dir" || eval $as_mkdir_p || {
28579 as_dirs=
28580 while :; do
28581 case $as_dir in #(
28582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28583 *) as_qdir=$as_dir;;
28584 esac
28585 as_dirs="'$as_qdir' $as_dirs"
28586 as_dir=`$as_dirname -- "$as_dir" ||
28587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28588 X"$as_dir" : 'X\(//\)[^/]' \| \
28589 X"$as_dir" : 'X\(//\)$' \| \
28590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28591 $as_echo X"$as_dir" |
28592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28593 s//\1/
28596 /^X\(\/\/\)[^/].*/{
28597 s//\1/
28600 /^X\(\/\/\)$/{
28601 s//\1/
28604 /^X\(\/\).*/{
28605 s//\1/
28608 s/.*/./; q'`
28609 test -d "$as_dir" && break
28610 done
28611 test -z "$as_dirs" || eval "mkdir $as_dirs"
28612 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28615 } # as_fn_mkdir_p
28616 if mkdir -p . 2>/dev/null; then
28617 as_mkdir_p='mkdir -p "$as_dir"'
28618 else
28619 test -d ./-p && rmdir ./-p
28620 as_mkdir_p=false
28623 if test -x / >/dev/null 2>&1; then
28624 as_test_x='test -x'
28625 else
28626 if ls -dL / >/dev/null 2>&1; then
28627 as_ls_L_option=L
28628 else
28629 as_ls_L_option=
28631 as_test_x='
28632 eval sh -c '\''
28633 if test -d "$1"; then
28634 test -d "$1/.";
28635 else
28636 case $1 in #(
28637 -*)set "./$1";;
28638 esac;
28639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28640 ???[sx]*):;;*)false;;esac;fi
28641 '\'' sh
28644 as_executable_p=$as_test_x
28646 # Sed expression to map a string onto a valid CPP name.
28647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28649 # Sed expression to map a string onto a valid variable name.
28650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28653 exec 6>&1
28654 ## ----------------------------------- ##
28655 ## Main body of $CONFIG_STATUS script. ##
28656 ## ----------------------------------- ##
28657 _ASEOF
28658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28661 # Save the log message, to keep $0 and so on meaningful, and to
28662 # report actual input values of CONFIG_FILES etc. instead of their
28663 # values after options handling.
28664 ac_log="
28665 This file was extended by $as_me, which was
28666 generated by GNU Autoconf 2.64. Invocation command line was
28668 CONFIG_FILES = $CONFIG_FILES
28669 CONFIG_HEADERS = $CONFIG_HEADERS
28670 CONFIG_LINKS = $CONFIG_LINKS
28671 CONFIG_COMMANDS = $CONFIG_COMMANDS
28672 $ $0 $@
28674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28677 _ACEOF
28679 case $ac_config_files in *"
28680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28681 esac
28683 case $ac_config_headers in *"
28684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28685 esac
28688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28689 # Files that config.status was made for.
28690 config_files="$ac_config_files"
28691 config_headers="$ac_config_headers"
28692 config_links="$ac_config_links"
28693 config_commands="$ac_config_commands"
28695 _ACEOF
28697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28698 ac_cs_usage="\
28699 \`$as_me' instantiates files and other configuration actions
28700 from templates according to the current configuration. Unless the files
28701 and actions are specified as TAGs, all are instantiated by default.
28703 Usage: $0 [OPTION]... [TAG]...
28705 -h, --help print this help, then exit
28706 -V, --version print version number and configuration settings, then exit
28707 -q, --quiet, --silent
28708 do not print progress messages
28709 -d, --debug don't remove temporary files
28710 --recheck update $as_me by reconfiguring in the same conditions
28711 --file=FILE[:TEMPLATE]
28712 instantiate the configuration file FILE
28713 --header=FILE[:TEMPLATE]
28714 instantiate the configuration header FILE
28716 Configuration files:
28717 $config_files
28719 Configuration headers:
28720 $config_headers
28722 Configuration links:
28723 $config_links
28725 Configuration commands:
28726 $config_commands
28728 Report bugs to the package provider."
28730 _ACEOF
28731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28732 ac_cs_version="\\
28733 config.status
28734 configured by $0, generated by GNU Autoconf 2.64,
28735 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28737 Copyright (C) 2009 Free Software Foundation, Inc.
28738 This config.status script is free software; the Free Software Foundation
28739 gives unlimited permission to copy, distribute and modify it."
28741 ac_pwd='$ac_pwd'
28742 srcdir='$srcdir'
28743 AWK='$AWK'
28744 test -n "\$AWK" || AWK=awk
28745 _ACEOF
28747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28748 # The default lists apply if the user does not specify any file.
28749 ac_need_defaults=:
28750 while test $# != 0
28752 case $1 in
28753 --*=*)
28754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28755 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28756 ac_shift=:
28759 ac_option=$1
28760 ac_optarg=$2
28761 ac_shift=shift
28763 esac
28765 case $ac_option in
28766 # Handling of the options.
28767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28768 ac_cs_recheck=: ;;
28769 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28770 $as_echo "$ac_cs_version"; exit ;;
28771 --debug | --debu | --deb | --de | --d | -d )
28772 debug=: ;;
28773 --file | --fil | --fi | --f )
28774 $ac_shift
28775 case $ac_optarg in
28776 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28777 esac
28778 as_fn_append CONFIG_FILES " '$ac_optarg'"
28779 ac_need_defaults=false;;
28780 --header | --heade | --head | --hea )
28781 $ac_shift
28782 case $ac_optarg in
28783 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28784 esac
28785 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28786 ac_need_defaults=false;;
28787 --he | --h)
28788 # Conflict between --help and --header
28789 as_fn_error "ambiguous option: \`$1'
28790 Try \`$0 --help' for more information.";;
28791 --help | --hel | -h )
28792 $as_echo "$ac_cs_usage"; exit ;;
28793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28794 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28795 ac_cs_silent=: ;;
28797 # This is an error.
28798 -*) as_fn_error "unrecognized option: \`$1'
28799 Try \`$0 --help' for more information." ;;
28801 *) as_fn_append ac_config_targets " $1"
28802 ac_need_defaults=false ;;
28804 esac
28805 shift
28806 done
28808 ac_configure_extra_args=
28810 if $ac_cs_silent; then
28811 exec 6>/dev/null
28812 ac_configure_extra_args="$ac_configure_extra_args --silent"
28815 _ACEOF
28816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28817 if \$ac_cs_recheck; then
28818 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28819 shift
28820 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28821 CONFIG_SHELL='$SHELL'
28822 export CONFIG_SHELL
28823 exec "\$@"
28826 _ACEOF
28827 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28828 exec 5>>config.log
28830 echo
28831 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28832 ## Running $as_me. ##
28833 _ASBOX
28834 $as_echo "$ac_log"
28835 } >&5
28837 _ACEOF
28838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28840 # INIT-COMMANDS
28842 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28843 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28844 subdirs='$subdirs'
28846 _ACEOF
28848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28850 # Handling of arguments.
28851 for ac_config_target in $ac_config_targets
28853 case $ac_config_target in
28854 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28855 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28856 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28857 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28858 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28859 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28860 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28861 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28862 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28864 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28865 esac
28866 done
28869 # If the user did not use the arguments to specify the items to instantiate,
28870 # then the envvar interface is used. Set only those that are not.
28871 # We use the long form for the default assignment because of an extremely
28872 # bizarre bug on SunOS 4.1.3.
28873 if $ac_need_defaults; then
28874 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28875 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28876 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28880 # Have a temporary directory for convenience. Make it in the build tree
28881 # simply because there is no reason against having it here, and in addition,
28882 # creating and moving files from /tmp can sometimes cause problems.
28883 # Hook for its removal unless debugging.
28884 # Note that there is a small window in which the directory will not be cleaned:
28885 # after its creation but before its name has been assigned to `$tmp'.
28886 $debug ||
28888 tmp=
28889 trap 'exit_status=$?
28890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28892 trap 'as_fn_exit 1' 1 2 13 15
28894 # Create a (secure) tmp directory for tmp files.
28897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28898 test -n "$tmp" && test -d "$tmp"
28899 } ||
28901 tmp=./conf$$-$RANDOM
28902 (umask 077 && mkdir "$tmp")
28903 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28905 # Set up the scripts for CONFIG_FILES section.
28906 # No need to generate them if there are no CONFIG_FILES.
28907 # This happens for instance with `./config.status config.h'.
28908 if test -n "$CONFIG_FILES"; then
28910 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28911 ac_cs_awk_getline=:
28912 ac_cs_awk_pipe_init=
28913 ac_cs_awk_read_file='
28914 while ((getline aline < (F[key])) > 0)
28915 print(aline)
28916 close(F[key])'
28917 ac_cs_awk_pipe_fini=
28918 else
28919 ac_cs_awk_getline=false
28920 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28921 ac_cs_awk_read_file='
28922 print "|#_!!_#|"
28923 print "cat " F[key] " &&"
28924 '$ac_cs_awk_pipe_init
28925 # The final `:' finishes the AND list.
28926 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28928 ac_cr=`echo X | tr X '\015'`
28929 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28930 # But we know of no other shell where ac_cr would be empty at this
28931 # point, so we can use a bashism as a fallback.
28932 if test "x$ac_cr" = x; then
28933 eval ac_cr=\$\'\\r\'
28935 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28936 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28937 ac_cs_awk_cr='\r'
28938 else
28939 ac_cs_awk_cr=$ac_cr
28942 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28943 _ACEOF
28945 # Create commands to substitute file output variables.
28947 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28948 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28949 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28950 echo "_ACAWK" &&
28951 echo "_ACEOF"
28952 } >conf$$files.sh &&
28953 . ./conf$$files.sh ||
28954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28955 rm -f conf$$files.sh
28958 echo "cat >conf$$subs.awk <<_ACEOF" &&
28959 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28960 echo "_ACEOF"
28961 } >conf$$subs.sh ||
28962 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28963 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28964 ac_delim='%!_!# '
28965 for ac_last_try in false false false false false :; do
28966 . ./conf$$subs.sh ||
28967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28970 if test $ac_delim_n = $ac_delim_num; then
28971 break
28972 elif $ac_last_try; then
28973 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28974 else
28975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28977 done
28978 rm -f conf$$subs.sh
28980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28981 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28982 _ACEOF
28983 sed -n '
28985 s/^/S["/; s/!.*/"]=/
28988 s/^[^!]*!//
28989 :repl
28990 t repl
28991 s/'"$ac_delim"'$//
28992 t delim
28995 s/\(.\{148\}\).*/\1/
28996 t more1
28997 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29000 b repl
29001 :more1
29002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29005 s/.\{148\}//
29006 t nl
29007 :delim
29009 s/\(.\{148\}\).*/\1/
29010 t more2
29011 s/["\\]/\\&/g; s/^/"/; s/$/"/
29014 :more2
29015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29018 s/.\{148\}//
29019 t delim
29020 ' <conf$$subs.awk | sed '
29021 /^[^""]/{
29023 s/\n//
29025 ' >>$CONFIG_STATUS || ac_write_fail=1
29026 rm -f conf$$subs.awk
29027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29028 _ACAWK
29029 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29030 for (key in S) S_is_set[key] = 1
29031 FS = "\a"
29032 \$ac_cs_awk_pipe_init
29035 line = $ 0
29036 nfields = split(line, field, "@")
29037 substed = 0
29038 len = length(field[1])
29039 for (i = 2; i < nfields; i++) {
29040 key = field[i]
29041 keylen = length(key)
29042 if (S_is_set[key]) {
29043 value = S[key]
29044 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29045 len += length(value) + length(field[++i])
29046 substed = 1
29047 } else
29048 len += 1 + keylen
29050 if (nfields == 3 && !substed) {
29051 key = field[2]
29052 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29053 \$ac_cs_awk_read_file
29054 next
29057 print line
29059 \$ac_cs_awk_pipe_fini
29060 _ACAWK
29061 _ACEOF
29062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29063 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29065 else
29067 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29068 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29069 _ACEOF
29071 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29072 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29073 # trailing colons and then remove the whole line if VPATH becomes empty
29074 # (actually we leave an empty line to preserve line numbers).
29075 if test "x$srcdir" = x.; then
29076 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29077 s/:*\$(srcdir):*/:/
29078 s/:*\${srcdir}:*/:/
29079 s/:*@srcdir@:*/:/
29080 s/^\([^=]*=[ ]*\):*/\1/
29081 s/:*$//
29082 s/^[^=]*=[ ]*$//
29086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29087 fi # test -n "$CONFIG_FILES"
29089 # Set up the scripts for CONFIG_HEADERS section.
29090 # No need to generate them if there are no CONFIG_HEADERS.
29091 # This happens for instance with `./config.status Makefile'.
29092 if test -n "$CONFIG_HEADERS"; then
29093 cat >"$tmp/defines.awk" <<\_ACAWK ||
29094 BEGIN {
29095 _ACEOF
29097 # Transform confdefs.h into an awk script `defines.awk', embedded as
29098 # here-document in config.status, that substitutes the proper values into
29099 # config.h.in to produce config.h.
29101 # Create a delimiter string that does not exist in confdefs.h, to ease
29102 # handling of long lines.
29103 ac_delim='%!_!# '
29104 for ac_last_try in false false :; do
29105 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29106 if test -z "$ac_t"; then
29107 break
29108 elif $ac_last_try; then
29109 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29110 else
29111 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29113 done
29115 # For the awk script, D is an array of macro values keyed by name,
29116 # likewise P contains macro parameters if any. Preserve backslash
29117 # newline sequences.
29119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29120 sed -n '
29121 s/.\{148\}/&'"$ac_delim"'/g
29122 t rset
29123 :rset
29124 s/^[ ]*#[ ]*define[ ][ ]*/ /
29125 t def
29127 :def
29128 s/\\$//
29129 t bsnl
29130 s/["\\]/\\&/g
29131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29132 D["\1"]=" \3"/p
29133 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29135 :bsnl
29136 s/["\\]/\\&/g
29137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29138 D["\1"]=" \3\\\\\\n"\\/p
29139 t cont
29140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29141 t cont
29143 :cont
29145 s/.\{148\}/&'"$ac_delim"'/g
29146 t clear
29147 :clear
29148 s/\\$//
29149 t bsnlc
29150 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29152 :bsnlc
29153 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29154 b cont
29155 ' <confdefs.h | sed '
29156 s/'"$ac_delim"'/"\\\
29157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29160 for (key in D) D_is_set[key] = 1
29161 FS = "\a"
29163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29164 line = \$ 0
29165 split(line, arg, " ")
29166 if (arg[1] == "#") {
29167 defundef = arg[2]
29168 mac1 = arg[3]
29169 } else {
29170 defundef = substr(arg[1], 2)
29171 mac1 = arg[2]
29173 split(mac1, mac2, "(") #)
29174 macro = mac2[1]
29175 prefix = substr(line, 1, index(line, defundef) - 1)
29176 if (D_is_set[macro]) {
29177 # Preserve the white space surrounding the "#".
29178 print prefix "define", macro P[macro] D[macro]
29179 next
29180 } else {
29181 # Replace #undef with comments. This is necessary, for example,
29182 # in the case of _POSIX_SOURCE, which is predefined and required
29183 # on some systems where configure will not decide to define it.
29184 if (defundef == "undef") {
29185 print "/*", prefix defundef, macro, "*/"
29186 next
29190 { print }
29191 _ACAWK
29192 _ACEOF
29193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29194 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29195 fi # test -n "$CONFIG_HEADERS"
29198 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29199 shift
29200 for ac_tag
29202 case $ac_tag in
29203 :[FHLC]) ac_mode=$ac_tag; continue;;
29204 esac
29205 case $ac_mode$ac_tag in
29206 :[FHL]*:*);;
29207 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29208 :[FH]-) ac_tag=-:-;;
29209 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29210 esac
29211 ac_save_IFS=$IFS
29212 IFS=:
29213 set x $ac_tag
29214 IFS=$ac_save_IFS
29215 shift
29216 ac_file=$1
29217 shift
29219 case $ac_mode in
29220 :L) ac_source=$1;;
29221 :[FH])
29222 ac_file_inputs=
29223 for ac_f
29225 case $ac_f in
29226 -) ac_f="$tmp/stdin";;
29227 *) # Look for the file first in the build tree, then in the source tree
29228 # (if the path is not absolute). The absolute path cannot be DOS-style,
29229 # because $ac_f cannot contain `:'.
29230 test -f "$ac_f" ||
29231 case $ac_f in
29232 [\\/$]*) false;;
29233 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29234 esac ||
29235 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29236 esac
29237 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29238 as_fn_append ac_file_inputs " '$ac_f'"
29239 done
29241 # Let's still pretend it is `configure' which instantiates (i.e., don't
29242 # use $as_me), people would be surprised to read:
29243 # /* config.h. Generated by config.status. */
29244 configure_input='Generated from '`
29245 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29246 `' by configure.'
29247 if test x"$ac_file" != x-; then
29248 configure_input="$ac_file. $configure_input"
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29250 $as_echo "$as_me: creating $ac_file" >&6;}
29252 # Neutralize special characters interpreted by sed in replacement strings.
29253 case $configure_input in #(
29254 *\&* | *\|* | *\\* )
29255 ac_sed_conf_input=`$as_echo "$configure_input" |
29256 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29257 *) ac_sed_conf_input=$configure_input;;
29258 esac
29260 case $ac_tag in
29261 *:-:* | *:-) cat >"$tmp/stdin" \
29262 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29263 esac
29265 esac
29267 ac_dir=`$as_dirname -- "$ac_file" ||
29268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29269 X"$ac_file" : 'X\(//\)[^/]' \| \
29270 X"$ac_file" : 'X\(//\)$' \| \
29271 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29272 $as_echo X"$ac_file" |
29273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29274 s//\1/
29277 /^X\(\/\/\)[^/].*/{
29278 s//\1/
29281 /^X\(\/\/\)$/{
29282 s//\1/
29285 /^X\(\/\).*/{
29286 s//\1/
29289 s/.*/./; q'`
29290 as_dir="$ac_dir"; as_fn_mkdir_p
29291 ac_builddir=.
29293 case "$ac_dir" in
29294 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29296 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29297 # A ".." for each directory in $ac_dir_suffix.
29298 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29299 case $ac_top_builddir_sub in
29300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29302 esac ;;
29303 esac
29304 ac_abs_top_builddir=$ac_pwd
29305 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29306 # for backward compatibility:
29307 ac_top_builddir=$ac_top_build_prefix
29309 case $srcdir in
29310 .) # We are building in place.
29311 ac_srcdir=.
29312 ac_top_srcdir=$ac_top_builddir_sub
29313 ac_abs_top_srcdir=$ac_pwd ;;
29314 [\\/]* | ?:[\\/]* ) # Absolute name.
29315 ac_srcdir=$srcdir$ac_dir_suffix;
29316 ac_top_srcdir=$srcdir
29317 ac_abs_top_srcdir=$srcdir ;;
29318 *) # Relative name.
29319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29320 ac_top_srcdir=$ac_top_build_prefix$srcdir
29321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29322 esac
29323 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29326 case $ac_mode in
29329 # CONFIG_FILE
29332 _ACEOF
29334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29335 # If the template does not know about datarootdir, expand it.
29336 # FIXME: This hack should be removed a few years after 2.60.
29337 ac_datarootdir_hack=; ac_datarootdir_seen=
29338 ac_sed_dataroot='
29339 /datarootdir/ {
29343 /@datadir@/p
29344 /@docdir@/p
29345 /@infodir@/p
29346 /@localedir@/p
29347 /@mandir@/p'
29348 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29349 *datarootdir*) ac_datarootdir_seen=yes;;
29350 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29352 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29353 _ACEOF
29354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29355 ac_datarootdir_hack='
29356 s&@datadir@&$datadir&g
29357 s&@docdir@&$docdir&g
29358 s&@infodir@&$infodir&g
29359 s&@localedir@&$localedir&g
29360 s&@mandir@&$mandir&g
29361 s&\\\${datarootdir}&$datarootdir&g' ;;
29362 esac
29363 _ACEOF
29365 # Neutralize VPATH when `$srcdir' = `.'.
29366 # Shell code in configure.ac might set extrasub.
29367 # FIXME: do we really want to maintain this feature?
29368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29369 ac_sed_extra="$ac_vpsub
29370 $extrasub
29371 _ACEOF
29372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29374 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29375 s|@configure_input@|$ac_sed_conf_input|;t t
29376 s&@top_builddir@&$ac_top_builddir_sub&;t t
29377 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29378 s&@srcdir@&$ac_srcdir&;t t
29379 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29380 s&@top_srcdir@&$ac_top_srcdir&;t t
29381 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29382 s&@builddir@&$ac_builddir&;t t
29383 s&@abs_builddir@&$ac_abs_builddir&;t t
29384 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29385 $ac_datarootdir_hack
29387 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29388 if $ac_cs_awk_getline; then
29389 $AWK -f "$tmp/subs.awk"
29390 else
29391 $AWK -f "$tmp/subs.awk" | $SHELL
29392 fi >$tmp/out \
29393 || as_fn_error "could not create $ac_file" "$LINENO" 5
29395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29396 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29399 which seems to be undefined. Please make sure it is defined." >&5
29400 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29401 which seems to be undefined. Please make sure it is defined." >&2;}
29403 rm -f "$tmp/stdin"
29404 case $ac_file in
29405 -) cat "$tmp/out" && rm -f "$tmp/out";;
29406 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29407 esac \
29408 || as_fn_error "could not create $ac_file" "$LINENO" 5
29412 # CONFIG_HEADER
29414 if test x"$ac_file" != x-; then
29416 $as_echo "/* $configure_input */" \
29417 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29418 } >"$tmp/config.h" \
29419 || as_fn_error "could not create $ac_file" "$LINENO" 5
29420 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29422 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29423 else
29424 rm -f "$ac_file"
29425 mv "$tmp/config.h" "$ac_file" \
29426 || as_fn_error "could not create $ac_file" "$LINENO" 5
29428 else
29429 $as_echo "/* $configure_input */" \
29430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29431 || as_fn_error "could not create -" "$LINENO" 5
29436 # CONFIG_LINK
29439 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29441 else
29442 # Prefer the file from the source tree if names are identical.
29443 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29444 ac_source=$srcdir/$ac_source
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29448 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29450 if test ! -r "$ac_source"; then
29451 as_fn_error "$ac_source: file not found" "$LINENO" 5
29453 rm -f "$ac_file"
29455 # Try a relative symlink, then a hard link, then a copy.
29456 case $srcdir in
29457 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29458 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29459 esac
29460 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29461 ln "$ac_source" "$ac_file" 2>/dev/null ||
29462 cp -p "$ac_source" "$ac_file" ||
29463 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29466 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29467 $as_echo "$as_me: executing $ac_file commands" >&6;}
29469 esac
29472 case $ac_file$ac_mode in
29473 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29474 "gccdepdir":C)
29475 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29476 for lang in $subdirs c-family common
29478 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29479 done ;;
29480 "as":F) chmod +x as ;;
29481 "collect-ld":F) chmod +x collect-ld ;;
29482 "nm":F) chmod +x nm ;;
29483 "default":C)
29484 case ${CONFIG_HEADERS} in
29485 *auto-host.h:config.in*)
29486 echo > cstamp-h ;;
29487 esac
29488 # Make sure all the subdirs exist.
29489 for d in $subdirs doc build common c-family
29491 test -d $d || mkdir $d
29492 done
29495 esac
29496 done # for ac_tag
29499 as_fn_exit 0
29500 _ACEOF
29501 ac_clean_files=$ac_clean_files_save
29503 test $ac_write_fail = 0 ||
29504 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29507 # configure is writing to config.log, and then calls config.status.
29508 # config.status does its own redirection, appending to config.log.
29509 # Unfortunately, on DOS this fails, as config.log is still kept open
29510 # by configure, so config.status won't be able to write to it; its
29511 # output is simply discarded. So we exec the FD to /dev/null,
29512 # effectively closing config.log, so it can be properly (re)opened and
29513 # appended to by config.status. When coming back to configure, we
29514 # need to make the FD available again.
29515 if test "$no_create" != yes; then
29516 ac_cs_success=:
29517 ac_config_status_args=
29518 test "$silent" = yes &&
29519 ac_config_status_args="$ac_config_status_args --quiet"
29520 exec 5>/dev/null
29521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29522 exec 5>>config.log
29523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29524 # would make configure fail if this is the last instruction.
29525 $ac_cs_success || as_fn_exit $?
29527 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29529 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}