svn merge -r 216846:217483 svn+ssh://gcc.gnu.org/svn/gcc/trunk
[official-gcc.git] / gcc / configure
blob15164a24849994e3529cd66c87a3b0d0c572de5c
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 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 accel_dir_suffix
612 real_target_noncanonical
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
746 doc_build_sys
749 BISON
750 FLEX
751 GENERATED_MANPAGES
752 BUILD_INFO
753 MAKEINFO
754 have_mktemp_command
755 make_compare_target
756 INSTALL_DATA
757 INSTALL_PROGRAM
758 INSTALL
759 ranlib_flags
760 RANLIB
762 LN_S
764 SET_MAKE
765 enable_as_accelerator
766 REPORT_BUGS_TEXI
767 REPORT_BUGS_TO
768 PKGVERSION
769 CONFIGURE_SPECS
770 CROSS_SYSTEM_HEADER_DIR
771 TARGET_SYSTEM_ROOT_DEFINE
772 TARGET_SYSTEM_ROOT
773 SYSROOT_CFLAGS_FOR_TARGET
774 enable_shared
775 enable_fixed_point
776 enable_decimal_float
777 with_float
778 with_cpu
779 enable_multiarch
780 enable_multilib
781 coverage_flags
782 valgrind_command
783 valgrind_path_defines
784 valgrind_path
785 TREECHECKING
786 TREEBROWSER
787 nocommon_flag
788 noexception_flags
789 warn_cxxflags
790 warn_cflags
791 c_strict_warn
792 strict_warn
793 c_loose_warn
794 loose_warn
795 EGREP
796 GREP
798 PICFLAG_FOR_TARGET
799 GNATMAKE
800 GNATBIND
801 ac_ct_CXX
802 CXXFLAGS
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
811 GENINSRC
812 target_subdir
813 host_subdir
814 build_subdir
815 build_libsubdir
816 target_noncanonical
817 target_os
818 target_vendor
819 target_cpu
820 target
821 host_os
822 host_vendor
823 host_cpu
824 host
825 build_os
826 build_vendor
827 build_cpu
828 build
829 target_alias
830 host_alias
831 build_alias
832 LIBS
833 ECHO_T
834 ECHO_N
835 ECHO_C
836 DEFS
837 mandir
838 localedir
839 libdir
840 psdir
841 pdfdir
842 dvidir
843 htmldir
844 infodir
845 docdir
846 oldincludedir
847 includedir
848 localstatedir
849 sharedstatedir
850 sysconfdir
851 datadir
852 datarootdir
853 libexecdir
854 sbindir
855 bindir
856 program_transform_name
857 prefix
858 exec_prefix
859 PACKAGE_URL
860 PACKAGE_BUGREPORT
861 PACKAGE_STRING
862 PACKAGE_VERSION
863 PACKAGE_TARNAME
864 PACKAGE_NAME
865 PATH_SEPARATOR
866 SHELL'
867 ac_subst_files='option_includes
868 language_hooks'
869 ac_user_opts='
870 enable_option_checking
871 with_build_libsubdir
872 with_local_prefix
873 with_gxx_include_dir
874 with_cpp_install_dir
875 enable_generated_files_in_srcdir
876 with_gnu_ld
877 with_ld
878 with_demangler_in_ld
879 with_gnu_as
880 with_as
881 enable_largefile
882 enable_build_format_warnings
883 enable_werror_always
884 enable_checking
885 enable_coverage
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
888 with_stabs
889 enable_multilib
890 enable_multiarch
891 enable___cxa_atexit
892 enable_decimal_float
893 enable_fixed_point
894 enable_threads
895 enable_tls
896 enable_objc_gc
897 with_dwarf2
898 enable_shared
899 with_native_system_header_dir
900 with_build_sysroot
901 with_sysroot
902 with_specs
903 with_pkgversion
904 with_bugurl
905 enable_languages
906 enable_as_accelerator_for
907 enable_offload_targets
908 with_multilib_list
909 enable_rpath
910 with_libiconv_prefix
911 enable_sjlj_exceptions
912 enable_secureplt
913 enable_leading_mingw64_underscores
914 enable_cld
915 enable_frame_pointer
916 enable_win32_registry
917 enable_static
918 with_pic
919 enable_fast_install
920 enable_libtool_lock
921 enable_ld
922 enable_gold
923 with_plugin_ld
924 enable_gnu_indirect_function
925 enable_initfini_array
926 enable_comdat
927 enable_fix_cortex_a53_835769
928 with_glibc_version
929 enable_gnu_unique_object
930 enable_linker_build_id
931 with_long_double_128
932 with_gc
933 with_system_zlib
934 enable_maintainer_mode
935 enable_link_mutex
936 enable_version_specific_runtime_libs
937 enable_plugin
938 enable_host_shared
939 enable_libquadmath_support
940 with_linker_hash_style
942 ac_precious_vars='build_alias
943 host_alias
944 target_alias
946 CFLAGS
947 LDFLAGS
948 LIBS
949 CPPFLAGS
951 CXXFLAGS
954 CXXCPP
955 GMPLIBS
956 GMPINC
957 ISLLIBS
958 ISLINC'
961 # Initialize some variables set by options.
962 ac_init_help=
963 ac_init_version=false
964 ac_unrecognized_opts=
965 ac_unrecognized_sep=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
968 cache_file=/dev/null
969 exec_prefix=NONE
970 no_create=
971 no_recursion=
972 prefix=NONE
973 program_prefix=NONE
974 program_suffix=NONE
975 program_transform_name=s,x,x,
976 silent=
977 site=
978 srcdir=
979 verbose=
980 x_includes=NONE
981 x_libraries=NONE
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir='${exec_prefix}/bin'
990 sbindir='${exec_prefix}/sbin'
991 libexecdir='${exec_prefix}/libexec'
992 datarootdir='${prefix}/share'
993 datadir='${datarootdir}'
994 sysconfdir='${prefix}/etc'
995 sharedstatedir='${prefix}/com'
996 localstatedir='${prefix}/var'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE}'
1000 infodir='${datarootdir}/info'
1001 htmldir='${docdir}'
1002 dvidir='${docdir}'
1003 pdfdir='${docdir}'
1004 psdir='${docdir}'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1009 ac_prev=
1010 ac_dashdash=
1011 for ac_option
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1016 ac_prev=
1017 continue
1020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1029 ac_dashdash=yes ;;
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1051 -datadir | --datadir | --datadi | --datad)
1052 ac_prev=datadir ;;
1053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1054 datadir=$ac_optarg ;;
1056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1063 -disable-* | --disable-*)
1064 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 as_fn_error "invalid feature name: $ac_useropt"
1068 ac_useropt_orig=$ac_useropt
1069 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_$ac_useropt"
1073 "*) ;;
1074 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep=', ';;
1076 esac
1077 eval enable_$ac_useropt=no ;;
1079 -docdir | --docdir | --docdi | --doc | --do)
1080 ac_prev=docdir ;;
1081 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1082 docdir=$ac_optarg ;;
1084 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1085 ac_prev=dvidir ;;
1086 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1087 dvidir=$ac_optarg ;;
1089 -enable-* | --enable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error "invalid feature name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=\$ac_optarg ;;
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1116 with_gas=yes ;;
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 ac_prev=htmldir ;;
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 | --ht=*)
1134 htmldir=$ac_optarg ;;
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 ac_prev=infodir ;;
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1148 -libdir | --libdir | --libdi | --libd)
1149 ac_prev=libdir ;;
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 ac_prev=mandir ;;
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1179 with_fp=no ;;
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1183 no_create=yes ;;
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1187 no_recursion=yes ;;
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 ac_prev=prefix ;;
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 ac_prev=pdfdir ;;
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1239 -psdir | --psdir | --psdi | --psd | --ps)
1240 ac_prev=psdir ;;
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1242 psdir=$ac_optarg ;;
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1246 silent=yes ;;
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 ac_prev=sbindir ;;
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 | --sbi=* | --sb=*)
1252 sbindir=$ac_optarg ;;
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1257 | --sha | --sh)
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 | --sha=* | --sh=*)
1263 sharedstatedir=$ac_optarg ;;
1265 -site | --site | --sit)
1266 ac_prev=site ;;
1267 -site=* | --site=* | --sit=*)
1268 site=$ac_optarg ;;
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 ac_prev=srcdir ;;
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1288 verbose=yes ;;
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1293 -with-* | --with-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297 as_fn_error "invalid package name: $ac_useropt"
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1302 "with_$ac_useropt"
1303 "*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval with_$ac_useropt=\$ac_optarg ;;
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=no ;;
1325 --x)
1326 # Obsolete; use --with-x.
1327 with_x=yes ;;
1329 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1330 | --x-incl | --x-inc | --x-in | --x-i)
1331 ac_prev=x_includes ;;
1332 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1333 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1334 x_includes=$ac_optarg ;;
1336 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1337 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1338 ac_prev=x_libraries ;;
1339 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1340 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1341 x_libraries=$ac_optarg ;;
1343 -*) as_fn_error "unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information."
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' | [0-9]* | *[!_$as_cr_alnum]* )
1352 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1353 esac
1354 eval $ac_envvar=\$ac_optarg
1355 export $ac_envvar ;;
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1365 esac
1366 done
1368 if test -n "$ac_prev"; then
1369 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error "missing argument to $ac_option"
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1378 esac
1381 # Check all directory arguments for consistency.
1382 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val=\$$ac_var
1388 # Remove trailing slashes.
1389 case $ac_val in
1390 */ )
1391 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\$ac_val;;
1393 esac
1394 # Be sure to have absolute directory names.
1395 case $ac_val in
1396 [\\/$]* | ?:[\\/]* ) continue;;
1397 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 esac
1399 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1400 done
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1405 build=$build_alias
1406 host=$host_alias
1407 target=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x; then
1411 if test "x$build_alias" = x; then
1412 cross_compiling=maybe
1413 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1416 cross_compiling=yes
1420 ac_tool_prefix=
1421 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1423 test "$silent" = yes && exec 6>/dev/null
1426 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di=`ls -di .` &&
1428 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error "working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error "pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 s//\1/
1448 /^X\(\/\/\)[^/].*/{
1449 s//\1/
1452 /^X\(\/\/\)$/{
1453 s//\1/
1456 /^X\(\/\).*/{
1457 s//\1/
1460 s/.*/./; q'`
1461 srcdir=$ac_confdir
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 srcdir=..
1465 else
1466 ac_srcdir_defaulted=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1470 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 ac_abs_confdir=`(
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1475 pwd)`
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 srcdir=.
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1483 case $srcdir in
1484 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 esac
1486 for ac_var in $ac_precious_vars; do
1487 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_${ac_var}_value=\$${ac_var}
1489 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 done
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1499 cat <<_ACEOF
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1509 Configuration:
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 [PREFIX]
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1555 cat <<\_ACEOF
1557 Program names:
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1562 System types:
1563 --build=BUILD configure for building on BUILD [guessed]
1564 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1565 --target=TARGET configure for building compilers for TARGET [HOST]
1566 _ACEOF
1569 if test -n "$ac_init_help"; then
1571 cat <<\_ACEOF
1573 Optional Features:
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-generated-files-in-srcdir
1578 put copies of generated files in source dir intended
1579 for creating source tarballs for users without
1580 texinfo bison or flex
1581 --disable-largefile omit support for large files
1582 --disable-build-format-warnings
1583 don't use -Wformat while building GCC
1584 --enable-werror-always enable -Werror despite compiler version
1585 --enable-checking[=LIST]
1586 enable expensive run-time checks. With LIST, enable
1587 only specific categories of checks. Categories are:
1588 yes,no,all,none,release. Flags are:
1589 assert,df,fold,gc,gcac,gimple,misc,
1590 rtlflag,rtl,runtime,tree,valgrind,types
1591 --enable-coverage[=LEVEL]
1592 enable compiler's code coverage collection. Use to
1593 measure compiler performance and locate unused parts
1594 of the compiler. With LEVEL, specify optimization.
1595 Values are opt, noopt, default is noopt
1596 --enable-gather-detailed-mem-stats
1597 enable detailed memory allocation stats gathering
1598 --enable-valgrind-annotations
1599 enable valgrind runtime interaction
1600 --enable-multilib enable library support for multiple ABIs
1601 --enable-multiarch enable support for multiarch paths
1602 --enable-__cxa_atexit enable __cxa_atexit for C++
1603 --enable-decimal-float={no,yes,bid,dpd}
1604 enable decimal float extension to C. Selecting 'bid'
1605 or 'dpd' choses which decimal floating point format
1606 to use
1607 --enable-fixed-point enable fixed-point arithmetic extension to C
1608 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1609 package
1610 --enable-tls enable or disable generation of tls code overriding
1611 the assembler check for tls support
1612 --enable-objc-gc enable the use of Boehm's garbage collector with the
1613 GNU Objective-C runtime
1614 --disable-shared don't provide a shared libgcc
1615 --enable-languages=LIST specify which front-ends to build
1616 --enable-as-accelerator-for
1617 build compiler as accelerator target for given host
1618 --enable-offload-targets=LIST
1619 enable offloading to devices from LIST
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on 64 bit mingw targets
1626 --enable-cld enable -mcld by default for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths in the Registry
1631 on Windows hosts
1632 --enable-win32-registry enable registry lookup (default)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1635 of the registry key
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1642 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1645 glibc systems
1646 --enable-initfini-array use .init_array/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1649 --enable-fix-cortex-a53-835769
1650 enable workaround for AArch64 Cortex-A53 erratum
1651 835769 by default
1652 --disable-fix-cortex-a53-835769
1653 disable workaround for AArch64 Cortex-A53 erratum
1654 835769 by default
1656 --enable-gnu-unique-object
1657 enable the use of the @gnu_unique_object ELF
1658 extension on glibc systems
1659 --enable-linker-build-id
1660 compiler will always pass --build-id to linker
1661 --enable-maintainer-mode
1662 enable make rules and dependencies not useful (and
1663 sometimes confusing) to the casual installer
1664 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1665 thrashing on the build machine
1666 --enable-version-specific-runtime-libs
1667 specify that runtime libraries should be installed
1668 in a compiler-specific directory
1669 --enable-plugin enable plugin support
1670 --enable-host-shared build host code as shared libraries
1671 --disable-libquadmath-support
1672 disable libquadmath support for Fortran
1674 Optional Packages:
1675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1677 --with-build-libsubdir=DIR Directory where to find libraries for build system
1678 --with-local-prefix=DIR specifies directory to put local include
1679 --with-gxx-include-dir=DIR
1680 specifies directory to put g++ header files
1681 --with-cpp-install-dir=DIR
1682 install the user visible C preprocessor in DIR
1683 (relative to PREFIX) as well as PREFIX/bin
1684 --with-gnu-ld arrange to work with GNU ld
1685 --with-ld arrange to use the specified ld (full pathname)
1686 --with-demangler-in-ld try to use demangler in GNU ld
1687 --with-gnu-as arrange to work with GNU as
1688 --with-as arrange to use the specified as (full pathname)
1689 --with-stabs arrange to use stabs instead of host debug format
1690 --with-dwarf2 force the default debug format to be DWARF 2
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to look for standard
1693 system header files in. Defaults to /usr/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1697 --with-specs=SPECS add SPECS to driver command-line processing
1698 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1699 --with-bugurl=URL Direct users to URL to report a bug
1700 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1701 --with-gnu-ld assume the C compiler uses GNU ld default=no
1702 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1703 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1704 --with-pic try to use only PIC/non-PIC objects [default=use
1705 both]
1706 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1707 --with-plugin-ld=[ARG] specify the plugin linker
1708 --with-glibc-version=M.N
1709 assume GCC used with glibc version M.N or later
1710 --with-long-double-128 use 128-bit long double by default
1711 --with-gc={page,zone} this option is not supported anymore. It used to
1712 choose the garbage collection mechanism to use with
1713 the compiler
1714 --with-system-zlib use installed libz
1715 --with-linker-hash-style={sysv,gnu,both}
1716 specify the linker hash style
1718 Some influential environment variables:
1719 CC C compiler command
1720 CFLAGS C compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CXX C++ compiler command
1727 CXXFLAGS C++ compiler flags
1728 CPP C preprocessor
1729 CXXCPP C++ preprocessor
1730 GMPLIBS How to link GMP
1731 GMPINC How to find GMP include files
1732 ISLLIBS How to link ISL
1733 ISLINC How to find ISL include files
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1738 Report bugs to the package provider.
1739 _ACEOF
1740 ac_status=$?
1743 if test "$ac_init_help" = "recursive"; then
1744 # If there are subdirs, report their specific --help.
1745 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1746 test -d "$ac_dir" ||
1747 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1748 continue
1749 ac_builddir=.
1751 case "$ac_dir" in
1752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1754 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1755 # A ".." for each directory in $ac_dir_suffix.
1756 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1757 case $ac_top_builddir_sub in
1758 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1760 esac ;;
1761 esac
1762 ac_abs_top_builddir=$ac_pwd
1763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1764 # for backward compatibility:
1765 ac_top_builddir=$ac_top_build_prefix
1767 case $srcdir in
1768 .) # We are building in place.
1769 ac_srcdir=.
1770 ac_top_srcdir=$ac_top_builddir_sub
1771 ac_abs_top_srcdir=$ac_pwd ;;
1772 [\\/]* | ?:[\\/]* ) # Absolute name.
1773 ac_srcdir=$srcdir$ac_dir_suffix;
1774 ac_top_srcdir=$srcdir
1775 ac_abs_top_srcdir=$srcdir ;;
1776 *) # Relative name.
1777 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1778 ac_top_srcdir=$ac_top_build_prefix$srcdir
1779 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780 esac
1781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1783 cd "$ac_dir" || { ac_status=$?; continue; }
1784 # Check for guested configure.
1785 if test -f "$ac_srcdir/configure.gnu"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1788 elif test -f "$ac_srcdir/configure"; then
1789 echo &&
1790 $SHELL "$ac_srcdir/configure" --help=recursive
1791 else
1792 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 fi || ac_status=$?
1794 cd "$ac_pwd" || { ac_status=$?; break; }
1795 done
1798 test -n "$ac_init_help" && exit $ac_status
1799 if $ac_init_version; then
1800 cat <<\_ACEOF
1801 configure
1802 generated by GNU Autoconf 2.64
1804 Copyright (C) 2009 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1807 _ACEOF
1808 exit
1811 ## ------------------------ ##
1812 ## Autoconf initialization. ##
1813 ## ------------------------ ##
1815 # ac_fn_c_try_compile LINENO
1816 # --------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823 case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_c_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842 else
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=1
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 return $ac_retval
1851 } # ac_fn_c_try_compile
1853 # ac_fn_cxx_try_compile LINENO
1854 # ----------------------------
1855 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_compile ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext
1860 if { { ac_try="$ac_compile"
1861 case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864 esac
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_compile") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest.$ac_objext; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 return $ac_retval
1889 } # ac_fn_cxx_try_compile
1891 # ac_fn_c_try_cpp LINENO
1892 # ----------------------
1893 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1894 ac_fn_c_try_cpp ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_cpp conftest.$ac_ext"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } >/dev/null && {
1913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1926 } # ac_fn_c_try_cpp
1928 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931 # the include files in INCLUDES and setting the cache variable VAR
1932 # accordingly.
1933 ac_fn_c_check_header_mongrel ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 else
1946 # Is the header compilable?
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948 $as_echo_n "checking $2 usability... " >&6; }
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1952 #include <$2>
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 ac_header_compiler=yes
1956 else
1957 ac_header_compiler=no
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961 $as_echo "$ac_header_compiler" >&6; }
1963 # Is the header present?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965 $as_echo_n "checking $2 presence... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1968 #include <$2>
1969 _ACEOF
1970 if ac_fn_c_try_cpp "$LINENO"; then :
1971 ac_header_preproc=yes
1972 else
1973 ac_header_preproc=no
1975 rm -f conftest.err conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977 $as_echo "$ac_header_preproc" >&6; }
1979 # So? What about this header?
1980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1981 yes:no: )
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 no:yes:* )
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 esac
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 eval "$3=\$ac_header_compiler"
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_header_mongrel
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2019 ac_fn_c_try_run ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>&5
2030 ac_status=$?
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033 { { case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_try") 2>&5
2040 ac_status=$?
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; }; }; then :
2043 ac_retval=0
2044 else
2045 $as_echo "$as_me: program exited with status $ac_status" >&5
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=$ac_status
2051 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 return $ac_retval
2055 } # ac_fn_c_try_run
2057 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists and can be compiled using the include files in
2060 # INCLUDES, setting the cache variable VAR accordingly.
2061 ac_fn_c_check_header_compile ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2072 #include <$2>
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 } # ac_fn_c_check_header_compile
2088 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2089 # --------------------------------------------
2090 # Tries to find the compile-time value of EXPR in a program that includes
2091 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2092 # computed
2093 ac_fn_c_compute_int ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if test "$cross_compiling" = yes; then
2097 # Depending upon the size, compute the lo and hi bounds.
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 static int test_array [1 - 2 * !(($2) >= 0)];
2105 test_array [0] = 0
2108 return 0;
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_lo=0 ac_mid=0
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2118 main ()
2120 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2121 test_array [0] = 0
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=$ac_mid; break
2129 else
2130 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2131 if test $ac_lo -le $ac_mid; then
2132 ac_lo= ac_hi=
2133 break
2135 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2144 main ()
2146 static int test_array [1 - 2 * !(($2) < 0)];
2147 test_array [0] = 0
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_hi=-1 ac_mid=-1
2155 while :; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2163 test_array [0] = 0
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_lo=$ac_mid; break
2171 else
2172 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2173 if test $ac_mid -le $ac_hi; then
2174 ac_lo= ac_hi=
2175 break
2177 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 done
2181 else
2182 ac_lo= ac_hi=
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 # Binary search between lo and hi bounds.
2188 while test "x$ac_lo" != "x$ac_hi"; do
2189 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2194 main ()
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 test_array [0] = 0
2200 return 0;
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_hi=$ac_mid
2205 else
2206 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 done
2210 case $ac_lo in #((
2211 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2212 '') ac_retval=1 ;;
2213 esac
2214 else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2218 static long int longval () { return $2; }
2219 static unsigned long int ulongval () { return $2; }
2220 #include <stdio.h>
2221 #include <stdlib.h>
2223 main ()
2226 FILE *f = fopen ("conftest.val", "w");
2227 if (! f)
2228 return 1;
2229 if (($2) < 0)
2231 long int i = longval ();
2232 if (i != ($2))
2233 return 1;
2234 fprintf (f, "%ld", i);
2236 else
2238 unsigned long int i = ulongval ();
2239 if (i != ($2))
2240 return 1;
2241 fprintf (f, "%lu", i);
2243 /* Do not output a trailing newline, as this causes \r\n confusion
2244 on some platforms. */
2245 return ferror (f) || fclose (f) != 0;
2248 return 0;
2250 _ACEOF
2251 if ac_fn_c_try_run "$LINENO"; then :
2252 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2253 else
2254 ac_retval=1
2256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2257 conftest.$ac_objext conftest.beam conftest.$ac_ext
2258 rm -f conftest.val
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 return $ac_retval
2264 } # ac_fn_c_compute_int
2266 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2267 # -------------------------------------------
2268 # Tests whether TYPE exists after having included INCLUDES, setting cache
2269 # variable VAR accordingly.
2270 ac_fn_c_check_type ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 eval "$3=no"
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 :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2296 main ()
2298 if (sizeof (($2)))
2299 return 0;
2301 return 0;
2303 _ACEOF
2304 if ac_fn_c_try_compile "$LINENO"; then :
2306 else
2307 eval "$3=yes"
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2318 } # ac_fn_c_check_type
2320 # ac_fn_c_find_intX_t LINENO BITS VAR
2321 # -----------------------------------
2322 # Finds a signed integer type with width BITS, setting cache variable VAR
2323 # accordingly.
2324 ac_fn_c_find_intX_t ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2328 $as_echo_n "checking for int$2_t... " >&6; }
2329 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 eval "$3=no"
2333 for ac_type in int$2_t 'int' 'long int' \
2334 'long long int' 'short int' 'signed char'; do
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2337 $ac_includes_default
2339 main ()
2341 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2342 test_array [0] = 0
2345 return 0;
2347 _ACEOF
2348 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2351 $ac_includes_default
2353 main ()
2355 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2356 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2357 test_array [0] = 0
2360 return 0;
2362 _ACEOF
2363 if ac_fn_c_try_compile "$LINENO"; then :
2365 else
2366 case $ac_type in #(
2367 int$2_t) :
2368 eval "$3=yes" ;; #(
2369 *) :
2370 eval "$3=\$ac_type" ;;
2371 esac
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 eval as_val=\$$3
2377 if test "x$as_val" = x""no; then :
2379 else
2380 break
2382 done
2384 eval ac_res=\$$3
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2386 $as_echo "$ac_res" >&6; }
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389 } # ac_fn_c_find_intX_t
2391 # ac_fn_c_try_link LINENO
2392 # -----------------------
2393 # Try to link conftest.$ac_ext, and return whether this succeeded.
2394 ac_fn_c_try_link ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 rm -f conftest.$ac_objext conftest$ac_exeext
2398 if { { ac_try="$ac_link"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_link") 2>conftest.err
2406 ac_status=$?
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } && {
2414 test -z "$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 } && test -s conftest$ac_exeext && {
2417 test "$cross_compiling" = yes ||
2418 $as_test_x conftest$ac_exeext
2419 }; then :
2420 ac_retval=0
2421 else
2422 $as_echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2425 ac_retval=1
2427 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2428 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2429 # interfere with the next link command; also delete a directory that is
2430 # left behind by Apple's compiler. We do this before executing the actions.
2431 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433 return $ac_retval
2435 } # ac_fn_c_try_link
2437 # ac_fn_c_find_uintX_t LINENO BITS VAR
2438 # ------------------------------------
2439 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2440 # accordingly.
2441 ac_fn_c_find_uintX_t ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2445 $as_echo_n "checking for uint$2_t... " >&6; }
2446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 eval "$3=no"
2450 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2451 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 $ac_includes_default
2456 main ()
2458 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2459 test_array [0] = 0
2462 return 0;
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 case $ac_type in #(
2467 uint$2_t) :
2468 eval "$3=yes" ;; #(
2469 *) :
2470 eval "$3=\$ac_type" ;;
2471 esac
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 eval as_val=\$$3
2475 if test "x$as_val" = x""no; then :
2477 else
2478 break
2480 done
2482 eval ac_res=\$$3
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2484 $as_echo "$ac_res" >&6; }
2485 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2487 } # ac_fn_c_find_uintX_t
2489 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2490 # ----------------------------------------------
2491 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2492 ac_fn_c_check_header_preproc ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_c_try_cpp "$LINENO"; then :
2505 eval "$3=yes"
2506 else
2507 eval "$3=no"
2509 rm -f conftest.err conftest.$ac_ext
2511 eval ac_res=\$$3
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2513 $as_echo "$ac_res" >&6; }
2514 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2516 } # ac_fn_c_check_header_preproc
2518 # ac_fn_cxx_try_cpp LINENO
2519 # ------------------------
2520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2521 ac_fn_cxx_try_cpp ()
2523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2524 if { { ac_try="$ac_cpp conftest.$ac_ext"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2530 $as_echo "$ac_try_echo"; } >&5
2531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2532 ac_status=$?
2533 if test -s conftest.err; then
2534 grep -v '^ *+' conftest.err >conftest.er1
2535 cat conftest.er1 >&5
2536 mv -f conftest.er1 conftest.err
2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2539 test $ac_status = 0; } >/dev/null && {
2540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2541 test ! -s conftest.err
2542 }; then :
2543 ac_retval=0
2544 else
2545 $as_echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 ac_retval=1
2550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2551 return $ac_retval
2553 } # ac_fn_cxx_try_cpp
2555 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2556 # ------------------------------------------------
2557 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2558 ac_fn_cxx_check_header_preproc ()
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2568 #include <$2>
2569 _ACEOF
2570 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 eval "$3=yes"
2572 else
2573 eval "$3=no"
2575 rm -f conftest.err conftest.$ac_ext
2577 eval ac_res=\$$3
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2579 $as_echo "$ac_res" >&6; }
2580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 } # ac_fn_cxx_check_header_preproc
2584 # ac_fn_c_check_func LINENO FUNC VAR
2585 # ----------------------------------
2586 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2587 ac_fn_c_check_func ()
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2591 $as_echo_n "checking for $2... " >&6; }
2592 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2593 $as_echo_n "(cached) " >&6
2594 else
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2597 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2599 #define $2 innocuous_$2
2601 /* System header to define __stub macros and hopefully few prototypes,
2602 which can conflict with char $2 (); below.
2603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2604 <limits.h> exists even on freestanding compilers. */
2606 #ifdef __STDC__
2607 # include <limits.h>
2608 #else
2609 # include <assert.h>
2610 #endif
2612 #undef $2
2614 /* Override any GCC internal prototype to avoid an error.
2615 Use char because int might match the return type of a GCC
2616 builtin and then its argument prototype would still apply. */
2617 #ifdef __cplusplus
2618 extern "C"
2619 #endif
2620 char $2 ();
2621 /* The GNU C library defines this for functions which it implements
2622 to always fail with ENOSYS. Some functions are actually named
2623 something starting with __ and the normal name is an alias. */
2624 #if defined __stub_$2 || defined __stub___$2
2625 choke me
2626 #endif
2629 main ()
2631 return $2 ();
2633 return 0;
2635 _ACEOF
2636 if ac_fn_c_try_link "$LINENO"; then :
2637 eval "$3=yes"
2638 else
2639 eval "$3=no"
2641 rm -f core conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2644 eval ac_res=\$$3
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2646 $as_echo "$ac_res" >&6; }
2647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2649 } # ac_fn_c_check_func
2651 # ac_fn_cxx_try_link LINENO
2652 # -------------------------
2653 # Try to link conftest.$ac_ext, and return whether this succeeded.
2654 ac_fn_cxx_try_link ()
2656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657 rm -f conftest.$ac_objext conftest$ac_exeext
2658 if { { ac_try="$ac_link"
2659 case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662 esac
2663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_link") 2>conftest.err
2666 ac_status=$?
2667 if test -s conftest.err; then
2668 grep -v '^ *+' conftest.err >conftest.er1
2669 cat conftest.er1 >&5
2670 mv -f conftest.er1 conftest.err
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; } && {
2674 test -z "$ac_cxx_werror_flag" ||
2675 test ! -s conftest.err
2676 } && test -s conftest$ac_exeext && {
2677 test "$cross_compiling" = yes ||
2678 $as_test_x conftest$ac_exeext
2679 }; then :
2680 ac_retval=0
2681 else
2682 $as_echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2685 ac_retval=1
2687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2689 # interfere with the next link command; also delete a directory that is
2690 # left behind by Apple's compiler. We do this before executing the actions.
2691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693 return $ac_retval
2695 } # ac_fn_cxx_try_link
2696 cat >config.log <<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2700 It was created by $as_me, which was
2701 generated by GNU Autoconf 2.64. Invocation command line was
2703 $ $0 $@
2705 _ACEOF
2706 exec 5>>config.log
2708 cat <<_ASUNAME
2709 ## --------- ##
2710 ## Platform. ##
2711 ## --------- ##
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2730 _ASUNAME
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 $as_echo "PATH: $as_dir"
2738 done
2739 IFS=$as_save_IFS
2741 } >&5
2743 cat >&5 <<_ACEOF
2746 ## ----------- ##
2747 ## Core tests. ##
2748 ## ----------- ##
2750 _ACEOF
2753 # Keep a trace of the command line.
2754 # Strip out --no-create and --no-recursion so they do not pile up.
2755 # Strip out --silent because we don't want to record it for future runs.
2756 # Also quote any args containing shell meta-characters.
2757 # Make two passes to allow for proper duplicate-argument suppression.
2758 ac_configure_args=
2759 ac_configure_args0=
2760 ac_configure_args1=
2761 ac_must_keep_next=false
2762 for ac_pass in 1 2
2764 for ac_arg
2766 case $ac_arg in
2767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2769 | -silent | --silent | --silen | --sile | --sil)
2770 continue ;;
2771 *\'*)
2772 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2773 esac
2774 case $ac_pass in
2775 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2777 as_fn_append ac_configure_args1 " '$ac_arg'"
2778 if test $ac_must_keep_next = true; then
2779 ac_must_keep_next=false # Got value, back to normal.
2780 else
2781 case $ac_arg in
2782 *=* | --config-cache | -C | -disable-* | --disable-* \
2783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2785 | -with-* | --with-* | -without-* | --without-* | --x)
2786 case "$ac_configure_args0 " in
2787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2788 esac
2790 -* ) ac_must_keep_next=true ;;
2791 esac
2793 as_fn_append ac_configure_args " '$ac_arg'"
2795 esac
2796 done
2797 done
2798 { ac_configure_args0=; unset ac_configure_args0;}
2799 { ac_configure_args1=; unset ac_configure_args1;}
2801 # When interrupted or exit'd, cleanup temporary files, and complete
2802 # config.log. We remove comments because anyway the quotes in there
2803 # would cause problems or look ugly.
2804 # WARNING: Use '\'' to represent an apostrophe within the trap.
2805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2806 trap 'exit_status=$?
2807 # Save into config.log some information that might help in debugging.
2809 echo
2811 cat <<\_ASBOX
2812 ## ---------------- ##
2813 ## Cache variables. ##
2814 ## ---------------- ##
2815 _ASBOX
2816 echo
2817 # The following way of writing the cache mishandles newlines in values,
2819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2820 eval ac_val=\$$ac_var
2821 case $ac_val in #(
2822 *${as_nl}*)
2823 case $ac_var in #(
2824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2826 esac
2827 case $ac_var in #(
2828 _ | IFS | as_nl) ;; #(
2829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2830 *) { eval $ac_var=; unset $ac_var;} ;;
2831 esac ;;
2832 esac
2833 done
2834 (set) 2>&1 |
2835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2836 *${as_nl}ac_space=\ *)
2837 sed -n \
2838 "s/'\''/'\''\\\\'\'''\''/g;
2839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2840 ;; #(
2842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2844 esac |
2845 sort
2847 echo
2849 cat <<\_ASBOX
2850 ## ----------------- ##
2851 ## Output variables. ##
2852 ## ----------------- ##
2853 _ASBOX
2854 echo
2855 for ac_var in $ac_subst_vars
2857 eval ac_val=\$$ac_var
2858 case $ac_val in
2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2860 esac
2861 $as_echo "$ac_var='\''$ac_val'\''"
2862 done | sort
2863 echo
2865 if test -n "$ac_subst_files"; then
2866 cat <<\_ASBOX
2867 ## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##
2870 _ASBOX
2871 echo
2872 for ac_var in $ac_subst_files
2874 eval ac_val=\$$ac_var
2875 case $ac_val in
2876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2877 esac
2878 $as_echo "$ac_var='\''$ac_val'\''"
2879 done | sort
2880 echo
2883 if test -s confdefs.h; then
2884 cat <<\_ASBOX
2885 ## ----------- ##
2886 ## confdefs.h. ##
2887 ## ----------- ##
2888 _ASBOX
2889 echo
2890 cat confdefs.h
2891 echo
2893 test "$ac_signal" != 0 &&
2894 $as_echo "$as_me: caught signal $ac_signal"
2895 $as_echo "$as_me: exit $exit_status"
2896 } >&5
2897 rm -f core *.core core.conftest.* &&
2898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2899 exit $exit_status
2901 for ac_signal in 1 2 13 15; do
2902 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2903 done
2904 ac_signal=0
2906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2907 rm -f -r conftest* confdefs.h
2909 $as_echo "/* confdefs.h */" > confdefs.h
2911 # Predefined preprocessor variables.
2913 cat >>confdefs.h <<_ACEOF
2914 #define PACKAGE_NAME "$PACKAGE_NAME"
2915 _ACEOF
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2919 _ACEOF
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2923 _ACEOF
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_STRING "$PACKAGE_STRING"
2927 _ACEOF
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2931 _ACEOF
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_URL "$PACKAGE_URL"
2935 _ACEOF
2938 # Let the site file select an alternate cache file if it wants to.
2939 # Prefer an explicitly selected file to automatically selected ones.
2940 ac_site_file1=NONE
2941 ac_site_file2=NONE
2942 if test -n "$CONFIG_SITE"; then
2943 ac_site_file1=$CONFIG_SITE
2944 elif test "x$prefix" != xNONE; then
2945 ac_site_file1=$prefix/share/config.site
2946 ac_site_file2=$prefix/etc/config.site
2947 else
2948 ac_site_file1=$ac_default_prefix/share/config.site
2949 ac_site_file2=$ac_default_prefix/etc/config.site
2951 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2953 test "x$ac_site_file" = xNONE && continue
2954 if test -r "$ac_site_file"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2957 sed 's/^/| /' "$ac_site_file" >&5
2958 . "$ac_site_file"
2960 done
2962 if test -r "$cache_file"; then
2963 # Some versions of bash will fail to source /dev/null (special
2964 # files actually), so we avoid doing that.
2965 if test -f "$cache_file"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2967 $as_echo "$as_me: loading cache $cache_file" >&6;}
2968 case $cache_file in
2969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2970 *) . "./$cache_file";;
2971 esac
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2975 $as_echo "$as_me: creating cache $cache_file" >&6;}
2976 >$cache_file
2979 # Check that the precious variables saved in the cache have kept the same
2980 # value.
2981 ac_cache_corrupted=false
2982 for ac_var in $ac_precious_vars; do
2983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2984 eval ac_new_set=\$ac_env_${ac_var}_set
2985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2986 eval ac_new_val=\$ac_env_${ac_var}_value
2987 case $ac_old_set,$ac_new_set in
2988 set,)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2991 ac_cache_corrupted=: ;;
2992 ,set)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2994 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2995 ac_cache_corrupted=: ;;
2996 ,);;
2998 if test "x$ac_old_val" != "x$ac_new_val"; then
2999 # differences in whitespace do not lead to failure.
3000 ac_old_val_w=`echo x $ac_old_val`
3001 ac_new_val_w=`echo x $ac_new_val`
3002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3005 ac_cache_corrupted=:
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3009 eval $ac_var=\$ac_old_val
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3012 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3015 fi;;
3016 esac
3017 # Pass precious variables to config.status.
3018 if test "$ac_new_set" = set; then
3019 case $ac_new_val in
3020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3021 *) ac_arg=$ac_var=$ac_new_val ;;
3022 esac
3023 case " $ac_configure_args " in
3024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3025 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3026 esac
3028 done
3029 if $ac_cache_corrupted; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3034 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3036 ## -------------------- ##
3037 ## Main body of script. ##
3038 ## -------------------- ##
3040 ac_ext=c
3041 ac_cpp='$CPP $CPPFLAGS'
3042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3054 gcc_version=`cat $srcdir/BASE-VER`
3056 # Determine the host, build, and target systems
3057 ac_aux_dir=
3058 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3059 for ac_t in install-sh install.sh shtool; do
3060 if test -f "$ac_dir/$ac_t"; then
3061 ac_aux_dir=$ac_dir
3062 ac_install_sh="$ac_aux_dir/$ac_t -c"
3063 break 2
3065 done
3066 done
3067 if test -z "$ac_aux_dir"; then
3068 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3071 # These three variables are undocumented and unsupported,
3072 # and are intended to be withdrawn in a future Autoconf release.
3073 # They can cause serious problems if a builder's source tree is in a directory
3074 # whose full name contains unusual characters.
3075 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3076 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3077 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3080 # Make sure we can run config.sub.
3081 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3082 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3085 $as_echo_n "checking build system type... " >&6; }
3086 if test "${ac_cv_build+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 ac_build_alias=$build_alias
3090 test "x$ac_build_alias" = x &&
3091 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3092 test "x$ac_build_alias" = x &&
3093 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3099 $as_echo "$ac_cv_build" >&6; }
3100 case $ac_cv_build in
3101 *-*-*) ;;
3102 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3103 esac
3104 build=$ac_cv_build
3105 ac_save_IFS=$IFS; IFS='-'
3106 set x $ac_cv_build
3107 shift
3108 build_cpu=$1
3109 build_vendor=$2
3110 shift; shift
3111 # Remember, the first character of IFS is used to create $*,
3112 # except with old shells:
3113 build_os=$*
3114 IFS=$ac_save_IFS
3115 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3119 $as_echo_n "checking host system type... " >&6; }
3120 if test "${ac_cv_host+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test "x$host_alias" = x; then
3124 ac_cv_host=$ac_cv_build
3125 else
3126 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3127 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3132 $as_echo "$ac_cv_host" >&6; }
3133 case $ac_cv_host in
3134 *-*-*) ;;
3135 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3136 esac
3137 host=$ac_cv_host
3138 ac_save_IFS=$IFS; IFS='-'
3139 set x $ac_cv_host
3140 shift
3141 host_cpu=$1
3142 host_vendor=$2
3143 shift; shift
3144 # Remember, the first character of IFS is used to create $*,
3145 # except with old shells:
3146 host_os=$*
3147 IFS=$ac_save_IFS
3148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3152 $as_echo_n "checking target system type... " >&6; }
3153 if test "${ac_cv_target+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 if test "x$target_alias" = x; then
3157 ac_cv_target=$ac_cv_host
3158 else
3159 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3160 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3165 $as_echo "$ac_cv_target" >&6; }
3166 case $ac_cv_target in
3167 *-*-*) ;;
3168 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3169 esac
3170 target=$ac_cv_target
3171 ac_save_IFS=$IFS; IFS='-'
3172 set x $ac_cv_target
3173 shift
3174 target_cpu=$1
3175 target_vendor=$2
3176 shift; shift
3177 # Remember, the first character of IFS is used to create $*,
3178 # except with old shells:
3179 target_os=$*
3180 IFS=$ac_save_IFS
3181 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3184 # The aliases save the names the user supplied, while $host etc.
3185 # will get canonicalized.
3186 test -n "$target_alias" &&
3187 test "$program_prefix$program_suffix$program_transform_name" = \
3188 NONENONEs,x,x, &&
3189 program_prefix=${target_alias}-
3191 # Determine the noncanonical target name, for directory use.
3192 case ${build_alias} in
3193 "") build_noncanonical=${build} ;;
3194 *) build_noncanonical=${build_alias} ;;
3195 esac
3197 case ${host_alias} in
3198 "") host_noncanonical=${build_noncanonical} ;;
3199 *) host_noncanonical=${host_alias} ;;
3200 esac
3202 case ${target_alias} in
3203 "") target_noncanonical=${host_noncanonical} ;;
3204 *) target_noncanonical=${target_alias} ;;
3205 esac
3210 # Used for constructing correct paths for offload compilers.
3211 real_target_noncanonical=${target_noncanonical}
3212 accel_dir_suffix=
3214 # Determine the target- and build-specific subdirectories
3216 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3217 # have matching libraries, they should use host libraries: Makefile.tpl
3218 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3219 # However, they still use the build modules, because the corresponding
3220 # host modules (e.g. bison) are only built for the host when bootstrap
3221 # finishes. So:
3222 # - build_subdir is where we find build modules, and never changes.
3223 # - build_libsubdir is where we find build libraries, and can be overridden.
3225 # Prefix 'build-' so this never conflicts with target_subdir.
3226 build_subdir="build-${build_noncanonical}"
3228 # Check whether --with-build-libsubdir was given.
3229 if test "${with_build_libsubdir+set}" = set; then :
3230 withval=$with_build_libsubdir; build_libsubdir="$withval"
3231 else
3232 build_libsubdir="$build_subdir"
3235 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3236 if ( test $srcdir = . && test -d gcc ) \
3237 || test -d $srcdir/../host-${host_noncanonical}; then
3238 host_subdir="host-${host_noncanonical}"
3239 else
3240 host_subdir=.
3242 # No prefix.
3243 target_subdir=${target_noncanonical}
3246 # Set program_transform_name
3247 test "$program_prefix" != NONE &&
3248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3249 # Use a double $ so make ignores it.
3250 test "$program_suffix" != NONE &&
3251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3252 # Double any \ or $.
3253 # By default was `s,x,x', remove it if useless.
3254 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3255 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3258 # Check for bogus environment variables.
3259 # Test if LIBRARY_PATH contains the notation for the current directory
3260 # since this would lead to problems installing/building glibc.
3261 # LIBRARY_PATH contains the current directory if one of the following
3262 # is true:
3263 # - one of the terminals (":" and ";") is the first or last sign
3264 # - two terminals occur directly after each other
3265 # - the path contains an element with a dot in it
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3267 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3268 case ${LIBRARY_PATH} in
3269 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3270 library_path_setting="contains current directory"
3273 library_path_setting="ok"
3275 esac
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3277 $as_echo "$library_path_setting" >&6; }
3278 if test "$library_path_setting" != "ok"; then
3279 as_fn_error "
3280 *** LIBRARY_PATH shouldn't contain the current directory when
3281 *** building gcc. Please change the environment variable
3282 *** and run configure again." "$LINENO" 5
3285 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3286 # since this would lead to problems installing/building glibc.
3287 # GCC_EXEC_PREFIX contains the current directory if one of the following
3288 # is true:
3289 # - one of the terminals (":" and ";") is the first or last sign
3290 # - two terminals occur directly after each other
3291 # - the path contains an element with a dot in it
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3293 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3294 case ${GCC_EXEC_PREFIX} in
3295 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3296 gcc_exec_prefix_setting="contains current directory"
3299 gcc_exec_prefix_setting="ok"
3301 esac
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3303 $as_echo "$gcc_exec_prefix_setting" >&6; }
3304 if test "$gcc_exec_prefix_setting" != "ok"; then
3305 as_fn_error "
3306 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3307 *** building gcc. Please change the environment variable
3308 *** and run configure again." "$LINENO" 5
3311 # -----------
3312 # Directories
3313 # -----------
3315 # Specify the local prefix
3316 local_prefix=
3318 # Check whether --with-local-prefix was given.
3319 if test "${with_local_prefix+set}" = set; then :
3320 withval=$with_local_prefix; case "${withval}" in
3321 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3322 no) ;;
3323 *) local_prefix=$with_local_prefix ;;
3324 esac
3328 # Default local prefix if it is empty
3329 if test x$local_prefix = x; then
3330 local_prefix=/usr/local
3333 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3334 # passed in by the toplevel make and thus we'd get different behavior
3335 # depending on where we built the sources.
3336 gcc_gxx_include_dir=
3337 # Specify the g++ header file directory
3339 # Check whether --with-gxx-include-dir was given.
3340 if test "${with_gxx_include_dir+set}" = set; then :
3341 withval=$with_gxx_include_dir; case "${withval}" in
3342 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3343 no) ;;
3344 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3345 esac
3349 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3350 if test x${gcc_gxx_include_dir} = x; then
3351 if test x${enable_version_specific_runtime_libs} = xyes; then
3352 gcc_gxx_include_dir='${libsubdir}/include/c++'
3353 else
3354 libstdcxx_incdir='include/c++/$(version)'
3355 if test x$host != x$target; then
3356 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3358 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3362 gcc_gxx_include_dir_add_sysroot=0
3363 if test "${with_sysroot+set}" = set; then
3364 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3365 if test "${gcc_gxx_without_sysroot}"; then
3366 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3367 gcc_gxx_include_dir_add_sysroot=1
3372 # Check whether --with-cpp_install_dir was given.
3373 if test "${with_cpp_install_dir+set}" = set; then :
3374 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3375 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3376 elif test x$withval != xno; then
3377 cpp_install_dir=$withval
3382 # We would like to our source tree to be readonly. However when releases or
3383 # pre-releases are generated, the flex/bison generated files as well as the
3384 # various formats of manuals need to be included along with the rest of the
3385 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3386 # just that.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3389 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3390 # Check whether --enable-generated-files-in-srcdir was given.
3391 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3392 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3393 else
3394 generated_files_in_srcdir=no
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3399 $as_echo "$generated_files_in_srcdir" >&6; }
3401 if test "$generated_files_in_srcdir" = "yes"; then
3402 GENINSRC=''
3403 else
3404 GENINSRC='#'
3408 # -------------------
3409 # Find default linker
3410 # -------------------
3412 # With GNU ld
3414 # Check whether --with-gnu-ld was given.
3415 if test "${with_gnu_ld+set}" = set; then :
3416 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3417 else
3418 gnu_ld_flag=no
3422 # With pre-defined ld
3424 # Check whether --with-ld was given.
3425 if test "${with_ld+set}" = set; then :
3426 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3429 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3430 if test ! -x "$DEFAULT_LINKER"; then
3431 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3432 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3433 gnu_ld_flag=yes
3436 cat >>confdefs.h <<_ACEOF
3437 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3438 _ACEOF
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3443 $as_echo_n "checking whether a default linker was specified... " >&6; }
3444 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3445 if test x"$gnu_ld_flag" = x"no"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3447 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3448 else
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3450 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 # With demangler in GNU ld
3459 # Check whether --with-demangler-in-ld was given.
3460 if test "${with_demangler_in_ld+set}" = set; then :
3461 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3462 else
3463 demangler_in_ld=yes
3467 # ----------------------
3468 # Find default assembler
3469 # ----------------------
3471 # With GNU as
3473 # Check whether --with-gnu-as was given.
3474 if test "${with_gnu_as+set}" = set; then :
3475 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3476 else
3477 gas_flag=no
3482 # Check whether --with-as was given.
3483 if test "${with_as+set}" = set; then :
3484 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3487 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3488 if test ! -x "$DEFAULT_ASSEMBLER"; then
3489 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3490 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3491 gas_flag=yes
3494 cat >>confdefs.h <<_ACEOF
3495 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3496 _ACEOF
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3501 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3502 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3503 if test x"$gas_flag" = x"no"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3505 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3506 else
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3508 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 # ---------------
3516 # Find C compiler
3517 # ---------------
3519 # If a non-executable a.out is present (e.g. created by GNU as above even if
3520 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3521 # file, even when creating an executable, so an execution test fails.
3522 # Remove possible default executable files to avoid this.
3524 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3525 # Autoconf includes it.
3526 rm -f a.out a.exe b.out
3528 # Find the native compiler
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3556 done
3557 done
3558 IFS=$as_save_IFS
3562 CC=$ac_cv_prog_CC
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3573 if test -z "$ac_cv_prog_CC"; then
3574 ac_ct_CC=$CC
3575 # Extract the first word of "gcc", so it can be a program name with args.
3576 set dummy gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$ac_ct_CC"; then
3583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_ac_ct_CC="gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3596 done
3597 done
3598 IFS=$as_save_IFS
3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3603 if test -n "$ac_ct_CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3605 $as_echo "$ac_ct_CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620 CC=$ac_ct_CC
3622 else
3623 CC="$ac_cv_prog_CC"
3626 if test -z "$CC"; then
3627 if test -n "$ac_tool_prefix"; then
3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3629 set dummy ${ac_tool_prefix}cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3641 IFS=$as_save_IFS
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_CC="${ac_tool_prefix}cc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 break 2
3649 done
3650 done
3651 IFS=$as_save_IFS
3655 CC=$ac_cv_prog_CC
3656 if test -n "$CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3658 $as_echo "$CC" >&6; }
3659 else
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3667 if test -z "$CC"; then
3668 # Extract the first word of "cc", so it can be a program name with args.
3669 set dummy cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 ac_prog_rejected=no
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 for as_dir in $PATH
3682 IFS=$as_save_IFS
3683 test -z "$as_dir" && as_dir=.
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3687 ac_prog_rejected=yes
3688 continue
3690 ac_cv_prog_CC="cc"
3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 break 2
3694 done
3695 done
3696 IFS=$as_save_IFS
3698 if test $ac_prog_rejected = yes; then
3699 # We found a bogon in the path, so make sure we never use it.
3700 set dummy $ac_cv_prog_CC
3701 shift
3702 if test $# != 0; then
3703 # We chose a different compiler from the bogus one.
3704 # However, it has the same basename, so the bogon will be chosen
3705 # first if we set CC to just the basename; use the full file name.
3706 shift
3707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3712 CC=$ac_cv_prog_CC
3713 if test -n "$CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3715 $as_echo "$CC" >&6; }
3716 else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3723 if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 for ac_prog in cl.exe
3727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if test "${ac_cv_prog_CC+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$CC"; then
3735 ac_cv_prog_CC="$CC" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3750 IFS=$as_save_IFS
3754 CC=$ac_cv_prog_CC
3755 if test -n "$CC"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3757 $as_echo "$CC" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$CC" && break
3765 done
3767 if test -z "$CC"; then
3768 ac_ct_CC=$CC
3769 for ac_prog in cl.exe
3771 # Extract the first word of "$ac_prog", so it can be a program name with args.
3772 set dummy $ac_prog; ac_word=$2
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3774 $as_echo_n "checking for $ac_word... " >&6; }
3775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 if test -n "$ac_ct_CC"; then
3779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3788 ac_cv_prog_ac_ct_CC="$ac_prog"
3789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3792 done
3793 done
3794 IFS=$as_save_IFS
3798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3799 if test -n "$ac_ct_CC"; then
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3801 $as_echo "$ac_ct_CC" >&6; }
3802 else
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3808 test -n "$ac_ct_CC" && break
3809 done
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815 yes:)
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818 ac_tool_warned=yes ;;
3819 esac
3820 CC=$ac_ct_CC
3827 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "no acceptable C compiler found in \$PATH
3830 See \`config.log' for more details." "$LINENO" 5; }
3832 # Provide some information about the compiler.
3833 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3834 set X $ac_compile
3835 ac_compiler=$2
3836 for ac_option in --version -v -V -qversion; do
3837 { { ac_try="$ac_compiler $ac_option >&5"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3845 ac_status=$?
3846 if test -s conftest.err; then
3847 sed '10a\
3848 ... rest of stderr output deleted ...
3849 10q' conftest.err >conftest.er1
3850 cat conftest.er1 >&5
3851 rm -f conftest.er1 conftest.err
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }
3855 done
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 main ()
3865 return 0;
3867 _ACEOF
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3872 # of exeext.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3880 ac_rmfiles=
3881 for ac_file in $ac_files
3883 case $ac_file in
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3886 esac
3887 done
3888 rm -f $ac_rmfiles
3890 if { { ac_try="$ac_link_default"
3891 case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3898 ac_status=$?
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3905 # Autoconf.
3906 for ac_file in $ac_files ''
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3912 [ab].out )
3913 # We found the default executable, but exeext='' is most
3914 # certainly right.
3915 break;;
3916 *.* )
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3918 then :; else
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3925 # actually working.
3926 break;;
3928 break;;
3929 esac
3930 done
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3933 else
3934 ac_file=''
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 if test -z "$ac_file"; then :
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 { as_fn_set_status 77
3945 as_fn_error "C compiler cannot create executables
3946 See \`config.log' for more details." "$LINENO" 5; }; }
3948 ac_exeext=$ac_cv_exeext
3950 # Check that the compiler produces executables we can run. If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 $as_echo_n "checking whether the C compiler works... " >&6; }
3954 # If not cross compiling, check that we can run a simple program.
3955 if test "$cross_compiling" != yes; then
3956 if { ac_try='./$ac_file'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3967 cross_compiling=no
3968 else
3969 if test "$cross_compiling" = maybe; then
3970 cross_compiling=yes
3971 else
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot run C compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details." "$LINENO" 5; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 # Check that the compiler produces executables we can run. If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988 $as_echo_n "checking whether we are cross compiling... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 $as_echo_n "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3995 case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4002 ac_status=$?
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe'), while it won't with
4008 # `rm'.
4009 for ac_file in conftest.exe conftest conftest.*; do
4010 test -f "$ac_file" || continue
4011 case $ac_file in
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4014 break;;
4015 * ) break;;
4016 esac
4017 done
4018 else
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details." "$LINENO" 5; }
4024 rm -f conftest$ac_cv_exeext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 $as_echo "$ac_cv_exeext" >&6; }
4028 rm -f conftest.$ac_ext
4029 EXEEXT=$ac_cv_exeext
4030 ac_exeext=$EXEEXT
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032 $as_echo_n "checking for suffix of object files... " >&6; }
4033 if test "${ac_cv_objext+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4040 main ()
4044 return 0;
4046 _ACEOF
4047 rm -f conftest.o conftest.obj
4048 if { { ac_try="$ac_compile"
4049 case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
4056 ac_status=$?
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4064 break;;
4065 esac
4066 done
4067 else
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error "cannot compute suffix of object files: cannot compile
4074 See \`config.log' for more details." "$LINENO" 5; }
4076 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079 $as_echo "$ac_cv_objext" >&6; }
4080 OBJEXT=$ac_cv_objext
4081 ac_objext=$OBJEXT
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main ()
4093 #ifndef __GNUC__
4094 choke me
4095 #endif
4098 return 0;
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_compiler_gnu=yes
4103 else
4104 ac_compiler_gnu=no
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114 else
4115 GCC=
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if test "${ac_cv_prog_cc_g+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4126 ac_cv_prog_cc_g=no
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4136 return 0;
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141 else
4142 CFLAGS=""
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4147 main ()
4151 return 0;
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4156 else
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4163 main ()
4167 return 0;
4169 _ACEOF
4170 if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4186 CFLAGS="-g -O2"
4187 else
4188 CFLAGS="-g"
4190 else
4191 if test "$GCC" = yes; then
4192 CFLAGS="-O2"
4193 else
4194 CFLAGS=
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 ac_cv_prog_cc_c89=no
4203 ac_save_CC=$CC
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206 #include <stdarg.h>
4207 #include <stdio.h>
4208 #include <sys/types.h>
4209 #include <sys/stat.h>
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4214 char **p;
4215 int i;
4217 return p[i];
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4221 char *s;
4222 va_list v;
4223 va_start (v,p);
4224 s = g (p, va_arg (v,int));
4225 va_end (v);
4226 return s;
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4240 #define FOO(x) 'x'
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4247 int argc;
4248 char **argv;
4250 main ()
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4254 return 0;
4256 _ACEOF
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4266 done
4267 rm -f conftest.$ac_ext
4268 CC=$ac_save_CC
4271 # AC_CACHE_VAL
4272 case "x$ac_cv_prog_cc_c89" in
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 $as_echo "none needed" >&6; } ;;
4276 xno)
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278 $as_echo "unsupported" >&6; } ;;
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4283 esac
4284 if test "x$ac_cv_prog_cc_c89" != xno; then :
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 ac_ext=cpp
4295 ac_cpp='$CXXCPP $CPPFLAGS'
4296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4299 if test -z "$CXX"; then
4300 if test -n "$CCC"; then
4301 CXX=$CCC
4302 else
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_CXX+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$CXX"; then
4314 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4333 CXX=$ac_cv_prog_CXX
4334 if test -n "$CXX"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4336 $as_echo "$CXX" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$CXX" && break
4344 done
4346 if test -z "$CXX"; then
4347 ac_ct_CXX=$CXX
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$ac_ct_CXX"; then
4358 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_CXX="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4378 if test -n "$ac_ct_CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4380 $as_echo "$ac_ct_CXX" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$ac_ct_CXX" && break
4388 done
4390 if test "x$ac_ct_CXX" = x; then
4391 CXX="g++"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399 CXX=$ac_ct_CXX
4405 # Provide some information about the compiler.
4406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4407 set X $ac_compile
4408 ac_compiler=$2
4409 for ac_option in --version -v -V -qversion; do
4410 { { ac_try="$ac_compiler $ac_option >&5"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4416 $as_echo "$ac_try_echo"; } >&5
4417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4418 ac_status=$?
4419 if test -s conftest.err; then
4420 sed '10a\
4421 ... rest of stderr output deleted ...
4422 10q' conftest.err >conftest.er1
4423 cat conftest.er1 >&5
4424 rm -f conftest.er1 conftest.err
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4428 done
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4431 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4432 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4439 main ()
4441 #ifndef __GNUC__
4442 choke me
4443 #endif
4446 return 0;
4448 _ACEOF
4449 if ac_fn_cxx_try_compile "$LINENO"; then :
4450 ac_compiler_gnu=yes
4451 else
4452 ac_compiler_gnu=no
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4459 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4460 if test $ac_compiler_gnu = yes; then
4461 GXX=yes
4462 else
4463 GXX=
4465 ac_test_CXXFLAGS=${CXXFLAGS+set}
4466 ac_save_CXXFLAGS=$CXXFLAGS
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4468 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4469 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4473 ac_cxx_werror_flag=yes
4474 ac_cv_prog_cxx_g=no
4475 CXXFLAGS="-g"
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4480 main ()
4484 return 0;
4486 _ACEOF
4487 if ac_fn_cxx_try_compile "$LINENO"; then :
4488 ac_cv_prog_cxx_g=yes
4489 else
4490 CXXFLAGS=""
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4495 main ()
4499 return 0;
4501 _ACEOF
4502 if ac_fn_cxx_try_compile "$LINENO"; then :
4504 else
4505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4506 CXXFLAGS="-g"
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4511 main ()
4515 return 0;
4517 _ACEOF
4518 if ac_fn_cxx_try_compile "$LINENO"; then :
4519 ac_cv_prog_cxx_g=yes
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4529 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4530 if test "$ac_test_CXXFLAGS" = set; then
4531 CXXFLAGS=$ac_save_CXXFLAGS
4532 elif test $ac_cv_prog_cxx_g = yes; then
4533 if test "$GXX" = yes; then
4534 CXXFLAGS="-g -O2"
4535 else
4536 CXXFLAGS="-g"
4538 else
4539 if test "$GXX" = yes; then
4540 CXXFLAGS="-O2"
4541 else
4542 CXXFLAGS=
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$GNATBIND"; then
4563 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 GNATBIND=$ac_cv_prog_GNATBIND
4583 if test -n "$GNATBIND"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4585 $as_echo "$GNATBIND" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4593 if test -z "$ac_cv_prog_GNATBIND"; then
4594 ac_ct_GNATBIND=$GNATBIND
4595 # Extract the first word of "gnatbind", so it can be a program name with args.
4596 set dummy gnatbind; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$ac_ct_GNATBIND"; then
4603 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4623 if test -n "$ac_ct_GNATBIND"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4625 $as_echo "$ac_ct_GNATBIND" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_ct_GNATBIND" = x; then
4632 GNATBIND="no"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 GNATBIND=$ac_ct_GNATBIND
4642 else
4643 GNATBIND="$ac_cv_prog_GNATBIND"
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$GNATMAKE"; then
4655 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4668 done
4669 done
4670 IFS=$as_save_IFS
4674 GNATMAKE=$ac_cv_prog_GNATMAKE
4675 if test -n "$GNATMAKE"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4677 $as_echo "$GNATMAKE" >&6; }
4678 else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_GNATMAKE"; then
4686 ac_ct_GNATMAKE=$GNATMAKE
4687 # Extract the first word of "gnatmake", so it can be a program name with args.
4688 set dummy gnatmake; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$ac_ct_GNATMAKE"; then
4695 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4715 if test -n "$ac_ct_GNATMAKE"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4717 $as_echo "$ac_ct_GNATMAKE" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_GNATMAKE" = x; then
4724 GNATMAKE="no"
4725 else
4726 case $cross_compiling:$ac_tool_warned in
4727 yes:)
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4731 esac
4732 GNATMAKE=$ac_ct_GNATMAKE
4734 else
4735 GNATMAKE="$ac_cv_prog_GNATMAKE"
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4739 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4740 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat >conftest.adb <<EOF
4744 procedure conftest is begin null; end conftest;
4746 acx_cv_cc_gcc_supports_ada=no
4747 # There is a bug in old released versions of GCC which causes the
4748 # driver to exit successfully when the appropriate language module
4749 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4750 # Therefore we must check for the error message as well as an
4751 # unsuccessful exit.
4752 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4753 # given a .adb file, but produce no object file. So we must check
4754 # if an object file was really produced to guard against this.
4755 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4756 if test x"$errors" = x && test -f conftest.$ac_objext; then
4757 acx_cv_cc_gcc_supports_ada=yes
4759 rm -f conftest.*
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4762 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4764 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4765 have_gnat=yes
4766 else
4767 have_gnat=no
4771 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4772 # optimizations to be activated explicitly by the toplevel.
4773 case "$CC" in
4774 */prev-gcc/xgcc*) ;;
4775 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4776 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4777 esac
4781 # Determine PICFLAG for target gnatlib.
4786 case "${target}" in
4787 # PIC is the default on some targets or must not be used.
4788 *-*-darwin*)
4789 # PIC is the default on this platform
4790 # Common symbols not allowed in MH_DYLIB files
4791 PICFLAG_FOR_TARGET=-fno-common
4793 alpha*-dec-osf5*)
4794 # PIC is the default.
4796 hppa*64*-*-hpux*)
4797 # PIC is the default for 64-bit PA HP-UX.
4799 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4801 i[34567]86-*-mingw* | x86_64-*-mingw*)
4803 i[34567]86-*-interix[3-9]*)
4804 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4805 # Instead, we relocate shared libraries at runtime.
4807 i[34567]86-*-nto-qnx*)
4808 # QNX uses GNU C++, but need to define -shared option too, otherwise
4809 # it will coredump.
4810 PICFLAG_FOR_TARGET='-fPIC -shared'
4812 i[34567]86-pc-msdosdjgpp*)
4813 # DJGPP does not support shared libraries at all.
4815 ia64*-*-hpux*)
4816 # On IA64 HP-UX, PIC is the default but the pic flag
4817 # sets the default TLS model and affects inlining.
4818 PICFLAG_FOR_TARGET=-fPIC
4820 mips-sgi-irix6*)
4821 # PIC is the default.
4823 rs6000-ibm-aix* | powerpc-ibm-aix*)
4824 # All AIX code is PIC.
4827 # Some targets support both -fPIC and -fpic, but prefer the latter.
4828 # FIXME: Why?
4829 i[34567]86-*-* | x86_64-*-*)
4830 PICFLAG_FOR_TARGET=-fpic
4832 # FIXME: Override -fPIC default in libgcc only?
4833 sh-*-linux* | sh[2346lbe]*-*-linux*)
4834 PICFLAG_FOR_TARGET=-fpic
4836 # FIXME: Simplify to sh*-*-netbsd*?
4837 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4838 sh64-*-netbsd* | sh64l*-*-netbsd*)
4839 PICFLAG_FOR_TARGET=-fpic
4841 # Default to -fPIC unless specified otherwise.
4843 PICFLAG_FOR_TARGET=-fPIC
4845 esac
4847 # If the user explicitly uses -fpic/-fPIC, keep that.
4848 case "${CFLAGS_FOR_TARGET}" in
4849 *-fpic*)
4850 PICFLAG_FOR_TARGET=-fpic
4852 *-fPIC*)
4853 PICFLAG_FOR_TARGET=-fPIC
4855 esac
4859 # -------------------------
4860 # Check C compiler features
4861 # -------------------------
4864 ac_ext=c
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4870 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4871 # On Suns, sometimes $CPP names a directory.
4872 if test -n "$CPP" && test -d "$CPP"; then
4873 CPP=
4875 if test -z "$CPP"; then
4876 if test "${ac_cv_prog_CPP+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 # Double quotes because CPP needs to be expanded
4880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4882 ac_preproc_ok=false
4883 for ac_c_preproc_warn_flag in '' yes
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #ifdef __STDC__
4894 # include <limits.h>
4895 #else
4896 # include <assert.h>
4897 #endif
4898 Syntax error
4899 _ACEOF
4900 if ac_fn_c_try_cpp "$LINENO"; then :
4902 else
4903 # Broken: fails on valid input.
4904 continue
4906 rm -f conftest.err conftest.$ac_ext
4908 # OK, works on sane cases. Now check whether nonexistent headers
4909 # can be detected and how.
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #include <ac_nonexistent.h>
4913 _ACEOF
4914 if ac_fn_c_try_cpp "$LINENO"; then :
4915 # Broken: success on invalid input.
4916 continue
4917 else
4918 # Passes both tests.
4919 ac_preproc_ok=:
4920 break
4922 rm -f conftest.err conftest.$ac_ext
4924 done
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.$ac_ext
4927 if $ac_preproc_ok; then :
4928 break
4931 done
4932 ac_cv_prog_CPP=$CPP
4935 CPP=$ac_cv_prog_CPP
4936 else
4937 ac_cv_prog_CPP=$CPP
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4940 $as_echo "$CPP" >&6; }
4941 ac_preproc_ok=false
4942 for ac_c_preproc_warn_flag in '' yes
4944 # Use a header file that comes with gcc, so configuring glibc
4945 # with a fresh cross-compiler works.
4946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4947 # <limits.h> exists even on freestanding compilers.
4948 # On the NeXT, cc -E runs the code through the compiler's parser,
4949 # not just through cpp. "Syntax error" is here to catch this case.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #ifdef __STDC__
4953 # include <limits.h>
4954 #else
4955 # include <assert.h>
4956 #endif
4957 Syntax error
4958 _ACEOF
4959 if ac_fn_c_try_cpp "$LINENO"; then :
4961 else
4962 # Broken: fails on valid input.
4963 continue
4965 rm -f conftest.err conftest.$ac_ext
4967 # OK, works on sane cases. Now check whether nonexistent headers
4968 # can be detected and how.
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if ac_fn_c_try_cpp "$LINENO"; then :
4974 # Broken: success on invalid input.
4975 continue
4976 else
4977 # Passes both tests.
4978 ac_preproc_ok=:
4979 break
4981 rm -f conftest.err conftest.$ac_ext
4983 done
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.$ac_ext
4986 if $ac_preproc_ok; then :
4988 else
4989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4991 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4992 See \`config.log' for more details." "$LINENO" 5; }
4995 ac_ext=c
4996 ac_cpp='$CPP $CPPFLAGS'
4997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5003 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5004 if test "${ac_cv_path_GREP+set}" = set; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -z "$GREP"; then
5008 ac_path_GREP_found=false
5009 # Loop through the user's path and test for each of PROGNAME-LIST
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_prog in grep ggrep; do
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5018 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5019 # Check for GNU ac_path_GREP and select it if it is found.
5020 # Check for GNU $ac_path_GREP
5021 case `"$ac_path_GREP" --version 2>&1` in
5022 *GNU*)
5023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5025 ac_count=0
5026 $as_echo_n 0123456789 >"conftest.in"
5027 while :
5029 cat "conftest.in" "conftest.in" >"conftest.tmp"
5030 mv "conftest.tmp" "conftest.in"
5031 cp "conftest.in" "conftest.nl"
5032 $as_echo 'GREP' >> "conftest.nl"
5033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5035 as_fn_arith $ac_count + 1 && ac_count=$as_val
5036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5037 # Best one so far, save it but keep looking for a better one
5038 ac_cv_path_GREP="$ac_path_GREP"
5039 ac_path_GREP_max=$ac_count
5041 # 10*(2^10) chars as input seems more than enough
5042 test $ac_count -gt 10 && break
5043 done
5044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5045 esac
5047 $ac_path_GREP_found && break 3
5048 done
5049 done
5050 done
5051 IFS=$as_save_IFS
5052 if test -z "$ac_cv_path_GREP"; then
5053 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5055 else
5056 ac_cv_path_GREP=$GREP
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5061 $as_echo "$ac_cv_path_GREP" >&6; }
5062 GREP="$ac_cv_path_GREP"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5066 $as_echo_n "checking for egrep... " >&6; }
5067 if test "${ac_cv_path_EGREP+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5071 then ac_cv_path_EGREP="$GREP -E"
5072 else
5073 if test -z "$EGREP"; then
5074 ac_path_EGREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in egrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5084 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5085 # Check for GNU ac_path_EGREP and select it if it is found.
5086 # Check for GNU $ac_path_EGREP
5087 case `"$ac_path_EGREP" --version 2>&1` in
5088 *GNU*)
5089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5091 ac_count=0
5092 $as_echo_n 0123456789 >"conftest.in"
5093 while :
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'EGREP' >> "conftest.nl"
5099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 as_fn_arith $ac_count + 1 && ac_count=$as_val
5102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_EGREP="$ac_path_EGREP"
5105 ac_path_EGREP_max=$ac_count
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5109 done
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111 esac
5113 $ac_path_EGREP_found && break 3
5114 done
5115 done
5116 done
5117 IFS=$as_save_IFS
5118 if test -z "$ac_cv_path_EGREP"; then
5119 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5121 else
5122 ac_cv_path_EGREP=$EGREP
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5128 $as_echo "$ac_cv_path_EGREP" >&6; }
5129 EGREP="$ac_cv_path_EGREP"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5133 $as_echo_n "checking for ANSI C header files... " >&6; }
5134 if test "${ac_cv_header_stdc+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #include <stdlib.h>
5140 #include <stdarg.h>
5141 #include <string.h>
5142 #include <float.h>
5145 main ()
5149 return 0;
5151 _ACEOF
5152 if ac_fn_c_try_compile "$LINENO"; then :
5153 ac_cv_header_stdc=yes
5154 else
5155 ac_cv_header_stdc=no
5157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 if test $ac_cv_header_stdc = yes; then
5160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #include <string.h>
5165 _ACEOF
5166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5167 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <stdlib.h>
5182 _ACEOF
5183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5184 $EGREP "free" >/dev/null 2>&1; then :
5186 else
5187 ac_cv_header_stdc=no
5189 rm -f conftest*
5193 if test $ac_cv_header_stdc = yes; then
5194 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5195 if test "$cross_compiling" = yes; then :
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200 #include <ctype.h>
5201 #include <stdlib.h>
5202 #if ((' ' & 0x0FF) == 0x020)
5203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5205 #else
5206 # define ISLOWER(c) \
5207 (('a' <= (c) && (c) <= 'i') \
5208 || ('j' <= (c) && (c) <= 'r') \
5209 || ('s' <= (c) && (c) <= 'z'))
5210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5211 #endif
5213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5215 main ()
5217 int i;
5218 for (i = 0; i < 256; i++)
5219 if (XOR (islower (i), ISLOWER (i))
5220 || toupper (i) != TOUPPER (i))
5221 return 2;
5222 return 0;
5224 _ACEOF
5225 if ac_fn_c_try_run "$LINENO"; then :
5227 else
5228 ac_cv_header_stdc=no
5230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5231 conftest.$ac_objext conftest.beam conftest.$ac_ext
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5237 $as_echo "$ac_cv_header_stdc" >&6; }
5238 if test $ac_cv_header_stdc = yes; then
5240 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5245 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5246 inttypes.h stdint.h unistd.h
5247 do :
5248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5249 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5251 eval as_val=\$$as_ac_Header
5252 if test "x$as_val" = x""yes; then :
5253 cat >>confdefs.h <<_ACEOF
5254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 _ACEOF
5259 done
5263 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5264 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5265 MINIX=yes
5266 else
5267 MINIX=
5271 if test "$MINIX" = yes; then
5273 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5276 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5279 $as_echo "#define _MINIX 1" >>confdefs.h
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5285 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5286 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 # define __EXTENSIONS__ 1
5293 $ac_includes_default
5295 main ()
5299 return 0;
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_safe_to_define___extensions__=yes
5304 else
5305 ac_cv_safe_to_define___extensions__=no
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5310 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5311 test $ac_cv_safe_to_define___extensions__ = yes &&
5312 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5314 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5318 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5320 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5329 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5330 # On Suns, sometimes $CPP names a directory.
5331 if test -n "$CPP" && test -d "$CPP"; then
5332 CPP=
5334 if test -z "$CPP"; then
5335 if test "${ac_cv_prog_CPP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 # Double quotes because CPP needs to be expanded
5339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5341 ac_preproc_ok=false
5342 for ac_c_preproc_warn_flag in '' yes
5344 # Use a header file that comes with gcc, so configuring glibc
5345 # with a fresh cross-compiler works.
5346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347 # <limits.h> exists even on freestanding compilers.
5348 # On the NeXT, cc -E runs the code through the compiler's parser,
5349 # not just through cpp. "Syntax error" is here to catch this case.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #ifdef __STDC__
5353 # include <limits.h>
5354 #else
5355 # include <assert.h>
5356 #endif
5357 Syntax error
5358 _ACEOF
5359 if ac_fn_c_try_cpp "$LINENO"; then :
5361 else
5362 # Broken: fails on valid input.
5363 continue
5365 rm -f conftest.err conftest.$ac_ext
5367 # OK, works on sane cases. Now check whether nonexistent headers
5368 # can be detected and how.
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <ac_nonexistent.h>
5372 _ACEOF
5373 if ac_fn_c_try_cpp "$LINENO"; then :
5374 # Broken: success on invalid input.
5375 continue
5376 else
5377 # Passes both tests.
5378 ac_preproc_ok=:
5379 break
5381 rm -f conftest.err conftest.$ac_ext
5383 done
5384 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385 rm -f conftest.err conftest.$ac_ext
5386 if $ac_preproc_ok; then :
5387 break
5390 done
5391 ac_cv_prog_CPP=$CPP
5394 CPP=$ac_cv_prog_CPP
5395 else
5396 ac_cv_prog_CPP=$CPP
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5399 $as_echo "$CPP" >&6; }
5400 ac_preproc_ok=false
5401 for ac_c_preproc_warn_flag in '' yes
5403 # Use a header file that comes with gcc, so configuring glibc
5404 # with a fresh cross-compiler works.
5405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406 # <limits.h> exists even on freestanding compilers.
5407 # On the NeXT, cc -E runs the code through the compiler's parser,
5408 # not just through cpp. "Syntax error" is here to catch this case.
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #ifdef __STDC__
5412 # include <limits.h>
5413 #else
5414 # include <assert.h>
5415 #endif
5416 Syntax error
5417 _ACEOF
5418 if ac_fn_c_try_cpp "$LINENO"; then :
5420 else
5421 # Broken: fails on valid input.
5422 continue
5424 rm -f conftest.err conftest.$ac_ext
5426 # OK, works on sane cases. Now check whether nonexistent headers
5427 # can be detected and how.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <ac_nonexistent.h>
5431 _ACEOF
5432 if ac_fn_c_try_cpp "$LINENO"; then :
5433 # Broken: success on invalid input.
5434 continue
5435 else
5436 # Passes both tests.
5437 ac_preproc_ok=:
5438 break
5440 rm -f conftest.err conftest.$ac_ext
5442 done
5443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5444 rm -f conftest.err conftest.$ac_ext
5445 if $ac_preproc_ok; then :
5447 else
5448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5450 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5451 See \`config.log' for more details." "$LINENO" 5; }
5454 ac_ext=c
5455 ac_cpp='$CPP $CPPFLAGS'
5456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5461 $as_echo_n "checking for inline... " >&6; }
5462 if test "${ac_cv_c_inline+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 ac_cv_c_inline=no
5466 for ac_kw in inline __inline__ __inline; do
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 #ifndef __cplusplus
5470 typedef int foo_t;
5471 static $ac_kw foo_t static_foo () {return 0; }
5472 $ac_kw foo_t foo () {return 0; }
5473 #endif
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_c_inline=$ac_kw
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 test "$ac_cv_c_inline" != no && break
5481 done
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5485 $as_echo "$ac_cv_c_inline" >&6; }
5487 case $ac_cv_c_inline in
5488 inline | yes) ;;
5490 case $ac_cv_c_inline in
5491 no) ac_val=;;
5492 *) ac_val=$ac_cv_c_inline;;
5493 esac
5494 cat >>confdefs.h <<_ACEOF
5495 #ifndef __cplusplus
5496 #define inline $ac_val
5497 #endif
5498 _ACEOF
5500 esac
5503 # Check whether --enable-largefile was given.
5504 if test "${enable_largefile+set}" = set; then :
5505 enableval=$enable_largefile;
5508 if test "$enable_largefile" != no; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5511 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5512 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 ac_cv_sys_largefile_CC=no
5516 if test "$GCC" != yes; then
5517 ac_save_CC=$CC
5518 while :; do
5519 # IRIX 6.2 and later do not support large files by default,
5520 # so use the C compiler's -n32 option if that helps.
5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5523 #include <sys/types.h>
5524 /* Check that off_t can represent 2**63 - 1 correctly.
5525 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5526 since some C++ compilers masquerading as C compilers
5527 incorrectly reject 9223372036854775807. */
5528 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5529 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5530 && LARGE_OFF_T % 2147483647 == 1)
5531 ? 1 : -1];
5533 main ()
5537 return 0;
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 break
5543 rm -f core conftest.err conftest.$ac_objext
5544 CC="$CC -n32"
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 ac_cv_sys_largefile_CC=' -n32'; break
5548 rm -f core conftest.err conftest.$ac_objext
5549 break
5550 done
5551 CC=$ac_save_CC
5552 rm -f conftest.$ac_ext
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5556 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5557 if test "$ac_cv_sys_largefile_CC" != no; then
5558 CC=$CC$ac_cv_sys_largefile_CC
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5562 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5563 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 while :; do
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 #include <sys/types.h>
5570 /* Check that off_t can represent 2**63 - 1 correctly.
5571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5572 since some C++ compilers masquerading as C compilers
5573 incorrectly reject 9223372036854775807. */
5574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5576 && LARGE_OFF_T % 2147483647 == 1)
5577 ? 1 : -1];
5579 main ()
5583 return 0;
5585 _ACEOF
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_sys_file_offset_bits=no; break
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #define _FILE_OFFSET_BITS 64
5593 #include <sys/types.h>
5594 /* Check that off_t can represent 2**63 - 1 correctly.
5595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5596 since some C++ compilers masquerading as C compilers
5597 incorrectly reject 9223372036854775807. */
5598 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5600 && LARGE_OFF_T % 2147483647 == 1)
5601 ? 1 : -1];
5603 main ()
5607 return 0;
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_cv_sys_file_offset_bits=64; break
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 ac_cv_sys_file_offset_bits=unknown
5615 break
5616 done
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5619 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5620 case $ac_cv_sys_file_offset_bits in #(
5621 no | unknown) ;;
5623 cat >>confdefs.h <<_ACEOF
5624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5625 _ACEOF
5627 esac
5628 rm -rf conftest*
5629 if test $ac_cv_sys_file_offset_bits = unknown; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5631 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5632 if test "${ac_cv_sys_large_files+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 while :; do
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 /* Check that off_t can represent 2**63 - 1 correctly.
5640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5641 since some C++ compilers masquerading as C compilers
5642 incorrectly reject 9223372036854775807. */
5643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5645 && LARGE_OFF_T % 2147483647 == 1)
5646 ? 1 : -1];
5648 main ()
5652 return 0;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 ac_cv_sys_large_files=no; break
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #define _LARGE_FILES 1
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5670 ? 1 : -1];
5672 main ()
5676 return 0;
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_sys_large_files=1; break
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 ac_cv_sys_large_files=unknown
5684 break
5685 done
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5688 $as_echo "$ac_cv_sys_large_files" >&6; }
5689 case $ac_cv_sys_large_files in #(
5690 no | unknown) ;;
5692 cat >>confdefs.h <<_ACEOF
5693 #define _LARGE_FILES $ac_cv_sys_large_files
5694 _ACEOF
5696 esac
5697 rm -rf conftest*
5702 # sizeof(char) is 1 by definition.
5703 # The cast to long int works around a bug in the HP C Compiler
5704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5706 # This bug is HP SR number 8606223364.
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5708 $as_echo_n "checking size of void *... " >&6; }
5709 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5714 else
5715 if test "$ac_cv_type_void_p" = yes; then
5716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5718 { as_fn_set_status 77
5719 as_fn_error "cannot compute sizeof (void *)
5720 See \`config.log' for more details." "$LINENO" 5; }; }
5721 else
5722 ac_cv_sizeof_void_p=0
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5728 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5732 cat >>confdefs.h <<_ACEOF
5733 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5734 _ACEOF
5737 # The cast to long int works around a bug in the HP C Compiler
5738 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5739 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5740 # This bug is HP SR number 8606223364.
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5742 $as_echo_n "checking size of short... " >&6; }
5743 if test "${ac_cv_sizeof_short+set}" = set; then :
5744 $as_echo_n "(cached) " >&6
5745 else
5746 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5748 else
5749 if test "$ac_cv_type_short" = yes; then
5750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5752 { as_fn_set_status 77
5753 as_fn_error "cannot compute sizeof (short)
5754 See \`config.log' for more details." "$LINENO" 5; }; }
5755 else
5756 ac_cv_sizeof_short=0
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5762 $as_echo "$ac_cv_sizeof_short" >&6; }
5766 cat >>confdefs.h <<_ACEOF
5767 #define SIZEOF_SHORT $ac_cv_sizeof_short
5768 _ACEOF
5771 # The cast to long int works around a bug in the HP C Compiler
5772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774 # This bug is HP SR number 8606223364.
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5776 $as_echo_n "checking size of int... " >&6; }
5777 if test "${ac_cv_sizeof_int+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5782 else
5783 if test "$ac_cv_type_int" = yes; then
5784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5786 { as_fn_set_status 77
5787 as_fn_error "cannot compute sizeof (int)
5788 See \`config.log' for more details." "$LINENO" 5; }; }
5789 else
5790 ac_cv_sizeof_int=0
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5796 $as_echo "$ac_cv_sizeof_int" >&6; }
5800 cat >>confdefs.h <<_ACEOF
5801 #define SIZEOF_INT $ac_cv_sizeof_int
5802 _ACEOF
5805 # The cast to long int works around a bug in the HP C Compiler
5806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808 # This bug is HP SR number 8606223364.
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5810 $as_echo_n "checking size of long... " >&6; }
5811 if test "${ac_cv_sizeof_long+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5816 else
5817 if test "$ac_cv_type_long" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820 { as_fn_set_status 77
5821 as_fn_error "cannot compute sizeof (long)
5822 See \`config.log' for more details." "$LINENO" 5; }; }
5823 else
5824 ac_cv_sizeof_long=0
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5830 $as_echo "$ac_cv_sizeof_long" >&6; }
5834 cat >>confdefs.h <<_ACEOF
5835 #define SIZEOF_LONG $ac_cv_sizeof_long
5836 _ACEOF
5839 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5840 if test "x$ac_cv_type_long_long" = x""yes; then :
5842 cat >>confdefs.h <<_ACEOF
5843 #define HAVE_LONG_LONG 1
5844 _ACEOF
5846 # The cast to long int works around a bug in the HP C Compiler
5847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5849 # This bug is HP SR number 8606223364.
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5851 $as_echo_n "checking size of long long... " >&6; }
5852 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5857 else
5858 if test "$ac_cv_type_long_long" = yes; then
5859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5861 { as_fn_set_status 77
5862 as_fn_error "cannot compute sizeof (long long)
5863 See \`config.log' for more details." "$LINENO" 5; }; }
5864 else
5865 ac_cv_sizeof_long_long=0
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5871 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5875 cat >>confdefs.h <<_ACEOF
5876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5877 _ACEOF
5882 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5883 case $ac_cv_c_int8_t in #(
5884 no|yes) ;; #(
5887 cat >>confdefs.h <<_ACEOF
5888 #define int8_t $ac_cv_c_int8_t
5889 _ACEOF
5891 esac
5893 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5894 case $ac_cv_c_int16_t in #(
5895 no|yes) ;; #(
5898 cat >>confdefs.h <<_ACEOF
5899 #define int16_t $ac_cv_c_int16_t
5900 _ACEOF
5902 esac
5904 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5905 case $ac_cv_c_int32_t in #(
5906 no|yes) ;; #(
5909 cat >>confdefs.h <<_ACEOF
5910 #define int32_t $ac_cv_c_int32_t
5911 _ACEOF
5913 esac
5915 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5916 case $ac_cv_c_int64_t in #(
5917 no|yes) ;; #(
5920 cat >>confdefs.h <<_ACEOF
5921 #define int64_t $ac_cv_c_int64_t
5922 _ACEOF
5924 esac
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5928 $as_echo_n "checking for long long int... " >&6; }
5929 if test "${ac_cv_type_long_long_int+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5935 /* For now, do not test the preprocessor; as of 2007 there are too many
5936 implementations with broken preprocessors. Perhaps this can
5937 be revisited in 2012. In the meantime, code should not expect
5938 #if to work with literals wider than 32 bits. */
5939 /* Test literals. */
5940 long long int ll = 9223372036854775807ll;
5941 long long int nll = -9223372036854775807LL;
5942 unsigned long long int ull = 18446744073709551615ULL;
5943 /* Test constant expressions. */
5944 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5945 ? 1 : -1)];
5946 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5947 ? 1 : -1)];
5948 int i = 63;
5950 main ()
5952 /* Test availability of runtime routines for shift and division. */
5953 long long int llmax = 9223372036854775807ll;
5954 unsigned long long int ullmax = 18446744073709551615ull;
5955 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5956 | (llmax / ll) | (llmax % ll)
5957 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5958 | (ullmax / ull) | (ullmax % ull));
5960 return 0;
5963 _ACEOF
5964 if ac_fn_c_try_link "$LINENO"; then :
5965 if test "$cross_compiling" = yes; then :
5966 ac_cv_type_long_long_int=yes
5967 else
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5970 #include <limits.h>
5971 #ifndef LLONG_MAX
5972 # define HALF \
5973 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5974 # define LLONG_MAX (HALF - 1 + HALF)
5975 #endif
5977 main ()
5979 long long int n = 1;
5980 int i;
5981 for (i = 0; ; i++)
5983 long long int m = n << i;
5984 if (m >> i != n)
5985 return 1;
5986 if (LLONG_MAX / 2 < m)
5987 break;
5989 return 0;
5991 return 0;
5993 _ACEOF
5994 if ac_fn_c_try_run "$LINENO"; then :
5995 ac_cv_type_long_long_int=yes
5996 else
5997 ac_cv_type_long_long_int=no
5999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6000 conftest.$ac_objext conftest.beam conftest.$ac_ext
6003 else
6004 ac_cv_type_long_long_int=no
6006 rm -f core conftest.err conftest.$ac_objext \
6007 conftest$ac_exeext conftest.$ac_ext
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6010 $as_echo "$ac_cv_type_long_long_int" >&6; }
6011 if test $ac_cv_type_long_long_int = yes; then
6013 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6019 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6020 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6022 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6024 else
6025 test $ac_cv_type_long_long_int = yes \
6026 && ac_type='long long int' \
6027 || ac_type='long int'
6029 cat >>confdefs.h <<_ACEOF
6030 #define intmax_t $ac_type
6031 _ACEOF
6037 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6038 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6040 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6042 else
6043 for ac_type in 'int' 'long int' 'long long int'; do
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 $ac_includes_default
6048 main ()
6050 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6051 test_array [0] = 0
6054 return 0;
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6059 cat >>confdefs.h <<_ACEOF
6060 #define intptr_t $ac_type
6061 _ACEOF
6063 ac_type=
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 test -z "$ac_type" && break
6067 done
6071 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6072 case $ac_cv_c_uint8_t in #(
6073 no|yes) ;; #(
6076 $as_echo "#define _UINT8_T 1" >>confdefs.h
6079 cat >>confdefs.h <<_ACEOF
6080 #define uint8_t $ac_cv_c_uint8_t
6081 _ACEOF
6083 esac
6085 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6086 case $ac_cv_c_uint16_t in #(
6087 no|yes) ;; #(
6091 cat >>confdefs.h <<_ACEOF
6092 #define uint16_t $ac_cv_c_uint16_t
6093 _ACEOF
6095 esac
6097 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6098 case $ac_cv_c_uint32_t in #(
6099 no|yes) ;; #(
6102 $as_echo "#define _UINT32_T 1" >>confdefs.h
6105 cat >>confdefs.h <<_ACEOF
6106 #define uint32_t $ac_cv_c_uint32_t
6107 _ACEOF
6109 esac
6111 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6112 case $ac_cv_c_uint64_t in #(
6113 no|yes) ;; #(
6116 $as_echo "#define _UINT64_T 1" >>confdefs.h
6119 cat >>confdefs.h <<_ACEOF
6120 #define uint64_t $ac_cv_c_uint64_t
6121 _ACEOF
6123 esac
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6127 $as_echo_n "checking for unsigned long long int... " >&6; }
6128 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 /* For now, do not test the preprocessor; as of 2007 there are too many
6135 implementations with broken preprocessors. Perhaps this can
6136 be revisited in 2012. In the meantime, code should not expect
6137 #if to work with literals wider than 32 bits. */
6138 /* Test literals. */
6139 long long int ll = 9223372036854775807ll;
6140 long long int nll = -9223372036854775807LL;
6141 unsigned long long int ull = 18446744073709551615ULL;
6142 /* Test constant expressions. */
6143 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6144 ? 1 : -1)];
6145 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6146 ? 1 : -1)];
6147 int i = 63;
6149 main ()
6151 /* Test availability of runtime routines for shift and division. */
6152 long long int llmax = 9223372036854775807ll;
6153 unsigned long long int ullmax = 18446744073709551615ull;
6154 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6155 | (llmax / ll) | (llmax % ll)
6156 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6157 | (ullmax / ull) | (ullmax % ull));
6159 return 0;
6162 _ACEOF
6163 if ac_fn_c_try_link "$LINENO"; then :
6164 ac_cv_type_unsigned_long_long_int=yes
6165 else
6166 ac_cv_type_unsigned_long_long_int=no
6168 rm -f core conftest.err conftest.$ac_objext \
6169 conftest$ac_exeext conftest.$ac_ext
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6172 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6173 if test $ac_cv_type_unsigned_long_long_int = yes; then
6175 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6181 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6182 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6184 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6186 else
6187 test $ac_cv_type_unsigned_long_long_int = yes \
6188 && ac_type='unsigned long long int' \
6189 || ac_type='unsigned long int'
6191 cat >>confdefs.h <<_ACEOF
6192 #define uintmax_t $ac_type
6193 _ACEOF
6199 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6200 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6202 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6204 else
6205 for ac_type in 'unsigned int' 'unsigned long int' \
6206 'unsigned long long int'; do
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 $ac_includes_default
6211 main ()
6213 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6214 test_array [0] = 0
6217 return 0;
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"; then :
6222 cat >>confdefs.h <<_ACEOF
6223 #define uintptr_t $ac_type
6224 _ACEOF
6226 ac_type=
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 test -z "$ac_type" && break
6230 done
6246 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6247 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6250 # check what underlying integer type int64_t uses
6251 ac_ext=cpp
6252 ac_cpp='$CXXCPP $CPPFLAGS'
6253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6259 $as_echo_n "checking for int64_t underlying type... " >&6; }
6260 if test "${ac_cv_int64_t_type+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 #ifdef HAVE_STDINT_H
6268 #include <stdint.h>
6269 #endif
6270 template <typename T> struct X { };
6271 template <>
6272 struct X<long> { typedef long t; };
6275 main ()
6277 X<int64_t>::t x;
6279 return 0;
6281 _ACEOF
6282 if ac_fn_cxx_try_compile "$LINENO"; then :
6283 ac_cv_int64_t_type=long
6284 else
6285 ac_cv_int64_t_type="long long"
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6290 $as_echo "$ac_cv_int64_t_type" >&6; }
6291 if test "$ac_cv_int64_t_type" = "long"; then
6293 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6295 else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6299 #ifdef HAVE_STDINT_H
6300 #include <stdint.h>
6301 #endif
6302 template <typename T> struct X { };
6303 template <>
6304 struct X<long long> { typedef long long t; };
6307 main ()
6309 X<int64_t>::t x;
6311 return 0;
6313 _ACEOF
6314 if ac_fn_cxx_try_compile "$LINENO"; then :
6316 else
6317 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6331 # ---------------------
6332 # Warnings and checking
6333 # ---------------------
6335 # Check $CC warning features (if it's GCC).
6336 # We want to use -pedantic, but we don't want warnings about
6337 # * 'long long'
6338 # * variadic macros
6339 # * overlong strings
6340 # * C++11 narrowing conversions in { }
6341 # So, we only use -pedantic if we can disable those warnings.
6343 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6344 # Check whether --enable-build-format-warnings was given.
6345 if test "${enable_build_format_warnings+set}" = set; then :
6346 enableval=$enable_build_format_warnings;
6347 else
6348 enable_build_format_warnings=yes
6351 if test $enable_build_format_warnings = no; then :
6352 wf_opt=-Wno-format
6353 else
6354 wf_opt=
6356 loose_warn=
6357 save_CFLAGS="$CFLAGS"
6358 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6359 # Do the check with the no- prefix removed since gcc silently
6360 # accepts any -Wno-* option on purpose
6361 case $real_option in
6362 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6363 *) option=$real_option ;;
6364 esac
6365 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6368 $as_echo_n "checking whether $CC supports $option... " >&6; }
6369 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 CFLAGS="$option"
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6377 main ()
6381 return 0;
6383 _ACEOF
6384 if ac_fn_c_try_compile "$LINENO"; then :
6385 eval "$as_acx_Woption=yes"
6386 else
6387 eval "$as_acx_Woption=no"
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 eval ac_res=\$$as_acx_Woption
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6394 $as_echo "$ac_res" >&6; }
6395 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6396 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6398 done
6399 CFLAGS="$save_CFLAGS"
6401 c_loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6404 # Do the check with the no- prefix removed since gcc silently
6405 # accepts any -Wno-* option on purpose
6406 case $real_option in
6407 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6408 *) option=$real_option ;;
6409 esac
6410 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 CFLAGS="$option"
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6422 main ()
6426 return 0;
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 eval "$as_acx_Woption=yes"
6431 else
6432 eval "$as_acx_Woption=no"
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 eval ac_res=\$$as_acx_Woption
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6443 done
6444 CFLAGS="$save_CFLAGS"
6446 strict_warn=
6447 save_CFLAGS="$CFLAGS"
6448 for real_option in -Wmissing-format-attribute; do
6449 # Do the check with the no- prefix removed since gcc silently
6450 # accepts any -Wno-* option on purpose
6451 case $real_option in
6452 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6453 *) option=$real_option ;;
6454 esac
6455 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6458 $as_echo_n "checking whether $CC supports $option... " >&6; }
6459 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 CFLAGS="$option"
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6467 main ()
6471 return 0;
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475 eval "$as_acx_Woption=yes"
6476 else
6477 eval "$as_acx_Woption=no"
6479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482 eval ac_res=\$$as_acx_Woption
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6484 $as_echo "$ac_res" >&6; }
6485 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6486 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6488 done
6489 CFLAGS="$save_CFLAGS"
6491 save_CFLAGS="$CFLAGS"
6492 for real_option in -Woverloaded-virtual; do
6493 # Do the check with the no- prefix removed since gcc silently
6494 # accepts any -Wno-* option on purpose
6495 case $real_option in
6496 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6497 *) option=$real_option ;;
6498 esac
6499 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6502 $as_echo_n "checking whether $CC supports $option... " >&6; }
6503 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 CFLAGS="$option"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6511 main ()
6515 return 0;
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"; then :
6519 eval "$as_acx_Woption=yes"
6520 else
6521 eval "$as_acx_Woption=no"
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 eval ac_res=\$$as_acx_Woption
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6528 $as_echo "$ac_res" >&6; }
6529 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6530 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6532 done
6533 CFLAGS="$save_CFLAGS"
6535 c_strict_warn=
6536 save_CFLAGS="$CFLAGS"
6537 for real_option in -Wold-style-definition -Wc++-compat; do
6538 # Do the check with the no- prefix removed since gcc silently
6539 # accepts any -Wno-* option on purpose
6540 case $real_option in
6541 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6542 *) option=$real_option ;;
6543 esac
6544 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6547 $as_echo_n "checking whether $CC supports $option... " >&6; }
6548 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 CFLAGS="$option"
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6556 main ()
6560 return 0;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 eval "$as_acx_Woption=yes"
6565 else
6566 eval "$as_acx_Woption=no"
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 eval ac_res=\$$as_acx_Woption
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6573 $as_echo "$ac_res" >&6; }
6574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6575 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6577 done
6578 CFLAGS="$save_CFLAGS"
6580 # Do the check with the no- prefix removed from the warning options
6581 # since gcc silently accepts any -Wno-* option on purpose
6582 if test "$GCC" = yes; then :
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6584 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6585 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 save_CFLAGS="$CFLAGS"
6589 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6594 main ()
6598 return 0;
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"; then :
6602 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6603 else
6604 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 CFLAGS="$save_CFLAGS"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6610 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6611 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6612 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6617 # Check whether --enable-werror-always was given.
6618 if test "${enable_werror_always+set}" = set; then :
6619 enableval=$enable_werror_always;
6620 else
6621 enable_werror_always=no
6624 if test $enable_werror_always = yes; then :
6625 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6630 # The above macros do nothing if the compiler is not GCC. However, the
6631 # Makefile has more goo to add other flags, so these variables are used
6632 # to enable warnings only for GCC.
6633 warn_cflags=
6634 warn_cxxflags=
6635 if test "x$GCC" = "xyes"; then
6636 warn_cflags='$(GCC_WARN_CFLAGS)'
6637 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6642 # Disable exceptions and RTTI if building with g++
6643 noexception_flags=
6644 save_CFLAGS="$CFLAGS"
6645 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6646 # Do the check with the no- prefix removed since gcc silently
6647 # accepts any -Wno-* option on purpose
6648 case $real_option in
6649 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6650 *) option=$real_option ;;
6651 esac
6652 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6655 $as_echo_n "checking whether $CC supports $option... " >&6; }
6656 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 CFLAGS="$option"
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6664 main ()
6668 return 0;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"; then :
6672 eval "$as_acx_Woption=yes"
6673 else
6674 eval "$as_acx_Woption=no"
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6679 eval ac_res=\$$as_acx_Woption
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6681 $as_echo "$ac_res" >&6; }
6682 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6683 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6685 done
6686 CFLAGS="$save_CFLAGS"
6689 # Enable expensive internal checks
6690 is_release=
6691 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6692 is_release=yes
6695 # Check whether --enable-checking was given.
6696 if test "${enable_checking+set}" = set; then :
6697 enableval=$enable_checking; ac_checking_flags="${enableval}"
6698 else
6700 # Determine the default checks.
6701 if test x$is_release = x ; then
6702 ac_checking_flags=yes
6703 else
6704 ac_checking_flags=release
6708 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6709 for check in release $ac_checking_flags
6711 case $check in
6712 # these set all the flags to specific states
6713 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6714 ac_fold_checking= ; ac_gc_checking=1 ;
6715 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6716 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6717 ac_tree_checking=1 ; ac_valgrind_checking= ;
6718 ac_types_checking=1 ;;
6719 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6720 ac_fold_checking= ; ac_gc_checking= ;
6721 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6722 ac_rtlflag_checking= ; ac_runtime_checking= ;
6723 ac_tree_checking= ; ac_valgrind_checking= ;
6724 ac_types_checking= ;;
6725 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6726 ac_fold_checking=1 ; ac_gc_checking=1 ;
6727 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6728 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6729 ac_tree_checking=1 ; ac_valgrind_checking= ;
6730 ac_types_checking=1 ;;
6731 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6732 ac_fold_checking= ; ac_gc_checking= ;
6733 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6734 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6735 ac_tree_checking= ; ac_valgrind_checking= ;
6736 ac_types_checking= ;;
6737 # these enable particular checks
6738 assert) ac_assert_checking=1 ;;
6739 df) ac_df_checking=1 ;;
6740 fold) ac_fold_checking=1 ;;
6741 gc) ac_gc_checking=1 ;;
6742 gcac) ac_gc_always_collect=1 ;;
6743 gimple) ac_gimple_checking=1 ;;
6744 misc) ac_checking=1 ;;
6745 rtl) ac_rtl_checking=1 ;;
6746 rtlflag) ac_rtlflag_checking=1 ;;
6747 runtime) ac_runtime_checking=1 ;;
6748 tree) ac_tree_checking=1 ;;
6749 types) ac_types_checking=1 ;;
6750 valgrind) ac_valgrind_checking=1 ;;
6751 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6752 esac
6753 done
6754 IFS="$ac_save_IFS"
6756 nocommon_flag=""
6757 if test x$ac_checking != x ; then
6759 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6761 nocommon_flag=-fno-common
6764 if test x$ac_df_checking != x ; then
6766 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6769 if test x$ac_assert_checking != x ; then
6771 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6774 if test x$ac_gimple_checking != x ; then
6776 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6780 if test x$ac_runtime_checking != x ; then
6782 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6785 if test x$ac_tree_checking != x ; then
6787 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6789 TREEBROWSER=tree-browser.o
6790 TREECHECKING=yes
6792 if test x$ac_types_checking != x ; then
6794 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6799 if test x$ac_rtl_checking != x ; then
6801 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6804 if test x$ac_rtlflag_checking != x ; then
6806 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6809 if test x$ac_gc_checking != x ; then
6811 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6814 if test x$ac_gc_always_collect != x ; then
6816 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6819 if test x$ac_fold_checking != x ; then
6821 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6824 valgrind_path_defines=
6825 valgrind_command=
6827 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6828 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6829 have_valgrind_h=yes
6830 else
6831 have_valgrind_h=no
6836 # It is certainly possible that there's valgrind but no valgrind.h.
6837 # GCC relies on making annotations so we must have both.
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6839 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <valgrind/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_valgrind_memcheck_h=yes
6849 else
6850 gcc_cv_header_valgrind_memcheck_h=no
6852 rm -f conftest.err conftest.$ac_ext
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6854 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6856 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <memcheck.h>
6860 #ifndef VALGRIND_DISCARD
6861 #error VALGRIND_DISCARD not defined
6862 #endif
6863 _ACEOF
6864 if ac_fn_c_try_cpp "$LINENO"; then :
6865 gcc_cv_header_memcheck_h=yes
6866 else
6867 gcc_cv_header_memcheck_h=no
6869 rm -f conftest.err conftest.$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6871 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6872 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6874 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6877 if test $gcc_cv_header_memcheck_h = yes; then
6879 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6883 if test x$ac_valgrind_checking != x ; then
6885 # Prepare PATH_SEPARATOR.
6886 # The user is always right.
6887 if test "${PATH_SEPARATOR+set}" != set; then
6888 echo "#! /bin/sh" >conf$$.sh
6889 echo "exit 0" >>conf$$.sh
6890 chmod +x conf$$.sh
6891 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6892 PATH_SEPARATOR=';'
6893 else
6894 PATH_SEPARATOR=:
6896 rm -f conf$$.sh
6899 # Find out how to test for executable files. Don't use a zero-byte file,
6900 # as systems may use methods other than mode bits to determine executability.
6901 cat >conf$$.file <<_ASEOF
6902 #! /bin/sh
6903 exit 0
6904 _ASEOF
6905 chmod +x conf$$.file
6906 if test -x conf$$.file >/dev/null 2>&1; then
6907 ac_executable_p="test -x"
6908 else
6909 ac_executable_p="test -f"
6911 rm -f conf$$.file
6913 # Extract the first word of "valgrind", so it can be a program name with args.
6914 set dummy valgrind; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 case "$valgrind_path" in
6921 [\\/]* | ?:[\\/]*)
6922 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6925 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6926 for ac_dir in $PATH; do
6927 IFS="$ac_save_IFS"
6928 test -z "$ac_dir" && ac_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6931 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6932 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6933 break 2
6936 done
6937 done
6938 IFS="$ac_save_IFS"
6940 esac
6942 valgrind_path="$ac_cv_path_valgrind_path"
6943 if test -n "$valgrind_path"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6945 $as_echo "$valgrind_path" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$valgrind_path" = "x" \
6952 || (test $have_valgrind_h = no \
6953 && test $gcc_cv_header_memcheck_h = no \
6954 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6955 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6957 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6958 valgrind_command="$valgrind_path -q"
6960 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6966 # Enable code coverage collection
6967 # Check whether --enable-coverage was given.
6968 if test "${enable_coverage+set}" = set; then :
6969 enableval=$enable_coverage; case "${enableval}" in
6970 yes|noopt)
6971 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6973 opt)
6974 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6977 # a.k.a. --disable-coverage
6978 coverage_flags=""
6981 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6983 esac
6984 else
6985 coverage_flags=""
6990 # Check whether --enable-gather-detailed-mem-stats was given.
6991 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6992 enableval=$enable_gather_detailed_mem_stats;
6993 else
6994 enable_gather_detailed_mem_stats=no
6997 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6999 cat >>confdefs.h <<_ACEOF
7000 #define GATHER_STATISTICS $gather_stats
7001 _ACEOF
7004 # Check whether --enable-valgrind-annotations was given.
7005 if test "${enable_valgrind_annotations+set}" = set; then :
7006 enableval=$enable_valgrind_annotations;
7007 else
7008 enable_valgrind_annotations=no
7011 if test x$enable_valgrind_annotations != xno \
7012 || test x$ac_valgrind_checking != x; then
7013 if (test $have_valgrind_h = no \
7014 && test $gcc_cv_header_memcheck_h = no \
7015 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7016 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7019 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7023 # -------------------------------
7024 # Miscenalleous configure options
7025 # -------------------------------
7027 # With stabs
7029 # Check whether --with-stabs was given.
7030 if test "${with_stabs+set}" = set; then :
7031 withval=$with_stabs; stabs="$with_stabs"
7032 else
7033 stabs=no
7037 # Determine whether or not multilibs are enabled.
7038 # Check whether --enable-multilib was given.
7039 if test "${enable_multilib+set}" = set; then :
7040 enableval=$enable_multilib;
7041 else
7042 enable_multilib=yes
7047 # Determine whether or not multiarch is enabled.
7048 # Check whether --enable-multiarch was given.
7049 if test "${enable_multiarch+set}" = set; then :
7050 enableval=$enable_multiarch; case "${enableval}" in
7051 yes|no|auto) enable_multiarch=$enableval;;
7052 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7053 esac
7054 else
7055 enable_multiarch=auto
7058 if test x${enable_multiarch} = xauto; then
7059 if test x${with_native_system_header_dir} != x; then
7060 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7061 enable_multiarch=no
7063 if test x$host != x$target && test "x$with_sysroot" = x; then
7064 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7065 enable_multiarch=no
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7069 $as_echo_n "checking for multiarch configuration... " >&6; }
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7072 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7074 # needed for setting the multiarch name for soft-float/hard-float ABIs
7078 # Enable __cxa_atexit for C++.
7079 # Check whether --enable-__cxa_atexit was given.
7080 if test "${enable___cxa_atexit+set}" = set; then :
7081 enableval=$enable___cxa_atexit;
7085 # Enable C extension for decimal float if target supports it.
7087 # Check whether --enable-decimal-float was given.
7088 if test "${enable_decimal_float+set}" = set; then :
7089 enableval=$enable_decimal_float;
7090 case $enable_decimal_float in
7091 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7092 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7093 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7094 esac
7096 else
7098 case $target in
7099 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7100 i?86*-*-gnu* | \
7101 i?86*-*-mingw* | x86_64*-*-mingw* | \
7102 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7103 enable_decimal_float=yes
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7107 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7108 enable_decimal_float=no
7110 esac
7115 # x86's use BID format instead of DPD
7116 case x$enable_decimal_float in
7117 xyes)
7118 case $target in
7119 i?86*-*-* | x86_64*-*-*)
7120 enable_decimal_float=bid
7123 enable_decimal_float=dpd
7125 esac
7126 default_decimal_float=$enable_decimal_float
7128 xno)
7129 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7130 # dependency on libdecnumber.
7131 default_decimal_float=dpd
7133 esac
7138 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7140 cat >>confdefs.h <<_ACEOF
7141 #define ENABLE_DECIMAL_FLOAT $dfp
7142 _ACEOF
7145 # Use default_decimal_float for dependency.
7146 enable_decimal_float=$default_decimal_float
7148 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7150 cat >>confdefs.h <<_ACEOF
7151 #define ENABLE_DECIMAL_BID_FORMAT $bid
7152 _ACEOF
7155 # Enable C extension for fixed-point arithmetic.
7156 # Check whether --enable-fixed-point was given.
7157 if test "${enable_fixed_point+set}" = set; then :
7158 enableval=$enable_fixed_point;
7159 else
7161 case $target in
7162 arm*)
7163 enable_fixed_point=yes
7166 mips*-*-*)
7167 enable_fixed_point=yes
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7171 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7172 enable_fixed_point=no
7174 esac
7180 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7182 cat >>confdefs.h <<_ACEOF
7183 #define ENABLE_FIXED_POINT $fixedpoint
7184 _ACEOF
7187 # Enable threads
7188 # Pass with no value to take the default
7189 # Pass with a value to specify a thread package
7190 # Check whether --enable-threads was given.
7191 if test "${enable_threads+set}" = set; then :
7192 enableval=$enable_threads;
7193 else
7194 enable_threads=''
7198 # Check whether --enable-tls was given.
7199 if test "${enable_tls+set}" = set; then :
7200 enableval=$enable_tls;
7201 case $enable_tls in
7202 yes | no) ;;
7203 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7204 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7205 esac
7207 else
7208 enable_tls=''
7212 # Check whether --enable-objc-gc was given.
7213 if test "${enable_objc_gc+set}" = set; then :
7214 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7215 objc_boehm_gc=''
7216 else
7217 objc_boehm_gc=1
7219 else
7220 objc_boehm_gc=''
7225 # Check whether --with-dwarf2 was given.
7226 if test "${with_dwarf2+set}" = set; then :
7227 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7228 else
7229 dwarf2=no
7233 # Check whether --enable-shared was given.
7234 if test "${enable_shared+set}" = set; then :
7235 enableval=$enable_shared;
7236 case $enable_shared in
7237 yes | no) ;;
7239 enable_shared=no
7240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7241 for pkg in $enableval; do
7242 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7243 enable_shared=yes
7245 done
7246 IFS="$ac_save_ifs"
7248 esac
7250 else
7251 enable_shared=yes
7257 # Check whether --with-native-system-header-dir was given.
7258 if test "${with_native_system_header_dir+set}" = set; then :
7259 withval=$with_native_system_header_dir;
7260 case ${with_native_system_header_dir} in
7261 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7262 /* | [A-Za-z]:[\\/]*) ;;
7263 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7264 esac
7265 configured_native_system_header_dir="${withval}"
7267 else
7268 configured_native_system_header_dir=
7273 # Check whether --with-build-sysroot was given.
7274 if test "${with_build_sysroot+set}" = set; then :
7275 withval=$with_build_sysroot; if test x"$withval" != x ; then
7276 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7278 else
7279 SYSROOT_CFLAGS_FOR_TARGET=
7284 if test "x$prefix" = xNONE; then
7285 test_prefix=/usr/local
7286 else
7287 test_prefix=$prefix
7289 if test "x$exec_prefix" = xNONE; then
7290 test_exec_prefix=$test_prefix
7291 else
7292 test_exec_prefix=$exec_prefix
7296 # Check whether --with-sysroot was given.
7297 if test "${with_sysroot+set}" = set; then :
7298 withval=$with_sysroot;
7299 case ${with_sysroot} in
7300 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7301 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7302 esac
7304 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7305 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7307 case ${TARGET_SYSTEM_ROOT} in
7308 "${test_prefix}"|"${test_prefix}/"*|\
7309 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7310 '${prefix}'|'${prefix}/'*|\
7311 '${exec_prefix}'|'${exec_prefix}/'*)
7312 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7313 TARGET_SYSTEM_ROOT_DEFINE="$t"
7315 esac
7317 else
7319 TARGET_SYSTEM_ROOT=
7320 TARGET_SYSTEM_ROOT_DEFINE=
7321 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7330 # Check whether --with-specs was given.
7331 if test "${with_specs+set}" = set; then :
7332 withval=$with_specs; CONFIGURE_SPECS=$withval
7333 else
7334 CONFIGURE_SPECS=
7342 # Check whether --with-pkgversion was given.
7343 if test "${with_pkgversion+set}" = set; then :
7344 withval=$with_pkgversion; case "$withval" in
7345 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7346 no) PKGVERSION= ;;
7347 *) PKGVERSION="($withval) " ;;
7348 esac
7349 else
7350 PKGVERSION="(GCC) "
7358 # Check whether --with-bugurl was given.
7359 if test "${with_bugurl+set}" = set; then :
7360 withval=$with_bugurl; case "$withval" in
7361 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7362 no) BUGURL=
7364 *) BUGURL="$withval"
7366 esac
7367 else
7368 BUGURL="http://gcc.gnu.org/bugs.html"
7372 case ${BUGURL} in
7374 REPORT_BUGS_TO=
7375 REPORT_BUGS_TEXI=
7378 REPORT_BUGS_TO="<$BUGURL>"
7379 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7381 esac;
7386 # Sanity check enable_languages in case someone does not run the toplevel
7387 # configure # script.
7388 # Check whether --enable-languages was given.
7389 if test "${enable_languages+set}" = set; then :
7390 enableval=$enable_languages; case ,${enable_languages}, in
7391 ,,|,yes,)
7392 # go safe -- we cannot be much sure without the toplevel
7393 # configure's
7394 # analysis of which target libs are present and usable
7395 enable_languages=c
7397 *,all,*)
7398 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7400 *,c,*)
7403 enable_languages=c,${enable_languages}
7405 esac
7406 else
7407 enable_languages=c
7411 # Check whether --enable-as-accelerator-for was given.
7412 if test "${enable_as_accelerator_for+set}" = set; then :
7413 enableval=$enable_as_accelerator_for;
7415 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7417 enable_as_accelerator=yes
7418 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7419 program_transform_name=`echo $program_transform_name | sed $sedscript`
7420 accel_dir_suffix=/accel/${target_noncanonical}
7421 real_target_noncanonical=${enable_as_accelerator_for}
7423 else
7424 enable_as_accelerator=no
7429 # Check whether --enable-offload-targets was given.
7430 if test "${enable_offload_targets+set}" = set; then :
7431 enableval=$enable_offload_targets;
7432 if test x"$enable_offload_targets" = x; then
7433 as_fn_error "no offload targets specified" "$LINENO" 5
7436 else
7437 enable_offload_targets=
7440 enable_offload_targets=`echo "$enable_offload_targets" | sed -e 's#,#:#g'`
7442 cat >>confdefs.h <<_ACEOF
7443 #define OFFLOAD_TARGETS "$enable_offload_targets"
7444 _ACEOF
7446 if test x"$enable_offload_targets" != x; then
7448 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7453 # Check whether --with-multilib-list was given.
7454 if test "${with_multilib_list+set}" = set; then :
7455 withval=$with_multilib_list; :
7456 else
7457 with_multilib_list=default
7461 # -------------------------
7462 # Checks for other programs
7463 # -------------------------
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7466 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7467 set x ${MAKE-make}
7468 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7469 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat >conftest.make <<\_ACEOF
7473 SHELL = /bin/sh
7474 all:
7475 @echo '@@@%%%=$(MAKE)=@@@%%%'
7476 _ACEOF
7477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7478 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7479 *@@@%%%=?*=@@@%%%*)
7480 eval ac_cv_prog_make_${ac_make}_set=yes;;
7482 eval ac_cv_prog_make_${ac_make}_set=no;;
7483 esac
7484 rm -f conftest.make
7486 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7488 $as_echo "yes" >&6; }
7489 SET_MAKE=
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 SET_MAKE="MAKE=${MAKE-make}"
7497 # Find some useful tools
7498 for ac_prog in gawk mawk nawk awk
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy $ac_prog; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_AWK+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$AWK"; then
7508 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_AWK="$ac_prog"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7521 done
7522 done
7523 IFS=$as_save_IFS
7527 AWK=$ac_cv_prog_AWK
7528 if test -n "$AWK"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7530 $as_echo "$AWK" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 test -n "$AWK" && break
7538 done
7540 # We need awk to create options.c and options.h.
7541 # Bail out if it's missing.
7542 case ${AWK} in
7543 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7544 esac
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7547 $as_echo_n "checking whether ln -s works... " >&6; }
7548 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 rm -f conftestdata_t
7552 echo >conftestdata_f
7553 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7554 then
7555 gcc_cv_prog_LN_S="ln -s"
7556 else
7557 if ln conftestdata_f conftestdata_t 2>/dev/null
7558 then
7559 gcc_cv_prog_LN_S=ln
7560 else
7561 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7562 then
7563 gcc_cv_prog_LN_S="cp -p"
7564 else
7565 gcc_cv_prog_LN_S=cp
7569 rm -f conftestdata_f conftestdata_t
7572 LN_S="$gcc_cv_prog_LN_S"
7573 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7575 $as_echo "yes" >&6; }
7576 else
7577 if test "$gcc_cv_prog_LN_S" = "ln"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7579 $as_echo "no, using ln" >&6; }
7580 else
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7582 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7587 $as_echo_n "checking whether ln works... " >&6; }
7588 if test "${acx_cv_prog_LN+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 rm -f conftestdata_t
7592 echo >conftestdata_f
7593 if ln conftestdata_f conftestdata_t 2>/dev/null
7594 then
7595 acx_cv_prog_LN=ln
7596 else
7597 acx_cv_prog_LN=no
7599 rm -f conftestdata_f conftestdata_t
7602 if test $acx_cv_prog_LN = no; then
7603 LN="$LN_S"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7605 $as_echo "no, using $LN" >&6; }
7606 else
7607 LN="$acx_cv_prog_LN"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7609 $as_echo "yes" >&6; }
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$RANLIB"; then
7621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7634 done
7635 done
7636 IFS=$as_save_IFS
7640 RANLIB=$ac_cv_prog_RANLIB
7641 if test -n "$RANLIB"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7643 $as_echo "$RANLIB" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_RANLIB"; then
7652 ac_ct_RANLIB=$RANLIB
7653 # Extract the first word of "ranlib", so it can be a program name with args.
7654 set dummy ranlib; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$ac_ct_RANLIB"; then
7661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_ac_ct_RANLIB="ranlib"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7674 done
7675 done
7676 IFS=$as_save_IFS
7680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7681 if test -n "$ac_ct_RANLIB"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7683 $as_echo "$ac_ct_RANLIB" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_RANLIB" = x; then
7690 RANLIB=":"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698 RANLIB=$ac_ct_RANLIB
7700 else
7701 RANLIB="$ac_cv_prog_RANLIB"
7704 ranlib_flags=""
7707 # Find a good install program. We prefer a C program (faster),
7708 # so one script is as good as another. But avoid the broken or
7709 # incompatible versions:
7710 # SysV /etc/install, /usr/sbin/install
7711 # SunOS /usr/etc/install
7712 # IRIX /sbin/install
7713 # AIX /bin/install
7714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7716 # ./install, which can be erroneously created by make from ./install.sh.
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7718 $as_echo_n "checking for a BSD compatible install... " >&6; }
7719 if test -z "$INSTALL"; then
7720 if test "${ac_cv_path_install+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7724 for ac_dir in $PATH; do
7725 # Account for people who put trailing slashes in PATH elements.
7726 case "$ac_dir/" in
7727 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7729 # OSF1 and SCO ODT 3.0 have their own names for install.
7730 for ac_prog in ginstall scoinst install; do
7731 if test -f $ac_dir/$ac_prog; then
7732 if test $ac_prog = install &&
7733 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7734 # AIX install. It has an incompatible calling convention.
7735 # OSF/1 installbsd also uses dspmsg, but is usable.
7737 else
7738 ac_cv_path_install="$ac_dir/$ac_prog -c"
7739 break 2
7742 done
7744 esac
7745 done
7746 IFS="$ac_save_IFS"
7749 if test "${ac_cv_path_install+set}" = set; then
7750 INSTALL="$ac_cv_path_install"
7751 else
7752 # As a last resort, use the slow shell script. We don't cache a
7753 # path for INSTALL within a source directory, because that will
7754 # break other packages using the cache if that directory is
7755 # removed, or if the path is relative.
7756 INSTALL="$ac_install_sh"
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7760 $as_echo "$INSTALL" >&6; }
7762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7763 # It thinks the first close brace ends the variable substitution.
7764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7769 # See if cmp has --ignore-initial.
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7771 $as_echo_n "checking for cmp's capabilities... " >&6; }
7772 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
7774 else
7775 echo abfoo >t1
7776 echo cdfoo >t2
7777 gcc_cv_prog_cmp_skip=slowcompare
7778 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7779 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7781 else
7782 gcc_cv_prog_cmp_skip=gnucompare
7785 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7786 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7787 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7789 else
7790 gcc_cv_prog_cmp_skip=fastcompare
7794 rm t1 t2
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7798 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7799 make_compare_target=$gcc_cv_prog_cmp_skip
7803 # See if we have the mktemp command.
7804 # Extract the first word of "mktemp", so it can be a program name with args.
7805 set dummy mktemp; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 if test -n "$have_mktemp_command"; then
7812 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7813 else
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815 for as_dir in $PATH
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7821 ac_cv_prog_have_mktemp_command="yes"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7825 done
7826 done
7827 IFS=$as_save_IFS
7829 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7832 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7833 if test -n "$have_mktemp_command"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7835 $as_echo "$have_mktemp_command" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7843 # See if makeinfo has been installed and is modern enough
7844 # that we can use it.
7846 # Extract the first word of "makeinfo", so it can be a program name with args.
7847 set dummy makeinfo; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 if test -n "$MAKEINFO"; then
7854 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 ac_cv_prog_MAKEINFO="makeinfo"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 break 2
7867 done
7868 done
7869 IFS=$as_save_IFS
7873 MAKEINFO=$ac_cv_prog_MAKEINFO
7874 if test -n "$MAKEINFO"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7876 $as_echo "$MAKEINFO" >&6; }
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7883 if test -n "$MAKEINFO"; then
7884 # Found it, now check the version.
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7886 $as_echo_n "checking for modern makeinfo... " >&6; }
7887 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7891 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7893 case $ac_prog_version in
7894 '') gcc_cv_prog_makeinfo_modern=no;;
7895 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7896 *) gcc_cv_prog_makeinfo_modern=no;;
7897 esac
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7901 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7902 else
7903 gcc_cv_prog_makeinfo_modern=no
7905 if test $gcc_cv_prog_makeinfo_modern = no; then
7906 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7909 if test $gcc_cv_prog_makeinfo_modern = no; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7911 *** Makeinfo is missing or too old.
7912 *** Info documentation will not be built." >&5
7913 $as_echo "$as_me: WARNING:
7914 *** Makeinfo is missing or too old.
7915 *** Info documentation will not be built." >&2;}
7916 BUILD_INFO=
7917 else
7918 BUILD_INFO=info
7922 # Is pod2man recent enough to regenerate manpages?
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7924 $as_echo_n "checking for recent Pod::Man... " >&6; }
7925 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7927 $as_echo "yes" >&6; }
7928 GENERATED_MANPAGES=generated-manpages
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7932 GENERATED_MANPAGES=
7936 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7938 # How about lex?
7939 for ac_prog in flex
7941 # Extract the first word of "$ac_prog", so it can be a program name with args.
7942 set dummy $ac_prog; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if test "${ac_cv_prog_FLEX+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 if test -n "$FLEX"; then
7949 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7958 ac_cv_prog_FLEX="$ac_prog"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7962 done
7963 done
7964 IFS=$as_save_IFS
7968 FLEX=$ac_cv_prog_FLEX
7969 if test -n "$FLEX"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7971 $as_echo "$FLEX" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7978 test -n "$FLEX" && break
7979 done
7980 test -n "$FLEX" || FLEX="$MISSING flex"
7983 # Bison?
7984 for ac_prog in bison
7986 # Extract the first word of "$ac_prog", so it can be a program name with args.
7987 set dummy $ac_prog; ac_word=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if test "${ac_cv_prog_BISON+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 if test -n "$BISON"; then
7994 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_prog_BISON="$ac_prog"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8007 done
8008 done
8009 IFS=$as_save_IFS
8013 BISON=$ac_cv_prog_BISON
8014 if test -n "$BISON"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8016 $as_echo "$BISON" >&6; }
8017 else
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8023 test -n "$BISON" && break
8024 done
8025 test -n "$BISON" || BISON="$MISSING bison"
8028 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8029 # check for build == host before using them.
8031 # NM
8032 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8033 && test -d ../binutils ; then
8034 NM='${objdir}/../binutils/nm-new'
8035 else
8036 # Extract the first word of "nm", so it can be a program name with args.
8037 set dummy nm; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if test "${ac_cv_prog_NM+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 if test -n "$NM"; then
8044 ac_cv_prog_NM="$NM" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8053 ac_cv_prog_NM="nm"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8057 done
8058 done
8059 IFS=$as_save_IFS
8061 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8064 NM=$ac_cv_prog_NM
8065 if test -n "$NM"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8067 $as_echo "$NM" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8076 # AR
8077 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8078 && test -d ../binutils ; then
8079 AR='${objdir}/../binutils/ar'
8080 else
8081 # Extract the first word of "ar", so it can be a program name with args.
8082 set dummy ar; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_AR+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$AR"; then
8089 ac_cv_prog_AR="$AR" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_prog_AR="ar"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8106 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8109 AR=$ac_cv_prog_AR
8110 if test -n "$AR"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8112 $as_echo "$AR" >&6; }
8113 else
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8121 # The jit documentation looks better if built with sphinx, but can be
8122 # built with texinfo if sphinx is not available.
8123 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8124 # Extract the first word of "sphinx-build", so it can be a program name with args.
8125 set dummy sphinx-build; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 if test -n "$doc_build_sys"; then
8132 ac_cv_prog_doc_build_sys="$doc_build_sys" # Let the user override the test.
8133 else
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8137 IFS=$as_save_IFS
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_doc_build_sys="sphinx"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 break 2
8145 done
8146 done
8147 IFS=$as_save_IFS
8149 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys="texinfo"
8152 doc_build_sys=$ac_cv_prog_doc_build_sys
8153 if test -n "$doc_build_sys"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8155 $as_echo "$doc_build_sys" >&6; }
8156 else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8163 # --------------------
8164 # Checks for C headers
8165 # --------------------
8167 # Need to reject headers which give warnings, so that the -Werror bootstrap
8168 # works later. *sigh* This needs to come before all header checks.
8170 ac_c_preproc_warn_flag=yes
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8173 $as_echo_n "checking for ANSI C header files... " >&6; }
8174 if test "${ac_cv_header_stdc+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #include <stdlib.h>
8180 #include <stdarg.h>
8181 #include <string.h>
8182 #include <float.h>
8185 main ()
8189 return 0;
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193 ac_cv_header_stdc=yes
8194 else
8195 ac_cv_header_stdc=no
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 if test $ac_cv_header_stdc = yes; then
8200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8202 /* end confdefs.h. */
8203 #include <string.h>
8205 _ACEOF
8206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8207 $EGREP "memchr" >/dev/null 2>&1; then :
8209 else
8210 ac_cv_header_stdc=no
8212 rm -f conftest*
8216 if test $ac_cv_header_stdc = yes; then
8217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 #include <stdlib.h>
8222 _ACEOF
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 $EGREP "free" >/dev/null 2>&1; then :
8226 else
8227 ac_cv_header_stdc=no
8229 rm -f conftest*
8233 if test $ac_cv_header_stdc = yes; then
8234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8235 if test "$cross_compiling" = yes; then :
8237 else
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 #include <ctype.h>
8241 #include <stdlib.h>
8242 #if ((' ' & 0x0FF) == 0x020)
8243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8245 #else
8246 # define ISLOWER(c) \
8247 (('a' <= (c) && (c) <= 'i') \
8248 || ('j' <= (c) && (c) <= 'r') \
8249 || ('s' <= (c) && (c) <= 'z'))
8250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8251 #endif
8253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8255 main ()
8257 int i;
8258 for (i = 0; i < 256; i++)
8259 if (XOR (islower (i), ISLOWER (i))
8260 || toupper (i) != TOUPPER (i))
8261 return 2;
8262 return 0;
8264 _ACEOF
8265 if ac_fn_c_try_run "$LINENO"; then :
8267 else
8268 ac_cv_header_stdc=no
8270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8271 conftest.$ac_objext conftest.beam conftest.$ac_ext
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8277 $as_echo "$ac_cv_header_stdc" >&6; }
8278 if test $ac_cv_header_stdc = yes; then
8280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8285 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8286 if test "${ac_cv_header_time+set}" = set; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 #include <sys/types.h>
8292 #include <sys/time.h>
8293 #include <time.h>
8296 main ()
8298 if ((struct tm *) 0)
8299 return 0;
8301 return 0;
8303 _ACEOF
8304 if ac_fn_c_try_compile "$LINENO"; then :
8305 ac_cv_header_time=yes
8306 else
8307 ac_cv_header_time=no
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8312 $as_echo "$ac_cv_header_time" >&6; }
8313 if test $ac_cv_header_time = yes; then
8315 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8320 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8321 if test "${gcc_cv_header_string+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326 #include <string.h>
8327 #include <strings.h>
8329 main ()
8333 return 0;
8335 _ACEOF
8336 if ac_fn_c_try_compile "$LINENO"; then :
8337 gcc_cv_header_string=yes
8338 else
8339 gcc_cv_header_string=no
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8344 $as_echo "$gcc_cv_header_string" >&6; }
8345 if test $gcc_cv_header_string = yes; then
8347 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8352 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8353 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 #include <sys/types.h>
8359 #include <sys/wait.h>
8360 #ifndef WEXITSTATUS
8361 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8362 #endif
8363 #ifndef WIFEXITED
8364 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8365 #endif
8368 main ()
8370 int s;
8371 wait (&s);
8372 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8374 return 0;
8376 _ACEOF
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378 ac_cv_header_sys_wait_h=yes
8379 else
8380 ac_cv_header_sys_wait_h=no
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8385 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8386 if test $ac_cv_header_sys_wait_h = yes; then
8388 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8393 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8394 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399 #include <sys/types.h>
8400 #include <termios.h>
8401 #ifdef TIOCGWINSZ
8403 #endif
8405 _ACEOF
8406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8407 $EGREP "yes" >/dev/null 2>&1; then :
8408 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8409 else
8410 ac_cv_sys_tiocgwinsz_in_termios_h=no
8412 rm -f conftest*
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8416 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8418 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8420 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8421 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8426 #include <sys/types.h>
8427 #include <sys/ioctl.h>
8428 #ifdef TIOCGWINSZ
8430 #endif
8432 _ACEOF
8433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434 $EGREP "yes" >/dev/null 2>&1; then :
8435 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8436 else
8437 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8439 rm -f conftest*
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8443 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8445 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8447 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8452 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8453 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8454 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8455 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8456 do :
8457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8458 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8459 eval as_val=\$$as_ac_Header
8460 if test "x$as_val" = x""yes; then :
8461 cat >>confdefs.h <<_ACEOF
8462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8463 _ACEOF
8466 done
8469 # Check for thread headers.
8470 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8471 if test "x$ac_cv_header_thread_h" = x""yes; then :
8472 have_thread_h=yes
8473 else
8474 have_thread_h=
8477 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8478 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8479 have_pthread_h=yes
8480 else
8481 have_pthread_h=
8485 # These tests can't be done till we know if we have limits.h.
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8487 $as_echo_n "checking for CHAR_BIT... " >&6; }
8488 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 #ifdef HAVE_LIMITS_H
8494 #include <limits.h>
8495 #endif
8496 #ifdef CHAR_BIT
8497 found
8498 #endif
8499 _ACEOF
8500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8501 $EGREP "found" >/dev/null 2>&1; then :
8502 gcc_cv_decl_char_bit=yes
8503 else
8504 gcc_cv_decl_char_bit=no
8506 rm -f conftest*
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8511 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8512 if test $gcc_cv_decl_char_bit = no; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8514 $as_echo_n "checking number of bits in a byte... " >&6; }
8515 if test "${gcc_cv_c_nbby+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8519 gcc_cv_c_nbby=
8520 while test $i -lt 65; do
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8525 main ()
8527 switch(0) {
8528 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8529 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8532 return 0;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"; then :
8536 gcc_cv_c_nbby=$i; break
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 i=`expr $i + 1`
8540 done
8541 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8545 $as_echo "$gcc_cv_c_nbby" >&6; }
8546 if test $gcc_cv_c_nbby = failed; then
8547 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8548 else
8550 cat >>confdefs.h <<_ACEOF
8551 #define CHAR_BIT $gcc_cv_c_nbby
8552 _ACEOF
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8557 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8558 if test "${ac_cv_c_bigendian+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 ac_cv_c_bigendian=unknown
8562 # See if we're dealing with a universal compiler.
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8565 #ifndef __APPLE_CC__
8566 not a universal capable compiler
8567 #endif
8568 typedef int dummy;
8570 _ACEOF
8571 if ac_fn_c_try_compile "$LINENO"; then :
8573 # Check for potential -arch flags. It is not universal unless
8574 # there are at least two -arch flags with different values.
8575 ac_arch=
8576 ac_prev=
8577 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8578 if test -n "$ac_prev"; then
8579 case $ac_word in
8580 i?86 | x86_64 | ppc | ppc64)
8581 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8582 ac_arch=$ac_word
8583 else
8584 ac_cv_c_bigendian=universal
8585 break
8588 esac
8589 ac_prev=
8590 elif test "x$ac_word" = "x-arch"; then
8591 ac_prev=arch
8593 done
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596 if test $ac_cv_c_bigendian = unknown; then
8597 # See if sys/param.h defines the BYTE_ORDER macro.
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 #include <sys/types.h>
8601 #include <sys/param.h>
8604 main ()
8606 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8607 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8608 && LITTLE_ENDIAN)
8609 bogus endian macros
8610 #endif
8613 return 0;
8615 _ACEOF
8616 if ac_fn_c_try_compile "$LINENO"; then :
8617 # It does; now see whether it defined to BIG_ENDIAN or not.
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <sys/param.h>
8624 main ()
8626 #if BYTE_ORDER != BIG_ENDIAN
8627 not big endian
8628 #endif
8631 return 0;
8633 _ACEOF
8634 if ac_fn_c_try_compile "$LINENO"; then :
8635 ac_cv_c_bigendian=yes
8636 else
8637 ac_cv_c_bigendian=no
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 if test $ac_cv_c_bigendian = unknown; then
8644 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h. */
8647 #include <limits.h>
8650 main ()
8652 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8653 bogus endian macros
8654 #endif
8657 return 0;
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661 # It does; now see whether it defined to _BIG_ENDIAN or not.
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 #include <limits.h>
8667 main ()
8669 #ifndef _BIG_ENDIAN
8670 not big endian
8671 #endif
8674 return 0;
8676 _ACEOF
8677 if ac_fn_c_try_compile "$LINENO"; then :
8678 ac_cv_c_bigendian=yes
8679 else
8680 ac_cv_c_bigendian=no
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686 if test $ac_cv_c_bigendian = unknown; then
8687 # Compile a test program.
8688 if test "$cross_compiling" = yes; then :
8689 # Try to guess by grepping values from an object file.
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 short int ascii_mm[] =
8693 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8694 short int ascii_ii[] =
8695 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8696 int use_ascii (int i) {
8697 return ascii_mm[i] + ascii_ii[i];
8699 short int ebcdic_ii[] =
8700 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8701 short int ebcdic_mm[] =
8702 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8703 int use_ebcdic (int i) {
8704 return ebcdic_mm[i] + ebcdic_ii[i];
8706 extern int foo;
8709 main ()
8711 return use_ascii (foo) == use_ebcdic (foo);
8713 return 0;
8715 _ACEOF
8716 if ac_fn_c_try_compile "$LINENO"; then :
8717 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8718 ac_cv_c_bigendian=yes
8720 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8721 if test "$ac_cv_c_bigendian" = unknown; then
8722 ac_cv_c_bigendian=no
8723 else
8724 # finding both strings is unlikely to happen, but who knows?
8725 ac_cv_c_bigendian=unknown
8729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8730 else
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 $ac_includes_default
8735 main ()
8738 /* Are we little or big endian? From Harbison&Steele. */
8739 union
8741 long int l;
8742 char c[sizeof (long int)];
8743 } u;
8744 u.l = 1;
8745 return u.c[sizeof (long int) - 1] == 1;
8748 return 0;
8750 _ACEOF
8751 if ac_fn_c_try_run "$LINENO"; then :
8752 ac_cv_c_bigendian=no
8753 else
8754 ac_cv_c_bigendian=yes
8756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8757 conftest.$ac_objext conftest.beam conftest.$ac_ext
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8763 $as_echo "$ac_cv_c_bigendian" >&6; }
8764 case $ac_cv_c_bigendian in #(
8765 yes)
8766 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8767 ;; #(
8769 ;; #(
8770 universal)
8772 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8774 ;; #(
8776 as_fn_error "unknown endianness
8777 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8778 esac
8781 # ----------------------
8782 # Checks for C++ headers
8783 # ----------------------
8785 ac_ext=cpp
8786 ac_cpp='$CXXCPP $CPPFLAGS'
8787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8791 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8792 if test -z "$CXXCPP"; then
8793 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 # Double quotes because CXXCPP needs to be expanded
8797 for CXXCPP in "$CXX -E" "/lib/cpp"
8799 ac_preproc_ok=false
8800 for ac_cxx_preproc_warn_flag in '' yes
8802 # Use a header file that comes with gcc, so configuring glibc
8803 # with a fresh cross-compiler works.
8804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8805 # <limits.h> exists even on freestanding compilers.
8806 # On the NeXT, cc -E runs the code through the compiler's parser,
8807 # not just through cpp. "Syntax error" is here to catch this case.
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 #ifdef __STDC__
8811 # include <limits.h>
8812 #else
8813 # include <assert.h>
8814 #endif
8815 Syntax error
8816 _ACEOF
8817 if ac_fn_cxx_try_cpp "$LINENO"; then :
8819 else
8820 # Broken: fails on valid input.
8821 continue
8823 rm -f conftest.err conftest.$ac_ext
8825 # OK, works on sane cases. Now check whether nonexistent headers
8826 # can be detected and how.
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 #include <ac_nonexistent.h>
8830 _ACEOF
8831 if ac_fn_cxx_try_cpp "$LINENO"; then :
8832 # Broken: success on invalid input.
8833 continue
8834 else
8835 # Passes both tests.
8836 ac_preproc_ok=:
8837 break
8839 rm -f conftest.err conftest.$ac_ext
8841 done
8842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8843 rm -f conftest.err conftest.$ac_ext
8844 if $ac_preproc_ok; then :
8845 break
8848 done
8849 ac_cv_prog_CXXCPP=$CXXCPP
8852 CXXCPP=$ac_cv_prog_CXXCPP
8853 else
8854 ac_cv_prog_CXXCPP=$CXXCPP
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8857 $as_echo "$CXXCPP" >&6; }
8858 ac_preproc_ok=false
8859 for ac_cxx_preproc_warn_flag in '' yes
8861 # Use a header file that comes with gcc, so configuring glibc
8862 # with a fresh cross-compiler works.
8863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864 # <limits.h> exists even on freestanding compilers.
8865 # On the NeXT, cc -E runs the code through the compiler's parser,
8866 # not just through cpp. "Syntax error" is here to catch this case.
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 #ifdef __STDC__
8870 # include <limits.h>
8871 #else
8872 # include <assert.h>
8873 #endif
8874 Syntax error
8875 _ACEOF
8876 if ac_fn_cxx_try_cpp "$LINENO"; then :
8878 else
8879 # Broken: fails on valid input.
8880 continue
8882 rm -f conftest.err conftest.$ac_ext
8884 # OK, works on sane cases. Now check whether nonexistent headers
8885 # can be detected and how.
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 #include <ac_nonexistent.h>
8889 _ACEOF
8890 if ac_fn_cxx_try_cpp "$LINENO"; then :
8891 # Broken: success on invalid input.
8892 continue
8893 else
8894 # Passes both tests.
8895 ac_preproc_ok=:
8896 break
8898 rm -f conftest.err conftest.$ac_ext
8900 done
8901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8902 rm -f conftest.err conftest.$ac_ext
8903 if $ac_preproc_ok; then :
8905 else
8906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8909 See \`config.log' for more details." >&5
8910 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8911 See \`config.log' for more details." >&2;}; }
8914 ac_ext=c
8915 ac_cpp='$CPP $CPPFLAGS'
8916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8921 ac_ext=cpp
8922 ac_cpp='$CXXCPP $CPPFLAGS'
8923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8929 for ac_header in unordered_map
8930 do :
8931 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8932 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8933 cat >>confdefs.h <<_ACEOF
8934 #define HAVE_UNORDERED_MAP 1
8935 _ACEOF
8938 done
8940 for ac_header in tr1/unordered_map
8941 do :
8942 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8943 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8944 cat >>confdefs.h <<_ACEOF
8945 #define HAVE_TR1_UNORDERED_MAP 1
8946 _ACEOF
8949 done
8951 for ac_header in ext/hash_map
8952 do :
8953 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8954 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8955 cat >>confdefs.h <<_ACEOF
8956 #define HAVE_EXT_HASH_MAP 1
8957 _ACEOF
8960 done
8963 ac_ext=c
8964 ac_cpp='$CPP $CPPFLAGS'
8965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8970 # --------
8971 # Dependency checking.
8972 # --------
8974 ac_ext=cpp
8975 ac_cpp='$CXXCPP $CPPFLAGS'
8976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8980 rm -rf .tst 2>/dev/null
8981 mkdir .tst 2>/dev/null
8982 if test -d .tst; then
8983 am__leading_dot=.
8984 else
8985 am__leading_dot=_
8987 rmdir .tst 2>/dev/null
8989 DEPDIR="${am__leading_dot}deps"
8991 ac_config_commands="$ac_config_commands depdir"
8994 ac_config_commands="$ac_config_commands gccdepdir"
8997 depcc="$CXX" am_compiler_list=
8999 am_depcomp=$ac_aux_dir/depcomp
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9001 $as_echo_n "checking dependency style of $depcc... " >&6; }
9002 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 if test -f "$am_depcomp"; then
9006 # We make a subdir and do the tests there. Otherwise we can end up
9007 # making bogus files that we don't know about and never remove. For
9008 # instance it was reported that on HP-UX the gcc test will end up
9009 # making a dummy file named `D' -- because `-MD' means `put the output
9010 # in D'.
9011 mkdir conftest.dir
9012 # Copy depcomp to subdir because otherwise we won't find it if we're
9013 # using a relative directory.
9014 cp "$am_depcomp" conftest.dir
9015 cd conftest.dir
9016 # We will build objects and dependencies in a subdirectory because
9017 # it helps to detect inapplicable dependency modes. For instance
9018 # both Tru64's cc and ICC support -MD to output dependencies as a
9019 # side effect of compilation, but ICC will put the dependencies in
9020 # the current directory while Tru64 will put them in the object
9021 # directory.
9022 mkdir sub
9024 am_cv_CXX_dependencies_compiler_type=none
9025 if test "$am_compiler_list" = ""; then
9026 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9028 for depmode in $am_compiler_list; do
9029 if test $depmode = none; then break; fi
9031 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9032 # Setup a source with many dependencies, because some compilers
9033 # like to wrap large dependency lists on column 80 (with \), and
9034 # we should not choose a depcomp mode which is confused by this.
9036 # We need to recreate these files for each test, as the compiler may
9037 # overwrite some of them when testing with obscure command lines.
9038 # This happens at least with the AIX C compiler.
9039 : > sub/conftest.c
9040 for i in 1 2 3 4 5 6; do
9041 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9042 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9043 # Solaris 8's {/usr,}/bin/sh.
9044 touch sub/conftst$i.h
9045 done
9046 echo "include sub/conftest.Po" > confmf
9048 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9049 # mode. It turns out that the SunPro C++ compiler does not properly
9050 # handle `-M -o', and we need to detect this.
9051 depcmd="depmode=$depmode \
9052 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9053 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9054 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9055 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9056 if env $depcmd > conftest.err 2>&1 &&
9057 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9058 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9059 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9060 # icc doesn't choke on unknown options, it will just issue warnings
9061 # or remarks (even with -Werror). So we grep stderr for any message
9062 # that says an option was ignored or not supported.
9063 # When given -MP, icc 7.0 and 7.1 complain thusly:
9064 # icc: Command line warning: ignoring option '-M'; no argument required
9065 # The diagnosis changed in icc 8.0:
9066 # icc: Command line remark: option '-MP' not supported
9067 if (grep 'ignoring option' conftest.err ||
9068 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9069 am_cv_CXX_dependencies_compiler_type=$depmode
9070 $as_echo "$as_me:$LINENO: success" >&5
9071 break
9074 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9075 sed -e 's/^/| /' < conftest.err >&5
9076 done
9078 cd ..
9079 rm -rf conftest.dir
9080 else
9081 am_cv_CXX_dependencies_compiler_type=none
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9086 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9087 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9088 then as_fn_error "no usable dependency style found" "$LINENO" 5
9089 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9093 ac_ext=c
9094 ac_cpp='$CPP $CPPFLAGS'
9095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9100 # --------
9101 # UNSORTED
9102 # --------
9105 # These libraries may be used by collect2.
9106 # We may need a special search path to get them linked.
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9108 $as_echo_n "checking for collect2 libraries... " >&6; }
9109 if test "${gcc_cv_collect2_libs+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 save_LIBS="$LIBS"
9113 for libs in '' -lld -lmld \
9114 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9115 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9117 LIBS="$libs"
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9121 /* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9124 #ifdef __cplusplus
9125 extern "C"
9126 #endif
9127 char ldopen ();
9129 main ()
9131 return ldopen ();
9133 return 0;
9135 _ACEOF
9136 if ac_fn_c_try_link "$LINENO"; then :
9137 gcc_cv_collect2_libs="$libs"; break
9139 rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141 done
9142 LIBS="$save_LIBS"
9143 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9146 $as_echo "$gcc_cv_collect2_libs" >&6; }
9147 case $gcc_cv_collect2_libs in
9148 "none required") ;;
9149 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9150 esac
9153 # When building Ada code on Alpha, we need exc_resume which is usually in
9154 # -lexc. So test for it.
9155 save_LIBS="$LIBS"
9156 LIBS=
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9158 $as_echo_n "checking for library containing exc_resume... " >&6; }
9159 if test "${ac_cv_search_exc_resume+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 ac_func_search_save_LIBS=$LIBS
9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9164 /* end confdefs.h. */
9166 /* Override any GCC internal prototype to avoid an error.
9167 Use char because int might match the return type of a GCC
9168 builtin and then its argument prototype would still apply. */
9169 #ifdef __cplusplus
9170 extern "C"
9171 #endif
9172 char exc_resume ();
9174 main ()
9176 return exc_resume ();
9178 return 0;
9180 _ACEOF
9181 for ac_lib in '' exc; do
9182 if test -z "$ac_lib"; then
9183 ac_res="none required"
9184 else
9185 ac_res=-l$ac_lib
9186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9188 if ac_fn_c_try_link "$LINENO"; then :
9189 ac_cv_search_exc_resume=$ac_res
9191 rm -f core conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext
9193 if test "${ac_cv_search_exc_resume+set}" = set; then :
9194 break
9196 done
9197 if test "${ac_cv_search_exc_resume+set}" = set; then :
9199 else
9200 ac_cv_search_exc_resume=no
9202 rm conftest.$ac_ext
9203 LIBS=$ac_func_search_save_LIBS
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9206 $as_echo "$ac_cv_search_exc_resume" >&6; }
9207 ac_res=$ac_cv_search_exc_resume
9208 if test "$ac_res" != no; then :
9209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9213 GNAT_LIBEXC="$LIBS"
9214 LIBS="$save_LIBS"
9217 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9218 save_LIBS="$LIBS"
9219 LIBS=
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9221 $as_echo_n "checking for library containing kstat_open... " >&6; }
9222 if test "${ac_cv_search_kstat_open+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 ac_func_search_save_LIBS=$LIBS
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9229 /* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 char kstat_open ();
9237 main ()
9239 return kstat_open ();
9241 return 0;
9243 _ACEOF
9244 for ac_lib in '' kstat; do
9245 if test -z "$ac_lib"; then
9246 ac_res="none required"
9247 else
9248 ac_res=-l$ac_lib
9249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9251 if ac_fn_c_try_link "$LINENO"; then :
9252 ac_cv_search_kstat_open=$ac_res
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext
9256 if test "${ac_cv_search_kstat_open+set}" = set; then :
9257 break
9259 done
9260 if test "${ac_cv_search_kstat_open+set}" = set; then :
9262 else
9263 ac_cv_search_kstat_open=no
9265 rm conftest.$ac_ext
9266 LIBS=$ac_func_search_save_LIBS
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9269 $as_echo "$ac_cv_search_kstat_open" >&6; }
9270 ac_res=$ac_cv_search_kstat_open
9271 if test "$ac_res" != no; then :
9272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9276 EXTRA_GCC_LIBS="$LIBS"
9277 LIBS="$save_LIBS"
9280 # Some systems put ldexp and frexp in libm instead of libc; assume
9281 # they're both in the same place. jcf-dump needs them.
9282 save_LIBS="$LIBS"
9283 LIBS=
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9285 $as_echo_n "checking for library containing ldexp... " >&6; }
9286 if test "${ac_cv_search_ldexp+set}" = set; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 ac_func_search_save_LIBS=$LIBS
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9293 /* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9296 #ifdef __cplusplus
9297 extern "C"
9298 #endif
9299 char ldexp ();
9301 main ()
9303 return ldexp ();
9305 return 0;
9307 _ACEOF
9308 for ac_lib in '' m; do
9309 if test -z "$ac_lib"; then
9310 ac_res="none required"
9311 else
9312 ac_res=-l$ac_lib
9313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9315 if ac_fn_c_try_link "$LINENO"; then :
9316 ac_cv_search_ldexp=$ac_res
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext
9320 if test "${ac_cv_search_ldexp+set}" = set; then :
9321 break
9323 done
9324 if test "${ac_cv_search_ldexp+set}" = set; then :
9326 else
9327 ac_cv_search_ldexp=no
9329 rm conftest.$ac_ext
9330 LIBS=$ac_func_search_save_LIBS
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9333 $as_echo "$ac_cv_search_ldexp" >&6; }
9334 ac_res=$ac_cv_search_ldexp
9335 if test "$ac_res" != no; then :
9336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9340 LDEXP_LIB="$LIBS"
9341 LIBS="$save_LIBS"
9344 # Use <inttypes.h> only if it exists,
9345 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9346 # PRId64
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9348 $as_echo_n "checking for inttypes.h... " >&6; }
9349 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 #define __STDC_FORMAT_MACROS
9355 #include <sys/types.h>
9356 #include <inttypes.h>
9358 main ()
9360 intmax_t i = -1;
9361 #ifndef PRId64
9362 choke me
9363 #endif
9365 return 0;
9367 _ACEOF
9368 if ac_fn_c_try_compile "$LINENO"; then :
9369 gcc_cv_header_inttypes_h=yes
9370 else
9371 gcc_cv_header_inttypes_h=no
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9377 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9378 if test $gcc_cv_header_inttypes_h = yes; then
9380 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9386 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9387 popen sysconf strsignal getrusage nl_langinfo \
9388 gettimeofday mbstowcs wcswidth mmap setlocale \
9389 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
9390 do :
9391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9393 eval as_val=\$$as_ac_var
9394 if test "x$as_val" = x""yes; then :
9395 cat >>confdefs.h <<_ACEOF
9396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9397 _ACEOF
9400 done
9403 if test x$ac_cv_func_mbstowcs = xyes; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9405 $as_echo_n "checking whether mbstowcs works... " >&6; }
9406 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 if test "$cross_compiling" = yes; then :
9410 gcc_cv_func_mbstowcs_works=yes
9411 else
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 #include <stdlib.h>
9415 int main()
9417 mbstowcs(0, "", 0);
9418 return 0;
9420 _ACEOF
9421 if ac_fn_c_try_run "$LINENO"; then :
9422 gcc_cv_func_mbstowcs_works=yes
9423 else
9424 gcc_cv_func_mbstowcs_works=no
9426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9427 conftest.$ac_objext conftest.beam conftest.$ac_ext
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9432 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9433 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9435 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9440 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9441 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9443 else
9445 cat >>confdefs.h <<_ACEOF
9446 #define ssize_t int
9447 _ACEOF
9451 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9452 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9454 else
9456 cat >>confdefs.h <<_ACEOF
9457 #define caddr_t char *
9458 _ACEOF
9464 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9465 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9466 gcc_header_sys_mman_h=yes
9467 else
9468 gcc_header_sys_mman_h=no
9471 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9472 if test "x$ac_cv_func_mmap" = x""yes; then :
9473 gcc_func_mmap=yes
9474 else
9475 gcc_func_mmap=no
9478 if test "$gcc_header_sys_mman_h" != yes \
9479 || test "$gcc_func_mmap" != yes; then
9480 gcc_cv_func_mmap_file=no
9481 gcc_cv_func_mmap_dev_zero=no
9482 gcc_cv_func_mmap_anon=no
9483 else
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9485 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9486 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 # Add a system to this blacklist if
9490 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9491 # memory area containing the same data that you'd get if you applied
9492 # read() to the same fd. The only system known to have a problem here
9493 # is VMS, where text files have record structure.
9494 case "$host_os" in
9495 *vms* | ultrix*)
9496 gcc_cv_func_mmap_file=no ;;
9498 gcc_cv_func_mmap_file=yes;;
9499 esac
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9502 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9504 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9505 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 # Add a system to this blacklist if it has mmap() but /dev/zero
9509 # does not exist, or if mmapping /dev/zero does not give anonymous
9510 # zeroed pages with both the following properties:
9511 # 1. If you map N consecutive pages in with one call, and then
9512 # unmap any subset of those pages, the pages that were not
9513 # explicitly unmapped remain accessible.
9514 # 2. If you map two adjacent blocks of memory and then unmap them
9515 # both at once, they must both go away.
9516 # Systems known to be in this category are Windows (all variants),
9517 # VMS, and Darwin.
9518 case "$host_os" in
9519 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9520 gcc_cv_func_mmap_dev_zero=no ;;
9522 gcc_cv_func_mmap_dev_zero=yes;;
9523 esac
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9526 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9528 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9530 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9531 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 #include <sys/types.h>
9537 #include <sys/mman.h>
9538 #include <unistd.h>
9540 #ifndef MAP_ANONYMOUS
9541 #define MAP_ANONYMOUS MAP_ANON
9542 #endif
9545 main ()
9547 int n = MAP_ANONYMOUS;
9549 return 0;
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553 gcc_cv_decl_map_anon=yes
9554 else
9555 gcc_cv_decl_map_anon=no
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9560 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9562 if test $gcc_cv_decl_map_anon = no; then
9563 gcc_cv_func_mmap_anon=no
9564 else
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9566 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9567 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9571 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9572 # doesn't give anonymous zeroed pages with the same properties listed
9573 # above for use of /dev/zero.
9574 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9575 case "$host_os" in
9576 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9577 gcc_cv_func_mmap_anon=no ;;
9579 gcc_cv_func_mmap_anon=yes;;
9580 esac
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9583 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9587 if test $gcc_cv_func_mmap_file = yes; then
9589 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9592 if test $gcc_cv_func_mmap_dev_zero = yes; then
9594 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9597 if test $gcc_cv_func_mmap_anon = yes; then
9599 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9604 case "${host}" in
9605 *-*-*vms*)
9606 # Under VMS, vfork works very differently than on Unix. The standard test
9607 # won't work, and it isn't easily adaptable. It makes more sense to
9608 # just force it.
9609 ac_cv_func_vfork_works=yes
9611 esac
9612 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9613 if test "x$ac_cv_type_pid_t" = x""yes; then :
9615 else
9617 cat >>confdefs.h <<_ACEOF
9618 #define pid_t int
9619 _ACEOF
9623 for ac_header in vfork.h
9624 do :
9625 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9626 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9627 cat >>confdefs.h <<_ACEOF
9628 #define HAVE_VFORK_H 1
9629 _ACEOF
9632 done
9634 for ac_func in fork vfork
9635 do :
9636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9637 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9638 eval as_val=\$$as_ac_var
9639 if test "x$as_val" = x""yes; then :
9640 cat >>confdefs.h <<_ACEOF
9641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9642 _ACEOF
9645 done
9647 if test "x$ac_cv_func_fork" = xyes; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9649 $as_echo_n "checking for working fork... " >&6; }
9650 if test "${ac_cv_func_fork_works+set}" = set; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 if test "$cross_compiling" = yes; then :
9654 ac_cv_func_fork_works=cross
9655 else
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 $ac_includes_default
9660 main ()
9663 /* By Ruediger Kuhlmann. */
9664 return fork () < 0;
9667 return 0;
9669 _ACEOF
9670 if ac_fn_c_try_run "$LINENO"; then :
9671 ac_cv_func_fork_works=yes
9672 else
9673 ac_cv_func_fork_works=no
9675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9676 conftest.$ac_objext conftest.beam conftest.$ac_ext
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9681 $as_echo "$ac_cv_func_fork_works" >&6; }
9683 else
9684 ac_cv_func_fork_works=$ac_cv_func_fork
9686 if test "x$ac_cv_func_fork_works" = xcross; then
9687 case $host in
9688 *-*-amigaos* | *-*-msdosdjgpp*)
9689 # Override, as these systems have only a dummy fork() stub
9690 ac_cv_func_fork_works=no
9693 ac_cv_func_fork_works=yes
9695 esac
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9697 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9699 ac_cv_func_vfork_works=$ac_cv_func_vfork
9700 if test "x$ac_cv_func_vfork" = xyes; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9702 $as_echo_n "checking for working vfork... " >&6; }
9703 if test "${ac_cv_func_vfork_works+set}" = set; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 if test "$cross_compiling" = yes; then :
9707 ac_cv_func_vfork_works=cross
9708 else
9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9710 /* end confdefs.h. */
9711 /* Thanks to Paul Eggert for this test. */
9712 $ac_includes_default
9713 #include <sys/wait.h>
9714 #ifdef HAVE_VFORK_H
9715 # include <vfork.h>
9716 #endif
9717 /* On some sparc systems, changes by the child to local and incoming
9718 argument registers are propagated back to the parent. The compiler
9719 is told about this with #include <vfork.h>, but some compilers
9720 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9721 static variable whose address is put into a register that is
9722 clobbered by the vfork. */
9723 static void
9724 #ifdef __cplusplus
9725 sparc_address_test (int arg)
9726 # else
9727 sparc_address_test (arg) int arg;
9728 #endif
9730 static pid_t child;
9731 if (!child) {
9732 child = vfork ();
9733 if (child < 0) {
9734 perror ("vfork");
9735 _exit(2);
9737 if (!child) {
9738 arg = getpid();
9739 write(-1, "", 0);
9740 _exit (arg);
9746 main ()
9748 pid_t parent = getpid ();
9749 pid_t child;
9751 sparc_address_test (0);
9753 child = vfork ();
9755 if (child == 0) {
9756 /* Here is another test for sparc vfork register problems. This
9757 test uses lots of local variables, at least as many local
9758 variables as main has allocated so far including compiler
9759 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9760 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9761 reuse the register of parent for one of the local variables,
9762 since it will think that parent can't possibly be used any more
9763 in this routine. Assigning to the local variable will thus
9764 munge parent in the parent process. */
9765 pid_t
9766 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9767 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9768 /* Convince the compiler that p..p7 are live; otherwise, it might
9769 use the same hardware register for all 8 local variables. */
9770 if (p != p1 || p != p2 || p != p3 || p != p4
9771 || p != p5 || p != p6 || p != p7)
9772 _exit(1);
9774 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9775 from child file descriptors. If the child closes a descriptor
9776 before it execs or exits, this munges the parent's descriptor
9777 as well. Test for this by closing stdout in the child. */
9778 _exit(close(fileno(stdout)) != 0);
9779 } else {
9780 int status;
9781 struct stat st;
9783 while (wait(&status) != child)
9785 return (
9786 /* Was there some problem with vforking? */
9787 child < 0
9789 /* Did the child fail? (This shouldn't happen.) */
9790 || status
9792 /* Did the vfork/compiler bug occur? */
9793 || parent != getpid()
9795 /* Did the file descriptor bug occur? */
9796 || fstat(fileno(stdout), &st) != 0
9800 _ACEOF
9801 if ac_fn_c_try_run "$LINENO"; then :
9802 ac_cv_func_vfork_works=yes
9803 else
9804 ac_cv_func_vfork_works=no
9806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9807 conftest.$ac_objext conftest.beam conftest.$ac_ext
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9812 $as_echo "$ac_cv_func_vfork_works" >&6; }
9815 if test "x$ac_cv_func_fork_works" = xcross; then
9816 ac_cv_func_vfork_works=$ac_cv_func_vfork
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9818 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9821 if test "x$ac_cv_func_vfork_works" = xyes; then
9823 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9825 else
9827 $as_echo "#define vfork fork" >>confdefs.h
9830 if test "x$ac_cv_func_fork_works" = xyes; then
9832 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9837 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9838 # iconv() prototype.
9839 ac_ext=cpp
9840 ac_cpp='$CXXCPP $CPPFLAGS'
9841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9846 if test "X$prefix" = "XNONE"; then
9847 acl_final_prefix="$ac_default_prefix"
9848 else
9849 acl_final_prefix="$prefix"
9851 if test "X$exec_prefix" = "XNONE"; then
9852 acl_final_exec_prefix='${prefix}'
9853 else
9854 acl_final_exec_prefix="$exec_prefix"
9856 acl_save_prefix="$prefix"
9857 prefix="$acl_final_prefix"
9858 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9859 prefix="$acl_save_prefix"
9862 # Check whether --with-gnu-ld was given.
9863 if test "${with_gnu_ld+set}" = set; then :
9864 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9865 else
9866 with_gnu_ld=no
9869 # Prepare PATH_SEPARATOR.
9870 # The user is always right.
9871 if test "${PATH_SEPARATOR+set}" != set; then
9872 echo "#! /bin/sh" >conf$$.sh
9873 echo "exit 0" >>conf$$.sh
9874 chmod +x conf$$.sh
9875 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9876 PATH_SEPARATOR=';'
9877 else
9878 PATH_SEPARATOR=:
9880 rm -f conf$$.sh
9882 ac_prog=ld
9883 if test "$GCC" = yes; then
9884 # Check if gcc -print-prog-name=ld gives a path.
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9886 $as_echo_n "checking for ld used by GCC... " >&6; }
9887 case $host in
9888 *-*-mingw*)
9889 # gcc leaves a trailing carriage return which upsets mingw
9890 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9892 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9893 esac
9894 case $ac_prog in
9895 # Accept absolute paths.
9896 [\\/]* | [A-Za-z]:[\\/]*)
9897 re_direlt='/[^/][^/]*/\.\./'
9898 # Canonicalize the path of ld
9899 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9901 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9902 done
9903 test -z "$LD" && LD="$ac_prog"
9906 # If it fails, then pretend we aren't using GCC.
9907 ac_prog=ld
9910 # If it is relative, then search for the first ld in PATH.
9911 with_gnu_ld=unknown
9913 esac
9914 elif test "$with_gnu_ld" = yes; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9916 $as_echo_n "checking for GNU ld... " >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9919 $as_echo_n "checking for non-GNU ld... " >&6; }
9921 if test "${acl_cv_path_LD+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 if test -z "$LD"; then
9925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9926 for ac_dir in $PATH; do
9927 test -z "$ac_dir" && ac_dir=.
9928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9929 acl_cv_path_LD="$ac_dir/$ac_prog"
9930 # Check to see if the program is GNU ld. I'd rather use --version,
9931 # but apparently some GNU ld's only accept -v.
9932 # Break only if it was the GNU/non-GNU ld that we prefer.
9933 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9934 test "$with_gnu_ld" != no && break
9935 else
9936 test "$with_gnu_ld" != yes && break
9939 done
9940 IFS="$ac_save_ifs"
9941 else
9942 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9946 LD="$acl_cv_path_LD"
9947 if test -n "$LD"; then
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9949 $as_echo "$LD" >&6; }
9950 else
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9952 $as_echo "no" >&6; }
9954 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9956 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9957 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9961 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9962 acl_cv_prog_gnu_ld=yes
9963 else
9964 acl_cv_prog_gnu_ld=no
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9968 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9969 with_gnu_ld=$acl_cv_prog_gnu_ld
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9974 $as_echo_n "checking for shared library run path origin... " >&6; }
9975 if test "${acl_cv_rpath+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9979 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9980 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9981 . ./conftest.sh
9982 rm -f ./conftest.sh
9983 acl_cv_rpath=done
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9987 $as_echo "$acl_cv_rpath" >&6; }
9988 wl="$acl_cv_wl"
9989 libext="$acl_cv_libext"
9990 shlibext="$acl_cv_shlibext"
9991 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9992 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9993 hardcode_direct="$acl_cv_hardcode_direct"
9994 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9995 # Check whether --enable-rpath was given.
9996 if test "${enable_rpath+set}" = set; then :
9997 enableval=$enable_rpath; :
9998 else
9999 enable_rpath=yes
10009 use_additional=yes
10011 acl_save_prefix="$prefix"
10012 prefix="$acl_final_prefix"
10013 acl_save_exec_prefix="$exec_prefix"
10014 exec_prefix="$acl_final_exec_prefix"
10016 eval additional_includedir=\"$includedir\"
10017 eval additional_libdir=\"$libdir\"
10019 exec_prefix="$acl_save_exec_prefix"
10020 prefix="$acl_save_prefix"
10023 # Check whether --with-libiconv-prefix was given.
10024 if test "${with_libiconv_prefix+set}" = set; then :
10025 withval=$with_libiconv_prefix;
10026 if test "X$withval" = "Xno"; then
10027 use_additional=no
10028 else
10029 if test "X$withval" = "X"; then
10031 acl_save_prefix="$prefix"
10032 prefix="$acl_final_prefix"
10033 acl_save_exec_prefix="$exec_prefix"
10034 exec_prefix="$acl_final_exec_prefix"
10036 eval additional_includedir=\"$includedir\"
10037 eval additional_libdir=\"$libdir\"
10039 exec_prefix="$acl_save_exec_prefix"
10040 prefix="$acl_save_prefix"
10042 else
10043 additional_includedir="$withval/include"
10044 additional_libdir="$withval/lib"
10050 LIBICONV=
10051 LTLIBICONV=
10052 INCICONV=
10053 rpathdirs=
10054 ltrpathdirs=
10055 names_already_handled=
10056 names_next_round='iconv '
10057 while test -n "$names_next_round"; do
10058 names_this_round="$names_next_round"
10059 names_next_round=
10060 for name in $names_this_round; do
10061 already_handled=
10062 for n in $names_already_handled; do
10063 if test "$n" = "$name"; then
10064 already_handled=yes
10065 break
10067 done
10068 if test -z "$already_handled"; then
10069 names_already_handled="$names_already_handled $name"
10070 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10071 eval value=\"\$HAVE_LIB$uppername\"
10072 if test -n "$value"; then
10073 if test "$value" = yes; then
10074 eval value=\"\$LIB$uppername\"
10075 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10076 eval value=\"\$LTLIB$uppername\"
10077 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10078 else
10081 else
10082 found_dir=
10083 found_la=
10084 found_so=
10085 found_a=
10086 if test $use_additional = yes; then
10087 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10088 found_dir="$additional_libdir"
10089 found_so="$additional_libdir/lib$name.$shlibext"
10090 if test -f "$additional_libdir/lib$name.la"; then
10091 found_la="$additional_libdir/lib$name.la"
10093 else
10094 if test -f "$additional_libdir/lib$name.$libext"; then
10095 found_dir="$additional_libdir"
10096 found_a="$additional_libdir/lib$name.$libext"
10097 if test -f "$additional_libdir/lib$name.la"; then
10098 found_la="$additional_libdir/lib$name.la"
10103 if test "X$found_dir" = "X"; then
10104 for x in $LDFLAGS $LTLIBICONV; do
10106 acl_save_prefix="$prefix"
10107 prefix="$acl_final_prefix"
10108 acl_save_exec_prefix="$exec_prefix"
10109 exec_prefix="$acl_final_exec_prefix"
10110 eval x=\"$x\"
10111 exec_prefix="$acl_save_exec_prefix"
10112 prefix="$acl_save_prefix"
10114 case "$x" in
10115 -L*)
10116 dir=`echo "X$x" | sed -e 's/^X-L//'`
10117 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10118 found_dir="$dir"
10119 found_so="$dir/lib$name.$shlibext"
10120 if test -f "$dir/lib$name.la"; then
10121 found_la="$dir/lib$name.la"
10123 else
10124 if test -f "$dir/lib$name.$libext"; then
10125 found_dir="$dir"
10126 found_a="$dir/lib$name.$libext"
10127 if test -f "$dir/lib$name.la"; then
10128 found_la="$dir/lib$name.la"
10133 esac
10134 if test "X$found_dir" != "X"; then
10135 break
10137 done
10139 if test "X$found_dir" != "X"; then
10140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10141 if test "X$found_so" != "X"; then
10142 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10143 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10144 else
10145 haveit=
10146 for x in $ltrpathdirs; do
10147 if test "X$x" = "X$found_dir"; then
10148 haveit=yes
10149 break
10151 done
10152 if test -z "$haveit"; then
10153 ltrpathdirs="$ltrpathdirs $found_dir"
10155 if test "$hardcode_direct" = yes; then
10156 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10157 else
10158 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10159 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10160 haveit=
10161 for x in $rpathdirs; do
10162 if test "X$x" = "X$found_dir"; then
10163 haveit=yes
10164 break
10166 done
10167 if test -z "$haveit"; then
10168 rpathdirs="$rpathdirs $found_dir"
10170 else
10171 haveit=
10172 for x in $LDFLAGS $LIBICONV; do
10174 acl_save_prefix="$prefix"
10175 prefix="$acl_final_prefix"
10176 acl_save_exec_prefix="$exec_prefix"
10177 exec_prefix="$acl_final_exec_prefix"
10178 eval x=\"$x\"
10179 exec_prefix="$acl_save_exec_prefix"
10180 prefix="$acl_save_prefix"
10182 if test "X$x" = "X-L$found_dir"; then
10183 haveit=yes
10184 break
10186 done
10187 if test -z "$haveit"; then
10188 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10190 if test "$hardcode_minus_L" != no; then
10191 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10192 else
10193 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10198 else
10199 if test "X$found_a" != "X"; then
10200 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10201 else
10202 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10205 additional_includedir=
10206 case "$found_dir" in
10207 */lib | */lib/)
10208 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10209 additional_includedir="$basedir/include"
10211 esac
10212 if test "X$additional_includedir" != "X"; then
10213 if test "X$additional_includedir" != "X/usr/include"; then
10214 haveit=
10215 if test "X$additional_includedir" = "X/usr/local/include"; then
10216 if test -n "$GCC"; then
10217 case $host_os in
10218 linux*) haveit=yes;;
10219 esac
10222 if test -z "$haveit"; then
10223 for x in $CPPFLAGS $INCICONV; do
10225 acl_save_prefix="$prefix"
10226 prefix="$acl_final_prefix"
10227 acl_save_exec_prefix="$exec_prefix"
10228 exec_prefix="$acl_final_exec_prefix"
10229 eval x=\"$x\"
10230 exec_prefix="$acl_save_exec_prefix"
10231 prefix="$acl_save_prefix"
10233 if test "X$x" = "X-I$additional_includedir"; then
10234 haveit=yes
10235 break
10237 done
10238 if test -z "$haveit"; then
10239 if test -d "$additional_includedir"; then
10240 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10246 if test -n "$found_la"; then
10247 save_libdir="$libdir"
10248 case "$found_la" in
10249 */* | *\\*) . "$found_la" ;;
10250 *) . "./$found_la" ;;
10251 esac
10252 libdir="$save_libdir"
10253 for dep in $dependency_libs; do
10254 case "$dep" in
10255 -L*)
10256 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10257 if test "X$additional_libdir" != "X/usr/lib"; then
10258 haveit=
10259 if test "X$additional_libdir" = "X/usr/local/lib"; then
10260 if test -n "$GCC"; then
10261 case $host_os in
10262 linux*) haveit=yes;;
10263 esac
10266 if test -z "$haveit"; then
10267 haveit=
10268 for x in $LDFLAGS $LIBICONV; do
10270 acl_save_prefix="$prefix"
10271 prefix="$acl_final_prefix"
10272 acl_save_exec_prefix="$exec_prefix"
10273 exec_prefix="$acl_final_exec_prefix"
10274 eval x=\"$x\"
10275 exec_prefix="$acl_save_exec_prefix"
10276 prefix="$acl_save_prefix"
10278 if test "X$x" = "X-L$additional_libdir"; then
10279 haveit=yes
10280 break
10282 done
10283 if test -z "$haveit"; then
10284 if test -d "$additional_libdir"; then
10285 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10288 haveit=
10289 for x in $LDFLAGS $LTLIBICONV; do
10291 acl_save_prefix="$prefix"
10292 prefix="$acl_final_prefix"
10293 acl_save_exec_prefix="$exec_prefix"
10294 exec_prefix="$acl_final_exec_prefix"
10295 eval x=\"$x\"
10296 exec_prefix="$acl_save_exec_prefix"
10297 prefix="$acl_save_prefix"
10299 if test "X$x" = "X-L$additional_libdir"; then
10300 haveit=yes
10301 break
10303 done
10304 if test -z "$haveit"; then
10305 if test -d "$additional_libdir"; then
10306 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10312 -R*)
10313 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10314 if test "$enable_rpath" != no; then
10315 haveit=
10316 for x in $rpathdirs; do
10317 if test "X$x" = "X$dir"; then
10318 haveit=yes
10319 break
10321 done
10322 if test -z "$haveit"; then
10323 rpathdirs="$rpathdirs $dir"
10325 haveit=
10326 for x in $ltrpathdirs; do
10327 if test "X$x" = "X$dir"; then
10328 haveit=yes
10329 break
10331 done
10332 if test -z "$haveit"; then
10333 ltrpathdirs="$ltrpathdirs $dir"
10337 -l*)
10338 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10340 *.la)
10341 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10344 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10345 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10347 esac
10348 done
10350 else
10351 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10352 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10356 done
10357 done
10358 if test "X$rpathdirs" != "X"; then
10359 if test -n "$hardcode_libdir_separator"; then
10360 alldirs=
10361 for found_dir in $rpathdirs; do
10362 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10363 done
10364 acl_save_libdir="$libdir"
10365 libdir="$alldirs"
10366 eval flag=\"$hardcode_libdir_flag_spec\"
10367 libdir="$acl_save_libdir"
10368 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10369 else
10370 for found_dir in $rpathdirs; do
10371 acl_save_libdir="$libdir"
10372 libdir="$found_dir"
10373 eval flag=\"$hardcode_libdir_flag_spec\"
10374 libdir="$acl_save_libdir"
10375 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10376 done
10379 if test "X$ltrpathdirs" != "X"; then
10380 for found_dir in $ltrpathdirs; do
10381 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10382 done
10391 am_save_CPPFLAGS="$CPPFLAGS"
10393 for element in $INCICONV; do
10394 haveit=
10395 for x in $CPPFLAGS; do
10397 acl_save_prefix="$prefix"
10398 prefix="$acl_final_prefix"
10399 acl_save_exec_prefix="$exec_prefix"
10400 exec_prefix="$acl_final_exec_prefix"
10401 eval x=\"$x\"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10405 if test "X$x" = "X$element"; then
10406 haveit=yes
10407 break
10409 done
10410 if test -z "$haveit"; then
10411 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10413 done
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10417 $as_echo_n "checking for iconv... " >&6; }
10418 if test "${am_cv_func_iconv+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420 else
10422 am_cv_func_iconv="no, consider installing GNU libiconv"
10423 am_cv_lib_iconv=no
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 #include <stdlib.h>
10427 #include <iconv.h>
10429 main ()
10431 iconv_t cd = iconv_open("","");
10432 iconv(cd,NULL,NULL,NULL,NULL);
10433 iconv_close(cd);
10435 return 0;
10437 _ACEOF
10438 if ac_fn_cxx_try_link "$LINENO"; then :
10439 am_cv_func_iconv=yes
10441 rm -f core conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10443 if test "$am_cv_func_iconv" != yes; then
10444 am_save_LIBS="$LIBS"
10445 LIBS="$LIBS $LIBICONV"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10448 #include <stdlib.h>
10449 #include <iconv.h>
10451 main ()
10453 iconv_t cd = iconv_open("","");
10454 iconv(cd,NULL,NULL,NULL,NULL);
10455 iconv_close(cd);
10457 return 0;
10459 _ACEOF
10460 if ac_fn_cxx_try_link "$LINENO"; then :
10461 am_cv_lib_iconv=yes
10462 am_cv_func_iconv=yes
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 LIBS="$am_save_LIBS"
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10471 $as_echo "$am_cv_func_iconv" >&6; }
10472 if test "$am_cv_func_iconv" = yes; then
10474 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10477 if test "$am_cv_lib_iconv" = yes; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10479 $as_echo_n "checking how to link with libiconv... " >&6; }
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10481 $as_echo "$LIBICONV" >&6; }
10482 else
10483 CPPFLAGS="$am_save_CPPFLAGS"
10484 LIBICONV=
10485 LTLIBICONV=
10490 if test "$am_cv_func_iconv" = yes; then
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10492 $as_echo_n "checking for iconv declaration... " >&6; }
10493 if test "${am_cv_proto_iconv+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h. */
10500 #include <stdlib.h>
10501 #include <iconv.h>
10502 extern
10503 #ifdef __cplusplus
10505 #endif
10506 #if defined(__STDC__) || defined(__cplusplus)
10507 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10508 #else
10509 size_t iconv();
10510 #endif
10513 main ()
10517 return 0;
10519 _ACEOF
10520 if ac_fn_cxx_try_compile "$LINENO"; then :
10521 am_cv_proto_iconv_arg1=""
10522 else
10523 am_cv_proto_iconv_arg1="const"
10525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 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);"
10529 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10531 }$am_cv_proto_iconv" >&5
10532 $as_echo "${ac_t:-
10533 }$am_cv_proto_iconv" >&6; }
10535 cat >>confdefs.h <<_ACEOF
10536 #define ICONV_CONST $am_cv_proto_iconv_arg1
10537 _ACEOF
10541 ac_ext=c
10542 ac_cpp='$CPP $CPPFLAGS'
10543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10548 # Until we have in-tree GNU iconv:
10549 LIBICONV_DEP=
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10554 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10555 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560 #include <locale.h>
10562 main ()
10564 return LC_MESSAGES
10566 return 0;
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 am_cv_val_LC_MESSAGES=yes
10571 else
10572 am_cv_val_LC_MESSAGES=no
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10578 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10579 if test $am_cv_val_LC_MESSAGES = yes; then
10581 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10588 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10589 if test "${am_cv_langinfo_codeset+set}" = set; then :
10590 $as_echo_n "(cached) " >&6
10591 else
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #include <langinfo.h>
10596 main ()
10598 char* cs = nl_langinfo(CODESET);
10600 return 0;
10602 _ACEOF
10603 if ac_fn_c_try_link "$LINENO"; then :
10604 am_cv_langinfo_codeset=yes
10605 else
10606 am_cv_langinfo_codeset=no
10608 rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10613 $as_echo "$am_cv_langinfo_codeset" >&6; }
10614 if test $am_cv_langinfo_codeset = yes; then
10616 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10621 # We will need to find libiberty.h and ansidecl.h
10622 saved_CFLAGS="$CFLAGS"
10623 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10624 saved_CXXFLAGS="$CXXFLAGS"
10625 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10626 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10627 stpcpy strnlen strsignal strstr strverscmp \
10628 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10629 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
10631 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10633 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10634 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10639 #undef $ac_tr_decl
10640 #define $ac_tr_decl 1
10642 #include "ansidecl.h"
10643 #include "system.h"
10646 main ()
10648 #ifndef $ac_func
10649 char *(*pfn) = (char *(*)) $ac_func ;
10650 #endif
10652 return 0;
10654 _ACEOF
10655 if ac_fn_c_try_compile "$LINENO"; then :
10656 eval "gcc_cv_have_decl_$ac_func=yes"
10657 else
10658 eval "gcc_cv_have_decl_$ac_func=no"
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10663 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10666 #define $ac_tr_decl 1
10667 _ACEOF
10669 else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10672 #define $ac_tr_decl 0
10673 _ACEOF
10677 done
10680 for ac_func in getrlimit setrlimit getrusage
10682 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10684 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10685 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10690 #undef $ac_tr_decl
10691 #define $ac_tr_decl 1
10693 #include "ansidecl.h"
10694 #include "system.h"
10695 #ifdef HAVE_SYS_RESOURCE_H
10696 #include <sys/resource.h>
10697 #endif
10701 main ()
10703 #ifndef $ac_func
10704 char *(*pfn) = (char *(*)) $ac_func ;
10705 #endif
10707 return 0;
10709 _ACEOF
10710 if ac_fn_c_try_compile "$LINENO"; then :
10711 eval "gcc_cv_have_decl_$ac_func=yes"
10712 else
10713 eval "gcc_cv_have_decl_$ac_func=no"
10715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10718 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10720 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10721 #define $ac_tr_decl 1
10722 _ACEOF
10724 else
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10727 #define $ac_tr_decl 0
10728 _ACEOF
10732 done
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 #include "ansidecl.h"
10739 #include "system.h"
10740 #ifdef HAVE_SYS_RESOURCE_H
10741 #include <sys/resource.h>
10742 #endif
10745 main ()
10747 rlim_t l = 0;
10749 return 0;
10751 _ACEOF
10752 if ac_fn_c_try_compile "$LINENO"; then :
10754 else
10756 $as_echo "#define rlim_t long" >>confdefs.h
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10761 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10762 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10763 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10764 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10765 for ac_func in ldgetname
10767 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10769 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10770 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 #undef $ac_tr_decl
10776 #define $ac_tr_decl 1
10778 #include "ansidecl.h"
10779 #include "system.h"
10780 #ifdef HAVE_LDFCN_H
10781 #undef FREAD
10782 #undef FWRITE
10783 #include <ldfcn.h>
10784 #endif
10788 main ()
10790 #ifndef $ac_func
10791 char *(*pfn) = (char *(*)) $ac_func ;
10792 #endif
10794 return 0;
10796 _ACEOF
10797 if ac_fn_c_try_compile "$LINENO"; then :
10798 eval "gcc_cv_have_decl_$ac_func=yes"
10799 else
10800 eval "gcc_cv_have_decl_$ac_func=no"
10802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10807 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10808 #define $ac_tr_decl 1
10809 _ACEOF
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10814 #define $ac_tr_decl 0
10815 _ACEOF
10819 done
10822 for ac_func in times
10824 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10826 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10827 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10832 #undef $ac_tr_decl
10833 #define $ac_tr_decl 1
10835 #include "ansidecl.h"
10836 #include "system.h"
10837 #ifdef HAVE_SYS_TIMES_H
10838 #include <sys/times.h>
10839 #endif
10843 main ()
10845 #ifndef $ac_func
10846 char *(*pfn) = (char *(*)) $ac_func ;
10847 #endif
10849 return 0;
10851 _ACEOF
10852 if ac_fn_c_try_compile "$LINENO"; then :
10853 eval "gcc_cv_have_decl_$ac_func=yes"
10854 else
10855 eval "gcc_cv_have_decl_$ac_func=no"
10857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10862 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10863 #define $ac_tr_decl 1
10864 _ACEOF
10866 else
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10868 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10869 #define $ac_tr_decl 0
10870 _ACEOF
10874 done
10877 for ac_func in sigaltstack
10879 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10881 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10882 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887 #undef $ac_tr_decl
10888 #define $ac_tr_decl 1
10890 #include "ansidecl.h"
10891 #include "system.h"
10892 #include <signal.h>
10896 main ()
10898 #ifndef $ac_func
10899 char *(*pfn) = (char *(*)) $ac_func ;
10900 #endif
10902 return 0;
10904 _ACEOF
10905 if ac_fn_c_try_compile "$LINENO"; then :
10906 eval "gcc_cv_have_decl_$ac_func=yes"
10907 else
10908 eval "gcc_cv_have_decl_$ac_func=no"
10910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10915 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10916 #define $ac_tr_decl 1
10917 _ACEOF
10919 else
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10922 #define $ac_tr_decl 0
10923 _ACEOF
10927 done
10930 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10931 # prototype.
10932 ac_ext=cpp
10933 ac_cpp='$CXXCPP $CPPFLAGS'
10934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10938 for ac_func in madvise
10940 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10942 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10943 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #undef $ac_tr_decl
10949 #define $ac_tr_decl 1
10951 #include "ansidecl.h"
10952 #include "system.h"
10956 main ()
10958 #ifndef $ac_func
10959 char *(*pfn) = (char *(*)) $ac_func ;
10960 #endif
10962 return 0;
10964 _ACEOF
10965 if ac_fn_cxx_try_compile "$LINENO"; then :
10966 eval "gcc_cv_have_decl_$ac_func=yes"
10967 else
10968 eval "gcc_cv_have_decl_$ac_func=no"
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10973 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10975 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10976 #define $ac_tr_decl 1
10977 _ACEOF
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10982 #define $ac_tr_decl 0
10983 _ACEOF
10987 done
10989 ac_ext=c
10990 ac_cpp='$CPP $CPPFLAGS'
10991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10996 # More time-related stuff.
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10998 $as_echo_n "checking for struct tms... " >&6; }
10999 if test "${ac_cv_struct_tms+set}" = set; then :
11000 $as_echo_n "(cached) " >&6
11001 else
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11006 #include "ansidecl.h"
11007 #include "system.h"
11008 #ifdef HAVE_SYS_TIMES_H
11009 #include <sys/times.h>
11010 #endif
11013 main ()
11015 struct tms tms;
11017 return 0;
11019 _ACEOF
11020 if ac_fn_c_try_compile "$LINENO"; then :
11021 ac_cv_struct_tms=yes
11022 else
11023 ac_cv_struct_tms=no
11025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11028 $as_echo "$ac_cv_struct_tms" >&6; }
11029 if test $ac_cv_struct_tms = yes; then
11031 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11035 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11036 # revisit after autoconf 2.50.
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11038 $as_echo_n "checking for clock_t... " >&6; }
11039 if test "${gcc_cv_type_clock_t+set}" = set; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 #include "ansidecl.h"
11047 #include "system.h"
11050 main ()
11052 clock_t x;
11054 return 0;
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"; then :
11058 gcc_cv_type_clock_t=yes
11059 else
11060 gcc_cv_type_clock_t=no
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11065 $as_echo "$gcc_cv_type_clock_t" >&6; }
11066 if test $gcc_cv_type_clock_t = yes; then
11068 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11072 # Check if F_SETLKW is supported by fcntl.
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11074 $as_echo_n "checking for F_SETLKW... " >&6; }
11075 if test "${ac_cv_f_setlkw+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11077 else
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11082 #include <fcntl.h>
11084 main ()
11087 struct flock fl;
11088 fl.l_whence = 0;
11089 fl.l_start = 0;
11090 fl.l_len = 0;
11091 fl.l_pid = 0;
11092 return fcntl (1, F_SETLKW, &fl);
11094 return 0;
11096 _ACEOF
11097 if ac_fn_c_try_compile "$LINENO"; then :
11098 ac_cv_f_setlkw=yes
11099 else
11100 ac_cv_f_setlkw=no
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11105 $as_echo "$ac_cv_f_setlkw" >&6; }
11106 if test $ac_cv_f_setlkw = yes; then
11108 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11112 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11113 CFLAGS="$saved_CFLAGS"
11114 CXXFLAGS="$saved_CXXFLAGS"
11116 # mkdir takes a single argument on some systems.
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11118 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11119 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11125 #include <sys/types.h>
11126 #ifdef HAVE_SYS_STAT_H
11127 # include <sys/stat.h>
11128 #endif
11129 #ifdef HAVE_UNISTD_H
11130 # include <unistd.h>
11131 #endif
11132 #ifdef HAVE_DIRECT_H
11133 # include <direct.h>
11134 #endif
11136 main ()
11138 mkdir ("foo", 0);
11140 return 0;
11142 _ACEOF
11143 if ac_fn_c_try_compile "$LINENO"; then :
11144 gcc_cv_mkdir_takes_one_arg=no
11145 else
11146 gcc_cv_mkdir_takes_one_arg=yes
11148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11151 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11152 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11154 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11159 # File extensions
11160 manext='.1'
11161 objext='.o'
11165 # With Setjmp/Longjmp based exception handling.
11166 # Check whether --enable-sjlj-exceptions was given.
11167 if test "${enable_sjlj_exceptions+set}" = set; then :
11168 enableval=$enable_sjlj_exceptions; case $target in
11169 *-*-hpux10*)
11170 if test $enableval != yes; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11172 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11173 enableval=yes
11176 esac
11177 force_sjlj_exceptions=yes
11178 else
11179 case $target in
11180 *-*-hpux10*)
11181 force_sjlj_exceptions=yes
11182 enableval=yes
11184 lm32*-*-*)
11185 force_sjlj_exceptions=yes
11186 enableval=yes
11189 force_sjlj_exceptions=no
11191 esac
11194 if test $force_sjlj_exceptions = yes; then
11195 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11197 cat >>confdefs.h <<_ACEOF
11198 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11199 _ACEOF
11203 # --------------------------------------------------------
11204 # Build, host, and target specific configuration fragments
11205 # --------------------------------------------------------
11207 # Collect build-machine-specific information.
11208 . ${srcdir}/config.build
11210 # Collect host-machine-specific information.
11211 . ${srcdir}/config.host
11213 target_gtfiles=
11215 # Collect target-machine-specific information.
11216 . ${srcdir}/config.gcc
11218 extra_objs="${host_extra_objs} ${extra_objs}"
11219 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11221 # Default the target-machine variables that were not explicitly set.
11222 if test x"$tm_file" = x
11223 then tm_file=$cpu_type/$cpu_type.h; fi
11225 if test x"$extra_headers" = x
11226 then extra_headers=; fi
11228 if test x$md_file = x
11229 then md_file=$cpu_type/$cpu_type.md; fi
11231 if test x$out_file = x
11232 then out_file=$cpu_type/$cpu_type.c; fi
11234 if test x"$tmake_file" = x
11235 then tmake_file=$cpu_type/t-$cpu_type
11238 # Support --enable-initfini-array.
11239 if test x$enable_initfini_array != xno; then
11240 tm_file="${tm_file} initfini-array.h"
11243 if test x"$dwarf2" = xyes
11244 then tm_file="$tm_file tm-dwarf2.h"
11247 # Say what files are being used for the output code and MD file.
11248 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11249 echo "Using \`$srcdir/config/$md_file' as machine description file."
11251 # If any of the xm_file variables contain nonexistent files, warn
11252 # about them and drop them.
11255 for x in $build_xm_file; do
11256 if test -f $srcdir/config/$x
11257 then bx="$bx $x"
11258 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11259 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11261 done
11262 build_xm_file="$bx"
11265 for x in $host_xm_file; do
11266 if test -f $srcdir/config/$x
11267 then hx="$hx $x"
11268 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11269 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11271 done
11272 host_xm_file="$hx"
11275 for x in $xm_file; do
11276 if test -f $srcdir/config/$x
11277 then tx="$tx $x"
11278 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11279 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11281 done
11282 xm_file="$tx"
11284 count=a
11285 for f in $tm_file; do
11286 count=${count}x
11287 done
11288 if test $count = ax; then
11289 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11290 else
11291 echo "Using the following target machine macro files:"
11292 for f in $tm_file; do
11293 echo " $srcdir/config/$f"
11294 done
11297 if test x$use_long_long_for_widest_fast_int = xyes; then
11299 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11303 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11305 cat >>confdefs.h <<_ACEOF
11306 #define HAVE_GNU_LD $gnu_ld_bool
11307 _ACEOF
11310 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11312 cat >>confdefs.h <<_ACEOF
11313 #define HAVE_GNU_AS $gnu_as_bool
11314 _ACEOF
11317 count=a
11318 for f in $host_xm_file; do
11319 count=${count}x
11320 done
11321 if test $count = a; then
11323 elif test $count = ax; then
11324 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11325 else
11326 echo "Using the following host machine macro files:"
11327 for f in $host_xm_file; do
11328 echo " $srcdir/config/$f"
11329 done
11331 echo "Using ${out_host_hook_obj} for host machine hooks."
11333 if test "$host_xm_file" != "$build_xm_file"; then
11334 count=a
11335 for f in $build_xm_file; do
11336 count=${count}x
11337 done
11338 if test $count = a; then
11340 elif test $count = ax; then
11341 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11342 else
11343 echo "Using the following build machine macro files:"
11344 for f in $build_xm_file; do
11345 echo " $srcdir/config/$f"
11346 done
11350 if test -n "$configured_native_system_header_dir"; then
11351 native_system_header_dir=$configured_native_system_header_dir
11353 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11356 case ${host} in
11357 powerpc*-*-darwin*)
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11359 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11360 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11366 #include <sys/cdefs.h>
11367 #include <sys/signal.h>
11368 #include <ucontext.h>
11369 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11371 _ACEOF
11372 if ac_fn_c_try_compile "$LINENO"; then :
11373 gcc_cv_mcontext_underscores=no
11374 else
11375 gcc_cv_mcontext_underscores=yes
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11380 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11381 if test $gcc_cv_mcontext_underscores = yes; then
11383 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11387 esac
11389 # ---------
11390 # Threading
11391 # ---------
11393 # Check if a valid thread package
11394 case ${enable_threads} in
11395 "" | no)
11396 # No threads
11397 target_thread_file='single'
11399 yes)
11400 # default
11401 target_thread_file='single'
11403 aix | dce | lynx | mipssde | posix | rtems | \
11404 single | tpf | vxworks | win32)
11405 target_thread_file=${enable_threads}
11408 echo "${enable_threads} is an unknown thread package" 1>&2
11409 exit 1
11411 esac
11413 if test x${thread_file} = x; then
11414 # No thread file set by target-specific clauses in config.gcc,
11415 # so use file chosen by default logic above
11416 thread_file=${target_thread_file}
11419 # --------
11420 # UNSORTED
11421 # --------
11423 use_cxa_atexit=no
11424 if test x$enable___cxa_atexit = xyes || \
11425 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11426 if test x$host = x$target; then
11427 case $host in
11428 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11429 # keyed to flag_use_cxa_atexit
11430 *-*-mingw32*)
11431 use_cxa_atexit=yes
11433 powerpc-ibm-aix*)
11434 use_cxa_atexit=yes
11437 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11438 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11439 use_cxa_atexit=yes
11440 else
11441 echo "__cxa_atexit can't be enabled on this target"
11445 esac
11446 else
11447 # We can't check for __cxa_atexit when building a cross, so assume
11448 # it is available
11449 use_cxa_atexit=yes
11451 if test x$use_cxa_atexit = xyes; then
11453 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11458 # Look for a file containing extra machine modes.
11459 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11460 extra_modes_file='$(srcdir)'/config/${extra_modes}
11463 cat >>confdefs.h <<_ACEOF
11464 #define EXTRA_MODES_FILE "config/$extra_modes"
11465 _ACEOF
11469 # Convert extra_options into a form suitable for Makefile use.
11470 extra_opt_files=
11471 all_opt_files=
11472 for f in $extra_options; do
11473 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11474 all_opt_files="$all_opt_files $srcdir/config/$f"
11475 done
11478 # auto-host.h is the file containing items generated by autoconf and is
11479 # the first file included by config.h.
11480 # If host=build, it is correct to have bconfig include auto-host.h
11481 # as well. If host!=build, we are in error and need to do more
11482 # work to find out the build config parameters.
11483 if test x$host = x$build
11484 then
11485 build_auto=auto-host.h
11486 else
11487 # We create a subdir, then run autoconf in the subdir.
11488 # To prevent recursion we set host and build for the new
11489 # invocation of configure to the build for this invocation
11490 # of configure.
11491 tempdir=build.$$
11492 rm -rf $tempdir
11493 mkdir $tempdir
11494 cd $tempdir
11495 case ${srcdir} in
11496 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11497 *) realsrcdir=../${srcdir};;
11498 esac
11499 # Clearing GMPINC is necessary to prevent host headers being
11500 # used by the build compiler. Defining GENERATOR_FILE stops
11501 # system.h from including gmp.h.
11502 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11503 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11504 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11505 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11506 ${realsrcdir}/configure \
11507 --enable-languages=${enable_languages-all} \
11508 --target=$target_alias --host=$build_alias --build=$build_alias
11510 # We just finished tests for the build machine, so rename
11511 # the file auto-build.h in the gcc directory.
11512 mv auto-host.h ../auto-build.h
11513 cd ..
11514 rm -rf $tempdir
11515 build_auto=auto-build.h
11519 tm_file="${tm_file} defaults.h"
11520 tm_p_file="${tm_p_file} tm-preds.h"
11521 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11522 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11523 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11524 # put this back in temporarily.
11525 xm_file="auto-host.h ansidecl.h ${xm_file}"
11527 # --------
11528 # UNSORTED
11529 # --------
11531 # Compile in configure arguments.
11532 if test -f configargs.h ; then
11533 # Being re-configured.
11534 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11535 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11536 else
11537 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11540 # Double all backslashes and backslash all quotes to turn
11541 # gcc_config_arguments into a C string.
11542 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11543 $gcc_config_arguments
11545 gcc_config_arguments_str=`cat conftest.out`
11546 rm -f conftest.out
11548 cat > configargs.h <<EOF
11549 /* Generated automatically. */
11550 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11551 static const char thread_model[] = "$thread_file";
11553 static const struct {
11554 const char *name, *value;
11555 } configure_default_options[] = $configure_default_options;
11558 gcc_BASEVER=`cat $srcdir/BASE-VER`
11559 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11560 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11561 if test -f $srcdir/REVISION ; then
11562 gcc_REVISION=`cat $srcdir/REVISION`
11563 else
11564 gcc_REVISION=""
11566 cat > plugin-version.h <<EOF
11567 #include "configargs.h"
11569 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11570 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11571 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11572 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11574 static char basever[] = "$gcc_BASEVER";
11575 static char datestamp[] = "$gcc_DATESTAMP";
11576 static char devphase[] = "$gcc_DEVPHASE";
11577 static char revision[] = "$gcc_REVISION";
11579 /* FIXME plugins: We should make the version information more precise.
11580 One way to do is to add a checksum. */
11582 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11583 devphase, revision,
11584 configuration_arguments};
11587 # Internationalization
11588 # If we haven't got the data from the intl directory,
11589 # assume NLS is disabled.
11590 USE_NLS=no
11591 LIBINTL=
11592 LIBINTL_DEP=
11593 INCINTL=
11594 XGETTEXT=
11595 GMSGFMT=
11596 POSUB=
11598 if test -f ../intl/config.intl; then
11599 . ../intl/config.intl
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11602 $as_echo_n "checking whether NLS is requested... " >&6; }
11603 if test x"$USE_NLS" != xyes; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605 $as_echo "no" >&6; }
11606 else
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11608 $as_echo "yes" >&6; }
11610 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11614 $as_echo_n "checking for catalogs to be installed... " >&6; }
11615 # Look for .po and .gmo files in the source directory.
11616 CATALOGS=
11617 XLINGUAS=
11618 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11619 # If there aren't any .gmo files the shell will give us the
11620 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11621 # weeded out.
11622 case "$cat" in *\**)
11623 continue;;
11624 esac
11625 # The quadruple backslash is collapsed to a double backslash
11626 # by the backticks, then collapsed again by the double quotes,
11627 # leaving us with one backslash in the sed expression (right
11628 # before the dot that mustn't act as a wildcard).
11629 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11630 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11631 # The user is allowed to set LINGUAS to a list of languages to
11632 # install catalogs for. If it's empty that means "all of them."
11633 if test "x$LINGUAS" = x; then
11634 CATALOGS="$CATALOGS $cat"
11635 XLINGUAS="$XLINGUAS $lang"
11636 else
11637 case "$LINGUAS" in *$lang*)
11638 CATALOGS="$CATALOGS $cat"
11639 XLINGUAS="$XLINGUAS $lang"
11641 esac
11643 done
11644 LINGUAS="$XLINGUAS"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11646 $as_echo "$LINGUAS" >&6; }
11649 DATADIRNAME=share
11651 INSTOBJEXT=.mo
11653 GENCAT=gencat
11655 CATOBJEXT=.gmo
11659 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11660 # -liconv on the link line twice.
11661 case "$LIBINTL" in *$LIBICONV*)
11662 LIBICONV= ;;
11663 esac
11665 # Check whether --enable-secureplt was given.
11666 if test "${enable_secureplt+set}" = set; then :
11667 enableval=$enable_secureplt;
11671 # Check whether --enable-leading-mingw64-underscores was given.
11672 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11673 enableval=$enable_leading_mingw64_underscores;
11676 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11678 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11682 # Check whether --enable-cld was given.
11683 if test "${enable_cld+set}" = set; then :
11684 enableval=$enable_cld;
11685 else
11686 enable_cld=no
11690 # Check whether --enable-frame-pointer was given.
11691 if test "${enable_frame_pointer+set}" = set; then :
11692 enableval=$enable_frame_pointer;
11693 else
11695 case $target_os in
11696 linux* | darwin[8912]*)
11697 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11698 # DWARF2.
11699 enable_frame_pointer=no
11702 enable_frame_pointer=yes
11704 esac
11709 # Windows32 Registry support for specifying GCC installation paths.
11710 # Check whether --enable-win32-registry was given.
11711 if test "${enable_win32_registry+set}" = set; then :
11712 enableval=$enable_win32_registry;
11716 case $host_os in
11717 win32 | pe | cygwin* | mingw32* | uwin*)
11718 if test "x$enable_win32_registry" != xno; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11720 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11721 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 ac_func_search_save_LIBS=$LIBS
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11728 /* Override any GCC internal prototype to avoid an error.
11729 Use char because int might match the return type of a GCC
11730 builtin and then its argument prototype would still apply. */
11731 #ifdef __cplusplus
11732 extern "C"
11733 #endif
11734 char RegOpenKeyExA ();
11736 main ()
11738 return RegOpenKeyExA ();
11740 return 0;
11742 _ACEOF
11743 for ac_lib in '' advapi32; do
11744 if test -z "$ac_lib"; then
11745 ac_res="none required"
11746 else
11747 ac_res=-l$ac_lib
11748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11750 if ac_fn_c_try_link "$LINENO"; then :
11751 ac_cv_search_RegOpenKeyExA=$ac_res
11753 rm -f core conftest.err conftest.$ac_objext \
11754 conftest$ac_exeext
11755 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11756 break
11758 done
11759 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11761 else
11762 ac_cv_search_RegOpenKeyExA=no
11764 rm conftest.$ac_ext
11765 LIBS=$ac_func_search_save_LIBS
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11768 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11769 ac_res=$ac_cv_search_RegOpenKeyExA
11770 if test "$ac_res" != no; then :
11771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11773 else
11774 enable_win32_registry=no
11779 if test "x$enable_win32_registry" != xno; then
11781 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11784 if test "x$enable_win32_registry" != xyes \
11785 && test "x$enable_win32_registry" != x; then
11787 cat >>confdefs.h <<_ACEOF
11788 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11789 _ACEOF
11794 esac
11796 # Get an absolute path to the GCC top-level source directory
11797 holddir=`${PWDCMD-pwd}`
11798 cd $srcdir
11799 topdir=`${PWDCMD-pwd}`
11800 cd $holddir
11802 # Conditionalize the makefile for this host machine.
11803 xmake_file=
11804 for f in ${host_xmake_file}
11806 if test -f ${srcdir}/config/$f
11807 then
11808 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11810 done
11812 # Conditionalize the makefile for this target machine.
11813 tmake_file_=
11814 for f in ${tmake_file}
11816 if test -f ${srcdir}/config/$f
11817 then
11818 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11820 done
11821 tmake_file="${tmake_file_}"
11823 out_object_file=`basename $out_file .c`.o
11824 common_out_object_file=`basename $common_out_file .c`.o
11826 tm_file_list="options.h"
11827 tm_include_list="options.h insn-constants.h"
11828 for f in $tm_file; do
11829 case $f in
11830 ./* )
11831 f=`echo $f | sed 's/^..//'`
11832 tm_file_list="${tm_file_list} $f"
11833 tm_include_list="${tm_include_list} $f"
11835 defaults.h )
11836 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11837 tm_include_list="${tm_include_list} $f"
11840 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11841 tm_include_list="${tm_include_list} config/$f"
11843 esac
11844 done
11846 tm_p_file_list=
11847 tm_p_include_list=
11848 for f in $tm_p_file; do
11849 case $f in
11850 tm-preds.h )
11851 tm_p_file_list="${tm_p_file_list} $f"
11852 tm_p_include_list="${tm_p_include_list} $f"
11855 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11856 tm_p_include_list="${tm_p_include_list} config/$f"
11857 esac
11858 done
11860 xm_file_list=
11861 xm_include_list=
11862 for f in $xm_file; do
11863 case $f in
11864 ansidecl.h )
11865 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11866 xm_include_list="${xm_include_list} $f"
11868 auto-host.h )
11869 xm_file_list="${xm_file_list} $f"
11870 xm_include_list="${xm_include_list} $f"
11873 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11874 xm_include_list="${xm_include_list} config/$f"
11876 esac
11877 done
11879 host_xm_file_list=
11880 host_xm_include_list=
11881 for f in $host_xm_file; do
11882 case $f in
11883 ansidecl.h )
11884 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11885 host_xm_include_list="${host_xm_include_list} $f"
11887 auto-host.h )
11888 host_xm_file_list="${host_xm_file_list} $f"
11889 host_xm_include_list="${host_xm_include_list} $f"
11892 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11893 host_xm_include_list="${host_xm_include_list} config/$f"
11895 esac
11896 done
11898 build_xm_file_list=
11899 for f in $build_xm_file; do
11900 case $f in
11901 ansidecl.h )
11902 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11903 build_xm_include_list="${build_xm_include_list} $f"
11905 auto-build.h | auto-host.h )
11906 build_xm_file_list="${build_xm_file_list} $f"
11907 build_xm_include_list="${build_xm_include_list} $f"
11910 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11911 build_xm_include_list="${build_xm_include_list} config/$f"
11913 esac
11914 done
11916 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11917 # cross-compiler which does not use the native headers and libraries.
11918 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11919 CROSS=
11920 ALL=all.internal
11921 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11923 if test "x$with_build_sysroot" != x; then
11924 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11925 else
11926 # This value is used, even on a native system, because
11927 # CROSS_SYSTEM_HEADER_DIR is just
11928 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11929 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11932 if test x$host != x$target
11933 then
11934 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11935 ALL=all.cross
11936 SYSTEM_HEADER_DIR=$build_system_header_dir
11937 case "$host","$target" in
11938 # Darwin crosses can use the host system's libraries and headers,
11939 # because of the fat library support. Of course, it must be the
11940 # same version of Darwin on both sides. Allow the user to
11941 # just say --target=foo-darwin without a version number to mean
11942 # "the version on this system".
11943 *-*-darwin*,*-*-darwin*)
11944 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11945 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11946 if test $hostos = $targetos -o $targetos = darwin ; then
11947 CROSS=
11948 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11949 with_headers=yes
11953 i?86-*-*,x86_64-*-* \
11954 | powerpc*-*-*,powerpc64*-*-*)
11955 CROSS="$CROSS -DNATIVE_CROSS" ;;
11956 esac
11958 case $target in
11959 *-*-mingw*)
11960 if test "x$with_headers" = x; then
11961 with_headers=yes
11966 esac
11967 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11968 SYSTEM_HEADER_DIR=$build_system_header_dir
11971 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11972 if test "x$with_headers" != x; then
11973 target_header_dir=$with_headers
11974 elif test "x$with_sysroot" = x; then
11975 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11976 elif test "x$with_build_sysroot" != "x"; then
11977 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11978 elif test "x$with_sysroot" = xyes; then
11979 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11980 else
11981 target_header_dir="${with_sysroot}${native_system_header_dir}"
11983 else
11984 target_header_dir=${native_system_header_dir}
11987 # If this is a cross-compiler that does not
11988 # have its own set of headers then define
11989 # inhibit_libc
11991 # If this is using newlib, without having the headers available now,
11992 # then define inhibit_libc in LIBGCC2_CFLAGS.
11993 # This prevents libgcc2 from containing any code which requires libc
11994 # support.
11995 : ${inhibit_libc=false}
11996 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11997 test x$with_newlib = xyes ; } &&
11998 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
11999 inhibit_libc=true
12003 # When building gcc with a cross-compiler, we need to adjust things so
12004 # that the generator programs are still built with the native compiler.
12005 # Also, we cannot run fixincludes.
12007 # These are the normal (build=host) settings:
12008 CC_FOR_BUILD='$(CC)'
12009 CXX_FOR_BUILD='$(CXX)'
12010 BUILD_CFLAGS='$(ALL_CFLAGS)'
12011 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
12012 BUILD_LDFLAGS='$(LDFLAGS)'
12013 STMP_FIXINC=stmp-fixinc
12015 # And these apply if build != host, or we are generating coverage data
12016 if test x$build != x$host || test "x$coverage_flags" != x
12017 then
12018 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12019 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12020 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12023 # Expand extra_headers to include complete path.
12024 # This substitutes for lots of t-* files.
12025 extra_headers_list=
12026 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12027 for file in ${extra_headers} ; do
12028 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12029 done
12031 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12032 if test x"$use_gcc_tgmath" = xyes
12033 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12036 # Define collect2 in Makefile.
12037 case $host_can_use_collect2 in
12038 no) collect2= ;;
12039 *) collect2='collect2$(exeext)' ;;
12040 esac
12043 # Add a definition of USE_COLLECT2 if system wants one.
12044 case $use_collect2 in
12045 no) use_collect2= ;;
12046 "") ;;
12048 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12049 xm_defines="${xm_defines} USE_COLLECT2"
12050 case $host_can_use_collect2 in
12052 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12054 esac
12056 esac
12059 cat >>confdefs.h <<_ACEOF
12060 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12061 _ACEOF
12064 # ---------------------------
12065 # Assembler & linker features
12066 # ---------------------------
12068 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12069 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12070 # However when ld-new is first executed from the build tree, libtool will
12071 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12072 # to the build tree. While doing this we need to use the previous-stage
12073 # linker, or we have an infinite loop. The presence of a shell script as
12074 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12075 # the gcc/collect-ld script. So we need to know how libtool works, or
12076 # exec-tool will fail.
12079 case `pwd` in
12080 *\ * | *\ *)
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12082 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12083 esac
12087 macro_version='2.2.7a'
12088 macro_revision='1.3134'
12102 ltmain="$ac_aux_dir/ltmain.sh"
12104 # Backslashify metacharacters that are still active within
12105 # double-quoted strings.
12106 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12108 # Same as above, but do not quote variable references.
12109 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12111 # Sed substitution to delay expansion of an escaped shell variable in a
12112 # double_quote_subst'ed string.
12113 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12115 # Sed substitution to delay expansion of an escaped single quote.
12116 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12118 # Sed substitution to avoid accidental globbing in evaled expressions
12119 no_glob_subst='s/\*/\\\*/g'
12121 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12122 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12123 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12126 $as_echo_n "checking how to print strings... " >&6; }
12127 # Test print first, because it will be a builtin if present.
12128 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12129 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12130 ECHO='print -r --'
12131 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12132 ECHO='printf %s\n'
12133 else
12134 # Use this function as a fallback that always works.
12135 func_fallback_echo ()
12137 eval 'cat <<_LTECHO_EOF
12139 _LTECHO_EOF'
12141 ECHO='func_fallback_echo'
12144 # func_echo_all arg...
12145 # Invoke $ECHO with all args, space-separated.
12146 func_echo_all ()
12148 $ECHO ""
12151 case "$ECHO" in
12152 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12153 $as_echo "printf" >&6; } ;;
12154 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12155 $as_echo "print -r" >&6; } ;;
12156 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12157 $as_echo "cat" >&6; } ;;
12158 esac
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12174 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12175 if test "${ac_cv_path_SED+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12179 for ac_i in 1 2 3 4 5 6 7; do
12180 ac_script="$ac_script$as_nl$ac_script"
12181 done
12182 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12183 { ac_script=; unset ac_script;}
12184 if test -z "$SED"; then
12185 ac_path_SED_found=false
12186 # Loop through the user's path and test for each of PROGNAME-LIST
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_prog in sed gsed; do
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12195 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12196 # Check for GNU ac_path_SED and select it if it is found.
12197 # Check for GNU $ac_path_SED
12198 case `"$ac_path_SED" --version 2>&1` in
12199 *GNU*)
12200 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12202 ac_count=0
12203 $as_echo_n 0123456789 >"conftest.in"
12204 while :
12206 cat "conftest.in" "conftest.in" >"conftest.tmp"
12207 mv "conftest.tmp" "conftest.in"
12208 cp "conftest.in" "conftest.nl"
12209 $as_echo '' >> "conftest.nl"
12210 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12212 as_fn_arith $ac_count + 1 && ac_count=$as_val
12213 if test $ac_count -gt ${ac_path_SED_max-0}; then
12214 # Best one so far, save it but keep looking for a better one
12215 ac_cv_path_SED="$ac_path_SED"
12216 ac_path_SED_max=$ac_count
12218 # 10*(2^10) chars as input seems more than enough
12219 test $ac_count -gt 10 && break
12220 done
12221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12222 esac
12224 $ac_path_SED_found && break 3
12225 done
12226 done
12227 done
12228 IFS=$as_save_IFS
12229 if test -z "$ac_cv_path_SED"; then
12230 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12232 else
12233 ac_cv_path_SED=$SED
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12238 $as_echo "$ac_cv_path_SED" >&6; }
12239 SED="$ac_cv_path_SED"
12240 rm -f conftest.sed
12242 test -z "$SED" && SED=sed
12243 Xsed="$SED -e 1s/^X//"
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12256 $as_echo_n "checking for fgrep... " >&6; }
12257 if test "${ac_cv_path_FGREP+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12261 then ac_cv_path_FGREP="$GREP -F"
12262 else
12263 if test -z "$FGREP"; then
12264 ac_path_FGREP_found=false
12265 # Loop through the user's path and test for each of PROGNAME-LIST
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
12271 for ac_prog in fgrep; do
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12274 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12275 # Check for GNU ac_path_FGREP and select it if it is found.
12276 # Check for GNU $ac_path_FGREP
12277 case `"$ac_path_FGREP" --version 2>&1` in
12278 *GNU*)
12279 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12281 ac_count=0
12282 $as_echo_n 0123456789 >"conftest.in"
12283 while :
12285 cat "conftest.in" "conftest.in" >"conftest.tmp"
12286 mv "conftest.tmp" "conftest.in"
12287 cp "conftest.in" "conftest.nl"
12288 $as_echo 'FGREP' >> "conftest.nl"
12289 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12291 as_fn_arith $ac_count + 1 && ac_count=$as_val
12292 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12293 # Best one so far, save it but keep looking for a better one
12294 ac_cv_path_FGREP="$ac_path_FGREP"
12295 ac_path_FGREP_max=$ac_count
12297 # 10*(2^10) chars as input seems more than enough
12298 test $ac_count -gt 10 && break
12299 done
12300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12301 esac
12303 $ac_path_FGREP_found && break 3
12304 done
12305 done
12306 done
12307 IFS=$as_save_IFS
12308 if test -z "$ac_cv_path_FGREP"; then
12309 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12311 else
12312 ac_cv_path_FGREP=$FGREP
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12318 $as_echo "$ac_cv_path_FGREP" >&6; }
12319 FGREP="$ac_cv_path_FGREP"
12322 test -z "$GREP" && GREP=grep
12342 # Check whether --with-gnu-ld was given.
12343 if test "${with_gnu_ld+set}" = set; then :
12344 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12345 else
12346 with_gnu_ld=no
12349 ac_prog=ld
12350 if test "$GCC" = yes; then
12351 # Check if gcc -print-prog-name=ld gives a path.
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12353 $as_echo_n "checking for ld used by $CC... " >&6; }
12354 case $host in
12355 *-*-mingw*)
12356 # gcc leaves a trailing carriage return which upsets mingw
12357 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12359 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12360 esac
12361 case $ac_prog in
12362 # Accept absolute paths.
12363 [\\/]* | ?:[\\/]*)
12364 re_direlt='/[^/][^/]*/\.\./'
12365 # Canonicalize the pathname of ld
12366 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12367 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12368 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12369 done
12370 test -z "$LD" && LD="$ac_prog"
12373 # If it fails, then pretend we aren't using GCC.
12374 ac_prog=ld
12377 # If it is relative, then search for the first ld in PATH.
12378 with_gnu_ld=unknown
12380 esac
12381 elif test "$with_gnu_ld" = yes; then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12383 $as_echo_n "checking for GNU ld... " >&6; }
12384 else
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12386 $as_echo_n "checking for non-GNU ld... " >&6; }
12388 if test "${lt_cv_path_LD+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 if test -z "$LD"; then
12392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12393 for ac_dir in $PATH; do
12394 IFS="$lt_save_ifs"
12395 test -z "$ac_dir" && ac_dir=.
12396 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12397 lt_cv_path_LD="$ac_dir/$ac_prog"
12398 # Check to see if the program is GNU ld. I'd rather use --version,
12399 # but apparently some variants of GNU ld only accept -v.
12400 # Break only if it was the GNU/non-GNU ld that we prefer.
12401 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12402 *GNU* | *'with BFD'*)
12403 test "$with_gnu_ld" != no && break
12406 test "$with_gnu_ld" != yes && break
12408 esac
12410 done
12411 IFS="$lt_save_ifs"
12412 else
12413 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12417 LD="$lt_cv_path_LD"
12418 if test -n "$LD"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12420 $as_echo "$LD" >&6; }
12421 else
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12425 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12427 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12428 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12432 case `$LD -v 2>&1 </dev/null` in
12433 *GNU* | *'with BFD'*)
12434 lt_cv_prog_gnu_ld=yes
12437 lt_cv_prog_gnu_ld=no
12439 esac
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12442 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12443 with_gnu_ld=$lt_cv_prog_gnu_ld
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12454 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12455 if test "${lt_cv_path_NM+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458 if test -n "$NM"; then
12459 # Let the user override the test.
12460 lt_cv_path_NM="$NM"
12461 else
12462 lt_nm_to_check="${ac_tool_prefix}nm"
12463 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12464 lt_nm_to_check="$lt_nm_to_check nm"
12466 for lt_tmp_nm in $lt_nm_to_check; do
12467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12468 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12469 IFS="$lt_save_ifs"
12470 test -z "$ac_dir" && ac_dir=.
12471 tmp_nm="$ac_dir/$lt_tmp_nm"
12472 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12473 # Check to see if the nm accepts a BSD-compat flag.
12474 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12475 # nm: unknown option "B" ignored
12476 # Tru64's nm complains that /dev/null is an invalid object file
12477 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12478 */dev/null* | *'Invalid file or object type'*)
12479 lt_cv_path_NM="$tmp_nm -B"
12480 break
12483 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12484 */dev/null*)
12485 lt_cv_path_NM="$tmp_nm -p"
12486 break
12489 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12490 continue # so that we can try to find one that supports BSD flags
12492 esac
12494 esac
12496 done
12497 IFS="$lt_save_ifs"
12498 done
12499 : ${lt_cv_path_NM=no}
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12503 $as_echo "$lt_cv_path_NM" >&6; }
12504 if test "$lt_cv_path_NM" != "no"; then
12505 NM="$lt_cv_path_NM"
12506 else
12507 # Didn't find any BSD compatible name lister, look for dumpbin.
12508 if test -n "$DUMPBIN"; then :
12509 # Let the user override the test.
12510 else
12511 if test -n "$ac_tool_prefix"; then
12512 for ac_prog in dumpbin "link -dump"
12514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12517 $as_echo_n "checking for $ac_word... " >&6; }
12518 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 if test -n "$DUMPBIN"; then
12522 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12523 else
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12527 IFS=$as_save_IFS
12528 test -z "$as_dir" && as_dir=.
12529 for ac_exec_ext in '' $ac_executable_extensions; do
12530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12531 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533 break 2
12535 done
12536 done
12537 IFS=$as_save_IFS
12541 DUMPBIN=$ac_cv_prog_DUMPBIN
12542 if test -n "$DUMPBIN"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12544 $as_echo "$DUMPBIN" >&6; }
12545 else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12551 test -n "$DUMPBIN" && break
12552 done
12554 if test -z "$DUMPBIN"; then
12555 ac_ct_DUMPBIN=$DUMPBIN
12556 for ac_prog in dumpbin "link -dump"
12558 # Extract the first word of "$ac_prog", so it can be a program name with args.
12559 set dummy $ac_prog; ac_word=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12561 $as_echo_n "checking for $ac_word... " >&6; }
12562 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 if test -n "$ac_ct_DUMPBIN"; then
12566 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12567 else
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12575 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 break 2
12579 done
12580 done
12581 IFS=$as_save_IFS
12585 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12586 if test -n "$ac_ct_DUMPBIN"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12588 $as_echo "$ac_ct_DUMPBIN" >&6; }
12589 else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12595 test -n "$ac_ct_DUMPBIN" && break
12596 done
12598 if test "x$ac_ct_DUMPBIN" = x; then
12599 DUMPBIN=":"
12600 else
12601 case $cross_compiling:$ac_tool_warned in
12602 yes:)
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12605 ac_tool_warned=yes ;;
12606 esac
12607 DUMPBIN=$ac_ct_DUMPBIN
12611 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12612 *COFF*)
12613 DUMPBIN="$DUMPBIN -symbols"
12616 DUMPBIN=:
12618 esac
12621 if test "$DUMPBIN" != ":"; then
12622 NM="$DUMPBIN"
12625 test -z "$NM" && NM=nm
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12634 if test "${lt_cv_nm_interface+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 lt_cv_nm_interface="BSD nm"
12638 echo "int some_variable = 0;" > conftest.$ac_ext
12639 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12640 (eval "$ac_compile" 2>conftest.err)
12641 cat conftest.err >&5
12642 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12643 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12644 cat conftest.err >&5
12645 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12646 cat conftest.out >&5
12647 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12648 lt_cv_nm_interface="MS dumpbin"
12650 rm -f conftest*
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12653 $as_echo "$lt_cv_nm_interface" >&6; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12656 $as_echo_n "checking whether ln -s works... " >&6; }
12657 LN_S=$as_ln_s
12658 if test "$LN_S" = "ln -s"; then
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12660 $as_echo "yes" >&6; }
12661 else
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12663 $as_echo "no, using $LN_S" >&6; }
12666 # find the maximum length of command line arguments
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12669 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12673 teststring="ABCD"
12675 case $build_os in
12676 msdosdjgpp*)
12677 # On DJGPP, this test can blow up pretty badly due to problems in libc
12678 # (any single argument exceeding 2000 bytes causes a buffer overrun
12679 # during glob expansion). Even if it were fixed, the result of this
12680 # check would be larger than it should be.
12681 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12684 gnu*)
12685 # Under GNU Hurd, this test is not required because there is
12686 # no limit to the length of command line arguments.
12687 # Libtool will interpret -1 as no limit whatsoever
12688 lt_cv_sys_max_cmd_len=-1;
12691 cygwin* | mingw* | cegcc*)
12692 # On Win9x/ME, this test blows up -- it succeeds, but takes
12693 # about 5 minutes as the teststring grows exponentially.
12694 # Worse, since 9x/ME are not pre-emptively multitasking,
12695 # you end up with a "frozen" computer, even though with patience
12696 # the test eventually succeeds (with a max line length of 256k).
12697 # Instead, let's just punt: use the minimum linelength reported by
12698 # all of the supported platforms: 8192 (on NT/2K/XP).
12699 lt_cv_sys_max_cmd_len=8192;
12702 mint*)
12703 # On MiNT this can take a long time and run out of memory.
12704 lt_cv_sys_max_cmd_len=8192;
12707 amigaos*)
12708 # On AmigaOS with pdksh, this test takes hours, literally.
12709 # So we just punt and use a minimum line length of 8192.
12710 lt_cv_sys_max_cmd_len=8192;
12713 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12714 # This has been around since 386BSD, at least. Likely further.
12715 if test -x /sbin/sysctl; then
12716 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12717 elif test -x /usr/sbin/sysctl; then
12718 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12719 else
12720 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12722 # And add a safety zone
12723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12727 interix*)
12728 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12729 lt_cv_sys_max_cmd_len=196608
12732 osf*)
12733 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12734 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12735 # nice to cause kernel panics so lets avoid the loop below.
12736 # First set a reasonable default.
12737 lt_cv_sys_max_cmd_len=16384
12739 if test -x /sbin/sysconfig; then
12740 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12741 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12742 esac
12745 sco3.2v5*)
12746 lt_cv_sys_max_cmd_len=102400
12748 sysv5* | sco5v6* | sysv4.2uw2*)
12749 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12750 if test -n "$kargmax"; then
12751 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12752 else
12753 lt_cv_sys_max_cmd_len=32768
12757 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12758 if test -n "$lt_cv_sys_max_cmd_len"; then
12759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12761 else
12762 # Make teststring a little bigger before we do anything with it.
12763 # a 1K string should be a reasonable start.
12764 for i in 1 2 3 4 5 6 7 8 ; do
12765 teststring=$teststring$teststring
12766 done
12767 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12768 # If test is not a shell built-in, we'll probably end up computing a
12769 # maximum length that is only half of the actual maximum length, but
12770 # we can't tell.
12771 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12772 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12773 test $i != 17 # 1/2 MB should be enough
12775 i=`expr $i + 1`
12776 teststring=$teststring$teststring
12777 done
12778 # Only check the string length outside the loop.
12779 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12780 teststring=
12781 # Add a significant safety factor because C++ compilers can tack on
12782 # massive amounts of additional arguments before passing them to the
12783 # linker. It appears as though 1/2 is a usable value.
12784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12787 esac
12791 if test -n $lt_cv_sys_max_cmd_len ; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12793 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12796 $as_echo "none" >&6; }
12798 max_cmd_len=$lt_cv_sys_max_cmd_len
12805 : ${CP="cp -f"}
12806 : ${MV="mv -f"}
12807 : ${RM="rm -f"}
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12810 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12811 # Try some XSI features
12812 xsi_shell=no
12813 ( _lt_dummy="a/b/c"
12814 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12815 = c,a/b,, \
12816 && eval 'test $(( 1 + 1 )) -eq 2 \
12817 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12818 && xsi_shell=yes
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12820 $as_echo "$xsi_shell" >&6; }
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12824 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12825 lt_shell_append=no
12826 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12827 >/dev/null 2>&1 \
12828 && lt_shell_append=yes
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12830 $as_echo "$lt_shell_append" >&6; }
12833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12834 lt_unset=unset
12835 else
12836 lt_unset=false
12843 # test EBCDIC or ASCII
12844 case `echo X|tr X '\101'` in
12845 A) # ASCII based system
12846 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12847 lt_SP2NL='tr \040 \012'
12848 lt_NL2SP='tr \015\012 \040\040'
12850 *) # EBCDIC based system
12851 lt_SP2NL='tr \100 \n'
12852 lt_NL2SP='tr \r\n \100\100'
12854 esac
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12865 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12866 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 lt_cv_ld_reload_flag='-r'
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12872 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12873 reload_flag=$lt_cv_ld_reload_flag
12874 case $reload_flag in
12875 "" | " "*) ;;
12876 *) reload_flag=" $reload_flag" ;;
12877 esac
12878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12879 case $host_os in
12880 darwin*)
12881 if test "$GCC" = yes; then
12882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12883 else
12884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12887 esac
12897 if test -n "$ac_tool_prefix"; then
12898 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12899 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12901 $as_echo_n "checking for $ac_word... " >&6; }
12902 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 if test -n "$OBJDUMP"; then
12906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12907 else
12908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12909 for as_dir in $PATH
12911 IFS=$as_save_IFS
12912 test -z "$as_dir" && as_dir=.
12913 for ac_exec_ext in '' $ac_executable_extensions; do
12914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12915 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12917 break 2
12919 done
12920 done
12921 IFS=$as_save_IFS
12925 OBJDUMP=$ac_cv_prog_OBJDUMP
12926 if test -n "$OBJDUMP"; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12928 $as_echo "$OBJDUMP" >&6; }
12929 else
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12931 $as_echo "no" >&6; }
12936 if test -z "$ac_cv_prog_OBJDUMP"; then
12937 ac_ct_OBJDUMP=$OBJDUMP
12938 # Extract the first word of "objdump", so it can be a program name with args.
12939 set dummy objdump; ac_word=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12944 else
12945 if test -n "$ac_ct_OBJDUMP"; then
12946 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12947 else
12948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12959 done
12960 done
12961 IFS=$as_save_IFS
12965 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12966 if test -n "$ac_ct_OBJDUMP"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12968 $as_echo "$ac_ct_OBJDUMP" >&6; }
12969 else
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12974 if test "x$ac_ct_OBJDUMP" = x; then
12975 OBJDUMP="false"
12976 else
12977 case $cross_compiling:$ac_tool_warned in
12978 yes:)
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12981 ac_tool_warned=yes ;;
12982 esac
12983 OBJDUMP=$ac_ct_OBJDUMP
12985 else
12986 OBJDUMP="$ac_cv_prog_OBJDUMP"
12989 test -z "$OBJDUMP" && OBJDUMP=objdump
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13000 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
13001 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 lt_cv_file_magic_cmd='$MAGIC_CMD'
13005 lt_cv_file_magic_test_file=
13006 lt_cv_deplibs_check_method='unknown'
13007 # Need to set the preceding variable on all platforms that support
13008 # interlibrary dependencies.
13009 # 'none' -- dependencies not supported.
13010 # `unknown' -- same as none, but documents that we really don't know.
13011 # 'pass_all' -- all dependencies passed with no checks.
13012 # 'test_compile' -- check by making test program.
13013 # 'file_magic [[regex]]' -- check by looking for files in library path
13014 # which responds to the $file_magic_cmd with a given extended regex.
13015 # If you have `file' or equivalent on your system and you're not sure
13016 # whether `pass_all' will *always* work, you probably want this one.
13018 case $host_os in
13019 aix[4-9]*)
13020 lt_cv_deplibs_check_method=pass_all
13023 beos*)
13024 lt_cv_deplibs_check_method=pass_all
13027 bsdi[45]*)
13028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13029 lt_cv_file_magic_cmd='/usr/bin/file -L'
13030 lt_cv_file_magic_test_file=/shlib/libc.so
13033 cygwin*)
13034 # func_win32_libid is a shell function defined in ltmain.sh
13035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13036 lt_cv_file_magic_cmd='func_win32_libid'
13039 mingw* | pw32*)
13040 # Base MSYS/MinGW do not provide the 'file' command needed by
13041 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13042 # unless we find 'file', for example because we are cross-compiling.
13043 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13044 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13046 lt_cv_file_magic_cmd='func_win32_libid'
13047 else
13048 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13049 lt_cv_file_magic_cmd='$OBJDUMP -f'
13053 cegcc*)
13054 # use the weaker test based on 'objdump'. See mingw*.
13055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13056 lt_cv_file_magic_cmd='$OBJDUMP -f'
13059 darwin* | rhapsody*)
13060 lt_cv_deplibs_check_method=pass_all
13063 freebsd* | dragonfly*)
13064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13065 case $host_cpu in
13066 i*86 )
13067 # Not sure whether the presence of OpenBSD here was a mistake.
13068 # Let's accept both of them until this is cleared up.
13069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13070 lt_cv_file_magic_cmd=/usr/bin/file
13071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13073 esac
13074 else
13075 lt_cv_deplibs_check_method=pass_all
13079 gnu*)
13080 lt_cv_deplibs_check_method=pass_all
13083 haiku*)
13084 lt_cv_deplibs_check_method=pass_all
13087 hpux10.20* | hpux11*)
13088 lt_cv_file_magic_cmd=/usr/bin/file
13089 case $host_cpu in
13090 ia64*)
13091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13094 hppa*64*)
13095 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]'
13096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13100 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13102 esac
13105 interix[3-9]*)
13106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13110 irix5* | irix6* | nonstopux*)
13111 case $LD in
13112 *-32|*"-32 ") libmagic=32-bit;;
13113 *-n32|*"-n32 ") libmagic=N32;;
13114 *-64|*"-64 ") libmagic=64-bit;;
13115 *) libmagic=never-match;;
13116 esac
13117 lt_cv_deplibs_check_method=pass_all
13120 # This must be Linux ELF.
13121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13122 lt_cv_deplibs_check_method=pass_all
13125 netbsd*)
13126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13128 else
13129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13133 newos6*)
13134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13135 lt_cv_file_magic_cmd=/usr/bin/file
13136 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13139 *nto* | *qnx*)
13140 lt_cv_deplibs_check_method=pass_all
13143 openbsd*)
13144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13146 else
13147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13151 osf3* | osf4* | osf5*)
13152 lt_cv_deplibs_check_method=pass_all
13155 rdos*)
13156 lt_cv_deplibs_check_method=pass_all
13159 solaris*)
13160 lt_cv_deplibs_check_method=pass_all
13163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13164 lt_cv_deplibs_check_method=pass_all
13167 sysv4 | sysv4.3*)
13168 case $host_vendor in
13169 motorola)
13170 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]'
13171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13173 ncr)
13174 lt_cv_deplibs_check_method=pass_all
13176 sequent)
13177 lt_cv_file_magic_cmd='/bin/file'
13178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13180 sni)
13181 lt_cv_file_magic_cmd='/bin/file'
13182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13183 lt_cv_file_magic_test_file=/lib/libc.so
13185 siemens)
13186 lt_cv_deplibs_check_method=pass_all
13189 lt_cv_deplibs_check_method=pass_all
13191 esac
13194 tpf*)
13195 lt_cv_deplibs_check_method=pass_all
13197 esac
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13201 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13202 file_magic_cmd=$lt_cv_file_magic_cmd
13203 deplibs_check_method=$lt_cv_deplibs_check_method
13204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13217 if test -n "$ac_tool_prefix"; then
13218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13219 set dummy ${ac_tool_prefix}ar; ac_word=$2
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13221 $as_echo_n "checking for $ac_word... " >&6; }
13222 if test "${ac_cv_prog_AR+set}" = set; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 if test -n "$AR"; then
13226 ac_cv_prog_AR="$AR" # Let the user override the test.
13227 else
13228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229 for as_dir in $PATH
13231 IFS=$as_save_IFS
13232 test -z "$as_dir" && as_dir=.
13233 for ac_exec_ext in '' $ac_executable_extensions; do
13234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13235 ac_cv_prog_AR="${ac_tool_prefix}ar"
13236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237 break 2
13239 done
13240 done
13241 IFS=$as_save_IFS
13245 AR=$ac_cv_prog_AR
13246 if test -n "$AR"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13248 $as_echo "$AR" >&6; }
13249 else
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13256 if test -z "$ac_cv_prog_AR"; then
13257 ac_ct_AR=$AR
13258 # Extract the first word of "ar", so it can be a program name with args.
13259 set dummy ar; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13261 $as_echo_n "checking for $ac_word... " >&6; }
13262 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 if test -n "$ac_ct_AR"; then
13266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13267 else
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13271 IFS=$as_save_IFS
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275 ac_cv_prog_ac_ct_AR="ar"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277 break 2
13279 done
13280 done
13281 IFS=$as_save_IFS
13285 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13286 if test -n "$ac_ct_AR"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13288 $as_echo "$ac_ct_AR" >&6; }
13289 else
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291 $as_echo "no" >&6; }
13294 if test "x$ac_ct_AR" = x; then
13295 AR="false"
13296 else
13297 case $cross_compiling:$ac_tool_warned in
13298 yes:)
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13301 ac_tool_warned=yes ;;
13302 esac
13303 AR=$ac_ct_AR
13305 else
13306 AR="$ac_cv_prog_AR"
13309 test -z "$AR" && AR=ar
13310 test -z "$AR_FLAGS" && AR_FLAGS=cru
13322 if test -n "$ac_tool_prefix"; then
13323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13324 set dummy ${ac_tool_prefix}strip; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if test "${ac_cv_prog_STRIP+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 if test -n "$STRIP"; then
13331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13332 else
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13336 IFS=$as_save_IFS
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342 break 2
13344 done
13345 done
13346 IFS=$as_save_IFS
13350 STRIP=$ac_cv_prog_STRIP
13351 if test -n "$STRIP"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13353 $as_echo "$STRIP" >&6; }
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13361 if test -z "$ac_cv_prog_STRIP"; then
13362 ac_ct_STRIP=$STRIP
13363 # Extract the first word of "strip", so it can be a program name with args.
13364 set dummy strip; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 if test -n "$ac_ct_STRIP"; then
13371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13372 else
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13376 IFS=$as_save_IFS
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13380 ac_cv_prog_ac_ct_STRIP="strip"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382 break 2
13384 done
13385 done
13386 IFS=$as_save_IFS
13390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13391 if test -n "$ac_ct_STRIP"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13393 $as_echo "$ac_ct_STRIP" >&6; }
13394 else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13399 if test "x$ac_ct_STRIP" = x; then
13400 STRIP=":"
13401 else
13402 case $cross_compiling:$ac_tool_warned in
13403 yes:)
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13406 ac_tool_warned=yes ;;
13407 esac
13408 STRIP=$ac_ct_STRIP
13410 else
13411 STRIP="$ac_cv_prog_STRIP"
13414 test -z "$STRIP" && STRIP=:
13421 if test -n "$ac_tool_prefix"; then
13422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13425 $as_echo_n "checking for $ac_word... " >&6; }
13426 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 if test -n "$RANLIB"; then
13430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13431 else
13432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13433 for as_dir in $PATH
13435 IFS=$as_save_IFS
13436 test -z "$as_dir" && as_dir=.
13437 for ac_exec_ext in '' $ac_executable_extensions; do
13438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13441 break 2
13443 done
13444 done
13445 IFS=$as_save_IFS
13449 RANLIB=$ac_cv_prog_RANLIB
13450 if test -n "$RANLIB"; then
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13452 $as_echo "$RANLIB" >&6; }
13453 else
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13455 $as_echo "no" >&6; }
13460 if test -z "$ac_cv_prog_RANLIB"; then
13461 ac_ct_RANLIB=$RANLIB
13462 # Extract the first word of "ranlib", so it can be a program name with args.
13463 set dummy ranlib; ac_word=$2
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465 $as_echo_n "checking for $ac_word... " >&6; }
13466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 if test -n "$ac_ct_RANLIB"; then
13470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13471 else
13472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13479 ac_cv_prog_ac_ct_RANLIB="ranlib"
13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13481 break 2
13483 done
13484 done
13485 IFS=$as_save_IFS
13489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13490 if test -n "$ac_ct_RANLIB"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13492 $as_echo "$ac_ct_RANLIB" >&6; }
13493 else
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13498 if test "x$ac_ct_RANLIB" = x; then
13499 RANLIB=":"
13500 else
13501 case $cross_compiling:$ac_tool_warned in
13502 yes:)
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13505 ac_tool_warned=yes ;;
13506 esac
13507 RANLIB=$ac_ct_RANLIB
13509 else
13510 RANLIB="$ac_cv_prog_RANLIB"
13513 test -z "$RANLIB" && RANLIB=:
13520 # Determine commands to create old-style static archives.
13521 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13522 old_postinstall_cmds='chmod 644 $oldlib'
13523 old_postuninstall_cmds=
13525 if test -n "$RANLIB"; then
13526 case $host_os in
13527 openbsd*)
13528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13531 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13533 esac
13534 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13537 case $host_os in
13538 darwin*)
13539 lock_old_archive_extraction=yes ;;
13541 lock_old_archive_extraction=no ;;
13542 esac
13582 # If no C compiler was specified, use CC.
13583 LTCC=${LTCC-"$CC"}
13585 # If no C compiler flags were specified, use CFLAGS.
13586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13588 # Allow CC to be a program name with arguments.
13589 compiler=$CC
13592 # Check for command to grab the raw symbol name followed by C symbol from nm.
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13594 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13595 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13599 # These are sane defaults that work on at least a few old systems.
13600 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13602 # Character class describing NM global symbol codes.
13603 symcode='[BCDEGRST]'
13605 # Regexp to match symbols that can be accessed directly from C.
13606 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13608 # Define system-specific variables.
13609 case $host_os in
13610 aix*)
13611 symcode='[BCDT]'
13613 cygwin* | mingw* | pw32* | cegcc*)
13614 symcode='[ABCDGISTW]'
13616 hpux*)
13617 if test "$host_cpu" = ia64; then
13618 symcode='[ABCDEGRST]'
13621 irix* | nonstopux*)
13622 symcode='[BCDEGRST]'
13624 osf*)
13625 symcode='[BCDEGQRST]'
13627 solaris*)
13628 symcode='[BDRT]'
13630 sco3.2v5*)
13631 symcode='[DT]'
13633 sysv4.2uw2*)
13634 symcode='[DT]'
13636 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13637 symcode='[ABDT]'
13639 sysv4)
13640 symcode='[DFNSTU]'
13642 esac
13644 # If we're using GNU nm, then use its standard symbol codes.
13645 case `$NM -V 2>&1` in
13646 *GNU* | *'with BFD'*)
13647 symcode='[ABCDGIRSTW]' ;;
13648 esac
13650 # Transform an extracted symbol line into a proper C declaration.
13651 # Some systems (esp. on ia64) link data and code symbols differently,
13652 # so use this general approach.
13653 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13655 # Transform an extracted symbol line into symbol name and symbol address
13656 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13657 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'"
13659 # Handle CRLF in mingw tool chain
13660 opt_cr=
13661 case $build_os in
13662 mingw*)
13663 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13665 esac
13667 # Try without a prefix underscore, then with it.
13668 for ac_symprfx in "" "_"; do
13670 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13671 symxfrm="\\1 $ac_symprfx\\2 \\2"
13673 # Write the raw and C identifiers.
13674 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13675 # Fake it for dumpbin and say T for any non-static function
13676 # and D for any global variable.
13677 # Also find C++ and __fastcall symbols from MSVC++,
13678 # which start with @ or ?.
13679 lt_cv_sys_global_symbol_pipe="$AWK '"\
13680 " {last_section=section; section=\$ 3};"\
13681 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13682 " \$ 0!~/External *\|/{next};"\
13683 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13684 " {if(hide[section]) next};"\
13685 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13686 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13687 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13688 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13689 " ' prfx=^$ac_symprfx"
13690 else
13691 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13694 # Check to see that the pipe works correctly.
13695 pipe_works=no
13697 rm -f conftest*
13698 cat > conftest.$ac_ext <<_LT_EOF
13699 #ifdef __cplusplus
13700 extern "C" {
13701 #endif
13702 char nm_test_var;
13703 void nm_test_func(void);
13704 void nm_test_func(void){}
13705 #ifdef __cplusplus
13707 #endif
13708 int main(){nm_test_var='a';nm_test_func();return(0);}
13709 _LT_EOF
13711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13712 (eval $ac_compile) 2>&5
13713 ac_status=$?
13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715 test $ac_status = 0; }; then
13716 # Now try to grab the symbols.
13717 nlist=conftest.nm
13718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13719 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13720 ac_status=$?
13721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13722 test $ac_status = 0; } && test -s "$nlist"; then
13723 # Try sorting and uniquifying the output.
13724 if sort "$nlist" | uniq > "$nlist"T; then
13725 mv -f "$nlist"T "$nlist"
13726 else
13727 rm -f "$nlist"T
13730 # Make sure that we snagged all the symbols we need.
13731 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13732 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13733 cat <<_LT_EOF > conftest.$ac_ext
13734 #ifdef __cplusplus
13735 extern "C" {
13736 #endif
13738 _LT_EOF
13739 # Now generate the symbol file.
13740 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13742 cat <<_LT_EOF >> conftest.$ac_ext
13744 /* The mapping between symbol names and symbols. */
13745 const struct {
13746 const char *name;
13747 void *address;
13749 lt__PROGRAM__LTX_preloaded_symbols[] =
13751 { "@PROGRAM@", (void *) 0 },
13752 _LT_EOF
13753 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13754 cat <<\_LT_EOF >> conftest.$ac_ext
13755 {0, (void *) 0}
13758 /* This works around a problem in FreeBSD linker */
13759 #ifdef FREEBSD_WORKAROUND
13760 static const void *lt_preloaded_setup() {
13761 return lt__PROGRAM__LTX_preloaded_symbols;
13763 #endif
13765 #ifdef __cplusplus
13767 #endif
13768 _LT_EOF
13769 # Now try linking the two files.
13770 mv conftest.$ac_objext conftstm.$ac_objext
13771 lt_save_LIBS="$LIBS"
13772 lt_save_CFLAGS="$CFLAGS"
13773 LIBS="conftstm.$ac_objext"
13774 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13776 (eval $ac_link) 2>&5
13777 ac_status=$?
13778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13779 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13780 pipe_works=yes
13782 LIBS="$lt_save_LIBS"
13783 CFLAGS="$lt_save_CFLAGS"
13784 else
13785 echo "cannot find nm_test_func in $nlist" >&5
13787 else
13788 echo "cannot find nm_test_var in $nlist" >&5
13790 else
13791 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13793 else
13794 echo "$progname: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13797 rm -rf conftest* conftst*
13799 # Do not use the global_symbol_pipe unless it works.
13800 if test "$pipe_works" = yes; then
13801 break
13802 else
13803 lt_cv_sys_global_symbol_pipe=
13805 done
13809 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13810 lt_cv_sys_global_symbol_to_cdecl=
13812 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13814 $as_echo "failed" >&6; }
13815 else
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13817 $as_echo "ok" >&6; }
13841 # Check whether --enable-libtool-lock was given.
13842 if test "${enable_libtool_lock+set}" = set; then :
13843 enableval=$enable_libtool_lock;
13846 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13848 # Some flags need to be propagated to the compiler or linker for good
13849 # libtool support.
13850 case $host in
13851 ia64-*-hpux*)
13852 # Find out which ABI we are using.
13853 echo 'int i;' > conftest.$ac_ext
13854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13855 (eval $ac_compile) 2>&5
13856 ac_status=$?
13857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13858 test $ac_status = 0; }; then
13859 case `/usr/bin/file conftest.$ac_objext` in
13860 *ELF-32*)
13861 HPUX_IA64_MODE="32"
13863 *ELF-64*)
13864 HPUX_IA64_MODE="64"
13866 esac
13868 rm -rf conftest*
13870 *-*-irix6*)
13871 # Find out which ABI we are using.
13872 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13874 (eval $ac_compile) 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; then
13878 if test "$lt_cv_prog_gnu_ld" = yes; then
13879 case `/usr/bin/file conftest.$ac_objext` in
13880 *32-bit*)
13881 LD="${LD-ld} -melf32bsmip"
13883 *N32*)
13884 LD="${LD-ld} -melf32bmipn32"
13886 *64-bit*)
13887 LD="${LD-ld} -melf64bmip"
13889 esac
13890 else
13891 case `/usr/bin/file conftest.$ac_objext` in
13892 *32-bit*)
13893 LD="${LD-ld} -32"
13895 *N32*)
13896 LD="${LD-ld} -n32"
13898 *64-bit*)
13899 LD="${LD-ld} -64"
13901 esac
13904 rm -rf conftest*
13907 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13908 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13909 # Find out which ABI we are using.
13910 echo 'int i;' > conftest.$ac_ext
13911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13912 (eval $ac_compile) 2>&5
13913 ac_status=$?
13914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13915 test $ac_status = 0; }; then
13916 case `/usr/bin/file conftest.o` in
13917 *32-bit*)
13918 case $host in
13919 x86_64-*kfreebsd*-gnu)
13920 LD="${LD-ld} -m elf_i386_fbsd"
13922 x86_64-*linux*)
13923 case `/usr/bin/file conftest.o` in
13924 *x86-64*)
13925 LD="${LD-ld} -m elf32_x86_64"
13928 LD="${LD-ld} -m elf_i386"
13930 esac
13932 powerpc64le-*linux*)
13933 LD="${LD-ld} -m elf32lppclinux"
13935 powerpc64-*linux*)
13936 LD="${LD-ld} -m elf32ppclinux"
13938 s390x-*linux*)
13939 LD="${LD-ld} -m elf_s390"
13941 sparc64-*linux*)
13942 LD="${LD-ld} -m elf32_sparc"
13944 esac
13946 *64-bit*)
13947 case $host in
13948 x86_64-*kfreebsd*-gnu)
13949 LD="${LD-ld} -m elf_x86_64_fbsd"
13951 x86_64-*linux*)
13952 LD="${LD-ld} -m elf_x86_64"
13954 powerpcle-*linux*)
13955 LD="${LD-ld} -m elf64lppc"
13957 powerpc-*linux*)
13958 LD="${LD-ld} -m elf64ppc"
13960 s390*-*linux*|s390*-*tpf*)
13961 LD="${LD-ld} -m elf64_s390"
13963 sparc*-*linux*)
13964 LD="${LD-ld} -m elf64_sparc"
13966 esac
13968 esac
13970 rm -rf conftest*
13973 *-*-sco3.2v5*)
13974 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13975 SAVE_CFLAGS="$CFLAGS"
13976 CFLAGS="$CFLAGS -belf"
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13978 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13979 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13980 $as_echo_n "(cached) " >&6
13981 else
13982 ac_ext=c
13983 ac_cpp='$CPP $CPPFLAGS'
13984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13992 main ()
13996 return 0;
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 lt_cv_cc_needs_belf=yes
14001 else
14002 lt_cv_cc_needs_belf=no
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext conftest.$ac_ext
14006 ac_ext=c
14007 ac_cpp='$CPP $CPPFLAGS'
14008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14014 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14015 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14016 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14017 CFLAGS="$SAVE_CFLAGS"
14020 sparc*-*solaris*)
14021 # Find out which ABI we are using.
14022 echo 'int i;' > conftest.$ac_ext
14023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14024 (eval $ac_compile) 2>&5
14025 ac_status=$?
14026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14027 test $ac_status = 0; }; then
14028 case `/usr/bin/file conftest.o` in
14029 *64-bit*)
14030 case $lt_cv_prog_gnu_ld in
14031 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14033 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14034 LD="${LD-ld} -64"
14037 esac
14039 esac
14041 rm -rf conftest*
14043 esac
14045 need_locks="$enable_libtool_lock"
14048 case $host_os in
14049 rhapsody* | darwin*)
14050 if test -n "$ac_tool_prefix"; then
14051 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14052 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14054 $as_echo_n "checking for $ac_word... " >&6; }
14055 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14056 $as_echo_n "(cached) " >&6
14057 else
14058 if test -n "$DSYMUTIL"; then
14059 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14060 else
14061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14062 for as_dir in $PATH
14064 IFS=$as_save_IFS
14065 test -z "$as_dir" && as_dir=.
14066 for ac_exec_ext in '' $ac_executable_extensions; do
14067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14068 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14070 break 2
14072 done
14073 done
14074 IFS=$as_save_IFS
14078 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14079 if test -n "$DSYMUTIL"; then
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14081 $as_echo "$DSYMUTIL" >&6; }
14082 else
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14089 if test -z "$ac_cv_prog_DSYMUTIL"; then
14090 ac_ct_DSYMUTIL=$DSYMUTIL
14091 # Extract the first word of "dsymutil", so it can be a program name with args.
14092 set dummy dsymutil; ac_word=$2
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094 $as_echo_n "checking for $ac_word... " >&6; }
14095 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 if test -n "$ac_ct_DSYMUTIL"; then
14099 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14100 else
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102 for as_dir in $PATH
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14108 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14112 done
14113 done
14114 IFS=$as_save_IFS
14118 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14119 if test -n "$ac_ct_DSYMUTIL"; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14121 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14122 else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14127 if test "x$ac_ct_DSYMUTIL" = x; then
14128 DSYMUTIL=":"
14129 else
14130 case $cross_compiling:$ac_tool_warned in
14131 yes:)
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14134 ac_tool_warned=yes ;;
14135 esac
14136 DSYMUTIL=$ac_ct_DSYMUTIL
14138 else
14139 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14142 if test -n "$ac_tool_prefix"; then
14143 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14144 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14146 $as_echo_n "checking for $ac_word... " >&6; }
14147 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14148 $as_echo_n "(cached) " >&6
14149 else
14150 if test -n "$NMEDIT"; then
14151 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14152 else
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14156 IFS=$as_save_IFS
14157 test -z "$as_dir" && as_dir=.
14158 for ac_exec_ext in '' $ac_executable_extensions; do
14159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14160 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14162 break 2
14164 done
14165 done
14166 IFS=$as_save_IFS
14170 NMEDIT=$ac_cv_prog_NMEDIT
14171 if test -n "$NMEDIT"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14173 $as_echo "$NMEDIT" >&6; }
14174 else
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14176 $as_echo "no" >&6; }
14181 if test -z "$ac_cv_prog_NMEDIT"; then
14182 ac_ct_NMEDIT=$NMEDIT
14183 # Extract the first word of "nmedit", so it can be a program name with args.
14184 set dummy nmedit; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186 $as_echo_n "checking for $ac_word... " >&6; }
14187 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14188 $as_echo_n "(cached) " >&6
14189 else
14190 if test -n "$ac_ct_NMEDIT"; then
14191 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14192 else
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
14199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14200 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14202 break 2
14204 done
14205 done
14206 IFS=$as_save_IFS
14210 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14211 if test -n "$ac_ct_NMEDIT"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14213 $as_echo "$ac_ct_NMEDIT" >&6; }
14214 else
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14219 if test "x$ac_ct_NMEDIT" = x; then
14220 NMEDIT=":"
14221 else
14222 case $cross_compiling:$ac_tool_warned in
14223 yes:)
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14226 ac_tool_warned=yes ;;
14227 esac
14228 NMEDIT=$ac_ct_NMEDIT
14230 else
14231 NMEDIT="$ac_cv_prog_NMEDIT"
14234 if test -n "$ac_tool_prefix"; then
14235 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14236 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14238 $as_echo_n "checking for $ac_word... " >&6; }
14239 if test "${ac_cv_prog_LIPO+set}" = set; then :
14240 $as_echo_n "(cached) " >&6
14241 else
14242 if test -n "$LIPO"; then
14243 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14244 else
14245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14246 for as_dir in $PATH
14248 IFS=$as_save_IFS
14249 test -z "$as_dir" && as_dir=.
14250 for ac_exec_ext in '' $ac_executable_extensions; do
14251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14252 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14254 break 2
14256 done
14257 done
14258 IFS=$as_save_IFS
14262 LIPO=$ac_cv_prog_LIPO
14263 if test -n "$LIPO"; then
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14265 $as_echo "$LIPO" >&6; }
14266 else
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14273 if test -z "$ac_cv_prog_LIPO"; then
14274 ac_ct_LIPO=$LIPO
14275 # Extract the first word of "lipo", so it can be a program name with args.
14276 set dummy lipo; ac_word=$2
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14278 $as_echo_n "checking for $ac_word... " >&6; }
14279 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14282 if test -n "$ac_ct_LIPO"; then
14283 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14284 else
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14288 IFS=$as_save_IFS
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14292 ac_cv_prog_ac_ct_LIPO="lipo"
14293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14294 break 2
14296 done
14297 done
14298 IFS=$as_save_IFS
14302 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14303 if test -n "$ac_ct_LIPO"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14305 $as_echo "$ac_ct_LIPO" >&6; }
14306 else
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14311 if test "x$ac_ct_LIPO" = x; then
14312 LIPO=":"
14313 else
14314 case $cross_compiling:$ac_tool_warned in
14315 yes:)
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14318 ac_tool_warned=yes ;;
14319 esac
14320 LIPO=$ac_ct_LIPO
14322 else
14323 LIPO="$ac_cv_prog_LIPO"
14326 if test -n "$ac_tool_prefix"; then
14327 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14328 set dummy ${ac_tool_prefix}otool; ac_word=$2
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14330 $as_echo_n "checking for $ac_word... " >&6; }
14331 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14332 $as_echo_n "(cached) " >&6
14333 else
14334 if test -n "$OTOOL"; then
14335 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14336 else
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338 for as_dir in $PATH
14340 IFS=$as_save_IFS
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14344 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 break 2
14348 done
14349 done
14350 IFS=$as_save_IFS
14354 OTOOL=$ac_cv_prog_OTOOL
14355 if test -n "$OTOOL"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14357 $as_echo "$OTOOL" >&6; }
14358 else
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14360 $as_echo "no" >&6; }
14365 if test -z "$ac_cv_prog_OTOOL"; then
14366 ac_ct_OTOOL=$OTOOL
14367 # Extract the first word of "otool", so it can be a program name with args.
14368 set dummy otool; ac_word=$2
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14370 $as_echo_n "checking for $ac_word... " >&6; }
14371 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14373 else
14374 if test -n "$ac_ct_OTOOL"; then
14375 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14376 else
14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14380 IFS=$as_save_IFS
14381 test -z "$as_dir" && as_dir=.
14382 for ac_exec_ext in '' $ac_executable_extensions; do
14383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14384 ac_cv_prog_ac_ct_OTOOL="otool"
14385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14386 break 2
14388 done
14389 done
14390 IFS=$as_save_IFS
14394 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14395 if test -n "$ac_ct_OTOOL"; then
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14397 $as_echo "$ac_ct_OTOOL" >&6; }
14398 else
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14400 $as_echo "no" >&6; }
14403 if test "x$ac_ct_OTOOL" = x; then
14404 OTOOL=":"
14405 else
14406 case $cross_compiling:$ac_tool_warned in
14407 yes:)
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14410 ac_tool_warned=yes ;;
14411 esac
14412 OTOOL=$ac_ct_OTOOL
14414 else
14415 OTOOL="$ac_cv_prog_OTOOL"
14418 if test -n "$ac_tool_prefix"; then
14419 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14420 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14422 $as_echo_n "checking for $ac_word... " >&6; }
14423 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14425 else
14426 if test -n "$OTOOL64"; then
14427 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14428 else
14429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430 for as_dir in $PATH
14432 IFS=$as_save_IFS
14433 test -z "$as_dir" && as_dir=.
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14436 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14438 break 2
14440 done
14441 done
14442 IFS=$as_save_IFS
14446 OTOOL64=$ac_cv_prog_OTOOL64
14447 if test -n "$OTOOL64"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14449 $as_echo "$OTOOL64" >&6; }
14450 else
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452 $as_echo "no" >&6; }
14457 if test -z "$ac_cv_prog_OTOOL64"; then
14458 ac_ct_OTOOL64=$OTOOL64
14459 # Extract the first word of "otool64", so it can be a program name with args.
14460 set dummy otool64; ac_word=$2
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14462 $as_echo_n "checking for $ac_word... " >&6; }
14463 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14465 else
14466 if test -n "$ac_ct_OTOOL64"; then
14467 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14468 else
14469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14470 for as_dir in $PATH
14472 IFS=$as_save_IFS
14473 test -z "$as_dir" && as_dir=.
14474 for ac_exec_ext in '' $ac_executable_extensions; do
14475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14476 ac_cv_prog_ac_ct_OTOOL64="otool64"
14477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14478 break 2
14480 done
14481 done
14482 IFS=$as_save_IFS
14486 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14487 if test -n "$ac_ct_OTOOL64"; then
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14489 $as_echo "$ac_ct_OTOOL64" >&6; }
14490 else
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14492 $as_echo "no" >&6; }
14495 if test "x$ac_ct_OTOOL64" = x; then
14496 OTOOL64=":"
14497 else
14498 case $cross_compiling:$ac_tool_warned in
14499 yes:)
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14502 ac_tool_warned=yes ;;
14503 esac
14504 OTOOL64=$ac_ct_OTOOL64
14506 else
14507 OTOOL64="$ac_cv_prog_OTOOL64"
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14537 $as_echo_n "checking for -single_module linker flag... " >&6; }
14538 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 lt_cv_apple_cc_single_mod=no
14542 if test -z "${LT_MULTI_MODULE}"; then
14543 # By default we will add the -single_module flag. You can override
14544 # by either setting the environment variable LT_MULTI_MODULE
14545 # non-empty at configure time, or by adding -multi_module to the
14546 # link flags.
14547 rm -rf libconftest.dylib*
14548 echo "int foo(void){return 1;}" > conftest.c
14549 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14550 -dynamiclib -Wl,-single_module conftest.c" >&5
14551 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14552 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14553 _lt_result=$?
14554 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14555 lt_cv_apple_cc_single_mod=yes
14556 else
14557 cat conftest.err >&5
14559 rm -rf libconftest.dylib*
14560 rm -f conftest.*
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14564 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14566 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14567 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14568 $as_echo_n "(cached) " >&6
14569 else
14570 lt_cv_ld_exported_symbols_list=no
14571 save_LDFLAGS=$LDFLAGS
14572 echo "_main" > conftest.sym
14573 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14578 main ()
14582 return 0;
14584 _ACEOF
14585 if ac_fn_c_try_link "$LINENO"; then :
14586 lt_cv_ld_exported_symbols_list=yes
14587 else
14588 lt_cv_ld_exported_symbols_list=no
14590 rm -f core conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LDFLAGS="$save_LDFLAGS"
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14596 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14598 $as_echo_n "checking for -force_load linker flag... " >&6; }
14599 if test "${lt_cv_ld_force_load+set}" = set; then :
14600 $as_echo_n "(cached) " >&6
14601 else
14602 lt_cv_ld_force_load=no
14603 cat > conftest.c << _LT_EOF
14604 int forced_loaded() { return 2;}
14605 _LT_EOF
14606 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14607 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14608 echo "$AR cru libconftest.a conftest.o" >&5
14609 $AR cru libconftest.a conftest.o 2>&5
14610 cat > conftest.c << _LT_EOF
14611 int main() { return 0;}
14612 _LT_EOF
14613 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14614 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14615 _lt_result=$?
14616 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14617 lt_cv_ld_force_load=yes
14618 else
14619 cat conftest.err >&5
14621 rm -f conftest.err libconftest.a conftest conftest.c
14622 rm -rf conftest.dSYM
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14626 $as_echo "$lt_cv_ld_force_load" >&6; }
14627 case $host_os in
14628 rhapsody* | darwin1.[012])
14629 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14630 darwin1.*)
14631 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14632 darwin*) # darwin 5.x on
14633 # if running on 10.5 or later, the deployment target defaults
14634 # to the OS version, if on x86, and 10.4, the deployment
14635 # target defaults to 10.4. Don't you love it?
14636 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14637 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14638 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14639 10.[012][,.]*)
14640 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14641 10.*)
14642 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14643 esac
14645 esac
14646 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14647 _lt_dar_single_mod='$single_module'
14649 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14650 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14651 else
14652 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14654 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14655 _lt_dsymutil='~$DSYMUTIL $lib || :'
14656 else
14657 _lt_dsymutil=
14660 esac
14662 for ac_header in dlfcn.h
14663 do :
14664 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14665 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14666 cat >>confdefs.h <<_ACEOF
14667 #define HAVE_DLFCN_H 1
14668 _ACEOF
14671 done
14677 # Set options
14681 enable_dlopen=no
14684 enable_win32_dll=no
14687 # Check whether --enable-shared was given.
14688 if test "${enable_shared+set}" = set; then :
14689 enableval=$enable_shared; p=${PACKAGE-default}
14690 case $enableval in
14691 yes) enable_shared=yes ;;
14692 no) enable_shared=no ;;
14694 enable_shared=no
14695 # Look at the argument we got. We use all the common list separators.
14696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14697 for pkg in $enableval; do
14698 IFS="$lt_save_ifs"
14699 if test "X$pkg" = "X$p"; then
14700 enable_shared=yes
14702 done
14703 IFS="$lt_save_ifs"
14705 esac
14706 else
14707 enable_shared=yes
14718 # Check whether --enable-static was given.
14719 if test "${enable_static+set}" = set; then :
14720 enableval=$enable_static; p=${PACKAGE-default}
14721 case $enableval in
14722 yes) enable_static=yes ;;
14723 no) enable_static=no ;;
14725 enable_static=no
14726 # Look at the argument we got. We use all the common list separators.
14727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14728 for pkg in $enableval; do
14729 IFS="$lt_save_ifs"
14730 if test "X$pkg" = "X$p"; then
14731 enable_static=yes
14733 done
14734 IFS="$lt_save_ifs"
14736 esac
14737 else
14738 enable_static=yes
14750 # Check whether --with-pic was given.
14751 if test "${with_pic+set}" = set; then :
14752 withval=$with_pic; pic_mode="$withval"
14753 else
14754 pic_mode=default
14758 test -z "$pic_mode" && pic_mode=default
14766 # Check whether --enable-fast-install was given.
14767 if test "${enable_fast_install+set}" = set; then :
14768 enableval=$enable_fast_install; p=${PACKAGE-default}
14769 case $enableval in
14770 yes) enable_fast_install=yes ;;
14771 no) enable_fast_install=no ;;
14773 enable_fast_install=no
14774 # Look at the argument we got. We use all the common list separators.
14775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14776 for pkg in $enableval; do
14777 IFS="$lt_save_ifs"
14778 if test "X$pkg" = "X$p"; then
14779 enable_fast_install=yes
14781 done
14782 IFS="$lt_save_ifs"
14784 esac
14785 else
14786 enable_fast_install=yes
14799 # This can be used to rebuild libtool when needed
14800 LIBTOOL_DEPS="$ltmain"
14802 # Always use our own libtool.
14803 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14830 test -z "$LN_S" && LN_S="ln -s"
14845 if test -n "${ZSH_VERSION+set}" ; then
14846 setopt NO_GLOB_SUBST
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14850 $as_echo_n "checking for objdir... " >&6; }
14851 if test "${lt_cv_objdir+set}" = set; then :
14852 $as_echo_n "(cached) " >&6
14853 else
14854 rm -f .libs 2>/dev/null
14855 mkdir .libs 2>/dev/null
14856 if test -d .libs; then
14857 lt_cv_objdir=.libs
14858 else
14859 # MS-DOS does not allow filenames that begin with a dot.
14860 lt_cv_objdir=_libs
14862 rmdir .libs 2>/dev/null
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14865 $as_echo "$lt_cv_objdir" >&6; }
14866 objdir=$lt_cv_objdir
14872 cat >>confdefs.h <<_ACEOF
14873 #define LT_OBJDIR "$lt_cv_objdir/"
14874 _ACEOF
14879 case $host_os in
14880 aix3*)
14881 # AIX sometimes has problems with the GCC collect2 program. For some
14882 # reason, if we set the COLLECT_NAMES environment variable, the problems
14883 # vanish in a puff of smoke.
14884 if test "X${COLLECT_NAMES+set}" != Xset; then
14885 COLLECT_NAMES=
14886 export COLLECT_NAMES
14889 esac
14891 # Global variables:
14892 ofile=libtool
14893 can_build_shared=yes
14895 # All known linkers require a `.a' archive for static linking (except MSVC,
14896 # which needs '.lib').
14897 libext=a
14899 with_gnu_ld="$lt_cv_prog_gnu_ld"
14901 old_CC="$CC"
14902 old_CFLAGS="$CFLAGS"
14904 # Set sane defaults for various variables
14905 test -z "$CC" && CC=cc
14906 test -z "$LTCC" && LTCC=$CC
14907 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14908 test -z "$LD" && LD=ld
14909 test -z "$ac_objext" && ac_objext=o
14911 for cc_temp in $compiler""; do
14912 case $cc_temp in
14913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14915 \-*) ;;
14916 *) break;;
14917 esac
14918 done
14919 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14922 # Only perform the check for file, if the check method requires it
14923 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14924 case $deplibs_check_method in
14925 file_magic*)
14926 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14928 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14929 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 case $MAGIC_CMD in
14933 [\\/*] | ?:[\\/]*)
14934 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14937 lt_save_MAGIC_CMD="$MAGIC_CMD"
14938 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14939 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14940 for ac_dir in $ac_dummy; do
14941 IFS="$lt_save_ifs"
14942 test -z "$ac_dir" && ac_dir=.
14943 if test -f $ac_dir/${ac_tool_prefix}file; then
14944 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14945 if test -n "$file_magic_test_file"; then
14946 case $deplibs_check_method in
14947 "file_magic "*)
14948 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14950 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14951 $EGREP "$file_magic_regex" > /dev/null; then
14953 else
14954 cat <<_LT_EOF 1>&2
14956 *** Warning: the command libtool uses to detect shared libraries,
14957 *** $file_magic_cmd, produces output that libtool cannot recognize.
14958 *** The result is that libtool may fail to recognize shared libraries
14959 *** as such. This will affect the creation of libtool libraries that
14960 *** depend on shared libraries, but programs linked with such libtool
14961 *** libraries will work regardless of this problem. Nevertheless, you
14962 *** may want to report the problem to your system manager and/or to
14963 *** bug-libtool@gnu.org
14965 _LT_EOF
14966 fi ;;
14967 esac
14969 break
14971 done
14972 IFS="$lt_save_ifs"
14973 MAGIC_CMD="$lt_save_MAGIC_CMD"
14975 esac
14978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14979 if test -n "$MAGIC_CMD"; then
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14981 $as_echo "$MAGIC_CMD" >&6; }
14982 else
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14984 $as_echo "no" >&6; }
14991 if test -z "$lt_cv_path_MAGIC_CMD"; then
14992 if test -n "$ac_tool_prefix"; then
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14994 $as_echo_n "checking for file... " >&6; }
14995 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14996 $as_echo_n "(cached) " >&6
14997 else
14998 case $MAGIC_CMD in
14999 [\\/*] | ?:[\\/]*)
15000 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15003 lt_save_MAGIC_CMD="$MAGIC_CMD"
15004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15005 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15006 for ac_dir in $ac_dummy; do
15007 IFS="$lt_save_ifs"
15008 test -z "$ac_dir" && ac_dir=.
15009 if test -f $ac_dir/file; then
15010 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15011 if test -n "$file_magic_test_file"; then
15012 case $deplibs_check_method in
15013 "file_magic "*)
15014 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15016 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15017 $EGREP "$file_magic_regex" > /dev/null; then
15019 else
15020 cat <<_LT_EOF 1>&2
15022 *** Warning: the command libtool uses to detect shared libraries,
15023 *** $file_magic_cmd, produces output that libtool cannot recognize.
15024 *** The result is that libtool may fail to recognize shared libraries
15025 *** as such. This will affect the creation of libtool libraries that
15026 *** depend on shared libraries, but programs linked with such libtool
15027 *** libraries will work regardless of this problem. Nevertheless, you
15028 *** may want to report the problem to your system manager and/or to
15029 *** bug-libtool@gnu.org
15031 _LT_EOF
15032 fi ;;
15033 esac
15035 break
15037 done
15038 IFS="$lt_save_ifs"
15039 MAGIC_CMD="$lt_save_MAGIC_CMD"
15041 esac
15044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15045 if test -n "$MAGIC_CMD"; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15047 $as_echo "$MAGIC_CMD" >&6; }
15048 else
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15050 $as_echo "no" >&6; }
15054 else
15055 MAGIC_CMD=:
15061 esac
15063 # Use C for the default configuration in the libtool script
15065 lt_save_CC="$CC"
15066 ac_ext=c
15067 ac_cpp='$CPP $CPPFLAGS'
15068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15073 # Source file extension for C test sources.
15074 ac_ext=c
15076 # Object file extension for compiled C test sources.
15077 objext=o
15078 objext=$objext
15080 # Code to be used in simple compile tests
15081 lt_simple_compile_test_code="int some_variable = 0;"
15083 # Code to be used in simple link tests
15084 lt_simple_link_test_code='int main(){return(0);}'
15092 # If no C compiler was specified, use CC.
15093 LTCC=${LTCC-"$CC"}
15095 # If no C compiler flags were specified, use CFLAGS.
15096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15098 # Allow CC to be a program name with arguments.
15099 compiler=$CC
15101 # Save the default compiler, since it gets overwritten when the other
15102 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15103 compiler_DEFAULT=$CC
15105 # save warnings/boilerplate of simple test code
15106 ac_outfile=conftest.$ac_objext
15107 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15108 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15109 _lt_compiler_boilerplate=`cat conftest.err`
15110 $RM conftest*
15112 ac_outfile=conftest.$ac_objext
15113 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15114 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15115 _lt_linker_boilerplate=`cat conftest.err`
15116 $RM -r conftest*
15119 ## CAVEAT EMPTOR:
15120 ## There is no encapsulation within the following macros, do not change
15121 ## the running order or otherwise move them around unless you know exactly
15122 ## what you are doing...
15123 if test -n "$compiler"; then
15125 lt_prog_compiler_no_builtin_flag=
15127 if test "$GCC" = yes; then
15128 case $cc_basename in
15129 nvcc*)
15130 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15132 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15133 esac
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15136 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15137 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15138 $as_echo_n "(cached) " >&6
15139 else
15140 lt_cv_prog_compiler_rtti_exceptions=no
15141 ac_outfile=conftest.$ac_objext
15142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15143 lt_compiler_flag="-fno-rtti -fno-exceptions"
15144 # Insert the option either (1) after the last *FLAGS variable, or
15145 # (2) before a word containing "conftest.", or (3) at the end.
15146 # Note that $ac_compile itself does not contain backslashes and begins
15147 # with a dollar sign (not a hyphen), so the echo should work correctly.
15148 # The option is referenced via a variable to avoid confusing sed.
15149 lt_compile=`echo "$ac_compile" | $SED \
15150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15152 -e 's:$: $lt_compiler_flag:'`
15153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15154 (eval "$lt_compile" 2>conftest.err)
15155 ac_status=$?
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 if (exit $ac_status) && test -s "$ac_outfile"; then
15159 # The compiler can only warn and ignore the option if not recognized
15160 # So say no if there are warnings other than the usual output.
15161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15163 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15164 lt_cv_prog_compiler_rtti_exceptions=yes
15167 $RM conftest*
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15171 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15173 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15174 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15175 else
15186 lt_prog_compiler_wl=
15187 lt_prog_compiler_pic=
15188 lt_prog_compiler_static=
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15191 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15193 if test "$GCC" = yes; then
15194 lt_prog_compiler_wl='-Wl,'
15195 lt_prog_compiler_static='-static'
15197 case $host_os in
15198 aix*)
15199 # All AIX code is PIC.
15200 if test "$host_cpu" = ia64; then
15201 # AIX 5 now supports IA64 processor
15202 lt_prog_compiler_static='-Bstatic'
15204 lt_prog_compiler_pic='-fPIC'
15207 amigaos*)
15208 case $host_cpu in
15209 powerpc)
15210 # see comment about AmigaOS4 .so support
15211 lt_prog_compiler_pic='-fPIC'
15213 m68k)
15214 # FIXME: we need at least 68020 code to build shared libraries, but
15215 # adding the `-m68020' flag to GCC prevents building anything better,
15216 # like `-m68040'.
15217 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15219 esac
15222 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15223 # PIC is the default for these OSes.
15226 mingw* | cygwin* | pw32* | os2* | cegcc*)
15227 # This hack is so that the source file can tell whether it is being
15228 # built for inclusion in a dll (and should export symbols for example).
15229 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15230 # (--disable-auto-import) libraries
15231 lt_prog_compiler_pic='-DDLL_EXPORT'
15234 darwin* | rhapsody*)
15235 # PIC is the default on this platform
15236 # Common symbols not allowed in MH_DYLIB files
15237 lt_prog_compiler_pic='-fno-common'
15240 haiku*)
15241 # PIC is the default for Haiku.
15242 # The "-static" flag exists, but is broken.
15243 lt_prog_compiler_static=
15246 hpux*)
15247 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15248 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15249 # sets the default TLS model and affects inlining.
15250 case $host_cpu in
15251 hppa*64*)
15252 # +Z the default
15255 lt_prog_compiler_pic='-fPIC'
15257 esac
15260 interix[3-9]*)
15261 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15262 # Instead, we relocate shared libraries at runtime.
15265 msdosdjgpp*)
15266 # Just because we use GCC doesn't mean we suddenly get shared libraries
15267 # on systems that don't support them.
15268 lt_prog_compiler_can_build_shared=no
15269 enable_shared=no
15272 *nto* | *qnx*)
15273 # QNX uses GNU C++, but need to define -shared option too, otherwise
15274 # it will coredump.
15275 lt_prog_compiler_pic='-fPIC -shared'
15278 sysv4*MP*)
15279 if test -d /usr/nec; then
15280 lt_prog_compiler_pic=-Kconform_pic
15285 lt_prog_compiler_pic='-fPIC'
15287 esac
15289 case $cc_basename in
15290 nvcc*) # Cuda Compiler Driver 2.2
15291 lt_prog_compiler_wl='-Xlinker '
15292 lt_prog_compiler_pic='-Xcompiler -fPIC'
15294 esac
15295 else
15296 # PORTME Check for flag to pass linker flags through the system compiler.
15297 case $host_os in
15298 aix*)
15299 lt_prog_compiler_wl='-Wl,'
15300 if test "$host_cpu" = ia64; then
15301 # AIX 5 now supports IA64 processor
15302 lt_prog_compiler_static='-Bstatic'
15303 else
15304 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15308 mingw* | cygwin* | pw32* | os2* | cegcc*)
15309 # This hack is so that the source file can tell whether it is being
15310 # built for inclusion in a dll (and should export symbols for example).
15311 lt_prog_compiler_pic='-DDLL_EXPORT'
15314 hpux9* | hpux10* | hpux11*)
15315 lt_prog_compiler_wl='-Wl,'
15316 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15317 # not for PA HP-UX.
15318 case $host_cpu in
15319 hppa*64*|ia64*)
15320 # +Z the default
15323 lt_prog_compiler_pic='+Z'
15325 esac
15326 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15327 lt_prog_compiler_static='${wl}-a ${wl}archive'
15330 irix5* | irix6* | nonstopux*)
15331 lt_prog_compiler_wl='-Wl,'
15332 # PIC (with -KPIC) is the default.
15333 lt_prog_compiler_static='-non_shared'
15336 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15337 case $cc_basename in
15338 # old Intel for x86_64 which still supported -KPIC.
15339 ecc*)
15340 lt_prog_compiler_wl='-Wl,'
15341 lt_prog_compiler_pic='-KPIC'
15342 lt_prog_compiler_static='-static'
15344 # icc used to be incompatible with GCC.
15345 # ICC 10 doesn't accept -KPIC any more.
15346 icc* | ifort*)
15347 lt_prog_compiler_wl='-Wl,'
15348 lt_prog_compiler_pic='-fPIC'
15349 lt_prog_compiler_static='-static'
15351 # Lahey Fortran 8.1.
15352 lf95*)
15353 lt_prog_compiler_wl='-Wl,'
15354 lt_prog_compiler_pic='--shared'
15355 lt_prog_compiler_static='--static'
15357 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15358 # Portland Group compilers (*not* the Pentium gcc compiler,
15359 # which looks to be a dead project)
15360 lt_prog_compiler_wl='-Wl,'
15361 lt_prog_compiler_pic='-fpic'
15362 lt_prog_compiler_static='-Bstatic'
15364 ccc*)
15365 lt_prog_compiler_wl='-Wl,'
15366 # All Alpha code is PIC.
15367 lt_prog_compiler_static='-non_shared'
15369 xl* | bgxl* | bgf* | mpixl*)
15370 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15371 lt_prog_compiler_wl='-Wl,'
15372 lt_prog_compiler_pic='-qpic'
15373 lt_prog_compiler_static='-qstaticlink'
15376 case `$CC -V 2>&1 | sed 5q` in
15377 *Sun\ F* | *Sun*Fortran*)
15378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15379 lt_prog_compiler_pic='-KPIC'
15380 lt_prog_compiler_static='-Bstatic'
15381 lt_prog_compiler_wl=''
15383 *Sun\ C*)
15384 # Sun C 5.9
15385 lt_prog_compiler_pic='-KPIC'
15386 lt_prog_compiler_static='-Bstatic'
15387 lt_prog_compiler_wl='-Wl,'
15389 esac
15391 esac
15394 newsos6)
15395 lt_prog_compiler_pic='-KPIC'
15396 lt_prog_compiler_static='-Bstatic'
15399 *nto* | *qnx*)
15400 # QNX uses GNU C++, but need to define -shared option too, otherwise
15401 # it will coredump.
15402 lt_prog_compiler_pic='-fPIC -shared'
15405 osf3* | osf4* | osf5*)
15406 lt_prog_compiler_wl='-Wl,'
15407 # All OSF/1 code is PIC.
15408 lt_prog_compiler_static='-non_shared'
15411 rdos*)
15412 lt_prog_compiler_static='-non_shared'
15415 solaris*)
15416 lt_prog_compiler_pic='-KPIC'
15417 lt_prog_compiler_static='-Bstatic'
15418 case $cc_basename in
15419 f77* | f90* | f95*)
15420 lt_prog_compiler_wl='-Qoption ld ';;
15422 lt_prog_compiler_wl='-Wl,';;
15423 esac
15426 sunos4*)
15427 lt_prog_compiler_wl='-Qoption ld '
15428 lt_prog_compiler_pic='-PIC'
15429 lt_prog_compiler_static='-Bstatic'
15432 sysv4 | sysv4.2uw2* | sysv4.3*)
15433 lt_prog_compiler_wl='-Wl,'
15434 lt_prog_compiler_pic='-KPIC'
15435 lt_prog_compiler_static='-Bstatic'
15438 sysv4*MP*)
15439 if test -d /usr/nec ;then
15440 lt_prog_compiler_pic='-Kconform_pic'
15441 lt_prog_compiler_static='-Bstatic'
15445 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15446 lt_prog_compiler_wl='-Wl,'
15447 lt_prog_compiler_pic='-KPIC'
15448 lt_prog_compiler_static='-Bstatic'
15451 unicos*)
15452 lt_prog_compiler_wl='-Wl,'
15453 lt_prog_compiler_can_build_shared=no
15456 uts4*)
15457 lt_prog_compiler_pic='-pic'
15458 lt_prog_compiler_static='-Bstatic'
15462 lt_prog_compiler_can_build_shared=no
15464 esac
15467 case $host_os in
15468 # For platforms which do not support PIC, -DPIC is meaningless:
15469 *djgpp*)
15470 lt_prog_compiler_pic=
15473 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15475 esac
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15477 $as_echo "$lt_prog_compiler_pic" >&6; }
15485 # Check to make sure the PIC flag actually works.
15487 if test -n "$lt_prog_compiler_pic"; then
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15489 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15490 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15491 $as_echo_n "(cached) " >&6
15492 else
15493 lt_cv_prog_compiler_pic_works=no
15494 ac_outfile=conftest.$ac_objext
15495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15496 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15497 # Insert the option either (1) after the last *FLAGS variable, or
15498 # (2) before a word containing "conftest.", or (3) at the end.
15499 # Note that $ac_compile itself does not contain backslashes and begins
15500 # with a dollar sign (not a hyphen), so the echo should work correctly.
15501 # The option is referenced via a variable to avoid confusing sed.
15502 lt_compile=`echo "$ac_compile" | $SED \
15503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505 -e 's:$: $lt_compiler_flag:'`
15506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15507 (eval "$lt_compile" 2>conftest.err)
15508 ac_status=$?
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 if (exit $ac_status) && test -s "$ac_outfile"; then
15512 # The compiler can only warn and ignore the option if not recognized
15513 # So say no if there are warnings other than the usual output.
15514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15517 lt_cv_prog_compiler_pic_works=yes
15520 $RM conftest*
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15524 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15526 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15527 case $lt_prog_compiler_pic in
15528 "" | " "*) ;;
15529 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15530 esac
15531 else
15532 lt_prog_compiler_pic=
15533 lt_prog_compiler_can_build_shared=no
15544 # Check to make sure the static flag actually works.
15546 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15548 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15549 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15550 $as_echo_n "(cached) " >&6
15551 else
15552 lt_cv_prog_compiler_static_works=no
15553 save_LDFLAGS="$LDFLAGS"
15554 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15555 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15556 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15557 # The linker can only warn and ignore the option if not recognized
15558 # So say no if there are warnings
15559 if test -s conftest.err; then
15560 # Append any errors to the config.log.
15561 cat conftest.err 1>&5
15562 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15564 if diff conftest.exp conftest.er2 >/dev/null; then
15565 lt_cv_prog_compiler_static_works=yes
15567 else
15568 lt_cv_prog_compiler_static_works=yes
15571 $RM -r conftest*
15572 LDFLAGS="$save_LDFLAGS"
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15576 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15578 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15580 else
15581 lt_prog_compiler_static=
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15591 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15592 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15593 $as_echo_n "(cached) " >&6
15594 else
15595 lt_cv_prog_compiler_c_o=no
15596 $RM -r conftest 2>/dev/null
15597 mkdir conftest
15598 cd conftest
15599 mkdir out
15600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15602 lt_compiler_flag="-o out/conftest2.$ac_objext"
15603 # Insert the option either (1) after the last *FLAGS variable, or
15604 # (2) before a word containing "conftest.", or (3) at the end.
15605 # Note that $ac_compile itself does not contain backslashes and begins
15606 # with a dollar sign (not a hyphen), so the echo should work correctly.
15607 lt_compile=`echo "$ac_compile" | $SED \
15608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15610 -e 's:$: $lt_compiler_flag:'`
15611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15612 (eval "$lt_compile" 2>out/conftest.err)
15613 ac_status=$?
15614 cat out/conftest.err >&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15617 then
15618 # The compiler can only warn and ignore the option if not recognized
15619 # So say no if there are warnings
15620 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15621 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15622 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15623 lt_cv_prog_compiler_c_o=yes
15626 chmod u+w . 2>&5
15627 $RM conftest*
15628 # SGI C++ compiler will create directory out/ii_files/ for
15629 # template instantiation
15630 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15631 $RM out/* && rmdir out
15632 cd ..
15633 $RM -r conftest
15634 $RM conftest*
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15638 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15646 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15648 $as_echo_n "(cached) " >&6
15649 else
15650 lt_cv_prog_compiler_c_o=no
15651 $RM -r conftest 2>/dev/null
15652 mkdir conftest
15653 cd conftest
15654 mkdir out
15655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15657 lt_compiler_flag="-o out/conftest2.$ac_objext"
15658 # Insert the option either (1) after the last *FLAGS variable, or
15659 # (2) before a word containing "conftest.", or (3) at the end.
15660 # Note that $ac_compile itself does not contain backslashes and begins
15661 # with a dollar sign (not a hyphen), so the echo should work correctly.
15662 lt_compile=`echo "$ac_compile" | $SED \
15663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15665 -e 's:$: $lt_compiler_flag:'`
15666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15667 (eval "$lt_compile" 2>out/conftest.err)
15668 ac_status=$?
15669 cat out/conftest.err >&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15672 then
15673 # The compiler can only warn and ignore the option if not recognized
15674 # So say no if there are warnings
15675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15678 lt_cv_prog_compiler_c_o=yes
15681 chmod u+w . 2>&5
15682 $RM conftest*
15683 # SGI C++ compiler will create directory out/ii_files/ for
15684 # template instantiation
15685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15686 $RM out/* && rmdir out
15687 cd ..
15688 $RM -r conftest
15689 $RM conftest*
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15693 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15698 hard_links="nottested"
15699 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15700 # do not overwrite the value of need_locks provided by the user
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15702 $as_echo_n "checking if we can lock with hard links... " >&6; }
15703 hard_links=yes
15704 $RM conftest*
15705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15706 touch conftest.a
15707 ln conftest.a conftest.b 2>&5 || hard_links=no
15708 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15710 $as_echo "$hard_links" >&6; }
15711 if test "$hard_links" = no; then
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15713 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15714 need_locks=warn
15716 else
15717 need_locks=no
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15726 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15728 runpath_var=
15729 allow_undefined_flag=
15730 always_export_symbols=no
15731 archive_cmds=
15732 archive_expsym_cmds=
15733 compiler_needs_object=no
15734 enable_shared_with_static_runtimes=no
15735 export_dynamic_flag_spec=
15736 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15737 hardcode_automatic=no
15738 hardcode_direct=no
15739 hardcode_direct_absolute=no
15740 hardcode_libdir_flag_spec=
15741 hardcode_libdir_flag_spec_ld=
15742 hardcode_libdir_separator=
15743 hardcode_minus_L=no
15744 hardcode_shlibpath_var=unsupported
15745 inherit_rpath=no
15746 link_all_deplibs=unknown
15747 module_cmds=
15748 module_expsym_cmds=
15749 old_archive_from_new_cmds=
15750 old_archive_from_expsyms_cmds=
15751 thread_safe_flag_spec=
15752 whole_archive_flag_spec=
15753 # include_expsyms should be a list of space-separated symbols to be *always*
15754 # included in the symbol list
15755 include_expsyms=
15756 # exclude_expsyms can be an extended regexp of symbols to exclude
15757 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15758 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15759 # as well as any symbol that contains `d'.
15760 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15761 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15762 # platforms (ab)use it in PIC code, but their linkers get confused if
15763 # the symbol is explicitly referenced. Since portable code cannot
15764 # rely on this symbol name, it's probably fine to never include it in
15765 # preloaded symbol tables.
15766 # Exclude shared library initialization/finalization symbols.
15767 extract_expsyms_cmds=
15769 case $host_os in
15770 cygwin* | mingw* | pw32* | cegcc*)
15771 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15772 # When not using gcc, we currently assume that we are using
15773 # Microsoft Visual C++.
15774 if test "$GCC" != yes; then
15775 with_gnu_ld=no
15778 interix*)
15779 # we just hope/assume this is gcc and not c89 (= MSVC++)
15780 with_gnu_ld=yes
15782 openbsd*)
15783 with_gnu_ld=no
15785 esac
15787 ld_shlibs=yes
15789 # On some targets, GNU ld is compatible enough with the native linker
15790 # that we're better off using the native interface for both.
15791 lt_use_gnu_ld_interface=no
15792 if test "$with_gnu_ld" = yes; then
15793 case $host_os in
15794 aix*)
15795 # The AIX port of GNU ld has always aspired to compatibility
15796 # with the native linker. However, as the warning in the GNU ld
15797 # block says, versions before 2.19.5* couldn't really create working
15798 # shared libraries, regardless of the interface used.
15799 case `$LD -v 2>&1` in
15800 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15801 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15802 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15804 lt_use_gnu_ld_interface=yes
15806 esac
15809 lt_use_gnu_ld_interface=yes
15811 esac
15814 if test "$lt_use_gnu_ld_interface" = yes; then
15815 # If archive_cmds runs LD, not CC, wlarc should be empty
15816 wlarc='${wl}'
15818 # Set some defaults for GNU ld with shared library support. These
15819 # are reset later if shared libraries are not supported. Putting them
15820 # here allows them to be overridden if necessary.
15821 runpath_var=LD_RUN_PATH
15822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15823 export_dynamic_flag_spec='${wl}--export-dynamic'
15824 # ancient GNU ld didn't support --whole-archive et. al.
15825 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15826 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15827 else
15828 whole_archive_flag_spec=
15830 supports_anon_versioning=no
15831 case `$LD -v 2>&1` in
15832 *GNU\ gold*) supports_anon_versioning=yes ;;
15833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15836 *\ 2.11.*) ;; # other 2.11 versions
15837 *) supports_anon_versioning=yes ;;
15838 esac
15840 # See if GNU ld supports shared libraries.
15841 case $host_os in
15842 aix[3-9]*)
15843 # On AIX/PPC, the GNU linker is very broken
15844 if test "$host_cpu" != ia64; then
15845 ld_shlibs=no
15846 cat <<_LT_EOF 1>&2
15848 *** Warning: the GNU linker, at least up to release 2.19, is reported
15849 *** to be unable to reliably create shared libraries on AIX.
15850 *** Therefore, libtool is disabling shared libraries support. If you
15851 *** really care for shared libraries, you may want to install binutils
15852 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15853 *** You will then need to restart the configuration process.
15855 _LT_EOF
15859 amigaos*)
15860 case $host_cpu in
15861 powerpc)
15862 # see comment about AmigaOS4 .so support
15863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15864 archive_expsym_cmds=''
15866 m68k)
15867 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)'
15868 hardcode_libdir_flag_spec='-L$libdir'
15869 hardcode_minus_L=yes
15871 esac
15874 beos*)
15875 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15876 allow_undefined_flag=unsupported
15877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15878 # support --undefined. This deserves some investigation. FIXME
15879 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15880 else
15881 ld_shlibs=no
15885 cygwin* | mingw* | pw32* | cegcc*)
15886 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15887 # as there is no search path for DLLs.
15888 hardcode_libdir_flag_spec='-L$libdir'
15889 export_dynamic_flag_spec='${wl}--export-all-symbols'
15890 allow_undefined_flag=unsupported
15891 always_export_symbols=no
15892 enable_shared_with_static_runtimes=yes
15893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15895 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15897 # If the export-symbols file already is a .def file (1st line
15898 # is EXPORTS), use it as is; otherwise, prepend...
15899 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15900 cp $export_symbols $output_objdir/$soname.def;
15901 else
15902 echo EXPORTS > $output_objdir/$soname.def;
15903 cat $export_symbols >> $output_objdir/$soname.def;
15905 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15906 else
15907 ld_shlibs=no
15911 haiku*)
15912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15913 link_all_deplibs=yes
15916 interix[3-9]*)
15917 hardcode_direct=no
15918 hardcode_shlibpath_var=no
15919 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15920 export_dynamic_flag_spec='${wl}-E'
15921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15922 # Instead, shared libraries are loaded at an image base (0x10000000 by
15923 # default) and relocated if they conflict, which is a slow very memory
15924 # consuming and fragmenting process. To avoid this, we pick a random,
15925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15926 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15928 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'
15931 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15932 tmp_diet=no
15933 if test "$host_os" = linux-dietlibc; then
15934 case $cc_basename in
15935 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15936 esac
15938 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15939 && test "$tmp_diet" = no
15940 then
15941 tmp_addflag=
15942 tmp_sharedflag='-shared'
15943 case $cc_basename,$host_cpu in
15944 pgcc*) # Portland Group C compiler
15945 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'
15946 tmp_addflag=' $pic_flag'
15948 pgf77* | pgf90* | pgf95* | pgfortran*)
15949 # Portland Group f77 and f90 compilers
15950 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'
15951 tmp_addflag=' $pic_flag -Mnomain' ;;
15952 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15953 tmp_addflag=' -i_dynamic' ;;
15954 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15955 tmp_addflag=' -i_dynamic -nofor_main' ;;
15956 ifc* | ifort*) # Intel Fortran compiler
15957 tmp_addflag=' -nofor_main' ;;
15958 lf95*) # Lahey Fortran 8.1
15959 whole_archive_flag_spec=
15960 tmp_sharedflag='--shared' ;;
15961 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15962 tmp_sharedflag='-qmkshrobj'
15963 tmp_addflag= ;;
15964 nvcc*) # Cuda Compiler Driver 2.2
15965 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'
15966 compiler_needs_object=yes
15968 esac
15969 case `$CC -V 2>&1 | sed 5q` in
15970 *Sun\ C*) # Sun C 5.9
15971 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'
15972 compiler_needs_object=yes
15973 tmp_sharedflag='-G' ;;
15974 *Sun\ F*) # Sun Fortran 8.3
15975 tmp_sharedflag='-G' ;;
15976 esac
15977 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15979 if test "x$supports_anon_versioning" = xyes; then
15980 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15981 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15982 echo "local: *; };" >> $output_objdir/$libname.ver~
15983 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15986 case $cc_basename in
15987 xlf* | bgf* | bgxlf* | mpixlf*)
15988 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15989 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15990 hardcode_libdir_flag_spec=
15991 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15992 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15993 if test "x$supports_anon_versioning" = xyes; then
15994 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15996 echo "local: *; };" >> $output_objdir/$libname.ver~
15997 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16000 esac
16001 else
16002 ld_shlibs=no
16006 netbsd*)
16007 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16008 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16009 wlarc=
16010 else
16011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16016 solaris*)
16017 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16018 ld_shlibs=no
16019 cat <<_LT_EOF 1>&2
16021 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16022 *** create shared libraries on Solaris systems. Therefore, libtool
16023 *** is disabling shared libraries support. We urge you to upgrade GNU
16024 *** binutils to release 2.9.1 or newer. Another option is to modify
16025 *** your PATH or compiler configuration so that the native linker is
16026 *** used, and then restart.
16028 _LT_EOF
16029 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16032 else
16033 ld_shlibs=no
16037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16038 case `$LD -v 2>&1` in
16039 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16040 ld_shlibs=no
16041 cat <<_LT_EOF 1>&2
16043 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16044 *** reliably create shared libraries on SCO systems. Therefore, libtool
16045 *** is disabling shared libraries support. We urge you to upgrade GNU
16046 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16047 *** your PATH or compiler configuration so that the native linker is
16048 *** used, and then restart.
16050 _LT_EOF
16053 # For security reasons, it is highly recommended that you always
16054 # use absolute paths for naming shared libraries, and exclude the
16055 # DT_RUNPATH tag from executables and libraries. But doing so
16056 # requires that you compile everything twice, which is a pain.
16057 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16058 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16061 else
16062 ld_shlibs=no
16065 esac
16068 sunos4*)
16069 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16070 wlarc=
16071 hardcode_direct=yes
16072 hardcode_shlibpath_var=no
16076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16079 else
16080 ld_shlibs=no
16083 esac
16085 if test "$ld_shlibs" = no; then
16086 runpath_var=
16087 hardcode_libdir_flag_spec=
16088 export_dynamic_flag_spec=
16089 whole_archive_flag_spec=
16091 else
16092 # PORTME fill in a description of your system's linker (not GNU ld)
16093 case $host_os in
16094 aix3*)
16095 allow_undefined_flag=unsupported
16096 always_export_symbols=yes
16097 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'
16098 # Note: this linker hardcodes the directories in LIBPATH if there
16099 # are no directories specified by -L.
16100 hardcode_minus_L=yes
16101 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16102 # Neither direct hardcoding nor static linking is supported with a
16103 # broken collect2.
16104 hardcode_direct=unsupported
16108 aix[4-9]*)
16109 if test "$host_cpu" = ia64; then
16110 # On IA64, the linker does run time linking by default, so we don't
16111 # have to do anything special.
16112 aix_use_runtimelinking=no
16113 exp_sym_flag='-Bexport'
16114 no_entry_flag=""
16115 else
16116 # If we're using GNU nm, then we don't want the "-C" option.
16117 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16118 # Also, AIX nm treats weak defined symbols like other global
16119 # defined symbols, whereas GNU nm marks them as "W".
16120 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16121 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'
16122 else
16123 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'
16125 aix_use_runtimelinking=no
16127 # Test if we are trying to use run time linking or normal
16128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16129 # need to do runtime linking.
16130 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16131 for ld_flag in $LDFLAGS; do
16132 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16133 aix_use_runtimelinking=yes
16134 break
16136 done
16138 esac
16140 exp_sym_flag='-bexport'
16141 no_entry_flag='-bnoentry'
16144 # When large executables or shared objects are built, AIX ld can
16145 # have problems creating the table of contents. If linking a library
16146 # or program results in "error TOC overflow" add -mminimal-toc to
16147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16150 archive_cmds=''
16151 hardcode_direct=yes
16152 hardcode_direct_absolute=yes
16153 hardcode_libdir_separator=':'
16154 link_all_deplibs=yes
16155 file_list_spec='${wl}-f,'
16157 if test "$GCC" = yes; then
16158 case $host_os in aix4.[012]|aix4.[012].*)
16159 # We only want to do this on AIX 4.2 and lower, the check
16160 # below for broken collect2 doesn't work under 4.3+
16161 collect2name=`${CC} -print-prog-name=collect2`
16162 if test -f "$collect2name" &&
16163 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16164 then
16165 # We have reworked collect2
16167 else
16168 # We have old collect2
16169 hardcode_direct=unsupported
16170 # It fails to find uninstalled libraries when the uninstalled
16171 # path is not listed in the libpath. Setting hardcode_minus_L
16172 # to unsupported forces relinking
16173 hardcode_minus_L=yes
16174 hardcode_libdir_flag_spec='-L$libdir'
16175 hardcode_libdir_separator=
16178 esac
16179 shared_flag='-shared'
16180 if test "$aix_use_runtimelinking" = yes; then
16181 shared_flag="$shared_flag "'${wl}-G'
16183 else
16184 # not using gcc
16185 if test "$host_cpu" = ia64; then
16186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16187 # chokes on -Wl,-G. The following line is correct:
16188 shared_flag='-G'
16189 else
16190 if test "$aix_use_runtimelinking" = yes; then
16191 shared_flag='${wl}-G'
16192 else
16193 shared_flag='${wl}-bM:SRE'
16198 export_dynamic_flag_spec='${wl}-bexpall'
16199 # It seems that -bexpall does not export symbols beginning with
16200 # underscore (_), so it is better to generate a list of symbols to export.
16201 always_export_symbols=yes
16202 if test "$aix_use_runtimelinking" = yes; then
16203 # Warning - without using the other runtime loading flags (-brtl),
16204 # -berok will link without error, but may produce a broken library.
16205 allow_undefined_flag='-berok'
16206 # Determine the default libpath from the value encoded in an
16207 # empty executable.
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16212 main ()
16216 return 0;
16218 _ACEOF
16219 if ac_fn_c_try_link "$LINENO"; then :
16221 lt_aix_libpath_sed='
16222 /Import File Strings/,/^$/ {
16223 /^0/ {
16224 s/^0 *\(.*\)$/\1/
16228 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16229 # Check for a 64-bit object if we didn't find anything.
16230 if test -z "$aix_libpath"; then
16231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16234 rm -f core conftest.err conftest.$ac_objext \
16235 conftest$ac_exeext conftest.$ac_ext
16236 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16238 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16239 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"
16240 else
16241 if test "$host_cpu" = ia64; then
16242 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16243 allow_undefined_flag="-z nodefs"
16244 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"
16245 else
16246 # Determine the default libpath from the value encoded in an
16247 # empty executable.
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16252 main ()
16256 return 0;
16258 _ACEOF
16259 if ac_fn_c_try_link "$LINENO"; then :
16261 lt_aix_libpath_sed='
16262 /Import File Strings/,/^$/ {
16263 /^0/ {
16264 s/^0 *\(.*\)$/\1/
16268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16269 # Check for a 64-bit object if we didn't find anything.
16270 if test -z "$aix_libpath"; then
16271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16274 rm -f core conftest.err conftest.$ac_objext \
16275 conftest$ac_exeext conftest.$ac_ext
16276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16278 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16279 # Warning - without using the other run time loading flags,
16280 # -berok will link without error, but may produce a broken library.
16281 no_undefined_flag=' ${wl}-bernotok'
16282 allow_undefined_flag=' ${wl}-berok'
16283 if test "$with_gnu_ld" = yes; then
16284 # We only use this code for GNU lds that support --whole-archive.
16285 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16286 else
16287 # Exported symbols can be pulled into shared objects from archives
16288 whole_archive_flag_spec='$convenience'
16290 archive_cmds_need_lc=yes
16291 # This is similar to how AIX traditionally builds its shared libraries.
16292 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'
16297 amigaos*)
16298 case $host_cpu in
16299 powerpc)
16300 # see comment about AmigaOS4 .so support
16301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16302 archive_expsym_cmds=''
16304 m68k)
16305 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)'
16306 hardcode_libdir_flag_spec='-L$libdir'
16307 hardcode_minus_L=yes
16309 esac
16312 bsdi[45]*)
16313 export_dynamic_flag_spec=-rdynamic
16316 cygwin* | mingw* | pw32* | cegcc*)
16317 # When not using gcc, we currently assume that we are using
16318 # Microsoft Visual C++.
16319 # hardcode_libdir_flag_spec is actually meaningless, as there is
16320 # no search path for DLLs.
16321 hardcode_libdir_flag_spec=' '
16322 allow_undefined_flag=unsupported
16323 # Tell ltmain to make .lib files, not .a files.
16324 libext=lib
16325 # Tell ltmain to make .dll files, not .so files.
16326 shrext_cmds=".dll"
16327 # FIXME: Setting linknames here is a bad hack.
16328 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16329 # The linker will automatically build a .lib file if we build a DLL.
16330 old_archive_from_new_cmds='true'
16331 # FIXME: Should let the user specify the lib program.
16332 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16333 fix_srcfile_path='`cygpath -w "$srcfile"`'
16334 enable_shared_with_static_runtimes=yes
16337 darwin* | rhapsody*)
16340 archive_cmds_need_lc=no
16341 hardcode_direct=no
16342 hardcode_automatic=yes
16343 hardcode_shlibpath_var=unsupported
16344 if test "$lt_cv_ld_force_load" = "yes"; then
16345 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\"`'
16346 else
16347 whole_archive_flag_spec=''
16349 link_all_deplibs=yes
16350 allow_undefined_flag="$_lt_dar_allow_undefined"
16351 case $cc_basename in
16352 ifort*) _lt_dar_can_shared=yes ;;
16353 *) _lt_dar_can_shared=$GCC ;;
16354 esac
16355 if test "$_lt_dar_can_shared" = "yes"; then
16356 output_verbose_link_cmd=func_echo_all
16357 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16358 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16359 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}"
16360 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}"
16362 else
16363 ld_shlibs=no
16368 dgux*)
16369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_libdir_flag_spec='-L$libdir'
16371 hardcode_shlibpath_var=no
16374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16375 # support. Future versions do this automatically, but an explicit c++rt0.o
16376 # does not break anything, and helps significantly (at the cost of a little
16377 # extra space).
16378 freebsd2.2*)
16379 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16380 hardcode_libdir_flag_spec='-R$libdir'
16381 hardcode_direct=yes
16382 hardcode_shlibpath_var=no
16385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16386 freebsd2.*)
16387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16388 hardcode_direct=yes
16389 hardcode_minus_L=yes
16390 hardcode_shlibpath_var=no
16393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16394 freebsd* | dragonfly*)
16395 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16396 hardcode_libdir_flag_spec='-R$libdir'
16397 hardcode_direct=yes
16398 hardcode_shlibpath_var=no
16401 hpux9*)
16402 if test "$GCC" = yes; then
16403 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'
16404 else
16405 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'
16407 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16408 hardcode_libdir_separator=:
16409 hardcode_direct=yes
16411 # hardcode_minus_L: Not really in the search PATH,
16412 # but as the default location of the library.
16413 hardcode_minus_L=yes
16414 export_dynamic_flag_spec='${wl}-E'
16417 hpux10*)
16418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16419 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16420 else
16421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16423 if test "$with_gnu_ld" = no; then
16424 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16425 hardcode_libdir_flag_spec_ld='+b $libdir'
16426 hardcode_libdir_separator=:
16427 hardcode_direct=yes
16428 hardcode_direct_absolute=yes
16429 export_dynamic_flag_spec='${wl}-E'
16430 # hardcode_minus_L: Not really in the search PATH,
16431 # but as the default location of the library.
16432 hardcode_minus_L=yes
16436 hpux11*)
16437 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16438 case $host_cpu in
16439 hppa*64*)
16440 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16442 ia64*)
16443 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16446 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16448 esac
16449 else
16450 case $host_cpu in
16451 hppa*64*)
16452 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16454 ia64*)
16455 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16459 # Older versions of the 11.00 compiler do not understand -b yet
16460 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16462 $as_echo_n "checking if $CC understands -b... " >&6; }
16463 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16464 $as_echo_n "(cached) " >&6
16465 else
16466 lt_cv_prog_compiler__b=no
16467 save_LDFLAGS="$LDFLAGS"
16468 LDFLAGS="$LDFLAGS -b"
16469 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16471 # The linker can only warn and ignore the option if not recognized
16472 # So say no if there are warnings
16473 if test -s conftest.err; then
16474 # Append any errors to the config.log.
16475 cat conftest.err 1>&5
16476 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16478 if diff conftest.exp conftest.er2 >/dev/null; then
16479 lt_cv_prog_compiler__b=yes
16481 else
16482 lt_cv_prog_compiler__b=yes
16485 $RM -r conftest*
16486 LDFLAGS="$save_LDFLAGS"
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16490 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16492 if test x"$lt_cv_prog_compiler__b" = xyes; then
16493 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16494 else
16495 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16499 esac
16501 if test "$with_gnu_ld" = no; then
16502 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16503 hardcode_libdir_separator=:
16505 case $host_cpu in
16506 hppa*64*|ia64*)
16507 hardcode_direct=no
16508 hardcode_shlibpath_var=no
16511 hardcode_direct=yes
16512 hardcode_direct_absolute=yes
16513 export_dynamic_flag_spec='${wl}-E'
16515 # hardcode_minus_L: Not really in the search PATH,
16516 # but as the default location of the library.
16517 hardcode_minus_L=yes
16519 esac
16523 irix5* | irix6* | nonstopux*)
16524 if test "$GCC" = yes; then
16525 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'
16526 # Try to use the -exported_symbol ld option, if it does not
16527 # work, assume that -exports_file does not work either and
16528 # implicitly export all symbols.
16529 save_LDFLAGS="$LDFLAGS"
16530 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533 int foo(void) {}
16534 _ACEOF
16535 if ac_fn_c_try_link "$LINENO"; then :
16536 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'
16539 rm -f core conftest.err conftest.$ac_objext \
16540 conftest$ac_exeext conftest.$ac_ext
16541 LDFLAGS="$save_LDFLAGS"
16542 else
16543 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'
16544 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'
16546 archive_cmds_need_lc='no'
16547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16548 hardcode_libdir_separator=:
16549 inherit_rpath=yes
16550 link_all_deplibs=yes
16553 netbsd*)
16554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16556 else
16557 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16559 hardcode_libdir_flag_spec='-R$libdir'
16560 hardcode_direct=yes
16561 hardcode_shlibpath_var=no
16564 newsos6)
16565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_direct=yes
16567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16568 hardcode_libdir_separator=:
16569 hardcode_shlibpath_var=no
16572 *nto* | *qnx*)
16575 openbsd*)
16576 if test -f /usr/libexec/ld.so; then
16577 hardcode_direct=yes
16578 hardcode_shlibpath_var=no
16579 hardcode_direct_absolute=yes
16580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16583 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16584 export_dynamic_flag_spec='${wl}-E'
16585 else
16586 case $host_os in
16587 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16589 hardcode_libdir_flag_spec='-R$libdir'
16592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16595 esac
16597 else
16598 ld_shlibs=no
16602 os2*)
16603 hardcode_libdir_flag_spec='-L$libdir'
16604 hardcode_minus_L=yes
16605 allow_undefined_flag=unsupported
16606 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'
16607 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16610 osf3*)
16611 if test "$GCC" = yes; then
16612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16613 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'
16614 else
16615 allow_undefined_flag=' -expect_unresolved \*'
16616 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'
16618 archive_cmds_need_lc='no'
16619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16620 hardcode_libdir_separator=:
16623 osf4* | osf5*) # as osf3* with the addition of -msym flag
16624 if test "$GCC" = yes; then
16625 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16626 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'
16627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16628 else
16629 allow_undefined_flag=' -expect_unresolved \*'
16630 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'
16631 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~
16632 $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'
16634 # Both c and cxx compiler support -rpath directly
16635 hardcode_libdir_flag_spec='-rpath $libdir'
16637 archive_cmds_need_lc='no'
16638 hardcode_libdir_separator=:
16641 solaris*)
16642 no_undefined_flag=' -z defs'
16643 if test "$GCC" = yes; then
16644 wlarc='${wl}'
16645 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16647 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16648 else
16649 case `$CC -V 2>&1` in
16650 *"Compilers 5.0"*)
16651 wlarc=''
16652 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16657 wlarc='${wl}'
16658 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16662 esac
16664 hardcode_libdir_flag_spec='-R$libdir'
16665 hardcode_shlibpath_var=no
16666 case $host_os in
16667 solaris2.[0-5] | solaris2.[0-5].*) ;;
16669 # The compiler driver will combine and reorder linker options,
16670 # but understands `-z linker_flag'. GCC discards it without `$wl',
16671 # but is careful enough not to reorder.
16672 # Supported since Solaris 2.6 (maybe 2.5.1?)
16673 if test "$GCC" = yes; then
16674 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16675 else
16676 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16679 esac
16680 link_all_deplibs=yes
16683 sunos4*)
16684 if test "x$host_vendor" = xsequent; then
16685 # Use $CC to link under sequent, because it throws in some extra .o
16686 # files that make .init and .fini sections work.
16687 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16688 else
16689 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16691 hardcode_libdir_flag_spec='-L$libdir'
16692 hardcode_direct=yes
16693 hardcode_minus_L=yes
16694 hardcode_shlibpath_var=no
16697 sysv4)
16698 case $host_vendor in
16699 sni)
16700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16701 hardcode_direct=yes # is this really true???
16703 siemens)
16704 ## LD is ld it makes a PLAMLIB
16705 ## CC just makes a GrossModule.
16706 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16707 reload_cmds='$CC -r -o $output$reload_objs'
16708 hardcode_direct=no
16710 motorola)
16711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16712 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16714 esac
16715 runpath_var='LD_RUN_PATH'
16716 hardcode_shlibpath_var=no
16719 sysv4.3*)
16720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721 hardcode_shlibpath_var=no
16722 export_dynamic_flag_spec='-Bexport'
16725 sysv4*MP*)
16726 if test -d /usr/nec; then
16727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16728 hardcode_shlibpath_var=no
16729 runpath_var=LD_RUN_PATH
16730 hardcode_runpath_var=yes
16731 ld_shlibs=yes
16735 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16736 no_undefined_flag='${wl}-z,text'
16737 archive_cmds_need_lc=no
16738 hardcode_shlibpath_var=no
16739 runpath_var='LD_RUN_PATH'
16741 if test "$GCC" = yes; then
16742 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16743 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16744 else
16745 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16746 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16750 sysv5* | sco3.2v5* | sco5v6*)
16751 # Note: We can NOT use -z defs as we might desire, because we do not
16752 # link with -lc, and that would cause any symbols used from libc to
16753 # always be unresolved, which means just about no library would
16754 # ever link correctly. If we're not using GNU ld we use -z text
16755 # though, which does catch some bad symbols but isn't as heavy-handed
16756 # as -z defs.
16757 no_undefined_flag='${wl}-z,text'
16758 allow_undefined_flag='${wl}-z,nodefs'
16759 archive_cmds_need_lc=no
16760 hardcode_shlibpath_var=no
16761 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16762 hardcode_libdir_separator=':'
16763 link_all_deplibs=yes
16764 export_dynamic_flag_spec='${wl}-Bexport'
16765 runpath_var='LD_RUN_PATH'
16767 if test "$GCC" = yes; then
16768 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16770 else
16771 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16776 uts4*)
16777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778 hardcode_libdir_flag_spec='-L$libdir'
16779 hardcode_shlibpath_var=no
16783 ld_shlibs=no
16785 esac
16787 if test x$host_vendor = xsni; then
16788 case $host in
16789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16790 export_dynamic_flag_spec='${wl}-Blargedynsym'
16792 esac
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16797 $as_echo "$ld_shlibs" >&6; }
16798 test "$ld_shlibs" = no && can_build_shared=no
16800 with_gnu_ld=$with_gnu_ld
16817 # Do we need to explicitly link libc?
16819 case "x$archive_cmds_need_lc" in
16820 x|xyes)
16821 # Assume -lc should be added
16822 archive_cmds_need_lc=yes
16824 if test "$enable_shared" = yes && test "$GCC" = yes; then
16825 case $archive_cmds in
16826 *'~'*)
16827 # FIXME: we may have to deal with multi-command sequences.
16829 '$CC '*)
16830 # Test whether the compiler implicitly links with -lc since on some
16831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16832 # to ld, don't add -lc before -lgcc.
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16834 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16835 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16836 $as_echo_n "(cached) " >&6
16837 else
16838 $RM conftest*
16839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16842 (eval $ac_compile) 2>&5
16843 ac_status=$?
16844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16845 test $ac_status = 0; } 2>conftest.err; then
16846 soname=conftest
16847 lib=conftest
16848 libobjs=conftest.$ac_objext
16849 deplibs=
16850 wl=$lt_prog_compiler_wl
16851 pic_flag=$lt_prog_compiler_pic
16852 compiler_flags=-v
16853 linker_flags=-v
16854 verstring=
16855 output_objdir=.
16856 libname=conftest
16857 lt_save_allow_undefined_flag=$allow_undefined_flag
16858 allow_undefined_flag=
16859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16860 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16861 ac_status=$?
16862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16863 test $ac_status = 0; }
16864 then
16865 lt_cv_archive_cmds_need_lc=no
16866 else
16867 lt_cv_archive_cmds_need_lc=yes
16869 allow_undefined_flag=$lt_save_allow_undefined_flag
16870 else
16871 cat conftest.err 1>&5
16873 $RM conftest*
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16877 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16878 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16880 esac
16883 esac
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17044 if test "$GCC" = yes; then
17045 case $host_os in
17046 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17047 *) lt_awk_arg="/^libraries:/" ;;
17048 esac
17049 case $host_os in
17050 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17051 *) lt_sed_strip_eq="s,=/,/,g" ;;
17052 esac
17053 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17054 case $lt_search_path_spec in
17055 *\;*)
17056 # if the path contains ";" then we assume it to be the separator
17057 # otherwise default to the standard path separator (i.e. ":") - it is
17058 # assumed that no part of a normal pathname contains ";" but that should
17059 # okay in the real world where ";" in dirpaths is itself problematic.
17060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17065 esac
17066 # Ok, now we have the path, separated by spaces, we can step through it
17067 # and add multilib dir if necessary.
17068 lt_tmp_lt_search_path_spec=
17069 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17070 for lt_sys_path in $lt_search_path_spec; do
17071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17073 else
17074 test -d "$lt_sys_path" && \
17075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17077 done
17078 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17079 BEGIN {RS=" "; FS="/|\n";} {
17080 lt_foo="";
17081 lt_count=0;
17082 for (lt_i = NF; lt_i > 0; lt_i--) {
17083 if ($lt_i != "" && $lt_i != ".") {
17084 if ($lt_i == "..") {
17085 lt_count++;
17086 } else {
17087 if (lt_count == 0) {
17088 lt_foo="/" $lt_i lt_foo;
17089 } else {
17090 lt_count--;
17095 if (lt_foo != "") { lt_freq[lt_foo]++; }
17096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17098 # AWK program above erroneously prepends '/' to C:/dos/paths
17099 # for these hosts.
17100 case $host_os in
17101 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17102 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17103 esac
17104 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17105 else
17106 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17108 library_names_spec=
17109 libname_spec='lib$name'
17110 soname_spec=
17111 shrext_cmds=".so"
17112 postinstall_cmds=
17113 postuninstall_cmds=
17114 finish_cmds=
17115 finish_eval=
17116 shlibpath_var=
17117 shlibpath_overrides_runpath=unknown
17118 version_type=none
17119 dynamic_linker="$host_os ld.so"
17120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17121 need_lib_prefix=unknown
17122 hardcode_into_libs=no
17124 # when you set need_version to no, make sure it does not cause -set_version
17125 # flags to be left without arguments
17126 need_version=unknown
17128 case $host_os in
17129 aix3*)
17130 version_type=linux
17131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17132 shlibpath_var=LIBPATH
17134 # AIX 3 has no versioning support, so we append a major version to the name.
17135 soname_spec='${libname}${release}${shared_ext}$major'
17138 aix[4-9]*)
17139 version_type=linux
17140 need_lib_prefix=no
17141 need_version=no
17142 hardcode_into_libs=yes
17143 if test "$host_cpu" = ia64; then
17144 # AIX 5 supports IA64
17145 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17146 shlibpath_var=LD_LIBRARY_PATH
17147 else
17148 # With GCC up to 2.95.x, collect2 would create an import file
17149 # for dependence libraries. The import file would start with
17150 # the line `#! .'. This would cause the generated library to
17151 # depend on `.', always an invalid library. This was fixed in
17152 # development snapshots of GCC prior to 3.0.
17153 case $host_os in
17154 aix4 | aix4.[01] | aix4.[01].*)
17155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17156 echo ' yes '
17157 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17159 else
17160 can_build_shared=no
17163 esac
17164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17165 # soname into executable. Probably we can add versioning support to
17166 # collect2, so additional links can be useful in future.
17167 if test "$aix_use_runtimelinking" = yes; then
17168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17169 # instead of lib<name>.a to let people know that these are not
17170 # typical AIX shared libraries.
17171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17172 else
17173 # We preserve .a as extension for shared libraries through AIX4.2
17174 # and later when we are not doing run time linking.
17175 library_names_spec='${libname}${release}.a $libname.a'
17176 soname_spec='${libname}${release}${shared_ext}$major'
17178 shlibpath_var=LIBPATH
17182 amigaos*)
17183 case $host_cpu in
17184 powerpc)
17185 # Since July 2007 AmigaOS4 officially supports .so libraries.
17186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189 m68k)
17190 library_names_spec='$libname.ixlibrary $libname.a'
17191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17192 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'
17194 esac
17197 beos*)
17198 library_names_spec='${libname}${shared_ext}'
17199 dynamic_linker="$host_os ld.so"
17200 shlibpath_var=LIBRARY_PATH
17203 bsdi[45]*)
17204 version_type=linux
17205 need_version=no
17206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17211 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17212 # the default ld.so.conf also contains /usr/contrib/lib and
17213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17214 # libtool to hard-code these into programs
17217 cygwin* | mingw* | pw32* | cegcc*)
17218 version_type=windows
17219 shrext_cmds=".dll"
17220 need_version=no
17221 need_lib_prefix=no
17223 case $GCC,$host_os in
17224 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17225 library_names_spec='$libname.dll.a'
17226 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17227 postinstall_cmds='base_file=`basename \${file}`~
17228 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17229 dldir=$destdir/`dirname \$dlpath`~
17230 test -d \$dldir || mkdir -p \$dldir~
17231 $install_prog $dir/$dlname \$dldir/$dlname~
17232 chmod a+x \$dldir/$dlname~
17233 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17234 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17236 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17237 dlpath=$dir/\$dldll~
17238 $RM \$dlpath'
17239 shlibpath_overrides_runpath=yes
17241 case $host_os in
17242 cygwin*)
17243 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17244 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17246 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17248 mingw* | cegcc*)
17249 # MinGW DLLs use traditional 'lib' prefix
17250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17252 pw32*)
17253 # pw32 DLLs use 'pw' prefix rather than 'lib'
17254 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17256 esac
17260 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17262 esac
17263 dynamic_linker='Win32 ld.exe'
17264 # FIXME: first we should search . and the directory the executable is in
17265 shlibpath_var=PATH
17268 darwin* | rhapsody*)
17269 dynamic_linker="$host_os dyld"
17270 version_type=darwin
17271 need_lib_prefix=no
17272 need_version=no
17273 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17274 soname_spec='${libname}${release}${major}$shared_ext'
17275 shlibpath_overrides_runpath=yes
17276 shlibpath_var=DYLD_LIBRARY_PATH
17277 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17279 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17280 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17283 dgux*)
17284 version_type=linux
17285 need_lib_prefix=no
17286 need_version=no
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17288 soname_spec='${libname}${release}${shared_ext}$major'
17289 shlibpath_var=LD_LIBRARY_PATH
17292 freebsd* | dragonfly*)
17293 # DragonFly does not have aout. When/if they implement a new
17294 # versioning mechanism, adjust this.
17295 if test -x /usr/bin/objformat; then
17296 objformat=`/usr/bin/objformat`
17297 else
17298 case $host_os in
17299 freebsd[23].*) objformat=aout ;;
17300 *) objformat=elf ;;
17301 esac
17303 version_type=freebsd-$objformat
17304 case $version_type in
17305 freebsd-elf*)
17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17307 need_version=no
17308 need_lib_prefix=no
17310 freebsd-*)
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17312 need_version=yes
17314 esac
17315 shlibpath_var=LD_LIBRARY_PATH
17316 case $host_os in
17317 freebsd2.*)
17318 shlibpath_overrides_runpath=yes
17320 freebsd3.[01]* | freebsdelf3.[01]*)
17321 shlibpath_overrides_runpath=yes
17322 hardcode_into_libs=yes
17324 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17325 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17326 shlibpath_overrides_runpath=no
17327 hardcode_into_libs=yes
17329 *) # from 4.6 on, and DragonFly
17330 shlibpath_overrides_runpath=yes
17331 hardcode_into_libs=yes
17333 esac
17336 gnu*)
17337 version_type=linux
17338 need_lib_prefix=no
17339 need_version=no
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 hardcode_into_libs=yes
17346 haiku*)
17347 version_type=linux
17348 need_lib_prefix=no
17349 need_version=no
17350 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
17354 shlibpath_overrides_runpath=yes
17355 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17356 hardcode_into_libs=yes
17359 hpux9* | hpux10* | hpux11*)
17360 # Give a soname corresponding to the major version so that dld.sl refuses to
17361 # link against other versions.
17362 version_type=sunos
17363 need_lib_prefix=no
17364 need_version=no
17365 case $host_cpu in
17366 ia64*)
17367 shrext_cmds='.so'
17368 hardcode_into_libs=yes
17369 dynamic_linker="$host_os dld.so"
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 if test "X$HPUX_IA64_MODE" = X32; then
17375 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17376 else
17377 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17381 hppa*64*)
17382 shrext_cmds='.sl'
17383 hardcode_into_libs=yes
17384 dynamic_linker="$host_os dld.sl"
17385 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388 soname_spec='${libname}${release}${shared_ext}$major'
17389 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17393 shrext_cmds='.sl'
17394 dynamic_linker="$host_os dld.sl"
17395 shlibpath_var=SHLIB_PATH
17396 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17398 soname_spec='${libname}${release}${shared_ext}$major'
17400 esac
17401 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17402 postinstall_cmds='chmod 555 $lib'
17403 # or fails outright, so override atomically:
17404 install_override_mode=555
17407 interix[3-9]*)
17408 version_type=linux
17409 need_lib_prefix=no
17410 need_version=no
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17414 shlibpath_var=LD_LIBRARY_PATH
17415 shlibpath_overrides_runpath=no
17416 hardcode_into_libs=yes
17419 irix5* | irix6* | nonstopux*)
17420 case $host_os in
17421 nonstopux*) version_type=nonstopux ;;
17423 if test "$lt_cv_prog_gnu_ld" = yes; then
17424 version_type=linux
17425 else
17426 version_type=irix
17427 fi ;;
17428 esac
17429 need_lib_prefix=no
17430 need_version=no
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17433 case $host_os in
17434 irix5* | nonstopux*)
17435 libsuff= shlibsuff=
17438 case $LD in # libtool.m4 will add one of these switches to LD
17439 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17440 libsuff= shlibsuff= libmagic=32-bit;;
17441 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17442 libsuff=32 shlibsuff=N32 libmagic=N32;;
17443 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17444 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17445 *) libsuff= shlibsuff= libmagic=never-match;;
17446 esac
17448 esac
17449 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17450 shlibpath_overrides_runpath=no
17451 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17452 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17453 hardcode_into_libs=yes
17456 # No shared lib support for Linux oldld, aout, or coff.
17457 linux*oldld* | linux*aout* | linux*coff*)
17458 dynamic_linker=no
17461 # This must be Linux ELF.
17462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17463 version_type=linux
17464 need_lib_prefix=no
17465 need_version=no
17466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17467 soname_spec='${libname}${release}${shared_ext}$major'
17468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17469 shlibpath_var=LD_LIBRARY_PATH
17470 shlibpath_overrides_runpath=no
17472 # Some binutils ld are patched to set DT_RUNPATH
17473 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17474 $as_echo_n "(cached) " >&6
17475 else
17476 lt_cv_shlibpath_overrides_runpath=no
17477 save_LDFLAGS=$LDFLAGS
17478 save_libdir=$libdir
17479 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17480 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17485 main ()
17489 return 0;
17491 _ACEOF
17492 if ac_fn_c_try_link "$LINENO"; then :
17493 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17494 lt_cv_shlibpath_overrides_runpath=yes
17497 rm -f core conftest.err conftest.$ac_objext \
17498 conftest$ac_exeext conftest.$ac_ext
17499 LDFLAGS=$save_LDFLAGS
17500 libdir=$save_libdir
17504 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17506 # This implies no fast_install, which is unacceptable.
17507 # Some rework will be needed to allow for fast_install
17508 # before this can be enabled.
17509 hardcode_into_libs=yes
17511 # Append ld.so.conf contents to the search path
17512 if test -f /etc/ld.so.conf; then
17513 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' ' '`
17514 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17517 # We used to test for /lib/ld.so.1 and disable shared libraries on
17518 # powerpc, because MkLinux only supported shared libraries with the
17519 # GNU dynamic linker. Since this was broken with cross compilers,
17520 # most powerpc-linux boxes support dynamic linking these days and
17521 # people can always --disable-shared, the test was removed, and we
17522 # assume the GNU/Linux dynamic linker is in use.
17523 dynamic_linker='GNU/Linux ld.so'
17526 netbsd*)
17527 version_type=sunos
17528 need_lib_prefix=no
17529 need_version=no
17530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17533 dynamic_linker='NetBSD (a.out) ld.so'
17534 else
17535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17536 soname_spec='${libname}${release}${shared_ext}$major'
17537 dynamic_linker='NetBSD ld.elf_so'
17539 shlibpath_var=LD_LIBRARY_PATH
17540 shlibpath_overrides_runpath=yes
17541 hardcode_into_libs=yes
17544 newsos6)
17545 version_type=linux
17546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547 shlibpath_var=LD_LIBRARY_PATH
17548 shlibpath_overrides_runpath=yes
17551 *nto* | *qnx*)
17552 version_type=qnx
17553 need_lib_prefix=no
17554 need_version=no
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17556 soname_spec='${libname}${release}${shared_ext}$major'
17557 shlibpath_var=LD_LIBRARY_PATH
17558 shlibpath_overrides_runpath=no
17559 hardcode_into_libs=yes
17560 dynamic_linker='ldqnx.so'
17563 openbsd*)
17564 version_type=sunos
17565 sys_lib_dlsearch_path_spec="/usr/lib"
17566 need_lib_prefix=no
17567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17568 case $host_os in
17569 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17570 *) need_version=no ;;
17571 esac
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17574 shlibpath_var=LD_LIBRARY_PATH
17575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17576 case $host_os in
17577 openbsd2.[89] | openbsd2.[89].*)
17578 shlibpath_overrides_runpath=no
17581 shlibpath_overrides_runpath=yes
17583 esac
17584 else
17585 shlibpath_overrides_runpath=yes
17589 os2*)
17590 libname_spec='$name'
17591 shrext_cmds=".dll"
17592 need_lib_prefix=no
17593 library_names_spec='$libname${shared_ext} $libname.a'
17594 dynamic_linker='OS/2 ld.exe'
17595 shlibpath_var=LIBPATH
17598 osf3* | osf4* | osf5*)
17599 version_type=osf
17600 need_lib_prefix=no
17601 need_version=no
17602 soname_spec='${libname}${release}${shared_ext}$major'
17603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17609 rdos*)
17610 dynamic_linker=no
17613 solaris*)
17614 version_type=linux
17615 need_lib_prefix=no
17616 need_version=no
17617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17618 soname_spec='${libname}${release}${shared_ext}$major'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 shlibpath_overrides_runpath=yes
17621 hardcode_into_libs=yes
17622 # ldd complains unless libraries are executable
17623 postinstall_cmds='chmod +x $lib'
17626 sunos4*)
17627 version_type=sunos
17628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17630 shlibpath_var=LD_LIBRARY_PATH
17631 shlibpath_overrides_runpath=yes
17632 if test "$with_gnu_ld" = yes; then
17633 need_lib_prefix=no
17635 need_version=yes
17638 sysv4 | sysv4.3*)
17639 version_type=linux
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 case $host_vendor in
17644 sni)
17645 shlibpath_overrides_runpath=no
17646 need_lib_prefix=no
17647 runpath_var=LD_RUN_PATH
17649 siemens)
17650 need_lib_prefix=no
17652 motorola)
17653 need_lib_prefix=no
17654 need_version=no
17655 shlibpath_overrides_runpath=no
17656 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17658 esac
17661 sysv4*MP*)
17662 if test -d /usr/nec ;then
17663 version_type=linux
17664 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17665 soname_spec='$libname${shared_ext}.$major'
17666 shlibpath_var=LD_LIBRARY_PATH
17670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17671 version_type=freebsd-elf
17672 need_lib_prefix=no
17673 need_version=no
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 shlibpath_var=LD_LIBRARY_PATH
17677 shlibpath_overrides_runpath=yes
17678 hardcode_into_libs=yes
17679 if test "$with_gnu_ld" = yes; then
17680 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17681 else
17682 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17683 case $host_os in
17684 sco3.2v5*)
17685 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17687 esac
17689 sys_lib_dlsearch_path_spec='/usr/lib'
17692 tpf*)
17693 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17694 version_type=linux
17695 need_lib_prefix=no
17696 need_version=no
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17698 shlibpath_var=LD_LIBRARY_PATH
17699 shlibpath_overrides_runpath=no
17700 hardcode_into_libs=yes
17703 uts4*)
17704 version_type=linux
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 shlibpath_var=LD_LIBRARY_PATH
17711 dynamic_linker=no
17713 esac
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17715 $as_echo "$dynamic_linker" >&6; }
17716 test "$dynamic_linker" = no && can_build_shared=no
17718 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17719 if test "$GCC" = yes; then
17720 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17723 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17724 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17726 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17727 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17822 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17823 hardcode_action=
17824 if test -n "$hardcode_libdir_flag_spec" ||
17825 test -n "$runpath_var" ||
17826 test "X$hardcode_automatic" = "Xyes" ; then
17828 # We can hardcode non-existent directories.
17829 if test "$hardcode_direct" != no &&
17830 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17831 # have to relink, otherwise we might link with an installed library
17832 # when we should be linking with a yet-to-be-installed one
17833 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17834 test "$hardcode_minus_L" != no; then
17835 # Linking always hardcodes the temporary library directory.
17836 hardcode_action=relink
17837 else
17838 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17839 hardcode_action=immediate
17841 else
17842 # We cannot hardcode anything, or else we can only hardcode existing
17843 # directories.
17844 hardcode_action=unsupported
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17847 $as_echo "$hardcode_action" >&6; }
17849 if test "$hardcode_action" = relink ||
17850 test "$inherit_rpath" = yes; then
17851 # Fast installation is not supported
17852 enable_fast_install=no
17853 elif test "$shlibpath_overrides_runpath" = yes ||
17854 test "$enable_shared" = no; then
17855 # Fast installation is not necessary
17856 enable_fast_install=needless
17864 if test "x$enable_dlopen" != xyes; then
17865 enable_dlopen=unknown
17866 enable_dlopen_self=unknown
17867 enable_dlopen_self_static=unknown
17868 else
17869 lt_cv_dlopen=no
17870 lt_cv_dlopen_libs=
17872 case $host_os in
17873 beos*)
17874 lt_cv_dlopen="load_add_on"
17875 lt_cv_dlopen_libs=
17876 lt_cv_dlopen_self=yes
17879 mingw* | pw32* | cegcc*)
17880 lt_cv_dlopen="LoadLibrary"
17881 lt_cv_dlopen_libs=
17884 cygwin*)
17885 lt_cv_dlopen="dlopen"
17886 lt_cv_dlopen_libs=
17889 darwin*)
17890 # if libdl is installed we need to link against it
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17892 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17894 $as_echo_n "(cached) " >&6
17895 else
17896 ac_check_lib_save_LIBS=$LIBS
17897 LIBS="-ldl $LIBS"
17898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h. */
17901 /* Override any GCC internal prototype to avoid an error.
17902 Use char because int might match the return type of a GCC
17903 builtin and then its argument prototype would still apply. */
17904 #ifdef __cplusplus
17905 extern "C"
17906 #endif
17907 char dlopen ();
17909 main ()
17911 return dlopen ();
17913 return 0;
17915 _ACEOF
17916 if ac_fn_c_try_link "$LINENO"; then :
17917 ac_cv_lib_dl_dlopen=yes
17918 else
17919 ac_cv_lib_dl_dlopen=no
17921 rm -f core conftest.err conftest.$ac_objext \
17922 conftest$ac_exeext conftest.$ac_ext
17923 LIBS=$ac_check_lib_save_LIBS
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17926 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17927 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17929 else
17931 lt_cv_dlopen="dyld"
17932 lt_cv_dlopen_libs=
17933 lt_cv_dlopen_self=yes
17940 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17941 if test "x$ac_cv_func_shl_load" = x""yes; then :
17942 lt_cv_dlopen="shl_load"
17943 else
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17946 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17947 $as_echo_n "(cached) " >&6
17948 else
17949 ac_check_lib_save_LIBS=$LIBS
17950 LIBS="-ldld $LIBS"
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 char shl_load ();
17962 main ()
17964 return shl_load ();
17966 return 0;
17968 _ACEOF
17969 if ac_fn_c_try_link "$LINENO"; then :
17970 ac_cv_lib_dld_shl_load=yes
17971 else
17972 ac_cv_lib_dld_shl_load=no
17974 rm -f core conftest.err conftest.$ac_objext \
17975 conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17979 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17980 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17981 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17982 else
17983 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17984 if test "x$ac_cv_func_dlopen" = x""yes; then :
17985 lt_cv_dlopen="dlopen"
17986 else
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17988 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17990 $as_echo_n "(cached) " >&6
17991 else
17992 ac_check_lib_save_LIBS=$LIBS
17993 LIBS="-ldl $LIBS"
17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995 /* end confdefs.h. */
17997 /* Override any GCC internal prototype to avoid an error.
17998 Use char because int might match the return type of a GCC
17999 builtin and then its argument prototype would still apply. */
18000 #ifdef __cplusplus
18001 extern "C"
18002 #endif
18003 char dlopen ();
18005 main ()
18007 return dlopen ();
18009 return 0;
18011 _ACEOF
18012 if ac_fn_c_try_link "$LINENO"; then :
18013 ac_cv_lib_dl_dlopen=yes
18014 else
18015 ac_cv_lib_dl_dlopen=no
18017 rm -f core conftest.err conftest.$ac_objext \
18018 conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18022 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18023 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18025 else
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18027 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18029 $as_echo_n "(cached) " >&6
18030 else
18031 ac_check_lib_save_LIBS=$LIBS
18032 LIBS="-lsvld $LIBS"
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char dlopen ();
18044 main ()
18046 return dlopen ();
18048 return 0;
18050 _ACEOF
18051 if ac_fn_c_try_link "$LINENO"; then :
18052 ac_cv_lib_svld_dlopen=yes
18053 else
18054 ac_cv_lib_svld_dlopen=no
18056 rm -f core conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
18058 LIBS=$ac_check_lib_save_LIBS
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18061 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18062 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18064 else
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18066 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18067 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18068 $as_echo_n "(cached) " >&6
18069 else
18070 ac_check_lib_save_LIBS=$LIBS
18071 LIBS="-ldld $LIBS"
18072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073 /* end confdefs.h. */
18075 /* Override any GCC internal prototype to avoid an error.
18076 Use char because int might match the return type of a GCC
18077 builtin and then its argument prototype would still apply. */
18078 #ifdef __cplusplus
18079 extern "C"
18080 #endif
18081 char dld_link ();
18083 main ()
18085 return dld_link ();
18087 return 0;
18089 _ACEOF
18090 if ac_fn_c_try_link "$LINENO"; then :
18091 ac_cv_lib_dld_dld_link=yes
18092 else
18093 ac_cv_lib_dld_dld_link=no
18095 rm -f core conftest.err conftest.$ac_objext \
18096 conftest$ac_exeext conftest.$ac_ext
18097 LIBS=$ac_check_lib_save_LIBS
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18100 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18101 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18102 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18121 esac
18123 if test "x$lt_cv_dlopen" != xno; then
18124 enable_dlopen=yes
18125 else
18126 enable_dlopen=no
18129 case $lt_cv_dlopen in
18130 dlopen)
18131 save_CPPFLAGS="$CPPFLAGS"
18132 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18134 save_LDFLAGS="$LDFLAGS"
18135 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18137 save_LIBS="$LIBS"
18138 LIBS="$lt_cv_dlopen_libs $LIBS"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18141 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18142 if test "${lt_cv_dlopen_self+set}" = set; then :
18143 $as_echo_n "(cached) " >&6
18144 else
18145 if test "$cross_compiling" = yes; then :
18146 lt_cv_dlopen_self=cross
18147 else
18148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18149 lt_status=$lt_dlunknown
18150 cat > conftest.$ac_ext <<_LT_EOF
18151 #line 18151 "configure"
18152 #include "confdefs.h"
18154 #if HAVE_DLFCN_H
18155 #include <dlfcn.h>
18156 #endif
18158 #include <stdio.h>
18160 #ifdef RTLD_GLOBAL
18161 # define LT_DLGLOBAL RTLD_GLOBAL
18162 #else
18163 # ifdef DL_GLOBAL
18164 # define LT_DLGLOBAL DL_GLOBAL
18165 # else
18166 # define LT_DLGLOBAL 0
18167 # endif
18168 #endif
18170 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18171 find out it does not work in some platform. */
18172 #ifndef LT_DLLAZY_OR_NOW
18173 # ifdef RTLD_LAZY
18174 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18175 # else
18176 # ifdef DL_LAZY
18177 # define LT_DLLAZY_OR_NOW DL_LAZY
18178 # else
18179 # ifdef RTLD_NOW
18180 # define LT_DLLAZY_OR_NOW RTLD_NOW
18181 # else
18182 # ifdef DL_NOW
18183 # define LT_DLLAZY_OR_NOW DL_NOW
18184 # else
18185 # define LT_DLLAZY_OR_NOW 0
18186 # endif
18187 # endif
18188 # endif
18189 # endif
18190 #endif
18192 /* When -fvisbility=hidden is used, assume the code has been annotated
18193 correspondingly for the symbols needed. */
18194 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18195 void fnord () __attribute__((visibility("default")));
18196 #endif
18198 void fnord () { int i=42; }
18199 int main ()
18201 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18202 int status = $lt_dlunknown;
18204 if (self)
18206 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18207 else
18209 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18210 else puts (dlerror ());
18212 /* dlclose (self); */
18214 else
18215 puts (dlerror ());
18217 return status;
18219 _LT_EOF
18220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18221 (eval $ac_link) 2>&5
18222 ac_status=$?
18223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18224 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18225 (./conftest; exit; ) >&5 2>/dev/null
18226 lt_status=$?
18227 case x$lt_status in
18228 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18229 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18230 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18231 esac
18232 else :
18233 # compilation failed
18234 lt_cv_dlopen_self=no
18237 rm -fr conftest*
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18242 $as_echo "$lt_cv_dlopen_self" >&6; }
18244 if test "x$lt_cv_dlopen_self" = xyes; then
18245 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18247 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18248 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18249 $as_echo_n "(cached) " >&6
18250 else
18251 if test "$cross_compiling" = yes; then :
18252 lt_cv_dlopen_self_static=cross
18253 else
18254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18255 lt_status=$lt_dlunknown
18256 cat > conftest.$ac_ext <<_LT_EOF
18257 #line 18257 "configure"
18258 #include "confdefs.h"
18260 #if HAVE_DLFCN_H
18261 #include <dlfcn.h>
18262 #endif
18264 #include <stdio.h>
18266 #ifdef RTLD_GLOBAL
18267 # define LT_DLGLOBAL RTLD_GLOBAL
18268 #else
18269 # ifdef DL_GLOBAL
18270 # define LT_DLGLOBAL DL_GLOBAL
18271 # else
18272 # define LT_DLGLOBAL 0
18273 # endif
18274 #endif
18276 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18277 find out it does not work in some platform. */
18278 #ifndef LT_DLLAZY_OR_NOW
18279 # ifdef RTLD_LAZY
18280 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18281 # else
18282 # ifdef DL_LAZY
18283 # define LT_DLLAZY_OR_NOW DL_LAZY
18284 # else
18285 # ifdef RTLD_NOW
18286 # define LT_DLLAZY_OR_NOW RTLD_NOW
18287 # else
18288 # ifdef DL_NOW
18289 # define LT_DLLAZY_OR_NOW DL_NOW
18290 # else
18291 # define LT_DLLAZY_OR_NOW 0
18292 # endif
18293 # endif
18294 # endif
18295 # endif
18296 #endif
18298 /* When -fvisbility=hidden is used, assume the code has been annotated
18299 correspondingly for the symbols needed. */
18300 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18301 void fnord () __attribute__((visibility("default")));
18302 #endif
18304 void fnord () { int i=42; }
18305 int main ()
18307 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18308 int status = $lt_dlunknown;
18310 if (self)
18312 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18313 else
18315 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18316 else puts (dlerror ());
18318 /* dlclose (self); */
18320 else
18321 puts (dlerror ());
18323 return status;
18325 _LT_EOF
18326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18327 (eval $ac_link) 2>&5
18328 ac_status=$?
18329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18331 (./conftest; exit; ) >&5 2>/dev/null
18332 lt_status=$?
18333 case x$lt_status in
18334 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18335 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18336 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18337 esac
18338 else :
18339 # compilation failed
18340 lt_cv_dlopen_self_static=no
18343 rm -fr conftest*
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18348 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18351 CPPFLAGS="$save_CPPFLAGS"
18352 LDFLAGS="$save_LDFLAGS"
18353 LIBS="$save_LIBS"
18355 esac
18357 case $lt_cv_dlopen_self in
18358 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18359 *) enable_dlopen_self=unknown ;;
18360 esac
18362 case $lt_cv_dlopen_self_static in
18363 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18364 *) enable_dlopen_self_static=unknown ;;
18365 esac
18384 striplib=
18385 old_striplib=
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18387 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18388 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18392 $as_echo "yes" >&6; }
18393 else
18394 # FIXME - insert some real tests, host_os isn't really good enough
18395 case $host_os in
18396 darwin*)
18397 if test -n "$STRIP" ; then
18398 striplib="$STRIP -x"
18399 old_striplib="$STRIP -S"
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18401 $as_echo "yes" >&6; }
18402 else
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404 $as_echo "no" >&6; }
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18409 $as_echo "no" >&6; }
18411 esac
18425 # Report which library types will actually be built
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18427 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18429 $as_echo "$can_build_shared" >&6; }
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18432 $as_echo_n "checking whether to build shared libraries... " >&6; }
18433 test "$can_build_shared" = "no" && enable_shared=no
18435 # On AIX, shared libraries and static libraries use the same namespace, and
18436 # are all built from PIC.
18437 case $host_os in
18438 aix3*)
18439 test "$enable_shared" = yes && enable_static=no
18440 if test -n "$RANLIB"; then
18441 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18442 postinstall_cmds='$RANLIB $lib'
18446 aix[4-9]*)
18447 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18448 test "$enable_shared" = yes && enable_static=no
18451 esac
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18453 $as_echo "$enable_shared" >&6; }
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18456 $as_echo_n "checking whether to build static libraries... " >&6; }
18457 # Make sure either enable_shared or enable_static is yes.
18458 test "$enable_shared" = yes || enable_static=yes
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18460 $as_echo "$enable_static" >&6; }
18466 ac_ext=c
18467 ac_cpp='$CPP $CPPFLAGS'
18468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18472 CC="$lt_save_CC"
18474 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18475 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18476 (test "X$CXX" != "Xg++"))) ; then
18477 ac_ext=cpp
18478 ac_cpp='$CXXCPP $CPPFLAGS'
18479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18483 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18484 if test -z "$CXXCPP"; then
18485 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18486 $as_echo_n "(cached) " >&6
18487 else
18488 # Double quotes because CXXCPP needs to be expanded
18489 for CXXCPP in "$CXX -E" "/lib/cpp"
18491 ac_preproc_ok=false
18492 for ac_cxx_preproc_warn_flag in '' yes
18494 # Use a header file that comes with gcc, so configuring glibc
18495 # with a fresh cross-compiler works.
18496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18497 # <limits.h> exists even on freestanding compilers.
18498 # On the NeXT, cc -E runs the code through the compiler's parser,
18499 # not just through cpp. "Syntax error" is here to catch this case.
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502 #ifdef __STDC__
18503 # include <limits.h>
18504 #else
18505 # include <assert.h>
18506 #endif
18507 Syntax error
18508 _ACEOF
18509 if ac_fn_cxx_try_cpp "$LINENO"; then :
18511 else
18512 # Broken: fails on valid input.
18513 continue
18515 rm -f conftest.err conftest.$ac_ext
18517 # OK, works on sane cases. Now check whether nonexistent headers
18518 # can be detected and how.
18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520 /* end confdefs.h. */
18521 #include <ac_nonexistent.h>
18522 _ACEOF
18523 if ac_fn_cxx_try_cpp "$LINENO"; then :
18524 # Broken: success on invalid input.
18525 continue
18526 else
18527 # Passes both tests.
18528 ac_preproc_ok=:
18529 break
18531 rm -f conftest.err conftest.$ac_ext
18533 done
18534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18535 rm -f conftest.err conftest.$ac_ext
18536 if $ac_preproc_ok; then :
18537 break
18540 done
18541 ac_cv_prog_CXXCPP=$CXXCPP
18544 CXXCPP=$ac_cv_prog_CXXCPP
18545 else
18546 ac_cv_prog_CXXCPP=$CXXCPP
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18549 $as_echo "$CXXCPP" >&6; }
18550 ac_preproc_ok=false
18551 for ac_cxx_preproc_warn_flag in '' yes
18553 # Use a header file that comes with gcc, so configuring glibc
18554 # with a fresh cross-compiler works.
18555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18556 # <limits.h> exists even on freestanding compilers.
18557 # On the NeXT, cc -E runs the code through the compiler's parser,
18558 # not just through cpp. "Syntax error" is here to catch this case.
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18561 #ifdef __STDC__
18562 # include <limits.h>
18563 #else
18564 # include <assert.h>
18565 #endif
18566 Syntax error
18567 _ACEOF
18568 if ac_fn_cxx_try_cpp "$LINENO"; then :
18570 else
18571 # Broken: fails on valid input.
18572 continue
18574 rm -f conftest.err conftest.$ac_ext
18576 # OK, works on sane cases. Now check whether nonexistent headers
18577 # can be detected and how.
18578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18579 /* end confdefs.h. */
18580 #include <ac_nonexistent.h>
18581 _ACEOF
18582 if ac_fn_cxx_try_cpp "$LINENO"; then :
18583 # Broken: success on invalid input.
18584 continue
18585 else
18586 # Passes both tests.
18587 ac_preproc_ok=:
18588 break
18590 rm -f conftest.err conftest.$ac_ext
18592 done
18593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18594 rm -f conftest.err conftest.$ac_ext
18595 if $ac_preproc_ok; then :
18597 else
18598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18600 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18601 See \`config.log' for more details." "$LINENO" 5; }
18604 ac_ext=c
18605 ac_cpp='$CPP $CPPFLAGS'
18606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18610 else
18611 _lt_caught_CXX_error=yes
18614 ac_ext=cpp
18615 ac_cpp='$CXXCPP $CPPFLAGS'
18616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18620 archive_cmds_need_lc_CXX=no
18621 allow_undefined_flag_CXX=
18622 always_export_symbols_CXX=no
18623 archive_expsym_cmds_CXX=
18624 compiler_needs_object_CXX=no
18625 export_dynamic_flag_spec_CXX=
18626 hardcode_direct_CXX=no
18627 hardcode_direct_absolute_CXX=no
18628 hardcode_libdir_flag_spec_CXX=
18629 hardcode_libdir_flag_spec_ld_CXX=
18630 hardcode_libdir_separator_CXX=
18631 hardcode_minus_L_CXX=no
18632 hardcode_shlibpath_var_CXX=unsupported
18633 hardcode_automatic_CXX=no
18634 inherit_rpath_CXX=no
18635 module_cmds_CXX=
18636 module_expsym_cmds_CXX=
18637 link_all_deplibs_CXX=unknown
18638 old_archive_cmds_CXX=$old_archive_cmds
18639 reload_flag_CXX=$reload_flag
18640 reload_cmds_CXX=$reload_cmds
18641 no_undefined_flag_CXX=
18642 whole_archive_flag_spec_CXX=
18643 enable_shared_with_static_runtimes_CXX=no
18645 # Source file extension for C++ test sources.
18646 ac_ext=cpp
18648 # Object file extension for compiled C++ test sources.
18649 objext=o
18650 objext_CXX=$objext
18652 # No sense in running all these tests if we already determined that
18653 # the CXX compiler isn't working. Some variables (like enable_shared)
18654 # are currently assumed to apply to all compilers on this platform,
18655 # and will be corrupted by setting them based on a non-working compiler.
18656 if test "$_lt_caught_CXX_error" != yes; then
18657 # Code to be used in simple compile tests
18658 lt_simple_compile_test_code="int some_variable = 0;"
18660 # Code to be used in simple link tests
18661 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18670 # If no C compiler was specified, use CC.
18671 LTCC=${LTCC-"$CC"}
18673 # If no C compiler flags were specified, use CFLAGS.
18674 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18676 # Allow CC to be a program name with arguments.
18677 compiler=$CC
18680 # save warnings/boilerplate of simple test code
18681 ac_outfile=conftest.$ac_objext
18682 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18684 _lt_compiler_boilerplate=`cat conftest.err`
18685 $RM conftest*
18687 ac_outfile=conftest.$ac_objext
18688 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18690 _lt_linker_boilerplate=`cat conftest.err`
18691 $RM -r conftest*
18694 # Allow CC to be a program name with arguments.
18695 lt_save_CC=$CC
18696 lt_save_LD=$LD
18697 lt_save_GCC=$GCC
18698 GCC=$GXX
18699 lt_save_with_gnu_ld=$with_gnu_ld
18700 lt_save_path_LD=$lt_cv_path_LD
18701 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18702 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18703 else
18704 $as_unset lt_cv_prog_gnu_ld
18706 if test -n "${lt_cv_path_LDCXX+set}"; then
18707 lt_cv_path_LD=$lt_cv_path_LDCXX
18708 else
18709 $as_unset lt_cv_path_LD
18711 test -z "${LDCXX+set}" || LD=$LDCXX
18712 CC=${CXX-"c++"}
18713 compiler=$CC
18714 compiler_CXX=$CC
18715 for cc_temp in $compiler""; do
18716 case $cc_temp in
18717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18719 \-*) ;;
18720 *) break;;
18721 esac
18722 done
18723 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18726 if test -n "$compiler"; then
18727 # We don't want -fno-exception when compiling C++ code, so set the
18728 # no_builtin_flag separately
18729 if test "$GXX" = yes; then
18730 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18731 else
18732 lt_prog_compiler_no_builtin_flag_CXX=
18735 if test "$GXX" = yes; then
18736 # Set up default GNU C++ configuration
18740 # Check whether --with-gnu-ld was given.
18741 if test "${with_gnu_ld+set}" = set; then :
18742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18743 else
18744 with_gnu_ld=no
18747 ac_prog=ld
18748 if test "$GCC" = yes; then
18749 # Check if gcc -print-prog-name=ld gives a path.
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18751 $as_echo_n "checking for ld used by $CC... " >&6; }
18752 case $host in
18753 *-*-mingw*)
18754 # gcc leaves a trailing carriage return which upsets mingw
18755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18758 esac
18759 case $ac_prog in
18760 # Accept absolute paths.
18761 [\\/]* | ?:[\\/]*)
18762 re_direlt='/[^/][^/]*/\.\./'
18763 # Canonicalize the pathname of ld
18764 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18765 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18766 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18767 done
18768 test -z "$LD" && LD="$ac_prog"
18771 # If it fails, then pretend we aren't using GCC.
18772 ac_prog=ld
18775 # If it is relative, then search for the first ld in PATH.
18776 with_gnu_ld=unknown
18778 esac
18779 elif test "$with_gnu_ld" = yes; then
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18781 $as_echo_n "checking for GNU ld... " >&6; }
18782 else
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18784 $as_echo_n "checking for non-GNU ld... " >&6; }
18786 if test "${lt_cv_path_LD+set}" = set; then :
18787 $as_echo_n "(cached) " >&6
18788 else
18789 if test -z "$LD"; then
18790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18791 for ac_dir in $PATH; do
18792 IFS="$lt_save_ifs"
18793 test -z "$ac_dir" && ac_dir=.
18794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18795 lt_cv_path_LD="$ac_dir/$ac_prog"
18796 # Check to see if the program is GNU ld. I'd rather use --version,
18797 # but apparently some variants of GNU ld only accept -v.
18798 # Break only if it was the GNU/non-GNU ld that we prefer.
18799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18800 *GNU* | *'with BFD'*)
18801 test "$with_gnu_ld" != no && break
18804 test "$with_gnu_ld" != yes && break
18806 esac
18808 done
18809 IFS="$lt_save_ifs"
18810 else
18811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18815 LD="$lt_cv_path_LD"
18816 if test -n "$LD"; then
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18818 $as_echo "$LD" >&6; }
18819 else
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18821 $as_echo "no" >&6; }
18823 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18825 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18826 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18827 $as_echo_n "(cached) " >&6
18828 else
18829 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18830 case `$LD -v 2>&1 </dev/null` in
18831 *GNU* | *'with BFD'*)
18832 lt_cv_prog_gnu_ld=yes
18835 lt_cv_prog_gnu_ld=no
18837 esac
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18840 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18841 with_gnu_ld=$lt_cv_prog_gnu_ld
18849 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18850 # archiving commands below assume that GNU ld is being used.
18851 if test "$with_gnu_ld" = yes; then
18852 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18853 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'
18855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18858 # If archive_cmds runs LD, not CC, wlarc should be empty
18859 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18860 # investigate it a little bit more. (MM)
18861 wlarc='${wl}'
18863 # ancient GNU ld didn't support --whole-archive et. al.
18864 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18865 $GREP 'no-whole-archive' > /dev/null; then
18866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18867 else
18868 whole_archive_flag_spec_CXX=
18870 else
18871 with_gnu_ld=no
18872 wlarc=
18874 # A generic and very simple default shared library creation
18875 # command for GNU C++ for the case where it uses the native
18876 # linker, instead of GNU ld. If possible, this setting should
18877 # overridden to take advantage of the native linker features on
18878 # the platform it is being used on.
18879 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18882 # Commands to make compiler produce verbose output that lists
18883 # what "hidden" libraries, object files and flags are used when
18884 # linking a shared library.
18885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18887 else
18888 GXX=no
18889 with_gnu_ld=no
18890 wlarc=
18893 # PORTME: fill in a description of your system's C++ link characteristics
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18895 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18896 ld_shlibs_CXX=yes
18897 case $host_os in
18898 aix3*)
18899 # FIXME: insert proper C++ library support
18900 ld_shlibs_CXX=no
18902 aix[4-9]*)
18903 if test "$host_cpu" = ia64; then
18904 # On IA64, the linker does run time linking by default, so we don't
18905 # have to do anything special.
18906 aix_use_runtimelinking=no
18907 exp_sym_flag='-Bexport'
18908 no_entry_flag=""
18909 else
18910 aix_use_runtimelinking=no
18912 # Test if we are trying to use run time linking or normal
18913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18914 # need to do runtime linking.
18915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18916 for ld_flag in $LDFLAGS; do
18917 case $ld_flag in
18918 *-brtl*)
18919 aix_use_runtimelinking=yes
18920 break
18922 esac
18923 done
18925 esac
18927 exp_sym_flag='-bexport'
18928 no_entry_flag='-bnoentry'
18931 # When large executables or shared objects are built, AIX ld can
18932 # have problems creating the table of contents. If linking a library
18933 # or program results in "error TOC overflow" add -mminimal-toc to
18934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18937 archive_cmds_CXX=''
18938 hardcode_direct_CXX=yes
18939 hardcode_direct_absolute_CXX=yes
18940 hardcode_libdir_separator_CXX=':'
18941 link_all_deplibs_CXX=yes
18942 file_list_spec_CXX='${wl}-f,'
18944 if test "$GXX" = yes; then
18945 case $host_os in aix4.[012]|aix4.[012].*)
18946 # We only want to do this on AIX 4.2 and lower, the check
18947 # below for broken collect2 doesn't work under 4.3+
18948 collect2name=`${CC} -print-prog-name=collect2`
18949 if test -f "$collect2name" &&
18950 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18951 then
18952 # We have reworked collect2
18954 else
18955 # We have old collect2
18956 hardcode_direct_CXX=unsupported
18957 # It fails to find uninstalled libraries when the uninstalled
18958 # path is not listed in the libpath. Setting hardcode_minus_L
18959 # to unsupported forces relinking
18960 hardcode_minus_L_CXX=yes
18961 hardcode_libdir_flag_spec_CXX='-L$libdir'
18962 hardcode_libdir_separator_CXX=
18964 esac
18965 shared_flag='-shared'
18966 if test "$aix_use_runtimelinking" = yes; then
18967 shared_flag="$shared_flag "'${wl}-G'
18969 else
18970 # not using gcc
18971 if test "$host_cpu" = ia64; then
18972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18973 # chokes on -Wl,-G. The following line is correct:
18974 shared_flag='-G'
18975 else
18976 if test "$aix_use_runtimelinking" = yes; then
18977 shared_flag='${wl}-G'
18978 else
18979 shared_flag='${wl}-bM:SRE'
18984 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18985 # It seems that -bexpall does not export symbols beginning with
18986 # underscore (_), so it is better to generate a list of symbols to
18987 # export.
18988 always_export_symbols_CXX=yes
18989 if test "$aix_use_runtimelinking" = yes; then
18990 # Warning - without using the other runtime loading flags (-brtl),
18991 # -berok will link without error, but may produce a broken library.
18992 allow_undefined_flag_CXX='-berok'
18993 # Determine the default libpath from the value encoded in an empty
18994 # executable.
18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
18999 main ()
19003 return 0;
19005 _ACEOF
19006 if ac_fn_cxx_try_link "$LINENO"; then :
19008 lt_aix_libpath_sed='
19009 /Import File Strings/,/^$/ {
19010 /^0/ {
19011 s/^0 *\(.*\)$/\1/
19015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19016 # Check for a 64-bit object if we didn't find anything.
19017 if test -z "$aix_libpath"; then
19018 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19021 rm -f core conftest.err conftest.$ac_objext \
19022 conftest$ac_exeext conftest.$ac_ext
19023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19027 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"
19028 else
19029 if test "$host_cpu" = ia64; then
19030 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19031 allow_undefined_flag_CXX="-z nodefs"
19032 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"
19033 else
19034 # Determine the default libpath from the value encoded in an
19035 # empty executable.
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19040 main ()
19044 return 0;
19046 _ACEOF
19047 if ac_fn_cxx_try_link "$LINENO"; then :
19049 lt_aix_libpath_sed='
19050 /Import File Strings/,/^$/ {
19051 /^0/ {
19052 s/^0 *\(.*\)$/\1/
19056 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19057 # Check for a 64-bit object if we didn't find anything.
19058 if test -z "$aix_libpath"; then
19059 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19062 rm -f core conftest.err conftest.$ac_objext \
19063 conftest$ac_exeext conftest.$ac_ext
19064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19066 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19067 # Warning - without using the other run time loading flags,
19068 # -berok will link without error, but may produce a broken library.
19069 no_undefined_flag_CXX=' ${wl}-bernotok'
19070 allow_undefined_flag_CXX=' ${wl}-berok'
19071 if test "$with_gnu_ld" = yes; then
19072 # We only use this code for GNU lds that support --whole-archive.
19073 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19074 else
19075 # Exported symbols can be pulled into shared objects from archives
19076 whole_archive_flag_spec_CXX='$convenience'
19078 archive_cmds_need_lc_CXX=yes
19079 # This is similar to how AIX traditionally builds its shared
19080 # libraries.
19081 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'
19086 beos*)
19087 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19088 allow_undefined_flag_CXX=unsupported
19089 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19090 # support --undefined. This deserves some investigation. FIXME
19091 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19092 else
19093 ld_shlibs_CXX=no
19097 chorus*)
19098 case $cc_basename in
19100 # FIXME: insert proper C++ library support
19101 ld_shlibs_CXX=no
19103 esac
19106 cygwin* | mingw* | pw32* | cegcc*)
19107 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19108 # as there is no search path for DLLs.
19109 hardcode_libdir_flag_spec_CXX='-L$libdir'
19110 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19111 allow_undefined_flag_CXX=unsupported
19112 always_export_symbols_CXX=no
19113 enable_shared_with_static_runtimes_CXX=yes
19115 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19116 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'
19117 # If the export-symbols file already is a .def file (1st line
19118 # is EXPORTS), use it as is; otherwise, prepend...
19119 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19120 cp $export_symbols $output_objdir/$soname.def;
19121 else
19122 echo EXPORTS > $output_objdir/$soname.def;
19123 cat $export_symbols >> $output_objdir/$soname.def;
19125 $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'
19126 else
19127 ld_shlibs_CXX=no
19130 darwin* | rhapsody*)
19133 archive_cmds_need_lc_CXX=no
19134 hardcode_direct_CXX=no
19135 hardcode_automatic_CXX=yes
19136 hardcode_shlibpath_var_CXX=unsupported
19137 if test "$lt_cv_ld_force_load" = "yes"; then
19138 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\"`'
19139 else
19140 whole_archive_flag_spec_CXX=''
19142 link_all_deplibs_CXX=yes
19143 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19144 case $cc_basename in
19145 ifort*) _lt_dar_can_shared=yes ;;
19146 *) _lt_dar_can_shared=$GCC ;;
19147 esac
19148 if test "$_lt_dar_can_shared" = "yes"; then
19149 output_verbose_link_cmd=func_echo_all
19150 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}"
19151 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19152 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}"
19153 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}"
19154 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19155 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}"
19156 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}"
19159 else
19160 ld_shlibs_CXX=no
19165 dgux*)
19166 case $cc_basename in
19167 ec++*)
19168 # FIXME: insert proper C++ library support
19169 ld_shlibs_CXX=no
19171 ghcx*)
19172 # Green Hills C++ Compiler
19173 # FIXME: insert proper C++ library support
19174 ld_shlibs_CXX=no
19177 # FIXME: insert proper C++ library support
19178 ld_shlibs_CXX=no
19180 esac
19183 freebsd2.*)
19184 # C++ shared libraries reported to be fairly broken before
19185 # switch to ELF
19186 ld_shlibs_CXX=no
19189 freebsd-elf*)
19190 archive_cmds_need_lc_CXX=no
19193 freebsd* | dragonfly*)
19194 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19195 # conventions
19196 ld_shlibs_CXX=yes
19199 gnu*)
19202 haiku*)
19203 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19204 link_all_deplibs_CXX=yes
19207 hpux9*)
19208 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19209 hardcode_libdir_separator_CXX=:
19210 export_dynamic_flag_spec_CXX='${wl}-E'
19211 hardcode_direct_CXX=yes
19212 hardcode_minus_L_CXX=yes # Not in the search PATH,
19213 # but as the default
19214 # location of the library.
19216 case $cc_basename in
19217 CC*)
19218 # FIXME: insert proper C++ library support
19219 ld_shlibs_CXX=no
19221 aCC*)
19222 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'
19223 # Commands to make compiler produce verbose output that lists
19224 # what "hidden" libraries, object files and flags are used when
19225 # linking a shared library.
19227 # There doesn't appear to be a way to prevent this compiler from
19228 # explicitly linking system object files so we need to strip them
19229 # from the output so that they don't get included in the library
19230 # dependencies.
19231 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"'
19234 if test "$GXX" = yes; then
19235 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'
19236 else
19237 # FIXME: insert proper C++ library support
19238 ld_shlibs_CXX=no
19241 esac
19244 hpux10*|hpux11*)
19245 if test $with_gnu_ld = no; then
19246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19247 hardcode_libdir_separator_CXX=:
19249 case $host_cpu in
19250 hppa*64*|ia64*)
19253 export_dynamic_flag_spec_CXX='${wl}-E'
19255 esac
19257 case $host_cpu in
19258 hppa*64*|ia64*)
19259 hardcode_direct_CXX=no
19260 hardcode_shlibpath_var_CXX=no
19263 hardcode_direct_CXX=yes
19264 hardcode_direct_absolute_CXX=yes
19265 hardcode_minus_L_CXX=yes # Not in the search PATH,
19266 # but as the default
19267 # location of the library.
19269 esac
19271 case $cc_basename in
19272 CC*)
19273 # FIXME: insert proper C++ library support
19274 ld_shlibs_CXX=no
19276 aCC*)
19277 case $host_cpu in
19278 hppa*64*)
19279 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19281 ia64*)
19282 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19285 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19287 esac
19288 # Commands to make compiler produce verbose output that lists
19289 # what "hidden" libraries, object files and flags are used when
19290 # linking a shared library.
19292 # There doesn't appear to be a way to prevent this compiler from
19293 # explicitly linking system object files so we need to strip them
19294 # from the output so that they don't get included in the library
19295 # dependencies.
19296 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"'
19299 if test "$GXX" = yes; then
19300 if test $with_gnu_ld = no; then
19301 case $host_cpu in
19302 hppa*64*)
19303 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19305 ia64*)
19306 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19309 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'
19311 esac
19313 else
19314 # FIXME: insert proper C++ library support
19315 ld_shlibs_CXX=no
19318 esac
19321 interix[3-9]*)
19322 hardcode_direct_CXX=no
19323 hardcode_shlibpath_var_CXX=no
19324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19325 export_dynamic_flag_spec_CXX='${wl}-E'
19326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19327 # Instead, shared libraries are loaded at an image base (0x10000000 by
19328 # default) and relocated if they conflict, which is a slow very memory
19329 # consuming and fragmenting process. To avoid this, we pick a random,
19330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19331 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19332 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'
19333 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'
19335 irix5* | irix6*)
19336 case $cc_basename in
19337 CC*)
19338 # SGI C++
19339 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'
19341 # Archives containing C++ object files must be created using
19342 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19343 # necessary to make sure instantiated templates are included
19344 # in the archive.
19345 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19348 if test "$GXX" = yes; then
19349 if test "$with_gnu_ld" = no; then
19350 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'
19351 else
19352 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'
19355 link_all_deplibs_CXX=yes
19357 esac
19358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19359 hardcode_libdir_separator_CXX=:
19360 inherit_rpath_CXX=yes
19363 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19364 case $cc_basename in
19365 KCC*)
19366 # Kuck and Associates, Inc. (KAI) C++ Compiler
19368 # KCC will only create a shared library if the output file
19369 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19370 # to its proper name (with version) after linking.
19371 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'
19372 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'
19373 # Commands to make compiler produce verbose output that lists
19374 # what "hidden" libraries, object files and flags are used when
19375 # linking a shared library.
19377 # There doesn't appear to be a way to prevent this compiler from
19378 # explicitly linking system object files so we need to strip them
19379 # from the output so that they don't get included in the library
19380 # dependencies.
19381 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"'
19383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19386 # Archives containing C++ object files must be created using
19387 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19388 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19390 icpc* | ecpc* )
19391 # Intel C++
19392 with_gnu_ld=yes
19393 # version 8.0 and above of icpc choke on multiply defined symbols
19394 # if we add $predep_objects and $postdep_objects, however 7.1 and
19395 # earlier do not add the objects themselves.
19396 case `$CC -V 2>&1` in
19397 *"Version 7."*)
19398 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19399 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'
19401 *) # Version 8.0 or newer
19402 tmp_idyn=
19403 case $host_cpu in
19404 ia64*) tmp_idyn=' -i_dynamic';;
19405 esac
19406 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19407 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'
19409 esac
19410 archive_cmds_need_lc_CXX=no
19411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19413 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19415 pgCC* | pgcpp*)
19416 # Portland Group C++ compiler
19417 case `$CC -V` in
19418 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19419 prelink_cmds_CXX='tpldir=Template.dir~
19420 rm -rf $tpldir~
19421 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19422 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19423 old_archive_cmds_CXX='tpldir=Template.dir~
19424 rm -rf $tpldir~
19425 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19426 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19427 $RANLIB $oldlib'
19428 archive_cmds_CXX='tpldir=Template.dir~
19429 rm -rf $tpldir~
19430 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19431 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19432 archive_expsym_cmds_CXX='tpldir=Template.dir~
19433 rm -rf $tpldir~
19434 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19435 $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'
19437 *) # Version 6 and above use weak symbols
19438 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19439 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'
19441 esac
19443 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19445 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'
19447 cxx*)
19448 # Compaq C++
19449 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19450 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'
19452 runpath_var=LD_RUN_PATH
19453 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19454 hardcode_libdir_separator_CXX=:
19456 # Commands to make compiler produce verbose output that lists
19457 # what "hidden" libraries, object files and flags are used when
19458 # linking a shared library.
19460 # There doesn't appear to be a way to prevent this compiler from
19461 # explicitly linking system object files so we need to strip them
19462 # from the output so that they don't get included in the library
19463 # dependencies.
19464 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'
19466 xl* | mpixl* | bgxl*)
19467 # IBM XL 8.0 on PPC, with GNU ld
19468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19469 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19470 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19471 if test "x$supports_anon_versioning" = xyes; then
19472 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19474 echo "local: *; };" >> $output_objdir/$libname.ver~
19475 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19479 case `$CC -V 2>&1 | sed 5q` in
19480 *Sun\ C*)
19481 # Sun C++ 5.9
19482 no_undefined_flag_CXX=' -zdefs'
19483 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19484 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'
19485 hardcode_libdir_flag_spec_CXX='-R$libdir'
19486 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'
19487 compiler_needs_object_CXX=yes
19489 # Not sure whether something based on
19490 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19491 # would be better.
19492 output_verbose_link_cmd='func_echo_all'
19494 # Archives containing C++ object files must be created using
19495 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19496 # necessary to make sure instantiated templates are included
19497 # in the archive.
19498 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19500 esac
19502 esac
19505 lynxos*)
19506 # FIXME: insert proper C++ library support
19507 ld_shlibs_CXX=no
19510 m88k*)
19511 # FIXME: insert proper C++ library support
19512 ld_shlibs_CXX=no
19515 mvs*)
19516 case $cc_basename in
19517 cxx*)
19518 # FIXME: insert proper C++ library support
19519 ld_shlibs_CXX=no
19522 # FIXME: insert proper C++ library support
19523 ld_shlibs_CXX=no
19525 esac
19528 netbsd*)
19529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19530 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19531 wlarc=
19532 hardcode_libdir_flag_spec_CXX='-R$libdir'
19533 hardcode_direct_CXX=yes
19534 hardcode_shlibpath_var_CXX=no
19536 # Workaround some broken pre-1.5 toolchains
19537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19540 *nto* | *qnx*)
19541 ld_shlibs_CXX=yes
19544 openbsd2*)
19545 # C++ shared libraries are fairly broken
19546 ld_shlibs_CXX=no
19549 openbsd*)
19550 if test -f /usr/libexec/ld.so; then
19551 hardcode_direct_CXX=yes
19552 hardcode_shlibpath_var_CXX=no
19553 hardcode_direct_absolute_CXX=yes
19554 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19557 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19558 export_dynamic_flag_spec_CXX='${wl}-E'
19559 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19561 output_verbose_link_cmd=func_echo_all
19562 else
19563 ld_shlibs_CXX=no
19567 osf3* | osf4* | osf5*)
19568 case $cc_basename in
19569 KCC*)
19570 # Kuck and Associates, Inc. (KAI) C++ Compiler
19572 # KCC will only create a shared library if the output file
19573 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19574 # to its proper name (with version) after linking.
19575 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'
19577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19578 hardcode_libdir_separator_CXX=:
19580 # Archives containing C++ object files must be created using
19581 # the KAI C++ compiler.
19582 case $host in
19583 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19584 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19585 esac
19587 RCC*)
19588 # Rational C++ 2.4.1
19589 # FIXME: insert proper C++ library support
19590 ld_shlibs_CXX=no
19592 cxx*)
19593 case $host in
19594 osf3*)
19595 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19596 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'
19597 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19600 allow_undefined_flag_CXX=' -expect_unresolved \*'
19601 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'
19602 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19603 echo "-hidden">> $lib.exp~
19604 $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~
19605 $RM $lib.exp'
19606 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19608 esac
19610 hardcode_libdir_separator_CXX=:
19612 # Commands to make compiler produce verbose output that lists
19613 # what "hidden" libraries, object files and flags are used when
19614 # linking a shared library.
19616 # There doesn't appear to be a way to prevent this compiler from
19617 # explicitly linking system object files so we need to strip them
19618 # from the output so that they don't get included in the library
19619 # dependencies.
19620 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"'
19623 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19624 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19625 case $host in
19626 osf3*)
19627 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'
19630 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'
19632 esac
19634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19635 hardcode_libdir_separator_CXX=:
19637 # Commands to make compiler produce verbose output that lists
19638 # what "hidden" libraries, object files and flags are used when
19639 # linking a shared library.
19640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19642 else
19643 # FIXME: insert proper C++ library support
19644 ld_shlibs_CXX=no
19647 esac
19650 psos*)
19651 # FIXME: insert proper C++ library support
19652 ld_shlibs_CXX=no
19655 sunos4*)
19656 case $cc_basename in
19657 CC*)
19658 # Sun C++ 4.x
19659 # FIXME: insert proper C++ library support
19660 ld_shlibs_CXX=no
19662 lcc*)
19663 # Lucid
19664 # FIXME: insert proper C++ library support
19665 ld_shlibs_CXX=no
19668 # FIXME: insert proper C++ library support
19669 ld_shlibs_CXX=no
19671 esac
19674 solaris*)
19675 case $cc_basename in
19676 CC*)
19677 # Sun C++ 4.2, 5.x and Centerline C++
19678 archive_cmds_need_lc_CXX=yes
19679 no_undefined_flag_CXX=' -zdefs'
19680 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19681 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19682 $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'
19684 hardcode_libdir_flag_spec_CXX='-R$libdir'
19685 hardcode_shlibpath_var_CXX=no
19686 case $host_os in
19687 solaris2.[0-5] | solaris2.[0-5].*) ;;
19689 # The compiler driver will combine and reorder linker options,
19690 # but understands `-z linker_flag'.
19691 # Supported since Solaris 2.6 (maybe 2.5.1?)
19692 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19694 esac
19695 link_all_deplibs_CXX=yes
19697 output_verbose_link_cmd='func_echo_all'
19699 # Archives containing C++ object files must be created using
19700 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19701 # necessary to make sure instantiated templates are included
19702 # in the archive.
19703 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19705 gcx*)
19706 # Green Hills C++ Compiler
19707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19709 # The C++ compiler must be used to create the archive.
19710 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19713 # GNU C++ compiler with Solaris linker
19714 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19715 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19716 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19717 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19718 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19719 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19721 # Commands to make compiler produce verbose output that lists
19722 # what "hidden" libraries, object files and flags are used when
19723 # linking a shared library.
19724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19725 else
19726 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19727 # platform.
19728 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19729 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19730 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19732 # Commands to make compiler produce verbose output that lists
19733 # what "hidden" libraries, object files and flags are used when
19734 # linking a shared library.
19735 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19738 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19739 case $host_os in
19740 solaris2.[0-5] | solaris2.[0-5].*) ;;
19742 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19744 esac
19747 esac
19750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19751 no_undefined_flag_CXX='${wl}-z,text'
19752 archive_cmds_need_lc_CXX=no
19753 hardcode_shlibpath_var_CXX=no
19754 runpath_var='LD_RUN_PATH'
19756 case $cc_basename in
19757 CC*)
19758 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19759 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19762 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19763 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19765 esac
19768 sysv5* | sco3.2v5* | sco5v6*)
19769 # Note: We can NOT use -z defs as we might desire, because we do not
19770 # link with -lc, and that would cause any symbols used from libc to
19771 # always be unresolved, which means just about no library would
19772 # ever link correctly. If we're not using GNU ld we use -z text
19773 # though, which does catch some bad symbols but isn't as heavy-handed
19774 # as -z defs.
19775 no_undefined_flag_CXX='${wl}-z,text'
19776 allow_undefined_flag_CXX='${wl}-z,nodefs'
19777 archive_cmds_need_lc_CXX=no
19778 hardcode_shlibpath_var_CXX=no
19779 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19780 hardcode_libdir_separator_CXX=':'
19781 link_all_deplibs_CXX=yes
19782 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19783 runpath_var='LD_RUN_PATH'
19785 case $cc_basename in
19786 CC*)
19787 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19788 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19789 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19790 '"$old_archive_cmds_CXX"
19791 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19792 '"$reload_cmds_CXX"
19795 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19796 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19798 esac
19801 tandem*)
19802 case $cc_basename in
19803 NCC*)
19804 # NonStop-UX NCC 3.20
19805 # FIXME: insert proper C++ library support
19806 ld_shlibs_CXX=no
19809 # FIXME: insert proper C++ library support
19810 ld_shlibs_CXX=no
19812 esac
19815 vxworks*)
19816 # FIXME: insert proper C++ library support
19817 ld_shlibs_CXX=no
19821 # FIXME: insert proper C++ library support
19822 ld_shlibs_CXX=no
19824 esac
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19827 $as_echo "$ld_shlibs_CXX" >&6; }
19828 test "$ld_shlibs_CXX" = no && can_build_shared=no
19830 GCC_CXX="$GXX"
19831 LD_CXX="$LD"
19833 ## CAVEAT EMPTOR:
19834 ## There is no encapsulation within the following macros, do not change
19835 ## the running order or otherwise move them around unless you know exactly
19836 ## what you are doing...
19837 # Dependencies to place before and after the object being linked:
19838 predep_objects_CXX=
19839 postdep_objects_CXX=
19840 predeps_CXX=
19841 postdeps_CXX=
19842 compiler_lib_search_path_CXX=
19844 cat > conftest.$ac_ext <<_LT_EOF
19845 class Foo
19847 public:
19848 Foo (void) { a = 0; }
19849 private:
19850 int a;
19852 _LT_EOF
19854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19855 (eval $ac_compile) 2>&5
19856 ac_status=$?
19857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19858 test $ac_status = 0; }; then
19859 # Parse the compiler output and extract the necessary
19860 # objects, libraries and library flags.
19862 # Sentinel used to keep track of whether or not we are before
19863 # the conftest object file.
19864 pre_test_object_deps_done=no
19866 for p in `eval "$output_verbose_link_cmd"`; do
19867 case $p in
19869 -L* | -R* | -l*)
19870 # Some compilers place space between "-{L,R}" and the path.
19871 # Remove the space.
19872 if test $p = "-L" ||
19873 test $p = "-R"; then
19874 prev=$p
19875 continue
19876 else
19877 prev=
19880 if test "$pre_test_object_deps_done" = no; then
19881 case $p in
19882 -L* | -R*)
19883 # Internal compiler library paths should come after those
19884 # provided the user. The postdeps already come after the
19885 # user supplied libs so there is no need to process them.
19886 if test -z "$compiler_lib_search_path_CXX"; then
19887 compiler_lib_search_path_CXX="${prev}${p}"
19888 else
19889 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19892 # The "-l" case would never come before the object being
19893 # linked, so don't bother handling this case.
19894 esac
19895 else
19896 if test -z "$postdeps_CXX"; then
19897 postdeps_CXX="${prev}${p}"
19898 else
19899 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19904 *.$objext)
19905 # This assumes that the test object file only shows up
19906 # once in the compiler output.
19907 if test "$p" = "conftest.$objext"; then
19908 pre_test_object_deps_done=yes
19909 continue
19912 if test "$pre_test_object_deps_done" = no; then
19913 if test -z "$predep_objects_CXX"; then
19914 predep_objects_CXX="$p"
19915 else
19916 predep_objects_CXX="$predep_objects_CXX $p"
19918 else
19919 if test -z "$postdep_objects_CXX"; then
19920 postdep_objects_CXX="$p"
19921 else
19922 postdep_objects_CXX="$postdep_objects_CXX $p"
19927 *) ;; # Ignore the rest.
19929 esac
19930 done
19932 # Clean up.
19933 rm -f a.out a.exe
19934 else
19935 echo "libtool.m4: error: problem compiling CXX test program"
19938 $RM -f confest.$objext
19940 # PORTME: override above test on systems where it is broken
19941 case $host_os in
19942 interix[3-9]*)
19943 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19944 # hack all around it, let's just trust "g++" to DTRT.
19945 predep_objects_CXX=
19946 postdep_objects_CXX=
19947 postdeps_CXX=
19950 linux*)
19951 case `$CC -V 2>&1 | sed 5q` in
19952 *Sun\ C*)
19953 # Sun C++ 5.9
19955 # The more standards-conforming stlport4 library is
19956 # incompatible with the Cstd library. Avoid specifying
19957 # it if it's in CXXFLAGS. Ignore libCrun as
19958 # -library=stlport4 depends on it.
19959 case " $CXX $CXXFLAGS " in
19960 *" -library=stlport4 "*)
19961 solaris_use_stlport4=yes
19963 esac
19965 if test "$solaris_use_stlport4" != yes; then
19966 postdeps_CXX='-library=Cstd -library=Crun'
19969 esac
19972 solaris*)
19973 case $cc_basename in
19974 CC*)
19975 # The more standards-conforming stlport4 library is
19976 # incompatible with the Cstd library. Avoid specifying
19977 # it if it's in CXXFLAGS. Ignore libCrun as
19978 # -library=stlport4 depends on it.
19979 case " $CXX $CXXFLAGS " in
19980 *" -library=stlport4 "*)
19981 solaris_use_stlport4=yes
19983 esac
19985 # Adding this requires a known-good setup of shared libraries for
19986 # Sun compiler versions before 5.6, else PIC objects from an old
19987 # archive will be linked into the output, leading to subtle bugs.
19988 if test "$solaris_use_stlport4" != yes; then
19989 postdeps_CXX='-library=Cstd -library=Crun'
19992 esac
19994 esac
19997 case " $postdeps_CXX " in
19998 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19999 esac
20000 compiler_lib_search_dirs_CXX=
20001 if test -n "${compiler_lib_search_path_CXX}"; then
20002 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20035 lt_prog_compiler_wl_CXX=
20036 lt_prog_compiler_pic_CXX=
20037 lt_prog_compiler_static_CXX=
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20040 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20042 # C++ specific cases for pic, static, wl, etc.
20043 if test "$GXX" = yes; then
20044 lt_prog_compiler_wl_CXX='-Wl,'
20045 lt_prog_compiler_static_CXX='-static'
20047 case $host_os in
20048 aix*)
20049 # All AIX code is PIC.
20050 if test "$host_cpu" = ia64; then
20051 # AIX 5 now supports IA64 processor
20052 lt_prog_compiler_static_CXX='-Bstatic'
20054 lt_prog_compiler_pic_CXX='-fPIC'
20057 amigaos*)
20058 case $host_cpu in
20059 powerpc)
20060 # see comment about AmigaOS4 .so support
20061 lt_prog_compiler_pic_CXX='-fPIC'
20063 m68k)
20064 # FIXME: we need at least 68020 code to build shared libraries, but
20065 # adding the `-m68020' flag to GCC prevents building anything better,
20066 # like `-m68040'.
20067 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20069 esac
20072 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20073 # PIC is the default for these OSes.
20075 mingw* | cygwin* | os2* | pw32* | cegcc*)
20076 # This hack is so that the source file can tell whether it is being
20077 # built for inclusion in a dll (and should export symbols for example).
20078 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20079 # (--disable-auto-import) libraries
20080 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20082 darwin* | rhapsody*)
20083 # PIC is the default on this platform
20084 # Common symbols not allowed in MH_DYLIB files
20085 lt_prog_compiler_pic_CXX='-fno-common'
20087 *djgpp*)
20088 # DJGPP does not support shared libraries at all
20089 lt_prog_compiler_pic_CXX=
20091 haiku*)
20092 # PIC is the default for Haiku.
20093 # The "-static" flag exists, but is broken.
20094 lt_prog_compiler_static_CXX=
20096 interix[3-9]*)
20097 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20098 # Instead, we relocate shared libraries at runtime.
20100 sysv4*MP*)
20101 if test -d /usr/nec; then
20102 lt_prog_compiler_pic_CXX=-Kconform_pic
20105 hpux*)
20106 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20107 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20108 # sets the default TLS model and affects inlining.
20109 case $host_cpu in
20110 hppa*64*)
20113 lt_prog_compiler_pic_CXX='-fPIC'
20115 esac
20117 *qnx* | *nto*)
20118 # QNX uses GNU C++, but need to define -shared option too, otherwise
20119 # it will coredump.
20120 lt_prog_compiler_pic_CXX='-fPIC -shared'
20123 lt_prog_compiler_pic_CXX='-fPIC'
20125 esac
20126 else
20127 case $host_os in
20128 aix[4-9]*)
20129 # All AIX code is PIC.
20130 if test "$host_cpu" = ia64; then
20131 # AIX 5 now supports IA64 processor
20132 lt_prog_compiler_static_CXX='-Bstatic'
20133 else
20134 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20137 chorus*)
20138 case $cc_basename in
20139 cxch68*)
20140 # Green Hills C++ Compiler
20141 # _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"
20143 esac
20145 dgux*)
20146 case $cc_basename in
20147 ec++*)
20148 lt_prog_compiler_pic_CXX='-KPIC'
20150 ghcx*)
20151 # Green Hills C++ Compiler
20152 lt_prog_compiler_pic_CXX='-pic'
20156 esac
20158 freebsd* | dragonfly*)
20159 # FreeBSD uses GNU C++
20161 hpux9* | hpux10* | hpux11*)
20162 case $cc_basename in
20163 CC*)
20164 lt_prog_compiler_wl_CXX='-Wl,'
20165 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20166 if test "$host_cpu" != ia64; then
20167 lt_prog_compiler_pic_CXX='+Z'
20170 aCC*)
20171 lt_prog_compiler_wl_CXX='-Wl,'
20172 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20173 case $host_cpu in
20174 hppa*64*|ia64*)
20175 # +Z the default
20178 lt_prog_compiler_pic_CXX='+Z'
20180 esac
20184 esac
20186 interix*)
20187 # This is c89, which is MS Visual C++ (no shared libs)
20188 # Anyone wants to do a port?
20190 irix5* | irix6* | nonstopux*)
20191 case $cc_basename in
20192 CC*)
20193 lt_prog_compiler_wl_CXX='-Wl,'
20194 lt_prog_compiler_static_CXX='-non_shared'
20195 # CC pic flag -KPIC is the default.
20199 esac
20201 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20202 case $cc_basename in
20203 KCC*)
20204 # KAI C++ Compiler
20205 lt_prog_compiler_wl_CXX='--backend -Wl,'
20206 lt_prog_compiler_pic_CXX='-fPIC'
20208 ecpc* )
20209 # old Intel C++ for x86_64 which still supported -KPIC.
20210 lt_prog_compiler_wl_CXX='-Wl,'
20211 lt_prog_compiler_pic_CXX='-KPIC'
20212 lt_prog_compiler_static_CXX='-static'
20214 icpc* )
20215 # Intel C++, used to be incompatible with GCC.
20216 # ICC 10 doesn't accept -KPIC any more.
20217 lt_prog_compiler_wl_CXX='-Wl,'
20218 lt_prog_compiler_pic_CXX='-fPIC'
20219 lt_prog_compiler_static_CXX='-static'
20221 pgCC* | pgcpp*)
20222 # Portland Group C++ compiler
20223 lt_prog_compiler_wl_CXX='-Wl,'
20224 lt_prog_compiler_pic_CXX='-fpic'
20225 lt_prog_compiler_static_CXX='-Bstatic'
20227 cxx*)
20228 # Compaq C++
20229 # Make sure the PIC flag is empty. It appears that all Alpha
20230 # Linux and Compaq Tru64 Unix objects are PIC.
20231 lt_prog_compiler_pic_CXX=
20232 lt_prog_compiler_static_CXX='-non_shared'
20234 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20235 # IBM XL 8.0, 9.0 on PPC and BlueGene
20236 lt_prog_compiler_wl_CXX='-Wl,'
20237 lt_prog_compiler_pic_CXX='-qpic'
20238 lt_prog_compiler_static_CXX='-qstaticlink'
20241 case `$CC -V 2>&1 | sed 5q` in
20242 *Sun\ C*)
20243 # Sun C++ 5.9
20244 lt_prog_compiler_pic_CXX='-KPIC'
20245 lt_prog_compiler_static_CXX='-Bstatic'
20246 lt_prog_compiler_wl_CXX='-Qoption ld '
20248 esac
20250 esac
20252 lynxos*)
20254 m88k*)
20256 mvs*)
20257 case $cc_basename in
20258 cxx*)
20259 lt_prog_compiler_pic_CXX='-W c,exportall'
20263 esac
20265 netbsd*)
20267 *qnx* | *nto*)
20268 # QNX uses GNU C++, but need to define -shared option too, otherwise
20269 # it will coredump.
20270 lt_prog_compiler_pic_CXX='-fPIC -shared'
20272 osf3* | osf4* | osf5*)
20273 case $cc_basename in
20274 KCC*)
20275 lt_prog_compiler_wl_CXX='--backend -Wl,'
20277 RCC*)
20278 # Rational C++ 2.4.1
20279 lt_prog_compiler_pic_CXX='-pic'
20281 cxx*)
20282 # Digital/Compaq C++
20283 lt_prog_compiler_wl_CXX='-Wl,'
20284 # Make sure the PIC flag is empty. It appears that all Alpha
20285 # Linux and Compaq Tru64 Unix objects are PIC.
20286 lt_prog_compiler_pic_CXX=
20287 lt_prog_compiler_static_CXX='-non_shared'
20291 esac
20293 psos*)
20295 solaris*)
20296 case $cc_basename in
20297 CC*)
20298 # Sun C++ 4.2, 5.x and Centerline C++
20299 lt_prog_compiler_pic_CXX='-KPIC'
20300 lt_prog_compiler_static_CXX='-Bstatic'
20301 lt_prog_compiler_wl_CXX='-Qoption ld '
20303 gcx*)
20304 # Green Hills C++ Compiler
20305 lt_prog_compiler_pic_CXX='-PIC'
20309 esac
20311 sunos4*)
20312 case $cc_basename in
20313 CC*)
20314 # Sun C++ 4.x
20315 lt_prog_compiler_pic_CXX='-pic'
20316 lt_prog_compiler_static_CXX='-Bstatic'
20318 lcc*)
20319 # Lucid
20320 lt_prog_compiler_pic_CXX='-pic'
20324 esac
20326 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20327 case $cc_basename in
20328 CC*)
20329 lt_prog_compiler_wl_CXX='-Wl,'
20330 lt_prog_compiler_pic_CXX='-KPIC'
20331 lt_prog_compiler_static_CXX='-Bstatic'
20333 esac
20335 tandem*)
20336 case $cc_basename in
20337 NCC*)
20338 # NonStop-UX NCC 3.20
20339 lt_prog_compiler_pic_CXX='-KPIC'
20343 esac
20345 vxworks*)
20348 lt_prog_compiler_can_build_shared_CXX=no
20350 esac
20353 case $host_os in
20354 # For platforms which do not support PIC, -DPIC is meaningless:
20355 *djgpp*)
20356 lt_prog_compiler_pic_CXX=
20359 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20361 esac
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20363 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20368 # Check to make sure the PIC flag actually works.
20370 if test -n "$lt_prog_compiler_pic_CXX"; then
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20372 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20373 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20374 $as_echo_n "(cached) " >&6
20375 else
20376 lt_cv_prog_compiler_pic_works_CXX=no
20377 ac_outfile=conftest.$ac_objext
20378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20379 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20380 # Insert the option either (1) after the last *FLAGS variable, or
20381 # (2) before a word containing "conftest.", or (3) at the end.
20382 # Note that $ac_compile itself does not contain backslashes and begins
20383 # with a dollar sign (not a hyphen), so the echo should work correctly.
20384 # The option is referenced via a variable to avoid confusing sed.
20385 lt_compile=`echo "$ac_compile" | $SED \
20386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20388 -e 's:$: $lt_compiler_flag:'`
20389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20390 (eval "$lt_compile" 2>conftest.err)
20391 ac_status=$?
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 if (exit $ac_status) && test -s "$ac_outfile"; then
20395 # The compiler can only warn and ignore the option if not recognized
20396 # So say no if there are warnings other than the usual output.
20397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20400 lt_cv_prog_compiler_pic_works_CXX=yes
20403 $RM conftest*
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20407 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20409 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20410 case $lt_prog_compiler_pic_CXX in
20411 "" | " "*) ;;
20412 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20413 esac
20414 else
20415 lt_prog_compiler_pic_CXX=
20416 lt_prog_compiler_can_build_shared_CXX=no
20424 # Check to make sure the static flag actually works.
20426 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20428 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20429 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20430 $as_echo_n "(cached) " >&6
20431 else
20432 lt_cv_prog_compiler_static_works_CXX=no
20433 save_LDFLAGS="$LDFLAGS"
20434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20435 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20437 # The linker can only warn and ignore the option if not recognized
20438 # So say no if there are warnings
20439 if test -s conftest.err; then
20440 # Append any errors to the config.log.
20441 cat conftest.err 1>&5
20442 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20444 if diff conftest.exp conftest.er2 >/dev/null; then
20445 lt_cv_prog_compiler_static_works_CXX=yes
20447 else
20448 lt_cv_prog_compiler_static_works_CXX=yes
20451 $RM -r conftest*
20452 LDFLAGS="$save_LDFLAGS"
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20456 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20458 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20460 else
20461 lt_prog_compiler_static_CXX=
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20468 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20469 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20470 $as_echo_n "(cached) " >&6
20471 else
20472 lt_cv_prog_compiler_c_o_CXX=no
20473 $RM -r conftest 2>/dev/null
20474 mkdir conftest
20475 cd conftest
20476 mkdir out
20477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20479 lt_compiler_flag="-o out/conftest2.$ac_objext"
20480 # Insert the option either (1) after the last *FLAGS variable, or
20481 # (2) before a word containing "conftest.", or (3) at the end.
20482 # Note that $ac_compile itself does not contain backslashes and begins
20483 # with a dollar sign (not a hyphen), so the echo should work correctly.
20484 lt_compile=`echo "$ac_compile" | $SED \
20485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20487 -e 's:$: $lt_compiler_flag:'`
20488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20489 (eval "$lt_compile" 2>out/conftest.err)
20490 ac_status=$?
20491 cat out/conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20494 then
20495 # The compiler can only warn and ignore the option if not recognized
20496 # So say no if there are warnings
20497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20498 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20499 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20500 lt_cv_prog_compiler_c_o_CXX=yes
20503 chmod u+w . 2>&5
20504 $RM conftest*
20505 # SGI C++ compiler will create directory out/ii_files/ for
20506 # template instantiation
20507 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20508 $RM out/* && rmdir out
20509 cd ..
20510 $RM -r conftest
20511 $RM conftest*
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20515 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20520 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20521 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20522 $as_echo_n "(cached) " >&6
20523 else
20524 lt_cv_prog_compiler_c_o_CXX=no
20525 $RM -r conftest 2>/dev/null
20526 mkdir conftest
20527 cd conftest
20528 mkdir out
20529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20531 lt_compiler_flag="-o out/conftest2.$ac_objext"
20532 # Insert the option either (1) after the last *FLAGS variable, or
20533 # (2) before a word containing "conftest.", or (3) at the end.
20534 # Note that $ac_compile itself does not contain backslashes and begins
20535 # with a dollar sign (not a hyphen), so the echo should work correctly.
20536 lt_compile=`echo "$ac_compile" | $SED \
20537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20539 -e 's:$: $lt_compiler_flag:'`
20540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20541 (eval "$lt_compile" 2>out/conftest.err)
20542 ac_status=$?
20543 cat out/conftest.err >&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20546 then
20547 # The compiler can only warn and ignore the option if not recognized
20548 # So say no if there are warnings
20549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20552 lt_cv_prog_compiler_c_o_CXX=yes
20555 chmod u+w . 2>&5
20556 $RM conftest*
20557 # SGI C++ compiler will create directory out/ii_files/ for
20558 # template instantiation
20559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20560 $RM out/* && rmdir out
20561 cd ..
20562 $RM -r conftest
20563 $RM conftest*
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20567 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20572 hard_links="nottested"
20573 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20574 # do not overwrite the value of need_locks provided by the user
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20576 $as_echo_n "checking if we can lock with hard links... " >&6; }
20577 hard_links=yes
20578 $RM conftest*
20579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20580 touch conftest.a
20581 ln conftest.a conftest.b 2>&5 || hard_links=no
20582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20584 $as_echo "$hard_links" >&6; }
20585 if test "$hard_links" = no; then
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20587 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20588 need_locks=warn
20590 else
20591 need_locks=no
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20597 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20599 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20600 case $host_os in
20601 aix[4-9]*)
20602 # If we're using GNU nm, then we don't want the "-C" option.
20603 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20604 # Also, AIX nm treats weak defined symbols like other global defined
20605 # symbols, whereas GNU nm marks them as "W".
20606 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20607 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'
20608 else
20609 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'
20612 pw32*)
20613 export_symbols_cmds_CXX="$ltdll_cmds"
20615 cygwin* | mingw* | cegcc*)
20616 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'
20619 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20621 esac
20622 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20625 $as_echo "$ld_shlibs_CXX" >&6; }
20626 test "$ld_shlibs_CXX" = no && can_build_shared=no
20628 with_gnu_ld_CXX=$with_gnu_ld
20636 # Do we need to explicitly link libc?
20638 case "x$archive_cmds_need_lc_CXX" in
20639 x|xyes)
20640 # Assume -lc should be added
20641 archive_cmds_need_lc_CXX=yes
20643 if test "$enable_shared" = yes && test "$GCC" = yes; then
20644 case $archive_cmds_CXX in
20645 *'~'*)
20646 # FIXME: we may have to deal with multi-command sequences.
20648 '$CC '*)
20649 # Test whether the compiler implicitly links with -lc since on some
20650 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20651 # to ld, don't add -lc before -lgcc.
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20653 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20654 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20655 $as_echo_n "(cached) " >&6
20656 else
20657 $RM conftest*
20658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20661 (eval $ac_compile) 2>&5
20662 ac_status=$?
20663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20664 test $ac_status = 0; } 2>conftest.err; then
20665 soname=conftest
20666 lib=conftest
20667 libobjs=conftest.$ac_objext
20668 deplibs=
20669 wl=$lt_prog_compiler_wl_CXX
20670 pic_flag=$lt_prog_compiler_pic_CXX
20671 compiler_flags=-v
20672 linker_flags=-v
20673 verstring=
20674 output_objdir=.
20675 libname=conftest
20676 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20677 allow_undefined_flag_CXX=
20678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20679 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20680 ac_status=$?
20681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20682 test $ac_status = 0; }
20683 then
20684 lt_cv_archive_cmds_need_lc_CXX=no
20685 else
20686 lt_cv_archive_cmds_need_lc_CXX=yes
20688 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20689 else
20690 cat conftest.err 1>&5
20692 $RM conftest*
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20696 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20697 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20699 esac
20702 esac
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20768 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20770 library_names_spec=
20771 libname_spec='lib$name'
20772 soname_spec=
20773 shrext_cmds=".so"
20774 postinstall_cmds=
20775 postuninstall_cmds=
20776 finish_cmds=
20777 finish_eval=
20778 shlibpath_var=
20779 shlibpath_overrides_runpath=unknown
20780 version_type=none
20781 dynamic_linker="$host_os ld.so"
20782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20783 need_lib_prefix=unknown
20784 hardcode_into_libs=no
20786 # when you set need_version to no, make sure it does not cause -set_version
20787 # flags to be left without arguments
20788 need_version=unknown
20790 case $host_os in
20791 aix3*)
20792 version_type=linux
20793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20794 shlibpath_var=LIBPATH
20796 # AIX 3 has no versioning support, so we append a major version to the name.
20797 soname_spec='${libname}${release}${shared_ext}$major'
20800 aix[4-9]*)
20801 version_type=linux
20802 need_lib_prefix=no
20803 need_version=no
20804 hardcode_into_libs=yes
20805 if test "$host_cpu" = ia64; then
20806 # AIX 5 supports IA64
20807 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20808 shlibpath_var=LD_LIBRARY_PATH
20809 else
20810 # With GCC up to 2.95.x, collect2 would create an import file
20811 # for dependence libraries. The import file would start with
20812 # the line `#! .'. This would cause the generated library to
20813 # depend on `.', always an invalid library. This was fixed in
20814 # development snapshots of GCC prior to 3.0.
20815 case $host_os in
20816 aix4 | aix4.[01] | aix4.[01].*)
20817 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20818 echo ' yes '
20819 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20821 else
20822 can_build_shared=no
20825 esac
20826 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20827 # soname into executable. Probably we can add versioning support to
20828 # collect2, so additional links can be useful in future.
20829 if test "$aix_use_runtimelinking" = yes; then
20830 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20831 # instead of lib<name>.a to let people know that these are not
20832 # typical AIX shared libraries.
20833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20834 else
20835 # We preserve .a as extension for shared libraries through AIX4.2
20836 # and later when we are not doing run time linking.
20837 library_names_spec='${libname}${release}.a $libname.a'
20838 soname_spec='${libname}${release}${shared_ext}$major'
20840 shlibpath_var=LIBPATH
20844 amigaos*)
20845 case $host_cpu in
20846 powerpc)
20847 # Since July 2007 AmigaOS4 officially supports .so libraries.
20848 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 m68k)
20852 library_names_spec='$libname.ixlibrary $libname.a'
20853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20854 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'
20856 esac
20859 beos*)
20860 library_names_spec='${libname}${shared_ext}'
20861 dynamic_linker="$host_os ld.so"
20862 shlibpath_var=LIBRARY_PATH
20865 bsdi[45]*)
20866 version_type=linux
20867 need_version=no
20868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20869 soname_spec='${libname}${release}${shared_ext}$major'
20870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20871 shlibpath_var=LD_LIBRARY_PATH
20872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20874 # the default ld.so.conf also contains /usr/contrib/lib and
20875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20876 # libtool to hard-code these into programs
20879 cygwin* | mingw* | pw32* | cegcc*)
20880 version_type=windows
20881 shrext_cmds=".dll"
20882 need_version=no
20883 need_lib_prefix=no
20885 case $GCC,$host_os in
20886 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20887 library_names_spec='$libname.dll.a'
20888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20889 postinstall_cmds='base_file=`basename \${file}`~
20890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20891 dldir=$destdir/`dirname \$dlpath`~
20892 test -d \$dldir || mkdir -p \$dldir~
20893 $install_prog $dir/$dlname \$dldir/$dlname~
20894 chmod a+x \$dldir/$dlname~
20895 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20896 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20899 dlpath=$dir/\$dldll~
20900 $RM \$dlpath'
20901 shlibpath_overrides_runpath=yes
20903 case $host_os in
20904 cygwin*)
20905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20909 mingw* | cegcc*)
20910 # MinGW DLLs use traditional 'lib' prefix
20911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20913 pw32*)
20914 # pw32 DLLs use 'pw' prefix rather than 'lib'
20915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20917 esac
20921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20923 esac
20924 dynamic_linker='Win32 ld.exe'
20925 # FIXME: first we should search . and the directory the executable is in
20926 shlibpath_var=PATH
20929 darwin* | rhapsody*)
20930 dynamic_linker="$host_os dyld"
20931 version_type=darwin
20932 need_lib_prefix=no
20933 need_version=no
20934 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20935 soname_spec='${libname}${release}${major}$shared_ext'
20936 shlibpath_overrides_runpath=yes
20937 shlibpath_var=DYLD_LIBRARY_PATH
20938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20943 dgux*)
20944 version_type=linux
20945 need_lib_prefix=no
20946 need_version=no
20947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20948 soname_spec='${libname}${release}${shared_ext}$major'
20949 shlibpath_var=LD_LIBRARY_PATH
20952 freebsd* | dragonfly*)
20953 # DragonFly does not have aout. When/if they implement a new
20954 # versioning mechanism, adjust this.
20955 if test -x /usr/bin/objformat; then
20956 objformat=`/usr/bin/objformat`
20957 else
20958 case $host_os in
20959 freebsd[23].*) objformat=aout ;;
20960 *) objformat=elf ;;
20961 esac
20963 version_type=freebsd-$objformat
20964 case $version_type in
20965 freebsd-elf*)
20966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20967 need_version=no
20968 need_lib_prefix=no
20970 freebsd-*)
20971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20972 need_version=yes
20974 esac
20975 shlibpath_var=LD_LIBRARY_PATH
20976 case $host_os in
20977 freebsd2.*)
20978 shlibpath_overrides_runpath=yes
20980 freebsd3.[01]* | freebsdelf3.[01]*)
20981 shlibpath_overrides_runpath=yes
20982 hardcode_into_libs=yes
20984 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20985 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20986 shlibpath_overrides_runpath=no
20987 hardcode_into_libs=yes
20989 *) # from 4.6 on, and DragonFly
20990 shlibpath_overrides_runpath=yes
20991 hardcode_into_libs=yes
20993 esac
20996 gnu*)
20997 version_type=linux
20998 need_lib_prefix=no
20999 need_version=no
21000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21001 soname_spec='${libname}${release}${shared_ext}$major'
21002 shlibpath_var=LD_LIBRARY_PATH
21003 hardcode_into_libs=yes
21006 haiku*)
21007 version_type=linux
21008 need_lib_prefix=no
21009 need_version=no
21010 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
21014 shlibpath_overrides_runpath=yes
21015 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21016 hardcode_into_libs=yes
21019 hpux9* | hpux10* | hpux11*)
21020 # Give a soname corresponding to the major version so that dld.sl refuses to
21021 # link against other versions.
21022 version_type=sunos
21023 need_lib_prefix=no
21024 need_version=no
21025 case $host_cpu in
21026 ia64*)
21027 shrext_cmds='.so'
21028 hardcode_into_libs=yes
21029 dynamic_linker="$host_os dld.so"
21030 shlibpath_var=LD_LIBRARY_PATH
21031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21033 soname_spec='${libname}${release}${shared_ext}$major'
21034 if test "X$HPUX_IA64_MODE" = X32; then
21035 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21036 else
21037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21041 hppa*64*)
21042 shrext_cmds='.sl'
21043 hardcode_into_libs=yes
21044 dynamic_linker="$host_os dld.sl"
21045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21048 soname_spec='${libname}${release}${shared_ext}$major'
21049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21053 shrext_cmds='.sl'
21054 dynamic_linker="$host_os dld.sl"
21055 shlibpath_var=SHLIB_PATH
21056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21058 soname_spec='${libname}${release}${shared_ext}$major'
21060 esac
21061 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21062 postinstall_cmds='chmod 555 $lib'
21063 # or fails outright, so override atomically:
21064 install_override_mode=555
21067 interix[3-9]*)
21068 version_type=linux
21069 need_lib_prefix=no
21070 need_version=no
21071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21072 soname_spec='${libname}${release}${shared_ext}$major'
21073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21074 shlibpath_var=LD_LIBRARY_PATH
21075 shlibpath_overrides_runpath=no
21076 hardcode_into_libs=yes
21079 irix5* | irix6* | nonstopux*)
21080 case $host_os in
21081 nonstopux*) version_type=nonstopux ;;
21083 if test "$lt_cv_prog_gnu_ld" = yes; then
21084 version_type=linux
21085 else
21086 version_type=irix
21087 fi ;;
21088 esac
21089 need_lib_prefix=no
21090 need_version=no
21091 soname_spec='${libname}${release}${shared_ext}$major'
21092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21093 case $host_os in
21094 irix5* | nonstopux*)
21095 libsuff= shlibsuff=
21098 case $LD in # libtool.m4 will add one of these switches to LD
21099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21100 libsuff= shlibsuff= libmagic=32-bit;;
21101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21102 libsuff=32 shlibsuff=N32 libmagic=N32;;
21103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21104 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21105 *) libsuff= shlibsuff= libmagic=never-match;;
21106 esac
21108 esac
21109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21110 shlibpath_overrides_runpath=no
21111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21113 hardcode_into_libs=yes
21116 # No shared lib support for Linux oldld, aout, or coff.
21117 linux*oldld* | linux*aout* | linux*coff*)
21118 dynamic_linker=no
21121 # This must be Linux ELF.
21122 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21123 version_type=linux
21124 need_lib_prefix=no
21125 need_version=no
21126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21127 soname_spec='${libname}${release}${shared_ext}$major'
21128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21129 shlibpath_var=LD_LIBRARY_PATH
21130 shlibpath_overrides_runpath=no
21132 # Some binutils ld are patched to set DT_RUNPATH
21133 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21134 $as_echo_n "(cached) " >&6
21135 else
21136 lt_cv_shlibpath_overrides_runpath=no
21137 save_LDFLAGS=$LDFLAGS
21138 save_libdir=$libdir
21139 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21140 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21142 /* end confdefs.h. */
21145 main ()
21149 return 0;
21151 _ACEOF
21152 if ac_fn_cxx_try_link "$LINENO"; then :
21153 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21154 lt_cv_shlibpath_overrides_runpath=yes
21157 rm -f core conftest.err conftest.$ac_objext \
21158 conftest$ac_exeext conftest.$ac_ext
21159 LDFLAGS=$save_LDFLAGS
21160 libdir=$save_libdir
21164 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21166 # This implies no fast_install, which is unacceptable.
21167 # Some rework will be needed to allow for fast_install
21168 # before this can be enabled.
21169 hardcode_into_libs=yes
21171 # Append ld.so.conf contents to the search path
21172 if test -f /etc/ld.so.conf; then
21173 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' ' '`
21174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21177 # We used to test for /lib/ld.so.1 and disable shared libraries on
21178 # powerpc, because MkLinux only supported shared libraries with the
21179 # GNU dynamic linker. Since this was broken with cross compilers,
21180 # most powerpc-linux boxes support dynamic linking these days and
21181 # people can always --disable-shared, the test was removed, and we
21182 # assume the GNU/Linux dynamic linker is in use.
21183 dynamic_linker='GNU/Linux ld.so'
21186 netbsd*)
21187 version_type=sunos
21188 need_lib_prefix=no
21189 need_version=no
21190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21193 dynamic_linker='NetBSD (a.out) ld.so'
21194 else
21195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21196 soname_spec='${libname}${release}${shared_ext}$major'
21197 dynamic_linker='NetBSD ld.elf_so'
21199 shlibpath_var=LD_LIBRARY_PATH
21200 shlibpath_overrides_runpath=yes
21201 hardcode_into_libs=yes
21204 newsos6)
21205 version_type=linux
21206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21207 shlibpath_var=LD_LIBRARY_PATH
21208 shlibpath_overrides_runpath=yes
21211 *nto* | *qnx*)
21212 version_type=qnx
21213 need_lib_prefix=no
21214 need_version=no
21215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 soname_spec='${libname}${release}${shared_ext}$major'
21217 shlibpath_var=LD_LIBRARY_PATH
21218 shlibpath_overrides_runpath=no
21219 hardcode_into_libs=yes
21220 dynamic_linker='ldqnx.so'
21223 openbsd*)
21224 version_type=sunos
21225 sys_lib_dlsearch_path_spec="/usr/lib"
21226 need_lib_prefix=no
21227 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21228 case $host_os in
21229 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21230 *) need_version=no ;;
21231 esac
21232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21234 shlibpath_var=LD_LIBRARY_PATH
21235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21236 case $host_os in
21237 openbsd2.[89] | openbsd2.[89].*)
21238 shlibpath_overrides_runpath=no
21241 shlibpath_overrides_runpath=yes
21243 esac
21244 else
21245 shlibpath_overrides_runpath=yes
21249 os2*)
21250 libname_spec='$name'
21251 shrext_cmds=".dll"
21252 need_lib_prefix=no
21253 library_names_spec='$libname${shared_ext} $libname.a'
21254 dynamic_linker='OS/2 ld.exe'
21255 shlibpath_var=LIBPATH
21258 osf3* | osf4* | osf5*)
21259 version_type=osf
21260 need_lib_prefix=no
21261 need_version=no
21262 soname_spec='${libname}${release}${shared_ext}$major'
21263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21264 shlibpath_var=LD_LIBRARY_PATH
21265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21266 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21269 rdos*)
21270 dynamic_linker=no
21273 solaris*)
21274 version_type=linux
21275 need_lib_prefix=no
21276 need_version=no
21277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21278 soname_spec='${libname}${release}${shared_ext}$major'
21279 shlibpath_var=LD_LIBRARY_PATH
21280 shlibpath_overrides_runpath=yes
21281 hardcode_into_libs=yes
21282 # ldd complains unless libraries are executable
21283 postinstall_cmds='chmod +x $lib'
21286 sunos4*)
21287 version_type=sunos
21288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21290 shlibpath_var=LD_LIBRARY_PATH
21291 shlibpath_overrides_runpath=yes
21292 if test "$with_gnu_ld" = yes; then
21293 need_lib_prefix=no
21295 need_version=yes
21298 sysv4 | sysv4.3*)
21299 version_type=linux
21300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21301 soname_spec='${libname}${release}${shared_ext}$major'
21302 shlibpath_var=LD_LIBRARY_PATH
21303 case $host_vendor in
21304 sni)
21305 shlibpath_overrides_runpath=no
21306 need_lib_prefix=no
21307 runpath_var=LD_RUN_PATH
21309 siemens)
21310 need_lib_prefix=no
21312 motorola)
21313 need_lib_prefix=no
21314 need_version=no
21315 shlibpath_overrides_runpath=no
21316 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21318 esac
21321 sysv4*MP*)
21322 if test -d /usr/nec ;then
21323 version_type=linux
21324 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21325 soname_spec='$libname${shared_ext}.$major'
21326 shlibpath_var=LD_LIBRARY_PATH
21330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21331 version_type=freebsd-elf
21332 need_lib_prefix=no
21333 need_version=no
21334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21335 soname_spec='${libname}${release}${shared_ext}$major'
21336 shlibpath_var=LD_LIBRARY_PATH
21337 shlibpath_overrides_runpath=yes
21338 hardcode_into_libs=yes
21339 if test "$with_gnu_ld" = yes; then
21340 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21341 else
21342 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21343 case $host_os in
21344 sco3.2v5*)
21345 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21347 esac
21349 sys_lib_dlsearch_path_spec='/usr/lib'
21352 tpf*)
21353 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21354 version_type=linux
21355 need_lib_prefix=no
21356 need_version=no
21357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21358 shlibpath_var=LD_LIBRARY_PATH
21359 shlibpath_overrides_runpath=no
21360 hardcode_into_libs=yes
21363 uts4*)
21364 version_type=linux
21365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21366 soname_spec='${libname}${release}${shared_ext}$major'
21367 shlibpath_var=LD_LIBRARY_PATH
21371 dynamic_linker=no
21373 esac
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21375 $as_echo "$dynamic_linker" >&6; }
21376 test "$dynamic_linker" = no && can_build_shared=no
21378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21379 if test "$GCC" = yes; then
21380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21383 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21384 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21386 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21387 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21428 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21429 hardcode_action_CXX=
21430 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21431 test -n "$runpath_var_CXX" ||
21432 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21434 # We can hardcode non-existent directories.
21435 if test "$hardcode_direct_CXX" != no &&
21436 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21437 # have to relink, otherwise we might link with an installed library
21438 # when we should be linking with a yet-to-be-installed one
21439 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21440 test "$hardcode_minus_L_CXX" != no; then
21441 # Linking always hardcodes the temporary library directory.
21442 hardcode_action_CXX=relink
21443 else
21444 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21445 hardcode_action_CXX=immediate
21447 else
21448 # We cannot hardcode anything, or else we can only hardcode existing
21449 # directories.
21450 hardcode_action_CXX=unsupported
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21453 $as_echo "$hardcode_action_CXX" >&6; }
21455 if test "$hardcode_action_CXX" = relink ||
21456 test "$inherit_rpath_CXX" = yes; then
21457 # Fast installation is not supported
21458 enable_fast_install=no
21459 elif test "$shlibpath_overrides_runpath" = yes ||
21460 test "$enable_shared" = no; then
21461 # Fast installation is not necessary
21462 enable_fast_install=needless
21471 fi # test -n "$compiler"
21473 CC=$lt_save_CC
21474 LDCXX=$LD
21475 LD=$lt_save_LD
21476 GCC=$lt_save_GCC
21477 with_gnu_ld=$lt_save_with_gnu_ld
21478 lt_cv_path_LDCXX=$lt_cv_path_LD
21479 lt_cv_path_LD=$lt_save_path_LD
21480 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21481 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21482 fi # test "$_lt_caught_CXX_error" != yes
21484 ac_ext=c
21485 ac_cpp='$CPP $CPPFLAGS'
21486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21505 # Only expand once:
21511 # Identify the assembler which will work hand-in-glove with the newly
21512 # built GCC, so that we can examine its features. This is the assembler
21513 # which will be driven by the driver program.
21515 # If build != host, and we aren't building gas in-tree, we identify a
21516 # build->target assembler and hope that it will have the same features
21517 # as the host->target assembler we'll be using.
21518 gcc_cv_gas_major_version=
21519 gcc_cv_gas_minor_version=
21520 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21522 if test "${gcc_cv_as+set}" = set; then :
21524 else
21526 if test -x "$DEFAULT_ASSEMBLER"; then
21527 gcc_cv_as="$DEFAULT_ASSEMBLER"
21528 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21529 && test -f ../gas/Makefile \
21530 && test x$build = x$host; then
21531 gcc_cv_as=../gas/as-new$build_exeext
21532 elif test -x as$build_exeext; then
21533 # Build using assembler in the current directory.
21534 gcc_cv_as=./as$build_exeext
21535 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21536 gcc_cv_as="$AS_FOR_TARGET"
21537 else
21538 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21539 set dummy $AS_FOR_TARGET; ac_word=$2
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21541 $as_echo_n "checking for $ac_word... " >&6; }
21542 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21544 else
21545 case $gcc_cv_as in
21546 [\\/]* | ?:[\\/]*)
21547 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21551 for as_dir in $PATH
21553 IFS=$as_save_IFS
21554 test -z "$as_dir" && as_dir=.
21555 for ac_exec_ext in '' $ac_executable_extensions; do
21556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21557 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21559 break 2
21561 done
21562 done
21563 IFS=$as_save_IFS
21566 esac
21568 gcc_cv_as=$ac_cv_path_gcc_cv_as
21569 if test -n "$gcc_cv_as"; then
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21571 $as_echo "$gcc_cv_as" >&6; }
21572 else
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21581 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21583 case "$ORIGINAL_AS_FOR_TARGET" in
21584 ./as | ./as$build_exeext) ;;
21585 *) ac_config_files="$ac_config_files as:exec-tool.in"
21587 esac
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21590 $as_echo_n "checking what assembler to use... " >&6; }
21591 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21592 # Single tree build which includes gas. We want to prefer it
21593 # over whatever linker top-level may have detected, since
21594 # we'll use what we're building after installation anyway.
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21596 $as_echo "newly built gas" >&6; }
21597 in_tree_gas=yes
21598 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21599 for f in $gcc_cv_as_bfd_srcdir/configure \
21600 $gcc_cv_as_gas_srcdir/configure \
21601 $gcc_cv_as_gas_srcdir/configure.in \
21602 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21603 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21604 if test x$gcc_cv_gas_version != x; then
21605 break
21607 done
21608 case $gcc_cv_gas_version in
21609 VERSION=[0-9]*) ;;
21610 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21611 esac
21612 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21613 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21614 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21615 case $gcc_cv_gas_patch_version in
21616 "") gcc_cv_gas_patch_version="0" ;;
21617 esac
21618 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21619 + $gcc_cv_gas_minor_version \) \* 1000 \
21620 + $gcc_cv_gas_patch_version`
21622 in_tree_gas_is_elf=no
21623 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21624 || (grep 'obj_format = multi' ../gas/Makefile \
21625 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21626 then
21627 in_tree_gas_is_elf=yes
21629 else
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21631 $as_echo "$gcc_cv_as" >&6; }
21632 in_tree_gas=no
21635 default_ld=
21636 # Check whether --enable-ld was given.
21637 if test "${enable_ld+set}" = set; then :
21638 enableval=$enable_ld; case "${enableval}" in
21640 default_ld=ld.gold
21642 esac
21646 install_gold_as_default=no
21647 # Check whether --enable-gold was given.
21648 if test "${enable_gold+set}" = set; then :
21649 enableval=$enable_gold; case "${enableval}" in
21650 default)
21651 install_gold_as_default=yes
21653 yes)
21654 if test x${default_ld} != x; then
21655 install_gold_as_default=yes
21661 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21663 esac
21667 # Identify the linker which will work hand-in-glove with the newly
21668 # built GCC, so that we can examine its features. This is the linker
21669 # which will be driven by the driver program.
21671 # If build != host, and we aren't building gas in-tree, we identify a
21672 # build->target linker and hope that it will have the same features
21673 # as the host->target linker we'll be using.
21674 gcc_cv_gld_major_version=
21675 gcc_cv_gld_minor_version=
21676 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21677 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21678 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21680 if test "${gcc_cv_ld+set}" = set; then :
21682 else
21684 if test -x "$DEFAULT_LINKER"; then
21685 gcc_cv_ld="$DEFAULT_LINKER"
21686 elif test $install_gold_as_default = yes \
21687 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21688 && test -f ../gold/Makefile \
21689 && test x$build = x$host; then
21690 gcc_cv_ld=../gold/ld-new$build_exeext
21691 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21692 && test -f ../ld/Makefile \
21693 && test x$build = x$host; then
21694 gcc_cv_ld=../ld/ld-new$build_exeext
21695 elif test -x collect-ld$build_exeext; then
21696 # Build using linker in the current directory.
21697 gcc_cv_ld=./collect-ld$build_exeext
21698 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21699 gcc_cv_ld="$LD_FOR_TARGET"
21700 else
21701 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21702 set dummy $LD_FOR_TARGET; ac_word=$2
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21704 $as_echo_n "checking for $ac_word... " >&6; }
21705 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21706 $as_echo_n "(cached) " >&6
21707 else
21708 case $gcc_cv_ld in
21709 [\\/]* | ?:[\\/]*)
21710 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21714 for as_dir in $PATH
21716 IFS=$as_save_IFS
21717 test -z "$as_dir" && as_dir=.
21718 for ac_exec_ext in '' $ac_executable_extensions; do
21719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21720 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21722 break 2
21724 done
21725 done
21726 IFS=$as_save_IFS
21729 esac
21731 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21732 if test -n "$gcc_cv_ld"; then
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21734 $as_echo "$gcc_cv_ld" >&6; }
21735 else
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21737 $as_echo "no" >&6; }
21744 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21745 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21746 # if the PLUGIN_LD is set ld-new, just have it as ld
21747 # as that is the installed named.
21748 if test x$PLUGIN_LD_SUFFIX = xld-new \
21749 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21750 PLUGIN_LD_SUFFIX=ld
21753 # Check whether --with-plugin-ld was given.
21754 if test "${with_plugin_ld+set}" = set; then :
21755 withval=$with_plugin_ld; if test x"$withval" != x; then
21756 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21757 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21763 cat >>confdefs.h <<_ACEOF
21764 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21765 _ACEOF
21768 # Check to see if we are using gold instead of ld
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21770 $as_echo_n "checking whether we are using gold... " >&6; }
21771 ld_is_gold=no
21772 if test x$gcc_cv_ld != x; then
21773 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21774 | grep "GNU gold" > /dev/null; then
21775 ld_is_gold=yes
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21779 $as_echo "$ld_is_gold" >&6; }
21781 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21783 case "$ORIGINAL_LD_FOR_TARGET" in
21784 ./collect-ld | ./collect-ld$build_exeext) ;;
21785 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21787 esac
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21790 $as_echo_n "checking what linker to use... " >&6; }
21791 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21792 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21793 # Single tree build which includes ld. We want to prefer it
21794 # over whatever linker top-level may have detected, since
21795 # we'll use what we're building after installation anyway.
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21797 $as_echo "newly built ld" >&6; }
21798 in_tree_ld=yes
21799 in_tree_ld_is_elf=no
21800 if (grep 'EMUL = .*elf' ../ld/Makefile \
21801 || grep 'EMUL = .*linux' ../ld/Makefile \
21802 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21803 in_tree_ld_is_elf=yes
21804 elif test "$ld_is_gold" = yes; then
21805 in_tree_ld_is_elf=yes
21807 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
21809 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21810 if test x$gcc_cv_gld_version != x; then
21811 break
21813 done
21814 case $gcc_cv_gld_version in
21815 VERSION=[0-9]*) ;;
21816 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21817 esac
21818 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21819 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21820 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21821 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21822 else
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21824 $as_echo "$gcc_cv_ld" >&6; }
21825 in_tree_ld=no
21826 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21827 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21828 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21834 # Figure out what nm we will be using.
21835 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21836 if test "${gcc_cv_nm+set}" = set; then :
21838 else
21840 if test -f $gcc_cv_binutils_srcdir/configure.in \
21841 && test -f ../binutils/Makefile \
21842 && test x$build = x$host; then
21843 gcc_cv_nm=../binutils/nm-new$build_exeext
21844 elif test -x nm$build_exeext; then
21845 gcc_cv_nm=./nm$build_exeext
21846 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21847 gcc_cv_nm="$NM_FOR_TARGET"
21848 else
21849 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21850 set dummy $NM_FOR_TARGET; ac_word=$2
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21852 $as_echo_n "checking for $ac_word... " >&6; }
21853 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21854 $as_echo_n "(cached) " >&6
21855 else
21856 case $gcc_cv_nm in
21857 [\\/]* | ?:[\\/]*)
21858 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21862 for as_dir in $PATH
21864 IFS=$as_save_IFS
21865 test -z "$as_dir" && as_dir=.
21866 for ac_exec_ext in '' $ac_executable_extensions; do
21867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21868 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21870 break 2
21872 done
21873 done
21874 IFS=$as_save_IFS
21877 esac
21879 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21880 if test -n "$gcc_cv_nm"; then
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21882 $as_echo "$gcc_cv_nm" >&6; }
21883 else
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21885 $as_echo "no" >&6; }
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21893 $as_echo_n "checking what nm to use... " >&6; }
21894 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21895 # Single tree build which includes binutils.
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21897 $as_echo "newly built nm" >&6; }
21898 in_tree_nm=yes
21899 else
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21901 $as_echo "$gcc_cv_nm" >&6; }
21902 in_tree_nm=no
21905 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21907 case "$ORIGINAL_NM_FOR_TARGET" in
21908 ./nm | ./nm$build_exeext) ;;
21909 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21911 esac
21914 # Figure out what objdump we will be using.
21915 if test "${gcc_cv_objdump+set}" = set; then :
21917 else
21919 if test -f $gcc_cv_binutils_srcdir/configure.in \
21920 && test -f ../binutils/Makefile \
21921 && test x$build = x$host; then
21922 # Single tree build which includes binutils.
21923 gcc_cv_objdump=../binutils/objdump$build_exeext
21924 elif test -x objdump$build_exeext; then
21925 gcc_cv_objdump=./objdump$build_exeext
21926 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21927 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21928 else
21929 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21930 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21932 $as_echo_n "checking for $ac_word... " >&6; }
21933 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21934 $as_echo_n "(cached) " >&6
21935 else
21936 case $gcc_cv_objdump in
21937 [\\/]* | ?:[\\/]*)
21938 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21942 for as_dir in $PATH
21944 IFS=$as_save_IFS
21945 test -z "$as_dir" && as_dir=.
21946 for ac_exec_ext in '' $ac_executable_extensions; do
21947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21948 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21950 break 2
21952 done
21953 done
21954 IFS=$as_save_IFS
21957 esac
21959 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21960 if test -n "$gcc_cv_objdump"; then
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21962 $as_echo "$gcc_cv_objdump" >&6; }
21963 else
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21965 $as_echo "no" >&6; }
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21973 $as_echo_n "checking what objdump to use... " >&6; }
21974 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21975 # Single tree build which includes binutils.
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21977 $as_echo "newly built objdump" >&6; }
21978 elif test x$gcc_cv_objdump = x; then
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21980 $as_echo "not found" >&6; }
21981 else
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21983 $as_echo "$gcc_cv_objdump" >&6; }
21986 # Figure out what readelf we will be using.
21987 if test "${gcc_cv_readelf+set}" = set; then :
21989 else
21991 if test -f $gcc_cv_binutils_srcdir/configure.in \
21992 && test -f ../binutils/Makefile \
21993 && test x$build = x$host; then
21994 # Single tree build which includes binutils.
21995 gcc_cv_readelf=../binutils/readelf$build_exeext
21996 elif test -x readelf$build_exeext; then
21997 gcc_cv_readelf=./readelf$build_exeext
21998 else
21999 # Extract the first word of "readelf", so it can be a program name with args.
22000 set dummy readelf; ac_word=$2
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22002 $as_echo_n "checking for $ac_word... " >&6; }
22003 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22005 else
22006 case $gcc_cv_readelf in
22007 [\\/]* | ?:[\\/]*)
22008 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
22011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22012 for as_dir in $PATH
22014 IFS=$as_save_IFS
22015 test -z "$as_dir" && as_dir=.
22016 for ac_exec_ext in '' $ac_executable_extensions; do
22017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22018 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22020 break 2
22022 done
22023 done
22024 IFS=$as_save_IFS
22027 esac
22029 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22030 if test -n "$gcc_cv_readelf"; then
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22032 $as_echo "$gcc_cv_readelf" >&6; }
22033 else
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035 $as_echo "no" >&6; }
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22043 $as_echo_n "checking what readelf to use... " >&6; }
22044 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22045 # Single tree build which includes binutils.
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22047 $as_echo "newly built readelf" >&6; }
22048 elif test x$gcc_cv_readelf = x; then
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22050 $as_echo "not found" >&6; }
22051 else
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22053 $as_echo "$gcc_cv_readelf" >&6; }
22056 # Figure out what assembler alignment features are present.
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22058 $as_echo_n "checking assembler flags... " >&6; }
22059 if test "${gcc_cv_as_flags+set}" = set; then :
22060 $as_echo_n "(cached) " >&6
22061 else
22062 case "$target" in
22063 i[34567]86-*-linux*)
22064 gcc_cv_as_flags=--32
22066 x86_64-*-linux-gnux32)
22067 gcc_cv_as_flags=--x32
22069 x86_64-*-linux*)
22070 gcc_cv_as_flags=--64
22072 powerpc*-*-darwin*)
22073 gcc_cv_as_flags="-arch ppc"
22076 gcc_cv_as_flags=" "
22078 esac
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22081 $as_echo "$gcc_cv_as_flags" >&6; }
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22084 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22085 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22086 $as_echo_n "(cached) " >&6
22087 else
22088 gcc_cv_as_balign_and_p2align=no
22089 if test $in_tree_gas = yes; then
22090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22091 then gcc_cv_as_balign_and_p2align=yes
22093 elif test x$gcc_cv_as != x; then
22094 $as_echo '.balign 4
22095 .p2align 2' > conftest.s
22096 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22098 (eval $ac_try) 2>&5
22099 ac_status=$?
22100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22101 test $ac_status = 0; }; }
22102 then
22103 gcc_cv_as_balign_and_p2align=yes
22104 else
22105 echo "configure: failed program was" >&5
22106 cat conftest.s >&5
22108 rm -f conftest.o conftest.s
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22112 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22113 if test $gcc_cv_as_balign_and_p2align = yes; then
22115 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22120 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22121 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22122 $as_echo_n "(cached) " >&6
22123 else
22124 gcc_cv_as_max_skip_p2align=no
22125 if test $in_tree_gas = yes; then
22126 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22127 then gcc_cv_as_max_skip_p2align=yes
22129 elif test x$gcc_cv_as != x; then
22130 $as_echo '.p2align 4,,7' > conftest.s
22131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22133 (eval $ac_try) 2>&5
22134 ac_status=$?
22135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22136 test $ac_status = 0; }; }
22137 then
22138 gcc_cv_as_max_skip_p2align=yes
22139 else
22140 echo "configure: failed program was" >&5
22141 cat conftest.s >&5
22143 rm -f conftest.o conftest.s
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22147 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22148 if test $gcc_cv_as_max_skip_p2align = yes; then
22150 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22155 $as_echo_n "checking assembler for .literal16... " >&6; }
22156 if test "${gcc_cv_as_literal16+set}" = set; then :
22157 $as_echo_n "(cached) " >&6
22158 else
22159 gcc_cv_as_literal16=no
22160 if test $in_tree_gas = yes; then
22161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22162 then gcc_cv_as_literal16=yes
22164 elif test x$gcc_cv_as != x; then
22165 $as_echo '.literal16' > conftest.s
22166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22171 test $ac_status = 0; }; }
22172 then
22173 gcc_cv_as_literal16=yes
22174 else
22175 echo "configure: failed program was" >&5
22176 cat conftest.s >&5
22178 rm -f conftest.o conftest.s
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22182 $as_echo "$gcc_cv_as_literal16" >&6; }
22183 if test $gcc_cv_as_literal16 = yes; then
22185 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22190 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22191 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22192 $as_echo_n "(cached) " >&6
22193 else
22194 gcc_cv_as_subsection_m1=no
22195 if test $in_tree_gas = yes; then
22196 if test $in_tree_gas_is_elf = yes \
22197 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22198 then gcc_cv_as_subsection_m1=yes
22200 elif test x$gcc_cv_as != x; then
22201 $as_echo 'conftest_label1: .word 0
22202 .subsection -1
22203 conftest_label2: .word 0
22204 .previous' > conftest.s
22205 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22207 (eval $ac_try) 2>&5
22208 ac_status=$?
22209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22210 test $ac_status = 0; }; }
22211 then
22212 if test x$gcc_cv_nm != x; then
22213 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22214 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22215 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22216 then :
22217 else gcc_cv_as_subsection_m1=yes
22219 rm -f conftest.nm1 conftest.nm2
22221 else
22222 echo "configure: failed program was" >&5
22223 cat conftest.s >&5
22225 rm -f conftest.o conftest.s
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22229 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22230 if test $gcc_cv_as_subsection_m1 = yes; then
22232 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22237 $as_echo_n "checking assembler for .weak... " >&6; }
22238 if test "${gcc_cv_as_weak+set}" = set; then :
22239 $as_echo_n "(cached) " >&6
22240 else
22241 gcc_cv_as_weak=no
22242 if test $in_tree_gas = yes; then
22243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22244 then gcc_cv_as_weak=yes
22246 elif test x$gcc_cv_as != x; then
22247 $as_echo ' .weak 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_weak=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_weak" >&5
22264 $as_echo "$gcc_cv_as_weak" >&6; }
22265 if test $gcc_cv_as_weak = yes; then
22267 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22272 $as_echo_n "checking assembler for .weakref... " >&6; }
22273 if test "${gcc_cv_as_weakref+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22275 else
22276 gcc_cv_as_weakref=no
22277 if test $in_tree_gas = yes; then
22278 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22279 then gcc_cv_as_weakref=yes
22281 elif test x$gcc_cv_as != x; then
22282 $as_echo ' .weakref foobar, barfnot' > conftest.s
22283 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22285 (eval $ac_try) 2>&5
22286 ac_status=$?
22287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22288 test $ac_status = 0; }; }
22289 then
22290 gcc_cv_as_weakref=yes
22291 else
22292 echo "configure: failed program was" >&5
22293 cat conftest.s >&5
22295 rm -f conftest.o conftest.s
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22299 $as_echo "$gcc_cv_as_weakref" >&6; }
22300 if test $gcc_cv_as_weakref = yes; then
22302 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22307 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22308 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22309 $as_echo_n "(cached) " >&6
22310 else
22311 gcc_cv_as_nsubspa_comdat=no
22312 if test $in_tree_gas = yes; then
22313 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22314 then gcc_cv_as_nsubspa_comdat=yes
22316 elif test x$gcc_cv_as != x; then
22317 $as_echo ' .SPACE $TEXT$
22318 .NSUBSPA $CODE$,COMDAT' > conftest.s
22319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22321 (eval $ac_try) 2>&5
22322 ac_status=$?
22323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22324 test $ac_status = 0; }; }
22325 then
22326 gcc_cv_as_nsubspa_comdat=yes
22327 else
22328 echo "configure: failed program was" >&5
22329 cat conftest.s >&5
22331 rm -f conftest.o conftest.s
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22335 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22336 if test $gcc_cv_as_nsubspa_comdat = yes; then
22338 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22342 # .hidden needs to be supported in both the assembler and the linker,
22343 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22344 # This is irritatingly difficult to feature test for; we have to check the
22345 # date string after the version number. If we've got an in-tree
22346 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22347 # to be safe.
22348 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22350 $as_echo_n "checking assembler for .hidden... " >&6; }
22351 if test "${gcc_cv_as_hidden+set}" = set; then :
22352 $as_echo_n "(cached) " >&6
22353 else
22354 gcc_cv_as_hidden=no
22355 if test $in_tree_gas = yes; then
22356 if test $in_tree_gas_is_elf = yes \
22357 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22358 then gcc_cv_as_hidden=yes
22360 elif test x$gcc_cv_as != x; then
22361 $as_echo ' .hidden foobar
22362 foobar:' > conftest.s
22363 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22365 (eval $ac_try) 2>&5
22366 ac_status=$?
22367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22368 test $ac_status = 0; }; }
22369 then
22370 gcc_cv_as_hidden=yes
22371 else
22372 echo "configure: failed program was" >&5
22373 cat conftest.s >&5
22375 rm -f conftest.o conftest.s
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22379 $as_echo "$gcc_cv_as_hidden" >&6; }
22381 case "${target}" in
22382 *-*-darwin*)
22383 # Darwin as has some visibility support, though with a different syntax.
22384 gcc_cv_as_hidden=yes
22386 esac
22388 # gnu_indirect_function type is an extension proposed at
22389 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22390 # selection of function implementation
22391 # Check whether --enable-gnu-indirect-function was given.
22392 if test "${enable_gnu_indirect_function+set}" = set; then :
22393 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22394 yes | no) ;;
22395 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22396 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22397 esac
22398 else
22399 enable_gnu_indirect_function="$default_gnu_indirect_function"
22403 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22405 cat >>confdefs.h <<_ACEOF
22406 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22407 _ACEOF
22411 if test $in_tree_ld != yes ; then
22412 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22413 if echo "$ld_ver" | grep GNU > /dev/null; then
22414 if test x"$ld_is_gold" = xyes; then
22415 # GNU gold --version looks like this:
22417 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22419 # We extract the binutils version which is more familiar and specific
22420 # than the gold version.
22421 ld_vers=`echo $ld_ver | sed -n \
22422 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22423 else
22424 # GNU ld --version looks like this:
22426 # GNU ld (GNU Binutils) 2.21.51.20110225
22427 ld_vers=`echo $ld_ver | sed -n \
22428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22430 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'`
22431 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22432 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22433 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22434 else
22435 case "${target}" in
22436 *-*-solaris2*)
22437 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22438 # format.
22440 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22441 # /usr/ccs/bin/ld has been configured.
22442 ld_ver=`$gcc_cv_ld -V 2>&1`
22443 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22444 ld_vers=`echo $ld_ver | sed -n \
22445 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22446 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22447 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22450 esac
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22455 $as_echo_n "checking linker for .hidden support... " >&6; }
22456 if test "${gcc_cv_ld_hidden+set}" = set; then :
22457 $as_echo_n "(cached) " >&6
22458 else
22459 if test $in_tree_ld = yes ; then
22460 gcc_cv_ld_hidden=no
22461 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 \
22462 && test $in_tree_ld_is_elf = yes; then
22463 gcc_cv_ld_hidden=yes
22465 else
22466 gcc_cv_ld_hidden=yes
22467 if test x"$ld_is_gold" = xyes; then
22469 elif echo "$ld_ver" | grep GNU > /dev/null; then
22470 case "${target}" in
22471 mmix-knuth-mmixware)
22472 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22473 gcc_cv_ld_hidden=no
22475 esac
22476 if test 0"$ld_date" -lt 20020404; then
22477 if test -n "$ld_date"; then
22478 # If there was date string, but was earlier than 2002-04-04, fail
22479 gcc_cv_ld_hidden=no
22480 elif test -z "$ld_vers"; then
22481 # If there was no date string nor ld version number, something is wrong
22482 gcc_cv_ld_hidden=no
22483 else
22484 test -z "$ld_vers_patch" && ld_vers_patch=0
22485 if test "$ld_vers_major" -lt 2; then
22486 gcc_cv_ld_hidden=no
22487 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22488 gcc_cv_ld_hidden="no"
22489 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22490 gcc_cv_ld_hidden=no
22494 else
22495 case "${target}" in
22496 *-*-darwin*)
22497 # Darwin ld has some visibility support.
22498 gcc_cv_ld_hidden=yes
22500 hppa64*-*-hpux* | ia64*-*-hpux*)
22501 gcc_cv_ld_hidden=yes
22503 *-*-solaris2.1[0-9]*)
22504 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22505 # .symbolic was only added in Solaris 9 12/02.
22506 gcc_cv_ld_hidden=yes
22509 gcc_cv_ld_hidden=no
22511 esac
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22516 $as_echo "$gcc_cv_ld_hidden" >&6; }
22517 libgcc_visibility=no
22520 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22521 libgcc_visibility=yes
22523 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22528 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22529 gcc_cv_ld_ro_rw_mix=unknown
22530 if test $in_tree_ld = yes ; then
22531 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 \
22532 && test $in_tree_ld_is_elf = yes; then
22533 gcc_cv_ld_ro_rw_mix=read-write
22535 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22536 echo '.section myfoosect, "a"' > conftest1.s
22537 echo '.section myfoosect, "aw"' > conftest2.s
22538 echo '.byte 1' >> conftest2.s
22539 echo '.section myfoosect, "a"' > conftest3.s
22540 echo '.byte 0' >> conftest3.s
22541 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22542 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22543 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22544 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22545 conftest2.o conftest3.o > /dev/null 2>&1; then
22546 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22547 | sed -e '/myfoosect/!d' -e N`
22548 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22549 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22550 gcc_cv_ld_ro_rw_mix=read-only
22551 else
22552 gcc_cv_ld_ro_rw_mix=read-write
22556 rm -f conftest.* conftest[123].*
22558 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22560 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22564 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22566 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22567 case "${target}" in
22568 *-*-solaris2*)
22570 # Solaris 2 ld -V output looks like this for a regular version:
22572 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22574 # but test versions add stuff at the end:
22576 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22578 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22579 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22580 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22581 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22582 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22583 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22586 esac
22589 # Check whether --enable-initfini-array was given.
22590 if test "${enable_initfini_array+set}" = set; then :
22591 enableval=$enable_initfini_array;
22592 else
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22595 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22596 if test "${gcc_cv_initfini_array+set}" = set; then :
22597 $as_echo_n "(cached) " >&6
22598 else
22599 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22600 case "${target}" in
22601 ia64-*)
22602 if test "$cross_compiling" = yes; then :
22603 gcc_cv_initfini_array=no
22604 else
22605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22606 /* end confdefs.h. */
22608 #ifndef __ELF__
22609 #error Not an ELF OS
22610 #endif
22611 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22612 if it can be used. */
22613 static int x = -1;
22614 int main (void) { return x; }
22615 int foo (void) { x = 0; }
22616 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22618 _ACEOF
22619 if ac_fn_c_try_run "$LINENO"; then :
22620 gcc_cv_initfini_array=yes
22621 else
22622 gcc_cv_initfini_array=no
22624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22625 conftest.$ac_objext conftest.beam conftest.$ac_ext
22629 gcc_cv_initfini_array=no
22630 if test $in_tree_ld = yes ; then
22631 if test "$gcc_cv_gld_major_version" -eq 2 \
22632 -a "$gcc_cv_gld_minor_version" -ge 22 \
22633 -o "$gcc_cv_gld_major_version" -gt 2 \
22634 && test $in_tree_ld_is_elf = yes; then
22635 gcc_cv_initfini_array=yes
22637 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22638 cat > conftest.s <<\EOF
22639 .section .dtors,"a",%progbits
22640 .balign 4
22641 .byte 'A', 'A', 'A', 'A'
22642 .section .ctors,"a",%progbits
22643 .balign 4
22644 .byte 'B', 'B', 'B', 'B'
22645 .section .fini_array.65530,"a",%progbits
22646 .balign 4
22647 .byte 'C', 'C', 'C', 'C'
22648 .section .init_array.65530,"a",%progbits
22649 .balign 4
22650 .byte 'D', 'D', 'D', 'D'
22651 .section .dtors.64528,"a",%progbits
22652 .balign 4
22653 .byte 'E', 'E', 'E', 'E'
22654 .section .ctors.64528,"a",%progbits
22655 .balign 4
22656 .byte 'F', 'F', 'F', 'F'
22657 .section .fini_array.01005,"a",%progbits
22658 .balign 4
22659 .byte 'G', 'G', 'G', 'G'
22660 .section .init_array.01005,"a",%progbits
22661 .balign 4
22662 .byte 'H', 'H', 'H', 'H'
22663 .text
22664 .globl _start
22665 _start:
22667 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22668 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22669 && $gcc_cv_objdump -s -j .init_array conftest \
22670 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22671 && $gcc_cv_objdump -s -j .fini_array conftest \
22672 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22673 gcc_cv_initfini_array=yes
22675 rm -f conftest conftest.*
22677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22680 #ifndef __ELF__
22681 # error Not an ELF OS
22682 #endif
22683 #include <stdlib.h>
22684 #if defined __GLIBC_PREREQ
22685 # if __GLIBC_PREREQ (2, 4)
22686 # else
22687 # error GLIBC 2.4 required
22688 # endif
22689 #else
22690 # if defined __sun__ && defined __svr4__
22691 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22692 # else
22693 # error The C library not known to support .init_array/.fini_array
22694 # endif
22695 #endif
22697 _ACEOF
22698 if ac_fn_c_try_cpp "$LINENO"; then :
22700 else
22701 gcc_cv_initfini_array=no
22703 rm -f conftest.err conftest.$ac_ext;;
22704 esac
22705 else
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22707 $as_echo_n "checking cross compile... guessing... " >&6; }
22708 gcc_cv_initfini_array=no
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22712 $as_echo "$gcc_cv_initfini_array" >&6; }
22713 enable_initfini_array=$gcc_cv_initfini_array
22717 if test $enable_initfini_array = yes; then
22719 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22723 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22725 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22726 if test "${gcc_cv_as_leb128+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22728 else
22729 gcc_cv_as_leb128=no
22730 if test $in_tree_gas = yes; then
22731 if test $in_tree_gas_is_elf = yes \
22732 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22733 then gcc_cv_as_leb128=yes
22735 elif test x$gcc_cv_as != x; then
22736 $as_echo ' .data
22737 .uleb128 L2 - L1
22739 .uleb128 1280
22740 .sleb128 -1010
22741 L2:' > conftest.s
22742 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; }
22748 then
22749 # GAS versions before 2.11 do not support uleb128,
22750 # despite appearing to.
22751 # ??? There exists an elf-specific test that will crash
22752 # the assembler. Perhaps it's better to figure out whether
22753 # arbitrary sections are supported and try the test.
22754 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22755 if echo "$as_ver" | grep GNU > /dev/null; then
22756 as_vers=`echo $as_ver | sed -n \
22757 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22758 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22759 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22760 if test $as_major -eq 2 && test $as_minor -lt 11
22761 then :
22762 else gcc_cv_as_leb128=yes
22765 else
22766 echo "configure: failed program was" >&5
22767 cat conftest.s >&5
22769 rm -f conftest.o conftest.s
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22773 $as_echo "$gcc_cv_as_leb128" >&6; }
22774 if test $gcc_cv_as_leb128 = yes; then
22776 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22780 # Check if we have assembler support for unwind directives.
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22782 $as_echo_n "checking assembler for cfi directives... " >&6; }
22783 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22784 $as_echo_n "(cached) " >&6
22785 else
22786 gcc_cv_as_cfi_directive=no
22787 if test x$gcc_cv_as != x; then
22788 $as_echo ' .text
22789 .cfi_startproc
22790 .cfi_offset 0, 0
22791 .cfi_same_value 1
22792 .cfi_def_cfa 1, 2
22793 .cfi_escape 1, 2, 3, 4, 5
22794 .cfi_endproc' > conftest.s
22795 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22800 test $ac_status = 0; }; }
22801 then
22802 case "$target" in
22803 *-*-solaris*)
22804 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22805 # read-only and read-write sections, we need to make sure that the
22806 # assembler used emits read-write .eh_frame sections.
22807 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22808 if test "x$gcc_cv_objdump" != x; then
22809 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22810 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22811 gcc_cv_as_cfi_directive=no
22812 else
22813 case "$target" in
22814 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22815 # On Solaris/x86, make sure that GCC and assembler agree on using
22816 # read-only .eh_frame sections for 64-bit.
22817 if test x$gas = xyes; then
22818 as_ix86_64_opt="--64"
22819 else
22820 as_ix86_64_opt="-xarch=amd64"
22822 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22823 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22824 sed -e /.eh_frame/!d -e N | \
22825 grep READONLY > /dev/null; then
22826 gcc_cv_as_cfi_directive=yes
22827 else
22828 gcc_cv_as_cfi_directive=no
22832 gcc_cv_as_cfi_directive=yes
22834 esac
22836 else
22837 # no objdump, err on the side of caution
22838 gcc_cv_as_cfi_directive=no
22840 else
22841 gcc_cv_as_cfi_directive=yes
22844 *-*-*)
22845 gcc_cv_as_cfi_directive=yes
22847 esac
22848 else
22849 echo "configure: failed program was" >&5
22850 cat conftest.s >&5
22852 rm -f conftest.o conftest.s
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22856 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22858 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22860 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22861 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22862 $as_echo_n "(cached) " >&6
22863 else
22864 gcc_cv_as_cfi_advance_working=no
22865 if test x$gcc_cv_as != x; then
22866 $as_echo ' .text
22867 .cfi_startproc
22868 .cfi_adjust_cfa_offset 64
22869 .skip 75040, 0
22870 .cfi_adjust_cfa_offset 128
22871 .cfi_endproc' > conftest.s
22872 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22874 (eval $ac_try) 2>&5
22875 ac_status=$?
22876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22877 test $ac_status = 0; }; }
22878 then
22880 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22881 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22882 gcc_cv_as_cfi_advance_working=yes
22885 else
22886 echo "configure: failed program was" >&5
22887 cat conftest.s >&5
22889 rm -f conftest.o conftest.s
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22893 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22895 else
22896 # no objdump, err on the side of caution
22897 gcc_cv_as_cfi_advance_working=no
22901 cat >>confdefs.h <<_ACEOF
22902 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22903 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22904 _ACEOF
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22909 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22910 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22912 else
22913 gcc_cv_as_cfi_personality_directive=no
22914 if test x$gcc_cv_as != x; then
22915 $as_echo ' .text
22916 .cfi_startproc
22917 .cfi_personality 0, symbol
22918 .cfi_endproc' > conftest.s
22919 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22921 (eval $ac_try) 2>&5
22922 ac_status=$?
22923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22924 test $ac_status = 0; }; }
22925 then
22926 gcc_cv_as_cfi_personality_directive=yes
22927 else
22928 echo "configure: failed program was" >&5
22929 cat conftest.s >&5
22931 rm -f conftest.o conftest.s
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22935 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22938 cat >>confdefs.h <<_ACEOF
22939 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22940 then echo 1; else echo 0; fi`
22941 _ACEOF
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22945 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22946 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22947 $as_echo_n "(cached) " >&6
22948 else
22949 gcc_cv_as_cfi_sections_directive=no
22950 if test x$gcc_cv_as != x; then
22951 $as_echo ' .text
22952 .cfi_sections .debug_frame, .eh_frame
22953 .cfi_startproc
22954 .cfi_endproc' > conftest.s
22955 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22957 (eval $ac_try) 2>&5
22958 ac_status=$?
22959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22960 test $ac_status = 0; }; }
22961 then
22962 case $target_os in
22963 win32 | pe | cygwin* | mingw32* | uwin*)
22964 # Need to check that we generated the correct relocation for the
22965 # .debug_frame section. This was fixed for binutils 2.21.
22966 gcc_cv_as_cfi_sections_directive=no
22967 if test "x$gcc_cv_objdump" != x; then
22968 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22969 grep secrel > /dev/null; then
22970 gcc_cv_as_cfi_sections_directive=yes
22975 gcc_cv_as_cfi_sections_directive=yes
22977 esac
22978 else
22979 echo "configure: failed program was" >&5
22980 cat conftest.s >&5
22982 rm -f conftest.o conftest.s
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22986 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22990 cat >>confdefs.h <<_ACEOF
22991 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22992 then echo 1; else echo 0; fi`
22993 _ACEOF
22996 # GAS versions up to and including 2.11.0 may mis-optimize
22997 # .eh_frame data.
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22999 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23000 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23001 $as_echo_n "(cached) " >&6
23002 else
23003 gcc_cv_as_eh_frame=no
23004 if test $in_tree_gas = yes; then
23005 if test $in_tree_gas_is_elf = yes \
23006 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23007 then gcc_cv_as_eh_frame=yes
23009 elif test x$gcc_cv_as != x; then
23010 $as_echo ' .text
23011 .LFB1:
23012 .4byte 0
23013 .L1:
23014 .4byte 0
23015 .LFE1:
23016 .section .eh_frame,"aw",@progbits
23017 __FRAME_BEGIN__:
23018 .4byte .LECIE1-.LSCIE1
23019 .LSCIE1:
23020 .4byte 0x0
23021 .byte 0x1
23022 .ascii "z\0"
23023 .byte 0x1
23024 .byte 0x78
23025 .byte 0x1a
23026 .byte 0x0
23027 .byte 0x4
23028 .4byte 1
23029 .p2align 1
23030 .LECIE1:
23031 .LSFDE1:
23032 .4byte .LEFDE1-.LASFDE1
23033 .LASFDE1:
23034 .4byte .LASFDE1-__FRAME_BEGIN__
23035 .4byte .LFB1
23036 .4byte .LFE1-.LFB1
23037 .byte 0x4
23038 .4byte .LFE1-.LFB1
23039 .byte 0x4
23040 .4byte .L1-.LFB1
23041 .LEFDE1:' > conftest.s
23042 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23044 (eval $ac_try) 2>&5
23045 ac_status=$?
23046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23047 test $ac_status = 0; }; }
23048 then
23049 cat > conftest.lit <<EOF
23050 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23051 0010 01000000 12000000 18000000 00000000 ................
23052 0020 08000000 04080000 0044 .........D
23054 cat > conftest.big <<EOF
23055 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23056 0010 00000001 00000012 00000018 00000000 ................
23057 0020 00000008 04000000 0844 .........D
23059 # If the assembler didn't choke, and we can objdump,
23060 # and we got the correct data, then succeed.
23061 # The text in the here-document typically retains its unix-style line
23062 # endings, while the output of objdump will use host line endings.
23063 # Therefore, use diff -b for the comparisons.
23064 if test x$gcc_cv_objdump != x \
23065 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23066 | tail -3 > conftest.got \
23067 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23068 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23069 then
23070 gcc_cv_as_eh_frame=yes
23071 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23073 (eval $ac_try) 2>&5
23074 ac_status=$?
23075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23076 test $ac_status = 0; }; }; then
23077 gcc_cv_as_eh_frame=buggy
23078 else
23079 # Uh oh, what do we do now?
23080 gcc_cv_as_eh_frame=no
23082 else
23083 echo "configure: failed program was" >&5
23084 cat conftest.s >&5
23086 rm -f conftest.o conftest.s
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23090 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23093 if test $gcc_cv_as_eh_frame = buggy; then
23095 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23100 $as_echo_n "checking assembler for section merging support... " >&6; }
23101 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23102 $as_echo_n "(cached) " >&6
23103 else
23104 gcc_cv_as_shf_merge=no
23105 if test $in_tree_gas = yes; then
23106 if test $in_tree_gas_is_elf = yes \
23107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23108 then gcc_cv_as_shf_merge=yes
23110 elif test x$gcc_cv_as != x; then
23111 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23112 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23117 test $ac_status = 0; }; }
23118 then
23119 gcc_cv_as_shf_merge=yes
23120 else
23121 echo "configure: failed program was" >&5
23122 cat conftest.s >&5
23124 rm -f conftest.o conftest.s
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23128 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23130 if test $gcc_cv_as_shf_merge = no; then
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23132 $as_echo_n "checking assembler for section merging support... " >&6; }
23133 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23134 $as_echo_n "(cached) " >&6
23135 else
23136 gcc_cv_as_shf_merge=no
23137 if test $in_tree_gas = yes; then
23138 if test $in_tree_gas_is_elf = yes \
23139 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23140 then gcc_cv_as_shf_merge=yes
23142 elif test x$gcc_cv_as != x; then
23143 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23149 test $ac_status = 0; }; }
23150 then
23151 gcc_cv_as_shf_merge=yes
23152 else
23153 echo "configure: failed program was" >&5
23154 cat conftest.s >&5
23156 rm -f conftest.o conftest.s
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23160 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23164 cat >>confdefs.h <<_ACEOF
23165 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23166 _ACEOF
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23170 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23171 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23172 $as_echo_n "(cached) " >&6
23173 else
23174 gcc_cv_as_comdat_group=no
23175 if test $in_tree_gas = yes; then
23176 if test $in_tree_gas_is_elf = yes \
23177 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23178 then gcc_cv_as_comdat_group=yes
23180 elif test x$gcc_cv_as != x; then
23181 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23184 (eval $ac_try) 2>&5
23185 ac_status=$?
23186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23187 test $ac_status = 0; }; }
23188 then
23189 gcc_cv_as_comdat_group=yes
23190 else
23191 echo "configure: failed program was" >&5
23192 cat conftest.s >&5
23194 rm -f conftest.o conftest.s
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23198 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23200 if test $gcc_cv_as_comdat_group = yes; then
23201 gcc_cv_as_comdat_group_percent=no
23202 gcc_cv_as_comdat_group_group=no
23203 else
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23205 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23206 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23207 $as_echo_n "(cached) " >&6
23208 else
23209 gcc_cv_as_comdat_group_percent=no
23210 if test $in_tree_gas = yes; then
23211 if test $in_tree_gas_is_elf = yes \
23212 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23213 then gcc_cv_as_comdat_group_percent=yes
23215 elif test x$gcc_cv_as != x; then
23216 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23219 (eval $ac_try) 2>&5
23220 ac_status=$?
23221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23222 test $ac_status = 0; }; }
23223 then
23224 gcc_cv_as_comdat_group_percent=yes
23225 else
23226 echo "configure: failed program was" >&5
23227 cat conftest.s >&5
23229 rm -f conftest.o conftest.s
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23233 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23235 if test $gcc_cv_as_comdat_group_percent = yes; then
23236 gcc_cv_as_comdat_group_group=no
23237 else
23238 case "${target}" in
23239 # Sun as uses a completely different syntax.
23240 *-*-solaris2*)
23241 case "${target}" in
23242 sparc*-*-solaris2*)
23243 conftest_s='
23244 .group foo,".text%foo",#comdat
23245 .section ".text%foo", #alloc,#execinstr,#progbits
23246 .globl foo
23247 foo:
23250 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23251 conftest_s='
23252 .group foo,.text%foo,#comdat
23253 .section .text%foo, "ax", @progbits
23254 .globl foo
23255 foo:
23258 esac
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23260 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23261 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23262 $as_echo_n "(cached) " >&6
23263 else
23264 gcc_cv_as_comdat_group_group=no
23265 if test x$gcc_cv_as != x; then
23266 $as_echo "$conftest_s" > conftest.s
23267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23273 then
23274 gcc_cv_as_comdat_group_group=yes
23275 else
23276 echo "configure: failed program was" >&5
23277 cat conftest.s >&5
23279 rm -f conftest.o conftest.s
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23283 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23286 esac
23287 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23288 gcc_cv_as_comdat_group_group=no
23292 if test x"$ld_is_gold" = xyes; then
23293 comdat_group=yes
23294 elif test $in_tree_ld = yes ; then
23295 comdat_group=no
23296 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 \
23297 && test $in_tree_ld_is_elf = yes; then
23298 comdat_group=yes
23300 elif echo "$ld_ver" | grep GNU > /dev/null; then
23301 comdat_group=yes
23302 if test 0"$ld_date" -lt 20050308; then
23303 if test -n "$ld_date"; then
23304 # If there was date string, but was earlier than 2005-03-08, fail
23305 comdat_group=no
23306 elif test "$ld_vers_major" -lt 2; then
23307 comdat_group=no
23308 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23309 comdat_group=no
23312 else
23313 case "${target}" in
23314 *-*-solaris2.1[1-9]*)
23315 comdat_group=no
23316 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23317 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23318 # version 1.688.
23320 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23321 # least ld version 1.2267.
23322 if test "$ld_vers_major" -gt 1; then
23323 comdat_group=yes
23324 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23325 comdat_group=yes
23326 elif test "$ld_vers_minor" -ge 2267; then
23327 comdat_group=yes
23331 # Assume linkers other than GNU ld don't support COMDAT group.
23332 comdat_group=no
23334 esac
23336 # Allow overriding the automatic COMDAT group tests above.
23337 # Check whether --enable-comdat was given.
23338 if test "${enable_comdat+set}" = set; then :
23339 enableval=$enable_comdat; comdat_group="$enable_comdat"
23342 if test $comdat_group = no; then
23343 gcc_cv_as_comdat_group=no
23344 gcc_cv_as_comdat_group_percent=no
23345 gcc_cv_as_comdat_group_group=no
23348 cat >>confdefs.h <<_ACEOF
23349 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23350 || test $gcc_cv_as_comdat_group_percent = yes \
23351 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23352 _ACEOF
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23356 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23357 if test "${gcc_cv_as_discriminator+set}" = set; then :
23358 $as_echo_n "(cached) " >&6
23359 else
23360 gcc_cv_as_discriminator=no
23361 if test $in_tree_gas = yes; then
23362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23363 then gcc_cv_as_discriminator=yes
23365 elif test x$gcc_cv_as != x; then
23366 $as_echo ' .text
23367 .file 1 "conf.c"
23368 .loc 1 1 0 discriminator 1' > conftest.s
23369 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23371 (eval $ac_try) 2>&5
23372 ac_status=$?
23373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23374 test $ac_status = 0; }; }
23375 then
23376 gcc_cv_as_discriminator=yes
23377 else
23378 echo "configure: failed program was" >&5
23379 cat conftest.s >&5
23381 rm -f conftest.o conftest.s
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23385 $as_echo "$gcc_cv_as_discriminator" >&6; }
23386 if test $gcc_cv_as_discriminator = yes; then
23388 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23392 # Thread-local storage - the check is heavily parameterized.
23393 conftest_s=
23394 tls_first_major=
23395 tls_first_minor=
23396 tls_as_opt=
23397 case "$target" in
23398 alpha*-*-*)
23399 conftest_s='
23400 .section ".tdata","awT",@progbits
23401 foo: .long 25
23402 .text
23403 ldq $27,__tls_get_addr($29) !literal!1
23404 lda $16,foo($29) !tlsgd!1
23405 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23406 ldq $27,__tls_get_addr($29) !literal!2
23407 lda $16,foo($29) !tlsldm!2
23408 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23409 ldq $1,foo($29) !gotdtprel
23410 ldah $2,foo($29) !dtprelhi
23411 lda $3,foo($2) !dtprello
23412 lda $4,foo($29) !dtprel
23413 ldq $1,foo($29) !gottprel
23414 ldah $2,foo($29) !tprelhi
23415 lda $3,foo($2) !tprello
23416 lda $4,foo($29) !tprel'
23417 tls_first_major=2
23418 tls_first_minor=13
23419 tls_as_opt=--fatal-warnings
23421 cris-*-*|crisv32-*-*)
23422 conftest_s='
23423 .section ".tdata","awT",@progbits
23424 x: .long 25
23425 .text
23426 move.d x:IE,$r10
23427 nop'
23428 tls_first_major=2
23429 tls_first_minor=20
23430 tls_as_opt=--fatal-warnings
23432 frv*-*-*)
23433 conftest_s='
23434 .section ".tdata","awT",@progbits
23435 x: .long 25
23436 .text
23437 call #gettlsoff(x)'
23438 tls_first_major=2
23439 tls_first_minor=14
23441 hppa*-*-linux*)
23442 conftest_s='
23443 t1: .reg %r20
23444 t2: .reg %r21
23445 gp: .reg %r19
23446 .section ".tdata","awT",@progbits
23447 foo: .long 25
23448 .text
23449 .align 4
23450 addil LT%foo-$tls_gdidx$,gp
23451 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23452 b __tls_get_addr
23454 addil LT%foo-$tls_ldidx$,gp
23455 b __tls_get_addr
23456 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23457 addil LR%foo-$tls_dtpoff$,%ret0
23458 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23459 mfctl %cr27,%t1
23460 addil LT%foo-$tls_ieoff$,gp
23461 ldw RT%foo-$tls_ieoff$(%r1),%t2
23462 add %t1,%t2,%t3
23463 mfctl %cr27,%t1
23464 addil LR%foo-$tls_leoff$,%t1
23465 ldo RR%foo-$tls_leoff$(%r1),%t2'
23466 tls_first_major=2
23467 tls_first_minor=15
23468 tls_as_opt=--fatal-warnings
23470 arm*-*-*)
23471 conftest_s='
23472 .section ".tdata","awT",%progbits
23473 foo: .long 25
23474 .text
23475 .word foo(gottpoff)
23476 .word foo(tpoff)
23477 .word foo(tlsgd)
23478 .word foo(tlsldm)
23479 .word foo(tlsldo)'
23480 tls_first_major=2
23481 tls_first_minor=17
23483 i[34567]86-*-* | x86_64-*-*)
23484 case "$target" in
23485 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23486 on_solaris=yes
23489 on_solaris=no
23491 esac
23492 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23493 conftest_s='
23494 .section .tdata,"awt",@progbits'
23495 tls_first_major=0
23496 tls_first_minor=0
23497 tls_section_flag=t
23499 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23501 else
23502 conftest_s='
23503 .section ".tdata","awT",@progbits'
23504 tls_first_major=2
23505 tls_first_minor=14
23506 tls_section_flag=T
23507 tls_as_opt="--fatal-warnings"
23509 case "$target" in
23510 i[34567]86-*-*)
23511 conftest_s="$conftest_s
23512 foo: .long 25
23513 .text
23514 movl %gs:0, %eax
23515 leal foo@tlsgd(,%ebx,1), %eax
23516 leal foo@tlsldm(%ebx), %eax
23517 leal foo@dtpoff(%eax), %edx
23518 movl foo@gottpoff(%ebx), %eax
23519 subl foo@gottpoff(%ebx), %eax
23520 addl foo@gotntpoff(%ebx), %eax
23521 movl foo@indntpoff, %eax
23522 movl \$foo@tpoff, %eax
23523 subl \$foo@tpoff, %eax
23524 leal foo@ntpoff(%ecx), %eax"
23526 x86_64-*-*)
23527 if test x$on_solaris = xyes; then
23528 case $gas_flag in
23529 yes) tls_as_opt="$tls_as_opt --64" ;;
23530 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23531 esac
23533 conftest_s="$conftest_s
23534 foo: .long 25
23535 .text
23536 movq %fs:0, %rax
23537 leaq foo@tlsgd(%rip), %rdi
23538 leaq foo@tlsld(%rip), %rdi
23539 leaq foo@dtpoff(%rax), %rdx
23540 movq foo@gottpoff(%rip), %rax
23541 movq \$foo@tpoff, %rax"
23543 esac
23545 ia64-*-*)
23546 conftest_s='
23547 .section ".tdata","awT",@progbits
23548 foo: data8 25
23549 .text
23550 addl r16 = @ltoff(@dtpmod(foo#)), gp
23551 addl r17 = @ltoff(@dtprel(foo#)), gp
23552 addl r18 = @ltoff(@tprel(foo#)), gp
23553 addl r19 = @dtprel(foo#), gp
23554 adds r21 = @dtprel(foo#), r13
23555 movl r23 = @dtprel(foo#)
23556 addl r20 = @tprel(foo#), gp
23557 adds r22 = @tprel(foo#), r13
23558 movl r24 = @tprel(foo#)'
23559 tls_first_major=2
23560 tls_first_minor=13
23561 tls_as_opt=--fatal-warnings
23563 microblaze*-*-*)
23564 conftest_s='
23565 .section .tdata,"awT",@progbits
23567 .word 2
23568 .text
23569 addik r5,r20,x@TLSGD
23570 addik r5,r20,x@TLSLDM'
23571 tls_first_major=2
23572 tls_first_minor=20
23573 tls_as_opt='--fatal-warnings'
23575 mips*-*-*)
23576 conftest_s='
23577 .section .tdata,"awT",@progbits
23579 .word 2
23580 .text
23581 addiu $4, $28, %tlsgd(x)
23582 addiu $4, $28, %tlsldm(x)
23583 lui $4, %dtprel_hi(x)
23584 addiu $4, $4, %dtprel_lo(x)
23585 lw $4, %gottprel(x)($28)
23586 lui $4, %tprel_hi(x)
23587 addiu $4, $4, %tprel_lo(x)'
23588 tls_first_major=2
23589 tls_first_minor=16
23590 tls_as_opt='-32 --fatal-warnings'
23592 m68k-*-*)
23593 conftest_s='
23594 .section .tdata,"awT",@progbits
23596 .word 2
23597 .text
23598 foo:
23599 move.l x@TLSGD(%a5),%a0
23600 move.l x@TLSLDM(%a5),%a0
23601 move.l x@TLSLDO(%a5),%a0
23602 move.l x@TLSIE(%a5),%a0
23603 move.l x@TLSLE(%a5),%a0'
23604 tls_first_major=2
23605 tls_first_minor=19
23606 tls_as_opt='--fatal-warnings'
23608 nios2-*-*)
23609 conftest_s='
23610 .section ".tdata","awT",@progbits'
23611 tls_first_major=2
23612 tls_first_minor=23
23613 tls_as_opt="--fatal-warnings"
23615 aarch64*-*-*)
23616 conftest_s='
23617 .section ".tdata","awT",%progbits
23618 foo: .long 25
23619 .text
23620 adrp x0, :tlsgd:x
23621 add x0, x0, #:tlsgd_lo12:x
23622 bl __tls_get_addr
23623 nop'
23624 tls_first_major=2
23625 tls_first_minor=20
23626 tls_as_opt='--fatal-warnings'
23628 powerpc-ibm-aix*)
23629 conftest_s='
23630 .extern __get_tpointer
23631 .toc
23632 LC..1:
23633 .tc a[TC],a[TL]@le
23634 .csect .text[PR]
23635 .tlstest:
23636 lwz 9,LC..1(2)
23637 bla __get_tpointer
23638 lwzx 3,9,3
23639 .globl a
23640 .csect a[TL],4
23642 .space 4'
23643 tls_first_major=0
23644 tls_first_minor=0
23646 powerpc64*-*-*)
23647 conftest_s='
23648 .section ".tdata","awT",@progbits
23649 .align 3
23650 ld0: .space 8
23651 ld1: .space 8
23652 x1: .space 8
23653 x2: .space 8
23654 x3: .space 8
23655 .text
23656 addi 3,2,ld0@got@tlsgd
23657 bl .__tls_get_addr
23659 addi 3,2,ld1@toc
23660 bl .__tls_get_addr
23662 addi 3,2,x1@got@tlsld
23663 bl .__tls_get_addr
23665 addi 9,3,x1@dtprel
23666 bl .__tls_get_addr
23668 addis 9,3,x2@dtprel@ha
23669 addi 9,9,x2@dtprel@l
23670 bl .__tls_get_addr
23672 ld 9,x3@got@dtprel(2)
23673 add 9,9,3
23674 bl .__tls_get_addr
23675 nop'
23676 tls_first_major=2
23677 tls_first_minor=14
23678 tls_as_opt="-a64 --fatal-warnings"
23680 powerpc*-*-*)
23681 conftest_s='
23682 .section ".tdata","awT",@progbits
23683 .align 2
23684 ld0: .space 4
23685 ld1: .space 4
23686 x1: .space 4
23687 x2: .space 4
23688 x3: .space 4
23689 .text
23690 addi 3,31,ld0@got@tlsgd
23691 bl __tls_get_addr
23692 addi 3,31,x1@got@tlsld
23693 bl __tls_get_addr
23694 addi 9,3,x1@dtprel
23695 addis 9,3,x2@dtprel@ha
23696 addi 9,9,x2@dtprel@l
23697 lwz 9,x3@got@tprel(31)
23698 add 9,9,x@tls
23699 addi 9,2,x1@tprel
23700 addis 9,2,x2@tprel@ha
23701 addi 9,9,x2@tprel@l'
23702 tls_first_major=2
23703 tls_first_minor=14
23704 tls_as_opt="-a32 --fatal-warnings"
23706 s390-*-*)
23707 conftest_s='
23708 .section ".tdata","awT",@progbits
23709 foo: .long 25
23710 .text
23711 .long foo@TLSGD
23712 .long foo@TLSLDM
23713 .long foo@DTPOFF
23714 .long foo@NTPOFF
23715 .long foo@GOTNTPOFF
23716 .long foo@INDNTPOFF
23717 l %r1,foo@GOTNTPOFF(%r12)
23718 l %r1,0(%r1):tls_load:foo
23719 bas %r14,0(%r1,%r13):tls_gdcall:foo
23720 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23721 tls_first_major=2
23722 tls_first_minor=14
23723 tls_as_opt="-m31 --fatal-warnings"
23725 s390x-*-*)
23726 conftest_s='
23727 .section ".tdata","awT",@progbits
23728 foo: .long 25
23729 .text
23730 .quad foo@TLSGD
23731 .quad foo@TLSLDM
23732 .quad foo@DTPOFF
23733 .quad foo@NTPOFF
23734 .quad foo@GOTNTPOFF
23735 lg %r1,foo@GOTNTPOFF(%r12)
23736 larl %r1,foo@INDNTPOFF
23737 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23738 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23739 tls_first_major=2
23740 tls_first_minor=14
23741 tls_as_opt="-m64 -Aesame --fatal-warnings"
23743 sh-*-* | sh[34]-*-*)
23744 conftest_s='
23745 .section ".tdata","awT",@progbits
23746 foo: .long 25
23747 .text
23748 .long foo@TLSGD
23749 .long foo@TLSLDM
23750 .long foo@DTPOFF
23751 .long foo@GOTTPOFF
23752 .long foo@TPOFF'
23753 tls_first_major=2
23754 tls_first_minor=13
23755 tls_as_opt=--fatal-warnings
23757 sparc*-*-*)
23758 case "$target" in
23759 sparc*-sun-solaris2.*)
23760 on_solaris=yes
23763 on_solaris=no
23765 esac
23766 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23767 conftest_s='
23768 .section ".tdata",#alloc,#write,#tls'
23769 tls_first_major=0
23770 tls_first_minor=0
23771 else
23772 conftest_s='
23773 .section ".tdata","awT",@progbits'
23774 tls_first_major=2
23775 tls_first_minor=14
23776 tls_as_opt="-32 --fatal-warnings"
23778 conftest_s="$conftest_s
23779 foo: .long 25
23780 .text
23781 sethi %tgd_hi22(foo), %o0
23782 add %o0, %tgd_lo10(foo), %o1
23783 add %l7, %o1, %o0, %tgd_add(foo)
23784 call __tls_get_addr, %tgd_call(foo)
23785 sethi %tldm_hi22(foo), %l1
23786 add %l1, %tldm_lo10(foo), %l2
23787 add %l7, %l2, %o0, %tldm_add(foo)
23788 call __tls_get_addr, %tldm_call(foo)
23789 sethi %tldo_hix22(foo), %l3
23790 xor %l3, %tldo_lox10(foo), %l4
23791 add %o0, %l4, %l5, %tldo_add(foo)
23792 sethi %tie_hi22(foo), %o3
23793 add %o3, %tie_lo10(foo), %o3
23794 ld [%l7 + %o3], %o2, %tie_ld(foo)
23795 add %g7, %o2, %o4, %tie_add(foo)
23796 sethi %tle_hix22(foo), %l1
23797 xor %l1, %tle_lox10(foo), %o5
23798 ld [%g7 + %o5], %o1"
23800 tilepro*-*-*)
23801 conftest_s='
23802 .section ".tdata","awT",@progbits
23803 foo: .long 25
23804 .text
23805 addli r0, zero, tls_gd(foo)
23806 auli r0, zero, tls_gd_ha16(foo)
23807 addli r0, r0, tls_gd_lo16(foo)
23808 jal __tls_get_addr
23809 addli r0, zero, tls_ie(foo)
23810 auli r0, r0, tls_ie_ha16(foo)
23811 addli r0, r0, tls_ie_lo16(foo)'
23812 tls_first_major=2
23813 tls_first_minor=22
23814 tls_as_opt="--fatal-warnings"
23816 tilegx*-*-*)
23817 conftest_s='
23818 .section ".tdata","awT",@progbits
23819 foo: .long 25
23820 .text
23821 shl16insli r0, zero, hw0_last_tls_gd(foo)
23822 shl16insli r0, zero, hw1_last_tls_gd(foo)
23823 shl16insli r0, r0, hw0_tls_gd(foo)
23824 jal __tls_get_addr
23825 shl16insli r0, zero, hw1_last_tls_ie(foo)
23826 shl16insli r0, r0, hw0_tls_ie(foo)'
23827 tls_first_major=2
23828 tls_first_minor=22
23829 tls_as_opt="--fatal-warnings"
23831 xtensa*-*-*)
23832 conftest_s='
23833 .section ".tdata","awT",@progbits
23834 foo: .long 25
23835 .text
23836 movi a8, foo@TLSFUNC
23837 movi a10, foo@TLSARG
23838 callx8.tls a8, foo@TLSCALL'
23839 tls_first_major=2
23840 tls_first_minor=19
23842 esac
23843 set_have_as_tls=no
23844 if test "x$enable_tls" = xno ; then
23845 : # TLS explicitly disabled.
23846 elif test "x$enable_tls" = xyes ; then
23847 set_have_as_tls=yes # TLS explicitly enabled.
23848 elif test -z "$tls_first_major"; then
23849 : # If we don't have a check, assume no support.
23850 else
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23852 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23853 if test "${gcc_cv_as_tls+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23855 else
23856 gcc_cv_as_tls=no
23857 if test $in_tree_gas = yes; then
23858 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23859 then gcc_cv_as_tls=yes
23861 elif test x$gcc_cv_as != x; then
23862 $as_echo "$conftest_s" > conftest.s
23863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23869 then
23870 gcc_cv_as_tls=yes
23871 else
23872 echo "configure: failed program was" >&5
23873 cat conftest.s >&5
23875 rm -f conftest.o conftest.s
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23879 $as_echo "$gcc_cv_as_tls" >&6; }
23880 if test $gcc_cv_as_tls = yes; then
23881 set_have_as_tls=yes
23884 if test $set_have_as_tls = yes ; then
23886 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23890 # Target-specific assembler checks.
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23893 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23894 gcc_cv_ld_static_dynamic=no
23895 gcc_cv_ld_static_option='-Bstatic'
23896 gcc_cv_ld_dynamic_option='-Bdynamic'
23897 if test $in_tree_ld = yes ; then
23898 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
23899 gcc_cv_ld_static_dynamic=yes
23901 elif test x$gcc_cv_ld != x; then
23902 # Check if linker supports -Bstatic/-Bdynamic option
23903 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23904 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23905 gcc_cv_ld_static_dynamic=yes
23906 else
23907 case "$target" in
23908 # AIX ld uses -b flags
23909 *-*-aix4.[23]* | *-*-aix[5-9]*)
23910 gcc_cv_ld_static_dynamic=yes
23911 gcc_cv_ld_static_option="-bstatic"
23912 gcc_cv_ld_dynamic_option="-bdynamic"
23914 # HP-UX ld uses -a flags to select between shared and archive.
23915 *-*-hpux*)
23916 if test x"$gnu_ld" = xno; then
23917 gcc_cv_ld_static_dynamic=yes
23918 gcc_cv_ld_static_option="-aarchive_shared"
23919 gcc_cv_ld_dynamic_option="-adefault"
23922 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23923 *-*-solaris2*)
23924 gcc_cv_ld_static_dynamic=yes
23926 esac
23929 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23931 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23934 cat >>confdefs.h <<_ACEOF
23935 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23936 _ACEOF
23939 cat >>confdefs.h <<_ACEOF
23940 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23941 _ACEOF
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23945 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23947 if test x"$demangler_in_ld" = xyes; then
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23949 $as_echo_n "checking linker --demangle support... " >&6; }
23950 gcc_cv_ld_demangle=no
23951 if test $in_tree_ld = yes; then
23952 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 \
23953 gcc_cv_ld_demangle=yes
23955 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23956 # Check if the GNU linker supports --demangle option
23957 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23958 gcc_cv_ld_demangle=yes
23961 if test x"$gcc_cv_ld_demangle" = xyes; then
23963 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23967 $as_echo "$gcc_cv_ld_demangle" >&6; }
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23971 $as_echo_n "checking linker plugin support... " >&6; }
23972 gcc_cv_lto_plugin=0
23973 if test -f liblto_plugin.la; then
23974 save_ld_ver="$ld_ver"
23975 save_ld_vers_major="$ld_vers_major"
23976 save_ld_vers_minor="$ld_vers_minor"
23977 save_ld_is_gold="$ld_is_gold"
23979 ld_is_gold=no
23981 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23982 ld_ver="GNU ld"
23983 # FIXME: ld_is_gold?
23984 ld_vers_major="$gcc_cv_gld_major_version"
23985 ld_vers_minor="$gcc_cv_gld_minor_version"
23986 else
23987 # Determine plugin linker version.
23988 # FIXME: Partial duplicate from above, generalize.
23989 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23990 if echo "$ld_ver" | grep GNU > /dev/null; then
23991 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23992 ld_is_gold=yes
23993 ld_vers=`echo $ld_ver | sed -n \
23994 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23995 else
23996 ld_vers=`echo $ld_ver | sed -n \
23997 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23999 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24000 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24004 # Determine plugin support.
24005 if echo "$ld_ver" | grep GNU > /dev/null; then
24006 # Require GNU ld or gold 2.21+ for plugin support by default.
24007 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24008 gcc_cv_lto_plugin=2
24009 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24010 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24011 gcc_cv_lto_plugin=1
24015 ld_ver="$save_ld_ver"
24016 ld_vers_major="$save_ld_vers_major"
24017 ld_vers_minor="$save_ld_vers_minor"
24018 ld_is_gold="$save_ld_is_gold"
24021 cat >>confdefs.h <<_ACEOF
24022 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24023 _ACEOF
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24026 $as_echo "$gcc_cv_lto_plugin" >&6; }
24028 case "$target" in
24029 aarch64*-*-*)
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24031 $as_echo_n "checking assembler for -mabi option... " >&6; }
24032 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24033 $as_echo_n "(cached) " >&6
24034 else
24035 gcc_cv_as_aarch64_mabi=no
24036 if test x$gcc_cv_as != x; then
24037 $as_echo '.text' > conftest.s
24038 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24040 (eval $ac_try) 2>&5
24041 ac_status=$?
24042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24043 test $ac_status = 0; }; }
24044 then
24045 gcc_cv_as_aarch64_mabi=yes
24046 else
24047 echo "configure: failed program was" >&5
24048 cat conftest.s >&5
24050 rm -f conftest.o conftest.s
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24054 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24056 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24058 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24060 else
24061 if test x$with_abi = xilp32; then
24062 as_fn_error "Assembler does not support -mabi=ilp32.\
24063 Upgrade the Assembler." "$LINENO" 5
24065 if test x"$with_multilib_list" = xdefault; then
24066 TM_MULTILIB_CONFIG=lp64
24067 else
24068 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24069 for aarch64_multilib in ${aarch64_multilibs}; do
24070 case ${aarch64_multilib} in
24071 ilp32)
24072 as_fn_error "Assembler does not support -mabi=ilp32.\
24073 Upgrade the Assembler." "$LINENO" 5
24077 esac
24078 done
24081 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24082 # Check whether --enable-fix-cortex-a53-835769 was given.
24083 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24084 enableval=$enable_fix_cortex_a53_835769;
24085 case $enableval in
24086 yes)
24087 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24092 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24093 Valid choices are 'yes' and 'no'." "$LINENO" 5
24096 esac
24102 # All TARGET_ABI_OSF targets.
24103 alpha*-*-linux* | alpha*-*-*bsd*)
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24105 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24106 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24107 $as_echo_n "(cached) " >&6
24108 else
24109 gcc_cv_as_alpha_explicit_relocs=no
24110 if test $in_tree_gas = yes; then
24111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24112 then gcc_cv_as_alpha_explicit_relocs=yes
24114 elif test x$gcc_cv_as != x; then
24115 $as_echo ' .set nomacro
24116 .text
24117 extbl $3, $2, $3 !lituse_bytoff!1
24118 ldq $2, a($29) !literal!1
24119 ldq $4, b($29) !literal!2
24120 ldq_u $3, 0($2) !lituse_base!1
24121 ldq $27, f($29) !literal!5
24122 jsr $26, ($27), f !lituse_jsr!5
24123 ldah $29, 0($26) !gpdisp!3
24124 lda $0, c($29) !gprel
24125 ldah $1, d($29) !gprelhigh
24126 lda $1, d($1) !gprellow
24127 lda $29, 0($29) !gpdisp!3' > conftest.s
24128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }
24134 then
24135 gcc_cv_as_alpha_explicit_relocs=yes
24136 else
24137 echo "configure: failed program was" >&5
24138 cat conftest.s >&5
24140 rm -f conftest.o conftest.s
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24144 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24145 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24147 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24151 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24152 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24154 else
24155 gcc_cv_as_alpha_jsrdirect_relocs=no
24156 if test $in_tree_gas = yes; then
24157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24158 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24160 elif test x$gcc_cv_as != x; then
24161 $as_echo ' .set nomacro
24162 .text
24163 ldq $27, a($29) !literal!1
24164 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_alpha_jsrdirect_relocs=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_alpha_jsrdirect_relocs" >&5
24181 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24182 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24184 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24189 cris-*-*)
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24191 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24192 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24193 $as_echo_n "(cached) " >&6
24194 else
24195 gcc_cv_as_cris_no_mul_bug=no
24196 if test $in_tree_gas = yes; then
24197 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24198 then gcc_cv_as_cris_no_mul_bug=yes
24200 elif test x$gcc_cv_as != x; then
24201 $as_echo '.text' > conftest.s
24202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24204 (eval $ac_try) 2>&5
24205 ac_status=$?
24206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24207 test $ac_status = 0; }; }
24208 then
24209 gcc_cv_as_cris_no_mul_bug=yes
24210 else
24211 echo "configure: failed program was" >&5
24212 cat conftest.s >&5
24214 rm -f conftest.o conftest.s
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24218 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24219 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24221 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24226 sparc*-*-*)
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24228 $as_echo_n "checking assembler for .register... " >&6; }
24229 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24231 else
24232 gcc_cv_as_sparc_register_op=no
24233 if test x$gcc_cv_as != x; then
24234 $as_echo '.register %g2, #scratch' > conftest.s
24235 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24237 (eval $ac_try) 2>&5
24238 ac_status=$?
24239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24240 test $ac_status = 0; }; }
24241 then
24242 gcc_cv_as_sparc_register_op=yes
24243 else
24244 echo "configure: failed program was" >&5
24245 cat conftest.s >&5
24247 rm -f conftest.o conftest.s
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24251 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24252 if test $gcc_cv_as_sparc_register_op = yes; then
24254 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24259 $as_echo_n "checking assembler for #nobits... " >&6; }
24260 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
24262 else
24263 gcc_cv_as_sparc_nobits=no
24264 if test x$gcc_cv_as != x; then
24265 $as_echo '.section "nobits",#alloc,#write,#nobits
24266 .section "progbits",#alloc,#write,#progbits' > conftest.s
24267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24272 test $ac_status = 0; }; }
24273 then
24274 gcc_cv_as_sparc_nobits=yes
24275 else
24276 echo "configure: failed program was" >&5
24277 cat conftest.s >&5
24279 rm -f conftest.o conftest.s
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24283 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24286 cat >>confdefs.h <<_ACEOF
24287 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24288 _ACEOF
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24292 $as_echo_n "checking assembler for -relax option... " >&6; }
24293 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24294 $as_echo_n "(cached) " >&6
24295 else
24296 gcc_cv_as_sparc_relax=no
24297 if test x$gcc_cv_as != x; then
24298 $as_echo '.text' > conftest.s
24299 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24305 then
24306 gcc_cv_as_sparc_relax=yes
24307 else
24308 echo "configure: failed program was" >&5
24309 cat conftest.s >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24315 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24316 if test $gcc_cv_as_sparc_relax = yes; then
24318 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24323 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24324 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24325 $as_echo_n "(cached) " >&6
24326 else
24327 gcc_cv_as_sparc_gotdata_op=no
24328 if test x$gcc_cv_as != x; then
24329 $as_echo '.text
24330 .align 4
24331 foo:
24333 bar:
24334 sethi %gdop_hix22(foo), %g1
24335 xor %g1, %gdop_lox10(foo), %g1
24336 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24337 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24340 ac_status=$?
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24343 then
24344 if test x$gcc_cv_ld != x \
24345 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24346 if test x$gcc_cv_objdump != x; then
24347 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24348 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24349 gcc_cv_as_sparc_gotdata_op=no
24350 else
24351 gcc_cv_as_sparc_gotdata_op=yes
24355 rm -f conftest
24356 else
24357 echo "configure: failed program was" >&5
24358 cat conftest.s >&5
24360 rm -f conftest.o conftest.s
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24364 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24365 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24367 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24372 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24373 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24374 $as_echo_n "(cached) " >&6
24375 else
24376 gcc_cv_as_sparc_ua_pcrel=no
24377 if test x$gcc_cv_as != x; then
24378 $as_echo '.text
24379 foo:
24381 .data
24382 .align 4
24383 .byte 0
24384 .uaword %r_disp32(foo)' > conftest.s
24385 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24387 (eval $ac_try) 2>&5
24388 ac_status=$?
24389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24390 test $ac_status = 0; }; }
24391 then
24392 if test x$gcc_cv_ld != x \
24393 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24394 gcc_cv_as_sparc_ua_pcrel=yes
24396 rm -f conftest
24397 else
24398 echo "configure: failed program was" >&5
24399 cat conftest.s >&5
24401 rm -f conftest.o conftest.s
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24405 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24406 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24408 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24412 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24413 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24414 $as_echo_n "(cached) " >&6
24415 else
24416 gcc_cv_as_sparc_ua_pcrel_hidden=no
24417 if test x$gcc_cv_as != x; then
24418 $as_echo '.data
24419 .align 4
24420 .byte 0x31
24421 .uaword %r_disp32(foo)
24422 .byte 0x32, 0x33, 0x34
24423 .global foo
24424 .hidden foo
24425 foo:
24426 .skip 4' > conftest.s
24427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24429 (eval $ac_try) 2>&5
24430 ac_status=$?
24431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24432 test $ac_status = 0; }; }
24433 then
24434 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24435 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24436 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24437 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24438 if $gcc_cv_objdump -R conftest 2> /dev/null \
24439 | grep 'DISP32' > /dev/null 2>&1; then
24441 else
24442 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24445 rm -f conftest
24446 else
24447 echo "configure: failed program was" >&5
24448 cat conftest.s >&5
24450 rm -f conftest.o conftest.s
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24454 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24455 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24457 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24461 fi # unaligned pcrel relocs
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24464 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24465 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24466 $as_echo_n "(cached) " >&6
24467 else
24468 gcc_cv_as_sparc_offsetable_lo10=no
24469 if test x$gcc_cv_as != x; then
24470 $as_echo '.text
24471 or %g1, %lo(ab) + 12, %g1
24472 or %g1, %lo(ab + 12), %g1' > conftest.s
24473 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24475 (eval $ac_try) 2>&5
24476 ac_status=$?
24477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24478 test $ac_status = 0; }; }
24479 then
24480 if test x$gcc_cv_objdump != x \
24481 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24482 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24483 gcc_cv_as_sparc_offsetable_lo10=yes
24485 else
24486 echo "configure: failed program was" >&5
24487 cat conftest.s >&5
24489 rm -f conftest.o conftest.s
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24493 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24494 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24496 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24501 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24502 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24504 else
24505 gcc_cv_as_sparc_fmaf=no
24506 if test x$gcc_cv_as != x; then
24507 $as_echo '.text
24508 .register %g2, #scratch
24509 .register %g3, #scratch
24510 .align 4
24511 fmaddd %f0, %f2, %f4, %f6
24512 addxccc %g1, %g2, %g3
24513 fsrl32 %f2, %f4, %f8
24514 fnaddd %f10, %f12, %f14' > conftest.s
24515 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517 (eval $ac_try) 2>&5
24518 ac_status=$?
24519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520 test $ac_status = 0; }; }
24521 then
24522 gcc_cv_as_sparc_fmaf=yes
24523 else
24524 echo "configure: failed program was" >&5
24525 cat conftest.s >&5
24527 rm -f conftest.o conftest.s
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24531 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24532 if test $gcc_cv_as_sparc_fmaf = yes; then
24534 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24539 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24540 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24541 $as_echo_n "(cached) " >&6
24542 else
24543 gcc_cv_as_sparc_sparc4=no
24544 if test x$gcc_cv_as != x; then
24545 $as_echo '.text
24546 .register %g2, #scratch
24547 .register %g3, #scratch
24548 .align 4
24549 cxbe %g2, %g3, 1f
24550 1: cwbneg %g2, %g3, 1f
24551 1: sha1
24553 aes_kexpand0 %f4, %f6, %f8
24554 des_round %f38, %f40, %f42, %f44
24555 camellia_f %f54, %f56, %f58, %f60
24556 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24557 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
24561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562 test $ac_status = 0; }; }
24563 then
24564 gcc_cv_as_sparc_sparc4=yes
24565 else
24566 echo "configure: failed program was" >&5
24567 cat conftest.s >&5
24569 rm -f conftest.o conftest.s
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24573 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24574 if test $gcc_cv_as_sparc_sparc4 = yes; then
24576 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24581 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24582 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24583 $as_echo_n "(cached) " >&6
24584 else
24585 gcc_cv_as_sparc_leon=no
24586 if test x$gcc_cv_as != x; then
24587 $as_echo '.text
24588 .register %g2, #scratch
24589 .register %g3, #scratch
24590 .align 4
24591 smac %g2, %g3, %g1
24592 umac %g2, %g3, %g1
24593 casa [%g2] 0xb, %g3, %g1' > conftest.s
24594 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24596 (eval $ac_try) 2>&5
24597 ac_status=$?
24598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24599 test $ac_status = 0; }; }
24600 then
24601 gcc_cv_as_sparc_leon=yes
24602 else
24603 echo "configure: failed program was" >&5
24604 cat conftest.s >&5
24606 rm -f conftest.o conftest.s
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24610 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24611 if test $gcc_cv_as_sparc_leon = yes; then
24613 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24618 i[34567]86-*-* | x86_64-*-*)
24619 case $target_os in
24620 cygwin*)
24621 # Full C++ conformance when using a shared libstdc++-v3 requires some
24622 # support from the Cygwin DLL, which in more recent versions exports
24623 # wrappers to aid in interposing and redirecting operators new, delete,
24624 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24625 # are configuring for a version of Cygwin that exports the wrappers.
24626 if test x$host = x$target && test x$host_cpu = xi686; then
24627 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24628 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24629 gcc_ac_cygwin_dll_wrappers=yes
24630 else
24631 gcc_ac_cygwin_dll_wrappers=no
24634 else
24635 # Can't check presence of libc functions during cross-compile, so
24636 # we just have to assume we're building for an up-to-date target.
24637 gcc_ac_cygwin_dll_wrappers=yes
24640 cat >>confdefs.h <<_ACEOF
24641 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24642 _ACEOF
24644 esac
24645 case $target_os in
24646 cygwin* | pe | mingw32* | interix*)
24647 # Recent binutils allows the three-operand form of ".comm" on PE. This
24648 # definition is used unconditionally to initialise the default state of
24649 # the target option variable that governs usage of the feature.
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24651 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24652 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24653 $as_echo_n "(cached) " >&6
24654 else
24655 gcc_cv_as_comm_has_align=no
24656 if test $in_tree_gas = yes; then
24657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24658 then gcc_cv_as_comm_has_align=yes
24660 elif test x$gcc_cv_as != x; then
24661 $as_echo '.comm foo,1,32' > conftest.s
24662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; }
24668 then
24669 gcc_cv_as_comm_has_align=yes
24670 else
24671 echo "configure: failed program was" >&5
24672 cat conftest.s >&5
24674 rm -f conftest.o conftest.s
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24678 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24681 cat >>confdefs.h <<_ACEOF
24682 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24683 _ACEOF
24685 # Used for DWARF 2 in PE
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24687 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24688 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24690 else
24691 gcc_cv_as_ix86_pe_secrel32=no
24692 if test $in_tree_gas = yes; then
24693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24694 then gcc_cv_as_ix86_pe_secrel32=yes
24696 elif test x$gcc_cv_as != x; then
24697 $as_echo '.text
24698 foo: nop
24699 .data
24700 .secrel32 foo' > conftest.s
24701 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24703 (eval $ac_try) 2>&5
24704 ac_status=$?
24705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24706 test $ac_status = 0; }; }
24707 then
24708 if test x$gcc_cv_ld != x \
24709 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24710 gcc_cv_as_ix86_pe_secrel32=yes
24712 rm -f conftest
24713 else
24714 echo "configure: failed program was" >&5
24715 cat conftest.s >&5
24717 rm -f conftest.o conftest.s
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24721 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24722 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24724 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24727 # Test if the assembler supports the extended form of the .section
24728 # directive that specifies section alignment. LTO support uses this,
24729 # but normally only after installation, so we warn but don't fail the
24730 # configure if LTO is enabled but the assembler does not support it.
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24732 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24733 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24734 $as_echo_n "(cached) " >&6
24735 else
24736 gcc_cv_as_section_has_align=no
24737 if test $in_tree_gas = yes; then
24738 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24739 then gcc_cv_as_section_has_align=yes
24741 elif test x$gcc_cv_as != x; then
24742 $as_echo '.section lto_test,"dr0"' > conftest.s
24743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24745 (eval $ac_try) 2>&5
24746 ac_status=$?
24747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24748 test $ac_status = 0; }; }
24749 then
24750 gcc_cv_as_section_has_align=yes
24751 else
24752 echo "configure: failed program was" >&5
24753 cat conftest.s >&5
24755 rm -f conftest.o conftest.s
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24759 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24761 if test x$gcc_cv_as_section_has_align != xyes; then
24762 case ",$enable_languages," in
24763 *,lto,*)
24764 { $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
24765 $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;}
24767 esac
24770 esac
24772 # Test if the assembler supports the section flag 'e' for specifying
24773 # an excluded section.
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24775 $as_echo_n "checking assembler for .section with e... " >&6; }
24776 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24777 $as_echo_n "(cached) " >&6
24778 else
24779 gcc_cv_as_section_has_e=no
24780 if test $in_tree_gas = yes; then
24781 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24782 then gcc_cv_as_section_has_e=yes
24784 elif test x$gcc_cv_as != x; then
24785 $as_echo '.section foo1,"e"
24786 .byte 0,0,0,0' > conftest.s
24787 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24789 (eval $ac_try) 2>&5
24790 ac_status=$?
24791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24792 test $ac_status = 0; }; }
24793 then
24794 gcc_cv_as_section_has_e=yes
24795 else
24796 echo "configure: failed program was" >&5
24797 cat conftest.s >&5
24799 rm -f conftest.o conftest.s
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24803 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24806 cat >>confdefs.h <<_ACEOF
24807 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24808 _ACEOF
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24812 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24813 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24814 $as_echo_n "(cached) " >&6
24815 else
24816 gcc_cv_as_ix86_filds=no
24817 if test x$gcc_cv_as != x; then
24818 $as_echo 'filds mem; fists mem' > conftest.s
24819 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24822 ac_status=$?
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24825 then
24826 gcc_cv_as_ix86_filds=yes
24827 else
24828 echo "configure: failed program was" >&5
24829 cat conftest.s >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24835 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24836 if test $gcc_cv_as_ix86_filds = yes; then
24838 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24843 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24844 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24845 $as_echo_n "(cached) " >&6
24846 else
24847 gcc_cv_as_ix86_fildq=no
24848 if test x$gcc_cv_as != x; then
24849 $as_echo 'fildq mem; fistpq mem' > conftest.s
24850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24852 (eval $ac_try) 2>&5
24853 ac_status=$?
24854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24855 test $ac_status = 0; }; }
24856 then
24857 gcc_cv_as_ix86_fildq=yes
24858 else
24859 echo "configure: failed program was" >&5
24860 cat conftest.s >&5
24862 rm -f conftest.o conftest.s
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24866 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24867 if test $gcc_cv_as_ix86_fildq = yes; then
24869 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24874 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24875 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24876 $as_echo_n "(cached) " >&6
24877 else
24878 gcc_cv_as_ix86_cmov_sun_syntax=no
24879 if test x$gcc_cv_as != x; then
24880 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24884 ac_status=$?
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24887 then
24888 gcc_cv_as_ix86_cmov_sun_syntax=yes
24889 else
24890 echo "configure: failed program was" >&5
24891 cat conftest.s >&5
24893 rm -f conftest.o conftest.s
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24897 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24898 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24900 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24905 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24906 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24907 $as_echo_n "(cached) " >&6
24908 else
24909 gcc_cv_as_ix86_ffreep=no
24910 if test x$gcc_cv_as != x; then
24911 $as_echo 'ffreep %st(1)' > conftest.s
24912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24918 then
24919 gcc_cv_as_ix86_ffreep=yes
24920 else
24921 echo "configure: failed program was" >&5
24922 cat conftest.s >&5
24924 rm -f conftest.o conftest.s
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24928 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24929 if test $gcc_cv_as_ix86_ffreep = yes; then
24931 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24936 $as_echo_n "checking assembler for .quad directive... " >&6; }
24937 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24938 $as_echo_n "(cached) " >&6
24939 else
24940 gcc_cv_as_ix86_quad=no
24941 if test x$gcc_cv_as != x; then
24942 $as_echo '.quad 0' > conftest.s
24943 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24945 (eval $ac_try) 2>&5
24946 ac_status=$?
24947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24948 test $ac_status = 0; }; }
24949 then
24950 gcc_cv_as_ix86_quad=yes
24951 else
24952 echo "configure: failed program was" >&5
24953 cat conftest.s >&5
24955 rm -f conftest.o conftest.s
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24959 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24960 if test $gcc_cv_as_ix86_quad = yes; then
24962 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24967 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24968 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24969 $as_echo_n "(cached) " >&6
24970 else
24971 gcc_cv_as_ix86_sahf=no
24972 if test x$gcc_cv_as != x; then
24973 $as_echo '.code64
24974 sahf' > conftest.s
24975 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24977 (eval $ac_try) 2>&5
24978 ac_status=$?
24979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980 test $ac_status = 0; }; }
24981 then
24982 gcc_cv_as_ix86_sahf=yes
24983 else
24984 echo "configure: failed program was" >&5
24985 cat conftest.s >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24991 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24992 if test $gcc_cv_as_ix86_sahf = yes; then
24994 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24999 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25000 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25001 $as_echo_n "(cached) " >&6
25002 else
25003 gcc_cv_as_ix86_interunit_movq=no
25004 if test x$gcc_cv_as != x; then
25005 $as_echo '.code64
25006 movq %mm0, %rax
25007 movq %rax, %xmm0' > conftest.s
25008 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25010 (eval $ac_try) 2>&5
25011 ac_status=$?
25012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25013 test $ac_status = 0; }; }
25014 then
25015 gcc_cv_as_ix86_interunit_movq=yes
25016 else
25017 echo "configure: failed program was" >&5
25018 cat conftest.s >&5
25020 rm -f conftest.o conftest.s
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25024 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25027 cat >>confdefs.h <<_ACEOF
25028 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25029 _ACEOF
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25033 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25034 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25035 $as_echo_n "(cached) " >&6
25036 else
25037 gcc_cv_as_ix86_hle=no
25038 if test x$gcc_cv_as != x; then
25039 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25040 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25045 test $ac_status = 0; }; }
25046 then
25047 gcc_cv_as_ix86_hle=yes
25048 else
25049 echo "configure: failed program was" >&5
25050 cat conftest.s >&5
25052 rm -f conftest.o conftest.s
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25056 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25057 if test $gcc_cv_as_ix86_hle = yes; then
25059 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25064 $as_echo_n "checking assembler for swap suffix... " >&6; }
25065 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25066 $as_echo_n "(cached) " >&6
25067 else
25068 gcc_cv_as_ix86_swap=no
25069 if test x$gcc_cv_as != x; then
25070 $as_echo 'movl.s %esp, %ebp' > conftest.s
25071 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25073 (eval $ac_try) 2>&5
25074 ac_status=$?
25075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25076 test $ac_status = 0; }; }
25077 then
25078 gcc_cv_as_ix86_swap=yes
25079 else
25080 echo "configure: failed program was" >&5
25081 cat conftest.s >&5
25083 rm -f conftest.o conftest.s
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25087 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25088 if test $gcc_cv_as_ix86_swap = yes; then
25090 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25095 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25096 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25097 $as_echo_n "(cached) " >&6
25098 else
25099 gcc_cv_as_ix86_diff_sect_delta=no
25100 if test x$gcc_cv_as != x; then
25101 $as_echo '.section .rodata
25102 .L1:
25103 .long .L2-.L1
25104 .long .L3-.L1
25105 .text
25106 .L3: nop
25107 .L2: nop' > conftest.s
25108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110 (eval $ac_try) 2>&5
25111 ac_status=$?
25112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113 test $ac_status = 0; }; }
25114 then
25115 gcc_cv_as_ix86_diff_sect_delta=yes
25116 else
25117 echo "configure: failed program was" >&5
25118 cat conftest.s >&5
25120 rm -f conftest.o conftest.s
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25124 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25125 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25127 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25131 # These two are used unconditionally by i386.[ch]; it is to be defined
25132 # to 1 if the feature is present, 0 otherwise.
25133 as_ix86_gotoff_in_data_opt=
25134 if test x$gas = xyes; then
25135 as_ix86_gotoff_in_data_opt="--32"
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25138 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25139 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25140 $as_echo_n "(cached) " >&6
25141 else
25142 gcc_cv_as_ix86_gotoff_in_data=no
25143 if test $in_tree_gas = yes; then
25144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25145 then gcc_cv_as_ix86_gotoff_in_data=yes
25147 elif test x$gcc_cv_as != x; then
25148 $as_echo ' .text
25149 .L0:
25151 .data
25152 .long .L0@GOTOFF' > conftest.s
25153 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25155 (eval $ac_try) 2>&5
25156 ac_status=$?
25157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25158 test $ac_status = 0; }; }
25159 then
25160 gcc_cv_as_ix86_gotoff_in_data=yes
25161 else
25162 echo "configure: failed program was" >&5
25163 cat conftest.s >&5
25165 rm -f conftest.o conftest.s
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25169 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25172 cat >>confdefs.h <<_ACEOF
25173 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25174 _ACEOF
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25178 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25179 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25180 $as_echo_n "(cached) " >&6
25181 else
25182 gcc_cv_as_ix86_rep_lock_prefix=no
25183 if test x$gcc_cv_as != x; then
25184 $as_echo 'rep movsl
25185 rep ret
25186 rep nop
25187 rep bsf %ecx, %eax
25188 rep bsr %ecx, %eax
25189 lock addl %edi, (%eax,%esi)
25190 lock orl $0, (%esp)' > conftest.s
25191 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25196 test $ac_status = 0; }; }
25197 then
25198 gcc_cv_as_ix86_rep_lock_prefix=yes
25199 else
25200 echo "configure: failed program was" >&5
25201 cat conftest.s >&5
25203 rm -f conftest.o conftest.s
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25207 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25208 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25210 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25215 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25216 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25217 $as_echo_n "(cached) " >&6
25218 else
25219 gcc_cv_as_ix86_ud2=no
25220 if test x$gcc_cv_as != x; then
25221 $as_echo 'ud2' > conftest.s
25222 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25224 (eval $ac_try) 2>&5
25225 ac_status=$?
25226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227 test $ac_status = 0; }; }
25228 then
25229 gcc_cv_as_ix86_ud2=yes
25230 else
25231 echo "configure: failed program was" >&5
25232 cat conftest.s >&5
25234 rm -f conftest.o conftest.s
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25238 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25239 if test $gcc_cv_as_ix86_ud2 = yes; then
25241 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25246 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25247 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25249 else
25250 gcc_cv_as_ix86_tlsgdplt=no
25251 if test x$gcc_cv_as != x; then
25252 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25256 ac_status=$?
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }
25259 then
25260 if test x$gcc_cv_ld != x \
25261 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25262 gcc_cv_as_ix86_tlsgdplt=yes
25264 rm -f conftest
25265 else
25266 echo "configure: failed program was" >&5
25267 cat conftest.s >&5
25269 rm -f conftest.o conftest.s
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25273 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25274 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25276 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25280 conftest_s='
25281 .section .tdata,"aw'$tls_section_flag'",@progbits
25282 tls_ld:
25283 .section .text,"ax",@progbits
25284 call tls_ld@tlsldmplt'
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25286 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25287 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25288 $as_echo_n "(cached) " >&6
25289 else
25290 gcc_cv_as_ix86_tlsldmplt=no
25291 if test x$gcc_cv_as != x; then
25292 $as_echo "$conftest_s" > conftest.s
25293 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25295 (eval $ac_try) 2>&5
25296 ac_status=$?
25297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25298 test $ac_status = 0; }; }
25299 then
25300 if test x$gcc_cv_ld != x \
25301 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25302 gcc_cv_as_ix86_tlsldmplt=yes
25304 rm -f conftest
25305 else
25306 echo "configure: failed program was" >&5
25307 cat conftest.s >&5
25309 rm -f conftest.o conftest.s
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25313 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25316 cat >>confdefs.h <<_ACEOF
25317 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25318 _ACEOF
25321 # Enforce 32-bit output with gas and gld.
25322 if test x$gas = xyes; then
25323 as_ix86_tls_ldm_opt="--32"
25325 if echo "$ld_ver" | grep GNU > /dev/null; then
25326 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25327 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25328 else
25329 ld_ix86_tls_ldm_opt="-melf_i386"
25332 conftest_s='
25333 .section .text,"ax",@progbits
25334 .globl _start
25335 .type _start, @function
25336 _start:
25337 leal value@tlsldm(%ebx), %eax
25338 call ___tls_get_addr@plt
25340 .section .tdata,"aw'$tls_section_flag'",@progbits
25341 .type value, @object
25342 value:'
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25344 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25345 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25346 $as_echo_n "(cached) " >&6
25347 else
25348 gcc_cv_as_ix86_tlsldm=no
25349 if test x$gcc_cv_as != x; then
25350 $as_echo "$conftest_s" > conftest.s
25351 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25356 test $ac_status = 0; }; }
25357 then
25358 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25359 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25360 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25361 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25362 gcc_cv_as_ix86_tlsldm=yes
25365 rm -f conftest
25366 else
25367 echo "configure: failed program was" >&5
25368 cat conftest.s >&5
25370 rm -f conftest.o conftest.s
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25374 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25377 cat >>confdefs.h <<_ACEOF
25378 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25379 _ACEOF
25384 ia64*-*-*)
25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25386 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25387 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25388 $as_echo_n "(cached) " >&6
25389 else
25390 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25391 if test $in_tree_gas = yes; then
25392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25393 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25395 elif test x$gcc_cv_as != x; then
25396 $as_echo ' .text
25397 addl r15 = @ltoffx(x#), gp
25399 ld8.mov r16 = [r15], x#' > conftest.s
25400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25402 (eval $ac_try) 2>&5
25403 ac_status=$?
25404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25405 test $ac_status = 0; }; }
25406 then
25407 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25408 else
25409 echo "configure: failed program was" >&5
25410 cat conftest.s >&5
25412 rm -f conftest.o conftest.s
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25416 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25417 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25419 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25425 powerpc*-*-*)
25426 case $target in
25427 *-*-aix*) conftest_s=' .machine "pwr5"
25428 .csect .text[PR]
25429 mfcr 3,128';;
25430 *-*-darwin*)
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25432 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25433 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25434 $as_echo_n "(cached) " >&6
25435 else
25436 gcc_cv_as_machine_directive=no
25437 if test x$gcc_cv_as != x; then
25438 $as_echo ' .machine ppc7400' > conftest.s
25439 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25441 (eval $ac_try) 2>&5
25442 ac_status=$?
25443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25444 test $ac_status = 0; }; }
25445 then
25446 gcc_cv_as_machine_directive=yes
25447 else
25448 echo "configure: failed program was" >&5
25449 cat conftest.s >&5
25451 rm -f conftest.o conftest.s
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25455 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25457 if test x$gcc_cv_as_machine_directive != xyes; then
25458 echo "*** This target requires an assembler supporting \".machine\"" >&2
25459 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25460 test x$build = x$target && exit 1
25462 conftest_s=' .text
25463 mfcr r3,128';;
25464 *) conftest_s=' .machine power4
25465 .text
25466 mfcr 3,128';;
25467 esac
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25470 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25471 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25472 $as_echo_n "(cached) " >&6
25473 else
25474 gcc_cv_as_powerpc_mfcrf=no
25475 if test $in_tree_gas = yes; then
25476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25477 then gcc_cv_as_powerpc_mfcrf=yes
25479 elif test x$gcc_cv_as != x; then
25480 $as_echo "$conftest_s" > conftest.s
25481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25483 (eval $ac_try) 2>&5
25484 ac_status=$?
25485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25486 test $ac_status = 0; }; }
25487 then
25488 gcc_cv_as_powerpc_mfcrf=yes
25489 else
25490 echo "configure: failed program was" >&5
25491 cat conftest.s >&5
25493 rm -f conftest.o conftest.s
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25497 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25498 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25500 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25504 case $target in
25505 *-*-aix*) conftest_s=' .machine "pwr5"
25506 .csect .text[PR]
25507 popcntb 3,3';;
25508 *) conftest_s=' .machine power5
25509 .text
25510 popcntb 3,3';;
25511 esac
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25514 $as_echo_n "checking assembler for popcntb support... " >&6; }
25515 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25517 else
25518 gcc_cv_as_powerpc_popcntb=no
25519 if test $in_tree_gas = yes; then
25520 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25521 then gcc_cv_as_powerpc_popcntb=yes
25523 elif test x$gcc_cv_as != x; then
25524 $as_echo "$conftest_s" > conftest.s
25525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25530 test $ac_status = 0; }; }
25531 then
25532 gcc_cv_as_powerpc_popcntb=yes
25533 else
25534 echo "configure: failed program was" >&5
25535 cat conftest.s >&5
25537 rm -f conftest.o conftest.s
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25541 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25542 if test $gcc_cv_as_powerpc_popcntb = yes; then
25544 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25548 case $target in
25549 *-*-aix*) conftest_s=' .machine "pwr5x"
25550 .csect .text[PR]
25551 frin 1,1';;
25552 *) conftest_s=' .machine power5
25553 .text
25554 frin 1,1';;
25555 esac
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25558 $as_echo_n "checking assembler for fp round support... " >&6; }
25559 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25560 $as_echo_n "(cached) " >&6
25561 else
25562 gcc_cv_as_powerpc_fprnd=no
25563 if test $in_tree_gas = yes; then
25564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25565 then gcc_cv_as_powerpc_fprnd=yes
25567 elif test x$gcc_cv_as != x; then
25568 $as_echo "$conftest_s" > conftest.s
25569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25571 (eval $ac_try) 2>&5
25572 ac_status=$?
25573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25574 test $ac_status = 0; }; }
25575 then
25576 gcc_cv_as_powerpc_fprnd=yes
25577 else
25578 echo "configure: failed program was" >&5
25579 cat conftest.s >&5
25581 rm -f conftest.o conftest.s
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25585 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25586 if test $gcc_cv_as_powerpc_fprnd = yes; then
25588 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25592 case $target in
25593 *-*-aix*) conftest_s=' .machine "pwr6"
25594 .csect .text[PR]
25595 mffgpr 1,3';;
25596 *) conftest_s=' .machine power6
25597 .text
25598 mffgpr 1,3';;
25599 esac
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25602 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25603 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25604 $as_echo_n "(cached) " >&6
25605 else
25606 gcc_cv_as_powerpc_mfpgpr=no
25607 if test $in_tree_gas = yes; then
25608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25609 then gcc_cv_as_powerpc_mfpgpr=yes
25611 elif test x$gcc_cv_as != x; then
25612 $as_echo "$conftest_s" > conftest.s
25613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25615 (eval $ac_try) 2>&5
25616 ac_status=$?
25617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25618 test $ac_status = 0; }; }
25619 then
25620 gcc_cv_as_powerpc_mfpgpr=yes
25621 else
25622 echo "configure: failed program was" >&5
25623 cat conftest.s >&5
25625 rm -f conftest.o conftest.s
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25629 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25630 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25632 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25636 case $target in
25637 *-*-aix*) conftest_s=' .csect .text[PR]
25638 LCF..0:
25639 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25640 *-*-darwin*)
25641 conftest_s=' .text
25642 LCF0:
25643 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25644 *) conftest_s=' .text
25645 .LCF0:
25646 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25647 esac
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25650 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25651 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25652 $as_echo_n "(cached) " >&6
25653 else
25654 gcc_cv_as_powerpc_rel16=no
25655 if test $in_tree_gas = yes; then
25656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25657 then gcc_cv_as_powerpc_rel16=yes
25659 elif test x$gcc_cv_as != x; then
25660 $as_echo "$conftest_s" > conftest.s
25661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25664 ac_status=$?
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; }
25667 then
25668 gcc_cv_as_powerpc_rel16=yes
25669 else
25670 echo "configure: failed program was" >&5
25671 cat conftest.s >&5
25673 rm -f conftest.o conftest.s
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25677 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25678 if test $gcc_cv_as_powerpc_rel16 = yes; then
25680 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25684 case $target in
25685 *-*-aix*) conftest_s=' .machine "pwr6"
25686 .csect .text[PR]
25687 cmpb 3,4,5';;
25688 *) conftest_s=' .machine power6
25689 .text
25690 cmpb 3,4,5';;
25691 esac
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25694 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25695 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25696 $as_echo_n "(cached) " >&6
25697 else
25698 gcc_cv_as_powerpc_cmpb=no
25699 if test $in_tree_gas = yes; then
25700 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25701 then gcc_cv_as_powerpc_cmpb=yes
25703 elif test x$gcc_cv_as != x; then
25704 $as_echo "$conftest_s" > conftest.s
25705 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25707 (eval $ac_try) 2>&5
25708 ac_status=$?
25709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25710 test $ac_status = 0; }; }
25711 then
25712 gcc_cv_as_powerpc_cmpb=yes
25713 else
25714 echo "configure: failed program was" >&5
25715 cat conftest.s >&5
25717 rm -f conftest.o conftest.s
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25721 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25722 if test $gcc_cv_as_powerpc_cmpb = yes; then
25724 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25728 case $target in
25729 *-*-aix*) conftest_s=' .machine "pwr6"
25730 .csect .text[PR]
25731 dadd 1,2,3';;
25732 *) conftest_s=' .machine power6
25733 .text
25734 dadd 1,2,3';;
25735 esac
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25738 $as_echo_n "checking assembler for decimal float support... " >&6; }
25739 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25740 $as_echo_n "(cached) " >&6
25741 else
25742 gcc_cv_as_powerpc_dfp=no
25743 if test $in_tree_gas = yes; then
25744 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25745 then gcc_cv_as_powerpc_dfp=yes
25747 elif test x$gcc_cv_as != x; then
25748 $as_echo "$conftest_s" > conftest.s
25749 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25752 ac_status=$?
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; }
25755 then
25756 gcc_cv_as_powerpc_dfp=yes
25757 else
25758 echo "configure: failed program was" >&5
25759 cat conftest.s >&5
25761 rm -f conftest.o conftest.s
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25765 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25766 if test $gcc_cv_as_powerpc_dfp = yes; then
25768 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25772 case $target in
25773 *-*-aix*) conftest_s=' .machine "pwr7"
25774 .csect .text[PR]
25775 lxvd2x 1,2,3';;
25776 *) conftest_s=' .machine power7
25777 .text
25778 lxvd2x 1,2,3';;
25779 esac
25781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25782 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25783 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25784 $as_echo_n "(cached) " >&6
25785 else
25786 gcc_cv_as_powerpc_vsx=no
25787 if test $in_tree_gas = yes; then
25788 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25789 then gcc_cv_as_powerpc_vsx=yes
25791 elif test x$gcc_cv_as != x; then
25792 $as_echo "$conftest_s" > conftest.s
25793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25795 (eval $ac_try) 2>&5
25796 ac_status=$?
25797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25798 test $ac_status = 0; }; }
25799 then
25800 gcc_cv_as_powerpc_vsx=yes
25801 else
25802 echo "configure: failed program was" >&5
25803 cat conftest.s >&5
25805 rm -f conftest.o conftest.s
25808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25809 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25810 if test $gcc_cv_as_powerpc_vsx = yes; then
25812 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25816 case $target in
25817 *-*-aix*) conftest_s=' .machine "pwr7"
25818 .csect .text[PR]
25819 popcntd 3,3';;
25820 *) conftest_s=' .machine power7
25821 .text
25822 popcntd 3,3';;
25823 esac
25825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25826 $as_echo_n "checking assembler for popcntd support... " >&6; }
25827 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25828 $as_echo_n "(cached) " >&6
25829 else
25830 gcc_cv_as_powerpc_popcntd=no
25831 if test $in_tree_gas = yes; then
25832 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25833 then gcc_cv_as_powerpc_popcntd=yes
25835 elif test x$gcc_cv_as != x; then
25836 $as_echo "$conftest_s" > conftest.s
25837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25839 (eval $ac_try) 2>&5
25840 ac_status=$?
25841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25842 test $ac_status = 0; }; }
25843 then
25844 gcc_cv_as_powerpc_popcntd=yes
25845 else
25846 echo "configure: failed program was" >&5
25847 cat conftest.s >&5
25849 rm -f conftest.o conftest.s
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25853 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25854 if test $gcc_cv_as_powerpc_popcntd = yes; then
25856 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25860 case $target in
25861 *-*-aix*) conftest_s=' .machine "pwr8"
25862 .csect .text[PR]';;
25863 *) conftest_s=' .machine power8
25864 .text';;
25865 esac
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25868 $as_echo_n "checking assembler for power8 support... " >&6; }
25869 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25870 $as_echo_n "(cached) " >&6
25871 else
25872 gcc_cv_as_powerpc_power8=no
25873 if test $in_tree_gas = yes; then
25874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25875 then gcc_cv_as_powerpc_power8=yes
25877 elif test x$gcc_cv_as != x; then
25878 $as_echo "$conftest_s" > conftest.s
25879 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25881 (eval $ac_try) 2>&5
25882 ac_status=$?
25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25884 test $ac_status = 0; }; }
25885 then
25886 gcc_cv_as_powerpc_power8=yes
25887 else
25888 echo "configure: failed program was" >&5
25889 cat conftest.s >&5
25891 rm -f conftest.o conftest.s
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25895 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25896 if test $gcc_cv_as_powerpc_power8 = yes; then
25898 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25902 case $target in
25903 *-*-aix*) conftest_s=' .csect .text[PR]
25904 lwsync';;
25905 *) conftest_s=' .text
25906 lwsync';;
25907 esac
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25910 $as_echo_n "checking assembler for lwsync support... " >&6; }
25911 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25912 $as_echo_n "(cached) " >&6
25913 else
25914 gcc_cv_as_powerpc_lwsync=no
25915 if test $in_tree_gas = yes; then
25916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25917 then gcc_cv_as_powerpc_lwsync=yes
25919 elif test x$gcc_cv_as != x; then
25920 $as_echo "$conftest_s" > conftest.s
25921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25923 (eval $ac_try) 2>&5
25924 ac_status=$?
25925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25926 test $ac_status = 0; }; }
25927 then
25928 gcc_cv_as_powerpc_lwsync=yes
25929 else
25930 echo "configure: failed program was" >&5
25931 cat conftest.s >&5
25933 rm -f conftest.o conftest.s
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25937 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25938 if test $gcc_cv_as_powerpc_lwsync = yes; then
25940 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25944 case $target in
25945 *-*-aix*) conftest_s=' .machine "476"
25946 .csect .text[PR]
25947 dci 0';;
25948 *) conftest_s=' .machine "476"
25949 .text
25950 dci 0';;
25951 esac
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25954 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25955 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25956 $as_echo_n "(cached) " >&6
25957 else
25958 gcc_cv_as_powerpc_dci=no
25959 if test $in_tree_gas = yes; then
25960 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25961 then gcc_cv_as_powerpc_dci=yes
25963 elif test x$gcc_cv_as != x; then
25964 $as_echo "$conftest_s" > conftest.s
25965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25967 (eval $ac_try) 2>&5
25968 ac_status=$?
25969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970 test $ac_status = 0; }; }
25971 then
25972 gcc_cv_as_powerpc_dci=yes
25973 else
25974 echo "configure: failed program was" >&5
25975 cat conftest.s >&5
25977 rm -f conftest.o conftest.s
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25981 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25982 if test $gcc_cv_as_powerpc_dci = yes; then
25984 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25989 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25990 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25991 $as_echo_n "(cached) " >&6
25992 else
25993 gcc_cv_as_powerpc_gnu_attribute=no
25994 if test $in_tree_gas = yes; then
25995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25996 then gcc_cv_as_powerpc_gnu_attribute=yes
25998 elif test x$gcc_cv_as != x; then
25999 $as_echo '.gnu_attribute 4,1' > conftest.s
26000 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26002 (eval $ac_try) 2>&5
26003 ac_status=$?
26004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26005 test $ac_status = 0; }; }
26006 then
26007 gcc_cv_as_powerpc_gnu_attribute=yes
26008 else
26009 echo "configure: failed program was" >&5
26010 cat conftest.s >&5
26012 rm -f conftest.o conftest.s
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26016 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26017 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26019 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26024 $as_echo_n "checking assembler for tls marker support... " >&6; }
26025 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26026 $as_echo_n "(cached) " >&6
26027 else
26028 gcc_cv_as_powerpc_tls_markers=no
26029 if test $in_tree_gas = yes; then
26030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26031 then gcc_cv_as_powerpc_tls_markers=yes
26033 elif test x$gcc_cv_as != x; then
26034 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26040 test $ac_status = 0; }; }
26041 then
26042 gcc_cv_as_powerpc_tls_markers=yes
26043 else
26044 echo "configure: failed program was" >&5
26045 cat conftest.s >&5
26047 rm -f conftest.o conftest.s
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26051 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26052 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26054 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26058 case $target in
26059 *-*-aix*)
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26061 $as_echo_n "checking assembler for .ref support... " >&6; }
26062 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26063 $as_echo_n "(cached) " >&6
26064 else
26065 gcc_cv_as_aix_ref=no
26066 if test $in_tree_gas = yes; then
26067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26068 then gcc_cv_as_aix_ref=yes
26070 elif test x$gcc_cv_as != x; then
26071 $as_echo ' .csect stuff[rw]
26072 stuff:
26073 .long 1
26074 .extern sym
26075 .ref sym
26076 ' > conftest.s
26077 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26079 (eval $ac_try) 2>&5
26080 ac_status=$?
26081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26082 test $ac_status = 0; }; }
26083 then
26084 gcc_cv_as_aix_ref=yes
26085 else
26086 echo "configure: failed program was" >&5
26087 cat conftest.s >&5
26089 rm -f conftest.o conftest.s
26092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26093 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26094 if test $gcc_cv_as_aix_ref = yes; then
26096 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26100 esac
26103 mips*-*-*)
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26105 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26106 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26107 $as_echo_n "(cached) " >&6
26108 else
26109 gcc_cv_as_mips_explicit_relocs=no
26110 if test $in_tree_gas = yes; then
26111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26112 then gcc_cv_as_mips_explicit_relocs=yes
26114 elif test x$gcc_cv_as != x; then
26115 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26116 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26118 (eval $ac_try) 2>&5
26119 ac_status=$?
26120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26121 test $ac_status = 0; }; }
26122 then
26123 gcc_cv_as_mips_explicit_relocs=yes
26124 else
26125 echo "configure: failed program was" >&5
26126 cat conftest.s >&5
26128 rm -f conftest.o conftest.s
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26132 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26133 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26134 if test x$target_cpu_default = x
26135 then target_cpu_default=MASK_EXPLICIT_RELOCS
26136 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26140 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26141 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26142 $as_echo_n "(cached) " >&6
26143 else
26144 gcc_cv_as_mips_no_shared=no
26145 if test $in_tree_gas = yes; then
26146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26147 then gcc_cv_as_mips_no_shared=yes
26149 elif test x$gcc_cv_as != x; then
26150 $as_echo 'nop' > conftest.s
26151 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26153 (eval $ac_try) 2>&5
26154 ac_status=$?
26155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26156 test $ac_status = 0; }; }
26157 then
26158 gcc_cv_as_mips_no_shared=yes
26159 else
26160 echo "configure: failed program was" >&5
26161 cat conftest.s >&5
26163 rm -f conftest.o conftest.s
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26167 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26168 if test $gcc_cv_as_mips_no_shared = yes; then
26170 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26175 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26176 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26177 $as_echo_n "(cached) " >&6
26178 else
26179 gcc_cv_as_mips_gnu_attribute=no
26180 if test $in_tree_gas = yes; then
26181 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26182 then gcc_cv_as_mips_gnu_attribute=yes
26184 elif test x$gcc_cv_as != x; then
26185 $as_echo '.gnu_attribute 4,1' > conftest.s
26186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26192 then
26193 gcc_cv_as_mips_gnu_attribute=yes
26194 else
26195 echo "configure: failed program was" >&5
26196 cat conftest.s >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26202 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26203 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26205 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26210 $as_echo_n "checking assembler for .module support... " >&6; }
26211 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26212 $as_echo_n "(cached) " >&6
26213 else
26214 gcc_cv_as_mips_dot_module=no
26215 if test x$gcc_cv_as != x; then
26216 $as_echo '.module fp=32' > conftest.s
26217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26219 (eval $ac_try) 2>&5
26220 ac_status=$?
26221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26222 test $ac_status = 0; }; }
26223 then
26224 gcc_cv_as_mips_dot_module=yes
26225 else
26226 echo "configure: failed program was" >&5
26227 cat conftest.s >&5
26229 rm -f conftest.o conftest.s
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26233 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26234 if test $gcc_cv_as_mips_dot_module = yes; then
26236 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26239 if test x$gcc_cv_as_mips_dot_module = xno \
26240 && test x$with_fp_32 != x; then
26241 as_fn_error "Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26245 $as_echo_n "checking assembler for .micromips support... " >&6; }
26246 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26248 else
26249 gcc_cv_as_micromips_support=no
26250 if test x$gcc_cv_as != x; then
26251 $as_echo '.set micromips' > conftest.s
26252 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26254 (eval $ac_try) 2>&5
26255 ac_status=$?
26256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26257 test $ac_status = 0; }; }
26258 then
26259 gcc_cv_as_micromips_support=yes
26260 else
26261 echo "configure: failed program was" >&5
26262 cat conftest.s >&5
26264 rm -f conftest.o conftest.s
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26268 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26269 if test $gcc_cv_as_micromips_support = yes; then
26271 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26276 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26277 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26278 $as_echo_n "(cached) " >&6
26279 else
26280 gcc_cv_as_mips_dtprelword=no
26281 if test $in_tree_gas = yes; then
26282 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26283 then gcc_cv_as_mips_dtprelword=yes
26285 elif test x$gcc_cv_as != x; then
26286 $as_echo '.section .tdata,"awT",@progbits
26288 .word 2
26289 .text
26290 .dtprelword x+0x8000' > conftest.s
26291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26293 (eval $ac_try) 2>&5
26294 ac_status=$?
26295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26296 test $ac_status = 0; }; }
26297 then
26298 gcc_cv_as_mips_dtprelword=yes
26299 else
26300 echo "configure: failed program was" >&5
26301 cat conftest.s >&5
26303 rm -f conftest.o conftest.s
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26307 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26308 if test $gcc_cv_as_mips_dtprelword = yes; then
26310 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26315 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26316 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26317 $as_echo_n "(cached) " >&6
26318 else
26319 gcc_cv_as_mips_dspr1_mult=no
26320 if test x$gcc_cv_as != x; then
26321 $as_echo ' .set mips32r2
26322 .set nodspr2
26323 .set dsp
26324 madd $ac3,$4,$5
26325 maddu $ac3,$4,$5
26326 msub $ac3,$4,$5
26327 msubu $ac3,$4,$5
26328 mult $ac3,$4,$5
26329 multu $ac3,$4,$5' > conftest.s
26330 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26335 test $ac_status = 0; }; }
26336 then
26337 gcc_cv_as_mips_dspr1_mult=yes
26338 else
26339 echo "configure: failed program was" >&5
26340 cat conftest.s >&5
26342 rm -f conftest.o conftest.s
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26346 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26347 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26349 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26354 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26355 gcc_cv_as_ld_jalr_reloc=no
26356 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26357 if test $in_tree_ld = yes ; then
26358 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 \
26359 && test $in_tree_ld_is_elf = yes; then
26360 gcc_cv_as_ld_jalr_reloc=yes
26362 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26363 echo ' .ent x' > conftest.s
26364 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26365 echo ' lw $25,%call16(y)($28)' >> conftest.s
26366 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26367 echo '1: jalr $25' >> conftest.s
26368 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26369 echo '1: jalr $25' >> conftest.s
26370 echo ' .end x' >> conftest.s
26371 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26372 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26373 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26374 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26375 gcc_cv_as_ld_jalr_reloc=yes
26378 rm -f conftest.*
26381 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26382 if test x$target_cpu_default = x; then
26383 target_cpu_default=MASK_RELAX_PIC_CALLS
26384 else
26385 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26389 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26392 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26393 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26395 else
26396 gcc_cv_ld_mips_personality_relaxation=no
26397 if test $in_tree_ld = yes ; then
26398 if test "$gcc_cv_gld_major_version" -eq 2 \
26399 -a "$gcc_cv_gld_minor_version" -ge 21 \
26400 -o "$gcc_cv_gld_major_version" -gt 2; then
26401 gcc_cv_ld_mips_personality_relaxation=yes
26403 elif test x$gcc_cv_as != x \
26404 -a x$gcc_cv_ld != x \
26405 -a x$gcc_cv_readelf != x ; then
26406 cat > conftest.s <<EOF
26407 .cfi_startproc
26408 .cfi_personality 0x80,indirect_ptr
26409 .ent test
26410 test:
26412 .end test
26413 .cfi_endproc
26415 .section .data,"aw",@progbits
26416 indirect_ptr:
26417 .dc.a personality
26419 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26420 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26421 if $gcc_cv_readelf -d conftest 2>&1 \
26422 | grep TEXTREL > /dev/null 2>&1; then
26424 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26425 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26427 else
26428 gcc_cv_ld_mips_personality_relaxation=yes
26432 rm -f conftest.s conftest.o conftest
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26435 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26436 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26438 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26443 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26444 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26445 $as_echo_n "(cached) " >&6
26446 else
26447 gcc_cv_as_mips_nan=no
26448 if test x$gcc_cv_as != x; then
26449 $as_echo '' > conftest.s
26450 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26456 then
26457 gcc_cv_as_mips_nan=yes
26458 else
26459 echo "configure: failed program was" >&5
26460 cat conftest.s >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26466 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26467 if test $gcc_cv_as_mips_nan = yes; then
26469 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26472 if test x$gcc_cv_as_mips_nan = xno \
26473 && test x$with_nan != x; then
26474 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26477 esac
26479 # Mips and HP-UX need the GNU assembler.
26480 # Linux on IA64 might be able to use the Intel assembler.
26482 case "$target" in
26483 mips*-*-* | *-*-hpux* )
26484 if test x$gas_flag = xyes \
26485 || test x"$host" != x"$build" \
26486 || test ! -x "$gcc_cv_as" \
26487 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26489 else
26490 echo "*** This configuration requires the GNU assembler" >&2
26491 exit 1
26494 esac
26496 # ??? Not all targets support dwarf2 debug_line, even within a version
26497 # of gas. Moreover, we need to emit a valid instruction to trigger any
26498 # info to the output file. So, as supported targets are added to gas 2.11,
26499 # add some instruction here to (also) show we expect this might work.
26500 # ??? Once 2.11 is released, probably need to add first known working
26501 # version to the per-target configury.
26502 case "$cpu_type" in
26503 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26504 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26505 | xstormy16 | xtensa)
26506 insn="nop"
26508 ia64 | s390)
26509 insn="nop 0"
26511 mmix)
26512 insn="swym 0"
26514 esac
26515 if test x"$insn" != x; then
26516 conftest_s="\
26517 .file 1 \"conftest.s\"
26518 .loc 1 3 0
26519 $insn"
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26521 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26522 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26523 $as_echo_n "(cached) " >&6
26524 else
26525 gcc_cv_as_dwarf2_debug_line=no
26526 if test $in_tree_gas = yes; then
26527 if test $in_tree_gas_is_elf = yes \
26528 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26529 then gcc_cv_as_dwarf2_debug_line=yes
26531 elif test x$gcc_cv_as != x; then
26532 $as_echo "$conftest_s" > conftest.s
26533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26535 (eval $ac_try) 2>&5
26536 ac_status=$?
26537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26538 test $ac_status = 0; }; }
26539 then
26540 if test x$gcc_cv_objdump != x \
26541 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26542 | grep debug_line > /dev/null 2>&1; then
26543 gcc_cv_as_dwarf2_debug_line=yes
26545 else
26546 echo "configure: failed program was" >&5
26547 cat conftest.s >&5
26549 rm -f conftest.o conftest.s
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26553 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26556 # The .debug_line file table must be in the exact order that
26557 # we specified the files, since these indices are also used
26558 # by DW_AT_decl_file. Approximate this test by testing if
26559 # the assembler bitches if the same index is assigned twice.
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26561 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26562 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26564 else
26565 gcc_cv_as_dwarf2_file_buggy=no
26566 if test x$gcc_cv_as != x; then
26567 $as_echo ' .file 1 "foo.s"
26568 .file 1 "bar.s"' > conftest.s
26569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26571 (eval $ac_try) 2>&5
26572 ac_status=$?
26573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26574 test $ac_status = 0; }; }
26575 then
26576 gcc_cv_as_dwarf2_file_buggy=yes
26577 else
26578 echo "configure: failed program was" >&5
26579 cat conftest.s >&5
26581 rm -f conftest.o conftest.s
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26585 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26588 if test $gcc_cv_as_dwarf2_debug_line = yes \
26589 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26591 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26596 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26597 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26599 else
26600 gcc_cv_as_gdwarf2_flag=no
26601 if test $in_tree_gas = yes; then
26602 if test $in_tree_gas_is_elf = yes \
26603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26604 then gcc_cv_as_gdwarf2_flag=yes
26606 elif test x$gcc_cv_as != x; then
26607 $as_echo "$insn" > conftest.s
26608 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613 test $ac_status = 0; }; }
26614 then
26615 gcc_cv_as_gdwarf2_flag=yes
26616 else
26617 echo "configure: failed program was" >&5
26618 cat conftest.s >&5
26620 rm -f conftest.o conftest.s
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26624 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26625 if test $gcc_cv_as_gdwarf2_flag = yes; then
26627 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26632 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26633 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26634 $as_echo_n "(cached) " >&6
26635 else
26636 gcc_cv_as_gstabs_flag=no
26637 if test $in_tree_gas = yes; then
26638 if test $in_tree_gas_is_elf = yes \
26639 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26640 then gcc_cv_as_gstabs_flag=yes
26642 elif test x$gcc_cv_as != x; then
26643 $as_echo "$insn" > conftest.s
26644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26647 ac_status=$?
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26650 then
26651 gcc_cv_as_gstabs_flag=yes
26652 else
26653 echo "configure: failed program was" >&5
26654 cat conftest.s >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26660 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26661 if test $gcc_cv_as_gstabs_flag = yes; then
26663 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26668 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26669 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26670 $as_echo_n "(cached) " >&6
26671 else
26672 gcc_cv_as_debug_prefix_map_flag=no
26673 if test $in_tree_gas = yes; then
26674 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26675 then gcc_cv_as_debug_prefix_map_flag=yes
26677 elif test x$gcc_cv_as != x; then
26678 $as_echo "$insn" > conftest.s
26679 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26682 ac_status=$?
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26685 then
26686 gcc_cv_as_debug_prefix_map_flag=yes
26687 else
26688 echo "configure: failed program was" >&5
26689 cat conftest.s >&5
26691 rm -f conftest.o conftest.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26695 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26696 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26698 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26704 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26705 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26706 $as_echo_n "(cached) " >&6
26707 else
26708 gcc_cv_as_compress_debug=no
26709 if test x$gcc_cv_as != x; then
26710 $as_echo '' > conftest.s
26711 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26716 test $ac_status = 0; }; }
26717 then
26718 # gas compiled without zlib cannot compress debug sections and warns
26719 # about it, but still exits successfully. So check for this, too.
26720 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26721 then
26722 gcc_cv_as_compress_debug=0
26723 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26724 then
26725 gcc_cv_as_compress_debug=1
26726 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26727 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26728 else
26729 gcc_cv_as_compress_debug=0
26730 # FIXME: Future gas versions will support ELF gABI style via
26731 # --compress-debug-sections[=type].
26733 else
26734 echo "configure: failed program was" >&5
26735 cat conftest.s >&5
26737 rm -f conftest.o conftest.s
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26741 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26744 cat >>confdefs.h <<_ACEOF
26745 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26746 _ACEOF
26749 cat >>confdefs.h <<_ACEOF
26750 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26751 _ACEOF
26754 cat >>confdefs.h <<_ACEOF
26755 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26756 _ACEOF
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26760 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26761 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26763 else
26764 gcc_cv_as_lcomm_with_alignment=no
26765 if test x$gcc_cv_as != x; then
26766 $as_echo '.lcomm bar,4,16' > conftest.s
26767 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26769 (eval $ac_try) 2>&5
26770 ac_status=$?
26771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26772 test $ac_status = 0; }; }
26773 then
26774 gcc_cv_as_lcomm_with_alignment=yes
26775 else
26776 echo "configure: failed program was" >&5
26777 cat conftest.s >&5
26779 rm -f conftest.o conftest.s
26782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26783 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26784 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26786 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26790 if test x$with_sysroot = x && test x$host = x$target \
26791 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26792 && test "$prefix" != "NONE"; then
26794 cat >>confdefs.h <<_ACEOF
26795 #define PREFIX_INCLUDE_DIR "$prefix/include"
26796 _ACEOF
26800 # Determine the version of glibc, if any, used on the target.
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26802 $as_echo_n "checking for target glibc version... " >&6; }
26804 # Check whether --with-glibc-version was given.
26805 if test "${with_glibc_version+set}" = set; then :
26806 withval=$with_glibc_version;
26807 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26808 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26809 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26810 else
26811 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26813 else
26815 glibc_version_major=0
26816 glibc_version_minor=0
26817 if test -f $target_header_dir/features.h \
26818 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26819 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26820 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26821 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26826 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26828 cat >>confdefs.h <<_ACEOF
26829 #define TARGET_GLIBC_MAJOR $glibc_version_major
26830 _ACEOF
26833 cat >>confdefs.h <<_ACEOF
26834 #define TARGET_GLIBC_MINOR $glibc_version_minor
26835 _ACEOF
26838 # Check whether --enable-gnu-unique-object was given.
26839 if test "${enable_gnu_unique_object+set}" = set; then :
26840 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26841 yes | no) ;;
26842 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26843 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26844 esac
26845 else
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26847 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26848 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26849 $as_echo_n "(cached) " >&6
26850 else
26851 gcc_cv_as_gnu_unique_object=no
26852 if test $in_tree_gas = yes; then
26853 if test $in_tree_gas_is_elf = yes \
26854 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26855 then gcc_cv_as_gnu_unique_object=yes
26857 elif test x$gcc_cv_as != x; then
26858 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26864 test $ac_status = 0; }; }
26865 then
26866 gcc_cv_as_gnu_unique_object=yes
26867 else
26868 echo "configure: failed program was" >&5
26869 cat conftest.s >&5
26871 rm -f conftest.o conftest.s
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26875 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26876 if test $gcc_cv_as_gnu_unique_object = yes; then
26877 # We need to unquote above to to use the definition from config.gcc.
26878 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26880 if test $glibc_version_major -gt 2 \
26881 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26882 enable_gnu_unique_object=yes
26888 if test x$enable_gnu_unique_object = xyes; then
26890 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26895 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26896 if test "${gcc_cv_as_line_zero+set}" = set; then :
26897 $as_echo_n "(cached) " >&6
26898 else
26899 gcc_cv_as_line_zero=no
26900 if test $in_tree_gas = yes; then
26901 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26902 then gcc_cv_as_line_zero=yes
26904 elif test "x$gcc_cv_as" != x; then
26905 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26906 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
26910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26911 test $ac_status = 0; }; } &&
26912 test "x`cat conftest.out`" = x
26913 then
26914 gcc_cv_as_line_zero=yes
26915 else
26916 echo "configure: failed program was" >&5
26917 cat conftest.s >&5
26918 echo "configure: error output was" >&5
26919 cat conftest.out >&5
26921 rm -f conftest.o conftest.s conftest.out
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26925 $as_echo "$gcc_cv_as_line_zero" >&6; }
26926 if test "x$gcc_cv_as_line_zero" = xyes; then
26928 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26933 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26934 gcc_cv_ld_eh_frame_hdr=no
26935 if test $in_tree_ld = yes ; then
26936 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 \
26937 && test $in_tree_ld_is_elf = yes; then
26938 gcc_cv_ld_eh_frame_hdr=yes
26940 elif test x$gcc_cv_ld != x; then
26941 if echo "$ld_ver" | grep GNU > /dev/null; then
26942 # Check if linker supports --eh-frame-hdr option
26943 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26944 gcc_cv_ld_eh_frame_hdr=yes
26946 else
26947 case "$target" in
26948 *-*-solaris2*)
26949 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26950 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26951 gcc_cv_ld_eh_frame_hdr=yes
26954 esac
26958 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26960 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26964 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26967 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26968 gcc_cv_ld_eh_frame_ciev3=no
26969 if test $in_tree_ld = yes ; then
26970 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 \
26971 && test $in_tree_ld_is_elf = yes; then
26972 gcc_cv_ld_eh_frame_ciev3=yes
26974 elif test x$gcc_cv_ld != x; then
26975 if echo "$ld_ver" | grep GNU > /dev/null; then
26976 gcc_cv_ld_eh_frame_ciev3=yes
26977 if test 0"$ld_date" -lt 20040513; then
26978 if test -n "$ld_date"; then
26979 # If there was date string, but was earlier than 2004-05-13, fail
26980 gcc_cv_ld_eh_frame_ciev3=no
26981 elif test "$ld_vers_major" -lt 2; then
26982 gcc_cv_ld_eh_frame_ciev3=no
26983 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26984 gcc_cv_ld_eh_frame_ciev3=no
26987 else
26988 case "$target" in
26989 *-*-solaris2*)
26990 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26991 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26992 gcc_cv_ld_eh_frame_ciev3=yes
26995 esac
26999 cat >>confdefs.h <<_ACEOF
27000 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27001 _ACEOF
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27004 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27007 $as_echo_n "checking linker position independent executable support... " >&6; }
27008 gcc_cv_ld_pie=no
27009 if test $in_tree_ld = yes ; then
27010 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 \
27011 && test $in_tree_ld_is_elf = yes; then
27012 gcc_cv_ld_pie=yes
27014 elif test x$gcc_cv_ld != x; then
27015 # Check if linker supports -pie option
27016 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27017 gcc_cv_ld_pie=yes
27020 if test x"$gcc_cv_ld_pie" = xyes; then
27022 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27026 $as_echo "$gcc_cv_ld_pie" >&6; }
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27029 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27030 gcc_cv_ld_eh_gc_sections=no
27031 if test $in_tree_ld = yes ; then
27032 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 \
27033 && test $in_tree_ld_is_elf = yes; then
27034 gcc_cv_ld_eh_gc_sections=yes
27036 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27037 cat > conftest.s <<EOF
27038 .section .text
27039 .globl _start
27040 .type _start, @function
27041 _start:
27042 .long foo
27043 .size _start, .-_start
27044 .section .text.foo,"ax",@progbits
27045 .type foo, @function
27046 foo:
27047 .long 0
27048 .size foo, .-foo
27049 .section .gcc_except_table.foo,"a",@progbits
27050 .L0:
27051 .long 0
27052 .section .eh_frame,"a",@progbits
27053 .long .L0
27055 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27056 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27057 | grep "gc-sections option ignored" > /dev/null; then
27058 gcc_cv_ld_eh_gc_sections=no
27059 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27060 | grep gcc_except_table > /dev/null; then
27061 gcc_cv_ld_eh_gc_sections=yes
27062 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27063 if test x$gcc_cv_as_comdat_group != xyes; then
27064 gcc_cv_ld_eh_gc_sections=no
27065 cat > conftest.s <<EOF
27066 .section .text
27067 .globl _start
27068 .type _start, @function
27069 _start:
27070 .long foo
27071 .size _start, .-_start
27072 .section .gnu.linkonce.t.foo,"ax",@progbits
27073 .type foo, @function
27074 foo:
27075 .long 0
27076 .size foo, .-foo
27077 .section .gcc_except_table.foo,"a",@progbits
27078 .L0:
27079 .long 0
27080 .section .eh_frame,"a",@progbits
27081 .long .L0
27083 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27084 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27085 | grep "gc-sections option ignored" > /dev/null; then
27086 gcc_cv_ld_eh_gc_sections=no
27087 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27088 | grep gcc_except_table > /dev/null; then
27089 gcc_cv_ld_eh_gc_sections=yes
27095 rm -f conftest.s conftest.o conftest
27097 case "$target" in
27098 hppa*-*-linux*)
27099 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27100 gcc_cv_ld_eh_gc_sections=no
27102 esac
27103 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27105 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27109 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27112 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27113 gcc_cv_ld_eh_gc_sections_bug=no
27114 if test $in_tree_ld = yes ; then
27115 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 \
27116 && test $in_tree_ld_is_elf = yes; then
27117 gcc_cv_ld_eh_gc_sections_bug=yes
27119 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
27120 gcc_cv_ld_eh_gc_sections_bug=yes
27121 cat > conftest.s <<EOF
27122 .section .text
27123 .globl _start
27124 .type _start, @function
27125 _start:
27126 .long foo
27127 .size _start, .-_start
27128 .section .text.startup.foo,"ax",@progbits
27129 .type foo, @function
27130 foo:
27131 .long 0
27132 .size foo, .-foo
27133 .section .gcc_except_table.foo,"a",@progbits
27134 .L0:
27135 .long 0
27136 .section .eh_frame,"a",@progbits
27137 .long .L0
27139 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27140 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27141 | grep "gc-sections option ignored" > /dev/null; then
27143 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27144 | grep gcc_except_table > /dev/null; then
27145 gcc_cv_ld_eh_gc_sections_bug=no
27148 rm -f conftest.s conftest.o conftest
27150 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27152 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27156 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27159 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27160 # gold/gld support compressed debug sections since binutils 2.19/2.21
27161 if test $in_tree_ld = yes ; then
27162 gcc_cv_ld_compress_debug=0
27163 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 \
27164 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27165 gcc_cv_ld_compress_debug=2
27166 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27167 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 \
27168 && test $in_tree_ld_is_elf = yes; then
27169 gcc_cv_ld_compress_debug=1
27171 elif echo "$ld_ver" | grep GNU > /dev/null; then
27172 gcc_cv_ld_compress_debug=1
27173 if test 0"$ld_date" -lt 20050308; then
27174 if test -n "$ld_date"; then
27175 # If there was date string, but was earlier than 2005-03-08, fail
27176 gcc_cv_ld_compress_debug=0
27177 elif test "$ld_vers_major" -lt 2; then
27178 gcc_cv_ld_compress_debug=0
27179 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27180 gcc_cv_ld_compress_debug=0
27183 if test $ld_is_gold = yes; then
27184 gcc_cv_ld_compress_debug=2
27185 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27187 else
27188 case "${target}" in
27189 *-*-solaris2*)
27190 # Introduced in Solaris 11.2.
27191 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27192 gcc_cv_ld_compress_debug=3
27193 gcc_cv_ld_compress_debug_option="-z compress-sections"
27194 else
27195 gcc_cv_ld_compress_debug=0
27199 # Assume linkers other than GNU ld don't support compessed debug
27200 # sections.
27201 gcc_cv_ld_compress_debug=0
27203 esac
27206 cat >>confdefs.h <<_ACEOF
27207 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27208 _ACEOF
27211 cat >>confdefs.h <<_ACEOF
27212 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27213 _ACEOF
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27216 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27218 # --------
27219 # UNSORTED
27220 # --------
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27223 $as_echo_n "checking linker --as-needed support... " >&6; }
27224 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27225 $as_echo_n "(cached) " >&6
27226 else
27227 gcc_cv_ld_as_needed=no
27228 gcc_cv_ld_as_needed_option='--as-needed'
27229 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27230 if test $in_tree_ld = yes ; then
27231 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 \
27232 && test $in_tree_ld_is_elf = yes; then
27233 gcc_cv_ld_as_needed=yes
27235 elif test x$gcc_cv_ld != x; then
27236 # Check if linker supports --as-needed and --no-as-needed options
27237 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27238 gcc_cv_ld_as_needed=yes
27239 else
27240 case "$target" in
27241 # Solaris 2 ld always supports -z ignore/-z record.
27242 *-*-solaris2*)
27243 gcc_cv_ld_as_needed=yes
27244 gcc_cv_ld_as_needed_option="-z ignore"
27245 gcc_cv_ld_no_as_needed_option="-z record"
27247 esac
27250 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27251 # dl_iterate_phdr, i.e. since Solaris 11.
27252 case "$target" in
27253 *-*-solaris2.1[1-9]*)
27254 case "$target" in
27255 i?86-*-* | x86_64-*-*)
27256 if echo "$ld_ver" | grep GNU > /dev/null; then
27257 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27258 gcc_cv_ld_as_needed=no
27261 esac
27263 *-*-solaris2*)
27264 gcc_cv_ld_as_needed=no
27266 esac
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27270 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27271 if test x"$gcc_cv_ld_as_needed" = xyes; then
27273 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27276 cat >>confdefs.h <<_ACEOF
27277 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27278 _ACEOF
27281 cat >>confdefs.h <<_ACEOF
27282 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27283 _ACEOF
27287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27288 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27289 saved_LDFLAGS="$LDFLAGS"
27290 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27291 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27293 /* end confdefs.h. */
27294 int main(void) {return 0;}
27295 _ACEOF
27296 if ac_fn_c_try_link "$LINENO"; then :
27297 gcc_cv_ld_clearcap=yes; break
27298 else
27299 gcc_cv_ld_clearcap=no
27301 rm -f core conftest.err conftest.$ac_objext \
27302 conftest$ac_exeext conftest.$ac_ext
27303 done
27304 LDFLAGS="$saved_LDFLAGS"
27305 if test "x$gcc_cv_ld_clearcap" = xyes; then
27307 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27309 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27313 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27315 case "$target:$tm_file" in
27316 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27317 case "$target" in
27318 *le-*-linux*)
27319 emul_name="-melf64lppc"
27321 *-*-linux*)
27322 emul_name="-melf64ppc"
27324 *-*-freebsd*)
27325 emul_name="-melf64ppc_fbsd"
27327 esac
27328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27329 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27330 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27331 $as_echo_n "(cached) " >&6
27332 else
27333 gcc_cv_ld_no_dot_syms=no
27334 if test x"$ld_is_gold" = xyes; then
27335 gcc_cv_ld_no_dot_syms=yes
27336 elif test $in_tree_ld = yes ; then
27337 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
27338 gcc_cv_ld_no_dot_syms=yes
27340 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27341 cat > conftest1.s <<EOF
27342 .text
27343 bl .foo
27345 cat > conftest2.s <<EOF
27346 .section ".opd","aw"
27347 .align 3
27348 .globl foo
27349 .type foo,@function
27350 foo:
27351 .quad .LEfoo,.TOC.@tocbase,0
27352 .text
27353 .LEfoo:
27355 .size foo,.-.LEfoo
27357 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27358 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27359 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27360 gcc_cv_ld_no_dot_syms=yes
27362 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27367 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27368 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27370 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27375 $as_echo_n "checking linker large toc support... " >&6; }
27376 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27377 $as_echo_n "(cached) " >&6
27378 else
27379 gcc_cv_ld_large_toc=no
27380 if test x"$ld_is_gold" = xyes; then
27381 gcc_cv_ld_large_toc=yes
27382 elif test $in_tree_ld = yes ; then
27383 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
27384 gcc_cv_ld_large_toc=yes
27386 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27387 cat > conftest.s <<EOF
27388 .section ".tbss","awT",@nobits
27389 .align 3
27390 ie0: .space 8
27391 .global _start
27392 .text
27393 _start:
27394 addis 9,13,ie0@got@tprel@ha
27395 ld 9,ie0@got@tprel@l(9)
27397 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27398 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27399 gcc_cv_ld_large_toc=yes
27401 rm -f conftest conftest.o conftest.s
27405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27406 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27407 if test x"$gcc_cv_ld_large_toc" = xyes; then
27409 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27413 esac
27415 case "$target" in
27416 *-*-aix*)
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27418 $as_echo_n "checking linker large toc support... " >&6; }
27419 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27420 $as_echo_n "(cached) " >&6
27421 else
27422 gcc_cv_ld_large_toc=no
27423 if test x$gcc_cv_as != x ; then
27424 cat > conftest.s <<EOF
27425 .toc
27426 LC..1:
27427 .tc a[TC],a[RW]
27428 .extern a[RW]
27429 .csect .text[PR]
27430 .largetoctest:
27431 addis 9,LC..1@u(2)
27432 ld 3,LC..1@l(9)
27434 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27435 gcc_cv_ld_large_toc=yes
27437 rm -f conftest conftest.o conftest.s
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27442 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27443 if test x"$gcc_cv_ld_large_toc" = xyes; then
27445 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27449 esac
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27452 $as_echo_n "checking linker --build-id support... " >&6; }
27453 if test "${gcc_cv_ld_buildid+set}" = set; then :
27454 $as_echo_n "(cached) " >&6
27455 else
27456 gcc_cv_ld_buildid=no
27457 if test $in_tree_ld = yes ; then
27458 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27459 "$gcc_cv_gld_minor_version" -ge 18 -o \
27460 "$gcc_cv_gld_major_version" -gt 2 \
27461 && test $in_tree_ld_is_elf = yes; then
27462 gcc_cv_ld_buildid=yes
27464 elif test x$gcc_cv_ld != x; then
27465 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27466 gcc_cv_ld_buildid=yes
27470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27471 $as_echo "$gcc_cv_ld_buildid" >&6; }
27472 if test x"$gcc_cv_ld_buildid" = xyes; then
27474 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27478 # Check whether --enable-linker-build-id was given.
27479 if test "${enable_linker_build_id+set}" = set; then :
27480 enableval=$enable_linker_build_id;
27481 else
27482 enable_linker_build_id=no
27486 if test x"$enable_linker_build_id" = xyes; then
27487 if test x"$gcc_cv_ld_buildid" = xyes; then
27489 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27491 else
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27493 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27497 # In binutils 2.21, GNU ld gained support for new emulations fully
27498 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27500 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27501 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27502 $as_echo_n "(cached) " >&6
27503 else
27504 gcc_cv_ld_sol2_emulation=no
27505 if test $in_tree_ld = yes ; then
27506 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27507 "$gcc_cv_gld_minor_version" -ge 21 -o \
27508 "$gcc_cv_gld_major_version" -gt 2 \
27509 && test $in_tree_ld_is_elf = yes; then
27510 gcc_cv_ld_sol2_emulation=yes
27512 elif test x$gcc_cv_ld != x; then
27513 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27514 grep _sol2 > /dev/null; then
27515 gcc_cv_ld_sol2_emulation=yes
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27520 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27521 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27523 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27528 $as_echo_n "checking linker --sysroot support... " >&6; }
27529 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27530 $as_echo_n "(cached) " >&6
27531 else
27532 gcc_cv_ld_sysroot=no
27533 if test $in_tree_ld = yes ; then
27534 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
27535 gcc_cv_ld_sysroot=yes
27537 elif test x$gcc_cv_ld != x; then
27538 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27539 gcc_cv_ld_sysroot=yes
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27544 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27545 if test x"$gcc_cv_ld_sysroot" = xyes; then
27547 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27551 # Test for stack protector support in target C library.
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27553 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27554 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27555 $as_echo_n "(cached) " >&6
27556 else
27557 gcc_cv_libc_provides_ssp=no
27558 case "$target" in
27559 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27560 # glibc 2.4 and later provides __stack_chk_fail and
27561 # either __stack_chk_guard, or TLS access to stack guard canary.
27563 if test $glibc_version_major -gt 2 \
27564 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27565 gcc_cv_libc_provides_ssp=yes
27566 else
27568 if test -f $target_header_dir/features.h \
27569 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27570 $target_header_dir/features.h > /dev/null; then
27571 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27572 $target_header_dir/features.h > /dev/null && \
27573 test -f $target_header_dir/bits/uClibc_config.h && \
27574 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27575 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27576 gcc_cv_libc_provides_ssp=yes
27578 # all versions of Bionic support stack protector
27579 elif test -f $target_header_dir/sys/cdefs.h \
27580 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27581 $target_header_dir/sys/cdefs.h > /dev/null; then
27582 gcc_cv_libc_provides_ssp=yes
27586 *-*-gnu*)
27587 # Avoid complicated tests (see
27588 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27589 # simply assert that glibc does provide this, which is true for all
27590 # realistically usable GNU/Hurd configurations.
27591 gcc_cv_libc_provides_ssp=yes;;
27592 *-*-darwin* | *-*-freebsd*)
27593 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27594 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27595 gcc_cv_libc_provides_ssp=yes
27596 else
27597 echo "no __stack_chk_fail on this target"
27601 *) gcc_cv_libc_provides_ssp=no ;;
27602 esac
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27605 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27607 if test x$gcc_cv_libc_provides_ssp = xyes; then
27609 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27613 # Test for <sys/sdt.h> on the target.
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27616 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27617 have_sys_sdt_h=no
27618 if test -f $target_header_dir/sys/sdt.h; then
27619 have_sys_sdt_h=yes
27621 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27625 $as_echo "$have_sys_sdt_h" >&6; }
27627 # Check if TFmode long double should be used by default or not.
27628 # Some glibc targets used DFmode long double, but with glibc 2.4
27629 # and later they can use TFmode.
27630 case "$target" in
27631 powerpc*-*-linux* | \
27632 sparc*-*-linux* | \
27633 s390*-*-linux* | \
27634 alpha*-*-linux*)
27636 # Check whether --with-long-double-128 was given.
27637 if test "${with_long_double_128+set}" = set; then :
27638 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27639 else
27641 if test $glibc_version_major -gt 2 \
27642 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27643 gcc_cv_target_ldbl128=yes
27644 else
27646 gcc_cv_target_ldbl128=no
27647 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27648 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27649 && gcc_cv_target_ldbl128=yes
27655 esac
27656 if test x$gcc_cv_target_ldbl128 = xyes; then
27658 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27663 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27664 gcc_cv_target_dl_iterate_phdr=unknown
27665 case "$target" in
27666 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27667 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27668 # libdl there, both complicating its use and breaking compatibility
27669 # between Solaris 10 updates.
27670 *-*-solaris2.1[1-9]*)
27671 # <link.h> needs both a dl_iterate_phdr declaration and support for
27672 # compilation with largefile support.
27673 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27674 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27675 gcc_cv_target_dl_iterate_phdr=yes
27676 else
27677 gcc_cv_target_dl_iterate_phdr=no
27680 *-*-dragonfly* | *-*-freebsd*)
27681 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27682 gcc_cv_target_dl_iterate_phdr=yes
27683 else
27684 gcc_cv_target_dl_iterate_phdr=no
27687 esac
27689 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27691 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27695 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27697 # We no longer support different GC mechanisms. Emit an error if
27698 # the user configures with --with-gc.
27700 # Check whether --with-gc was given.
27701 if test "${with_gc+set}" = set; then :
27702 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27706 # Libraries to use on the host. This will normally be set by the top
27707 # level Makefile. Here we simply capture the value for our Makefile.
27708 if test -z "${HOST_LIBS+set}"; then
27709 HOST_LIBS=
27713 # Use the system's zlib library.
27714 zlibdir=-L../zlib
27715 zlibinc="-I\$(srcdir)/../zlib"
27717 # Check whether --with-system-zlib was given.
27718 if test "${with_system_zlib+set}" = set; then :
27719 withval=$with_system_zlib; zlibdir=
27720 zlibinc=
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27729 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27730 # Check whether --enable-maintainer-mode was given.
27731 if test "${enable_maintainer_mode+set}" = set; then :
27732 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27733 else
27734 maintainer_mode=no
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27739 $as_echo "$maintainer_mode" >&6; }
27741 if test "$maintainer_mode" = "yes"; then
27742 MAINT=''
27743 else
27744 MAINT='#'
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27749 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27750 # Check whether --enable-link-mutex was given.
27751 if test "${enable_link_mutex+set}" = set; then :
27752 enableval=$enable_link_mutex; do_link_mutex=$enableval
27753 else
27754 do_link_mutex=no
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27758 $as_echo "$do_link_mutex" >&6; }
27760 if test "$do_link_mutex" = "yes"; then
27761 DO_LINK_MUTEX=true
27762 else
27763 DO_LINK_MUTEX=false
27767 # --------------
27768 # Language hooks
27769 # --------------
27771 # Make empty files to contain the specs and options for each language.
27772 # Then add #include lines to for a compiler that has specs and/or options.
27774 subdirs=
27775 lang_opt_files=
27776 lang_specs_files=
27777 lang_tree_files=
27778 # These (without "all_") are set in each config-lang.in.
27779 # `language' must be a single word so is spelled singularly.
27780 all_languages=
27781 all_compilers=
27782 all_outputs='Makefile'
27783 # List of language makefile fragments.
27784 all_lang_makefrags=
27785 # Additional files for gengtype
27786 all_gtfiles="$target_gtfiles"
27788 # These are the languages that are set in --enable-languages,
27789 # and are available in the GCC tree.
27790 all_selected_languages=
27792 # Add the language fragments.
27793 # Languages are added via two mechanisms. Some information must be
27794 # recorded in makefile variables, these are defined in config-lang.in.
27795 # We accumulate them and plug them into the main Makefile.
27796 # The other mechanism is a set of hooks for each of the main targets
27797 # like `clean', `install', etc.
27799 language_hooks="Make-hooks"
27801 for lang in ${srcdir}/*/config-lang.in
27803 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27805 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27806 if test "x$lang_alias" = x
27807 then
27808 echo "$lang doesn't set \$language." 1>&2
27809 exit 1
27811 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27812 subdirs="$subdirs $subdir"
27814 # $gcc_subdir is where the gcc integration files are to be found
27815 # for a language, both for internal compiler purposes (compiler
27816 # sources implementing front-end to GCC tree converters), and for
27817 # build infrastructure purposes (Make-lang.in, etc.)
27819 # This will be <subdir> (relative to $srcdir) if a line like
27820 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27821 # is found in <langdir>/config-lang.in, and will remain <langdir>
27822 # otherwise.
27824 # Except for the language alias (fetched above), the regular
27825 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27826 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27827 # only this and the language alias.
27829 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27830 if [ "$gcc_subdir" = "" ]; then
27831 gcc_subdir="$subdir"
27834 case ",$enable_languages," in
27835 *,$lang_alias,*)
27836 all_selected_languages="$all_selected_languages $lang_alias"
27837 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27838 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27841 esac
27843 language=
27844 boot_language=
27845 compilers=
27846 outputs=
27847 gtfiles=
27848 subdir_requires=
27849 . ${srcdir}/$gcc_subdir/config-lang.in
27850 if test "x$language" = x
27851 then
27852 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27853 exit 1
27856 ok=:
27857 case ",$enable_languages," in
27858 *,$lang_alias,*) ;;
27860 for i in $subdir_requires; do
27861 test -f "${srcdir}/$i/config-lang.in" && continue
27862 ok=false
27863 break
27864 done
27866 esac
27867 $ok || continue
27869 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27870 if test -f $srcdir/$gcc_subdir/lang.opt; then
27871 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27872 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27874 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27875 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27877 all_languages="$all_languages $language"
27878 all_compilers="$all_compilers $compilers"
27879 all_outputs="$all_outputs $outputs"
27880 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27881 case ",$enable_languages," in
27882 *,lto,*)
27884 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27886 enable_lto=yes
27889 *) ;;
27890 esac
27891 done
27893 check_languages=
27894 for language in $all_selected_languages
27896 check_languages="$check_languages check-$language"
27897 done
27899 # We link each language in with a set of hooks, reached indirectly via
27900 # lang.${target}. Only do so for selected languages.
27902 rm -f Make-hooks
27903 touch Make-hooks
27904 target_list="all.cross start.encap rest.encap tags \
27905 install-common install-man install-info install-pdf install-html dvi \
27906 pdf html uninstall info man srcextra srcman srcinfo \
27907 mostlyclean clean distclean maintainer-clean install-plugin"
27909 for t in $target_list
27912 for lang in $all_selected_languages
27914 x="$x $lang.$t"
27915 done
27916 echo "lang.$t: $x" >> Make-hooks
27917 done
27919 # --------
27920 # Option include files
27921 # --------
27923 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27924 option_includes="option-includes.mk"
27927 # --------
27928 # UNSORTED
27929 # --------
27931 # Create .gdbinit.
27933 echo "dir ." > .gdbinit
27934 echo "dir ${srcdir}" >> .gdbinit
27935 if test x$gdb_needs_out_file_path = xyes
27936 then
27937 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27939 if test "x$subdirs" != x; then
27940 for s in $subdirs
27942 echo "dir ${srcdir}/$s" >> .gdbinit
27943 done
27945 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27946 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27948 # Put a breakpoint on __asan_report_error to help with debugging buffer
27949 # overflow.
27950 case "$CFLAGS" in
27951 *-fsanitize=address*)
27952 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27954 esac
27956 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27960 # Find a directory in which to install a shared libgcc.
27962 # Check whether --enable-version-specific-runtime-libs was given.
27963 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27964 enableval=$enable_version_specific_runtime_libs;
27968 # Substitute configuration variables
28033 # Echo link setup.
28034 if test x${build} = x${host} ; then
28035 if test x${host} = x${target} ; then
28036 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28037 else
28038 echo "Links are now set up to build a cross-compiler" 1>&2
28039 echo " from ${host} to ${target}." 1>&2
28041 else
28042 if test x${host} = x${target} ; then
28043 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28044 echo " for ${target}." 1>&2
28045 else
28046 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28047 echo " from ${host} to ${target}." 1>&2
28056 if test "x${ISLLIBS}" != "x" ; then
28058 $as_echo "#define HAVE_isl 1" >>confdefs.h
28062 # Check for plugin support
28063 # Check whether --enable-plugin was given.
28064 if test "${enable_plugin+set}" = set; then :
28065 enableval=$enable_plugin; enable_plugin=$enableval
28066 else
28067 enable_plugin=yes; default_plugin=yes
28071 pluginlibs=
28073 case "${host}" in
28074 *-*-darwin*)
28075 if test x$build = x$host; then
28076 export_sym_check="nm${exeext} -g"
28077 elif test x$host = x$target; then
28078 export_sym_check="$gcc_cv_nm -g"
28079 else
28080 export_sym_check=
28084 if test x$build = x$host; then
28085 export_sym_check="objdump${exeext} -T"
28086 elif test x$host = x$target; then
28087 export_sym_check="$gcc_cv_objdump -T"
28088 else
28089 export_sym_check=
28092 esac
28094 if test x"$enable_plugin" = x"yes"; then
28096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28097 $as_echo_n "checking for exported symbols... " >&6; }
28098 if test "x$export_sym_check" != x; then
28099 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28100 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28101 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28102 : # No need to use a flag
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28104 $as_echo "yes" >&6; }
28105 else
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28107 $as_echo "yes" >&6; }
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28109 $as_echo_n "checking for -rdynamic... " >&6; }
28110 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28111 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28112 plugin_rdynamic=yes
28113 pluginlibs="-rdynamic"
28114 else
28115 plugin_rdynamic=no
28116 enable_plugin=no
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28119 $as_echo "$plugin_rdynamic" >&6; }
28121 else
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28123 $as_echo "unable to check" >&6; }
28126 # Check -ldl
28127 saved_LIBS="$LIBS"
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28129 $as_echo_n "checking for library containing dlopen... " >&6; }
28130 if test "${ac_cv_search_dlopen+set}" = set; then :
28131 $as_echo_n "(cached) " >&6
28132 else
28133 ac_func_search_save_LIBS=$LIBS
28134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28135 /* end confdefs.h. */
28137 /* Override any GCC internal prototype to avoid an error.
28138 Use char because int might match the return type of a GCC
28139 builtin and then its argument prototype would still apply. */
28140 #ifdef __cplusplus
28141 extern "C"
28142 #endif
28143 char dlopen ();
28145 main ()
28147 return dlopen ();
28149 return 0;
28151 _ACEOF
28152 for ac_lib in '' dl; do
28153 if test -z "$ac_lib"; then
28154 ac_res="none required"
28155 else
28156 ac_res=-l$ac_lib
28157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28159 if ac_fn_c_try_link "$LINENO"; then :
28160 ac_cv_search_dlopen=$ac_res
28162 rm -f core conftest.err conftest.$ac_objext \
28163 conftest$ac_exeext
28164 if test "${ac_cv_search_dlopen+set}" = set; then :
28165 break
28167 done
28168 if test "${ac_cv_search_dlopen+set}" = set; then :
28170 else
28171 ac_cv_search_dlopen=no
28173 rm conftest.$ac_ext
28174 LIBS=$ac_func_search_save_LIBS
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28177 $as_echo "$ac_cv_search_dlopen" >&6; }
28178 ac_res=$ac_cv_search_dlopen
28179 if test "$ac_res" != no; then :
28180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28184 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28185 pluginlibs="$pluginlibs -ldl"
28187 LIBS="$saved_LIBS"
28189 # Check that we can build shared objects with -fPIC -shared
28190 saved_LDFLAGS="$LDFLAGS"
28191 saved_CFLAGS="$CFLAGS"
28192 case "${host}" in
28193 *-*-darwin*)
28194 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28195 CFLAGS="$CFLAGS -fPIC"
28196 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28199 CFLAGS="$CFLAGS -fPIC"
28200 LDFLAGS="$LDFLAGS -fPIC -shared"
28202 esac
28203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28204 $as_echo_n "checking for -fPIC -shared... " >&6; }
28205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28206 /* end confdefs.h. */
28207 extern int X;
28209 main ()
28211 return X == 0;
28213 return 0;
28215 _ACEOF
28216 if ac_fn_c_try_link "$LINENO"; then :
28217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28218 $as_echo "yes" >&6; }; have_pic_shared=yes
28219 else
28220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28221 $as_echo "no" >&6; }; have_pic_shared=no
28223 rm -f core conftest.err conftest.$ac_objext \
28224 conftest$ac_exeext conftest.$ac_ext
28225 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28226 pluginlibs=
28227 enable_plugin=no
28229 LDFLAGS="$saved_LDFLAGS"
28230 CFLAGS="$saved_CFLAGS"
28232 # If plugin support had been requested but not available, fail.
28233 if test x"$enable_plugin" = x"no" ; then
28234 if test x"$default_plugin" != x"yes"; then
28235 as_fn_error "
28236 Building GCC with plugin support requires a host that supports
28237 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28244 if test x"$enable_plugin" = x"yes"; then
28246 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28251 # Enable --enable-host-shared
28252 # Check whether --enable-host-shared was given.
28253 if test "${enable_host_shared+set}" = set; then :
28254 enableval=$enable_host_shared; PICFLAG=-fPIC
28255 else
28256 PICFLAG=
28263 # Check whether --enable-libquadmath-support was given.
28264 if test "${enable_libquadmath_support+set}" = set; then :
28265 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28266 else
28267 ENABLE_LIBQUADMATH_SUPPORT=yes
28270 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28272 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28277 # Specify what hash style to use by default.
28279 # Check whether --with-linker-hash-style was given.
28280 if test "${with_linker_hash_style+set}" = set; then :
28281 withval=$with_linker_hash_style; case x"$withval" in
28282 xsysv)
28283 LINKER_HASH_STYLE=sysv
28285 xgnu)
28286 LINKER_HASH_STYLE=gnu
28288 xboth)
28289 LINKER_HASH_STYLE=both
28292 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28294 esac
28295 else
28296 LINKER_HASH_STYLE=''
28299 if test x"${LINKER_HASH_STYLE}" != x; then
28301 cat >>confdefs.h <<_ACEOF
28302 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28303 _ACEOF
28307 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28308 # of jit/jit-playback.c.
28309 cat > gcc-driver-name.h <<EOF
28310 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28313 # Configure the subdirectories
28314 # AC_CONFIG_SUBDIRS($subdirs)
28316 # Create the Makefile
28317 # and configure language subdirectories
28318 ac_config_files="$ac_config_files $all_outputs"
28321 ac_config_commands="$ac_config_commands default"
28323 cat >confcache <<\_ACEOF
28324 # This file is a shell script that caches the results of configure
28325 # tests run on this system so they can be shared between configure
28326 # scripts and configure runs, see configure's option --config-cache.
28327 # It is not useful on other systems. If it contains results you don't
28328 # want to keep, you may remove or edit it.
28330 # config.status only pays attention to the cache file if you give it
28331 # the --recheck option to rerun configure.
28333 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28334 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28335 # following values.
28337 _ACEOF
28339 # The following way of writing the cache mishandles newlines in values,
28340 # but we know of no workaround that is simple, portable, and efficient.
28341 # So, we kill variables containing newlines.
28342 # Ultrix sh set writes to stderr and can't be redirected directly,
28343 # and sets the high bit in the cache file unless we assign to the vars.
28345 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28346 eval ac_val=\$$ac_var
28347 case $ac_val in #(
28348 *${as_nl}*)
28349 case $ac_var in #(
28350 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28351 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28352 esac
28353 case $ac_var in #(
28354 _ | IFS | as_nl) ;; #(
28355 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28356 *) { eval $ac_var=; unset $ac_var;} ;;
28357 esac ;;
28358 esac
28359 done
28361 (set) 2>&1 |
28362 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28363 *${as_nl}ac_space=\ *)
28364 # `set' does not quote correctly, so add quotes: double-quote
28365 # substitution turns \\\\ into \\, and sed turns \\ into \.
28366 sed -n \
28367 "s/'/'\\\\''/g;
28368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28369 ;; #(
28371 # `set' quotes correctly as required by POSIX, so do not add quotes.
28372 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28374 esac |
28375 sort
28377 sed '
28378 /^ac_cv_env_/b end
28379 t clear
28380 :clear
28381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28382 t end
28383 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28384 :end' >>confcache
28385 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28386 if test -w "$cache_file"; then
28387 test "x$cache_file" != "x/dev/null" &&
28388 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28389 $as_echo "$as_me: updating cache $cache_file" >&6;}
28390 cat confcache >$cache_file
28391 else
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28393 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28396 rm -f confcache
28398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28399 # Let make expand exec_prefix.
28400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28402 DEFS=-DHAVE_CONFIG_H
28404 ac_libobjs=
28405 ac_ltlibobjs=
28406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28407 # 1. Remove the extension, and $U if already installed.
28408 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28409 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28410 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28411 # will be set to the directory where LIBOBJS objects are built.
28412 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28413 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28414 done
28415 LIBOBJS=$ac_libobjs
28417 LTLIBOBJS=$ac_ltlibobjs
28422 : ${CONFIG_STATUS=./config.status}
28423 ac_write_fail=0
28424 ac_clean_files_save=$ac_clean_files
28425 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28427 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28428 as_write_fail=0
28429 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28430 #! $SHELL
28431 # Generated by $as_me.
28432 # Run this file to recreate the current configuration.
28433 # Compiler output produced by configure, useful for debugging
28434 # configure, is in config.log if it exists.
28436 debug=false
28437 ac_cs_recheck=false
28438 ac_cs_silent=false
28440 SHELL=\${CONFIG_SHELL-$SHELL}
28441 export SHELL
28442 _ASEOF
28443 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28444 ## -------------------- ##
28445 ## M4sh Initialization. ##
28446 ## -------------------- ##
28448 # Be more Bourne compatible
28449 DUALCASE=1; export DUALCASE # for MKS sh
28450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28451 emulate sh
28452 NULLCMD=:
28453 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28454 # is contrary to our usage. Disable this feature.
28455 alias -g '${1+"$@"}'='"$@"'
28456 setopt NO_GLOB_SUBST
28457 else
28458 case `(set -o) 2>/dev/null` in #(
28459 *posix*) :
28460 set -o posix ;; #(
28461 *) :
28463 esac
28467 as_nl='
28469 export as_nl
28470 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28471 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28474 # Prefer a ksh shell builtin over an external printf program on Solaris,
28475 # but without wasting forks for bash or zsh.
28476 if test -z "$BASH_VERSION$ZSH_VERSION" \
28477 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28478 as_echo='print -r --'
28479 as_echo_n='print -rn --'
28480 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28481 as_echo='printf %s\n'
28482 as_echo_n='printf %s'
28483 else
28484 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28485 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28486 as_echo_n='/usr/ucb/echo -n'
28487 else
28488 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28489 as_echo_n_body='eval
28490 arg=$1;
28491 case $arg in #(
28492 *"$as_nl"*)
28493 expr "X$arg" : "X\\(.*\\)$as_nl";
28494 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28495 esac;
28496 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28498 export as_echo_n_body
28499 as_echo_n='sh -c $as_echo_n_body as_echo'
28501 export as_echo_body
28502 as_echo='sh -c $as_echo_body as_echo'
28505 # The user is always right.
28506 if test "${PATH_SEPARATOR+set}" != set; then
28507 PATH_SEPARATOR=:
28508 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28509 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28510 PATH_SEPARATOR=';'
28515 # IFS
28516 # We need space, tab and new line, in precisely that order. Quoting is
28517 # there to prevent editors from complaining about space-tab.
28518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28519 # splitting by setting IFS to empty value.)
28520 IFS=" "" $as_nl"
28522 # Find who we are. Look in the path if we contain no directory separator.
28523 case $0 in #((
28524 *[\\/]* ) as_myself=$0 ;;
28525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28526 for as_dir in $PATH
28528 IFS=$as_save_IFS
28529 test -z "$as_dir" && as_dir=.
28530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28531 done
28532 IFS=$as_save_IFS
28535 esac
28536 # We did not find ourselves, most probably we were run as `sh COMMAND'
28537 # in which case we are not to be found in the path.
28538 if test "x$as_myself" = x; then
28539 as_myself=$0
28541 if test ! -f "$as_myself"; then
28542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28543 exit 1
28546 # Unset variables that we do not need and which cause bugs (e.g. in
28547 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28548 # suppresses any "Segmentation fault" message there. '((' could
28549 # trigger a bug in pdksh 5.2.14.
28550 for as_var in BASH_ENV ENV MAIL MAILPATH
28551 do eval test x\${$as_var+set} = xset \
28552 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28553 done
28554 PS1='$ '
28555 PS2='> '
28556 PS4='+ '
28558 # NLS nuisances.
28559 LC_ALL=C
28560 export LC_ALL
28561 LANGUAGE=C
28562 export LANGUAGE
28564 # CDPATH.
28565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28568 # as_fn_error ERROR [LINENO LOG_FD]
28569 # ---------------------------------
28570 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28571 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28572 # script with status $?, using 1 if that was 0.
28573 as_fn_error ()
28575 as_status=$?; test $as_status -eq 0 && as_status=1
28576 if test "$3"; then
28577 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28578 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28580 $as_echo "$as_me: error: $1" >&2
28581 as_fn_exit $as_status
28582 } # as_fn_error
28585 # as_fn_set_status STATUS
28586 # -----------------------
28587 # Set $? to STATUS, without forking.
28588 as_fn_set_status ()
28590 return $1
28591 } # as_fn_set_status
28593 # as_fn_exit STATUS
28594 # -----------------
28595 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28596 as_fn_exit ()
28598 set +e
28599 as_fn_set_status $1
28600 exit $1
28601 } # as_fn_exit
28603 # as_fn_unset VAR
28604 # ---------------
28605 # Portably unset VAR.
28606 as_fn_unset ()
28608 { eval $1=; unset $1;}
28610 as_unset=as_fn_unset
28611 # as_fn_append VAR VALUE
28612 # ----------------------
28613 # Append the text in VALUE to the end of the definition contained in VAR. Take
28614 # advantage of any shell optimizations that allow amortized linear growth over
28615 # repeated appends, instead of the typical quadratic growth present in naive
28616 # implementations.
28617 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28618 eval 'as_fn_append ()
28620 eval $1+=\$2
28622 else
28623 as_fn_append ()
28625 eval $1=\$$1\$2
28627 fi # as_fn_append
28629 # as_fn_arith ARG...
28630 # ------------------
28631 # Perform arithmetic evaluation on the ARGs, and store the result in the
28632 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28633 # must be portable across $(()) and expr.
28634 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28635 eval 'as_fn_arith ()
28637 as_val=$(( $* ))
28639 else
28640 as_fn_arith ()
28642 as_val=`expr "$@" || test $? -eq 1`
28644 fi # as_fn_arith
28647 if expr a : '\(a\)' >/dev/null 2>&1 &&
28648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28649 as_expr=expr
28650 else
28651 as_expr=false
28654 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28655 as_basename=basename
28656 else
28657 as_basename=false
28660 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28661 as_dirname=dirname
28662 else
28663 as_dirname=false
28666 as_me=`$as_basename -- "$0" ||
28667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28668 X"$0" : 'X\(//\)$' \| \
28669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28670 $as_echo X/"$0" |
28671 sed '/^.*\/\([^/][^/]*\)\/*$/{
28672 s//\1/
28675 /^X\/\(\/\/\)$/{
28676 s//\1/
28679 /^X\/\(\/\).*/{
28680 s//\1/
28683 s/.*/./; q'`
28685 # Avoid depending upon Character Ranges.
28686 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28687 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28688 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28689 as_cr_digits='0123456789'
28690 as_cr_alnum=$as_cr_Letters$as_cr_digits
28692 ECHO_C= ECHO_N= ECHO_T=
28693 case `echo -n x` in #(((((
28694 -n*)
28695 case `echo 'xy\c'` in
28696 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28697 xy) ECHO_C='\c';;
28698 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28699 ECHO_T=' ';;
28700 esac;;
28702 ECHO_N='-n';;
28703 esac
28705 rm -f conf$$ conf$$.exe conf$$.file
28706 if test -d conf$$.dir; then
28707 rm -f conf$$.dir/conf$$.file
28708 else
28709 rm -f conf$$.dir
28710 mkdir conf$$.dir 2>/dev/null
28712 if (echo >conf$$.file) 2>/dev/null; then
28713 if ln -s conf$$.file conf$$ 2>/dev/null; then
28714 as_ln_s='ln -s'
28715 # ... but there are two gotchas:
28716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28718 # In both cases, we have to default to `cp -p'.
28719 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28720 as_ln_s='cp -p'
28721 elif ln conf$$.file conf$$ 2>/dev/null; then
28722 as_ln_s=ln
28723 else
28724 as_ln_s='cp -p'
28726 else
28727 as_ln_s='cp -p'
28729 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28730 rmdir conf$$.dir 2>/dev/null
28733 # as_fn_mkdir_p
28734 # -------------
28735 # Create "$as_dir" as a directory, including parents if necessary.
28736 as_fn_mkdir_p ()
28739 case $as_dir in #(
28740 -*) as_dir=./$as_dir;;
28741 esac
28742 test -d "$as_dir" || eval $as_mkdir_p || {
28743 as_dirs=
28744 while :; do
28745 case $as_dir in #(
28746 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28747 *) as_qdir=$as_dir;;
28748 esac
28749 as_dirs="'$as_qdir' $as_dirs"
28750 as_dir=`$as_dirname -- "$as_dir" ||
28751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28752 X"$as_dir" : 'X\(//\)[^/]' \| \
28753 X"$as_dir" : 'X\(//\)$' \| \
28754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28755 $as_echo X"$as_dir" |
28756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28757 s//\1/
28760 /^X\(\/\/\)[^/].*/{
28761 s//\1/
28764 /^X\(\/\/\)$/{
28765 s//\1/
28768 /^X\(\/\).*/{
28769 s//\1/
28772 s/.*/./; q'`
28773 test -d "$as_dir" && break
28774 done
28775 test -z "$as_dirs" || eval "mkdir $as_dirs"
28776 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28779 } # as_fn_mkdir_p
28780 if mkdir -p . 2>/dev/null; then
28781 as_mkdir_p='mkdir -p "$as_dir"'
28782 else
28783 test -d ./-p && rmdir ./-p
28784 as_mkdir_p=false
28787 if test -x / >/dev/null 2>&1; then
28788 as_test_x='test -x'
28789 else
28790 if ls -dL / >/dev/null 2>&1; then
28791 as_ls_L_option=L
28792 else
28793 as_ls_L_option=
28795 as_test_x='
28796 eval sh -c '\''
28797 if test -d "$1"; then
28798 test -d "$1/.";
28799 else
28800 case $1 in #(
28801 -*)set "./$1";;
28802 esac;
28803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28804 ???[sx]*):;;*)false;;esac;fi
28805 '\'' sh
28808 as_executable_p=$as_test_x
28810 # Sed expression to map a string onto a valid CPP name.
28811 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28813 # Sed expression to map a string onto a valid variable name.
28814 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28817 exec 6>&1
28818 ## ----------------------------------- ##
28819 ## Main body of $CONFIG_STATUS script. ##
28820 ## ----------------------------------- ##
28821 _ASEOF
28822 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28825 # Save the log message, to keep $0 and so on meaningful, and to
28826 # report actual input values of CONFIG_FILES etc. instead of their
28827 # values after options handling.
28828 ac_log="
28829 This file was extended by $as_me, which was
28830 generated by GNU Autoconf 2.64. Invocation command line was
28832 CONFIG_FILES = $CONFIG_FILES
28833 CONFIG_HEADERS = $CONFIG_HEADERS
28834 CONFIG_LINKS = $CONFIG_LINKS
28835 CONFIG_COMMANDS = $CONFIG_COMMANDS
28836 $ $0 $@
28838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28841 _ACEOF
28843 case $ac_config_files in *"
28844 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28845 esac
28847 case $ac_config_headers in *"
28848 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28849 esac
28852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28853 # Files that config.status was made for.
28854 config_files="$ac_config_files"
28855 config_headers="$ac_config_headers"
28856 config_links="$ac_config_links"
28857 config_commands="$ac_config_commands"
28859 _ACEOF
28861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28862 ac_cs_usage="\
28863 \`$as_me' instantiates files and other configuration actions
28864 from templates according to the current configuration. Unless the files
28865 and actions are specified as TAGs, all are instantiated by default.
28867 Usage: $0 [OPTION]... [TAG]...
28869 -h, --help print this help, then exit
28870 -V, --version print version number and configuration settings, then exit
28871 -q, --quiet, --silent
28872 do not print progress messages
28873 -d, --debug don't remove temporary files
28874 --recheck update $as_me by reconfiguring in the same conditions
28875 --file=FILE[:TEMPLATE]
28876 instantiate the configuration file FILE
28877 --header=FILE[:TEMPLATE]
28878 instantiate the configuration header FILE
28880 Configuration files:
28881 $config_files
28883 Configuration headers:
28884 $config_headers
28886 Configuration links:
28887 $config_links
28889 Configuration commands:
28890 $config_commands
28892 Report bugs to the package provider."
28894 _ACEOF
28895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28896 ac_cs_version="\\
28897 config.status
28898 configured by $0, generated by GNU Autoconf 2.64,
28899 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28901 Copyright (C) 2009 Free Software Foundation, Inc.
28902 This config.status script is free software; the Free Software Foundation
28903 gives unlimited permission to copy, distribute and modify it."
28905 ac_pwd='$ac_pwd'
28906 srcdir='$srcdir'
28907 AWK='$AWK'
28908 test -n "\$AWK" || AWK=awk
28909 _ACEOF
28911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28912 # The default lists apply if the user does not specify any file.
28913 ac_need_defaults=:
28914 while test $# != 0
28916 case $1 in
28917 --*=*)
28918 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28920 ac_shift=:
28923 ac_option=$1
28924 ac_optarg=$2
28925 ac_shift=shift
28927 esac
28929 case $ac_option in
28930 # Handling of the options.
28931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28932 ac_cs_recheck=: ;;
28933 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28934 $as_echo "$ac_cs_version"; exit ;;
28935 --debug | --debu | --deb | --de | --d | -d )
28936 debug=: ;;
28937 --file | --fil | --fi | --f )
28938 $ac_shift
28939 case $ac_optarg in
28940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28941 esac
28942 as_fn_append CONFIG_FILES " '$ac_optarg'"
28943 ac_need_defaults=false;;
28944 --header | --heade | --head | --hea )
28945 $ac_shift
28946 case $ac_optarg in
28947 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28948 esac
28949 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28950 ac_need_defaults=false;;
28951 --he | --h)
28952 # Conflict between --help and --header
28953 as_fn_error "ambiguous option: \`$1'
28954 Try \`$0 --help' for more information.";;
28955 --help | --hel | -h )
28956 $as_echo "$ac_cs_usage"; exit ;;
28957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28959 ac_cs_silent=: ;;
28961 # This is an error.
28962 -*) as_fn_error "unrecognized option: \`$1'
28963 Try \`$0 --help' for more information." ;;
28965 *) as_fn_append ac_config_targets " $1"
28966 ac_need_defaults=false ;;
28968 esac
28969 shift
28970 done
28972 ac_configure_extra_args=
28974 if $ac_cs_silent; then
28975 exec 6>/dev/null
28976 ac_configure_extra_args="$ac_configure_extra_args --silent"
28979 _ACEOF
28980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28981 if \$ac_cs_recheck; then
28982 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28983 shift
28984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28985 CONFIG_SHELL='$SHELL'
28986 export CONFIG_SHELL
28987 exec "\$@"
28990 _ACEOF
28991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28992 exec 5>>config.log
28994 echo
28995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28996 ## Running $as_me. ##
28997 _ASBOX
28998 $as_echo "$ac_log"
28999 } >&5
29001 _ACEOF
29002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29004 # INIT-COMMANDS
29006 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29007 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29008 subdirs='$subdirs'
29010 _ACEOF
29012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29014 # Handling of arguments.
29015 for ac_config_target in $ac_config_targets
29017 case $ac_config_target in
29018 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
29019 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
29020 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
29021 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
29022 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29023 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
29024 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29025 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
29026 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29028 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29029 esac
29030 done
29033 # If the user did not use the arguments to specify the items to instantiate,
29034 # then the envvar interface is used. Set only those that are not.
29035 # We use the long form for the default assignment because of an extremely
29036 # bizarre bug on SunOS 4.1.3.
29037 if $ac_need_defaults; then
29038 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29039 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29040 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29041 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29044 # Have a temporary directory for convenience. Make it in the build tree
29045 # simply because there is no reason against having it here, and in addition,
29046 # creating and moving files from /tmp can sometimes cause problems.
29047 # Hook for its removal unless debugging.
29048 # Note that there is a small window in which the directory will not be cleaned:
29049 # after its creation but before its name has been assigned to `$tmp'.
29050 $debug ||
29052 tmp=
29053 trap 'exit_status=$?
29054 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29056 trap 'as_fn_exit 1' 1 2 13 15
29058 # Create a (secure) tmp directory for tmp files.
29061 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29062 test -n "$tmp" && test -d "$tmp"
29063 } ||
29065 tmp=./conf$$-$RANDOM
29066 (umask 077 && mkdir "$tmp")
29067 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29069 # Set up the scripts for CONFIG_FILES section.
29070 # No need to generate them if there are no CONFIG_FILES.
29071 # This happens for instance with `./config.status config.h'.
29072 if test -n "$CONFIG_FILES"; then
29074 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29075 ac_cs_awk_getline=:
29076 ac_cs_awk_pipe_init=
29077 ac_cs_awk_read_file='
29078 while ((getline aline < (F[key])) > 0)
29079 print(aline)
29080 close(F[key])'
29081 ac_cs_awk_pipe_fini=
29082 else
29083 ac_cs_awk_getline=false
29084 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29085 ac_cs_awk_read_file='
29086 print "|#_!!_#|"
29087 print "cat " F[key] " &&"
29088 '$ac_cs_awk_pipe_init
29089 # The final `:' finishes the AND list.
29090 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29092 ac_cr=`echo X | tr X '\015'`
29093 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29094 # But we know of no other shell where ac_cr would be empty at this
29095 # point, so we can use a bashism as a fallback.
29096 if test "x$ac_cr" = x; then
29097 eval ac_cr=\$\'\\r\'
29099 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29100 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29101 ac_cs_awk_cr='\r'
29102 else
29103 ac_cs_awk_cr=$ac_cr
29106 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29107 _ACEOF
29109 # Create commands to substitute file output variables.
29111 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29112 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29113 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29114 echo "_ACAWK" &&
29115 echo "_ACEOF"
29116 } >conf$$files.sh &&
29117 . ./conf$$files.sh ||
29118 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29119 rm -f conf$$files.sh
29122 echo "cat >conf$$subs.awk <<_ACEOF" &&
29123 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29124 echo "_ACEOF"
29125 } >conf$$subs.sh ||
29126 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29127 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29128 ac_delim='%!_!# '
29129 for ac_last_try in false false false false false :; do
29130 . ./conf$$subs.sh ||
29131 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29133 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29134 if test $ac_delim_n = $ac_delim_num; then
29135 break
29136 elif $ac_last_try; then
29137 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29138 else
29139 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29141 done
29142 rm -f conf$$subs.sh
29144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29145 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29146 _ACEOF
29147 sed -n '
29149 s/^/S["/; s/!.*/"]=/
29152 s/^[^!]*!//
29153 :repl
29154 t repl
29155 s/'"$ac_delim"'$//
29156 t delim
29159 s/\(.\{148\}\).*/\1/
29160 t more1
29161 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29164 b repl
29165 :more1
29166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29169 s/.\{148\}//
29170 t nl
29171 :delim
29173 s/\(.\{148\}\).*/\1/
29174 t more2
29175 s/["\\]/\\&/g; s/^/"/; s/$/"/
29178 :more2
29179 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29182 s/.\{148\}//
29183 t delim
29184 ' <conf$$subs.awk | sed '
29185 /^[^""]/{
29187 s/\n//
29189 ' >>$CONFIG_STATUS || ac_write_fail=1
29190 rm -f conf$$subs.awk
29191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29192 _ACAWK
29193 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29194 for (key in S) S_is_set[key] = 1
29195 FS = "\a"
29196 \$ac_cs_awk_pipe_init
29199 line = $ 0
29200 nfields = split(line, field, "@")
29201 substed = 0
29202 len = length(field[1])
29203 for (i = 2; i < nfields; i++) {
29204 key = field[i]
29205 keylen = length(key)
29206 if (S_is_set[key]) {
29207 value = S[key]
29208 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29209 len += length(value) + length(field[++i])
29210 substed = 1
29211 } else
29212 len += 1 + keylen
29214 if (nfields == 3 && !substed) {
29215 key = field[2]
29216 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29217 \$ac_cs_awk_read_file
29218 next
29221 print line
29223 \$ac_cs_awk_pipe_fini
29224 _ACAWK
29225 _ACEOF
29226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29227 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29228 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29229 else
29231 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29232 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29233 _ACEOF
29235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29237 # trailing colons and then remove the whole line if VPATH becomes empty
29238 # (actually we leave an empty line to preserve line numbers).
29239 if test "x$srcdir" = x.; then
29240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29241 s/:*\$(srcdir):*/:/
29242 s/:*\${srcdir}:*/:/
29243 s/:*@srcdir@:*/:/
29244 s/^\([^=]*=[ ]*\):*/\1/
29245 s/:*$//
29246 s/^[^=]*=[ ]*$//
29250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29251 fi # test -n "$CONFIG_FILES"
29253 # Set up the scripts for CONFIG_HEADERS section.
29254 # No need to generate them if there are no CONFIG_HEADERS.
29255 # This happens for instance with `./config.status Makefile'.
29256 if test -n "$CONFIG_HEADERS"; then
29257 cat >"$tmp/defines.awk" <<\_ACAWK ||
29258 BEGIN {
29259 _ACEOF
29261 # Transform confdefs.h into an awk script `defines.awk', embedded as
29262 # here-document in config.status, that substitutes the proper values into
29263 # config.h.in to produce config.h.
29265 # Create a delimiter string that does not exist in confdefs.h, to ease
29266 # handling of long lines.
29267 ac_delim='%!_!# '
29268 for ac_last_try in false false :; do
29269 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29270 if test -z "$ac_t"; then
29271 break
29272 elif $ac_last_try; then
29273 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29274 else
29275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29277 done
29279 # For the awk script, D is an array of macro values keyed by name,
29280 # likewise P contains macro parameters if any. Preserve backslash
29281 # newline sequences.
29283 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29284 sed -n '
29285 s/.\{148\}/&'"$ac_delim"'/g
29286 t rset
29287 :rset
29288 s/^[ ]*#[ ]*define[ ][ ]*/ /
29289 t def
29291 :def
29292 s/\\$//
29293 t bsnl
29294 s/["\\]/\\&/g
29295 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29296 D["\1"]=" \3"/p
29297 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29299 :bsnl
29300 s/["\\]/\\&/g
29301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29302 D["\1"]=" \3\\\\\\n"\\/p
29303 t cont
29304 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29305 t cont
29307 :cont
29309 s/.\{148\}/&'"$ac_delim"'/g
29310 t clear
29311 :clear
29312 s/\\$//
29313 t bsnlc
29314 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29316 :bsnlc
29317 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29318 b cont
29319 ' <confdefs.h | sed '
29320 s/'"$ac_delim"'/"\\\
29321 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29324 for (key in D) D_is_set[key] = 1
29325 FS = "\a"
29327 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29328 line = \$ 0
29329 split(line, arg, " ")
29330 if (arg[1] == "#") {
29331 defundef = arg[2]
29332 mac1 = arg[3]
29333 } else {
29334 defundef = substr(arg[1], 2)
29335 mac1 = arg[2]
29337 split(mac1, mac2, "(") #)
29338 macro = mac2[1]
29339 prefix = substr(line, 1, index(line, defundef) - 1)
29340 if (D_is_set[macro]) {
29341 # Preserve the white space surrounding the "#".
29342 print prefix "define", macro P[macro] D[macro]
29343 next
29344 } else {
29345 # Replace #undef with comments. This is necessary, for example,
29346 # in the case of _POSIX_SOURCE, which is predefined and required
29347 # on some systems where configure will not decide to define it.
29348 if (defundef == "undef") {
29349 print "/*", prefix defundef, macro, "*/"
29350 next
29354 { print }
29355 _ACAWK
29356 _ACEOF
29357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29358 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29359 fi # test -n "$CONFIG_HEADERS"
29362 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29363 shift
29364 for ac_tag
29366 case $ac_tag in
29367 :[FHLC]) ac_mode=$ac_tag; continue;;
29368 esac
29369 case $ac_mode$ac_tag in
29370 :[FHL]*:*);;
29371 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29372 :[FH]-) ac_tag=-:-;;
29373 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29374 esac
29375 ac_save_IFS=$IFS
29376 IFS=:
29377 set x $ac_tag
29378 IFS=$ac_save_IFS
29379 shift
29380 ac_file=$1
29381 shift
29383 case $ac_mode in
29384 :L) ac_source=$1;;
29385 :[FH])
29386 ac_file_inputs=
29387 for ac_f
29389 case $ac_f in
29390 -) ac_f="$tmp/stdin";;
29391 *) # Look for the file first in the build tree, then in the source tree
29392 # (if the path is not absolute). The absolute path cannot be DOS-style,
29393 # because $ac_f cannot contain `:'.
29394 test -f "$ac_f" ||
29395 case $ac_f in
29396 [\\/$]*) false;;
29397 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29398 esac ||
29399 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29400 esac
29401 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29402 as_fn_append ac_file_inputs " '$ac_f'"
29403 done
29405 # Let's still pretend it is `configure' which instantiates (i.e., don't
29406 # use $as_me), people would be surprised to read:
29407 # /* config.h. Generated by config.status. */
29408 configure_input='Generated from '`
29409 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29410 `' by configure.'
29411 if test x"$ac_file" != x-; then
29412 configure_input="$ac_file. $configure_input"
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29414 $as_echo "$as_me: creating $ac_file" >&6;}
29416 # Neutralize special characters interpreted by sed in replacement strings.
29417 case $configure_input in #(
29418 *\&* | *\|* | *\\* )
29419 ac_sed_conf_input=`$as_echo "$configure_input" |
29420 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29421 *) ac_sed_conf_input=$configure_input;;
29422 esac
29424 case $ac_tag in
29425 *:-:* | *:-) cat >"$tmp/stdin" \
29426 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29427 esac
29429 esac
29431 ac_dir=`$as_dirname -- "$ac_file" ||
29432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29433 X"$ac_file" : 'X\(//\)[^/]' \| \
29434 X"$ac_file" : 'X\(//\)$' \| \
29435 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29436 $as_echo X"$ac_file" |
29437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29438 s//\1/
29441 /^X\(\/\/\)[^/].*/{
29442 s//\1/
29445 /^X\(\/\/\)$/{
29446 s//\1/
29449 /^X\(\/\).*/{
29450 s//\1/
29453 s/.*/./; q'`
29454 as_dir="$ac_dir"; as_fn_mkdir_p
29455 ac_builddir=.
29457 case "$ac_dir" in
29458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29461 # A ".." for each directory in $ac_dir_suffix.
29462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29463 case $ac_top_builddir_sub in
29464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29466 esac ;;
29467 esac
29468 ac_abs_top_builddir=$ac_pwd
29469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29470 # for backward compatibility:
29471 ac_top_builddir=$ac_top_build_prefix
29473 case $srcdir in
29474 .) # We are building in place.
29475 ac_srcdir=.
29476 ac_top_srcdir=$ac_top_builddir_sub
29477 ac_abs_top_srcdir=$ac_pwd ;;
29478 [\\/]* | ?:[\\/]* ) # Absolute name.
29479 ac_srcdir=$srcdir$ac_dir_suffix;
29480 ac_top_srcdir=$srcdir
29481 ac_abs_top_srcdir=$srcdir ;;
29482 *) # Relative name.
29483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29484 ac_top_srcdir=$ac_top_build_prefix$srcdir
29485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29486 esac
29487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29490 case $ac_mode in
29493 # CONFIG_FILE
29496 _ACEOF
29498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29499 # If the template does not know about datarootdir, expand it.
29500 # FIXME: This hack should be removed a few years after 2.60.
29501 ac_datarootdir_hack=; ac_datarootdir_seen=
29502 ac_sed_dataroot='
29503 /datarootdir/ {
29507 /@datadir@/p
29508 /@docdir@/p
29509 /@infodir@/p
29510 /@localedir@/p
29511 /@mandir@/p'
29512 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29513 *datarootdir*) ac_datarootdir_seen=yes;;
29514 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29516 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29517 _ACEOF
29518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29519 ac_datarootdir_hack='
29520 s&@datadir@&$datadir&g
29521 s&@docdir@&$docdir&g
29522 s&@infodir@&$infodir&g
29523 s&@localedir@&$localedir&g
29524 s&@mandir@&$mandir&g
29525 s&\\\${datarootdir}&$datarootdir&g' ;;
29526 esac
29527 _ACEOF
29529 # Neutralize VPATH when `$srcdir' = `.'.
29530 # Shell code in configure.ac might set extrasub.
29531 # FIXME: do we really want to maintain this feature?
29532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29533 ac_sed_extra="$ac_vpsub
29534 $extrasub
29535 _ACEOF
29536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29539 s|@configure_input@|$ac_sed_conf_input|;t t
29540 s&@top_builddir@&$ac_top_builddir_sub&;t t
29541 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29542 s&@srcdir@&$ac_srcdir&;t t
29543 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29544 s&@top_srcdir@&$ac_top_srcdir&;t t
29545 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29546 s&@builddir@&$ac_builddir&;t t
29547 s&@abs_builddir@&$ac_abs_builddir&;t t
29548 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29549 $ac_datarootdir_hack
29551 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29552 if $ac_cs_awk_getline; then
29553 $AWK -f "$tmp/subs.awk"
29554 else
29555 $AWK -f "$tmp/subs.awk" | $SHELL
29556 fi >$tmp/out \
29557 || as_fn_error "could not create $ac_file" "$LINENO" 5
29559 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29560 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29561 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29563 which seems to be undefined. Please make sure it is defined." >&5
29564 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29565 which seems to be undefined. Please make sure it is defined." >&2;}
29567 rm -f "$tmp/stdin"
29568 case $ac_file in
29569 -) cat "$tmp/out" && rm -f "$tmp/out";;
29570 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29571 esac \
29572 || as_fn_error "could not create $ac_file" "$LINENO" 5
29576 # CONFIG_HEADER
29578 if test x"$ac_file" != x-; then
29580 $as_echo "/* $configure_input */" \
29581 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29582 } >"$tmp/config.h" \
29583 || as_fn_error "could not create $ac_file" "$LINENO" 5
29584 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29586 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29587 else
29588 rm -f "$ac_file"
29589 mv "$tmp/config.h" "$ac_file" \
29590 || as_fn_error "could not create $ac_file" "$LINENO" 5
29592 else
29593 $as_echo "/* $configure_input */" \
29594 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29595 || as_fn_error "could not create -" "$LINENO" 5
29600 # CONFIG_LINK
29603 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29605 else
29606 # Prefer the file from the source tree if names are identical.
29607 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29608 ac_source=$srcdir/$ac_source
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29612 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29614 if test ! -r "$ac_source"; then
29615 as_fn_error "$ac_source: file not found" "$LINENO" 5
29617 rm -f "$ac_file"
29619 # Try a relative symlink, then a hard link, then a copy.
29620 case $srcdir in
29621 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29622 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29623 esac
29624 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29625 ln "$ac_source" "$ac_file" 2>/dev/null ||
29626 cp -p "$ac_source" "$ac_file" ||
29627 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29630 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29631 $as_echo "$as_me: executing $ac_file commands" >&6;}
29633 esac
29636 case $ac_file$ac_mode in
29637 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29638 "gccdepdir":C)
29639 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29640 for lang in $subdirs c-family common
29642 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29643 done ;;
29644 "as":F) chmod +x as ;;
29645 "collect-ld":F) chmod +x collect-ld ;;
29646 "nm":F) chmod +x nm ;;
29647 "default":C)
29648 case ${CONFIG_HEADERS} in
29649 *auto-host.h:config.in*)
29650 echo > cstamp-h ;;
29651 esac
29652 # Make sure all the subdirs exist.
29653 for d in $subdirs doc build common c-family
29655 test -d $d || mkdir $d
29656 done
29659 esac
29660 done # for ac_tag
29663 as_fn_exit 0
29664 _ACEOF
29665 ac_clean_files=$ac_clean_files_save
29667 test $ac_write_fail = 0 ||
29668 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29671 # configure is writing to config.log, and then calls config.status.
29672 # config.status does its own redirection, appending to config.log.
29673 # Unfortunately, on DOS this fails, as config.log is still kept open
29674 # by configure, so config.status won't be able to write to it; its
29675 # output is simply discarded. So we exec the FD to /dev/null,
29676 # effectively closing config.log, so it can be properly (re)opened and
29677 # appended to by config.status. When coming back to configure, we
29678 # need to make the FD available again.
29679 if test "$no_create" != yes; then
29680 ac_cs_success=:
29681 ac_config_status_args=
29682 test "$silent" = yes &&
29683 ac_config_status_args="$ac_config_status_args --quiet"
29684 exec 5>/dev/null
29685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29686 exec 5>>config.log
29687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29688 # would make configure fail if this is the last instruction.
29689 $ac_cs_success || as_fn_exit $?
29691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}