svn merge -r215707:216846 svn+ssh://gcc.gnu.org/svn/gcc/trunk
[official-gcc.git] / gcc / configure
blob0452ddd662451141f1e12734d746667d99718f62
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 accel_dir_suffix
614 real_target_noncanonical
615 target_cpu_default
616 fortran_target_objs
617 cxx_target_objs
618 c_target_objs
619 use_gcc_stdint
620 xm_defines
621 xm_include_list
622 xm_file_list
623 tm_p_include_list
624 tm_p_file_list
625 tm_defines
626 tm_include_list
627 tm_file_list
628 common_out_object_file
629 common_out_file
630 out_object_file
631 out_file
632 objc_boehm_gc
633 md_file
634 local_prefix
635 lang_tree_files
636 lang_specs_files
637 lang_opt_files
638 install
639 out_host_hook_obj
640 host_xm_defines
641 host_xm_include_list
642 host_xm_file_list
643 host_exeext
644 gcc_gxx_include_dir_add_sysroot
645 gcc_gxx_include_dir
646 gcc_config_arguments
647 float_h_file
648 extra_programs
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 dollar
675 gcc_tooldir
676 enable_lto
677 DO_LINK_MUTEX
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 libgcc_visibility
683 gcc_cv_readelf
684 gcc_cv_objdump
685 ORIGINAL_NM_FOR_TARGET
686 gcc_cv_nm
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 gcc_cv_ld
692 ORIGINAL_AS_FOR_TARGET
693 gcc_cv_as
694 enable_fast_install
695 objdir
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CXXFLAGS
713 BUILD_CFLAGS
714 CXX_FOR_BUILD
715 CC_FOR_BUILD
716 inhibit_libc
717 SYSTEM_HEADER_DIR
719 CROSS
720 CATOBJEXT
721 GENCAT
722 INSTOBJEXT
723 DATADIRNAME
724 CATALOGS
725 POSUB
726 GMSGFMT
727 XGETTEXT
728 INCINTL
729 LIBINTL_DEP
730 LIBINTL
731 USE_NLS
732 extra_opt_files
733 extra_modes_file
734 NATIVE_SYSTEM_HEADER_DIR
735 objext
736 manext
737 LIBICONV_DEP
738 LTLIBICONV
739 LIBICONV
740 LDEXP_LIB
741 EXTRA_GCC_LIBS
742 GNAT_LIBEXC
743 COLLECT2_LIBS
744 CXXDEPMODE
745 DEPDIR
746 am__leading_dot
747 CXXCPP
750 BISON
751 FLEX
752 GENERATED_MANPAGES
753 BUILD_INFO
754 MAKEINFO
755 have_mktemp_command
756 make_compare_target
757 INSTALL_DATA
758 INSTALL_PROGRAM
759 INSTALL
760 ranlib_flags
761 RANLIB
763 LN_S
765 SET_MAKE
766 enable_as_accelerator
767 REPORT_BUGS_TEXI
768 REPORT_BUGS_TO
769 PKGVERSION
770 CONFIGURE_SPECS
771 CROSS_SYSTEM_HEADER_DIR
772 TARGET_SYSTEM_ROOT_DEFINE
773 TARGET_SYSTEM_ROOT
774 SYSROOT_CFLAGS_FOR_TARGET
775 enable_shared
776 enable_fixed_point
777 enable_decimal_float
778 with_float
779 with_cpu
780 enable_multiarch
781 enable_multilib
782 coverage_flags
783 valgrind_command
784 valgrind_path_defines
785 valgrind_path
786 TREECHECKING
787 TREEBROWSER
788 nocommon_flag
789 noexception_flags
790 warn_cxxflags
791 warn_cflags
792 c_strict_warn
793 strict_warn
794 c_loose_warn
795 loose_warn
796 EGREP
797 GREP
799 PICFLAG_FOR_TARGET
800 GNATMAKE
801 GNATBIND
802 ac_ct_CXX
803 CXXFLAGS
805 OBJEXT
806 EXEEXT
807 ac_ct_CC
808 CPPFLAGS
809 LDFLAGS
810 CFLAGS
812 GENINSRC
813 target_subdir
814 host_subdir
815 build_subdir
816 build_libsubdir
817 target_noncanonical
818 target_os
819 target_vendor
820 target_cpu
821 target
822 host_os
823 host_vendor
824 host_cpu
825 host
826 build_os
827 build_vendor
828 build_cpu
829 build
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files='option_includes
869 language_hooks'
870 ac_user_opts='
871 enable_option_checking
872 with_build_libsubdir
873 with_local_prefix
874 with_gxx_include_dir
875 with_cpp_install_dir
876 enable_generated_files_in_srcdir
877 with_gnu_ld
878 with_ld
879 with_demangler_in_ld
880 with_gnu_as
881 with_as
882 enable_largefile
883 enable_build_format_warnings
884 enable_werror_always
885 enable_checking
886 enable_coverage
887 enable_gather_detailed_mem_stats
888 enable_valgrind_annotations
889 with_stabs
890 enable_multilib
891 enable_multiarch
892 enable___cxa_atexit
893 enable_decimal_float
894 enable_fixed_point
895 enable_threads
896 enable_tls
897 enable_objc_gc
898 with_dwarf2
899 enable_shared
900 with_native_system_header_dir
901 with_build_sysroot
902 with_sysroot
903 with_specs
904 with_pkgversion
905 with_bugurl
906 enable_languages
907 enable_as_accelerator_for
908 enable_offload_targets
909 with_multilib_list
910 enable_rpath
911 with_libiconv_prefix
912 enable_sjlj_exceptions
913 enable_secureplt
914 enable_leading_mingw64_underscores
915 enable_cld
916 enable_frame_pointer
917 enable_win32_registry
918 enable_static
919 with_pic
920 enable_fast_install
921 enable_libtool_lock
922 enable_ld
923 enable_gold
924 with_plugin_ld
925 enable_gnu_indirect_function
926 enable_initfini_array
927 enable_comdat
928 enable_fix_cortex_a53_835769
929 with_glibc_version
930 enable_gnu_unique_object
931 enable_linker_build_id
932 with_long_double_128
933 with_gc
934 with_system_zlib
935 enable_maintainer_mode
936 enable_link_mutex
937 enable_version_specific_runtime_libs
938 enable_plugin
939 enable_host_shared
940 enable_libquadmath_support
941 with_linker_hash_style
943 ac_precious_vars='build_alias
944 host_alias
945 target_alias
947 CFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
952 CXXFLAGS
955 CXXCPP
956 GMPLIBS
957 GMPINC
958 ISLLIBS
959 ISLINC
960 CLOOGLIBS
961 CLOOGINC'
964 # Initialize some variables set by options.
965 ac_init_help=
966 ac_init_version=false
967 ac_unrecognized_opts=
968 ac_unrecognized_sep=
969 # The variables have the same names as the options, with
970 # dashes changed to underlines.
971 cache_file=/dev/null
972 exec_prefix=NONE
973 no_create=
974 no_recursion=
975 prefix=NONE
976 program_prefix=NONE
977 program_suffix=NONE
978 program_transform_name=s,x,x,
979 silent=
980 site=
981 srcdir=
982 verbose=
983 x_includes=NONE
984 x_libraries=NONE
986 # Installation directory options.
987 # These are left unexpanded so users can "make install exec_prefix=/foo"
988 # and all the variables that are supposed to be based on exec_prefix
989 # by default will actually change.
990 # Use braces instead of parens because sh, perl, etc. also accept them.
991 # (The list follows the same order as the GNU Coding Standards.)
992 bindir='${exec_prefix}/bin'
993 sbindir='${exec_prefix}/sbin'
994 libexecdir='${exec_prefix}/libexec'
995 datarootdir='${prefix}/share'
996 datadir='${datarootdir}'
997 sysconfdir='${prefix}/etc'
998 sharedstatedir='${prefix}/com'
999 localstatedir='${prefix}/var'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE}'
1003 infodir='${datarootdir}/info'
1004 htmldir='${docdir}'
1005 dvidir='${docdir}'
1006 pdfdir='${docdir}'
1007 psdir='${docdir}'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1012 ac_prev=
1013 ac_dashdash=
1014 for ac_option
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1019 ac_prev=
1020 continue
1023 case $ac_option in
1024 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 *) ac_optarg=yes ;;
1026 esac
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1030 case $ac_dashdash$ac_option in
1032 ac_dashdash=yes ;;
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 ac_prev=bindir ;;
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1054 -datadir | --datadir | --datadi | --datad)
1055 ac_prev=datadir ;;
1056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057 datadir=$ac_optarg ;;
1059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1066 -disable-* | --disable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error "invalid feature name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=no ;;
1082 -docdir | --docdir | --docdi | --doc | --do)
1083 ac_prev=docdir ;;
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 ac_prev=dvidir ;;
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1092 -enable-* | --enable-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid feature name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=\$ac_optarg ;;
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1119 with_gas=yes ;;
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 ac_prev=htmldir ;;
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 | --ht=*)
1137 htmldir=$ac_optarg ;;
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 ac_prev=infodir ;;
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1151 -libdir | --libdir | --libdi | --libd)
1152 ac_prev=libdir ;;
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 ac_prev=mandir ;;
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1182 with_fp=no ;;
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1186 no_create=yes ;;
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 no_recursion=yes ;;
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 ac_prev=prefix ;;
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 ac_prev=pdfdir ;;
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1242 -psdir | --psdir | --psdi | --psd | --ps)
1243 ac_prev=psdir ;;
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 psdir=$ac_optarg ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 silent=yes ;;
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 ac_prev=sbindir ;;
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 | --sbi=* | --sb=*)
1255 sbindir=$ac_optarg ;;
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1260 | --sha | --sh)
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 | --sha=* | --sh=*)
1266 sharedstatedir=$ac_optarg ;;
1268 -site | --site | --sit)
1269 ac_prev=site ;;
1270 -site=* | --site=* | --sit=*)
1271 site=$ac_optarg ;;
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 ac_prev=srcdir ;;
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 verbose=yes ;;
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1296 -with-* | --with-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=\$ac_optarg ;;
1312 -without-* | --without-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 as_fn_error "invalid package name: $ac_useropt"
1317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1321 "with_$ac_useropt"
1322 "*) ;;
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1325 esac
1326 eval with_$ac_useropt=no ;;
1328 --x)
1329 # Obsolete; use --with-x.
1330 with_x=yes ;;
1332 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1333 | --x-incl | --x-inc | --x-in | --x-i)
1334 ac_prev=x_includes ;;
1335 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1336 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1337 x_includes=$ac_optarg ;;
1339 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1340 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1341 ac_prev=x_libraries ;;
1342 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1343 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1344 x_libraries=$ac_optarg ;;
1346 -*) as_fn_error "unrecognized option: \`$ac_option'
1347 Try \`$0 --help' for more information."
1350 *=*)
1351 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1352 # Reject names that are not valid shell variable names.
1353 case $ac_envvar in #(
1354 '' | [0-9]* | *[!_$as_cr_alnum]* )
1355 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1356 esac
1357 eval $ac_envvar=\$ac_optarg
1358 export $ac_envvar ;;
1361 # FIXME: should be removed in autoconf 3.0.
1362 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1363 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1364 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1365 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368 esac
1369 done
1371 if test -n "$ac_prev"; then
1372 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1373 as_fn_error "missing argument to $ac_option"
1376 if test -n "$ac_unrecognized_opts"; then
1377 case $enable_option_checking in
1378 no) ;;
1379 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1380 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381 esac
1384 # Check all directory arguments for consistency.
1385 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386 datadir sysconfdir sharedstatedir localstatedir includedir \
1387 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388 libdir localedir mandir
1390 eval ac_val=\$$ac_var
1391 # Remove trailing slashes.
1392 case $ac_val in
1393 */ )
1394 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395 eval $ac_var=\$ac_val;;
1396 esac
1397 # Be sure to have absolute directory names.
1398 case $ac_val in
1399 [\\/$]* | ?:[\\/]* ) continue;;
1400 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1401 esac
1402 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1403 done
1405 # There might be people who depend on the old broken behavior: `$host'
1406 # used to hold the argument of --host etc.
1407 # FIXME: To remove some day.
1408 build=$build_alias
1409 host=$host_alias
1410 target=$target_alias
1412 # FIXME: To remove some day.
1413 if test "x$host_alias" != x; then
1414 if test "x$build_alias" = x; then
1415 cross_compiling=maybe
1416 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1417 If a cross compiler is detected then cross compile mode will be used." >&2
1418 elif test "x$build_alias" != "x$host_alias"; then
1419 cross_compiling=yes
1423 ac_tool_prefix=
1424 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1426 test "$silent" = yes && exec 6>/dev/null
1429 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1430 ac_ls_di=`ls -di .` &&
1431 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1432 as_fn_error "working directory cannot be determined"
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 as_fn_error "pwd does not report name of working directory"
1437 # Find the source files, if location was not specified.
1438 if test -z "$srcdir"; then
1439 ac_srcdir_defaulted=yes
1440 # Try the directory containing this script, then the parent directory.
1441 ac_confdir=`$as_dirname -- "$as_myself" ||
1442 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1443 X"$as_myself" : 'X\(//\)[^/]' \| \
1444 X"$as_myself" : 'X\(//\)$' \| \
1445 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1446 $as_echo X"$as_myself" |
1447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1448 s//\1/
1451 /^X\(\/\/\)[^/].*/{
1452 s//\1/
1455 /^X\(\/\/\)$/{
1456 s//\1/
1459 /^X\(\/\).*/{
1460 s//\1/
1463 s/.*/./; q'`
1464 srcdir=$ac_confdir
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 srcdir=..
1468 else
1469 ac_srcdir_defaulted=no
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1472 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1473 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1475 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1476 ac_abs_confdir=`(
1477 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1478 pwd)`
1479 # When building in place, set srcdir=.
1480 if test "$ac_abs_confdir" = "$ac_pwd"; then
1481 srcdir=.
1483 # Remove unnecessary trailing slashes from srcdir.
1484 # Double slashes in file names in object file debugging info
1485 # mess up M-x gdb in Emacs.
1486 case $srcdir in
1487 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1488 esac
1489 for ac_var in $ac_precious_vars; do
1490 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1491 eval ac_env_${ac_var}_value=\$${ac_var}
1492 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1493 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1494 done
1497 # Report the --help message.
1499 if test "$ac_init_help" = "long"; then
1500 # Omit some internal or obsolete options to make the list less imposing.
1501 # This message is too long to be a string in the A/UX 3.1 sh.
1502 cat <<_ACEOF
1503 \`configure' configures this package to adapt to many kinds of systems.
1505 Usage: $0 [OPTION]... [VAR=VALUE]...
1507 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1508 VAR=VALUE. See below for descriptions of some of the useful variables.
1510 Defaults for the options are specified in brackets.
1512 Configuration:
1513 -h, --help display this help and exit
1514 --help=short display options specific to this package
1515 --help=recursive display the short help of all the included packages
1516 -V, --version display version information and exit
1517 -q, --quiet, --silent do not print \`checking...' messages
1518 --cache-file=FILE cache test results in FILE [disabled]
1519 -C, --config-cache alias for \`--cache-file=config.cache'
1520 -n, --no-create do not create output files
1521 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1523 Installation directories:
1524 --prefix=PREFIX install architecture-independent files in PREFIX
1525 [$ac_default_prefix]
1526 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1527 [PREFIX]
1529 By default, \`make install' will install all the files in
1530 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1531 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1532 for instance \`--prefix=\$HOME'.
1534 For better control, use the options below.
1536 Fine tuning of the installation directories:
1537 --bindir=DIR user executables [EPREFIX/bin]
1538 --sbindir=DIR system admin executables [EPREFIX/sbin]
1539 --libexecdir=DIR program executables [EPREFIX/libexec]
1540 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1541 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1542 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1543 --libdir=DIR object code libraries [EPREFIX/lib]
1544 --includedir=DIR C header files [PREFIX/include]
1545 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1546 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1547 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1548 --infodir=DIR info documentation [DATAROOTDIR/info]
1549 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1550 --mandir=DIR man documentation [DATAROOTDIR/man]
1551 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1552 --htmldir=DIR html documentation [DOCDIR]
1553 --dvidir=DIR dvi documentation [DOCDIR]
1554 --pdfdir=DIR pdf documentation [DOCDIR]
1555 --psdir=DIR ps documentation [DOCDIR]
1556 _ACEOF
1558 cat <<\_ACEOF
1560 Program names:
1561 --program-prefix=PREFIX prepend PREFIX to installed program names
1562 --program-suffix=SUFFIX append SUFFIX to installed program names
1563 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1565 System types:
1566 --build=BUILD configure for building on BUILD [guessed]
1567 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1568 --target=TARGET configure for building compilers for TARGET [HOST]
1569 _ACEOF
1572 if test -n "$ac_init_help"; then
1574 cat <<\_ACEOF
1576 Optional Features:
1577 --disable-option-checking ignore unrecognized --enable/--with options
1578 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1579 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1580 --enable-generated-files-in-srcdir
1581 put copies of generated files in source dir intended
1582 for creating source tarballs for users without
1583 texinfo bison or flex
1584 --disable-largefile omit support for large files
1585 --disable-build-format-warnings
1586 don't use -Wformat while building GCC
1587 --enable-werror-always enable -Werror despite compiler version
1588 --enable-checking[=LIST]
1589 enable expensive run-time checks. With LIST, enable
1590 only specific categories of checks. Categories are:
1591 yes,no,all,none,release. Flags are:
1592 assert,df,fold,gc,gcac,gimple,misc,
1593 rtlflag,rtl,runtime,tree,valgrind,types
1594 --enable-coverage[=LEVEL]
1595 enable compiler's code coverage collection. Use to
1596 measure compiler performance and locate unused parts
1597 of the compiler. With LEVEL, specify optimization.
1598 Values are opt, noopt, default is noopt
1599 --enable-gather-detailed-mem-stats
1600 enable detailed memory allocation stats gathering
1601 --enable-valgrind-annotations
1602 enable valgrind runtime interaction
1603 --enable-multilib enable library support for multiple ABIs
1604 --enable-multiarch enable support for multiarch paths
1605 --enable-__cxa_atexit enable __cxa_atexit for C++
1606 --enable-decimal-float={no,yes,bid,dpd}
1607 enable decimal float extension to C. Selecting 'bid'
1608 or 'dpd' choses which decimal floating point format
1609 to use
1610 --enable-fixed-point enable fixed-point arithmetic extension to C
1611 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1612 package
1613 --enable-tls enable or disable generation of tls code overriding
1614 the assembler check for tls support
1615 --enable-objc-gc enable the use of Boehm's garbage collector with the
1616 GNU Objective-C runtime
1617 --disable-shared don't provide a shared libgcc
1618 --enable-languages=LIST specify which front-ends to build
1619 --enable-as-accelerator-for
1620 build compiler as accelerator target for given host
1621 --enable-offload-targets=LIST
1622 enable offloading to devices from LIST
1623 --disable-rpath do not hardcode runtime library paths
1624 --enable-sjlj-exceptions
1625 arrange to use setjmp/longjmp exception handling
1626 --enable-secureplt enable -msecure-plt by default for PowerPC
1627 --enable-leading-mingw64-underscores
1628 enable leading underscores on 64 bit mingw targets
1629 --enable-cld enable -mcld by default for 32bit x86
1630 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1632 --disable-win32-registry
1633 disable lookup of installation paths in the Registry
1634 on Windows hosts
1635 --enable-win32-registry enable registry lookup (default)
1636 --enable-win32-registry=KEY
1637 use KEY instead of GCC version as the last portion
1638 of the registry key
1639 --enable-shared[=PKGS] build shared libraries [default=yes]
1640 --enable-static[=PKGS] build static libraries [default=yes]
1641 --enable-fast-install[=PKGS]
1642 optimize for fast installation [default=yes]
1643 --disable-libtool-lock avoid locking (might break parallel builds)
1644 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1645 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1646 --enable-gnu-indirect-function
1647 enable the use of the @gnu_indirect_function to
1648 glibc systems
1649 --enable-initfini-array use .init_array/.fini_array sections
1650 --enable-comdat enable COMDAT group support
1652 --enable-fix-cortex-a53-835769
1653 enable workaround for AArch64 Cortex-A53 erratum
1654 835769 by default
1655 --disable-fix-cortex-a53-835769
1656 disable workaround for AArch64 Cortex-A53 erratum
1657 835769 by default
1659 --enable-gnu-unique-object
1660 enable the use of the @gnu_unique_object ELF
1661 extension on glibc systems
1662 --enable-linker-build-id
1663 compiler will always pass --build-id to linker
1664 --enable-maintainer-mode
1665 enable make rules and dependencies not useful (and
1666 sometimes confusing) to the casual installer
1667 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1668 thrashing on the build machine
1669 --enable-version-specific-runtime-libs
1670 specify that runtime libraries should be installed
1671 in a compiler-specific directory
1672 --enable-plugin enable plugin support
1673 --enable-host-shared build host code as shared libraries
1674 --disable-libquadmath-support
1675 disable libquadmath support for Fortran
1677 Optional Packages:
1678 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1679 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1680 --with-build-libsubdir=DIR Directory where to find libraries for build system
1681 --with-local-prefix=DIR specifies directory to put local include
1682 --with-gxx-include-dir=DIR
1683 specifies directory to put g++ header files
1684 --with-cpp-install-dir=DIR
1685 install the user visible C preprocessor in DIR
1686 (relative to PREFIX) as well as PREFIX/bin
1687 --with-gnu-ld arrange to work with GNU ld
1688 --with-ld arrange to use the specified ld (full pathname)
1689 --with-demangler-in-ld try to use demangler in GNU ld
1690 --with-gnu-as arrange to work with GNU as
1691 --with-as arrange to use the specified as (full pathname)
1692 --with-stabs arrange to use stabs instead of host debug format
1693 --with-dwarf2 force the default debug format to be DWARF 2
1694 --with-native-system-header-dir=dir
1695 use dir as the directory to look for standard
1696 system header files in. Defaults to /usr/include.
1697 --with-build-sysroot=sysroot
1698 use sysroot as the system root during the build
1699 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1700 --with-specs=SPECS add SPECS to driver command-line processing
1701 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1702 --with-bugurl=URL Direct users to URL to report a bug
1703 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1704 --with-gnu-ld assume the C compiler uses GNU ld default=no
1705 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1706 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1707 --with-pic try to use only PIC/non-PIC objects [default=use
1708 both]
1709 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1710 --with-plugin-ld=[ARG] specify the plugin linker
1711 --with-glibc-version=M.N
1712 assume GCC used with glibc version M.N or later
1713 --with-long-double-128 use 128-bit long double by default
1714 --with-gc={page,zone} this option is not supported anymore. It used to
1715 choose the garbage collection mechanism to use with
1716 the compiler
1717 --with-system-zlib use installed libz
1718 --with-linker-hash-style={sysv,gnu,both}
1719 specify the linker hash style
1721 Some influential environment variables:
1722 CC C compiler command
1723 CFLAGS C compiler flags
1724 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1725 nonstandard directory <lib dir>
1726 LIBS libraries to pass to the linker, e.g. -l<library>
1727 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1728 you have headers in a nonstandard directory <include dir>
1729 CXX C++ compiler command
1730 CXXFLAGS C++ compiler flags
1731 CPP C preprocessor
1732 CXXCPP C++ preprocessor
1733 GMPLIBS How to link GMP
1734 GMPINC How to find GMP include files
1735 ISLLIBS How to link ISL
1736 ISLINC How to find ISL include files
1737 CLOOGLIBS How to link CLOOG
1738 CLOOGINC How to find CLOOG include files
1740 Use these variables to override the choices made by `configure' or to help
1741 it to find libraries and programs with nonstandard names/locations.
1743 Report bugs to the package provider.
1744 _ACEOF
1745 ac_status=$?
1748 if test "$ac_init_help" = "recursive"; then
1749 # If there are subdirs, report their specific --help.
1750 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1751 test -d "$ac_dir" ||
1752 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1753 continue
1754 ac_builddir=.
1756 case "$ac_dir" in
1757 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1760 # A ".." for each directory in $ac_dir_suffix.
1761 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1762 case $ac_top_builddir_sub in
1763 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1764 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1765 esac ;;
1766 esac
1767 ac_abs_top_builddir=$ac_pwd
1768 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1769 # for backward compatibility:
1770 ac_top_builddir=$ac_top_build_prefix
1772 case $srcdir in
1773 .) # We are building in place.
1774 ac_srcdir=.
1775 ac_top_srcdir=$ac_top_builddir_sub
1776 ac_abs_top_srcdir=$ac_pwd ;;
1777 [\\/]* | ?:[\\/]* ) # Absolute name.
1778 ac_srcdir=$srcdir$ac_dir_suffix;
1779 ac_top_srcdir=$srcdir
1780 ac_abs_top_srcdir=$srcdir ;;
1781 *) # Relative name.
1782 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1783 ac_top_srcdir=$ac_top_build_prefix$srcdir
1784 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1785 esac
1786 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1788 cd "$ac_dir" || { ac_status=$?; continue; }
1789 # Check for guested configure.
1790 if test -f "$ac_srcdir/configure.gnu"; then
1791 echo &&
1792 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1793 elif test -f "$ac_srcdir/configure"; then
1794 echo &&
1795 $SHELL "$ac_srcdir/configure" --help=recursive
1796 else
1797 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1798 fi || ac_status=$?
1799 cd "$ac_pwd" || { ac_status=$?; break; }
1800 done
1803 test -n "$ac_init_help" && exit $ac_status
1804 if $ac_init_version; then
1805 cat <<\_ACEOF
1806 configure
1807 generated by GNU Autoconf 2.64
1809 Copyright (C) 2009 Free Software Foundation, Inc.
1810 This configure script is free software; the Free Software Foundation
1811 gives unlimited permission to copy, distribute and modify it.
1812 _ACEOF
1813 exit
1816 ## ------------------------ ##
1817 ## Autoconf initialization. ##
1818 ## ------------------------ ##
1820 # ac_fn_c_try_compile LINENO
1821 # --------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1856 } # ac_fn_c_try_compile
1858 # ac_fn_cxx_try_compile LINENO
1859 # ----------------------------
1860 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_cxx_try_compile ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext
1865 if { { ac_try="$ac_compile"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_compile") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_cxx_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest.$ac_objext; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=1
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 return $ac_retval
1894 } # ac_fn_cxx_try_compile
1896 # ac_fn_c_try_cpp LINENO
1897 # ----------------------
1898 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_c_try_cpp ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { { ac_try="$ac_cpp conftest.$ac_ext"
1903 case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1910 ac_status=$?
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } >/dev/null && {
1918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1919 test ! -s conftest.err
1920 }; then :
1921 ac_retval=0
1922 else
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1926 ac_retval=1
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 return $ac_retval
1931 } # ac_fn_c_try_cpp
1933 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1934 # -------------------------------------------------------
1935 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1936 # the include files in INCLUDES and setting the cache variable VAR
1937 # accordingly.
1938 ac_fn_c_check_header_mongrel ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1945 $as_echo_n "(cached) " >&6
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 else
1951 # Is the header compilable?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1953 $as_echo_n "checking $2 usability... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1957 #include <$2>
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_header_compiler=yes
1961 else
1962 ac_header_compiler=no
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1966 $as_echo "$ac_header_compiler" >&6; }
1968 # Is the header present?
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1970 $as_echo_n "checking $2 presence... " >&6; }
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 #include <$2>
1974 _ACEOF
1975 if ac_fn_c_try_cpp "$LINENO"; then :
1976 ac_header_preproc=yes
1977 else
1978 ac_header_preproc=no
1980 rm -f conftest.err conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1982 $as_echo "$ac_header_preproc" >&6; }
1984 # So? What about this header?
1985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1986 yes:no: )
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1988 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 no:yes:* )
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1994 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1996 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1998 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2000 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 esac
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 $as_echo_n "(cached) " >&6
2009 else
2010 eval "$3=\$ac_header_compiler"
2012 eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018 } # ac_fn_c_check_header_mongrel
2020 # ac_fn_c_try_run LINENO
2021 # ----------------------
2022 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2023 # that executables *can* be run.
2024 ac_fn_c_try_run ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if { { ac_try="$ac_link"
2028 case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_link") 2>&5
2035 ac_status=$?
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2038 { { case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2041 esac
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044 (eval "$ac_try") 2>&5
2045 ac_status=$?
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; }; }; then :
2048 ac_retval=0
2049 else
2050 $as_echo "$as_me: program exited with status $ac_status" >&5
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2054 ac_retval=$ac_status
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 return $ac_retval
2060 } # ac_fn_c_try_run
2062 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2063 # -------------------------------------------------------
2064 # Tests whether HEADER exists and can be compiled using the include files in
2065 # INCLUDES, setting the cache variable VAR accordingly.
2066 ac_fn_c_check_header_compile ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2072 $as_echo_n "(cached) " >&6
2073 else
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2077 #include <$2>
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 eval "$3=yes"
2081 else
2082 eval "$3=no"
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 } # ac_fn_c_check_header_compile
2093 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2094 # --------------------------------------------
2095 # Tries to find the compile-time value of EXPR in a program that includes
2096 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2097 # computed
2098 ac_fn_c_compute_int ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if test "$cross_compiling" = yes; then
2102 # Depending upon the size, compute the lo and hi bounds.
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2107 main ()
2109 static int test_array [1 - 2 * !(($2) >= 0)];
2110 test_array [0] = 0
2113 return 0;
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=0 ac_mid=0
2118 while :; do
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 test_array [0] = 0
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_hi=$ac_mid; break
2134 else
2135 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2136 if test $ac_lo -le $ac_mid; then
2137 ac_lo= ac_hi=
2138 break
2140 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 done
2144 else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2149 main ()
2151 static int test_array [1 - 2 * !(($2) < 0)];
2152 test_array [0] = 0
2155 return 0;
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_hi=-1 ac_mid=-1
2160 while :; do
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 main ()
2167 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2168 test_array [0] = 0
2171 return 0;
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_lo=$ac_mid; break
2176 else
2177 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2178 if test $ac_mid -le $ac_hi; then
2179 ac_lo= ac_hi=
2180 break
2182 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 done
2186 else
2187 ac_lo= ac_hi=
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 # Binary search between lo and hi bounds.
2193 while test "x$ac_lo" != "x$ac_hi"; do
2194 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2199 main ()
2201 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2202 test_array [0] = 0
2205 return 0;
2207 _ACEOF
2208 if ac_fn_c_try_compile "$LINENO"; then :
2209 ac_hi=$ac_mid
2210 else
2211 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
2215 case $ac_lo in #((
2216 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2217 '') ac_retval=1 ;;
2218 esac
2219 else
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2223 static long int longval () { return $2; }
2224 static unsigned long int ulongval () { return $2; }
2225 #include <stdio.h>
2226 #include <stdlib.h>
2228 main ()
2231 FILE *f = fopen ("conftest.val", "w");
2232 if (! f)
2233 return 1;
2234 if (($2) < 0)
2236 long int i = longval ();
2237 if (i != ($2))
2238 return 1;
2239 fprintf (f, "%ld", i);
2241 else
2243 unsigned long int i = ulongval ();
2244 if (i != ($2))
2245 return 1;
2246 fprintf (f, "%lu", i);
2248 /* Do not output a trailing newline, as this causes \r\n confusion
2249 on some platforms. */
2250 return ferror (f) || fclose (f) != 0;
2253 return 0;
2255 _ACEOF
2256 if ac_fn_c_try_run "$LINENO"; then :
2257 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2258 else
2259 ac_retval=1
2261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2262 conftest.$ac_objext conftest.beam conftest.$ac_ext
2263 rm -f conftest.val
2266 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2267 return $ac_retval
2269 } # ac_fn_c_compute_int
2271 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2272 # -------------------------------------------
2273 # Tests whether TYPE exists after having included INCLUDES, setting cache
2274 # variable VAR accordingly.
2275 ac_fn_c_check_type ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 eval "$3=no"
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2288 main ()
2290 if (sizeof ($2))
2291 return 0;
2293 return 0;
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2301 main ()
2303 if (sizeof (($2)))
2304 return 0;
2306 return 0;
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2311 else
2312 eval "$3=yes"
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323 } # ac_fn_c_check_type
2325 # ac_fn_c_find_intX_t LINENO BITS VAR
2326 # -----------------------------------
2327 # Finds a signed integer type with width BITS, setting cache variable VAR
2328 # accordingly.
2329 ac_fn_c_find_intX_t ()
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2333 $as_echo_n "checking for int$2_t... " >&6; }
2334 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335 $as_echo_n "(cached) " >&6
2336 else
2337 eval "$3=no"
2338 for ac_type in int$2_t 'int' 'long int' \
2339 'long long int' 'short int' 'signed char'; do
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2342 $ac_includes_default
2344 main ()
2346 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2347 test_array [0] = 0
2350 return 0;
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2356 $ac_includes_default
2358 main ()
2360 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2361 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2362 test_array [0] = 0
2365 return 0;
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"; then :
2370 else
2371 case $ac_type in #(
2372 int$2_t) :
2373 eval "$3=yes" ;; #(
2374 *) :
2375 eval "$3=\$ac_type" ;;
2376 esac
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 eval as_val=\$$3
2382 if test "x$as_val" = x""no; then :
2384 else
2385 break
2387 done
2389 eval ac_res=\$$3
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2391 $as_echo "$ac_res" >&6; }
2392 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 } # ac_fn_c_find_intX_t
2396 # ac_fn_c_try_link LINENO
2397 # -----------------------
2398 # Try to link conftest.$ac_ext, and return whether this succeeded.
2399 ac_fn_c_try_link ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 rm -f conftest.$ac_objext conftest$ac_exeext
2403 if { { ac_try="$ac_link"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409 $as_echo "$ac_try_echo"; } >&5
2410 (eval "$ac_link") 2>conftest.err
2411 ac_status=$?
2412 if test -s conftest.err; then
2413 grep -v '^ *+' conftest.err >conftest.er1
2414 cat conftest.er1 >&5
2415 mv -f conftest.er1 conftest.err
2417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418 test $ac_status = 0; } && {
2419 test -z "$ac_c_werror_flag" ||
2420 test ! -s conftest.err
2421 } && test -s conftest$ac_exeext && {
2422 test "$cross_compiling" = yes ||
2423 $as_test_x conftest$ac_exeext
2424 }; then :
2425 ac_retval=0
2426 else
2427 $as_echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 ac_retval=1
2432 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2433 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2434 # interfere with the next link command; also delete a directory that is
2435 # left behind by Apple's compiler. We do this before executing the actions.
2436 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2438 return $ac_retval
2440 } # ac_fn_c_try_link
2442 # ac_fn_c_find_uintX_t LINENO BITS VAR
2443 # ------------------------------------
2444 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2445 # accordingly.
2446 ac_fn_c_find_uintX_t ()
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2450 $as_echo_n "checking for uint$2_t... " >&6; }
2451 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 eval "$3=no"
2455 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2456 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2459 $ac_includes_default
2461 main ()
2463 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2464 test_array [0] = 0
2467 return 0;
2469 _ACEOF
2470 if ac_fn_c_try_compile "$LINENO"; then :
2471 case $ac_type in #(
2472 uint$2_t) :
2473 eval "$3=yes" ;; #(
2474 *) :
2475 eval "$3=\$ac_type" ;;
2476 esac
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 eval as_val=\$$3
2480 if test "x$as_val" = x""no; then :
2482 else
2483 break
2485 done
2487 eval ac_res=\$$3
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2492 } # ac_fn_c_find_uintX_t
2494 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2495 # ----------------------------------------------
2496 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2497 ac_fn_c_check_header_preproc ()
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2507 #include <$2>
2508 _ACEOF
2509 if ac_fn_c_try_cpp "$LINENO"; then :
2510 eval "$3=yes"
2511 else
2512 eval "$3=no"
2514 rm -f conftest.err conftest.$ac_ext
2516 eval ac_res=\$$3
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518 $as_echo "$ac_res" >&6; }
2519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2521 } # ac_fn_c_check_header_preproc
2523 # ac_fn_cxx_try_cpp LINENO
2524 # ------------------------
2525 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2526 ac_fn_cxx_try_cpp ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 if { { ac_try="$ac_cpp conftest.$ac_ext"
2530 case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533 esac
2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2535 $as_echo "$ac_try_echo"; } >&5
2536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2537 ac_status=$?
2538 if test -s conftest.err; then
2539 grep -v '^ *+' conftest.err >conftest.er1
2540 cat conftest.er1 >&5
2541 mv -f conftest.er1 conftest.err
2543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2544 test $ac_status = 0; } >/dev/null && {
2545 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2546 test ! -s conftest.err
2547 }; then :
2548 ac_retval=0
2549 else
2550 $as_echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 ac_retval=1
2555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2556 return $ac_retval
2558 } # ac_fn_cxx_try_cpp
2560 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2561 # ------------------------------------------------
2562 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2563 ac_fn_cxx_check_header_preproc ()
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2567 $as_echo_n "checking for $2... " >&6; }
2568 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2573 #include <$2>
2574 _ACEOF
2575 if ac_fn_cxx_try_cpp "$LINENO"; then :
2576 eval "$3=yes"
2577 else
2578 eval "$3=no"
2580 rm -f conftest.err conftest.$ac_ext
2582 eval ac_res=\$$3
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584 $as_echo "$ac_res" >&6; }
2585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2587 } # ac_fn_cxx_check_header_preproc
2589 # ac_fn_c_check_func LINENO FUNC VAR
2590 # ----------------------------------
2591 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2592 ac_fn_c_check_func ()
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2596 $as_echo_n "checking for $2... " >&6; }
2597 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2601 /* end confdefs.h. */
2602 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2604 #define $2 innocuous_$2
2606 /* System header to define __stub macros and hopefully few prototypes,
2607 which can conflict with char $2 (); below.
2608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2609 <limits.h> exists even on freestanding compilers. */
2611 #ifdef __STDC__
2612 # include <limits.h>
2613 #else
2614 # include <assert.h>
2615 #endif
2617 #undef $2
2619 /* Override any GCC internal prototype to avoid an error.
2620 Use char because int might match the return type of a GCC
2621 builtin and then its argument prototype would still apply. */
2622 #ifdef __cplusplus
2623 extern "C"
2624 #endif
2625 char $2 ();
2626 /* The GNU C library defines this for functions which it implements
2627 to always fail with ENOSYS. Some functions are actually named
2628 something starting with __ and the normal name is an alias. */
2629 #if defined __stub_$2 || defined __stub___$2
2630 choke me
2631 #endif
2634 main ()
2636 return $2 ();
2638 return 0;
2640 _ACEOF
2641 if ac_fn_c_try_link "$LINENO"; then :
2642 eval "$3=yes"
2643 else
2644 eval "$3=no"
2646 rm -f core conftest.err conftest.$ac_objext \
2647 conftest$ac_exeext conftest.$ac_ext
2649 eval ac_res=\$$3
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2651 $as_echo "$ac_res" >&6; }
2652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2654 } # ac_fn_c_check_func
2656 # ac_fn_cxx_try_link LINENO
2657 # -------------------------
2658 # Try to link conftest.$ac_ext, and return whether this succeeded.
2659 ac_fn_cxx_try_link ()
2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2662 rm -f conftest.$ac_objext conftest$ac_exeext
2663 if { { ac_try="$ac_link"
2664 case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667 esac
2668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669 $as_echo "$ac_try_echo"; } >&5
2670 (eval "$ac_link") 2>conftest.err
2671 ac_status=$?
2672 if test -s conftest.err; then
2673 grep -v '^ *+' conftest.err >conftest.er1
2674 cat conftest.er1 >&5
2675 mv -f conftest.er1 conftest.err
2677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2678 test $ac_status = 0; } && {
2679 test -z "$ac_cxx_werror_flag" ||
2680 test ! -s conftest.err
2681 } && test -s conftest$ac_exeext && {
2682 test "$cross_compiling" = yes ||
2683 $as_test_x conftest$ac_exeext
2684 }; then :
2685 ac_retval=0
2686 else
2687 $as_echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2690 ac_retval=1
2692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2694 # interfere with the next link command; also delete a directory that is
2695 # left behind by Apple's compiler. We do this before executing the actions.
2696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2698 return $ac_retval
2700 } # ac_fn_cxx_try_link
2701 cat >config.log <<_ACEOF
2702 This file contains any messages produced by compilers while
2703 running configure, to aid debugging if configure makes a mistake.
2705 It was created by $as_me, which was
2706 generated by GNU Autoconf 2.64. Invocation command line was
2708 $ $0 $@
2710 _ACEOF
2711 exec 5>>config.log
2713 cat <<_ASUNAME
2714 ## --------- ##
2715 ## Platform. ##
2716 ## --------- ##
2718 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2719 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2720 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2721 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2722 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2724 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2725 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2727 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2728 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2729 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2730 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2731 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2732 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2733 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2735 _ASUNAME
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 $as_echo "PATH: $as_dir"
2743 done
2744 IFS=$as_save_IFS
2746 } >&5
2748 cat >&5 <<_ACEOF
2751 ## ----------- ##
2752 ## Core tests. ##
2753 ## ----------- ##
2755 _ACEOF
2758 # Keep a trace of the command line.
2759 # Strip out --no-create and --no-recursion so they do not pile up.
2760 # Strip out --silent because we don't want to record it for future runs.
2761 # Also quote any args containing shell meta-characters.
2762 # Make two passes to allow for proper duplicate-argument suppression.
2763 ac_configure_args=
2764 ac_configure_args0=
2765 ac_configure_args1=
2766 ac_must_keep_next=false
2767 for ac_pass in 1 2
2769 for ac_arg
2771 case $ac_arg in
2772 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2774 | -silent | --silent | --silen | --sile | --sil)
2775 continue ;;
2776 *\'*)
2777 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2778 esac
2779 case $ac_pass in
2780 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2782 as_fn_append ac_configure_args1 " '$ac_arg'"
2783 if test $ac_must_keep_next = true; then
2784 ac_must_keep_next=false # Got value, back to normal.
2785 else
2786 case $ac_arg in
2787 *=* | --config-cache | -C | -disable-* | --disable-* \
2788 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2789 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2790 | -with-* | --with-* | -without-* | --without-* | --x)
2791 case "$ac_configure_args0 " in
2792 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2793 esac
2795 -* ) ac_must_keep_next=true ;;
2796 esac
2798 as_fn_append ac_configure_args " '$ac_arg'"
2800 esac
2801 done
2802 done
2803 { ac_configure_args0=; unset ac_configure_args0;}
2804 { ac_configure_args1=; unset ac_configure_args1;}
2806 # When interrupted or exit'd, cleanup temporary files, and complete
2807 # config.log. We remove comments because anyway the quotes in there
2808 # would cause problems or look ugly.
2809 # WARNING: Use '\'' to represent an apostrophe within the trap.
2810 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2811 trap 'exit_status=$?
2812 # Save into config.log some information that might help in debugging.
2814 echo
2816 cat <<\_ASBOX
2817 ## ---------------- ##
2818 ## Cache variables. ##
2819 ## ---------------- ##
2820 _ASBOX
2821 echo
2822 # The following way of writing the cache mishandles newlines in values,
2824 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2825 eval ac_val=\$$ac_var
2826 case $ac_val in #(
2827 *${as_nl}*)
2828 case $ac_var in #(
2829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2831 esac
2832 case $ac_var in #(
2833 _ | IFS | as_nl) ;; #(
2834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2835 *) { eval $ac_var=; unset $ac_var;} ;;
2836 esac ;;
2837 esac
2838 done
2839 (set) 2>&1 |
2840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2841 *${as_nl}ac_space=\ *)
2842 sed -n \
2843 "s/'\''/'\''\\\\'\'''\''/g;
2844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2845 ;; #(
2847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2849 esac |
2850 sort
2852 echo
2854 cat <<\_ASBOX
2855 ## ----------------- ##
2856 ## Output variables. ##
2857 ## ----------------- ##
2858 _ASBOX
2859 echo
2860 for ac_var in $ac_subst_vars
2862 eval ac_val=\$$ac_var
2863 case $ac_val in
2864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2865 esac
2866 $as_echo "$ac_var='\''$ac_val'\''"
2867 done | sort
2868 echo
2870 if test -n "$ac_subst_files"; then
2871 cat <<\_ASBOX
2872 ## ------------------- ##
2873 ## File substitutions. ##
2874 ## ------------------- ##
2875 _ASBOX
2876 echo
2877 for ac_var in $ac_subst_files
2879 eval ac_val=\$$ac_var
2880 case $ac_val in
2881 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2882 esac
2883 $as_echo "$ac_var='\''$ac_val'\''"
2884 done | sort
2885 echo
2888 if test -s confdefs.h; then
2889 cat <<\_ASBOX
2890 ## ----------- ##
2891 ## confdefs.h. ##
2892 ## ----------- ##
2893 _ASBOX
2894 echo
2895 cat confdefs.h
2896 echo
2898 test "$ac_signal" != 0 &&
2899 $as_echo "$as_me: caught signal $ac_signal"
2900 $as_echo "$as_me: exit $exit_status"
2901 } >&5
2902 rm -f core *.core core.conftest.* &&
2903 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2904 exit $exit_status
2906 for ac_signal in 1 2 13 15; do
2907 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2908 done
2909 ac_signal=0
2911 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2912 rm -f -r conftest* confdefs.h
2914 $as_echo "/* confdefs.h */" > confdefs.h
2916 # Predefined preprocessor variables.
2918 cat >>confdefs.h <<_ACEOF
2919 #define PACKAGE_NAME "$PACKAGE_NAME"
2920 _ACEOF
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2924 _ACEOF
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2928 _ACEOF
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_STRING "$PACKAGE_STRING"
2932 _ACEOF
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2936 _ACEOF
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_URL "$PACKAGE_URL"
2940 _ACEOF
2943 # Let the site file select an alternate cache file if it wants to.
2944 # Prefer an explicitly selected file to automatically selected ones.
2945 ac_site_file1=NONE
2946 ac_site_file2=NONE
2947 if test -n "$CONFIG_SITE"; then
2948 ac_site_file1=$CONFIG_SITE
2949 elif test "x$prefix" != xNONE; then
2950 ac_site_file1=$prefix/share/config.site
2951 ac_site_file2=$prefix/etc/config.site
2952 else
2953 ac_site_file1=$ac_default_prefix/share/config.site
2954 ac_site_file2=$ac_default_prefix/etc/config.site
2956 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2958 test "x$ac_site_file" = xNONE && continue
2959 if test -r "$ac_site_file"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2961 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2962 sed 's/^/| /' "$ac_site_file" >&5
2963 . "$ac_site_file"
2965 done
2967 if test -r "$cache_file"; then
2968 # Some versions of bash will fail to source /dev/null (special
2969 # files actually), so we avoid doing that.
2970 if test -f "$cache_file"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2972 $as_echo "$as_me: loading cache $cache_file" >&6;}
2973 case $cache_file in
2974 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2975 *) . "./$cache_file";;
2976 esac
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2980 $as_echo "$as_me: creating cache $cache_file" >&6;}
2981 >$cache_file
2984 # Check that the precious variables saved in the cache have kept the same
2985 # value.
2986 ac_cache_corrupted=false
2987 for ac_var in $ac_precious_vars; do
2988 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2989 eval ac_new_set=\$ac_env_${ac_var}_set
2990 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2991 eval ac_new_val=\$ac_env_${ac_var}_value
2992 case $ac_old_set,$ac_new_set in
2993 set,)
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2995 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2996 ac_cache_corrupted=: ;;
2997 ,set)
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2999 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3000 ac_cache_corrupted=: ;;
3001 ,);;
3003 if test "x$ac_old_val" != "x$ac_new_val"; then
3004 # differences in whitespace do not lead to failure.
3005 ac_old_val_w=`echo x $ac_old_val`
3006 ac_new_val_w=`echo x $ac_new_val`
3007 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3009 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3010 ac_cache_corrupted=:
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3013 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3014 eval $ac_var=\$ac_old_val
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3017 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3019 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3020 fi;;
3021 esac
3022 # Pass precious variables to config.status.
3023 if test "$ac_new_set" = set; then
3024 case $ac_new_val in
3025 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3026 *) ac_arg=$ac_var=$ac_new_val ;;
3027 esac
3028 case " $ac_configure_args " in
3029 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3030 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3031 esac
3033 done
3034 if $ac_cache_corrupted; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3038 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3039 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3041 ## -------------------- ##
3042 ## Main body of script. ##
3043 ## -------------------- ##
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3059 gcc_version=`cat $srcdir/BASE-VER`
3061 # Determine the host, build, and target systems
3062 ac_aux_dir=
3063 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3064 for ac_t in install-sh install.sh shtool; do
3065 if test -f "$ac_dir/$ac_t"; then
3066 ac_aux_dir=$ac_dir
3067 ac_install_sh="$ac_aux_dir/$ac_t -c"
3068 break 2
3070 done
3071 done
3072 if test -z "$ac_aux_dir"; then
3073 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3076 # These three variables are undocumented and unsupported,
3077 # and are intended to be withdrawn in a future Autoconf release.
3078 # They can cause serious problems if a builder's source tree is in a directory
3079 # whose full name contains unusual characters.
3080 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3081 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3085 # Make sure we can run config.sub.
3086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3087 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3090 $as_echo_n "checking build system type... " >&6; }
3091 if test "${ac_cv_build+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 ac_build_alias=$build_alias
3095 test "x$ac_build_alias" = x &&
3096 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3097 test "x$ac_build_alias" = x &&
3098 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3099 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3100 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3104 $as_echo "$ac_cv_build" >&6; }
3105 case $ac_cv_build in
3106 *-*-*) ;;
3107 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3108 esac
3109 build=$ac_cv_build
3110 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_build
3112 shift
3113 build_cpu=$1
3114 build_vendor=$2
3115 shift; shift
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3118 build_os=$*
3119 IFS=$ac_save_IFS
3120 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3124 $as_echo_n "checking host system type... " >&6; }
3125 if test "${ac_cv_host+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test "x$host_alias" = x; then
3129 ac_cv_host=$ac_cv_build
3130 else
3131 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3132 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3137 $as_echo "$ac_cv_host" >&6; }
3138 case $ac_cv_host in
3139 *-*-*) ;;
3140 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3141 esac
3142 host=$ac_cv_host
3143 ac_save_IFS=$IFS; IFS='-'
3144 set x $ac_cv_host
3145 shift
3146 host_cpu=$1
3147 host_vendor=$2
3148 shift; shift
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3151 host_os=$*
3152 IFS=$ac_save_IFS
3153 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3157 $as_echo_n "checking target system type... " >&6; }
3158 if test "${ac_cv_target+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test "x$target_alias" = x; then
3162 ac_cv_target=$ac_cv_host
3163 else
3164 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3165 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3170 $as_echo "$ac_cv_target" >&6; }
3171 case $ac_cv_target in
3172 *-*-*) ;;
3173 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3174 esac
3175 target=$ac_cv_target
3176 ac_save_IFS=$IFS; IFS='-'
3177 set x $ac_cv_target
3178 shift
3179 target_cpu=$1
3180 target_vendor=$2
3181 shift; shift
3182 # Remember, the first character of IFS is used to create $*,
3183 # except with old shells:
3184 target_os=$*
3185 IFS=$ac_save_IFS
3186 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3189 # The aliases save the names the user supplied, while $host etc.
3190 # will get canonicalized.
3191 test -n "$target_alias" &&
3192 test "$program_prefix$program_suffix$program_transform_name" = \
3193 NONENONEs,x,x, &&
3194 program_prefix=${target_alias}-
3196 # Determine the noncanonical target name, for directory use.
3197 case ${build_alias} in
3198 "") build_noncanonical=${build} ;;
3199 *) build_noncanonical=${build_alias} ;;
3200 esac
3202 case ${host_alias} in
3203 "") host_noncanonical=${build_noncanonical} ;;
3204 *) host_noncanonical=${host_alias} ;;
3205 esac
3207 case ${target_alias} in
3208 "") target_noncanonical=${host_noncanonical} ;;
3209 *) target_noncanonical=${target_alias} ;;
3210 esac
3215 # Used for constructing correct paths for offload compilers.
3216 real_target_noncanonical=${target_noncanonical}
3217 accel_dir_suffix=
3219 # Determine the target- and build-specific subdirectories
3221 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3222 # have matching libraries, they should use host libraries: Makefile.tpl
3223 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3224 # However, they still use the build modules, because the corresponding
3225 # host modules (e.g. bison) are only built for the host when bootstrap
3226 # finishes. So:
3227 # - build_subdir is where we find build modules, and never changes.
3228 # - build_libsubdir is where we find build libraries, and can be overridden.
3230 # Prefix 'build-' so this never conflicts with target_subdir.
3231 build_subdir="build-${build_noncanonical}"
3233 # Check whether --with-build-libsubdir was given.
3234 if test "${with_build_libsubdir+set}" = set; then :
3235 withval=$with_build_libsubdir; build_libsubdir="$withval"
3236 else
3237 build_libsubdir="$build_subdir"
3240 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3241 if ( test $srcdir = . && test -d gcc ) \
3242 || test -d $srcdir/../host-${host_noncanonical}; then
3243 host_subdir="host-${host_noncanonical}"
3244 else
3245 host_subdir=.
3247 # No prefix.
3248 target_subdir=${target_noncanonical}
3251 # Set program_transform_name
3252 test "$program_prefix" != NONE &&
3253 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3254 # Use a double $ so make ignores it.
3255 test "$program_suffix" != NONE &&
3256 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3257 # Double any \ or $.
3258 # By default was `s,x,x', remove it if useless.
3259 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3260 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3263 # Check for bogus environment variables.
3264 # Test if LIBRARY_PATH contains the notation for the current directory
3265 # since this would lead to problems installing/building glibc.
3266 # LIBRARY_PATH contains the current directory if one of the following
3267 # is true:
3268 # - one of the terminals (":" and ";") is the first or last sign
3269 # - two terminals occur directly after each other
3270 # - the path contains an element with a dot in it
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3272 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3273 case ${LIBRARY_PATH} in
3274 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3275 library_path_setting="contains current directory"
3278 library_path_setting="ok"
3280 esac
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3282 $as_echo "$library_path_setting" >&6; }
3283 if test "$library_path_setting" != "ok"; then
3284 as_fn_error "
3285 *** LIBRARY_PATH shouldn't contain the current directory when
3286 *** building gcc. Please change the environment variable
3287 *** and run configure again." "$LINENO" 5
3290 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3291 # since this would lead to problems installing/building glibc.
3292 # GCC_EXEC_PREFIX contains the current directory if one of the following
3293 # is true:
3294 # - one of the terminals (":" and ";") is the first or last sign
3295 # - two terminals occur directly after each other
3296 # - the path contains an element with a dot in it
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3298 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3299 case ${GCC_EXEC_PREFIX} in
3300 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3301 gcc_exec_prefix_setting="contains current directory"
3304 gcc_exec_prefix_setting="ok"
3306 esac
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3308 $as_echo "$gcc_exec_prefix_setting" >&6; }
3309 if test "$gcc_exec_prefix_setting" != "ok"; then
3310 as_fn_error "
3311 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3312 *** building gcc. Please change the environment variable
3313 *** and run configure again." "$LINENO" 5
3316 # -----------
3317 # Directories
3318 # -----------
3320 # Specify the local prefix
3321 local_prefix=
3323 # Check whether --with-local-prefix was given.
3324 if test "${with_local_prefix+set}" = set; then :
3325 withval=$with_local_prefix; case "${withval}" in
3326 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3327 no) ;;
3328 *) local_prefix=$with_local_prefix ;;
3329 esac
3333 # Default local prefix if it is empty
3334 if test x$local_prefix = x; then
3335 local_prefix=/usr/local
3338 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3339 # passed in by the toplevel make and thus we'd get different behavior
3340 # depending on where we built the sources.
3341 gcc_gxx_include_dir=
3342 # Specify the g++ header file directory
3344 # Check whether --with-gxx-include-dir was given.
3345 if test "${with_gxx_include_dir+set}" = set; then :
3346 withval=$with_gxx_include_dir; case "${withval}" in
3347 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3348 no) ;;
3349 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3350 esac
3354 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3355 if test x${gcc_gxx_include_dir} = x; then
3356 if test x${enable_version_specific_runtime_libs} = xyes; then
3357 gcc_gxx_include_dir='${libsubdir}/include/c++'
3358 else
3359 libstdcxx_incdir='include/c++/$(version)'
3360 if test x$host != x$target; then
3361 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3363 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3367 gcc_gxx_include_dir_add_sysroot=0
3368 if test "${with_sysroot+set}" = set; then
3369 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3370 if test "${gcc_gxx_without_sysroot}"; then
3371 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3372 gcc_gxx_include_dir_add_sysroot=1
3377 # Check whether --with-cpp_install_dir was given.
3378 if test "${with_cpp_install_dir+set}" = set; then :
3379 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3380 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3381 elif test x$withval != xno; then
3382 cpp_install_dir=$withval
3387 # We would like to our source tree to be readonly. However when releases or
3388 # pre-releases are generated, the flex/bison generated files as well as the
3389 # various formats of manuals need to be included along with the rest of the
3390 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3391 # just that.
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3394 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3395 # Check whether --enable-generated-files-in-srcdir was given.
3396 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3397 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3398 else
3399 generated_files_in_srcdir=no
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3404 $as_echo "$generated_files_in_srcdir" >&6; }
3406 if test "$generated_files_in_srcdir" = "yes"; then
3407 GENINSRC=''
3408 else
3409 GENINSRC='#'
3413 # -------------------
3414 # Find default linker
3415 # -------------------
3417 # With GNU ld
3419 # Check whether --with-gnu-ld was given.
3420 if test "${with_gnu_ld+set}" = set; then :
3421 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3422 else
3423 gnu_ld_flag=no
3427 # With pre-defined ld
3429 # Check whether --with-ld was given.
3430 if test "${with_ld+set}" = set; then :
3431 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3434 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3435 if test ! -x "$DEFAULT_LINKER"; then
3436 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3437 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3438 gnu_ld_flag=yes
3441 cat >>confdefs.h <<_ACEOF
3442 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3443 _ACEOF
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3448 $as_echo_n "checking whether a default linker was specified... " >&6; }
3449 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3450 if test x"$gnu_ld_flag" = x"no"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3452 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3455 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3462 # With demangler in GNU ld
3464 # Check whether --with-demangler-in-ld was given.
3465 if test "${with_demangler_in_ld+set}" = set; then :
3466 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3467 else
3468 demangler_in_ld=yes
3472 # ----------------------
3473 # Find default assembler
3474 # ----------------------
3476 # With GNU as
3478 # Check whether --with-gnu-as was given.
3479 if test "${with_gnu_as+set}" = set; then :
3480 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3481 else
3482 gas_flag=no
3487 # Check whether --with-as was given.
3488 if test "${with_as+set}" = set; then :
3489 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3492 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3493 if test ! -x "$DEFAULT_ASSEMBLER"; then
3494 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3495 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3496 gas_flag=yes
3499 cat >>confdefs.h <<_ACEOF
3500 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3501 _ACEOF
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3506 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3507 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3508 if test x"$gas_flag" = x"no"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3510 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3513 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3515 else
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3520 # ---------------
3521 # Find C compiler
3522 # ---------------
3524 # If a non-executable a.out is present (e.g. created by GNU as above even if
3525 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3526 # file, even when creating an executable, so an execution test fails.
3527 # Remove possible default executable files to avoid this.
3529 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3530 # Autoconf includes it.
3531 rm -f a.out a.exe b.out
3533 # Find the native compiler
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if test "${ac_cv_prog_CC+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3563 IFS=$as_save_IFS
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test -z "$ac_cv_prog_CC"; then
3579 ac_ct_CC=$CC
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581 set dummy gcc; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_ac_ct_CC="gcc"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3601 done
3602 done
3603 IFS=$as_save_IFS
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3616 if test "x$ac_ct_CC" = x; then
3617 CC=""
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620 yes:)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625 CC=$ac_ct_CC
3627 else
3628 CC="$ac_cv_prog_CC"
3631 if test -z "$CC"; then
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}cc; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if test "${ac_cv_prog_CC+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 ac_cv_prog_CC="${ac_tool_prefix}cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3654 done
3655 done
3656 IFS=$as_save_IFS
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3672 if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674 set dummy cc; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if test "${ac_cv_prog_CC+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682 else
3683 ac_prog_rejected=no
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692 ac_prog_rejected=yes
3693 continue
3695 ac_cv_prog_CC="cc"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3701 IFS=$as_save_IFS
3703 if test $ac_prog_rejected = yes; then
3704 # We found a bogon in the path, so make sure we never use it.
3705 set dummy $ac_cv_prog_CC
3706 shift
3707 if test $# != 0; then
3708 # We chose a different compiler from the bogus one.
3709 # However, it has the same basename, so the bogon will be chosen
3710 # first if we set CC to just the basename; use the full file name.
3711 shift
3712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3728 if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
3730 for ac_prog in cl.exe
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_CC+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3753 done
3754 done
3755 IFS=$as_save_IFS
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3769 test -n "$CC" && break
3770 done
3772 if test -z "$CC"; then
3773 ac_ct_CC=$CC
3774 for ac_prog in cl.exe
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_prog_ac_ct_CC="$ac_prog"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3799 IFS=$as_save_IFS
3803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804 if test -n "$ac_ct_CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806 $as_echo "$ac_ct_CC" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3813 test -n "$ac_ct_CC" && break
3814 done
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error "no acceptable C compiler found in \$PATH
3835 See \`config.log' for more details." "$LINENO" 5; }
3837 # Provide some information about the compiler.
3838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3839 set X $ac_compile
3840 ac_compiler=$2
3841 for ac_option in --version -v -V -qversion; do
3842 { { ac_try="$ac_compiler $ac_option >&5"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3850 ac_status=$?
3851 if test -s conftest.err; then
3852 sed '10a\
3853 ... rest of stderr output deleted ...
3854 10q' conftest.err >conftest.er1
3855 cat conftest.er1 >&5
3856 rm -f conftest.er1 conftest.err
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 done
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3866 main ()
3870 return 0;
3872 _ACEOF
3873 ac_clean_files_save=$ac_clean_files
3874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3875 # Try to create an executable without -o first, disregard a.out.
3876 # It will help us diagnose broken compilers, and finding out an intuition
3877 # of exeext.
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3879 $as_echo_n "checking for C compiler default output file name... " >&6; }
3880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3882 # The possible output files:
3883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3885 ac_rmfiles=
3886 for ac_file in $ac_files
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 esac
3892 done
3893 rm -f $ac_rmfiles
3895 if { { ac_try="$ac_link_default"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link_default") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3909 # so that the user can short-circuit this test for compilers unknown to
3910 # Autoconf.
3911 for ac_file in $ac_files ''
3913 test -f "$ac_file" || continue
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3917 [ab].out )
3918 # We found the default executable, but exeext='' is most
3919 # certainly right.
3920 break;;
3921 *.* )
3922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3923 then :; else
3924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 # We set ac_cv_exeext here because the later test for it is not
3927 # safe: cross compilers may not add the suffix if given an `-o'
3928 # argument, so we may need to know it at that point already.
3929 # Even if this section looks crufty: it has the advantage of
3930 # actually working.
3931 break;;
3933 break;;
3934 esac
3935 done
3936 test "$ac_cv_exeext" = no && ac_cv_exeext=
3938 else
3939 ac_file=''
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3942 $as_echo "$ac_file" >&6; }
3943 if test -z "$ac_file"; then :
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 { as_fn_set_status 77
3950 as_fn_error "C compiler cannot create executables
3951 See \`config.log' for more details." "$LINENO" 5; }; }
3953 ac_exeext=$ac_cv_exeext
3955 # Check that the compiler produces executables we can run. If not, either
3956 # the compiler is broken, or we cross compile.
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3958 $as_echo_n "checking whether the C compiler works... " >&6; }
3959 # If not cross compiling, check that we can run a simple program.
3960 if test "$cross_compiling" != yes; then
3961 if { ac_try='./$ac_file'
3962 { { case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_try") 2>&5
3969 ac_status=$?
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; }; then
3972 cross_compiling=no
3973 else
3974 if test "$cross_compiling" = maybe; then
3975 cross_compiling=yes
3976 else
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot run C compiled programs.
3980 If you meant to cross compile, use \`--host'.
3981 See \`config.log' for more details." "$LINENO" 5; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3986 $as_echo "yes" >&6; }
3988 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3989 ac_clean_files=$ac_clean_files_save
3990 # Check that the compiler produces executables we can run. If not, either
3991 # the compiler is broken, or we cross compile.
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3993 $as_echo_n "checking whether we are cross compiling... " >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3995 $as_echo "$cross_compiling" >&6; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 # `rm'.
4014 for ac_file in conftest.exe conftest conftest.*; do
4015 test -f "$ac_file" || continue
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 break;;
4020 * ) break;;
4021 esac
4022 done
4023 else
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details." "$LINENO" 5; }
4029 rm -f conftest$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4035 ac_exeext=$EXEEXT
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4037 $as_echo_n "checking for suffix of object files... " >&6; }
4038 if test "${ac_cv_objext+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4045 main ()
4049 return 0;
4051 _ACEOF
4052 rm -f conftest.o conftest.obj
4053 if { { ac_try="$ac_compile"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_compile") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; then :
4064 for ac_file in conftest.o conftest.obj conftest.*; do
4065 test -f "$ac_file" || continue;
4066 case $ac_file in
4067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4068 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4069 break;;
4070 esac
4071 done
4072 else
4073 $as_echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4078 as_fn_error "cannot compute suffix of object files: cannot compile
4079 See \`config.log' for more details." "$LINENO" 5; }
4081 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4084 $as_echo "$ac_cv_objext" >&6; }
4085 OBJEXT=$ac_cv_objext
4086 ac_objext=$OBJEXT
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4089 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4098 #ifndef __GNUC__
4099 choke me
4100 #endif
4103 return 0;
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107 ac_compiler_gnu=yes
4108 else
4109 ac_compiler_gnu=no
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4116 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4117 if test $ac_compiler_gnu = yes; then
4118 GCC=yes
4119 else
4120 GCC=
4122 ac_test_CFLAGS=${CFLAGS+set}
4123 ac_save_CFLAGS=$CFLAGS
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4125 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4126 if test "${ac_cv_prog_cc_g+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 ac_save_c_werror_flag=$ac_c_werror_flag
4130 ac_c_werror_flag=yes
4131 ac_cv_prog_cc_g=no
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_g=yes
4146 else
4147 CFLAGS=""
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4152 main ()
4156 return 0;
4158 _ACEOF
4159 if ac_fn_c_try_compile "$LINENO"; then :
4161 else
4162 ac_c_werror_flag=$ac_save_c_werror_flag
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 main ()
4172 return 0;
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_g=yes
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4186 $as_echo "$ac_cv_prog_cc_g" >&6; }
4187 if test "$ac_test_CFLAGS" = set; then
4188 CFLAGS=$ac_save_CFLAGS
4189 elif test $ac_cv_prog_cc_g = yes; then
4190 if test "$GCC" = yes; then
4191 CFLAGS="-g -O2"
4192 else
4193 CFLAGS="-g"
4195 else
4196 if test "$GCC" = yes; then
4197 CFLAGS="-O2"
4198 else
4199 CFLAGS=
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4204 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 ac_cv_prog_cc_c89=no
4208 ac_save_CC=$CC
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4211 #include <stdarg.h>
4212 #include <stdio.h>
4213 #include <sys/types.h>
4214 #include <sys/stat.h>
4215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4216 struct buf { int x; };
4217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4218 static char *e (p, i)
4219 char **p;
4220 int i;
4222 return p[i];
4224 static char *f (char * (*g) (char **, int), char **p, ...)
4226 char *s;
4227 va_list v;
4228 va_start (v,p);
4229 s = g (p, va_arg (v,int));
4230 va_end (v);
4231 return s;
4234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4235 function prototypes and stuff, but not '\xHH' hex character constants.
4236 These don't provoke an error unfortunately, instead are silently treated
4237 as 'x'. The following induces an error, until -std is added to get
4238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4239 array size at least. It's necessary to write '\x00'==0 to get something
4240 that's true only with -std. */
4241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4243 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4244 inside strings and character constants. */
4245 #define FOO(x) 'x'
4246 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4248 int test (int i, double x);
4249 struct s1 {int (*f) (int a);};
4250 struct s2 {int (*f) (double a);};
4251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252 int argc;
4253 char **argv;
4255 main ()
4257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4259 return 0;
4261 _ACEOF
4262 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4263 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4265 CC="$ac_save_CC $ac_arg"
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_cv_prog_cc_c89=$ac_arg
4269 rm -f core conftest.err conftest.$ac_objext
4270 test "x$ac_cv_prog_cc_c89" != "xno" && break
4271 done
4272 rm -f conftest.$ac_ext
4273 CC=$ac_save_CC
4276 # AC_CACHE_VAL
4277 case "x$ac_cv_prog_cc_c89" in
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4280 $as_echo "none needed" >&6; } ;;
4281 xno)
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4283 $as_echo "unsupported" >&6; } ;;
4285 CC="$CC $ac_cv_prog_cc_c89"
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4287 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4288 esac
4289 if test "x$ac_cv_prog_cc_c89" != xno; then :
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 ac_ext=cpp
4300 ac_cpp='$CXXCPP $CPPFLAGS'
4301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4304 if test -z "$CXX"; then
4305 if test -n "$CCC"; then
4306 CXX=$CCC
4307 else
4308 if test -n "$ac_tool_prefix"; then
4309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if test "${ac_cv_prog_CXX+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$CXX"; then
4319 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4332 done
4333 done
4334 IFS=$as_save_IFS
4338 CXX=$ac_cv_prog_CXX
4339 if test -n "$CXX"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4341 $as_echo "$CXX" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4348 test -n "$CXX" && break
4349 done
4351 if test -z "$CXX"; then
4352 ac_ct_CXX=$CXX
4353 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4355 # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$ac_ct_CXX"; then
4363 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_ac_ct_CXX="$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4383 if test -n "$ac_ct_CXX"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4385 $as_echo "$ac_ct_CXX" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4392 test -n "$ac_ct_CXX" && break
4393 done
4395 if test "x$ac_ct_CXX" = x; then
4396 CXX="g++"
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 CXX=$ac_ct_CXX
4410 # Provide some information about the compiler.
4411 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4412 set X $ac_compile
4413 ac_compiler=$2
4414 for ac_option in --version -v -V -qversion; do
4415 { { ac_try="$ac_compiler $ac_option >&5"
4416 case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4423 ac_status=$?
4424 if test -s conftest.err; then
4425 sed '10a\
4426 ... rest of stderr output deleted ...
4427 10q' conftest.err >conftest.er1
4428 cat conftest.er1 >&5
4429 rm -f conftest.er1 conftest.err
4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432 test $ac_status = 0; }
4433 done
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4436 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4437 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4444 main ()
4446 #ifndef __GNUC__
4447 choke me
4448 #endif
4451 return 0;
4453 _ACEOF
4454 if ac_fn_cxx_try_compile "$LINENO"; then :
4455 ac_compiler_gnu=yes
4456 else
4457 ac_compiler_gnu=no
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4464 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4465 if test $ac_compiler_gnu = yes; then
4466 GXX=yes
4467 else
4468 GXX=
4470 ac_test_CXXFLAGS=${CXXFLAGS+set}
4471 ac_save_CXXFLAGS=$CXXFLAGS
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4473 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4474 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4476 else
4477 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4478 ac_cxx_werror_flag=yes
4479 ac_cv_prog_cxx_g=no
4480 CXXFLAGS="-g"
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4485 main ()
4489 return 0;
4491 _ACEOF
4492 if ac_fn_cxx_try_compile "$LINENO"; then :
4493 ac_cv_prog_cxx_g=yes
4494 else
4495 CXXFLAGS=""
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4500 main ()
4504 return 0;
4506 _ACEOF
4507 if ac_fn_cxx_try_compile "$LINENO"; then :
4509 else
4510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4511 CXXFLAGS="-g"
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4516 main ()
4520 return 0;
4522 _ACEOF
4523 if ac_fn_cxx_try_compile "$LINENO"; then :
4524 ac_cv_prog_cxx_g=yes
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4534 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4535 if test "$ac_test_CXXFLAGS" = set; then
4536 CXXFLAGS=$ac_save_CXXFLAGS
4537 elif test $ac_cv_prog_cxx_g = yes; then
4538 if test "$GXX" = yes; then
4539 CXXFLAGS="-g -O2"
4540 else
4541 CXXFLAGS="-g"
4543 else
4544 if test "$GXX" = yes; then
4545 CXXFLAGS="-O2"
4546 else
4547 CXXFLAGS=
4550 ac_ext=c
4551 ac_cpp='$CPP $CPPFLAGS'
4552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 if test -n "$ac_tool_prefix"; then
4560 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4561 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$GNATBIND"; then
4568 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 GNATBIND=$ac_cv_prog_GNATBIND
4588 if test -n "$GNATBIND"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4590 $as_echo "$GNATBIND" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4598 if test -z "$ac_cv_prog_GNATBIND"; then
4599 ac_ct_GNATBIND=$GNATBIND
4600 # Extract the first word of "gnatbind", so it can be a program name with args.
4601 set dummy gnatbind; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$ac_ct_GNATBIND"; then
4608 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4628 if test -n "$ac_ct_GNATBIND"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4630 $as_echo "$ac_ct_GNATBIND" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4636 if test "x$ac_ct_GNATBIND" = x; then
4637 GNATBIND="no"
4638 else
4639 case $cross_compiling:$ac_tool_warned in
4640 yes:)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4644 esac
4645 GNATBIND=$ac_ct_GNATBIND
4647 else
4648 GNATBIND="$ac_cv_prog_GNATBIND"
4651 if test -n "$ac_tool_prefix"; then
4652 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4653 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$GNATMAKE"; then
4660 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4673 done
4674 done
4675 IFS=$as_save_IFS
4679 GNATMAKE=$ac_cv_prog_GNATMAKE
4680 if test -n "$GNATMAKE"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4682 $as_echo "$GNATMAKE" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4690 if test -z "$ac_cv_prog_GNATMAKE"; then
4691 ac_ct_GNATMAKE=$GNATMAKE
4692 # Extract the first word of "gnatmake", so it can be a program name with args.
4693 set dummy gnatmake; ac_word=$2
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695 $as_echo_n "checking for $ac_word... " >&6; }
4696 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -n "$ac_ct_GNATMAKE"; then
4700 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4720 if test -n "$ac_ct_GNATMAKE"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4722 $as_echo "$ac_ct_GNATMAKE" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4728 if test "x$ac_ct_GNATMAKE" = x; then
4729 GNATMAKE="no"
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732 yes:)
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4736 esac
4737 GNATMAKE=$ac_ct_GNATMAKE
4739 else
4740 GNATMAKE="$ac_cv_prog_GNATMAKE"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4744 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4745 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 cat >conftest.adb <<EOF
4749 procedure conftest is begin null; end conftest;
4751 acx_cv_cc_gcc_supports_ada=no
4752 # There is a bug in old released versions of GCC which causes the
4753 # driver to exit successfully when the appropriate language module
4754 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4755 # Therefore we must check for the error message as well as an
4756 # unsuccessful exit.
4757 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4758 # given a .adb file, but produce no object file. So we must check
4759 # if an object file was really produced to guard against this.
4760 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4761 if test x"$errors" = x && test -f conftest.$ac_objext; then
4762 acx_cv_cc_gcc_supports_ada=yes
4764 rm -f conftest.*
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4767 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4769 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4770 have_gnat=yes
4771 else
4772 have_gnat=no
4776 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4777 # optimizations to be activated explicitly by the toplevel.
4778 case "$CC" in
4779 */prev-gcc/xgcc*) ;;
4780 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4781 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4782 esac
4786 # Determine PICFLAG for target gnatlib.
4791 case "${target}" in
4792 # PIC is the default on some targets or must not be used.
4793 *-*-darwin*)
4794 # PIC is the default on this platform
4795 # Common symbols not allowed in MH_DYLIB files
4796 PICFLAG_FOR_TARGET=-fno-common
4798 alpha*-dec-osf5*)
4799 # PIC is the default.
4801 hppa*64*-*-hpux*)
4802 # PIC is the default for 64-bit PA HP-UX.
4804 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4806 i[34567]86-*-mingw* | x86_64-*-mingw*)
4808 i[34567]86-*-interix[3-9]*)
4809 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4810 # Instead, we relocate shared libraries at runtime.
4812 i[34567]86-*-nto-qnx*)
4813 # QNX uses GNU C++, but need to define -shared option too, otherwise
4814 # it will coredump.
4815 PICFLAG_FOR_TARGET='-fPIC -shared'
4817 i[34567]86-pc-msdosdjgpp*)
4818 # DJGPP does not support shared libraries at all.
4820 ia64*-*-hpux*)
4821 # On IA64 HP-UX, PIC is the default but the pic flag
4822 # sets the default TLS model and affects inlining.
4823 PICFLAG_FOR_TARGET=-fPIC
4825 mips-sgi-irix6*)
4826 # PIC is the default.
4828 rs6000-ibm-aix* | powerpc-ibm-aix*)
4829 # All AIX code is PIC.
4832 # Some targets support both -fPIC and -fpic, but prefer the latter.
4833 # FIXME: Why?
4834 i[34567]86-*-* | x86_64-*-*)
4835 PICFLAG_FOR_TARGET=-fpic
4837 # FIXME: Override -fPIC default in libgcc only?
4838 sh-*-linux* | sh[2346lbe]*-*-linux*)
4839 PICFLAG_FOR_TARGET=-fpic
4841 # FIXME: Simplify to sh*-*-netbsd*?
4842 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4843 sh64-*-netbsd* | sh64l*-*-netbsd*)
4844 PICFLAG_FOR_TARGET=-fpic
4846 # Default to -fPIC unless specified otherwise.
4848 PICFLAG_FOR_TARGET=-fPIC
4850 esac
4852 # If the user explicitly uses -fpic/-fPIC, keep that.
4853 case "${CFLAGS_FOR_TARGET}" in
4854 *-fpic*)
4855 PICFLAG_FOR_TARGET=-fpic
4857 *-fPIC*)
4858 PICFLAG_FOR_TARGET=-fPIC
4860 esac
4864 # -------------------------
4865 # Check C compiler features
4866 # -------------------------
4869 ac_ext=c
4870 ac_cpp='$CPP $CPPFLAGS'
4871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4875 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4876 # On Suns, sometimes $CPP names a directory.
4877 if test -n "$CPP" && test -d "$CPP"; then
4878 CPP=
4880 if test -z "$CPP"; then
4881 if test "${ac_cv_prog_CPP+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 # Double quotes because CPP needs to be expanded
4885 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4887 ac_preproc_ok=false
4888 for ac_c_preproc_warn_flag in '' yes
4890 # Use a header file that comes with gcc, so configuring glibc
4891 # with a fresh cross-compiler works.
4892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4893 # <limits.h> exists even on freestanding compilers.
4894 # On the NeXT, cc -E runs the code through the compiler's parser,
4895 # not just through cpp. "Syntax error" is here to catch this case.
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 #ifdef __STDC__
4899 # include <limits.h>
4900 #else
4901 # include <assert.h>
4902 #endif
4903 Syntax error
4904 _ACEOF
4905 if ac_fn_c_try_cpp "$LINENO"; then :
4907 else
4908 # Broken: fails on valid input.
4909 continue
4911 rm -f conftest.err conftest.$ac_ext
4913 # OK, works on sane cases. Now check whether nonexistent headers
4914 # can be detected and how.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4917 #include <ac_nonexistent.h>
4918 _ACEOF
4919 if ac_fn_c_try_cpp "$LINENO"; then :
4920 # Broken: success on invalid input.
4921 continue
4922 else
4923 # Passes both tests.
4924 ac_preproc_ok=:
4925 break
4927 rm -f conftest.err conftest.$ac_ext
4929 done
4930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4931 rm -f conftest.err conftest.$ac_ext
4932 if $ac_preproc_ok; then :
4933 break
4936 done
4937 ac_cv_prog_CPP=$CPP
4940 CPP=$ac_cv_prog_CPP
4941 else
4942 ac_cv_prog_CPP=$CPP
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4945 $as_echo "$CPP" >&6; }
4946 ac_preproc_ok=false
4947 for ac_c_preproc_warn_flag in '' yes
4949 # Use a header file that comes with gcc, so configuring glibc
4950 # with a fresh cross-compiler works.
4951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952 # <limits.h> exists even on freestanding compilers.
4953 # On the NeXT, cc -E runs the code through the compiler's parser,
4954 # not just through cpp. "Syntax error" is here to catch this case.
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 #ifdef __STDC__
4958 # include <limits.h>
4959 #else
4960 # include <assert.h>
4961 #endif
4962 Syntax error
4963 _ACEOF
4964 if ac_fn_c_try_cpp "$LINENO"; then :
4966 else
4967 # Broken: fails on valid input.
4968 continue
4970 rm -f conftest.err conftest.$ac_ext
4972 # OK, works on sane cases. Now check whether nonexistent headers
4973 # can be detected and how.
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 #include <ac_nonexistent.h>
4977 _ACEOF
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4979 # Broken: success on invalid input.
4980 continue
4981 else
4982 # Passes both tests.
4983 ac_preproc_ok=:
4984 break
4986 rm -f conftest.err conftest.$ac_ext
4988 done
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then :
4993 else
4994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." "$LINENO" 5; }
5000 ac_ext=c
5001 ac_cpp='$CPP $CPPFLAGS'
5002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5008 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5009 if test "${ac_cv_path_GREP+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 if test -z "$GREP"; then
5013 ac_path_GREP_found=false
5014 # Loop through the user's path and test for each of PROGNAME-LIST
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_prog in grep ggrep; do
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5023 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5024 # Check for GNU ac_path_GREP and select it if it is found.
5025 # Check for GNU $ac_path_GREP
5026 case `"$ac_path_GREP" --version 2>&1` in
5027 *GNU*)
5028 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5030 ac_count=0
5031 $as_echo_n 0123456789 >"conftest.in"
5032 while :
5034 cat "conftest.in" "conftest.in" >"conftest.tmp"
5035 mv "conftest.tmp" "conftest.in"
5036 cp "conftest.in" "conftest.nl"
5037 $as_echo 'GREP' >> "conftest.nl"
5038 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040 as_fn_arith $ac_count + 1 && ac_count=$as_val
5041 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5042 # Best one so far, save it but keep looking for a better one
5043 ac_cv_path_GREP="$ac_path_GREP"
5044 ac_path_GREP_max=$ac_count
5046 # 10*(2^10) chars as input seems more than enough
5047 test $ac_count -gt 10 && break
5048 done
5049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5050 esac
5052 $ac_path_GREP_found && break 3
5053 done
5054 done
5055 done
5056 IFS=$as_save_IFS
5057 if test -z "$ac_cv_path_GREP"; then
5058 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5060 else
5061 ac_cv_path_GREP=$GREP
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5066 $as_echo "$ac_cv_path_GREP" >&6; }
5067 GREP="$ac_cv_path_GREP"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5071 $as_echo_n "checking for egrep... " >&6; }
5072 if test "${ac_cv_path_EGREP+set}" = set; then :
5073 $as_echo_n "(cached) " >&6
5074 else
5075 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5076 then ac_cv_path_EGREP="$GREP -E"
5077 else
5078 if test -z "$EGREP"; then
5079 ac_path_EGREP_found=false
5080 # Loop through the user's path and test for each of PROGNAME-LIST
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_prog in egrep; do
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5089 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5090 # Check for GNU ac_path_EGREP and select it if it is found.
5091 # Check for GNU $ac_path_EGREP
5092 case `"$ac_path_EGREP" --version 2>&1` in
5093 *GNU*)
5094 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5096 ac_count=0
5097 $as_echo_n 0123456789 >"conftest.in"
5098 while :
5100 cat "conftest.in" "conftest.in" >"conftest.tmp"
5101 mv "conftest.tmp" "conftest.in"
5102 cp "conftest.in" "conftest.nl"
5103 $as_echo 'EGREP' >> "conftest.nl"
5104 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5106 as_fn_arith $ac_count + 1 && ac_count=$as_val
5107 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5108 # Best one so far, save it but keep looking for a better one
5109 ac_cv_path_EGREP="$ac_path_EGREP"
5110 ac_path_EGREP_max=$ac_count
5112 # 10*(2^10) chars as input seems more than enough
5113 test $ac_count -gt 10 && break
5114 done
5115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5116 esac
5118 $ac_path_EGREP_found && break 3
5119 done
5120 done
5121 done
5122 IFS=$as_save_IFS
5123 if test -z "$ac_cv_path_EGREP"; then
5124 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5126 else
5127 ac_cv_path_EGREP=$EGREP
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5133 $as_echo "$ac_cv_path_EGREP" >&6; }
5134 EGREP="$ac_cv_path_EGREP"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5138 $as_echo_n "checking for ANSI C header files... " >&6; }
5139 if test "${ac_cv_header_stdc+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <stdlib.h>
5145 #include <stdarg.h>
5146 #include <string.h>
5147 #include <float.h>
5150 main ()
5154 return 0;
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_header_stdc=yes
5159 else
5160 ac_cv_header_stdc=no
5162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 if test $ac_cv_header_stdc = yes; then
5165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <string.h>
5170 _ACEOF
5171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5172 $EGREP "memchr" >/dev/null 2>&1; then :
5174 else
5175 ac_cv_header_stdc=no
5177 rm -f conftest*
5181 if test $ac_cv_header_stdc = yes; then
5182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <stdlib.h>
5187 _ACEOF
5188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189 $EGREP "free" >/dev/null 2>&1; then :
5191 else
5192 ac_cv_header_stdc=no
5194 rm -f conftest*
5198 if test $ac_cv_header_stdc = yes; then
5199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5200 if test "$cross_compiling" = yes; then :
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <ctype.h>
5206 #include <stdlib.h>
5207 #if ((' ' & 0x0FF) == 0x020)
5208 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5209 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5210 #else
5211 # define ISLOWER(c) \
5212 (('a' <= (c) && (c) <= 'i') \
5213 || ('j' <= (c) && (c) <= 'r') \
5214 || ('s' <= (c) && (c) <= 'z'))
5215 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5216 #endif
5218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5220 main ()
5222 int i;
5223 for (i = 0; i < 256; i++)
5224 if (XOR (islower (i), ISLOWER (i))
5225 || toupper (i) != TOUPPER (i))
5226 return 2;
5227 return 0;
5229 _ACEOF
5230 if ac_fn_c_try_run "$LINENO"; then :
5232 else
5233 ac_cv_header_stdc=no
5235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5236 conftest.$ac_objext conftest.beam conftest.$ac_ext
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5242 $as_echo "$ac_cv_header_stdc" >&6; }
5243 if test $ac_cv_header_stdc = yes; then
5245 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5251 inttypes.h stdint.h unistd.h
5252 do :
5253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5254 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5256 eval as_val=\$$as_ac_Header
5257 if test "x$as_val" = x""yes; then :
5258 cat >>confdefs.h <<_ACEOF
5259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5260 _ACEOF
5264 done
5268 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5269 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5270 MINIX=yes
5271 else
5272 MINIX=
5276 if test "$MINIX" = yes; then
5278 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5281 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5284 $as_echo "#define _MINIX 1" >>confdefs.h
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5290 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5291 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5297 # define __EXTENSIONS__ 1
5298 $ac_includes_default
5300 main ()
5304 return 0;
5306 _ACEOF
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_cv_safe_to_define___extensions__=yes
5309 else
5310 ac_cv_safe_to_define___extensions__=no
5312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5315 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5316 test $ac_cv_safe_to_define___extensions__ = yes &&
5317 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5319 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5321 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5323 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5325 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5328 ac_ext=c
5329 ac_cpp='$CPP $CPPFLAGS'
5330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5334 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5335 # On Suns, sometimes $CPP names a directory.
5336 if test -n "$CPP" && test -d "$CPP"; then
5337 CPP=
5339 if test -z "$CPP"; then
5340 if test "${ac_cv_prog_CPP+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 # Double quotes because CPP needs to be expanded
5344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5346 ac_preproc_ok=false
5347 for ac_c_preproc_warn_flag in '' yes
5349 # Use a header file that comes with gcc, so configuring glibc
5350 # with a fresh cross-compiler works.
5351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5352 # <limits.h> exists even on freestanding compilers.
5353 # On the NeXT, cc -E runs the code through the compiler's parser,
5354 # not just through cpp. "Syntax error" is here to catch this case.
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #ifdef __STDC__
5358 # include <limits.h>
5359 #else
5360 # include <assert.h>
5361 #endif
5362 Syntax error
5363 _ACEOF
5364 if ac_fn_c_try_cpp "$LINENO"; then :
5366 else
5367 # Broken: fails on valid input.
5368 continue
5370 rm -f conftest.err conftest.$ac_ext
5372 # OK, works on sane cases. Now check whether nonexistent headers
5373 # can be detected and how.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #include <ac_nonexistent.h>
5377 _ACEOF
5378 if ac_fn_c_try_cpp "$LINENO"; then :
5379 # Broken: success on invalid input.
5380 continue
5381 else
5382 # Passes both tests.
5383 ac_preproc_ok=:
5384 break
5386 rm -f conftest.err conftest.$ac_ext
5388 done
5389 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390 rm -f conftest.err conftest.$ac_ext
5391 if $ac_preproc_ok; then :
5392 break
5395 done
5396 ac_cv_prog_CPP=$CPP
5399 CPP=$ac_cv_prog_CPP
5400 else
5401 ac_cv_prog_CPP=$CPP
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5404 $as_echo "$CPP" >&6; }
5405 ac_preproc_ok=false
5406 for ac_c_preproc_warn_flag in '' yes
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 #ifdef __STDC__
5417 # include <limits.h>
5418 #else
5419 # include <assert.h>
5420 #endif
5421 Syntax error
5422 _ACEOF
5423 if ac_fn_c_try_cpp "$LINENO"; then :
5425 else
5426 # Broken: fails on valid input.
5427 continue
5429 rm -f conftest.err conftest.$ac_ext
5431 # OK, works on sane cases. Now check whether nonexistent headers
5432 # can be detected and how.
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <ac_nonexistent.h>
5436 _ACEOF
5437 if ac_fn_c_try_cpp "$LINENO"; then :
5438 # Broken: success on invalid input.
5439 continue
5440 else
5441 # Passes both tests.
5442 ac_preproc_ok=:
5443 break
5445 rm -f conftest.err conftest.$ac_ext
5447 done
5448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5449 rm -f conftest.err conftest.$ac_ext
5450 if $ac_preproc_ok; then :
5452 else
5453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5455 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details." "$LINENO" 5; }
5459 ac_ext=c
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5466 $as_echo_n "checking for inline... " >&6; }
5467 if test "${ac_cv_c_inline+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 ac_cv_c_inline=no
5471 for ac_kw in inline __inline__ __inline; do
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 #ifndef __cplusplus
5475 typedef int foo_t;
5476 static $ac_kw foo_t static_foo () {return 0; }
5477 $ac_kw foo_t foo () {return 0; }
5478 #endif
5480 _ACEOF
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 ac_cv_c_inline=$ac_kw
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 test "$ac_cv_c_inline" != no && break
5486 done
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5490 $as_echo "$ac_cv_c_inline" >&6; }
5492 case $ac_cv_c_inline in
5493 inline | yes) ;;
5495 case $ac_cv_c_inline in
5496 no) ac_val=;;
5497 *) ac_val=$ac_cv_c_inline;;
5498 esac
5499 cat >>confdefs.h <<_ACEOF
5500 #ifndef __cplusplus
5501 #define inline $ac_val
5502 #endif
5503 _ACEOF
5505 esac
5508 # Check whether --enable-largefile was given.
5509 if test "${enable_largefile+set}" = set; then :
5510 enableval=$enable_largefile;
5513 if test "$enable_largefile" != no; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5516 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5517 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 ac_cv_sys_largefile_CC=no
5521 if test "$GCC" != yes; then
5522 ac_save_CC=$CC
5523 while :; do
5524 # IRIX 6.2 and later do not support large files by default,
5525 # so use the C compiler's -n32 option if that helps.
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 #include <sys/types.h>
5529 /* Check that off_t can represent 2**63 - 1 correctly.
5530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5531 since some C++ compilers masquerading as C compilers
5532 incorrectly reject 9223372036854775807. */
5533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5535 && LARGE_OFF_T % 2147483647 == 1)
5536 ? 1 : -1];
5538 main ()
5542 return 0;
5544 _ACEOF
5545 if ac_fn_c_try_compile "$LINENO"; then :
5546 break
5548 rm -f core conftest.err conftest.$ac_objext
5549 CC="$CC -n32"
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 ac_cv_sys_largefile_CC=' -n32'; break
5553 rm -f core conftest.err conftest.$ac_objext
5554 break
5555 done
5556 CC=$ac_save_CC
5557 rm -f conftest.$ac_ext
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5561 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5562 if test "$ac_cv_sys_largefile_CC" != no; then
5563 CC=$CC$ac_cv_sys_largefile_CC
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5567 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5568 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 while :; do
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <sys/types.h>
5575 /* Check that off_t can represent 2**63 - 1 correctly.
5576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5577 since some C++ compilers masquerading as C compilers
5578 incorrectly reject 9223372036854775807. */
5579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5581 && LARGE_OFF_T % 2147483647 == 1)
5582 ? 1 : -1];
5584 main ()
5588 return 0;
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"; then :
5592 ac_cv_sys_file_offset_bits=no; break
5594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #define _FILE_OFFSET_BITS 64
5598 #include <sys/types.h>
5599 /* Check that off_t can represent 2**63 - 1 correctly.
5600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5601 since some C++ compilers masquerading as C compilers
5602 incorrectly reject 9223372036854775807. */
5603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5605 && LARGE_OFF_T % 2147483647 == 1)
5606 ? 1 : -1];
5608 main ()
5612 return 0;
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 ac_cv_sys_file_offset_bits=64; break
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 ac_cv_sys_file_offset_bits=unknown
5620 break
5621 done
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5624 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5625 case $ac_cv_sys_file_offset_bits in #(
5626 no | unknown) ;;
5628 cat >>confdefs.h <<_ACEOF
5629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5630 _ACEOF
5632 esac
5633 rm -rf conftest*
5634 if test $ac_cv_sys_file_offset_bits = unknown; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5636 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5637 if test "${ac_cv_sys_large_files+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 while :; do
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642 /* end confdefs.h. */
5643 #include <sys/types.h>
5644 /* Check that off_t can represent 2**63 - 1 correctly.
5645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5646 since some C++ compilers masquerading as C compilers
5647 incorrectly reject 9223372036854775807. */
5648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5650 && LARGE_OFF_T % 2147483647 == 1)
5651 ? 1 : -1];
5653 main ()
5657 return 0;
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661 ac_cv_sys_large_files=no; break
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 #define _LARGE_FILES 1
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5675 ? 1 : -1];
5677 main ()
5681 return 0;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_sys_large_files=1; break
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 ac_cv_sys_large_files=unknown
5689 break
5690 done
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5693 $as_echo "$ac_cv_sys_large_files" >&6; }
5694 case $ac_cv_sys_large_files in #(
5695 no | unknown) ;;
5697 cat >>confdefs.h <<_ACEOF
5698 #define _LARGE_FILES $ac_cv_sys_large_files
5699 _ACEOF
5701 esac
5702 rm -rf conftest*
5707 # sizeof(char) is 1 by definition.
5708 # The cast to long int works around a bug in the HP C Compiler
5709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5711 # This bug is HP SR number 8606223364.
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5713 $as_echo_n "checking size of void *... " >&6; }
5714 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5719 else
5720 if test "$ac_cv_type_void_p" = yes; then
5721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5723 { as_fn_set_status 77
5724 as_fn_error "cannot compute sizeof (void *)
5725 See \`config.log' for more details." "$LINENO" 5; }; }
5726 else
5727 ac_cv_sizeof_void_p=0
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5733 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5737 cat >>confdefs.h <<_ACEOF
5738 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5739 _ACEOF
5742 # The cast to long int works around a bug in the HP C Compiler
5743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5745 # This bug is HP SR number 8606223364.
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5747 $as_echo_n "checking size of short... " >&6; }
5748 if test "${ac_cv_sizeof_short+set}" = set; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5753 else
5754 if test "$ac_cv_type_short" = yes; then
5755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5757 { as_fn_set_status 77
5758 as_fn_error "cannot compute sizeof (short)
5759 See \`config.log' for more details." "$LINENO" 5; }; }
5760 else
5761 ac_cv_sizeof_short=0
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5767 $as_echo "$ac_cv_sizeof_short" >&6; }
5771 cat >>confdefs.h <<_ACEOF
5772 #define SIZEOF_SHORT $ac_cv_sizeof_short
5773 _ACEOF
5776 # The cast to long int works around a bug in the HP C Compiler
5777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5779 # This bug is HP SR number 8606223364.
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5781 $as_echo_n "checking size of int... " >&6; }
5782 if test "${ac_cv_sizeof_int+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5787 else
5788 if test "$ac_cv_type_int" = yes; then
5789 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5791 { as_fn_set_status 77
5792 as_fn_error "cannot compute sizeof (int)
5793 See \`config.log' for more details." "$LINENO" 5; }; }
5794 else
5795 ac_cv_sizeof_int=0
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5801 $as_echo "$ac_cv_sizeof_int" >&6; }
5805 cat >>confdefs.h <<_ACEOF
5806 #define SIZEOF_INT $ac_cv_sizeof_int
5807 _ACEOF
5810 # The cast to long int works around a bug in the HP C Compiler
5811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5813 # This bug is HP SR number 8606223364.
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5815 $as_echo_n "checking size of long... " >&6; }
5816 if test "${ac_cv_sizeof_long+set}" = set; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5821 else
5822 if test "$ac_cv_type_long" = yes; then
5823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5825 { as_fn_set_status 77
5826 as_fn_error "cannot compute sizeof (long)
5827 See \`config.log' for more details." "$LINENO" 5; }; }
5828 else
5829 ac_cv_sizeof_long=0
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5835 $as_echo "$ac_cv_sizeof_long" >&6; }
5839 cat >>confdefs.h <<_ACEOF
5840 #define SIZEOF_LONG $ac_cv_sizeof_long
5841 _ACEOF
5844 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5845 if test "x$ac_cv_type_long_long" = x""yes; then :
5847 cat >>confdefs.h <<_ACEOF
5848 #define HAVE_LONG_LONG 1
5849 _ACEOF
5851 # The cast to long int works around a bug in the HP C Compiler
5852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5854 # This bug is HP SR number 8606223364.
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5856 $as_echo_n "checking size of long long... " >&6; }
5857 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5862 else
5863 if test "$ac_cv_type_long_long" = yes; then
5864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5866 { as_fn_set_status 77
5867 as_fn_error "cannot compute sizeof (long long)
5868 See \`config.log' for more details." "$LINENO" 5; }; }
5869 else
5870 ac_cv_sizeof_long_long=0
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5876 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5880 cat >>confdefs.h <<_ACEOF
5881 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5882 _ACEOF
5887 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5888 case $ac_cv_c_int8_t in #(
5889 no|yes) ;; #(
5892 cat >>confdefs.h <<_ACEOF
5893 #define int8_t $ac_cv_c_int8_t
5894 _ACEOF
5896 esac
5898 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5899 case $ac_cv_c_int16_t in #(
5900 no|yes) ;; #(
5903 cat >>confdefs.h <<_ACEOF
5904 #define int16_t $ac_cv_c_int16_t
5905 _ACEOF
5907 esac
5909 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5910 case $ac_cv_c_int32_t in #(
5911 no|yes) ;; #(
5914 cat >>confdefs.h <<_ACEOF
5915 #define int32_t $ac_cv_c_int32_t
5916 _ACEOF
5918 esac
5920 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5921 case $ac_cv_c_int64_t in #(
5922 no|yes) ;; #(
5925 cat >>confdefs.h <<_ACEOF
5926 #define int64_t $ac_cv_c_int64_t
5927 _ACEOF
5929 esac
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5933 $as_echo_n "checking for long long int... " >&6; }
5934 if test "${ac_cv_type_long_long_int+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5940 /* For now, do not test the preprocessor; as of 2007 there are too many
5941 implementations with broken preprocessors. Perhaps this can
5942 be revisited in 2012. In the meantime, code should not expect
5943 #if to work with literals wider than 32 bits. */
5944 /* Test literals. */
5945 long long int ll = 9223372036854775807ll;
5946 long long int nll = -9223372036854775807LL;
5947 unsigned long long int ull = 18446744073709551615ULL;
5948 /* Test constant expressions. */
5949 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5950 ? 1 : -1)];
5951 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5952 ? 1 : -1)];
5953 int i = 63;
5955 main ()
5957 /* Test availability of runtime routines for shift and division. */
5958 long long int llmax = 9223372036854775807ll;
5959 unsigned long long int ullmax = 18446744073709551615ull;
5960 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5961 | (llmax / ll) | (llmax % ll)
5962 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5963 | (ullmax / ull) | (ullmax % ull));
5965 return 0;
5968 _ACEOF
5969 if ac_fn_c_try_link "$LINENO"; then :
5970 if test "$cross_compiling" = yes; then :
5971 ac_cv_type_long_long_int=yes
5972 else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 #include <limits.h>
5976 #ifndef LLONG_MAX
5977 # define HALF \
5978 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5979 # define LLONG_MAX (HALF - 1 + HALF)
5980 #endif
5982 main ()
5984 long long int n = 1;
5985 int i;
5986 for (i = 0; ; i++)
5988 long long int m = n << i;
5989 if (m >> i != n)
5990 return 1;
5991 if (LLONG_MAX / 2 < m)
5992 break;
5994 return 0;
5996 return 0;
5998 _ACEOF
5999 if ac_fn_c_try_run "$LINENO"; then :
6000 ac_cv_type_long_long_int=yes
6001 else
6002 ac_cv_type_long_long_int=no
6004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6005 conftest.$ac_objext conftest.beam conftest.$ac_ext
6008 else
6009 ac_cv_type_long_long_int=no
6011 rm -f core conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6015 $as_echo "$ac_cv_type_long_long_int" >&6; }
6016 if test $ac_cv_type_long_long_int = yes; then
6018 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6024 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6025 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6027 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6029 else
6030 test $ac_cv_type_long_long_int = yes \
6031 && ac_type='long long int' \
6032 || ac_type='long int'
6034 cat >>confdefs.h <<_ACEOF
6035 #define intmax_t $ac_type
6036 _ACEOF
6042 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6043 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6045 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6047 else
6048 for ac_type in 'int' 'long int' 'long long int'; do
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 $ac_includes_default
6053 main ()
6055 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6056 test_array [0] = 0
6059 return 0;
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6064 cat >>confdefs.h <<_ACEOF
6065 #define intptr_t $ac_type
6066 _ACEOF
6068 ac_type=
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 test -z "$ac_type" && break
6072 done
6076 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6077 case $ac_cv_c_uint8_t in #(
6078 no|yes) ;; #(
6081 $as_echo "#define _UINT8_T 1" >>confdefs.h
6084 cat >>confdefs.h <<_ACEOF
6085 #define uint8_t $ac_cv_c_uint8_t
6086 _ACEOF
6088 esac
6090 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6091 case $ac_cv_c_uint16_t in #(
6092 no|yes) ;; #(
6096 cat >>confdefs.h <<_ACEOF
6097 #define uint16_t $ac_cv_c_uint16_t
6098 _ACEOF
6100 esac
6102 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6103 case $ac_cv_c_uint32_t in #(
6104 no|yes) ;; #(
6107 $as_echo "#define _UINT32_T 1" >>confdefs.h
6110 cat >>confdefs.h <<_ACEOF
6111 #define uint32_t $ac_cv_c_uint32_t
6112 _ACEOF
6114 esac
6116 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6117 case $ac_cv_c_uint64_t in #(
6118 no|yes) ;; #(
6121 $as_echo "#define _UINT64_T 1" >>confdefs.h
6124 cat >>confdefs.h <<_ACEOF
6125 #define uint64_t $ac_cv_c_uint64_t
6126 _ACEOF
6128 esac
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6132 $as_echo_n "checking for unsigned long long int... " >&6; }
6133 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6135 else
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6139 /* For now, do not test the preprocessor; as of 2007 there are too many
6140 implementations with broken preprocessors. Perhaps this can
6141 be revisited in 2012. In the meantime, code should not expect
6142 #if to work with literals wider than 32 bits. */
6143 /* Test literals. */
6144 long long int ll = 9223372036854775807ll;
6145 long long int nll = -9223372036854775807LL;
6146 unsigned long long int ull = 18446744073709551615ULL;
6147 /* Test constant expressions. */
6148 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6149 ? 1 : -1)];
6150 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6151 ? 1 : -1)];
6152 int i = 63;
6154 main ()
6156 /* Test availability of runtime routines for shift and division. */
6157 long long int llmax = 9223372036854775807ll;
6158 unsigned long long int ullmax = 18446744073709551615ull;
6159 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6160 | (llmax / ll) | (llmax % ll)
6161 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6162 | (ullmax / ull) | (ullmax % ull));
6164 return 0;
6167 _ACEOF
6168 if ac_fn_c_try_link "$LINENO"; then :
6169 ac_cv_type_unsigned_long_long_int=yes
6170 else
6171 ac_cv_type_unsigned_long_long_int=no
6173 rm -f core conftest.err conftest.$ac_objext \
6174 conftest$ac_exeext conftest.$ac_ext
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6177 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6178 if test $ac_cv_type_unsigned_long_long_int = yes; then
6180 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6186 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6189 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6191 else
6192 test $ac_cv_type_unsigned_long_long_int = yes \
6193 && ac_type='unsigned long long int' \
6194 || ac_type='unsigned long int'
6196 cat >>confdefs.h <<_ACEOF
6197 #define uintmax_t $ac_type
6198 _ACEOF
6204 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6205 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6207 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6209 else
6210 for ac_type in 'unsigned int' 'unsigned long int' \
6211 'unsigned long long int'; do
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 $ac_includes_default
6216 main ()
6218 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6219 test_array [0] = 0
6222 return 0;
6224 _ACEOF
6225 if ac_fn_c_try_compile "$LINENO"; then :
6227 cat >>confdefs.h <<_ACEOF
6228 #define uintptr_t $ac_type
6229 _ACEOF
6231 ac_type=
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234 test -z "$ac_type" && break
6235 done
6251 if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
6252 as_fn_error "uint64_t or int64_t not found" "$LINENO" 5
6255 # check what underlying integer type int64_t uses
6256 ac_ext=cpp
6257 ac_cpp='$CXXCPP $CPPFLAGS'
6258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6264 $as_echo_n "checking for int64_t underlying type... " >&6; }
6265 if test "${ac_cv_int64_t_type+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6272 #ifdef HAVE_STDINT_H
6273 #include <stdint.h>
6274 #endif
6275 template <typename T> struct X { };
6276 template <>
6277 struct X<long> { typedef long t; };
6280 main ()
6282 X<int64_t>::t x;
6284 return 0;
6286 _ACEOF
6287 if ac_fn_cxx_try_compile "$LINENO"; then :
6288 ac_cv_int64_t_type=long
6289 else
6290 ac_cv_int64_t_type="long long"
6292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6295 $as_echo "$ac_cv_int64_t_type" >&6; }
6296 if test "$ac_cv_int64_t_type" = "long"; then
6298 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6300 else
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6304 #ifdef HAVE_STDINT_H
6305 #include <stdint.h>
6306 #endif
6307 template <typename T> struct X { };
6308 template <>
6309 struct X<long long> { typedef long long t; };
6312 main ()
6314 X<int64_t>::t x;
6316 return 0;
6318 _ACEOF
6319 if ac_fn_cxx_try_compile "$LINENO"; then :
6321 else
6322 as_fn_error "error verifying int64_t uses long long" "$LINENO" 5
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_ext=c
6327 ac_cpp='$CPP $CPPFLAGS'
6328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336 # ---------------------
6337 # Warnings and checking
6338 # ---------------------
6340 # Check $CC warning features (if it's GCC).
6341 # We want to use -pedantic, but we don't want warnings about
6342 # * 'long long'
6343 # * variadic macros
6344 # * overlong strings
6345 # * C++11 narrowing conversions in { }
6346 # So, we only use -pedantic if we can disable those warnings.
6348 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6349 # Check whether --enable-build-format-warnings was given.
6350 if test "${enable_build_format_warnings+set}" = set; then :
6351 enableval=$enable_build_format_warnings;
6352 else
6353 enable_build_format_warnings=yes
6356 if test $enable_build_format_warnings = no; then :
6357 wf_opt=-Wno-format
6358 else
6359 wf_opt=
6361 loose_warn=
6362 save_CFLAGS="$CFLAGS"
6363 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6364 # Do the check with the no- prefix removed since gcc silently
6365 # accepts any -Wno-* option on purpose
6366 case $real_option in
6367 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6368 *) option=$real_option ;;
6369 esac
6370 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6373 $as_echo_n "checking whether $CC supports $option... " >&6; }
6374 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 CFLAGS="$option"
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6382 main ()
6386 return 0;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 eval "$as_acx_Woption=yes"
6391 else
6392 eval "$as_acx_Woption=no"
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 eval ac_res=\$$as_acx_Woption
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6399 $as_echo "$ac_res" >&6; }
6400 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6401 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6403 done
6404 CFLAGS="$save_CFLAGS"
6406 c_loose_warn=
6407 save_CFLAGS="$CFLAGS"
6408 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6409 # Do the check with the no- prefix removed since gcc silently
6410 # accepts any -Wno-* option on purpose
6411 case $real_option in
6412 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6413 *) option=$real_option ;;
6414 esac
6415 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6418 $as_echo_n "checking whether $CC supports $option... " >&6; }
6419 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 CFLAGS="$option"
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6427 main ()
6431 return 0;
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"; then :
6435 eval "$as_acx_Woption=yes"
6436 else
6437 eval "$as_acx_Woption=no"
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 eval ac_res=\$$as_acx_Woption
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6444 $as_echo "$ac_res" >&6; }
6445 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6446 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6448 done
6449 CFLAGS="$save_CFLAGS"
6451 strict_warn=
6452 save_CFLAGS="$CFLAGS"
6453 for real_option in -Wmissing-format-attribute; do
6454 # Do the check with the no- prefix removed since gcc silently
6455 # accepts any -Wno-* option on purpose
6456 case $real_option in
6457 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6458 *) option=$real_option ;;
6459 esac
6460 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6463 $as_echo_n "checking whether $CC supports $option... " >&6; }
6464 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 CFLAGS="$option"
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 main ()
6476 return 0;
6478 _ACEOF
6479 if ac_fn_c_try_compile "$LINENO"; then :
6480 eval "$as_acx_Woption=yes"
6481 else
6482 eval "$as_acx_Woption=no"
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 eval ac_res=\$$as_acx_Woption
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6489 $as_echo "$ac_res" >&6; }
6490 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6491 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6493 done
6494 CFLAGS="$save_CFLAGS"
6496 save_CFLAGS="$CFLAGS"
6497 for real_option in -Woverloaded-virtual; do
6498 # Do the check with the no- prefix removed since gcc silently
6499 # accepts any -Wno-* option on purpose
6500 case $real_option in
6501 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6502 *) option=$real_option ;;
6503 esac
6504 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6507 $as_echo_n "checking whether $CC supports $option... " >&6; }
6508 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 CFLAGS="$option"
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6516 main ()
6520 return 0;
6522 _ACEOF
6523 if ac_fn_c_try_compile "$LINENO"; then :
6524 eval "$as_acx_Woption=yes"
6525 else
6526 eval "$as_acx_Woption=no"
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 eval ac_res=\$$as_acx_Woption
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6533 $as_echo "$ac_res" >&6; }
6534 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6535 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6537 done
6538 CFLAGS="$save_CFLAGS"
6540 c_strict_warn=
6541 save_CFLAGS="$CFLAGS"
6542 for real_option in -Wold-style-definition -Wc++-compat; do
6543 # Do the check with the no- prefix removed since gcc silently
6544 # accepts any -Wno-* option on purpose
6545 case $real_option in
6546 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6547 *) option=$real_option ;;
6548 esac
6549 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6552 $as_echo_n "checking whether $CC supports $option... " >&6; }
6553 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 CFLAGS="$option"
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6561 main ()
6565 return 0;
6567 _ACEOF
6568 if ac_fn_c_try_compile "$LINENO"; then :
6569 eval "$as_acx_Woption=yes"
6570 else
6571 eval "$as_acx_Woption=no"
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 eval ac_res=\$$as_acx_Woption
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6578 $as_echo "$ac_res" >&6; }
6579 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6580 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6582 done
6583 CFLAGS="$save_CFLAGS"
6585 # Do the check with the no- prefix removed from the warning options
6586 # since gcc silently accepts any -Wno-* option on purpose
6587 if test "$GCC" = yes; then :
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6589 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6590 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593 save_CFLAGS="$CFLAGS"
6594 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6599 main ()
6603 return 0;
6605 _ACEOF
6606 if ac_fn_c_try_compile "$LINENO"; then :
6607 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6608 else
6609 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 CFLAGS="$save_CFLAGS"
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6615 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6616 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6617 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6622 # Check whether --enable-werror-always was given.
6623 if test "${enable_werror_always+set}" = set; then :
6624 enableval=$enable_werror_always;
6625 else
6626 enable_werror_always=no
6629 if test $enable_werror_always = yes; then :
6630 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6635 # The above macros do nothing if the compiler is not GCC. However, the
6636 # Makefile has more goo to add other flags, so these variables are used
6637 # to enable warnings only for GCC.
6638 warn_cflags=
6639 warn_cxxflags=
6640 if test "x$GCC" = "xyes"; then
6641 warn_cflags='$(GCC_WARN_CFLAGS)'
6642 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6647 # Disable exceptions and RTTI if building with g++
6648 noexception_flags=
6649 save_CFLAGS="$CFLAGS"
6650 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6651 # Do the check with the no- prefix removed since gcc silently
6652 # accepts any -Wno-* option on purpose
6653 case $real_option in
6654 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6655 *) option=$real_option ;;
6656 esac
6657 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6660 $as_echo_n "checking whether $CC supports $option... " >&6; }
6661 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6662 $as_echo_n "(cached) " >&6
6663 else
6664 CFLAGS="$option"
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6669 main ()
6673 return 0;
6675 _ACEOF
6676 if ac_fn_c_try_compile "$LINENO"; then :
6677 eval "$as_acx_Woption=yes"
6678 else
6679 eval "$as_acx_Woption=no"
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 eval ac_res=\$$as_acx_Woption
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6686 $as_echo "$ac_res" >&6; }
6687 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6688 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6690 done
6691 CFLAGS="$save_CFLAGS"
6694 # Enable expensive internal checks
6695 is_release=
6696 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6697 is_release=yes
6700 # Check whether --enable-checking was given.
6701 if test "${enable_checking+set}" = set; then :
6702 enableval=$enable_checking; ac_checking_flags="${enableval}"
6703 else
6705 # Determine the default checks.
6706 if test x$is_release = x ; then
6707 ac_checking_flags=yes
6708 else
6709 ac_checking_flags=release
6713 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6714 for check in release $ac_checking_flags
6716 case $check in
6717 # these set all the flags to specific states
6718 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6719 ac_fold_checking= ; ac_gc_checking=1 ;
6720 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6721 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6722 ac_tree_checking=1 ; ac_valgrind_checking= ;
6723 ac_types_checking=1 ;;
6724 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6725 ac_fold_checking= ; ac_gc_checking= ;
6726 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6727 ac_rtlflag_checking= ; ac_runtime_checking= ;
6728 ac_tree_checking= ; ac_valgrind_checking= ;
6729 ac_types_checking= ;;
6730 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6731 ac_fold_checking=1 ; ac_gc_checking=1 ;
6732 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6733 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6734 ac_tree_checking=1 ; ac_valgrind_checking= ;
6735 ac_types_checking=1 ;;
6736 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6737 ac_fold_checking= ; ac_gc_checking= ;
6738 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6739 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6740 ac_tree_checking= ; ac_valgrind_checking= ;
6741 ac_types_checking= ;;
6742 # these enable particular checks
6743 assert) ac_assert_checking=1 ;;
6744 df) ac_df_checking=1 ;;
6745 fold) ac_fold_checking=1 ;;
6746 gc) ac_gc_checking=1 ;;
6747 gcac) ac_gc_always_collect=1 ;;
6748 gimple) ac_gimple_checking=1 ;;
6749 misc) ac_checking=1 ;;
6750 rtl) ac_rtl_checking=1 ;;
6751 rtlflag) ac_rtlflag_checking=1 ;;
6752 runtime) ac_runtime_checking=1 ;;
6753 tree) ac_tree_checking=1 ;;
6754 types) ac_types_checking=1 ;;
6755 valgrind) ac_valgrind_checking=1 ;;
6756 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6757 esac
6758 done
6759 IFS="$ac_save_IFS"
6761 nocommon_flag=""
6762 if test x$ac_checking != x ; then
6764 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6766 nocommon_flag=-fno-common
6769 if test x$ac_df_checking != x ; then
6771 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6774 if test x$ac_assert_checking != x ; then
6776 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6779 if test x$ac_gimple_checking != x ; then
6781 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6785 if test x$ac_runtime_checking != x ; then
6787 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6790 if test x$ac_tree_checking != x ; then
6792 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6794 TREEBROWSER=tree-browser.o
6795 TREECHECKING=yes
6797 if test x$ac_types_checking != x ; then
6799 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6804 if test x$ac_rtl_checking != x ; then
6806 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6809 if test x$ac_rtlflag_checking != x ; then
6811 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6814 if test x$ac_gc_checking != x ; then
6816 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6819 if test x$ac_gc_always_collect != x ; then
6821 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6824 if test x$ac_fold_checking != x ; then
6826 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6829 valgrind_path_defines=
6830 valgrind_command=
6832 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6833 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6834 have_valgrind_h=yes
6835 else
6836 have_valgrind_h=no
6841 # It is certainly possible that there's valgrind but no valgrind.h.
6842 # GCC relies on making annotations so we must have both.
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6844 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 #include <valgrind/memcheck.h>
6848 #ifndef VALGRIND_DISCARD
6849 #error VALGRIND_DISCARD not defined
6850 #endif
6851 _ACEOF
6852 if ac_fn_c_try_cpp "$LINENO"; then :
6853 gcc_cv_header_valgrind_memcheck_h=yes
6854 else
6855 gcc_cv_header_valgrind_memcheck_h=no
6857 rm -f conftest.err conftest.$ac_ext
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6859 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6861 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #include <memcheck.h>
6865 #ifndef VALGRIND_DISCARD
6866 #error VALGRIND_DISCARD not defined
6867 #endif
6868 _ACEOF
6869 if ac_fn_c_try_cpp "$LINENO"; then :
6870 gcc_cv_header_memcheck_h=yes
6871 else
6872 gcc_cv_header_memcheck_h=no
6874 rm -f conftest.err conftest.$ac_ext
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6876 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6877 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6879 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6882 if test $gcc_cv_header_memcheck_h = yes; then
6884 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6888 if test x$ac_valgrind_checking != x ; then
6890 # Prepare PATH_SEPARATOR.
6891 # The user is always right.
6892 if test "${PATH_SEPARATOR+set}" != set; then
6893 echo "#! /bin/sh" >conf$$.sh
6894 echo "exit 0" >>conf$$.sh
6895 chmod +x conf$$.sh
6896 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6897 PATH_SEPARATOR=';'
6898 else
6899 PATH_SEPARATOR=:
6901 rm -f conf$$.sh
6904 # Find out how to test for executable files. Don't use a zero-byte file,
6905 # as systems may use methods other than mode bits to determine executability.
6906 cat >conf$$.file <<_ASEOF
6907 #! /bin/sh
6908 exit 0
6909 _ASEOF
6910 chmod +x conf$$.file
6911 if test -x conf$$.file >/dev/null 2>&1; then
6912 ac_executable_p="test -x"
6913 else
6914 ac_executable_p="test -f"
6916 rm -f conf$$.file
6918 # Extract the first word of "valgrind", so it can be a program name with args.
6919 set dummy valgrind; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 case "$valgrind_path" in
6926 [\\/]* | ?:[\\/]*)
6927 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6930 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6931 for ac_dir in $PATH; do
6932 IFS="$ac_save_IFS"
6933 test -z "$ac_dir" && ac_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6936 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6937 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6938 break 2
6941 done
6942 done
6943 IFS="$ac_save_IFS"
6945 esac
6947 valgrind_path="$ac_cv_path_valgrind_path"
6948 if test -n "$valgrind_path"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6950 $as_echo "$valgrind_path" >&6; }
6951 else
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6956 if test "x$valgrind_path" = "x" \
6957 || (test $have_valgrind_h = no \
6958 && test $gcc_cv_header_memcheck_h = no \
6959 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6960 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6962 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6963 valgrind_command="$valgrind_path -q"
6965 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6971 # Enable code coverage collection
6972 # Check whether --enable-coverage was given.
6973 if test "${enable_coverage+set}" = set; then :
6974 enableval=$enable_coverage; case "${enableval}" in
6975 yes|noopt)
6976 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6978 opt)
6979 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6982 # a.k.a. --disable-coverage
6983 coverage_flags=""
6986 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6988 esac
6989 else
6990 coverage_flags=""
6995 # Check whether --enable-gather-detailed-mem-stats was given.
6996 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6997 enableval=$enable_gather_detailed_mem_stats;
6998 else
6999 enable_gather_detailed_mem_stats=no
7002 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7004 cat >>confdefs.h <<_ACEOF
7005 #define GATHER_STATISTICS $gather_stats
7006 _ACEOF
7009 # Check whether --enable-valgrind-annotations was given.
7010 if test "${enable_valgrind_annotations+set}" = set; then :
7011 enableval=$enable_valgrind_annotations;
7012 else
7013 enable_valgrind_annotations=no
7016 if test x$enable_valgrind_annotations != xno \
7017 || test x$ac_valgrind_checking != x; then
7018 if (test $have_valgrind_h = no \
7019 && test $gcc_cv_header_memcheck_h = no \
7020 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7021 as_fn_error "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7024 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7028 # -------------------------------
7029 # Miscenalleous configure options
7030 # -------------------------------
7032 # With stabs
7034 # Check whether --with-stabs was given.
7035 if test "${with_stabs+set}" = set; then :
7036 withval=$with_stabs; stabs="$with_stabs"
7037 else
7038 stabs=no
7042 # Determine whether or not multilibs are enabled.
7043 # Check whether --enable-multilib was given.
7044 if test "${enable_multilib+set}" = set; then :
7045 enableval=$enable_multilib;
7046 else
7047 enable_multilib=yes
7052 # Determine whether or not multiarch is enabled.
7053 # Check whether --enable-multiarch was given.
7054 if test "${enable_multiarch+set}" = set; then :
7055 enableval=$enable_multiarch; case "${enableval}" in
7056 yes|no|auto) enable_multiarch=$enableval;;
7057 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7058 esac
7059 else
7060 enable_multiarch=auto
7063 if test x${enable_multiarch} = xauto; then
7064 if test x${with_native_system_header_dir} != x; then
7065 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
7066 enable_multiarch=no
7068 if test x$host != x$target && test "x$with_sysroot" = x; then
7069 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
7070 enable_multiarch=no
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7074 $as_echo_n "checking for multiarch configuration... " >&6; }
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7077 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7079 # needed for setting the multiarch name for soft-float/hard-float ABIs
7083 # Enable __cxa_atexit for C++.
7084 # Check whether --enable-__cxa_atexit was given.
7085 if test "${enable___cxa_atexit+set}" = set; then :
7086 enableval=$enable___cxa_atexit;
7090 # Enable C extension for decimal float if target supports it.
7092 # Check whether --enable-decimal-float was given.
7093 if test "${enable_decimal_float+set}" = set; then :
7094 enableval=$enable_decimal_float;
7095 case $enable_decimal_float in
7096 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7097 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7098 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7099 esac
7101 else
7103 case $target in
7104 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7105 i?86*-*-gnu* | \
7106 i?86*-*-mingw* | x86_64*-*-mingw* | \
7107 i?86*-*-cygwin* | x86_64*-*-cygwin*)
7108 enable_decimal_float=yes
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7112 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7113 enable_decimal_float=no
7115 esac
7120 # x86's use BID format instead of DPD
7121 case x$enable_decimal_float in
7122 xyes)
7123 case $target in
7124 i?86*-*-* | x86_64*-*-*)
7125 enable_decimal_float=bid
7128 enable_decimal_float=dpd
7130 esac
7131 default_decimal_float=$enable_decimal_float
7133 xno)
7134 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7135 # dependency on libdecnumber.
7136 default_decimal_float=dpd
7138 esac
7143 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7145 cat >>confdefs.h <<_ACEOF
7146 #define ENABLE_DECIMAL_FLOAT $dfp
7147 _ACEOF
7150 # Use default_decimal_float for dependency.
7151 enable_decimal_float=$default_decimal_float
7153 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7155 cat >>confdefs.h <<_ACEOF
7156 #define ENABLE_DECIMAL_BID_FORMAT $bid
7157 _ACEOF
7160 # Enable C extension for fixed-point arithmetic.
7161 # Check whether --enable-fixed-point was given.
7162 if test "${enable_fixed_point+set}" = set; then :
7163 enableval=$enable_fixed_point;
7164 else
7166 case $target in
7167 arm*)
7168 enable_fixed_point=yes
7171 mips*-*-*)
7172 enable_fixed_point=yes
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7176 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7177 enable_fixed_point=no
7179 esac
7185 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7187 cat >>confdefs.h <<_ACEOF
7188 #define ENABLE_FIXED_POINT $fixedpoint
7189 _ACEOF
7192 # Enable threads
7193 # Pass with no value to take the default
7194 # Pass with a value to specify a thread package
7195 # Check whether --enable-threads was given.
7196 if test "${enable_threads+set}" = set; then :
7197 enableval=$enable_threads;
7198 else
7199 enable_threads=''
7203 # Check whether --enable-tls was given.
7204 if test "${enable_tls+set}" = set; then :
7205 enableval=$enable_tls;
7206 case $enable_tls in
7207 yes | no) ;;
7208 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7209 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7210 esac
7212 else
7213 enable_tls=''
7217 # Check whether --enable-objc-gc was given.
7218 if test "${enable_objc_gc+set}" = set; then :
7219 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7220 objc_boehm_gc=''
7221 else
7222 objc_boehm_gc=1
7224 else
7225 objc_boehm_gc=''
7230 # Check whether --with-dwarf2 was given.
7231 if test "${with_dwarf2+set}" = set; then :
7232 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7233 else
7234 dwarf2=no
7238 # Check whether --enable-shared was given.
7239 if test "${enable_shared+set}" = set; then :
7240 enableval=$enable_shared;
7241 case $enable_shared in
7242 yes | no) ;;
7244 enable_shared=no
7245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7246 for pkg in $enableval; do
7247 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7248 enable_shared=yes
7250 done
7251 IFS="$ac_save_ifs"
7253 esac
7255 else
7256 enable_shared=yes
7262 # Check whether --with-native-system-header-dir was given.
7263 if test "${with_native_system_header_dir+set}" = set; then :
7264 withval=$with_native_system_header_dir;
7265 case ${with_native_system_header_dir} in
7266 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7267 /* | [A-Za-z]:[\\/]*) ;;
7268 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7269 esac
7270 configured_native_system_header_dir="${withval}"
7272 else
7273 configured_native_system_header_dir=
7278 # Check whether --with-build-sysroot was given.
7279 if test "${with_build_sysroot+set}" = set; then :
7280 withval=$with_build_sysroot; if test x"$withval" != x ; then
7281 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7283 else
7284 SYSROOT_CFLAGS_FOR_TARGET=
7289 if test "x$prefix" = xNONE; then
7290 test_prefix=/usr/local
7291 else
7292 test_prefix=$prefix
7294 if test "x$exec_prefix" = xNONE; then
7295 test_exec_prefix=$test_prefix
7296 else
7297 test_exec_prefix=$exec_prefix
7301 # Check whether --with-sysroot was given.
7302 if test "${with_sysroot+set}" = set; then :
7303 withval=$with_sysroot;
7304 case ${with_sysroot} in
7305 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7306 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7307 esac
7309 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7310 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7312 case ${TARGET_SYSTEM_ROOT} in
7313 "${test_prefix}"|"${test_prefix}/"*|\
7314 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7315 '${prefix}'|'${prefix}/'*|\
7316 '${exec_prefix}'|'${exec_prefix}/'*)
7317 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7318 TARGET_SYSTEM_ROOT_DEFINE="$t"
7320 esac
7322 else
7324 TARGET_SYSTEM_ROOT=
7325 TARGET_SYSTEM_ROOT_DEFINE=
7326 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7335 # Check whether --with-specs was given.
7336 if test "${with_specs+set}" = set; then :
7337 withval=$with_specs; CONFIGURE_SPECS=$withval
7338 else
7339 CONFIGURE_SPECS=
7347 # Check whether --with-pkgversion was given.
7348 if test "${with_pkgversion+set}" = set; then :
7349 withval=$with_pkgversion; case "$withval" in
7350 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7351 no) PKGVERSION= ;;
7352 *) PKGVERSION="($withval) " ;;
7353 esac
7354 else
7355 PKGVERSION="(GCC) "
7363 # Check whether --with-bugurl was given.
7364 if test "${with_bugurl+set}" = set; then :
7365 withval=$with_bugurl; case "$withval" in
7366 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7367 no) BUGURL=
7369 *) BUGURL="$withval"
7371 esac
7372 else
7373 BUGURL="http://gcc.gnu.org/bugs.html"
7377 case ${BUGURL} in
7379 REPORT_BUGS_TO=
7380 REPORT_BUGS_TEXI=
7383 REPORT_BUGS_TO="<$BUGURL>"
7384 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7386 esac;
7391 # Sanity check enable_languages in case someone does not run the toplevel
7392 # configure # script.
7393 # Check whether --enable-languages was given.
7394 if test "${enable_languages+set}" = set; then :
7395 enableval=$enable_languages; case ,${enable_languages}, in
7396 ,,|,yes,)
7397 # go safe -- we cannot be much sure without the toplevel
7398 # configure's
7399 # analysis of which target libs are present and usable
7400 enable_languages=c
7402 *,all,*)
7403 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7405 *,c,*)
7408 enable_languages=c,${enable_languages}
7410 esac
7411 else
7412 enable_languages=c
7416 # Check whether --enable-as-accelerator-for was given.
7417 if test "${enable_as_accelerator_for+set}" = set; then :
7418 enableval=$enable_as_accelerator_for;
7420 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7422 enable_as_accelerator=yes
7423 sedscript="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7424 program_transform_name=`echo $program_transform_name | sed $sedscript`
7425 accel_dir_suffix=/accel/${target_noncanonical}
7426 real_target_noncanonical=${enable_as_accelerator_for}
7428 else
7429 enable_as_accelerator=no
7434 # Check whether --enable-offload-targets was given.
7435 if test "${enable_offload_targets+set}" = set; then :
7436 enableval=$enable_offload_targets;
7437 if test x"$enable_offload_targets" = x; then
7438 as_fn_error "no offload targets specified" "$LINENO" 5
7441 else
7442 enable_offload_targets=
7445 enable_offload_targets=`echo "$enable_offload_targets" | sed -e 's#,#:#g'`
7447 cat >>confdefs.h <<_ACEOF
7448 #define OFFLOAD_TARGETS "$enable_offload_targets"
7449 _ACEOF
7451 if test x"$enable_offload_targets" != x; then
7453 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7458 # Check whether --with-multilib-list was given.
7459 if test "${with_multilib_list+set}" = set; then :
7460 withval=$with_multilib_list; :
7461 else
7462 with_multilib_list=default
7466 # -------------------------
7467 # Checks for other programs
7468 # -------------------------
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7471 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7472 set x ${MAKE-make}
7473 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7474 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 cat >conftest.make <<\_ACEOF
7478 SHELL = /bin/sh
7479 all:
7480 @echo '@@@%%%=$(MAKE)=@@@%%%'
7481 _ACEOF
7482 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7483 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7484 *@@@%%%=?*=@@@%%%*)
7485 eval ac_cv_prog_make_${ac_make}_set=yes;;
7487 eval ac_cv_prog_make_${ac_make}_set=no;;
7488 esac
7489 rm -f conftest.make
7491 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7493 $as_echo "yes" >&6; }
7494 SET_MAKE=
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 SET_MAKE="MAKE=${MAKE-make}"
7502 # Find some useful tools
7503 for ac_prog in gawk mawk nawk awk
7505 # Extract the first word of "$ac_prog", so it can be a program name with args.
7506 set dummy $ac_prog; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if test "${ac_cv_prog_AWK+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$AWK"; then
7513 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_prog_AWK="$ac_prog"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7526 done
7527 done
7528 IFS=$as_save_IFS
7532 AWK=$ac_cv_prog_AWK
7533 if test -n "$AWK"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7535 $as_echo "$AWK" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7542 test -n "$AWK" && break
7543 done
7545 # We need awk to create options.c and options.h.
7546 # Bail out if it's missing.
7547 case ${AWK} in
7548 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7549 esac
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7552 $as_echo_n "checking whether ln -s works... " >&6; }
7553 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 rm -f conftestdata_t
7557 echo >conftestdata_f
7558 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7559 then
7560 gcc_cv_prog_LN_S="ln -s"
7561 else
7562 if ln conftestdata_f conftestdata_t 2>/dev/null
7563 then
7564 gcc_cv_prog_LN_S=ln
7565 else
7566 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7567 then
7568 gcc_cv_prog_LN_S="cp -p"
7569 else
7570 gcc_cv_prog_LN_S=cp
7574 rm -f conftestdata_f conftestdata_t
7577 LN_S="$gcc_cv_prog_LN_S"
7578 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7580 $as_echo "yes" >&6; }
7581 else
7582 if test "$gcc_cv_prog_LN_S" = "ln"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7584 $as_echo "no, using ln" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7587 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7592 $as_echo_n "checking whether ln works... " >&6; }
7593 if test "${acx_cv_prog_LN+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 rm -f conftestdata_t
7597 echo >conftestdata_f
7598 if ln conftestdata_f conftestdata_t 2>/dev/null
7599 then
7600 acx_cv_prog_LN=ln
7601 else
7602 acx_cv_prog_LN=no
7604 rm -f conftestdata_f conftestdata_t
7607 if test $acx_cv_prog_LN = no; then
7608 LN="$LN_S"
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7610 $as_echo "no, using $LN" >&6; }
7611 else
7612 LN="$acx_cv_prog_LN"
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7614 $as_echo "yes" >&6; }
7617 if test -n "$ac_tool_prefix"; then
7618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 if test -n "$RANLIB"; then
7626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7639 done
7640 done
7641 IFS=$as_save_IFS
7645 RANLIB=$ac_cv_prog_RANLIB
7646 if test -n "$RANLIB"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7648 $as_echo "$RANLIB" >&6; }
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7656 if test -z "$ac_cv_prog_RANLIB"; then
7657 ac_ct_RANLIB=$RANLIB
7658 # Extract the first word of "ranlib", so it can be a program name with args.
7659 set dummy ranlib; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$ac_ct_RANLIB"; then
7666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_ac_ct_RANLIB="ranlib"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7686 if test -n "$ac_ct_RANLIB"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7688 $as_echo "$ac_ct_RANLIB" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7694 if test "x$ac_ct_RANLIB" = x; then
7695 RANLIB=":"
7696 else
7697 case $cross_compiling:$ac_tool_warned in
7698 yes:)
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701 ac_tool_warned=yes ;;
7702 esac
7703 RANLIB=$ac_ct_RANLIB
7705 else
7706 RANLIB="$ac_cv_prog_RANLIB"
7709 ranlib_flags=""
7712 # Find a good install program. We prefer a C program (faster),
7713 # so one script is as good as another. But avoid the broken or
7714 # incompatible versions:
7715 # SysV /etc/install, /usr/sbin/install
7716 # SunOS /usr/etc/install
7717 # IRIX /sbin/install
7718 # AIX /bin/install
7719 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7720 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7721 # ./install, which can be erroneously created by make from ./install.sh.
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7723 $as_echo_n "checking for a BSD compatible install... " >&6; }
7724 if test -z "$INSTALL"; then
7725 if test "${ac_cv_path_install+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7729 for ac_dir in $PATH; do
7730 # Account for people who put trailing slashes in PATH elements.
7731 case "$ac_dir/" in
7732 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7734 # OSF1 and SCO ODT 3.0 have their own names for install.
7735 for ac_prog in ginstall scoinst install; do
7736 if test -f $ac_dir/$ac_prog; then
7737 if test $ac_prog = install &&
7738 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7739 # AIX install. It has an incompatible calling convention.
7740 # OSF/1 installbsd also uses dspmsg, but is usable.
7742 else
7743 ac_cv_path_install="$ac_dir/$ac_prog -c"
7744 break 2
7747 done
7749 esac
7750 done
7751 IFS="$ac_save_IFS"
7754 if test "${ac_cv_path_install+set}" = set; then
7755 INSTALL="$ac_cv_path_install"
7756 else
7757 # As a last resort, use the slow shell script. We don't cache a
7758 # path for INSTALL within a source directory, because that will
7759 # break other packages using the cache if that directory is
7760 # removed, or if the path is relative.
7761 INSTALL="$ac_install_sh"
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7765 $as_echo "$INSTALL" >&6; }
7767 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7768 # It thinks the first close brace ends the variable substitution.
7769 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7774 # See if cmp has --ignore-initial.
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7776 $as_echo_n "checking for cmp's capabilities... " >&6; }
7777 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 echo abfoo >t1
7781 echo cdfoo >t2
7782 gcc_cv_prog_cmp_skip=slowcompare
7783 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7784 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7786 else
7787 gcc_cv_prog_cmp_skip=gnucompare
7790 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7791 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7792 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7794 else
7795 gcc_cv_prog_cmp_skip=fastcompare
7799 rm t1 t2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7803 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7804 make_compare_target=$gcc_cv_prog_cmp_skip
7808 # See if we have the mktemp command.
7809 # Extract the first word of "mktemp", so it can be a program name with args.
7810 set dummy mktemp; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 if test -n "$have_mktemp_command"; then
7817 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_have_mktemp_command="yes"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7830 done
7831 done
7832 IFS=$as_save_IFS
7834 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7837 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7838 if test -n "$have_mktemp_command"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7840 $as_echo "$have_mktemp_command" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7848 # See if makeinfo has been installed and is modern enough
7849 # that we can use it.
7851 # Extract the first word of "makeinfo", so it can be a program name with args.
7852 set dummy makeinfo; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$MAKEINFO"; then
7859 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_MAKEINFO="makeinfo"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7872 done
7873 done
7874 IFS=$as_save_IFS
7878 MAKEINFO=$ac_cv_prog_MAKEINFO
7879 if test -n "$MAKEINFO"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7881 $as_echo "$MAKEINFO" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7888 if test -n "$MAKEINFO"; then
7889 # Found it, now check the version.
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7891 $as_echo_n "checking for modern makeinfo... " >&6; }
7892 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7896 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7898 case $ac_prog_version in
7899 '') gcc_cv_prog_makeinfo_modern=no;;
7900 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7901 *) gcc_cv_prog_makeinfo_modern=no;;
7902 esac
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7906 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7907 else
7908 gcc_cv_prog_makeinfo_modern=no
7910 if test $gcc_cv_prog_makeinfo_modern = no; then
7911 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7914 if test $gcc_cv_prog_makeinfo_modern = no; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7916 *** Makeinfo is missing or too old.
7917 *** Info documentation will not be built." >&5
7918 $as_echo "$as_me: WARNING:
7919 *** Makeinfo is missing or too old.
7920 *** Info documentation will not be built." >&2;}
7921 BUILD_INFO=
7922 else
7923 BUILD_INFO=info
7927 # Is pod2man recent enough to regenerate manpages?
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7929 $as_echo_n "checking for recent Pod::Man... " >&6; }
7930 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7932 $as_echo "yes" >&6; }
7933 GENERATED_MANPAGES=generated-manpages
7934 else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 GENERATED_MANPAGES=
7941 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7943 # How about lex?
7944 for ac_prog in flex
7946 # Extract the first word of "$ac_prog", so it can be a program name with args.
7947 set dummy $ac_prog; ac_word=$2
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949 $as_echo_n "checking for $ac_word... " >&6; }
7950 if test "${ac_cv_prog_FLEX+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 if test -n "$FLEX"; then
7954 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7955 else
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_FLEX="$ac_prog"
7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7967 done
7968 done
7969 IFS=$as_save_IFS
7973 FLEX=$ac_cv_prog_FLEX
7974 if test -n "$FLEX"; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7976 $as_echo "$FLEX" >&6; }
7977 else
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979 $as_echo "no" >&6; }
7983 test -n "$FLEX" && break
7984 done
7985 test -n "$FLEX" || FLEX="$MISSING flex"
7988 # Bison?
7989 for ac_prog in bison
7991 # Extract the first word of "$ac_prog", so it can be a program name with args.
7992 set dummy $ac_prog; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if test "${ac_cv_prog_BISON+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 if test -n "$BISON"; then
7999 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8008 ac_cv_prog_BISON="$ac_prog"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8012 done
8013 done
8014 IFS=$as_save_IFS
8018 BISON=$ac_cv_prog_BISON
8019 if test -n "$BISON"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8021 $as_echo "$BISON" >&6; }
8022 else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8028 test -n "$BISON" && break
8029 done
8030 test -n "$BISON" || BISON="$MISSING bison"
8033 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8034 # check for build == host before using them.
8036 # NM
8037 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8038 && test -d ../binutils ; then
8039 NM='${objdir}/../binutils/nm-new'
8040 else
8041 # Extract the first word of "nm", so it can be a program name with args.
8042 set dummy nm; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if test "${ac_cv_prog_NM+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 if test -n "$NM"; then
8049 ac_cv_prog_NM="$NM" # Let the user override the test.
8050 else
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_prog_NM="nm"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8062 done
8063 done
8064 IFS=$as_save_IFS
8066 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8069 NM=$ac_cv_prog_NM
8070 if test -n "$NM"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8072 $as_echo "$NM" >&6; }
8073 else
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8081 # AR
8082 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8083 && test -d ../binutils ; then
8084 AR='${objdir}/../binutils/ar'
8085 else
8086 # Extract the first word of "ar", so it can be a program name with args.
8087 set dummy ar; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if test "${ac_cv_prog_AR+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 if test -n "$AR"; then
8094 ac_cv_prog_AR="$AR" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8099 IFS=$as_save_IFS
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_prog_AR="ar"
8104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 break 2
8107 done
8108 done
8109 IFS=$as_save_IFS
8111 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8114 AR=$ac_cv_prog_AR
8115 if test -n "$AR"; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8117 $as_echo "$AR" >&6; }
8118 else
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120 $as_echo "no" >&6; }
8127 # --------------------
8128 # Checks for C headers
8129 # --------------------
8131 # Need to reject headers which give warnings, so that the -Werror bootstrap
8132 # works later. *sigh* This needs to come before all header checks.
8134 ac_c_preproc_warn_flag=yes
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8137 $as_echo_n "checking for ANSI C header files... " >&6; }
8138 if test "${ac_cv_header_stdc+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 #include <stdlib.h>
8144 #include <stdarg.h>
8145 #include <string.h>
8146 #include <float.h>
8149 main ()
8153 return 0;
8155 _ACEOF
8156 if ac_fn_c_try_compile "$LINENO"; then :
8157 ac_cv_header_stdc=yes
8158 else
8159 ac_cv_header_stdc=no
8161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 if test $ac_cv_header_stdc = yes; then
8164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 #include <string.h>
8169 _ACEOF
8170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8171 $EGREP "memchr" >/dev/null 2>&1; then :
8173 else
8174 ac_cv_header_stdc=no
8176 rm -f conftest*
8180 if test $ac_cv_header_stdc = yes; then
8181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <stdlib.h>
8186 _ACEOF
8187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8188 $EGREP "free" >/dev/null 2>&1; then :
8190 else
8191 ac_cv_header_stdc=no
8193 rm -f conftest*
8197 if test $ac_cv_header_stdc = yes; then
8198 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8199 if test "$cross_compiling" = yes; then :
8201 else
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 #include <ctype.h>
8205 #include <stdlib.h>
8206 #if ((' ' & 0x0FF) == 0x020)
8207 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8208 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8209 #else
8210 # define ISLOWER(c) \
8211 (('a' <= (c) && (c) <= 'i') \
8212 || ('j' <= (c) && (c) <= 'r') \
8213 || ('s' <= (c) && (c) <= 'z'))
8214 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8215 #endif
8217 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8219 main ()
8221 int i;
8222 for (i = 0; i < 256; i++)
8223 if (XOR (islower (i), ISLOWER (i))
8224 || toupper (i) != TOUPPER (i))
8225 return 2;
8226 return 0;
8228 _ACEOF
8229 if ac_fn_c_try_run "$LINENO"; then :
8231 else
8232 ac_cv_header_stdc=no
8234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8235 conftest.$ac_objext conftest.beam conftest.$ac_ext
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8241 $as_echo "$ac_cv_header_stdc" >&6; }
8242 if test $ac_cv_header_stdc = yes; then
8244 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8249 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8250 if test "${ac_cv_header_time+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 #include <sys/types.h>
8256 #include <sys/time.h>
8257 #include <time.h>
8260 main ()
8262 if ((struct tm *) 0)
8263 return 0;
8265 return 0;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"; then :
8269 ac_cv_header_time=yes
8270 else
8271 ac_cv_header_time=no
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8276 $as_echo "$ac_cv_header_time" >&6; }
8277 if test $ac_cv_header_time = yes; then
8279 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8284 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8285 if test "${gcc_cv_header_string+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8290 #include <string.h>
8291 #include <strings.h>
8293 main ()
8297 return 0;
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"; then :
8301 gcc_cv_header_string=yes
8302 else
8303 gcc_cv_header_string=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8308 $as_echo "$gcc_cv_header_string" >&6; }
8309 if test $gcc_cv_header_string = yes; then
8311 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8316 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8317 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322 #include <sys/types.h>
8323 #include <sys/wait.h>
8324 #ifndef WEXITSTATUS
8325 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8326 #endif
8327 #ifndef WIFEXITED
8328 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8329 #endif
8332 main ()
8334 int s;
8335 wait (&s);
8336 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8338 return 0;
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342 ac_cv_header_sys_wait_h=yes
8343 else
8344 ac_cv_header_sys_wait_h=no
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8349 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8350 if test $ac_cv_header_sys_wait_h = yes; then
8352 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8357 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8358 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8363 #include <sys/types.h>
8364 #include <termios.h>
8365 #ifdef TIOCGWINSZ
8367 #endif
8369 _ACEOF
8370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8371 $EGREP "yes" >/dev/null 2>&1; then :
8372 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8373 else
8374 ac_cv_sys_tiocgwinsz_in_termios_h=no
8376 rm -f conftest*
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8380 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8382 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8384 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8385 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <sys/ioctl.h>
8392 #ifdef TIOCGWINSZ
8394 #endif
8396 _ACEOF
8397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8398 $EGREP "yes" >/dev/null 2>&1; then :
8399 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8400 else
8401 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8403 rm -f conftest*
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8407 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8409 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8411 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8416 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8417 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8418 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8419 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8420 do :
8421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8422 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8423 eval as_val=\$$as_ac_Header
8424 if test "x$as_val" = x""yes; then :
8425 cat >>confdefs.h <<_ACEOF
8426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8427 _ACEOF
8430 done
8433 # Check for thread headers.
8434 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8435 if test "x$ac_cv_header_thread_h" = x""yes; then :
8436 have_thread_h=yes
8437 else
8438 have_thread_h=
8441 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8442 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8443 have_pthread_h=yes
8444 else
8445 have_pthread_h=
8449 # These tests can't be done till we know if we have limits.h.
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8451 $as_echo_n "checking for CHAR_BIT... " >&6; }
8452 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #ifdef HAVE_LIMITS_H
8458 #include <limits.h>
8459 #endif
8460 #ifdef CHAR_BIT
8461 found
8462 #endif
8463 _ACEOF
8464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465 $EGREP "found" >/dev/null 2>&1; then :
8466 gcc_cv_decl_char_bit=yes
8467 else
8468 gcc_cv_decl_char_bit=no
8470 rm -f conftest*
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8475 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8476 if test $gcc_cv_decl_char_bit = no; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8478 $as_echo_n "checking number of bits in a byte... " >&6; }
8479 if test "${gcc_cv_c_nbby+set}" = set; then :
8480 $as_echo_n "(cached) " >&6
8481 else
8483 gcc_cv_c_nbby=
8484 while test $i -lt 65; do
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8489 main ()
8491 switch(0) {
8492 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8493 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8496 return 0;
8498 _ACEOF
8499 if ac_fn_c_try_compile "$LINENO"; then :
8500 gcc_cv_c_nbby=$i; break
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 i=`expr $i + 1`
8504 done
8505 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8509 $as_echo "$gcc_cv_c_nbby" >&6; }
8510 if test $gcc_cv_c_nbby = failed; then
8511 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8512 else
8514 cat >>confdefs.h <<_ACEOF
8515 #define CHAR_BIT $gcc_cv_c_nbby
8516 _ACEOF
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8521 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8522 if test "${ac_cv_c_bigendian+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 ac_cv_c_bigendian=unknown
8526 # See if we're dealing with a universal compiler.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 #ifndef __APPLE_CC__
8530 not a universal capable compiler
8531 #endif
8532 typedef int dummy;
8534 _ACEOF
8535 if ac_fn_c_try_compile "$LINENO"; then :
8537 # Check for potential -arch flags. It is not universal unless
8538 # there are at least two -arch flags with different values.
8539 ac_arch=
8540 ac_prev=
8541 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8542 if test -n "$ac_prev"; then
8543 case $ac_word in
8544 i?86 | x86_64 | ppc | ppc64)
8545 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8546 ac_arch=$ac_word
8547 else
8548 ac_cv_c_bigendian=universal
8549 break
8552 esac
8553 ac_prev=
8554 elif test "x$ac_word" = "x-arch"; then
8555 ac_prev=arch
8557 done
8559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8560 if test $ac_cv_c_bigendian = unknown; then
8561 # See if sys/param.h defines the BYTE_ORDER macro.
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8564 #include <sys/types.h>
8565 #include <sys/param.h>
8568 main ()
8570 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8571 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8572 && LITTLE_ENDIAN)
8573 bogus endian macros
8574 #endif
8577 return 0;
8579 _ACEOF
8580 if ac_fn_c_try_compile "$LINENO"; then :
8581 # It does; now see whether it defined to BIG_ENDIAN or not.
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 #include <sys/types.h>
8585 #include <sys/param.h>
8588 main ()
8590 #if BYTE_ORDER != BIG_ENDIAN
8591 not big endian
8592 #endif
8595 return 0;
8597 _ACEOF
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599 ac_cv_c_bigendian=yes
8600 else
8601 ac_cv_c_bigendian=no
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8607 if test $ac_cv_c_bigendian = unknown; then
8608 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 #include <limits.h>
8614 main ()
8616 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8617 bogus endian macros
8618 #endif
8621 return 0;
8623 _ACEOF
8624 if ac_fn_c_try_compile "$LINENO"; then :
8625 # It does; now see whether it defined to _BIG_ENDIAN or not.
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628 #include <limits.h>
8631 main ()
8633 #ifndef _BIG_ENDIAN
8634 not big endian
8635 #endif
8638 return 0;
8640 _ACEOF
8641 if ac_fn_c_try_compile "$LINENO"; then :
8642 ac_cv_c_bigendian=yes
8643 else
8644 ac_cv_c_bigendian=no
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 if test $ac_cv_c_bigendian = unknown; then
8651 # Compile a test program.
8652 if test "$cross_compiling" = yes; then :
8653 # Try to guess by grepping values from an object file.
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 short int ascii_mm[] =
8657 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8658 short int ascii_ii[] =
8659 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8660 int use_ascii (int i) {
8661 return ascii_mm[i] + ascii_ii[i];
8663 short int ebcdic_ii[] =
8664 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8665 short int ebcdic_mm[] =
8666 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8667 int use_ebcdic (int i) {
8668 return ebcdic_mm[i] + ebcdic_ii[i];
8670 extern int foo;
8673 main ()
8675 return use_ascii (foo) == use_ebcdic (foo);
8677 return 0;
8679 _ACEOF
8680 if ac_fn_c_try_compile "$LINENO"; then :
8681 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8682 ac_cv_c_bigendian=yes
8684 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8685 if test "$ac_cv_c_bigendian" = unknown; then
8686 ac_cv_c_bigendian=no
8687 else
8688 # finding both strings is unlikely to happen, but who knows?
8689 ac_cv_c_bigendian=unknown
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 else
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 $ac_includes_default
8699 main ()
8702 /* Are we little or big endian? From Harbison&Steele. */
8703 union
8705 long int l;
8706 char c[sizeof (long int)];
8707 } u;
8708 u.l = 1;
8709 return u.c[sizeof (long int) - 1] == 1;
8712 return 0;
8714 _ACEOF
8715 if ac_fn_c_try_run "$LINENO"; then :
8716 ac_cv_c_bigendian=no
8717 else
8718 ac_cv_c_bigendian=yes
8720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8721 conftest.$ac_objext conftest.beam conftest.$ac_ext
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8727 $as_echo "$ac_cv_c_bigendian" >&6; }
8728 case $ac_cv_c_bigendian in #(
8729 yes)
8730 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8731 ;; #(
8733 ;; #(
8734 universal)
8736 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8738 ;; #(
8740 as_fn_error "unknown endianness
8741 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8742 esac
8745 # ----------------------
8746 # Checks for C++ headers
8747 # ----------------------
8749 ac_ext=cpp
8750 ac_cpp='$CXXCPP $CPPFLAGS'
8751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8755 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8756 if test -z "$CXXCPP"; then
8757 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 # Double quotes because CXXCPP needs to be expanded
8761 for CXXCPP in "$CXX -E" "/lib/cpp"
8763 ac_preproc_ok=false
8764 for ac_cxx_preproc_warn_flag in '' yes
8766 # Use a header file that comes with gcc, so configuring glibc
8767 # with a fresh cross-compiler works.
8768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8769 # <limits.h> exists even on freestanding compilers.
8770 # On the NeXT, cc -E runs the code through the compiler's parser,
8771 # not just through cpp. "Syntax error" is here to catch this case.
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774 #ifdef __STDC__
8775 # include <limits.h>
8776 #else
8777 # include <assert.h>
8778 #endif
8779 Syntax error
8780 _ACEOF
8781 if ac_fn_cxx_try_cpp "$LINENO"; then :
8783 else
8784 # Broken: fails on valid input.
8785 continue
8787 rm -f conftest.err conftest.$ac_ext
8789 # OK, works on sane cases. Now check whether nonexistent headers
8790 # can be detected and how.
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8793 #include <ac_nonexistent.h>
8794 _ACEOF
8795 if ac_fn_cxx_try_cpp "$LINENO"; then :
8796 # Broken: success on invalid input.
8797 continue
8798 else
8799 # Passes both tests.
8800 ac_preproc_ok=:
8801 break
8803 rm -f conftest.err conftest.$ac_ext
8805 done
8806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8807 rm -f conftest.err conftest.$ac_ext
8808 if $ac_preproc_ok; then :
8809 break
8812 done
8813 ac_cv_prog_CXXCPP=$CXXCPP
8816 CXXCPP=$ac_cv_prog_CXXCPP
8817 else
8818 ac_cv_prog_CXXCPP=$CXXCPP
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8821 $as_echo "$CXXCPP" >&6; }
8822 ac_preproc_ok=false
8823 for ac_cxx_preproc_warn_flag in '' yes
8825 # Use a header file that comes with gcc, so configuring glibc
8826 # with a fresh cross-compiler works.
8827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8828 # <limits.h> exists even on freestanding compilers.
8829 # On the NeXT, cc -E runs the code through the compiler's parser,
8830 # not just through cpp. "Syntax error" is here to catch this case.
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #ifdef __STDC__
8834 # include <limits.h>
8835 #else
8836 # include <assert.h>
8837 #endif
8838 Syntax error
8839 _ACEOF
8840 if ac_fn_cxx_try_cpp "$LINENO"; then :
8842 else
8843 # Broken: fails on valid input.
8844 continue
8846 rm -f conftest.err conftest.$ac_ext
8848 # OK, works on sane cases. Now check whether nonexistent headers
8849 # can be detected and how.
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852 #include <ac_nonexistent.h>
8853 _ACEOF
8854 if ac_fn_cxx_try_cpp "$LINENO"; then :
8855 # Broken: success on invalid input.
8856 continue
8857 else
8858 # Passes both tests.
8859 ac_preproc_ok=:
8860 break
8862 rm -f conftest.err conftest.$ac_ext
8864 done
8865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8866 rm -f conftest.err conftest.$ac_ext
8867 if $ac_preproc_ok; then :
8869 else
8870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8873 See \`config.log' for more details." >&5
8874 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8875 See \`config.log' for more details." >&2;}; }
8878 ac_ext=c
8879 ac_cpp='$CPP $CPPFLAGS'
8880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885 ac_ext=cpp
8886 ac_cpp='$CXXCPP $CPPFLAGS'
8887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8893 for ac_header in unordered_map
8894 do :
8895 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8896 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8897 cat >>confdefs.h <<_ACEOF
8898 #define HAVE_UNORDERED_MAP 1
8899 _ACEOF
8902 done
8904 for ac_header in tr1/unordered_map
8905 do :
8906 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8907 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_TR1_UNORDERED_MAP 1
8910 _ACEOF
8913 done
8915 for ac_header in ext/hash_map
8916 do :
8917 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8918 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8919 cat >>confdefs.h <<_ACEOF
8920 #define HAVE_EXT_HASH_MAP 1
8921 _ACEOF
8924 done
8927 ac_ext=c
8928 ac_cpp='$CPP $CPPFLAGS'
8929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934 # --------
8935 # Dependency checking.
8936 # --------
8938 ac_ext=cpp
8939 ac_cpp='$CXXCPP $CPPFLAGS'
8940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8944 rm -rf .tst 2>/dev/null
8945 mkdir .tst 2>/dev/null
8946 if test -d .tst; then
8947 am__leading_dot=.
8948 else
8949 am__leading_dot=_
8951 rmdir .tst 2>/dev/null
8953 DEPDIR="${am__leading_dot}deps"
8955 ac_config_commands="$ac_config_commands depdir"
8958 ac_config_commands="$ac_config_commands gccdepdir"
8961 depcc="$CXX" am_compiler_list=
8963 am_depcomp=$ac_aux_dir/depcomp
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8965 $as_echo_n "checking dependency style of $depcc... " >&6; }
8966 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 if test -f "$am_depcomp"; then
8970 # We make a subdir and do the tests there. Otherwise we can end up
8971 # making bogus files that we don't know about and never remove. For
8972 # instance it was reported that on HP-UX the gcc test will end up
8973 # making a dummy file named `D' -- because `-MD' means `put the output
8974 # in D'.
8975 mkdir conftest.dir
8976 # Copy depcomp to subdir because otherwise we won't find it if we're
8977 # using a relative directory.
8978 cp "$am_depcomp" conftest.dir
8979 cd conftest.dir
8980 # We will build objects and dependencies in a subdirectory because
8981 # it helps to detect inapplicable dependency modes. For instance
8982 # both Tru64's cc and ICC support -MD to output dependencies as a
8983 # side effect of compilation, but ICC will put the dependencies in
8984 # the current directory while Tru64 will put them in the object
8985 # directory.
8986 mkdir sub
8988 am_cv_CXX_dependencies_compiler_type=none
8989 if test "$am_compiler_list" = ""; then
8990 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8992 for depmode in $am_compiler_list; do
8993 if test $depmode = none; then break; fi
8995 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8996 # Setup a source with many dependencies, because some compilers
8997 # like to wrap large dependency lists on column 80 (with \), and
8998 # we should not choose a depcomp mode which is confused by this.
9000 # We need to recreate these files for each test, as the compiler may
9001 # overwrite some of them when testing with obscure command lines.
9002 # This happens at least with the AIX C compiler.
9003 : > sub/conftest.c
9004 for i in 1 2 3 4 5 6; do
9005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9007 # Solaris 8's {/usr,}/bin/sh.
9008 touch sub/conftst$i.h
9009 done
9010 echo "include sub/conftest.Po" > confmf
9012 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9013 # mode. It turns out that the SunPro C++ compiler does not properly
9014 # handle `-M -o', and we need to detect this.
9015 depcmd="depmode=$depmode \
9016 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9017 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9018 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9019 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9020 if env $depcmd > conftest.err 2>&1 &&
9021 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9022 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9023 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9024 # icc doesn't choke on unknown options, it will just issue warnings
9025 # or remarks (even with -Werror). So we grep stderr for any message
9026 # that says an option was ignored or not supported.
9027 # When given -MP, icc 7.0 and 7.1 complain thusly:
9028 # icc: Command line warning: ignoring option '-M'; no argument required
9029 # The diagnosis changed in icc 8.0:
9030 # icc: Command line remark: option '-MP' not supported
9031 if (grep 'ignoring option' conftest.err ||
9032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9033 am_cv_CXX_dependencies_compiler_type=$depmode
9034 $as_echo "$as_me:$LINENO: success" >&5
9035 break
9038 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9039 sed -e 's/^/| /' < conftest.err >&5
9040 done
9042 cd ..
9043 rm -rf conftest.dir
9044 else
9045 am_cv_CXX_dependencies_compiler_type=none
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9050 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9051 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9052 then as_fn_error "no usable dependency style found" "$LINENO" 5
9053 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9057 ac_ext=c
9058 ac_cpp='$CPP $CPPFLAGS'
9059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9064 # --------
9065 # UNSORTED
9066 # --------
9069 # These libraries may be used by collect2.
9070 # We may need a special search path to get them linked.
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9072 $as_echo_n "checking for collect2 libraries... " >&6; }
9073 if test "${gcc_cv_collect2_libs+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 save_LIBS="$LIBS"
9077 for libs in '' -lld -lmld \
9078 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9079 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9081 LIBS="$libs"
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9085 /* Override any GCC internal prototype to avoid an error.
9086 Use char because int might match the return type of a GCC
9087 builtin and then its argument prototype would still apply. */
9088 #ifdef __cplusplus
9089 extern "C"
9090 #endif
9091 char ldopen ();
9093 main ()
9095 return ldopen ();
9097 return 0;
9099 _ACEOF
9100 if ac_fn_c_try_link "$LINENO"; then :
9101 gcc_cv_collect2_libs="$libs"; break
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 done
9106 LIBS="$save_LIBS"
9107 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9110 $as_echo "$gcc_cv_collect2_libs" >&6; }
9111 case $gcc_cv_collect2_libs in
9112 "none required") ;;
9113 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9114 esac
9117 # When building Ada code on Alpha, we need exc_resume which is usually in
9118 # -lexc. So test for it.
9119 save_LIBS="$LIBS"
9120 LIBS=
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9122 $as_echo_n "checking for library containing exc_resume... " >&6; }
9123 if test "${ac_cv_search_exc_resume+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 ac_func_search_save_LIBS=$LIBS
9127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9133 #ifdef __cplusplus
9134 extern "C"
9135 #endif
9136 char exc_resume ();
9138 main ()
9140 return exc_resume ();
9142 return 0;
9144 _ACEOF
9145 for ac_lib in '' exc; do
9146 if test -z "$ac_lib"; then
9147 ac_res="none required"
9148 else
9149 ac_res=-l$ac_lib
9150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9152 if ac_fn_c_try_link "$LINENO"; then :
9153 ac_cv_search_exc_resume=$ac_res
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext
9157 if test "${ac_cv_search_exc_resume+set}" = set; then :
9158 break
9160 done
9161 if test "${ac_cv_search_exc_resume+set}" = set; then :
9163 else
9164 ac_cv_search_exc_resume=no
9166 rm conftest.$ac_ext
9167 LIBS=$ac_func_search_save_LIBS
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9170 $as_echo "$ac_cv_search_exc_resume" >&6; }
9171 ac_res=$ac_cv_search_exc_resume
9172 if test "$ac_res" != no; then :
9173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9177 GNAT_LIBEXC="$LIBS"
9178 LIBS="$save_LIBS"
9181 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9182 save_LIBS="$LIBS"
9183 LIBS=
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9185 $as_echo_n "checking for library containing kstat_open... " >&6; }
9186 if test "${ac_cv_search_kstat_open+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 ac_func_search_save_LIBS=$LIBS
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 char kstat_open ();
9201 main ()
9203 return kstat_open ();
9205 return 0;
9207 _ACEOF
9208 for ac_lib in '' kstat; do
9209 if test -z "$ac_lib"; then
9210 ac_res="none required"
9211 else
9212 ac_res=-l$ac_lib
9213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9215 if ac_fn_c_try_link "$LINENO"; then :
9216 ac_cv_search_kstat_open=$ac_res
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext
9220 if test "${ac_cv_search_kstat_open+set}" = set; then :
9221 break
9223 done
9224 if test "${ac_cv_search_kstat_open+set}" = set; then :
9226 else
9227 ac_cv_search_kstat_open=no
9229 rm conftest.$ac_ext
9230 LIBS=$ac_func_search_save_LIBS
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9233 $as_echo "$ac_cv_search_kstat_open" >&6; }
9234 ac_res=$ac_cv_search_kstat_open
9235 if test "$ac_res" != no; then :
9236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9240 EXTRA_GCC_LIBS="$LIBS"
9241 LIBS="$save_LIBS"
9244 # Some systems put ldexp and frexp in libm instead of libc; assume
9245 # they're both in the same place. jcf-dump needs them.
9246 save_LIBS="$LIBS"
9247 LIBS=
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9249 $as_echo_n "checking for library containing ldexp... " >&6; }
9250 if test "${ac_cv_search_ldexp+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 ac_func_search_save_LIBS=$LIBS
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9257 /* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 char ldexp ();
9265 main ()
9267 return ldexp ();
9269 return 0;
9271 _ACEOF
9272 for ac_lib in '' m; do
9273 if test -z "$ac_lib"; then
9274 ac_res="none required"
9275 else
9276 ac_res=-l$ac_lib
9277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9279 if ac_fn_c_try_link "$LINENO"; then :
9280 ac_cv_search_ldexp=$ac_res
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext
9284 if test "${ac_cv_search_ldexp+set}" = set; then :
9285 break
9287 done
9288 if test "${ac_cv_search_ldexp+set}" = set; then :
9290 else
9291 ac_cv_search_ldexp=no
9293 rm conftest.$ac_ext
9294 LIBS=$ac_func_search_save_LIBS
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9297 $as_echo "$ac_cv_search_ldexp" >&6; }
9298 ac_res=$ac_cv_search_ldexp
9299 if test "$ac_res" != no; then :
9300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9304 LDEXP_LIB="$LIBS"
9305 LIBS="$save_LIBS"
9308 # Use <inttypes.h> only if it exists,
9309 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9310 # PRId64
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9312 $as_echo_n "checking for inttypes.h... " >&6; }
9313 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #define __STDC_FORMAT_MACROS
9319 #include <sys/types.h>
9320 #include <inttypes.h>
9322 main ()
9324 intmax_t i = -1;
9325 #ifndef PRId64
9326 choke me
9327 #endif
9329 return 0;
9331 _ACEOF
9332 if ac_fn_c_try_compile "$LINENO"; then :
9333 gcc_cv_header_inttypes_h=yes
9334 else
9335 gcc_cv_header_inttypes_h=no
9337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9341 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9342 if test $gcc_cv_header_inttypes_h = yes; then
9344 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9350 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9351 popen sysconf strsignal getrusage nl_langinfo \
9352 gettimeofday mbstowcs wcswidth mmap setlocale \
9353 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
9354 do :
9355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9357 eval as_val=\$$as_ac_var
9358 if test "x$as_val" = x""yes; then :
9359 cat >>confdefs.h <<_ACEOF
9360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9361 _ACEOF
9364 done
9367 if test x$ac_cv_func_mbstowcs = xyes; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9369 $as_echo_n "checking whether mbstowcs works... " >&6; }
9370 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9371 $as_echo_n "(cached) " >&6
9372 else
9373 if test "$cross_compiling" = yes; then :
9374 gcc_cv_func_mbstowcs_works=yes
9375 else
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378 #include <stdlib.h>
9379 int main()
9381 mbstowcs(0, "", 0);
9382 return 0;
9384 _ACEOF
9385 if ac_fn_c_try_run "$LINENO"; then :
9386 gcc_cv_func_mbstowcs_works=yes
9387 else
9388 gcc_cv_func_mbstowcs_works=no
9390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9391 conftest.$ac_objext conftest.beam conftest.$ac_ext
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9396 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9397 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9399 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9404 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9405 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9407 else
9409 cat >>confdefs.h <<_ACEOF
9410 #define ssize_t int
9411 _ACEOF
9415 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9416 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9418 else
9420 cat >>confdefs.h <<_ACEOF
9421 #define caddr_t char *
9422 _ACEOF
9428 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9429 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9430 gcc_header_sys_mman_h=yes
9431 else
9432 gcc_header_sys_mman_h=no
9435 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9436 if test "x$ac_cv_func_mmap" = x""yes; then :
9437 gcc_func_mmap=yes
9438 else
9439 gcc_func_mmap=no
9442 if test "$gcc_header_sys_mman_h" != yes \
9443 || test "$gcc_func_mmap" != yes; then
9444 gcc_cv_func_mmap_file=no
9445 gcc_cv_func_mmap_dev_zero=no
9446 gcc_cv_func_mmap_anon=no
9447 else
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9449 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9450 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 # Add a system to this blacklist if
9454 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9455 # memory area containing the same data that you'd get if you applied
9456 # read() to the same fd. The only system known to have a problem here
9457 # is VMS, where text files have record structure.
9458 case "$host_os" in
9459 *vms* | ultrix*)
9460 gcc_cv_func_mmap_file=no ;;
9462 gcc_cv_func_mmap_file=yes;;
9463 esac
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9466 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9468 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9469 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9471 else
9472 # Add a system to this blacklist if it has mmap() but /dev/zero
9473 # does not exist, or if mmapping /dev/zero does not give anonymous
9474 # zeroed pages with both the following properties:
9475 # 1. If you map N consecutive pages in with one call, and then
9476 # unmap any subset of those pages, the pages that were not
9477 # explicitly unmapped remain accessible.
9478 # 2. If you map two adjacent blocks of memory and then unmap them
9479 # both at once, they must both go away.
9480 # Systems known to be in this category are Windows (all variants),
9481 # VMS, and Darwin.
9482 case "$host_os" in
9483 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9484 gcc_cv_func_mmap_dev_zero=no ;;
9486 gcc_cv_func_mmap_dev_zero=yes;;
9487 esac
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9490 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9492 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9494 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9495 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 #include <sys/types.h>
9501 #include <sys/mman.h>
9502 #include <unistd.h>
9504 #ifndef MAP_ANONYMOUS
9505 #define MAP_ANONYMOUS MAP_ANON
9506 #endif
9509 main ()
9511 int n = MAP_ANONYMOUS;
9513 return 0;
9515 _ACEOF
9516 if ac_fn_c_try_compile "$LINENO"; then :
9517 gcc_cv_decl_map_anon=yes
9518 else
9519 gcc_cv_decl_map_anon=no
9521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9524 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9526 if test $gcc_cv_decl_map_anon = no; then
9527 gcc_cv_func_mmap_anon=no
9528 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9530 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9531 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9535 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9536 # doesn't give anonymous zeroed pages with the same properties listed
9537 # above for use of /dev/zero.
9538 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9539 case "$host_os" in
9540 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9541 gcc_cv_func_mmap_anon=no ;;
9543 gcc_cv_func_mmap_anon=yes;;
9544 esac
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9547 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9551 if test $gcc_cv_func_mmap_file = yes; then
9553 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9556 if test $gcc_cv_func_mmap_dev_zero = yes; then
9558 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9561 if test $gcc_cv_func_mmap_anon = yes; then
9563 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9568 case "${host}" in
9569 *-*-*vms*)
9570 # Under VMS, vfork works very differently than on Unix. The standard test
9571 # won't work, and it isn't easily adaptable. It makes more sense to
9572 # just force it.
9573 ac_cv_func_vfork_works=yes
9575 esac
9576 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9577 if test "x$ac_cv_type_pid_t" = x""yes; then :
9579 else
9581 cat >>confdefs.h <<_ACEOF
9582 #define pid_t int
9583 _ACEOF
9587 for ac_header in vfork.h
9588 do :
9589 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9590 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9591 cat >>confdefs.h <<_ACEOF
9592 #define HAVE_VFORK_H 1
9593 _ACEOF
9596 done
9598 for ac_func in fork vfork
9599 do :
9600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9602 eval as_val=\$$as_ac_var
9603 if test "x$as_val" = x""yes; then :
9604 cat >>confdefs.h <<_ACEOF
9605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9606 _ACEOF
9609 done
9611 if test "x$ac_cv_func_fork" = xyes; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9613 $as_echo_n "checking for working fork... " >&6; }
9614 if test "${ac_cv_func_fork_works+set}" = set; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 if test "$cross_compiling" = yes; then :
9618 ac_cv_func_fork_works=cross
9619 else
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 $ac_includes_default
9624 main ()
9627 /* By Ruediger Kuhlmann. */
9628 return fork () < 0;
9631 return 0;
9633 _ACEOF
9634 if ac_fn_c_try_run "$LINENO"; then :
9635 ac_cv_func_fork_works=yes
9636 else
9637 ac_cv_func_fork_works=no
9639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9640 conftest.$ac_objext conftest.beam conftest.$ac_ext
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9645 $as_echo "$ac_cv_func_fork_works" >&6; }
9647 else
9648 ac_cv_func_fork_works=$ac_cv_func_fork
9650 if test "x$ac_cv_func_fork_works" = xcross; then
9651 case $host in
9652 *-*-amigaos* | *-*-msdosdjgpp*)
9653 # Override, as these systems have only a dummy fork() stub
9654 ac_cv_func_fork_works=no
9657 ac_cv_func_fork_works=yes
9659 esac
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9661 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9663 ac_cv_func_vfork_works=$ac_cv_func_vfork
9664 if test "x$ac_cv_func_vfork" = xyes; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9666 $as_echo_n "checking for working vfork... " >&6; }
9667 if test "${ac_cv_func_vfork_works+set}" = set; then :
9668 $as_echo_n "(cached) " >&6
9669 else
9670 if test "$cross_compiling" = yes; then :
9671 ac_cv_func_vfork_works=cross
9672 else
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 /* Thanks to Paul Eggert for this test. */
9676 $ac_includes_default
9677 #include <sys/wait.h>
9678 #ifdef HAVE_VFORK_H
9679 # include <vfork.h>
9680 #endif
9681 /* On some sparc systems, changes by the child to local and incoming
9682 argument registers are propagated back to the parent. The compiler
9683 is told about this with #include <vfork.h>, but some compilers
9684 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9685 static variable whose address is put into a register that is
9686 clobbered by the vfork. */
9687 static void
9688 #ifdef __cplusplus
9689 sparc_address_test (int arg)
9690 # else
9691 sparc_address_test (arg) int arg;
9692 #endif
9694 static pid_t child;
9695 if (!child) {
9696 child = vfork ();
9697 if (child < 0) {
9698 perror ("vfork");
9699 _exit(2);
9701 if (!child) {
9702 arg = getpid();
9703 write(-1, "", 0);
9704 _exit (arg);
9710 main ()
9712 pid_t parent = getpid ();
9713 pid_t child;
9715 sparc_address_test (0);
9717 child = vfork ();
9719 if (child == 0) {
9720 /* Here is another test for sparc vfork register problems. This
9721 test uses lots of local variables, at least as many local
9722 variables as main has allocated so far including compiler
9723 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9724 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9725 reuse the register of parent for one of the local variables,
9726 since it will think that parent can't possibly be used any more
9727 in this routine. Assigning to the local variable will thus
9728 munge parent in the parent process. */
9729 pid_t
9730 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9731 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9732 /* Convince the compiler that p..p7 are live; otherwise, it might
9733 use the same hardware register for all 8 local variables. */
9734 if (p != p1 || p != p2 || p != p3 || p != p4
9735 || p != p5 || p != p6 || p != p7)
9736 _exit(1);
9738 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9739 from child file descriptors. If the child closes a descriptor
9740 before it execs or exits, this munges the parent's descriptor
9741 as well. Test for this by closing stdout in the child. */
9742 _exit(close(fileno(stdout)) != 0);
9743 } else {
9744 int status;
9745 struct stat st;
9747 while (wait(&status) != child)
9749 return (
9750 /* Was there some problem with vforking? */
9751 child < 0
9753 /* Did the child fail? (This shouldn't happen.) */
9754 || status
9756 /* Did the vfork/compiler bug occur? */
9757 || parent != getpid()
9759 /* Did the file descriptor bug occur? */
9760 || fstat(fileno(stdout), &st) != 0
9764 _ACEOF
9765 if ac_fn_c_try_run "$LINENO"; then :
9766 ac_cv_func_vfork_works=yes
9767 else
9768 ac_cv_func_vfork_works=no
9770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9771 conftest.$ac_objext conftest.beam conftest.$ac_ext
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9776 $as_echo "$ac_cv_func_vfork_works" >&6; }
9779 if test "x$ac_cv_func_fork_works" = xcross; then
9780 ac_cv_func_vfork_works=$ac_cv_func_vfork
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9782 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9785 if test "x$ac_cv_func_vfork_works" = xyes; then
9787 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9789 else
9791 $as_echo "#define vfork fork" >>confdefs.h
9794 if test "x$ac_cv_func_fork_works" = xyes; then
9796 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9801 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9802 # iconv() prototype.
9803 ac_ext=cpp
9804 ac_cpp='$CXXCPP $CPPFLAGS'
9805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9810 if test "X$prefix" = "XNONE"; then
9811 acl_final_prefix="$ac_default_prefix"
9812 else
9813 acl_final_prefix="$prefix"
9815 if test "X$exec_prefix" = "XNONE"; then
9816 acl_final_exec_prefix='${prefix}'
9817 else
9818 acl_final_exec_prefix="$exec_prefix"
9820 acl_save_prefix="$prefix"
9821 prefix="$acl_final_prefix"
9822 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9823 prefix="$acl_save_prefix"
9826 # Check whether --with-gnu-ld was given.
9827 if test "${with_gnu_ld+set}" = set; then :
9828 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9829 else
9830 with_gnu_ld=no
9833 # Prepare PATH_SEPARATOR.
9834 # The user is always right.
9835 if test "${PATH_SEPARATOR+set}" != set; then
9836 echo "#! /bin/sh" >conf$$.sh
9837 echo "exit 0" >>conf$$.sh
9838 chmod +x conf$$.sh
9839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9840 PATH_SEPARATOR=';'
9841 else
9842 PATH_SEPARATOR=:
9844 rm -f conf$$.sh
9846 ac_prog=ld
9847 if test "$GCC" = yes; then
9848 # Check if gcc -print-prog-name=ld gives a path.
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9850 $as_echo_n "checking for ld used by GCC... " >&6; }
9851 case $host in
9852 *-*-mingw*)
9853 # gcc leaves a trailing carriage return which upsets mingw
9854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9857 esac
9858 case $ac_prog in
9859 # Accept absolute paths.
9860 [\\/]* | [A-Za-z]:[\\/]*)
9861 re_direlt='/[^/][^/]*/\.\./'
9862 # Canonicalize the path of ld
9863 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9864 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9865 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9866 done
9867 test -z "$LD" && LD="$ac_prog"
9870 # If it fails, then pretend we aren't using GCC.
9871 ac_prog=ld
9874 # If it is relative, then search for the first ld in PATH.
9875 with_gnu_ld=unknown
9877 esac
9878 elif test "$with_gnu_ld" = yes; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9880 $as_echo_n "checking for GNU ld... " >&6; }
9881 else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9883 $as_echo_n "checking for non-GNU ld... " >&6; }
9885 if test "${acl_cv_path_LD+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 if test -z "$LD"; then
9889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9890 for ac_dir in $PATH; do
9891 test -z "$ac_dir" && ac_dir=.
9892 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9893 acl_cv_path_LD="$ac_dir/$ac_prog"
9894 # Check to see if the program is GNU ld. I'd rather use --version,
9895 # but apparently some GNU ld's only accept -v.
9896 # Break only if it was the GNU/non-GNU ld that we prefer.
9897 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9898 test "$with_gnu_ld" != no && break
9899 else
9900 test "$with_gnu_ld" != yes && break
9903 done
9904 IFS="$ac_save_ifs"
9905 else
9906 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9910 LD="$acl_cv_path_LD"
9911 if test -n "$LD"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9913 $as_echo "$LD" >&6; }
9914 else
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9918 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9920 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9921 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9922 $as_echo_n "(cached) " >&6
9923 else
9924 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9925 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9926 acl_cv_prog_gnu_ld=yes
9927 else
9928 acl_cv_prog_gnu_ld=no
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9932 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9933 with_gnu_ld=$acl_cv_prog_gnu_ld
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9938 $as_echo_n "checking for shared library run path origin... " >&6; }
9939 if test "${acl_cv_rpath+set}" = set; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9943 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9944 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9945 . ./conftest.sh
9946 rm -f ./conftest.sh
9947 acl_cv_rpath=done
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9951 $as_echo "$acl_cv_rpath" >&6; }
9952 wl="$acl_cv_wl"
9953 libext="$acl_cv_libext"
9954 shlibext="$acl_cv_shlibext"
9955 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9956 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9957 hardcode_direct="$acl_cv_hardcode_direct"
9958 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9959 # Check whether --enable-rpath was given.
9960 if test "${enable_rpath+set}" = set; then :
9961 enableval=$enable_rpath; :
9962 else
9963 enable_rpath=yes
9973 use_additional=yes
9975 acl_save_prefix="$prefix"
9976 prefix="$acl_final_prefix"
9977 acl_save_exec_prefix="$exec_prefix"
9978 exec_prefix="$acl_final_exec_prefix"
9980 eval additional_includedir=\"$includedir\"
9981 eval additional_libdir=\"$libdir\"
9983 exec_prefix="$acl_save_exec_prefix"
9984 prefix="$acl_save_prefix"
9987 # Check whether --with-libiconv-prefix was given.
9988 if test "${with_libiconv_prefix+set}" = set; then :
9989 withval=$with_libiconv_prefix;
9990 if test "X$withval" = "Xno"; then
9991 use_additional=no
9992 else
9993 if test "X$withval" = "X"; then
9995 acl_save_prefix="$prefix"
9996 prefix="$acl_final_prefix"
9997 acl_save_exec_prefix="$exec_prefix"
9998 exec_prefix="$acl_final_exec_prefix"
10000 eval additional_includedir=\"$includedir\"
10001 eval additional_libdir=\"$libdir\"
10003 exec_prefix="$acl_save_exec_prefix"
10004 prefix="$acl_save_prefix"
10006 else
10007 additional_includedir="$withval/include"
10008 additional_libdir="$withval/lib"
10014 LIBICONV=
10015 LTLIBICONV=
10016 INCICONV=
10017 rpathdirs=
10018 ltrpathdirs=
10019 names_already_handled=
10020 names_next_round='iconv '
10021 while test -n "$names_next_round"; do
10022 names_this_round="$names_next_round"
10023 names_next_round=
10024 for name in $names_this_round; do
10025 already_handled=
10026 for n in $names_already_handled; do
10027 if test "$n" = "$name"; then
10028 already_handled=yes
10029 break
10031 done
10032 if test -z "$already_handled"; then
10033 names_already_handled="$names_already_handled $name"
10034 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10035 eval value=\"\$HAVE_LIB$uppername\"
10036 if test -n "$value"; then
10037 if test "$value" = yes; then
10038 eval value=\"\$LIB$uppername\"
10039 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10040 eval value=\"\$LTLIB$uppername\"
10041 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10042 else
10045 else
10046 found_dir=
10047 found_la=
10048 found_so=
10049 found_a=
10050 if test $use_additional = yes; then
10051 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10052 found_dir="$additional_libdir"
10053 found_so="$additional_libdir/lib$name.$shlibext"
10054 if test -f "$additional_libdir/lib$name.la"; then
10055 found_la="$additional_libdir/lib$name.la"
10057 else
10058 if test -f "$additional_libdir/lib$name.$libext"; then
10059 found_dir="$additional_libdir"
10060 found_a="$additional_libdir/lib$name.$libext"
10061 if test -f "$additional_libdir/lib$name.la"; then
10062 found_la="$additional_libdir/lib$name.la"
10067 if test "X$found_dir" = "X"; then
10068 for x in $LDFLAGS $LTLIBICONV; do
10070 acl_save_prefix="$prefix"
10071 prefix="$acl_final_prefix"
10072 acl_save_exec_prefix="$exec_prefix"
10073 exec_prefix="$acl_final_exec_prefix"
10074 eval x=\"$x\"
10075 exec_prefix="$acl_save_exec_prefix"
10076 prefix="$acl_save_prefix"
10078 case "$x" in
10079 -L*)
10080 dir=`echo "X$x" | sed -e 's/^X-L//'`
10081 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10082 found_dir="$dir"
10083 found_so="$dir/lib$name.$shlibext"
10084 if test -f "$dir/lib$name.la"; then
10085 found_la="$dir/lib$name.la"
10087 else
10088 if test -f "$dir/lib$name.$libext"; then
10089 found_dir="$dir"
10090 found_a="$dir/lib$name.$libext"
10091 if test -f "$dir/lib$name.la"; then
10092 found_la="$dir/lib$name.la"
10097 esac
10098 if test "X$found_dir" != "X"; then
10099 break
10101 done
10103 if test "X$found_dir" != "X"; then
10104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10105 if test "X$found_so" != "X"; then
10106 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10107 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10108 else
10109 haveit=
10110 for x in $ltrpathdirs; do
10111 if test "X$x" = "X$found_dir"; then
10112 haveit=yes
10113 break
10115 done
10116 if test -z "$haveit"; then
10117 ltrpathdirs="$ltrpathdirs $found_dir"
10119 if test "$hardcode_direct" = yes; then
10120 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10121 else
10122 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10124 haveit=
10125 for x in $rpathdirs; do
10126 if test "X$x" = "X$found_dir"; then
10127 haveit=yes
10128 break
10130 done
10131 if test -z "$haveit"; then
10132 rpathdirs="$rpathdirs $found_dir"
10134 else
10135 haveit=
10136 for x in $LDFLAGS $LIBICONV; do
10138 acl_save_prefix="$prefix"
10139 prefix="$acl_final_prefix"
10140 acl_save_exec_prefix="$exec_prefix"
10141 exec_prefix="$acl_final_exec_prefix"
10142 eval x=\"$x\"
10143 exec_prefix="$acl_save_exec_prefix"
10144 prefix="$acl_save_prefix"
10146 if test "X$x" = "X-L$found_dir"; then
10147 haveit=yes
10148 break
10150 done
10151 if test -z "$haveit"; then
10152 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10154 if test "$hardcode_minus_L" != no; then
10155 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10156 else
10157 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10162 else
10163 if test "X$found_a" != "X"; then
10164 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10165 else
10166 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10169 additional_includedir=
10170 case "$found_dir" in
10171 */lib | */lib/)
10172 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10173 additional_includedir="$basedir/include"
10175 esac
10176 if test "X$additional_includedir" != "X"; then
10177 if test "X$additional_includedir" != "X/usr/include"; then
10178 haveit=
10179 if test "X$additional_includedir" = "X/usr/local/include"; then
10180 if test -n "$GCC"; then
10181 case $host_os in
10182 linux*) haveit=yes;;
10183 esac
10186 if test -z "$haveit"; then
10187 for x in $CPPFLAGS $INCICONV; do
10189 acl_save_prefix="$prefix"
10190 prefix="$acl_final_prefix"
10191 acl_save_exec_prefix="$exec_prefix"
10192 exec_prefix="$acl_final_exec_prefix"
10193 eval x=\"$x\"
10194 exec_prefix="$acl_save_exec_prefix"
10195 prefix="$acl_save_prefix"
10197 if test "X$x" = "X-I$additional_includedir"; then
10198 haveit=yes
10199 break
10201 done
10202 if test -z "$haveit"; then
10203 if test -d "$additional_includedir"; then
10204 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10210 if test -n "$found_la"; then
10211 save_libdir="$libdir"
10212 case "$found_la" in
10213 */* | *\\*) . "$found_la" ;;
10214 *) . "./$found_la" ;;
10215 esac
10216 libdir="$save_libdir"
10217 for dep in $dependency_libs; do
10218 case "$dep" in
10219 -L*)
10220 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10221 if test "X$additional_libdir" != "X/usr/lib"; then
10222 haveit=
10223 if test "X$additional_libdir" = "X/usr/local/lib"; then
10224 if test -n "$GCC"; then
10225 case $host_os in
10226 linux*) haveit=yes;;
10227 esac
10230 if test -z "$haveit"; then
10231 haveit=
10232 for x in $LDFLAGS $LIBICONV; do
10234 acl_save_prefix="$prefix"
10235 prefix="$acl_final_prefix"
10236 acl_save_exec_prefix="$exec_prefix"
10237 exec_prefix="$acl_final_exec_prefix"
10238 eval x=\"$x\"
10239 exec_prefix="$acl_save_exec_prefix"
10240 prefix="$acl_save_prefix"
10242 if test "X$x" = "X-L$additional_libdir"; then
10243 haveit=yes
10244 break
10246 done
10247 if test -z "$haveit"; then
10248 if test -d "$additional_libdir"; then
10249 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10252 haveit=
10253 for x in $LDFLAGS $LTLIBICONV; do
10255 acl_save_prefix="$prefix"
10256 prefix="$acl_final_prefix"
10257 acl_save_exec_prefix="$exec_prefix"
10258 exec_prefix="$acl_final_exec_prefix"
10259 eval x=\"$x\"
10260 exec_prefix="$acl_save_exec_prefix"
10261 prefix="$acl_save_prefix"
10263 if test "X$x" = "X-L$additional_libdir"; then
10264 haveit=yes
10265 break
10267 done
10268 if test -z "$haveit"; then
10269 if test -d "$additional_libdir"; then
10270 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10276 -R*)
10277 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10278 if test "$enable_rpath" != no; then
10279 haveit=
10280 for x in $rpathdirs; do
10281 if test "X$x" = "X$dir"; then
10282 haveit=yes
10283 break
10285 done
10286 if test -z "$haveit"; then
10287 rpathdirs="$rpathdirs $dir"
10289 haveit=
10290 for x in $ltrpathdirs; do
10291 if test "X$x" = "X$dir"; then
10292 haveit=yes
10293 break
10295 done
10296 if test -z "$haveit"; then
10297 ltrpathdirs="$ltrpathdirs $dir"
10301 -l*)
10302 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10304 *.la)
10305 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10308 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10309 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10311 esac
10312 done
10314 else
10315 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10316 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10320 done
10321 done
10322 if test "X$rpathdirs" != "X"; then
10323 if test -n "$hardcode_libdir_separator"; then
10324 alldirs=
10325 for found_dir in $rpathdirs; do
10326 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10327 done
10328 acl_save_libdir="$libdir"
10329 libdir="$alldirs"
10330 eval flag=\"$hardcode_libdir_flag_spec\"
10331 libdir="$acl_save_libdir"
10332 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10333 else
10334 for found_dir in $rpathdirs; do
10335 acl_save_libdir="$libdir"
10336 libdir="$found_dir"
10337 eval flag=\"$hardcode_libdir_flag_spec\"
10338 libdir="$acl_save_libdir"
10339 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10340 done
10343 if test "X$ltrpathdirs" != "X"; then
10344 for found_dir in $ltrpathdirs; do
10345 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10346 done
10355 am_save_CPPFLAGS="$CPPFLAGS"
10357 for element in $INCICONV; do
10358 haveit=
10359 for x in $CPPFLAGS; do
10361 acl_save_prefix="$prefix"
10362 prefix="$acl_final_prefix"
10363 acl_save_exec_prefix="$exec_prefix"
10364 exec_prefix="$acl_final_exec_prefix"
10365 eval x=\"$x\"
10366 exec_prefix="$acl_save_exec_prefix"
10367 prefix="$acl_save_prefix"
10369 if test "X$x" = "X$element"; then
10370 haveit=yes
10371 break
10373 done
10374 if test -z "$haveit"; then
10375 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10377 done
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10381 $as_echo_n "checking for iconv... " >&6; }
10382 if test "${am_cv_func_iconv+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
10384 else
10386 am_cv_func_iconv="no, consider installing GNU libiconv"
10387 am_cv_lib_iconv=no
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390 #include <stdlib.h>
10391 #include <iconv.h>
10393 main ()
10395 iconv_t cd = iconv_open("","");
10396 iconv(cd,NULL,NULL,NULL,NULL);
10397 iconv_close(cd);
10399 return 0;
10401 _ACEOF
10402 if ac_fn_cxx_try_link "$LINENO"; then :
10403 am_cv_func_iconv=yes
10405 rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
10407 if test "$am_cv_func_iconv" != yes; then
10408 am_save_LIBS="$LIBS"
10409 LIBS="$LIBS $LIBICONV"
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10412 #include <stdlib.h>
10413 #include <iconv.h>
10415 main ()
10417 iconv_t cd = iconv_open("","");
10418 iconv(cd,NULL,NULL,NULL,NULL);
10419 iconv_close(cd);
10421 return 0;
10423 _ACEOF
10424 if ac_fn_cxx_try_link "$LINENO"; then :
10425 am_cv_lib_iconv=yes
10426 am_cv_func_iconv=yes
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 LIBS="$am_save_LIBS"
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10435 $as_echo "$am_cv_func_iconv" >&6; }
10436 if test "$am_cv_func_iconv" = yes; then
10438 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10441 if test "$am_cv_lib_iconv" = yes; then
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10443 $as_echo_n "checking how to link with libiconv... " >&6; }
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10445 $as_echo "$LIBICONV" >&6; }
10446 else
10447 CPPFLAGS="$am_save_CPPFLAGS"
10448 LIBICONV=
10449 LTLIBICONV=
10454 if test "$am_cv_func_iconv" = yes; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10456 $as_echo_n "checking for iconv declaration... " >&6; }
10457 if test "${am_cv_proto_iconv+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h. */
10464 #include <stdlib.h>
10465 #include <iconv.h>
10466 extern
10467 #ifdef __cplusplus
10469 #endif
10470 #if defined(__STDC__) || defined(__cplusplus)
10471 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10472 #else
10473 size_t iconv();
10474 #endif
10477 main ()
10481 return 0;
10483 _ACEOF
10484 if ac_fn_cxx_try_compile "$LINENO"; then :
10485 am_cv_proto_iconv_arg1=""
10486 else
10487 am_cv_proto_iconv_arg1="const"
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490 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);"
10493 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10495 }$am_cv_proto_iconv" >&5
10496 $as_echo "${ac_t:-
10497 }$am_cv_proto_iconv" >&6; }
10499 cat >>confdefs.h <<_ACEOF
10500 #define ICONV_CONST $am_cv_proto_iconv_arg1
10501 _ACEOF
10505 ac_ext=c
10506 ac_cpp='$CPP $CPPFLAGS'
10507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512 # Until we have in-tree GNU iconv:
10513 LIBICONV_DEP=
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10518 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10519 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 #include <locale.h>
10526 main ()
10528 return LC_MESSAGES
10530 return 0;
10532 _ACEOF
10533 if ac_fn_c_try_link "$LINENO"; then :
10534 am_cv_val_LC_MESSAGES=yes
10535 else
10536 am_cv_val_LC_MESSAGES=no
10538 rm -f core conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10542 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10543 if test $am_cv_val_LC_MESSAGES = yes; then
10545 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10552 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10553 if test "${am_cv_langinfo_codeset+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10555 else
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 #include <langinfo.h>
10560 main ()
10562 char* cs = nl_langinfo(CODESET);
10564 return 0;
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 am_cv_langinfo_codeset=yes
10569 else
10570 am_cv_langinfo_codeset=no
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10577 $as_echo "$am_cv_langinfo_codeset" >&6; }
10578 if test $am_cv_langinfo_codeset = yes; then
10580 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10585 # We will need to find libiberty.h and ansidecl.h
10586 saved_CFLAGS="$CFLAGS"
10587 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10588 saved_CXXFLAGS="$CXXFLAGS"
10589 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10590 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10591 stpcpy strnlen strsignal strstr strverscmp \
10592 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10593 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
10595 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10597 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10598 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10603 #undef $ac_tr_decl
10604 #define $ac_tr_decl 1
10606 #include "ansidecl.h"
10607 #include "system.h"
10610 main ()
10612 #ifndef $ac_func
10613 char *(*pfn) = (char *(*)) $ac_func ;
10614 #endif
10616 return 0;
10618 _ACEOF
10619 if ac_fn_c_try_compile "$LINENO"; then :
10620 eval "gcc_cv_have_decl_$ac_func=yes"
10621 else
10622 eval "gcc_cv_have_decl_$ac_func=no"
10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10629 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10630 #define $ac_tr_decl 1
10631 _ACEOF
10633 else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10636 #define $ac_tr_decl 0
10637 _ACEOF
10641 done
10644 for ac_func in getrlimit setrlimit getrusage
10646 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10648 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10649 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10654 #undef $ac_tr_decl
10655 #define $ac_tr_decl 1
10657 #include "ansidecl.h"
10658 #include "system.h"
10659 #ifdef HAVE_SYS_RESOURCE_H
10660 #include <sys/resource.h>
10661 #endif
10665 main ()
10667 #ifndef $ac_func
10668 char *(*pfn) = (char *(*)) $ac_func ;
10669 #endif
10671 return 0;
10673 _ACEOF
10674 if ac_fn_c_try_compile "$LINENO"; then :
10675 eval "gcc_cv_have_decl_$ac_func=yes"
10676 else
10677 eval "gcc_cv_have_decl_$ac_func=no"
10679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10682 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10684 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10685 #define $ac_tr_decl 1
10686 _ACEOF
10688 else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10691 #define $ac_tr_decl 0
10692 _ACEOF
10696 done
10699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10702 #include "ansidecl.h"
10703 #include "system.h"
10704 #ifdef HAVE_SYS_RESOURCE_H
10705 #include <sys/resource.h>
10706 #endif
10709 main ()
10711 rlim_t l = 0;
10713 return 0;
10715 _ACEOF
10716 if ac_fn_c_try_compile "$LINENO"; then :
10718 else
10720 $as_echo "#define rlim_t long" >>confdefs.h
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10725 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10726 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10727 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10728 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10729 for ac_func in ldgetname
10731 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10733 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10734 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #undef $ac_tr_decl
10740 #define $ac_tr_decl 1
10742 #include "ansidecl.h"
10743 #include "system.h"
10744 #ifdef HAVE_LDFCN_H
10745 #undef FREAD
10746 #undef FWRITE
10747 #include <ldfcn.h>
10748 #endif
10752 main ()
10754 #ifndef $ac_func
10755 char *(*pfn) = (char *(*)) $ac_func ;
10756 #endif
10758 return 0;
10760 _ACEOF
10761 if ac_fn_c_try_compile "$LINENO"; then :
10762 eval "gcc_cv_have_decl_$ac_func=yes"
10763 else
10764 eval "gcc_cv_have_decl_$ac_func=no"
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10771 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10772 #define $ac_tr_decl 1
10773 _ACEOF
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10778 #define $ac_tr_decl 0
10779 _ACEOF
10783 done
10786 for ac_func in times
10788 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10790 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10791 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796 #undef $ac_tr_decl
10797 #define $ac_tr_decl 1
10799 #include "ansidecl.h"
10800 #include "system.h"
10801 #ifdef HAVE_SYS_TIMES_H
10802 #include <sys/times.h>
10803 #endif
10807 main ()
10809 #ifndef $ac_func
10810 char *(*pfn) = (char *(*)) $ac_func ;
10811 #endif
10813 return 0;
10815 _ACEOF
10816 if ac_fn_c_try_compile "$LINENO"; then :
10817 eval "gcc_cv_have_decl_$ac_func=yes"
10818 else
10819 eval "gcc_cv_have_decl_$ac_func=no"
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10824 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10826 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10827 #define $ac_tr_decl 1
10828 _ACEOF
10830 else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10833 #define $ac_tr_decl 0
10834 _ACEOF
10838 done
10841 for ac_func in sigaltstack
10843 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10845 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10846 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10851 #undef $ac_tr_decl
10852 #define $ac_tr_decl 1
10854 #include "ansidecl.h"
10855 #include "system.h"
10856 #include <signal.h>
10860 main ()
10862 #ifndef $ac_func
10863 char *(*pfn) = (char *(*)) $ac_func ;
10864 #endif
10866 return 0;
10868 _ACEOF
10869 if ac_fn_c_try_compile "$LINENO"; then :
10870 eval "gcc_cv_have_decl_$ac_func=yes"
10871 else
10872 eval "gcc_cv_have_decl_$ac_func=no"
10874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10880 #define $ac_tr_decl 1
10881 _ACEOF
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10886 #define $ac_tr_decl 0
10887 _ACEOF
10891 done
10894 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10895 # prototype.
10896 ac_ext=cpp
10897 ac_cpp='$CXXCPP $CPPFLAGS'
10898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10902 for ac_func in madvise
10904 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10906 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10907 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 #undef $ac_tr_decl
10913 #define $ac_tr_decl 1
10915 #include "ansidecl.h"
10916 #include "system.h"
10920 main ()
10922 #ifndef $ac_func
10923 char *(*pfn) = (char *(*)) $ac_func ;
10924 #endif
10926 return 0;
10928 _ACEOF
10929 if ac_fn_cxx_try_compile "$LINENO"; then :
10930 eval "gcc_cv_have_decl_$ac_func=yes"
10931 else
10932 eval "gcc_cv_have_decl_$ac_func=no"
10934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10939 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10940 #define $ac_tr_decl 1
10941 _ACEOF
10943 else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10946 #define $ac_tr_decl 0
10947 _ACEOF
10951 done
10953 ac_ext=c
10954 ac_cpp='$CPP $CPPFLAGS'
10955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10960 # More time-related stuff.
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10962 $as_echo_n "checking for struct tms... " >&6; }
10963 if test "${ac_cv_struct_tms+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
10965 else
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 #include "ansidecl.h"
10971 #include "system.h"
10972 #ifdef HAVE_SYS_TIMES_H
10973 #include <sys/times.h>
10974 #endif
10977 main ()
10979 struct tms tms;
10981 return 0;
10983 _ACEOF
10984 if ac_fn_c_try_compile "$LINENO"; then :
10985 ac_cv_struct_tms=yes
10986 else
10987 ac_cv_struct_tms=no
10989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10992 $as_echo "$ac_cv_struct_tms" >&6; }
10993 if test $ac_cv_struct_tms = yes; then
10995 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10999 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11000 # revisit after autoconf 2.50.
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11002 $as_echo_n "checking for clock_t... " >&6; }
11003 if test "${gcc_cv_type_clock_t+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
11005 else
11007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h. */
11010 #include "ansidecl.h"
11011 #include "system.h"
11014 main ()
11016 clock_t x;
11018 return 0;
11020 _ACEOF
11021 if ac_fn_c_try_compile "$LINENO"; then :
11022 gcc_cv_type_clock_t=yes
11023 else
11024 gcc_cv_type_clock_t=no
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11029 $as_echo "$gcc_cv_type_clock_t" >&6; }
11030 if test $gcc_cv_type_clock_t = yes; then
11032 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11036 # Check if F_SETLKW is supported by fcntl.
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11038 $as_echo_n "checking for F_SETLKW... " >&6; }
11039 if test "${ac_cv_f_setlkw+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 <fcntl.h>
11048 main ()
11051 struct flock fl;
11052 fl.l_whence = 0;
11053 fl.l_start = 0;
11054 fl.l_len = 0;
11055 fl.l_pid = 0;
11056 return fcntl (1, F_SETLKW, &fl);
11058 return 0;
11060 _ACEOF
11061 if ac_fn_c_try_compile "$LINENO"; then :
11062 ac_cv_f_setlkw=yes
11063 else
11064 ac_cv_f_setlkw=no
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11069 $as_echo "$ac_cv_f_setlkw" >&6; }
11070 if test $ac_cv_f_setlkw = yes; then
11072 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11076 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11077 CFLAGS="$saved_CFLAGS"
11078 CXXFLAGS="$saved_CXXFLAGS"
11080 # mkdir takes a single argument on some systems.
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11082 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11083 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11089 #include <sys/types.h>
11090 #ifdef HAVE_SYS_STAT_H
11091 # include <sys/stat.h>
11092 #endif
11093 #ifdef HAVE_UNISTD_H
11094 # include <unistd.h>
11095 #endif
11096 #ifdef HAVE_DIRECT_H
11097 # include <direct.h>
11098 #endif
11100 main ()
11102 mkdir ("foo", 0);
11104 return 0;
11106 _ACEOF
11107 if ac_fn_c_try_compile "$LINENO"; then :
11108 gcc_cv_mkdir_takes_one_arg=no
11109 else
11110 gcc_cv_mkdir_takes_one_arg=yes
11112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11115 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11116 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11118 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11123 # File extensions
11124 manext='.1'
11125 objext='.o'
11129 # With Setjmp/Longjmp based exception handling.
11130 # Check whether --enable-sjlj-exceptions was given.
11131 if test "${enable_sjlj_exceptions+set}" = set; then :
11132 enableval=$enable_sjlj_exceptions; case $target in
11133 *-*-hpux10*)
11134 if test $enableval != yes; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11136 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11137 enableval=yes
11140 esac
11141 force_sjlj_exceptions=yes
11142 else
11143 case $target in
11144 *-*-hpux10*)
11145 force_sjlj_exceptions=yes
11146 enableval=yes
11148 lm32*-*-*)
11149 force_sjlj_exceptions=yes
11150 enableval=yes
11153 force_sjlj_exceptions=no
11155 esac
11158 if test $force_sjlj_exceptions = yes; then
11159 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11161 cat >>confdefs.h <<_ACEOF
11162 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11163 _ACEOF
11167 # --------------------------------------------------------
11168 # Build, host, and target specific configuration fragments
11169 # --------------------------------------------------------
11171 # Collect build-machine-specific information.
11172 . ${srcdir}/config.build
11174 # Collect host-machine-specific information.
11175 . ${srcdir}/config.host
11177 target_gtfiles=
11179 # Collect target-machine-specific information.
11180 . ${srcdir}/config.gcc
11182 extra_objs="${host_extra_objs} ${extra_objs}"
11183 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11185 # Default the target-machine variables that were not explicitly set.
11186 if test x"$tm_file" = x
11187 then tm_file=$cpu_type/$cpu_type.h; fi
11189 if test x"$extra_headers" = x
11190 then extra_headers=; fi
11192 if test x$md_file = x
11193 then md_file=$cpu_type/$cpu_type.md; fi
11195 if test x$out_file = x
11196 then out_file=$cpu_type/$cpu_type.c; fi
11198 if test x"$tmake_file" = x
11199 then tmake_file=$cpu_type/t-$cpu_type
11202 # Support --enable-initfini-array.
11203 if test x$enable_initfini_array != xno; then
11204 tm_file="${tm_file} initfini-array.h"
11207 if test x"$dwarf2" = xyes
11208 then tm_file="$tm_file tm-dwarf2.h"
11211 # Say what files are being used for the output code and MD file.
11212 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11213 echo "Using \`$srcdir/config/$md_file' as machine description file."
11215 # If any of the xm_file variables contain nonexistent files, warn
11216 # about them and drop them.
11219 for x in $build_xm_file; do
11220 if test -f $srcdir/config/$x
11221 then bx="$bx $x"
11222 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11223 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11225 done
11226 build_xm_file="$bx"
11229 for x in $host_xm_file; do
11230 if test -f $srcdir/config/$x
11231 then hx="$hx $x"
11232 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11233 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11235 done
11236 host_xm_file="$hx"
11239 for x in $xm_file; do
11240 if test -f $srcdir/config/$x
11241 then tx="$tx $x"
11242 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11243 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11245 done
11246 xm_file="$tx"
11248 count=a
11249 for f in $tm_file; do
11250 count=${count}x
11251 done
11252 if test $count = ax; then
11253 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11254 else
11255 echo "Using the following target machine macro files:"
11256 for f in $tm_file; do
11257 echo " $srcdir/config/$f"
11258 done
11261 if test x$use_long_long_for_widest_fast_int = xyes; then
11263 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11267 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11269 cat >>confdefs.h <<_ACEOF
11270 #define HAVE_GNU_LD $gnu_ld_bool
11271 _ACEOF
11274 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11276 cat >>confdefs.h <<_ACEOF
11277 #define HAVE_GNU_AS $gnu_as_bool
11278 _ACEOF
11281 count=a
11282 for f in $host_xm_file; do
11283 count=${count}x
11284 done
11285 if test $count = a; then
11287 elif test $count = ax; then
11288 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11289 else
11290 echo "Using the following host machine macro files:"
11291 for f in $host_xm_file; do
11292 echo " $srcdir/config/$f"
11293 done
11295 echo "Using ${out_host_hook_obj} for host machine hooks."
11297 if test "$host_xm_file" != "$build_xm_file"; then
11298 count=a
11299 for f in $build_xm_file; do
11300 count=${count}x
11301 done
11302 if test $count = a; then
11304 elif test $count = ax; then
11305 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11306 else
11307 echo "Using the following build machine macro files:"
11308 for f in $build_xm_file; do
11309 echo " $srcdir/config/$f"
11310 done
11314 if test -n "$configured_native_system_header_dir"; then
11315 native_system_header_dir=$configured_native_system_header_dir
11317 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11320 case ${host} in
11321 powerpc*-*-darwin*)
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11323 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11324 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11330 #include <sys/cdefs.h>
11331 #include <sys/signal.h>
11332 #include <ucontext.h>
11333 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11335 _ACEOF
11336 if ac_fn_c_try_compile "$LINENO"; then :
11337 gcc_cv_mcontext_underscores=no
11338 else
11339 gcc_cv_mcontext_underscores=yes
11341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11344 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11345 if test $gcc_cv_mcontext_underscores = yes; then
11347 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11351 esac
11353 # ---------
11354 # Threading
11355 # ---------
11357 # Check if a valid thread package
11358 case ${enable_threads} in
11359 "" | no)
11360 # No threads
11361 target_thread_file='single'
11363 yes)
11364 # default
11365 target_thread_file='single'
11367 aix | dce | lynx | mipssde | posix | rtems | \
11368 single | tpf | vxworks | win32)
11369 target_thread_file=${enable_threads}
11372 echo "${enable_threads} is an unknown thread package" 1>&2
11373 exit 1
11375 esac
11377 if test x${thread_file} = x; then
11378 # No thread file set by target-specific clauses in config.gcc,
11379 # so use file chosen by default logic above
11380 thread_file=${target_thread_file}
11383 # --------
11384 # UNSORTED
11385 # --------
11387 use_cxa_atexit=no
11388 if test x$enable___cxa_atexit = xyes || \
11389 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11390 if test x$host = x$target; then
11391 case $host in
11392 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11393 # keyed to flag_use_cxa_atexit
11394 *-*-mingw32*)
11395 use_cxa_atexit=yes
11397 powerpc-ibm-aix*)
11398 use_cxa_atexit=yes
11401 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11402 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11403 use_cxa_atexit=yes
11404 else
11405 echo "__cxa_atexit can't be enabled on this target"
11409 esac
11410 else
11411 # We can't check for __cxa_atexit when building a cross, so assume
11412 # it is available
11413 use_cxa_atexit=yes
11415 if test x$use_cxa_atexit = xyes; then
11417 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11422 # Look for a file containing extra machine modes.
11423 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11424 extra_modes_file='$(srcdir)'/config/${extra_modes}
11427 cat >>confdefs.h <<_ACEOF
11428 #define EXTRA_MODES_FILE "config/$extra_modes"
11429 _ACEOF
11433 # Convert extra_options into a form suitable for Makefile use.
11434 extra_opt_files=
11435 all_opt_files=
11436 for f in $extra_options; do
11437 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11438 all_opt_files="$all_opt_files $srcdir/config/$f"
11439 done
11442 # auto-host.h is the file containing items generated by autoconf and is
11443 # the first file included by config.h.
11444 # If host=build, it is correct to have bconfig include auto-host.h
11445 # as well. If host!=build, we are in error and need to do more
11446 # work to find out the build config parameters.
11447 if test x$host = x$build
11448 then
11449 build_auto=auto-host.h
11450 else
11451 # We create a subdir, then run autoconf in the subdir.
11452 # To prevent recursion we set host and build for the new
11453 # invocation of configure to the build for this invocation
11454 # of configure.
11455 tempdir=build.$$
11456 rm -rf $tempdir
11457 mkdir $tempdir
11458 cd $tempdir
11459 case ${srcdir} in
11460 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11461 *) realsrcdir=../${srcdir};;
11462 esac
11463 # Clearing GMPINC is necessary to prevent host headers being
11464 # used by the build compiler. Defining GENERATOR_FILE stops
11465 # system.h from including gmp.h.
11466 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11467 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11468 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11469 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11470 ${realsrcdir}/configure \
11471 --enable-languages=${enable_languages-all} \
11472 --target=$target_alias --host=$build_alias --build=$build_alias
11474 # We just finished tests for the build machine, so rename
11475 # the file auto-build.h in the gcc directory.
11476 mv auto-host.h ../auto-build.h
11477 cd ..
11478 rm -rf $tempdir
11479 build_auto=auto-build.h
11483 tm_file="${tm_file} defaults.h"
11484 tm_p_file="${tm_p_file} tm-preds.h"
11485 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11486 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11487 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11488 # put this back in temporarily.
11489 xm_file="auto-host.h ansidecl.h ${xm_file}"
11491 # --------
11492 # UNSORTED
11493 # --------
11495 # Compile in configure arguments.
11496 if test -f configargs.h ; then
11497 # Being re-configured.
11498 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11499 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11500 else
11501 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11504 # Double all backslashes and backslash all quotes to turn
11505 # gcc_config_arguments into a C string.
11506 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11507 $gcc_config_arguments
11509 gcc_config_arguments_str=`cat conftest.out`
11510 rm -f conftest.out
11512 cat > configargs.h <<EOF
11513 /* Generated automatically. */
11514 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11515 static const char thread_model[] = "$thread_file";
11517 static const struct {
11518 const char *name, *value;
11519 } configure_default_options[] = $configure_default_options;
11522 gcc_BASEVER=`cat $srcdir/BASE-VER`
11523 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11524 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11525 if test -f $srcdir/REVISION ; then
11526 gcc_REVISION=`cat $srcdir/REVISION`
11527 else
11528 gcc_REVISION=""
11530 cat > plugin-version.h <<EOF
11531 #include "configargs.h"
11533 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11534 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11535 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11536 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11538 static char basever[] = "$gcc_BASEVER";
11539 static char datestamp[] = "$gcc_DATESTAMP";
11540 static char devphase[] = "$gcc_DEVPHASE";
11541 static char revision[] = "$gcc_REVISION";
11543 /* FIXME plugins: We should make the version information more precise.
11544 One way to do is to add a checksum. */
11546 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11547 devphase, revision,
11548 configuration_arguments};
11551 # Internationalization
11552 # If we haven't got the data from the intl directory,
11553 # assume NLS is disabled.
11554 USE_NLS=no
11555 LIBINTL=
11556 LIBINTL_DEP=
11557 INCINTL=
11558 XGETTEXT=
11559 GMSGFMT=
11560 POSUB=
11562 if test -f ../intl/config.intl; then
11563 . ../intl/config.intl
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11566 $as_echo_n "checking whether NLS is requested... " >&6; }
11567 if test x"$USE_NLS" != xyes; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11570 else
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11572 $as_echo "yes" >&6; }
11574 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11578 $as_echo_n "checking for catalogs to be installed... " >&6; }
11579 # Look for .po and .gmo files in the source directory.
11580 CATALOGS=
11581 XLINGUAS=
11582 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11583 # If there aren't any .gmo files the shell will give us the
11584 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11585 # weeded out.
11586 case "$cat" in *\**)
11587 continue;;
11588 esac
11589 # The quadruple backslash is collapsed to a double backslash
11590 # by the backticks, then collapsed again by the double quotes,
11591 # leaving us with one backslash in the sed expression (right
11592 # before the dot that mustn't act as a wildcard).
11593 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11594 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11595 # The user is allowed to set LINGUAS to a list of languages to
11596 # install catalogs for. If it's empty that means "all of them."
11597 if test "x$LINGUAS" = x; then
11598 CATALOGS="$CATALOGS $cat"
11599 XLINGUAS="$XLINGUAS $lang"
11600 else
11601 case "$LINGUAS" in *$lang*)
11602 CATALOGS="$CATALOGS $cat"
11603 XLINGUAS="$XLINGUAS $lang"
11605 esac
11607 done
11608 LINGUAS="$XLINGUAS"
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11610 $as_echo "$LINGUAS" >&6; }
11613 DATADIRNAME=share
11615 INSTOBJEXT=.mo
11617 GENCAT=gencat
11619 CATOBJEXT=.gmo
11623 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11624 # -liconv on the link line twice.
11625 case "$LIBINTL" in *$LIBICONV*)
11626 LIBICONV= ;;
11627 esac
11629 # Check whether --enable-secureplt was given.
11630 if test "${enable_secureplt+set}" = set; then :
11631 enableval=$enable_secureplt;
11635 # Check whether --enable-leading-mingw64-underscores was given.
11636 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11637 enableval=$enable_leading_mingw64_underscores;
11640 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11642 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11646 # Check whether --enable-cld was given.
11647 if test "${enable_cld+set}" = set; then :
11648 enableval=$enable_cld;
11649 else
11650 enable_cld=no
11654 # Check whether --enable-frame-pointer was given.
11655 if test "${enable_frame_pointer+set}" = set; then :
11656 enableval=$enable_frame_pointer;
11657 else
11659 case $target_os in
11660 linux* | darwin[8912]*)
11661 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11662 # DWARF2.
11663 enable_frame_pointer=no
11666 enable_frame_pointer=yes
11668 esac
11673 # Windows32 Registry support for specifying GCC installation paths.
11674 # Check whether --enable-win32-registry was given.
11675 if test "${enable_win32_registry+set}" = set; then :
11676 enableval=$enable_win32_registry;
11680 case $host_os in
11681 win32 | pe | cygwin* | mingw32* | uwin*)
11682 if test "x$enable_win32_registry" != xno; then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11684 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11685 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 ac_func_search_save_LIBS=$LIBS
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11692 /* Override any GCC internal prototype to avoid an error.
11693 Use char because int might match the return type of a GCC
11694 builtin and then its argument prototype would still apply. */
11695 #ifdef __cplusplus
11696 extern "C"
11697 #endif
11698 char RegOpenKeyExA ();
11700 main ()
11702 return RegOpenKeyExA ();
11704 return 0;
11706 _ACEOF
11707 for ac_lib in '' advapi32; do
11708 if test -z "$ac_lib"; then
11709 ac_res="none required"
11710 else
11711 ac_res=-l$ac_lib
11712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11714 if ac_fn_c_try_link "$LINENO"; then :
11715 ac_cv_search_RegOpenKeyExA=$ac_res
11717 rm -f core conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext
11719 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11720 break
11722 done
11723 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11725 else
11726 ac_cv_search_RegOpenKeyExA=no
11728 rm conftest.$ac_ext
11729 LIBS=$ac_func_search_save_LIBS
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11732 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11733 ac_res=$ac_cv_search_RegOpenKeyExA
11734 if test "$ac_res" != no; then :
11735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11737 else
11738 enable_win32_registry=no
11743 if test "x$enable_win32_registry" != xno; then
11745 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11748 if test "x$enable_win32_registry" != xyes \
11749 && test "x$enable_win32_registry" != x; then
11751 cat >>confdefs.h <<_ACEOF
11752 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11753 _ACEOF
11758 esac
11760 # Get an absolute path to the GCC top-level source directory
11761 holddir=`${PWDCMD-pwd}`
11762 cd $srcdir
11763 topdir=`${PWDCMD-pwd}`
11764 cd $holddir
11766 # Conditionalize the makefile for this host machine.
11767 xmake_file=
11768 for f in ${host_xmake_file}
11770 if test -f ${srcdir}/config/$f
11771 then
11772 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11774 done
11776 # Conditionalize the makefile for this target machine.
11777 tmake_file_=
11778 for f in ${tmake_file}
11780 if test -f ${srcdir}/config/$f
11781 then
11782 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11784 done
11785 tmake_file="${tmake_file_}"
11787 out_object_file=`basename $out_file .c`.o
11788 common_out_object_file=`basename $common_out_file .c`.o
11790 tm_file_list="options.h"
11791 tm_include_list="options.h insn-constants.h"
11792 for f in $tm_file; do
11793 case $f in
11794 ./* )
11795 f=`echo $f | sed 's/^..//'`
11796 tm_file_list="${tm_file_list} $f"
11797 tm_include_list="${tm_include_list} $f"
11799 defaults.h )
11800 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11801 tm_include_list="${tm_include_list} $f"
11804 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11805 tm_include_list="${tm_include_list} config/$f"
11807 esac
11808 done
11810 tm_p_file_list=
11811 tm_p_include_list=
11812 for f in $tm_p_file; do
11813 case $f in
11814 tm-preds.h )
11815 tm_p_file_list="${tm_p_file_list} $f"
11816 tm_p_include_list="${tm_p_include_list} $f"
11819 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11820 tm_p_include_list="${tm_p_include_list} config/$f"
11821 esac
11822 done
11824 xm_file_list=
11825 xm_include_list=
11826 for f in $xm_file; do
11827 case $f in
11828 ansidecl.h )
11829 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11830 xm_include_list="${xm_include_list} $f"
11832 auto-host.h )
11833 xm_file_list="${xm_file_list} $f"
11834 xm_include_list="${xm_include_list} $f"
11837 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11838 xm_include_list="${xm_include_list} config/$f"
11840 esac
11841 done
11843 host_xm_file_list=
11844 host_xm_include_list=
11845 for f in $host_xm_file; do
11846 case $f in
11847 ansidecl.h )
11848 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11849 host_xm_include_list="${host_xm_include_list} $f"
11851 auto-host.h )
11852 host_xm_file_list="${host_xm_file_list} $f"
11853 host_xm_include_list="${host_xm_include_list} $f"
11856 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11857 host_xm_include_list="${host_xm_include_list} config/$f"
11859 esac
11860 done
11862 build_xm_file_list=
11863 for f in $build_xm_file; do
11864 case $f in
11865 ansidecl.h )
11866 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11867 build_xm_include_list="${build_xm_include_list} $f"
11869 auto-build.h | auto-host.h )
11870 build_xm_file_list="${build_xm_file_list} $f"
11871 build_xm_include_list="${build_xm_include_list} $f"
11874 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11875 build_xm_include_list="${build_xm_include_list} config/$f"
11877 esac
11878 done
11880 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11881 # cross-compiler which does not use the native headers and libraries.
11882 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11883 CROSS=
11884 ALL=all.internal
11885 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11887 if test "x$with_build_sysroot" != x; then
11888 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11889 else
11890 # This value is used, even on a native system, because
11891 # CROSS_SYSTEM_HEADER_DIR is just
11892 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11893 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11896 if test x$host != x$target
11897 then
11898 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11899 ALL=all.cross
11900 SYSTEM_HEADER_DIR=$build_system_header_dir
11901 case "$host","$target" in
11902 # Darwin crosses can use the host system's libraries and headers,
11903 # because of the fat library support. Of course, it must be the
11904 # same version of Darwin on both sides. Allow the user to
11905 # just say --target=foo-darwin without a version number to mean
11906 # "the version on this system".
11907 *-*-darwin*,*-*-darwin*)
11908 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11909 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11910 if test $hostos = $targetos -o $targetos = darwin ; then
11911 CROSS=
11912 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11913 with_headers=yes
11917 i?86-*-*,x86_64-*-* \
11918 | powerpc*-*-*,powerpc64*-*-*)
11919 CROSS="$CROSS -DNATIVE_CROSS" ;;
11920 esac
11922 case $target in
11923 *-*-mingw*)
11924 if test "x$with_headers" = x; then
11925 with_headers=yes
11930 esac
11931 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11932 SYSTEM_HEADER_DIR=$build_system_header_dir
11935 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
11936 if test "x$with_headers" != x; then
11937 target_header_dir=$with_headers
11938 elif test "x$with_sysroot" = x; then
11939 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
11940 elif test "x$with_build_sysroot" != "x"; then
11941 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
11942 elif test "x$with_sysroot" = xyes; then
11943 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11944 else
11945 target_header_dir="${with_sysroot}${native_system_header_dir}"
11947 else
11948 target_header_dir=${native_system_header_dir}
11951 # If this is a cross-compiler that does not
11952 # have its own set of headers then define
11953 # inhibit_libc
11955 # If this is using newlib, without having the headers available now,
11956 # then define inhibit_libc in LIBGCC2_CFLAGS.
11957 # This prevents libgcc2 from containing any code which requires libc
11958 # support.
11959 : ${inhibit_libc=false}
11960 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11961 test x$with_newlib = xyes ; } &&
11962 { test "x$with_headers" = xno || test ! -f "$target_header_dir/stdio.h"; } ; then
11963 inhibit_libc=true
11967 # When building gcc with a cross-compiler, we need to adjust things so
11968 # that the generator programs are still built with the native compiler.
11969 # Also, we cannot run fixincludes.
11971 # These are the normal (build=host) settings:
11972 CC_FOR_BUILD='$(CC)'
11973 CXX_FOR_BUILD='$(CXX)'
11974 BUILD_CFLAGS='$(ALL_CFLAGS)'
11975 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11976 BUILD_LDFLAGS='$(LDFLAGS)'
11977 STMP_FIXINC=stmp-fixinc
11979 # And these apply if build != host, or we are generating coverage data
11980 if test x$build != x$host || test "x$coverage_flags" != x
11981 then
11982 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11983 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11984 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11987 # Expand extra_headers to include complete path.
11988 # This substitutes for lots of t-* files.
11989 extra_headers_list=
11990 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11991 for file in ${extra_headers} ; do
11992 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11993 done
11995 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11996 if test x"$use_gcc_tgmath" = xyes
11997 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12000 # Define collect2 in Makefile.
12001 case $host_can_use_collect2 in
12002 no) collect2= ;;
12003 *) collect2='collect2$(exeext)' ;;
12004 esac
12007 # Add a definition of USE_COLLECT2 if system wants one.
12008 case $use_collect2 in
12009 no) use_collect2= ;;
12010 "") ;;
12012 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12013 xm_defines="${xm_defines} USE_COLLECT2"
12014 case $host_can_use_collect2 in
12016 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12018 esac
12020 esac
12023 cat >>confdefs.h <<_ACEOF
12024 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12025 _ACEOF
12028 # ---------------------------
12029 # Assembler & linker features
12030 # ---------------------------
12032 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12033 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12034 # However when ld-new is first executed from the build tree, libtool will
12035 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12036 # to the build tree. While doing this we need to use the previous-stage
12037 # linker, or we have an infinite loop. The presence of a shell script as
12038 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12039 # the gcc/collect-ld script. So we need to know how libtool works, or
12040 # exec-tool will fail.
12043 case `pwd` in
12044 *\ * | *\ *)
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12046 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12047 esac
12051 macro_version='2.2.7a'
12052 macro_revision='1.3134'
12066 ltmain="$ac_aux_dir/ltmain.sh"
12068 # Backslashify metacharacters that are still active within
12069 # double-quoted strings.
12070 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12072 # Same as above, but do not quote variable references.
12073 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12075 # Sed substitution to delay expansion of an escaped shell variable in a
12076 # double_quote_subst'ed string.
12077 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12079 # Sed substitution to delay expansion of an escaped single quote.
12080 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12082 # Sed substitution to avoid accidental globbing in evaled expressions
12083 no_glob_subst='s/\*/\\\*/g'
12085 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12087 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12090 $as_echo_n "checking how to print strings... " >&6; }
12091 # Test print first, because it will be a builtin if present.
12092 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12093 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12094 ECHO='print -r --'
12095 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12096 ECHO='printf %s\n'
12097 else
12098 # Use this function as a fallback that always works.
12099 func_fallback_echo ()
12101 eval 'cat <<_LTECHO_EOF
12103 _LTECHO_EOF'
12105 ECHO='func_fallback_echo'
12108 # func_echo_all arg...
12109 # Invoke $ECHO with all args, space-separated.
12110 func_echo_all ()
12112 $ECHO ""
12115 case "$ECHO" in
12116 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12117 $as_echo "printf" >&6; } ;;
12118 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12119 $as_echo "print -r" >&6; } ;;
12120 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12121 $as_echo "cat" >&6; } ;;
12122 esac
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12138 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12139 if test "${ac_cv_path_SED+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12143 for ac_i in 1 2 3 4 5 6 7; do
12144 ac_script="$ac_script$as_nl$ac_script"
12145 done
12146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12147 { ac_script=; unset ac_script;}
12148 if test -z "$SED"; then
12149 ac_path_SED_found=false
12150 # Loop through the user's path and test for each of PROGNAME-LIST
12151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152 for as_dir in $PATH
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
12156 for ac_prog in sed gsed; do
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12159 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12160 # Check for GNU ac_path_SED and select it if it is found.
12161 # Check for GNU $ac_path_SED
12162 case `"$ac_path_SED" --version 2>&1` in
12163 *GNU*)
12164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12166 ac_count=0
12167 $as_echo_n 0123456789 >"conftest.in"
12168 while :
12170 cat "conftest.in" "conftest.in" >"conftest.tmp"
12171 mv "conftest.tmp" "conftest.in"
12172 cp "conftest.in" "conftest.nl"
12173 $as_echo '' >> "conftest.nl"
12174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12176 as_fn_arith $ac_count + 1 && ac_count=$as_val
12177 if test $ac_count -gt ${ac_path_SED_max-0}; then
12178 # Best one so far, save it but keep looking for a better one
12179 ac_cv_path_SED="$ac_path_SED"
12180 ac_path_SED_max=$ac_count
12182 # 10*(2^10) chars as input seems more than enough
12183 test $ac_count -gt 10 && break
12184 done
12185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12186 esac
12188 $ac_path_SED_found && break 3
12189 done
12190 done
12191 done
12192 IFS=$as_save_IFS
12193 if test -z "$ac_cv_path_SED"; then
12194 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12196 else
12197 ac_cv_path_SED=$SED
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12202 $as_echo "$ac_cv_path_SED" >&6; }
12203 SED="$ac_cv_path_SED"
12204 rm -f conftest.sed
12206 test -z "$SED" && SED=sed
12207 Xsed="$SED -e 1s/^X//"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12220 $as_echo_n "checking for fgrep... " >&6; }
12221 if test "${ac_cv_path_FGREP+set}" = set; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12225 then ac_cv_path_FGREP="$GREP -F"
12226 else
12227 if test -z "$FGREP"; then
12228 ac_path_FGREP_found=false
12229 # Loop through the user's path and test for each of PROGNAME-LIST
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_prog in fgrep; do
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12238 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12239 # Check for GNU ac_path_FGREP and select it if it is found.
12240 # Check for GNU $ac_path_FGREP
12241 case `"$ac_path_FGREP" --version 2>&1` in
12242 *GNU*)
12243 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12245 ac_count=0
12246 $as_echo_n 0123456789 >"conftest.in"
12247 while :
12249 cat "conftest.in" "conftest.in" >"conftest.tmp"
12250 mv "conftest.tmp" "conftest.in"
12251 cp "conftest.in" "conftest.nl"
12252 $as_echo 'FGREP' >> "conftest.nl"
12253 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12255 as_fn_arith $ac_count + 1 && ac_count=$as_val
12256 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12257 # Best one so far, save it but keep looking for a better one
12258 ac_cv_path_FGREP="$ac_path_FGREP"
12259 ac_path_FGREP_max=$ac_count
12261 # 10*(2^10) chars as input seems more than enough
12262 test $ac_count -gt 10 && break
12263 done
12264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12265 esac
12267 $ac_path_FGREP_found && break 3
12268 done
12269 done
12270 done
12271 IFS=$as_save_IFS
12272 if test -z "$ac_cv_path_FGREP"; then
12273 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12275 else
12276 ac_cv_path_FGREP=$FGREP
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12282 $as_echo "$ac_cv_path_FGREP" >&6; }
12283 FGREP="$ac_cv_path_FGREP"
12286 test -z "$GREP" && GREP=grep
12306 # Check whether --with-gnu-ld was given.
12307 if test "${with_gnu_ld+set}" = set; then :
12308 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12309 else
12310 with_gnu_ld=no
12313 ac_prog=ld
12314 if test "$GCC" = yes; then
12315 # Check if gcc -print-prog-name=ld gives a path.
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12317 $as_echo_n "checking for ld used by $CC... " >&6; }
12318 case $host in
12319 *-*-mingw*)
12320 # gcc leaves a trailing carriage return which upsets mingw
12321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12324 esac
12325 case $ac_prog in
12326 # Accept absolute paths.
12327 [\\/]* | ?:[\\/]*)
12328 re_direlt='/[^/][^/]*/\.\./'
12329 # Canonicalize the pathname of ld
12330 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12331 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12332 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12333 done
12334 test -z "$LD" && LD="$ac_prog"
12337 # If it fails, then pretend we aren't using GCC.
12338 ac_prog=ld
12341 # If it is relative, then search for the first ld in PATH.
12342 with_gnu_ld=unknown
12344 esac
12345 elif test "$with_gnu_ld" = yes; then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12347 $as_echo_n "checking for GNU ld... " >&6; }
12348 else
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12350 $as_echo_n "checking for non-GNU ld... " >&6; }
12352 if test "${lt_cv_path_LD+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if test -z "$LD"; then
12356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12357 for ac_dir in $PATH; do
12358 IFS="$lt_save_ifs"
12359 test -z "$ac_dir" && ac_dir=.
12360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12361 lt_cv_path_LD="$ac_dir/$ac_prog"
12362 # Check to see if the program is GNU ld. I'd rather use --version,
12363 # but apparently some variants of GNU ld only accept -v.
12364 # Break only if it was the GNU/non-GNU ld that we prefer.
12365 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12366 *GNU* | *'with BFD'*)
12367 test "$with_gnu_ld" != no && break
12370 test "$with_gnu_ld" != yes && break
12372 esac
12374 done
12375 IFS="$lt_save_ifs"
12376 else
12377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12381 LD="$lt_cv_path_LD"
12382 if test -n "$LD"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12384 $as_echo "$LD" >&6; }
12385 else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387 $as_echo "no" >&6; }
12389 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12392 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12396 case `$LD -v 2>&1 </dev/null` in
12397 *GNU* | *'with BFD'*)
12398 lt_cv_prog_gnu_ld=yes
12401 lt_cv_prog_gnu_ld=no
12403 esac
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12407 with_gnu_ld=$lt_cv_prog_gnu_ld
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12418 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12419 if test "${lt_cv_path_NM+set}" = set; then :
12420 $as_echo_n "(cached) " >&6
12421 else
12422 if test -n "$NM"; then
12423 # Let the user override the test.
12424 lt_cv_path_NM="$NM"
12425 else
12426 lt_nm_to_check="${ac_tool_prefix}nm"
12427 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12428 lt_nm_to_check="$lt_nm_to_check nm"
12430 for lt_tmp_nm in $lt_nm_to_check; do
12431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12432 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12433 IFS="$lt_save_ifs"
12434 test -z "$ac_dir" && ac_dir=.
12435 tmp_nm="$ac_dir/$lt_tmp_nm"
12436 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12437 # Check to see if the nm accepts a BSD-compat flag.
12438 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12439 # nm: unknown option "B" ignored
12440 # Tru64's nm complains that /dev/null is an invalid object file
12441 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12442 */dev/null* | *'Invalid file or object type'*)
12443 lt_cv_path_NM="$tmp_nm -B"
12444 break
12447 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12448 */dev/null*)
12449 lt_cv_path_NM="$tmp_nm -p"
12450 break
12453 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12454 continue # so that we can try to find one that supports BSD flags
12456 esac
12458 esac
12460 done
12461 IFS="$lt_save_ifs"
12462 done
12463 : ${lt_cv_path_NM=no}
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12467 $as_echo "$lt_cv_path_NM" >&6; }
12468 if test "$lt_cv_path_NM" != "no"; then
12469 NM="$lt_cv_path_NM"
12470 else
12471 # Didn't find any BSD compatible name lister, look for dumpbin.
12472 if test -n "$DUMPBIN"; then :
12473 # Let the user override the test.
12474 else
12475 if test -n "$ac_tool_prefix"; then
12476 for ac_prog in dumpbin "link -dump"
12478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12481 $as_echo_n "checking for $ac_word... " >&6; }
12482 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12483 $as_echo_n "(cached) " >&6
12484 else
12485 if test -n "$DUMPBIN"; then
12486 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12487 else
12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12489 for as_dir in $PATH
12491 IFS=$as_save_IFS
12492 test -z "$as_dir" && as_dir=.
12493 for ac_exec_ext in '' $ac_executable_extensions; do
12494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12495 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 break 2
12499 done
12500 done
12501 IFS=$as_save_IFS
12505 DUMPBIN=$ac_cv_prog_DUMPBIN
12506 if test -n "$DUMPBIN"; then
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12508 $as_echo "$DUMPBIN" >&6; }
12509 else
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511 $as_echo "no" >&6; }
12515 test -n "$DUMPBIN" && break
12516 done
12518 if test -z "$DUMPBIN"; then
12519 ac_ct_DUMPBIN=$DUMPBIN
12520 for ac_prog in dumpbin "link -dump"
12522 # Extract the first word of "$ac_prog", so it can be a program name with args.
12523 set dummy $ac_prog; ac_word=$2
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525 $as_echo_n "checking for $ac_word... " >&6; }
12526 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 if test -n "$ac_ct_DUMPBIN"; then
12530 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12531 else
12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533 for as_dir in $PATH
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12539 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12541 break 2
12543 done
12544 done
12545 IFS=$as_save_IFS
12549 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12550 if test -n "$ac_ct_DUMPBIN"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12552 $as_echo "$ac_ct_DUMPBIN" >&6; }
12553 else
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12559 test -n "$ac_ct_DUMPBIN" && break
12560 done
12562 if test "x$ac_ct_DUMPBIN" = x; then
12563 DUMPBIN=":"
12564 else
12565 case $cross_compiling:$ac_tool_warned in
12566 yes:)
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12569 ac_tool_warned=yes ;;
12570 esac
12571 DUMPBIN=$ac_ct_DUMPBIN
12575 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12576 *COFF*)
12577 DUMPBIN="$DUMPBIN -symbols"
12580 DUMPBIN=:
12582 esac
12585 if test "$DUMPBIN" != ":"; then
12586 NM="$DUMPBIN"
12589 test -z "$NM" && NM=nm
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12597 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12598 if test "${lt_cv_nm_interface+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
12600 else
12601 lt_cv_nm_interface="BSD nm"
12602 echo "int some_variable = 0;" > conftest.$ac_ext
12603 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12604 (eval "$ac_compile" 2>conftest.err)
12605 cat conftest.err >&5
12606 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12607 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12608 cat conftest.err >&5
12609 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12610 cat conftest.out >&5
12611 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12612 lt_cv_nm_interface="MS dumpbin"
12614 rm -f conftest*
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12617 $as_echo "$lt_cv_nm_interface" >&6; }
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12620 $as_echo_n "checking whether ln -s works... " >&6; }
12621 LN_S=$as_ln_s
12622 if test "$LN_S" = "ln -s"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624 $as_echo "yes" >&6; }
12625 else
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12627 $as_echo "no, using $LN_S" >&6; }
12630 # find the maximum length of command line arguments
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12632 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12637 teststring="ABCD"
12639 case $build_os in
12640 msdosdjgpp*)
12641 # On DJGPP, this test can blow up pretty badly due to problems in libc
12642 # (any single argument exceeding 2000 bytes causes a buffer overrun
12643 # during glob expansion). Even if it were fixed, the result of this
12644 # check would be larger than it should be.
12645 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12648 gnu*)
12649 # Under GNU Hurd, this test is not required because there is
12650 # no limit to the length of command line arguments.
12651 # Libtool will interpret -1 as no limit whatsoever
12652 lt_cv_sys_max_cmd_len=-1;
12655 cygwin* | mingw* | cegcc*)
12656 # On Win9x/ME, this test blows up -- it succeeds, but takes
12657 # about 5 minutes as the teststring grows exponentially.
12658 # Worse, since 9x/ME are not pre-emptively multitasking,
12659 # you end up with a "frozen" computer, even though with patience
12660 # the test eventually succeeds (with a max line length of 256k).
12661 # Instead, let's just punt: use the minimum linelength reported by
12662 # all of the supported platforms: 8192 (on NT/2K/XP).
12663 lt_cv_sys_max_cmd_len=8192;
12666 mint*)
12667 # On MiNT this can take a long time and run out of memory.
12668 lt_cv_sys_max_cmd_len=8192;
12671 amigaos*)
12672 # On AmigaOS with pdksh, this test takes hours, literally.
12673 # So we just punt and use a minimum line length of 8192.
12674 lt_cv_sys_max_cmd_len=8192;
12677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12678 # This has been around since 386BSD, at least. Likely further.
12679 if test -x /sbin/sysctl; then
12680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12681 elif test -x /usr/sbin/sysctl; then
12682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12683 else
12684 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12686 # And add a safety zone
12687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12691 interix*)
12692 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12693 lt_cv_sys_max_cmd_len=196608
12696 osf*)
12697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12699 # nice to cause kernel panics so lets avoid the loop below.
12700 # First set a reasonable default.
12701 lt_cv_sys_max_cmd_len=16384
12703 if test -x /sbin/sysconfig; then
12704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12706 esac
12709 sco3.2v5*)
12710 lt_cv_sys_max_cmd_len=102400
12712 sysv5* | sco5v6* | sysv4.2uw2*)
12713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12714 if test -n "$kargmax"; then
12715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12716 else
12717 lt_cv_sys_max_cmd_len=32768
12721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12722 if test -n "$lt_cv_sys_max_cmd_len"; then
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`
12725 else
12726 # Make teststring a little bigger before we do anything with it.
12727 # a 1K string should be a reasonable start.
12728 for i in 1 2 3 4 5 6 7 8 ; do
12729 teststring=$teststring$teststring
12730 done
12731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12732 # If test is not a shell built-in, we'll probably end up computing a
12733 # maximum length that is only half of the actual maximum length, but
12734 # we can't tell.
12735 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12736 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12737 test $i != 17 # 1/2 MB should be enough
12739 i=`expr $i + 1`
12740 teststring=$teststring$teststring
12741 done
12742 # Only check the string length outside the loop.
12743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12744 teststring=
12745 # Add a significant safety factor because C++ compilers can tack on
12746 # massive amounts of additional arguments before passing them to the
12747 # linker. It appears as though 1/2 is a usable value.
12748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12751 esac
12755 if test -n $lt_cv_sys_max_cmd_len ; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12758 else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12760 $as_echo "none" >&6; }
12762 max_cmd_len=$lt_cv_sys_max_cmd_len
12769 : ${CP="cp -f"}
12770 : ${MV="mv -f"}
12771 : ${RM="rm -f"}
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12775 # Try some XSI features
12776 xsi_shell=no
12777 ( _lt_dummy="a/b/c"
12778 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12779 = c,a/b,, \
12780 && eval 'test $(( 1 + 1 )) -eq 2 \
12781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12782 && xsi_shell=yes
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12784 $as_echo "$xsi_shell" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12789 lt_shell_append=no
12790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12791 >/dev/null 2>&1 \
12792 && lt_shell_append=yes
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12794 $as_echo "$lt_shell_append" >&6; }
12797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12798 lt_unset=unset
12799 else
12800 lt_unset=false
12807 # test EBCDIC or ASCII
12808 case `echo X|tr X '\101'` in
12809 A) # ASCII based system
12810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12811 lt_SP2NL='tr \040 \012'
12812 lt_NL2SP='tr \015\012 \040\040'
12814 *) # EBCDIC based system
12815 lt_SP2NL='tr \100 \n'
12816 lt_NL2SP='tr \r\n \100\100'
12818 esac
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12829 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12830 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12831 $as_echo_n "(cached) " >&6
12832 else
12833 lt_cv_ld_reload_flag='-r'
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12836 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12837 reload_flag=$lt_cv_ld_reload_flag
12838 case $reload_flag in
12839 "" | " "*) ;;
12840 *) reload_flag=" $reload_flag" ;;
12841 esac
12842 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12843 case $host_os in
12844 darwin*)
12845 if test "$GCC" = yes; then
12846 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12847 else
12848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12851 esac
12861 if test -n "$ac_tool_prefix"; then
12862 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12863 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865 $as_echo_n "checking for $ac_word... " >&6; }
12866 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 if test -n "$OBJDUMP"; then
12870 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12871 else
12872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873 for as_dir in $PATH
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
12878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12879 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12881 break 2
12883 done
12884 done
12885 IFS=$as_save_IFS
12889 OBJDUMP=$ac_cv_prog_OBJDUMP
12890 if test -n "$OBJDUMP"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12892 $as_echo "$OBJDUMP" >&6; }
12893 else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12900 if test -z "$ac_cv_prog_OBJDUMP"; then
12901 ac_ct_OBJDUMP=$OBJDUMP
12902 # Extract the first word of "objdump", so it can be a program name with args.
12903 set dummy objdump; ac_word=$2
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905 $as_echo_n "checking for $ac_word... " >&6; }
12906 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 if test -n "$ac_ct_OBJDUMP"; then
12910 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12911 else
12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 for as_dir in $PATH
12915 IFS=$as_save_IFS
12916 test -z "$as_dir" && as_dir=.
12917 for ac_exec_ext in '' $ac_executable_extensions; do
12918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12919 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12923 done
12924 done
12925 IFS=$as_save_IFS
12929 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12930 if test -n "$ac_ct_OBJDUMP"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12932 $as_echo "$ac_ct_OBJDUMP" >&6; }
12933 else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935 $as_echo "no" >&6; }
12938 if test "x$ac_ct_OBJDUMP" = x; then
12939 OBJDUMP="false"
12940 else
12941 case $cross_compiling:$ac_tool_warned in
12942 yes:)
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12945 ac_tool_warned=yes ;;
12946 esac
12947 OBJDUMP=$ac_ct_OBJDUMP
12949 else
12950 OBJDUMP="$ac_cv_prog_OBJDUMP"
12953 test -z "$OBJDUMP" && OBJDUMP=objdump
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12964 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12965 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968 lt_cv_file_magic_cmd='$MAGIC_CMD'
12969 lt_cv_file_magic_test_file=
12970 lt_cv_deplibs_check_method='unknown'
12971 # Need to set the preceding variable on all platforms that support
12972 # interlibrary dependencies.
12973 # 'none' -- dependencies not supported.
12974 # `unknown' -- same as none, but documents that we really don't know.
12975 # 'pass_all' -- all dependencies passed with no checks.
12976 # 'test_compile' -- check by making test program.
12977 # 'file_magic [[regex]]' -- check by looking for files in library path
12978 # which responds to the $file_magic_cmd with a given extended regex.
12979 # If you have `file' or equivalent on your system and you're not sure
12980 # whether `pass_all' will *always* work, you probably want this one.
12982 case $host_os in
12983 aix[4-9]*)
12984 lt_cv_deplibs_check_method=pass_all
12987 beos*)
12988 lt_cv_deplibs_check_method=pass_all
12991 bsdi[45]*)
12992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12993 lt_cv_file_magic_cmd='/usr/bin/file -L'
12994 lt_cv_file_magic_test_file=/shlib/libc.so
12997 cygwin*)
12998 # func_win32_libid is a shell function defined in ltmain.sh
12999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13000 lt_cv_file_magic_cmd='func_win32_libid'
13003 mingw* | pw32*)
13004 # Base MSYS/MinGW do not provide the 'file' command needed by
13005 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13006 # unless we find 'file', for example because we are cross-compiling.
13007 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13008 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13010 lt_cv_file_magic_cmd='func_win32_libid'
13011 else
13012 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13013 lt_cv_file_magic_cmd='$OBJDUMP -f'
13017 cegcc*)
13018 # use the weaker test based on 'objdump'. See mingw*.
13019 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13020 lt_cv_file_magic_cmd='$OBJDUMP -f'
13023 darwin* | rhapsody*)
13024 lt_cv_deplibs_check_method=pass_all
13027 freebsd* | dragonfly*)
13028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13029 case $host_cpu in
13030 i*86 )
13031 # Not sure whether the presence of OpenBSD here was a mistake.
13032 # Let's accept both of them until this is cleared up.
13033 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13034 lt_cv_file_magic_cmd=/usr/bin/file
13035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13037 esac
13038 else
13039 lt_cv_deplibs_check_method=pass_all
13043 gnu*)
13044 lt_cv_deplibs_check_method=pass_all
13047 haiku*)
13048 lt_cv_deplibs_check_method=pass_all
13051 hpux10.20* | hpux11*)
13052 lt_cv_file_magic_cmd=/usr/bin/file
13053 case $host_cpu in
13054 ia64*)
13055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13058 hppa*64*)
13059 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]'
13060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13064 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13066 esac
13069 interix[3-9]*)
13070 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13074 irix5* | irix6* | nonstopux*)
13075 case $LD in
13076 *-32|*"-32 ") libmagic=32-bit;;
13077 *-n32|*"-n32 ") libmagic=N32;;
13078 *-64|*"-64 ") libmagic=64-bit;;
13079 *) libmagic=never-match;;
13080 esac
13081 lt_cv_deplibs_check_method=pass_all
13084 # This must be Linux ELF.
13085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13086 lt_cv_deplibs_check_method=pass_all
13089 netbsd*)
13090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13092 else
13093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13097 newos6*)
13098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13099 lt_cv_file_magic_cmd=/usr/bin/file
13100 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13103 *nto* | *qnx*)
13104 lt_cv_deplibs_check_method=pass_all
13107 openbsd*)
13108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13110 else
13111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13115 osf3* | osf4* | osf5*)
13116 lt_cv_deplibs_check_method=pass_all
13119 rdos*)
13120 lt_cv_deplibs_check_method=pass_all
13123 solaris*)
13124 lt_cv_deplibs_check_method=pass_all
13127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13128 lt_cv_deplibs_check_method=pass_all
13131 sysv4 | sysv4.3*)
13132 case $host_vendor in
13133 motorola)
13134 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]'
13135 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13137 ncr)
13138 lt_cv_deplibs_check_method=pass_all
13140 sequent)
13141 lt_cv_file_magic_cmd='/bin/file'
13142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13144 sni)
13145 lt_cv_file_magic_cmd='/bin/file'
13146 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13147 lt_cv_file_magic_test_file=/lib/libc.so
13149 siemens)
13150 lt_cv_deplibs_check_method=pass_all
13153 lt_cv_deplibs_check_method=pass_all
13155 esac
13158 tpf*)
13159 lt_cv_deplibs_check_method=pass_all
13161 esac
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13165 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13166 file_magic_cmd=$lt_cv_file_magic_cmd
13167 deplibs_check_method=$lt_cv_deplibs_check_method
13168 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13181 if test -n "$ac_tool_prefix"; then
13182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13183 set dummy ${ac_tool_prefix}ar; ac_word=$2
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185 $as_echo_n "checking for $ac_word... " >&6; }
13186 if test "${ac_cv_prog_AR+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 if test -n "$AR"; then
13190 ac_cv_prog_AR="$AR" # Let the user override the test.
13191 else
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199 ac_cv_prog_AR="${ac_tool_prefix}ar"
13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 break 2
13203 done
13204 done
13205 IFS=$as_save_IFS
13209 AR=$ac_cv_prog_AR
13210 if test -n "$AR"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13212 $as_echo "$AR" >&6; }
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13220 if test -z "$ac_cv_prog_AR"; then
13221 ac_ct_AR=$AR
13222 # Extract the first word of "ar", so it can be a program name with args.
13223 set dummy ar; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$ac_ct_AR"; then
13230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_prog_ac_ct_AR="ar"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13243 done
13244 done
13245 IFS=$as_save_IFS
13249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13250 if test -n "$ac_ct_AR"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13252 $as_echo "$ac_ct_AR" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13258 if test "x$ac_ct_AR" = x; then
13259 AR="false"
13260 else
13261 case $cross_compiling:$ac_tool_warned in
13262 yes:)
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13265 ac_tool_warned=yes ;;
13266 esac
13267 AR=$ac_ct_AR
13269 else
13270 AR="$ac_cv_prog_AR"
13273 test -z "$AR" && AR=ar
13274 test -z "$AR_FLAGS" && AR_FLAGS=cru
13286 if test -n "$ac_tool_prefix"; then
13287 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13288 set dummy ${ac_tool_prefix}strip; ac_word=$2
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290 $as_echo_n "checking for $ac_word... " >&6; }
13291 if test "${ac_cv_prog_STRIP+set}" = set; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 if test -n "$STRIP"; then
13295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13296 else
13297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298 for as_dir in $PATH
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
13302 for ac_exec_ext in '' $ac_executable_extensions; do
13303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13304 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13306 break 2
13308 done
13309 done
13310 IFS=$as_save_IFS
13314 STRIP=$ac_cv_prog_STRIP
13315 if test -n "$STRIP"; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13317 $as_echo "$STRIP" >&6; }
13318 else
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320 $as_echo "no" >&6; }
13325 if test -z "$ac_cv_prog_STRIP"; then
13326 ac_ct_STRIP=$STRIP
13327 # Extract the first word of "strip", so it can be a program name with args.
13328 set dummy strip; ac_word=$2
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13330 $as_echo_n "checking for $ac_word... " >&6; }
13331 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 if test -n "$ac_ct_STRIP"; then
13335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13336 else
13337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13338 for as_dir in $PATH
13340 IFS=$as_save_IFS
13341 test -z "$as_dir" && as_dir=.
13342 for ac_exec_ext in '' $ac_executable_extensions; do
13343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13344 ac_cv_prog_ac_ct_STRIP="strip"
13345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13346 break 2
13348 done
13349 done
13350 IFS=$as_save_IFS
13354 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13355 if test -n "$ac_ct_STRIP"; then
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13357 $as_echo "$ac_ct_STRIP" >&6; }
13358 else
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13363 if test "x$ac_ct_STRIP" = x; then
13364 STRIP=":"
13365 else
13366 case $cross_compiling:$ac_tool_warned in
13367 yes:)
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13370 ac_tool_warned=yes ;;
13371 esac
13372 STRIP=$ac_ct_STRIP
13374 else
13375 STRIP="$ac_cv_prog_STRIP"
13378 test -z "$STRIP" && STRIP=:
13385 if test -n "$ac_tool_prefix"; then
13386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13389 $as_echo_n "checking for $ac_word... " >&6; }
13390 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 if test -n "$RANLIB"; then
13394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13395 else
13396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13397 for as_dir in $PATH
13399 IFS=$as_save_IFS
13400 test -z "$as_dir" && as_dir=.
13401 for ac_exec_ext in '' $ac_executable_extensions; do
13402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13405 break 2
13407 done
13408 done
13409 IFS=$as_save_IFS
13413 RANLIB=$ac_cv_prog_RANLIB
13414 if test -n "$RANLIB"; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13416 $as_echo "$RANLIB" >&6; }
13417 else
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13424 if test -z "$ac_cv_prog_RANLIB"; then
13425 ac_ct_RANLIB=$RANLIB
13426 # Extract the first word of "ranlib", so it can be a program name with args.
13427 set dummy ranlib; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13429 $as_echo_n "checking for $ac_word... " >&6; }
13430 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 if test -n "$ac_ct_RANLIB"; then
13434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13435 else
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13439 IFS=$as_save_IFS
13440 test -z "$as_dir" && as_dir=.
13441 for ac_exec_ext in '' $ac_executable_extensions; do
13442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13443 ac_cv_prog_ac_ct_RANLIB="ranlib"
13444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13445 break 2
13447 done
13448 done
13449 IFS=$as_save_IFS
13453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13454 if test -n "$ac_ct_RANLIB"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13456 $as_echo "$ac_ct_RANLIB" >&6; }
13457 else
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13459 $as_echo "no" >&6; }
13462 if test "x$ac_ct_RANLIB" = x; then
13463 RANLIB=":"
13464 else
13465 case $cross_compiling:$ac_tool_warned in
13466 yes:)
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13469 ac_tool_warned=yes ;;
13470 esac
13471 RANLIB=$ac_ct_RANLIB
13473 else
13474 RANLIB="$ac_cv_prog_RANLIB"
13477 test -z "$RANLIB" && RANLIB=:
13484 # Determine commands to create old-style static archives.
13485 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13486 old_postinstall_cmds='chmod 644 $oldlib'
13487 old_postuninstall_cmds=
13489 if test -n "$RANLIB"; then
13490 case $host_os in
13491 openbsd*)
13492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13495 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13497 esac
13498 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13501 case $host_os in
13502 darwin*)
13503 lock_old_archive_extraction=yes ;;
13505 lock_old_archive_extraction=no ;;
13506 esac
13546 # If no C compiler was specified, use CC.
13547 LTCC=${LTCC-"$CC"}
13549 # If no C compiler flags were specified, use CFLAGS.
13550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13552 # Allow CC to be a program name with arguments.
13553 compiler=$CC
13556 # Check for command to grab the raw symbol name followed by C symbol from nm.
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13558 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13563 # These are sane defaults that work on at least a few old systems.
13564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13566 # Character class describing NM global symbol codes.
13567 symcode='[BCDEGRST]'
13569 # Regexp to match symbols that can be accessed directly from C.
13570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13572 # Define system-specific variables.
13573 case $host_os in
13574 aix*)
13575 symcode='[BCDT]'
13577 cygwin* | mingw* | pw32* | cegcc*)
13578 symcode='[ABCDGISTW]'
13580 hpux*)
13581 if test "$host_cpu" = ia64; then
13582 symcode='[ABCDEGRST]'
13585 irix* | nonstopux*)
13586 symcode='[BCDEGRST]'
13588 osf*)
13589 symcode='[BCDEGQRST]'
13591 solaris*)
13592 symcode='[BDRT]'
13594 sco3.2v5*)
13595 symcode='[DT]'
13597 sysv4.2uw2*)
13598 symcode='[DT]'
13600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13601 symcode='[ABDT]'
13603 sysv4)
13604 symcode='[DFNSTU]'
13606 esac
13608 # If we're using GNU nm, then use its standard symbol codes.
13609 case `$NM -V 2>&1` in
13610 *GNU* | *'with BFD'*)
13611 symcode='[ABCDGIRSTW]' ;;
13612 esac
13614 # Transform an extracted symbol line into a proper C declaration.
13615 # Some systems (esp. on ia64) link data and code symbols differently,
13616 # so use this general approach.
13617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13619 # Transform an extracted symbol line into symbol name and symbol address
13620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13621 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'"
13623 # Handle CRLF in mingw tool chain
13624 opt_cr=
13625 case $build_os in
13626 mingw*)
13627 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13629 esac
13631 # Try without a prefix underscore, then with it.
13632 for ac_symprfx in "" "_"; do
13634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13635 symxfrm="\\1 $ac_symprfx\\2 \\2"
13637 # Write the raw and C identifiers.
13638 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13639 # Fake it for dumpbin and say T for any non-static function
13640 # and D for any global variable.
13641 # Also find C++ and __fastcall symbols from MSVC++,
13642 # which start with @ or ?.
13643 lt_cv_sys_global_symbol_pipe="$AWK '"\
13644 " {last_section=section; section=\$ 3};"\
13645 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13646 " \$ 0!~/External *\|/{next};"\
13647 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13648 " {if(hide[section]) next};"\
13649 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13650 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13651 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13652 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13653 " ' prfx=^$ac_symprfx"
13654 else
13655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13658 # Check to see that the pipe works correctly.
13659 pipe_works=no
13661 rm -f conftest*
13662 cat > conftest.$ac_ext <<_LT_EOF
13663 #ifdef __cplusplus
13664 extern "C" {
13665 #endif
13666 char nm_test_var;
13667 void nm_test_func(void);
13668 void nm_test_func(void){}
13669 #ifdef __cplusplus
13671 #endif
13672 int main(){nm_test_var='a';nm_test_func();return(0);}
13673 _LT_EOF
13675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13676 (eval $ac_compile) 2>&5
13677 ac_status=$?
13678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13679 test $ac_status = 0; }; then
13680 # Now try to grab the symbols.
13681 nlist=conftest.nm
13682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13683 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13684 ac_status=$?
13685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13686 test $ac_status = 0; } && test -s "$nlist"; then
13687 # Try sorting and uniquifying the output.
13688 if sort "$nlist" | uniq > "$nlist"T; then
13689 mv -f "$nlist"T "$nlist"
13690 else
13691 rm -f "$nlist"T
13694 # Make sure that we snagged all the symbols we need.
13695 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13696 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13697 cat <<_LT_EOF > conftest.$ac_ext
13698 #ifdef __cplusplus
13699 extern "C" {
13700 #endif
13702 _LT_EOF
13703 # Now generate the symbol file.
13704 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13706 cat <<_LT_EOF >> conftest.$ac_ext
13708 /* The mapping between symbol names and symbols. */
13709 const struct {
13710 const char *name;
13711 void *address;
13713 lt__PROGRAM__LTX_preloaded_symbols[] =
13715 { "@PROGRAM@", (void *) 0 },
13716 _LT_EOF
13717 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13718 cat <<\_LT_EOF >> conftest.$ac_ext
13719 {0, (void *) 0}
13722 /* This works around a problem in FreeBSD linker */
13723 #ifdef FREEBSD_WORKAROUND
13724 static const void *lt_preloaded_setup() {
13725 return lt__PROGRAM__LTX_preloaded_symbols;
13727 #endif
13729 #ifdef __cplusplus
13731 #endif
13732 _LT_EOF
13733 # Now try linking the two files.
13734 mv conftest.$ac_objext conftstm.$ac_objext
13735 lt_save_LIBS="$LIBS"
13736 lt_save_CFLAGS="$CFLAGS"
13737 LIBS="conftstm.$ac_objext"
13738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13740 (eval $ac_link) 2>&5
13741 ac_status=$?
13742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13743 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13744 pipe_works=yes
13746 LIBS="$lt_save_LIBS"
13747 CFLAGS="$lt_save_CFLAGS"
13748 else
13749 echo "cannot find nm_test_func in $nlist" >&5
13751 else
13752 echo "cannot find nm_test_var in $nlist" >&5
13754 else
13755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13757 else
13758 echo "$progname: failed program was:" >&5
13759 cat conftest.$ac_ext >&5
13761 rm -rf conftest* conftst*
13763 # Do not use the global_symbol_pipe unless it works.
13764 if test "$pipe_works" = yes; then
13765 break
13766 else
13767 lt_cv_sys_global_symbol_pipe=
13769 done
13773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13774 lt_cv_sys_global_symbol_to_cdecl=
13776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13778 $as_echo "failed" >&6; }
13779 else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13781 $as_echo "ok" >&6; }
13805 # Check whether --enable-libtool-lock was given.
13806 if test "${enable_libtool_lock+set}" = set; then :
13807 enableval=$enable_libtool_lock;
13810 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13812 # Some flags need to be propagated to the compiler or linker for good
13813 # libtool support.
13814 case $host in
13815 ia64-*-hpux*)
13816 # Find out which ABI we are using.
13817 echo 'int i;' > conftest.$ac_ext
13818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13819 (eval $ac_compile) 2>&5
13820 ac_status=$?
13821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13822 test $ac_status = 0; }; then
13823 case `/usr/bin/file conftest.$ac_objext` in
13824 *ELF-32*)
13825 HPUX_IA64_MODE="32"
13827 *ELF-64*)
13828 HPUX_IA64_MODE="64"
13830 esac
13832 rm -rf conftest*
13834 *-*-irix6*)
13835 # Find out which ABI we are using.
13836 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13838 (eval $ac_compile) 2>&5
13839 ac_status=$?
13840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13841 test $ac_status = 0; }; then
13842 if test "$lt_cv_prog_gnu_ld" = yes; then
13843 case `/usr/bin/file conftest.$ac_objext` in
13844 *32-bit*)
13845 LD="${LD-ld} -melf32bsmip"
13847 *N32*)
13848 LD="${LD-ld} -melf32bmipn32"
13850 *64-bit*)
13851 LD="${LD-ld} -melf64bmip"
13853 esac
13854 else
13855 case `/usr/bin/file conftest.$ac_objext` in
13856 *32-bit*)
13857 LD="${LD-ld} -32"
13859 *N32*)
13860 LD="${LD-ld} -n32"
13862 *64-bit*)
13863 LD="${LD-ld} -64"
13865 esac
13868 rm -rf conftest*
13871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13873 # Find out which ABI we are using.
13874 echo 'int i;' > conftest.$ac_ext
13875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13876 (eval $ac_compile) 2>&5
13877 ac_status=$?
13878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13879 test $ac_status = 0; }; then
13880 case `/usr/bin/file conftest.o` in
13881 *32-bit*)
13882 case $host in
13883 x86_64-*kfreebsd*-gnu)
13884 LD="${LD-ld} -m elf_i386_fbsd"
13886 x86_64-*linux*)
13887 case `/usr/bin/file conftest.o` in
13888 *x86-64*)
13889 LD="${LD-ld} -m elf32_x86_64"
13892 LD="${LD-ld} -m elf_i386"
13894 esac
13896 powerpc64le-*linux*)
13897 LD="${LD-ld} -m elf32lppclinux"
13899 powerpc64-*linux*)
13900 LD="${LD-ld} -m elf32ppclinux"
13902 s390x-*linux*)
13903 LD="${LD-ld} -m elf_s390"
13905 sparc64-*linux*)
13906 LD="${LD-ld} -m elf32_sparc"
13908 esac
13910 *64-bit*)
13911 case $host in
13912 x86_64-*kfreebsd*-gnu)
13913 LD="${LD-ld} -m elf_x86_64_fbsd"
13915 x86_64-*linux*)
13916 LD="${LD-ld} -m elf_x86_64"
13918 powerpcle-*linux*)
13919 LD="${LD-ld} -m elf64lppc"
13921 powerpc-*linux*)
13922 LD="${LD-ld} -m elf64ppc"
13924 s390*-*linux*|s390*-*tpf*)
13925 LD="${LD-ld} -m elf64_s390"
13927 sparc*-*linux*)
13928 LD="${LD-ld} -m elf64_sparc"
13930 esac
13932 esac
13934 rm -rf conftest*
13937 *-*-sco3.2v5*)
13938 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13939 SAVE_CFLAGS="$CFLAGS"
13940 CFLAGS="$CFLAGS -belf"
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13942 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13943 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 ac_ext=c
13947 ac_cpp='$CPP $CPPFLAGS'
13948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h. */
13956 main ()
13960 return 0;
13962 _ACEOF
13963 if ac_fn_c_try_link "$LINENO"; then :
13964 lt_cv_cc_needs_belf=yes
13965 else
13966 lt_cv_cc_needs_belf=no
13968 rm -f core conftest.err conftest.$ac_objext \
13969 conftest$ac_exeext conftest.$ac_ext
13970 ac_ext=c
13971 ac_cpp='$CPP $CPPFLAGS'
13972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13978 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13979 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13980 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13981 CFLAGS="$SAVE_CFLAGS"
13984 sparc*-*solaris*)
13985 # Find out which ABI we are using.
13986 echo 'int i;' > conftest.$ac_ext
13987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13988 (eval $ac_compile) 2>&5
13989 ac_status=$?
13990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13991 test $ac_status = 0; }; then
13992 case `/usr/bin/file conftest.o` in
13993 *64-bit*)
13994 case $lt_cv_prog_gnu_ld in
13995 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13997 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13998 LD="${LD-ld} -64"
14001 esac
14003 esac
14005 rm -rf conftest*
14007 esac
14009 need_locks="$enable_libtool_lock"
14012 case $host_os in
14013 rhapsody* | darwin*)
14014 if test -n "$ac_tool_prefix"; then
14015 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14016 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14018 $as_echo_n "checking for $ac_word... " >&6; }
14019 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 if test -n "$DSYMUTIL"; then
14023 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14024 else
14025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026 for as_dir in $PATH
14028 IFS=$as_save_IFS
14029 test -z "$as_dir" && as_dir=.
14030 for ac_exec_ext in '' $ac_executable_extensions; do
14031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14032 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14034 break 2
14036 done
14037 done
14038 IFS=$as_save_IFS
14042 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14043 if test -n "$DSYMUTIL"; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14045 $as_echo "$DSYMUTIL" >&6; }
14046 else
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048 $as_echo "no" >&6; }
14053 if test -z "$ac_cv_prog_DSYMUTIL"; then
14054 ac_ct_DSYMUTIL=$DSYMUTIL
14055 # Extract the first word of "dsymutil", so it can be a program name with args.
14056 set dummy dsymutil; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 if test -n "$ac_ct_DSYMUTIL"; then
14063 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14064 else
14065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14068 IFS=$as_save_IFS
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
14071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14072 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14074 break 2
14076 done
14077 done
14078 IFS=$as_save_IFS
14082 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14083 if test -n "$ac_ct_DSYMUTIL"; then
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14085 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14086 else
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 $as_echo "no" >&6; }
14091 if test "x$ac_ct_DSYMUTIL" = x; then
14092 DSYMUTIL=":"
14093 else
14094 case $cross_compiling:$ac_tool_warned in
14095 yes:)
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14098 ac_tool_warned=yes ;;
14099 esac
14100 DSYMUTIL=$ac_ct_DSYMUTIL
14102 else
14103 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14106 if test -n "$ac_tool_prefix"; then
14107 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14108 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14110 $as_echo_n "checking for $ac_word... " >&6; }
14111 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 if test -n "$NMEDIT"; then
14115 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14116 else
14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118 for as_dir in $PATH
14120 IFS=$as_save_IFS
14121 test -z "$as_dir" && as_dir=.
14122 for ac_exec_ext in '' $ac_executable_extensions; do
14123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14124 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14126 break 2
14128 done
14129 done
14130 IFS=$as_save_IFS
14134 NMEDIT=$ac_cv_prog_NMEDIT
14135 if test -n "$NMEDIT"; then
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14137 $as_echo "$NMEDIT" >&6; }
14138 else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14145 if test -z "$ac_cv_prog_NMEDIT"; then
14146 ac_ct_NMEDIT=$NMEDIT
14147 # Extract the first word of "nmedit", so it can be a program name with args.
14148 set dummy nmedit; ac_word=$2
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14150 $as_echo_n "checking for $ac_word... " >&6; }
14151 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14152 $as_echo_n "(cached) " >&6
14153 else
14154 if test -n "$ac_ct_NMEDIT"; then
14155 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14156 else
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158 for as_dir in $PATH
14160 IFS=$as_save_IFS
14161 test -z "$as_dir" && as_dir=.
14162 for ac_exec_ext in '' $ac_executable_extensions; do
14163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14164 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14166 break 2
14168 done
14169 done
14170 IFS=$as_save_IFS
14174 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14175 if test -n "$ac_ct_NMEDIT"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14177 $as_echo "$ac_ct_NMEDIT" >&6; }
14178 else
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14183 if test "x$ac_ct_NMEDIT" = x; then
14184 NMEDIT=":"
14185 else
14186 case $cross_compiling:$ac_tool_warned in
14187 yes:)
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14190 ac_tool_warned=yes ;;
14191 esac
14192 NMEDIT=$ac_ct_NMEDIT
14194 else
14195 NMEDIT="$ac_cv_prog_NMEDIT"
14198 if test -n "$ac_tool_prefix"; then
14199 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14200 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14202 $as_echo_n "checking for $ac_word... " >&6; }
14203 if test "${ac_cv_prog_LIPO+set}" = set; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 if test -n "$LIPO"; then
14207 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14208 else
14209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14210 for as_dir in $PATH
14212 IFS=$as_save_IFS
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14216 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14218 break 2
14220 done
14221 done
14222 IFS=$as_save_IFS
14226 LIPO=$ac_cv_prog_LIPO
14227 if test -n "$LIPO"; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14229 $as_echo "$LIPO" >&6; }
14230 else
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14237 if test -z "$ac_cv_prog_LIPO"; then
14238 ac_ct_LIPO=$LIPO
14239 # Extract the first word of "lipo", so it can be a program name with args.
14240 set dummy lipo; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14242 $as_echo_n "checking for $ac_word... " >&6; }
14243 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 if test -n "$ac_ct_LIPO"; then
14247 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14252 IFS=$as_save_IFS
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14256 ac_cv_prog_ac_ct_LIPO="lipo"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 break 2
14260 done
14261 done
14262 IFS=$as_save_IFS
14266 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14267 if test -n "$ac_ct_LIPO"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14269 $as_echo "$ac_ct_LIPO" >&6; }
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14275 if test "x$ac_ct_LIPO" = x; then
14276 LIPO=":"
14277 else
14278 case $cross_compiling:$ac_tool_warned in
14279 yes:)
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14282 ac_tool_warned=yes ;;
14283 esac
14284 LIPO=$ac_ct_LIPO
14286 else
14287 LIPO="$ac_cv_prog_LIPO"
14290 if test -n "$ac_tool_prefix"; then
14291 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14292 set dummy ${ac_tool_prefix}otool; ac_word=$2
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14294 $as_echo_n "checking for $ac_word... " >&6; }
14295 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
14297 else
14298 if test -n "$OTOOL"; then
14299 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14300 else
14301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14302 for as_dir in $PATH
14304 IFS=$as_save_IFS
14305 test -z "$as_dir" && as_dir=.
14306 for ac_exec_ext in '' $ac_executable_extensions; do
14307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14308 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14310 break 2
14312 done
14313 done
14314 IFS=$as_save_IFS
14318 OTOOL=$ac_cv_prog_OTOOL
14319 if test -n "$OTOOL"; then
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14321 $as_echo "$OTOOL" >&6; }
14322 else
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14324 $as_echo "no" >&6; }
14329 if test -z "$ac_cv_prog_OTOOL"; then
14330 ac_ct_OTOOL=$OTOOL
14331 # Extract the first word of "otool", so it can be a program name with args.
14332 set dummy otool; ac_word=$2
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14334 $as_echo_n "checking for $ac_word... " >&6; }
14335 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14336 $as_echo_n "(cached) " >&6
14337 else
14338 if test -n "$ac_ct_OTOOL"; then
14339 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14340 else
14341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14342 for as_dir in $PATH
14344 IFS=$as_save_IFS
14345 test -z "$as_dir" && as_dir=.
14346 for ac_exec_ext in '' $ac_executable_extensions; do
14347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14348 ac_cv_prog_ac_ct_OTOOL="otool"
14349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14350 break 2
14352 done
14353 done
14354 IFS=$as_save_IFS
14358 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14359 if test -n "$ac_ct_OTOOL"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14361 $as_echo "$ac_ct_OTOOL" >&6; }
14362 else
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364 $as_echo "no" >&6; }
14367 if test "x$ac_ct_OTOOL" = x; then
14368 OTOOL=":"
14369 else
14370 case $cross_compiling:$ac_tool_warned in
14371 yes:)
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14374 ac_tool_warned=yes ;;
14375 esac
14376 OTOOL=$ac_ct_OTOOL
14378 else
14379 OTOOL="$ac_cv_prog_OTOOL"
14382 if test -n "$ac_tool_prefix"; then
14383 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14384 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14386 $as_echo_n "checking for $ac_word... " >&6; }
14387 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14388 $as_echo_n "(cached) " >&6
14389 else
14390 if test -n "$OTOOL64"; then
14391 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14392 else
14393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14394 for as_dir in $PATH
14396 IFS=$as_save_IFS
14397 test -z "$as_dir" && as_dir=.
14398 for ac_exec_ext in '' $ac_executable_extensions; do
14399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14400 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14402 break 2
14404 done
14405 done
14406 IFS=$as_save_IFS
14410 OTOOL64=$ac_cv_prog_OTOOL64
14411 if test -n "$OTOOL64"; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14413 $as_echo "$OTOOL64" >&6; }
14414 else
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14421 if test -z "$ac_cv_prog_OTOOL64"; then
14422 ac_ct_OTOOL64=$OTOOL64
14423 # Extract the first word of "otool64", so it can be a program name with args.
14424 set dummy otool64; ac_word=$2
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426 $as_echo_n "checking for $ac_word... " >&6; }
14427 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14428 $as_echo_n "(cached) " >&6
14429 else
14430 if test -n "$ac_ct_OTOOL64"; then
14431 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14432 else
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14436 IFS=$as_save_IFS
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14440 ac_cv_prog_ac_ct_OTOOL64="otool64"
14441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14442 break 2
14444 done
14445 done
14446 IFS=$as_save_IFS
14450 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14451 if test -n "$ac_ct_OTOOL64"; then
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14453 $as_echo "$ac_ct_OTOOL64" >&6; }
14454 else
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456 $as_echo "no" >&6; }
14459 if test "x$ac_ct_OTOOL64" = x; then
14460 OTOOL64=":"
14461 else
14462 case $cross_compiling:$ac_tool_warned in
14463 yes:)
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14466 ac_tool_warned=yes ;;
14467 esac
14468 OTOOL64=$ac_ct_OTOOL64
14470 else
14471 OTOOL64="$ac_cv_prog_OTOOL64"
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14501 $as_echo_n "checking for -single_module linker flag... " >&6; }
14502 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 lt_cv_apple_cc_single_mod=no
14506 if test -z "${LT_MULTI_MODULE}"; then
14507 # By default we will add the -single_module flag. You can override
14508 # by either setting the environment variable LT_MULTI_MODULE
14509 # non-empty at configure time, or by adding -multi_module to the
14510 # link flags.
14511 rm -rf libconftest.dylib*
14512 echo "int foo(void){return 1;}" > conftest.c
14513 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14514 -dynamiclib -Wl,-single_module conftest.c" >&5
14515 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14516 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14517 _lt_result=$?
14518 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14519 lt_cv_apple_cc_single_mod=yes
14520 else
14521 cat conftest.err >&5
14523 rm -rf libconftest.dylib*
14524 rm -f conftest.*
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14528 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14530 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14531 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 lt_cv_ld_exported_symbols_list=no
14535 save_LDFLAGS=$LDFLAGS
14536 echo "_main" > conftest.sym
14537 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14542 main ()
14546 return 0;
14548 _ACEOF
14549 if ac_fn_c_try_link "$LINENO"; then :
14550 lt_cv_ld_exported_symbols_list=yes
14551 else
14552 lt_cv_ld_exported_symbols_list=no
14554 rm -f core conftest.err conftest.$ac_objext \
14555 conftest$ac_exeext conftest.$ac_ext
14556 LDFLAGS="$save_LDFLAGS"
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14560 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14562 $as_echo_n "checking for -force_load linker flag... " >&6; }
14563 if test "${lt_cv_ld_force_load+set}" = set; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 lt_cv_ld_force_load=no
14567 cat > conftest.c << _LT_EOF
14568 int forced_loaded() { return 2;}
14569 _LT_EOF
14570 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14571 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14572 echo "$AR cru libconftest.a conftest.o" >&5
14573 $AR cru libconftest.a conftest.o 2>&5
14574 cat > conftest.c << _LT_EOF
14575 int main() { return 0;}
14576 _LT_EOF
14577 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14578 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14579 _lt_result=$?
14580 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14581 lt_cv_ld_force_load=yes
14582 else
14583 cat conftest.err >&5
14585 rm -f conftest.err libconftest.a conftest conftest.c
14586 rm -rf conftest.dSYM
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14590 $as_echo "$lt_cv_ld_force_load" >&6; }
14591 case $host_os in
14592 rhapsody* | darwin1.[012])
14593 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14594 darwin1.*)
14595 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14596 darwin*) # darwin 5.x on
14597 # if running on 10.5 or later, the deployment target defaults
14598 # to the OS version, if on x86, and 10.4, the deployment
14599 # target defaults to 10.4. Don't you love it?
14600 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14601 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14602 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14603 10.[012]*)
14604 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14605 10.*)
14606 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14607 esac
14609 esac
14610 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14611 _lt_dar_single_mod='$single_module'
14613 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14614 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14615 else
14616 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14618 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14619 _lt_dsymutil='~$DSYMUTIL $lib || :'
14620 else
14621 _lt_dsymutil=
14624 esac
14626 for ac_header in dlfcn.h
14627 do :
14628 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14629 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14630 cat >>confdefs.h <<_ACEOF
14631 #define HAVE_DLFCN_H 1
14632 _ACEOF
14635 done
14641 # Set options
14645 enable_dlopen=no
14648 enable_win32_dll=no
14651 # Check whether --enable-shared was given.
14652 if test "${enable_shared+set}" = set; then :
14653 enableval=$enable_shared; p=${PACKAGE-default}
14654 case $enableval in
14655 yes) enable_shared=yes ;;
14656 no) enable_shared=no ;;
14658 enable_shared=no
14659 # Look at the argument we got. We use all the common list separators.
14660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14661 for pkg in $enableval; do
14662 IFS="$lt_save_ifs"
14663 if test "X$pkg" = "X$p"; then
14664 enable_shared=yes
14666 done
14667 IFS="$lt_save_ifs"
14669 esac
14670 else
14671 enable_shared=yes
14682 # Check whether --enable-static was given.
14683 if test "${enable_static+set}" = set; then :
14684 enableval=$enable_static; p=${PACKAGE-default}
14685 case $enableval in
14686 yes) enable_static=yes ;;
14687 no) enable_static=no ;;
14689 enable_static=no
14690 # Look at the argument we got. We use all the common list separators.
14691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14692 for pkg in $enableval; do
14693 IFS="$lt_save_ifs"
14694 if test "X$pkg" = "X$p"; then
14695 enable_static=yes
14697 done
14698 IFS="$lt_save_ifs"
14700 esac
14701 else
14702 enable_static=yes
14714 # Check whether --with-pic was given.
14715 if test "${with_pic+set}" = set; then :
14716 withval=$with_pic; pic_mode="$withval"
14717 else
14718 pic_mode=default
14722 test -z "$pic_mode" && pic_mode=default
14730 # Check whether --enable-fast-install was given.
14731 if test "${enable_fast_install+set}" = set; then :
14732 enableval=$enable_fast_install; p=${PACKAGE-default}
14733 case $enableval in
14734 yes) enable_fast_install=yes ;;
14735 no) enable_fast_install=no ;;
14737 enable_fast_install=no
14738 # Look at the argument we got. We use all the common list separators.
14739 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14740 for pkg in $enableval; do
14741 IFS="$lt_save_ifs"
14742 if test "X$pkg" = "X$p"; then
14743 enable_fast_install=yes
14745 done
14746 IFS="$lt_save_ifs"
14748 esac
14749 else
14750 enable_fast_install=yes
14763 # This can be used to rebuild libtool when needed
14764 LIBTOOL_DEPS="$ltmain"
14766 # Always use our own libtool.
14767 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14794 test -z "$LN_S" && LN_S="ln -s"
14809 if test -n "${ZSH_VERSION+set}" ; then
14810 setopt NO_GLOB_SUBST
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14814 $as_echo_n "checking for objdir... " >&6; }
14815 if test "${lt_cv_objdir+set}" = set; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 rm -f .libs 2>/dev/null
14819 mkdir .libs 2>/dev/null
14820 if test -d .libs; then
14821 lt_cv_objdir=.libs
14822 else
14823 # MS-DOS does not allow filenames that begin with a dot.
14824 lt_cv_objdir=_libs
14826 rmdir .libs 2>/dev/null
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14829 $as_echo "$lt_cv_objdir" >&6; }
14830 objdir=$lt_cv_objdir
14836 cat >>confdefs.h <<_ACEOF
14837 #define LT_OBJDIR "$lt_cv_objdir/"
14838 _ACEOF
14843 case $host_os in
14844 aix3*)
14845 # AIX sometimes has problems with the GCC collect2 program. For some
14846 # reason, if we set the COLLECT_NAMES environment variable, the problems
14847 # vanish in a puff of smoke.
14848 if test "X${COLLECT_NAMES+set}" != Xset; then
14849 COLLECT_NAMES=
14850 export COLLECT_NAMES
14853 esac
14855 # Global variables:
14856 ofile=libtool
14857 can_build_shared=yes
14859 # All known linkers require a `.a' archive for static linking (except MSVC,
14860 # which needs '.lib').
14861 libext=a
14863 with_gnu_ld="$lt_cv_prog_gnu_ld"
14865 old_CC="$CC"
14866 old_CFLAGS="$CFLAGS"
14868 # Set sane defaults for various variables
14869 test -z "$CC" && CC=cc
14870 test -z "$LTCC" && LTCC=$CC
14871 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14872 test -z "$LD" && LD=ld
14873 test -z "$ac_objext" && ac_objext=o
14875 for cc_temp in $compiler""; do
14876 case $cc_temp in
14877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14879 \-*) ;;
14880 *) break;;
14881 esac
14882 done
14883 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14886 # Only perform the check for file, if the check method requires it
14887 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14888 case $deplibs_check_method in
14889 file_magic*)
14890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14892 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14893 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14894 $as_echo_n "(cached) " >&6
14895 else
14896 case $MAGIC_CMD in
14897 [\\/*] | ?:[\\/]*)
14898 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14901 lt_save_MAGIC_CMD="$MAGIC_CMD"
14902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14904 for ac_dir in $ac_dummy; do
14905 IFS="$lt_save_ifs"
14906 test -z "$ac_dir" && ac_dir=.
14907 if test -f $ac_dir/${ac_tool_prefix}file; then
14908 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14909 if test -n "$file_magic_test_file"; then
14910 case $deplibs_check_method in
14911 "file_magic "*)
14912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14913 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14915 $EGREP "$file_magic_regex" > /dev/null; then
14917 else
14918 cat <<_LT_EOF 1>&2
14920 *** Warning: the command libtool uses to detect shared libraries,
14921 *** $file_magic_cmd, produces output that libtool cannot recognize.
14922 *** The result is that libtool may fail to recognize shared libraries
14923 *** as such. This will affect the creation of libtool libraries that
14924 *** depend on shared libraries, but programs linked with such libtool
14925 *** libraries will work regardless of this problem. Nevertheless, you
14926 *** may want to report the problem to your system manager and/or to
14927 *** bug-libtool@gnu.org
14929 _LT_EOF
14930 fi ;;
14931 esac
14933 break
14935 done
14936 IFS="$lt_save_ifs"
14937 MAGIC_CMD="$lt_save_MAGIC_CMD"
14939 esac
14942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14943 if test -n "$MAGIC_CMD"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14945 $as_echo "$MAGIC_CMD" >&6; }
14946 else
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948 $as_echo "no" >&6; }
14955 if test -z "$lt_cv_path_MAGIC_CMD"; then
14956 if test -n "$ac_tool_prefix"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14958 $as_echo_n "checking for file... " >&6; }
14959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 case $MAGIC_CMD in
14963 [\\/*] | ?:[\\/]*)
14964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14967 lt_save_MAGIC_CMD="$MAGIC_CMD"
14968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14970 for ac_dir in $ac_dummy; do
14971 IFS="$lt_save_ifs"
14972 test -z "$ac_dir" && ac_dir=.
14973 if test -f $ac_dir/file; then
14974 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14975 if test -n "$file_magic_test_file"; then
14976 case $deplibs_check_method in
14977 "file_magic "*)
14978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14981 $EGREP "$file_magic_regex" > /dev/null; then
14983 else
14984 cat <<_LT_EOF 1>&2
14986 *** Warning: the command libtool uses to detect shared libraries,
14987 *** $file_magic_cmd, produces output that libtool cannot recognize.
14988 *** The result is that libtool may fail to recognize shared libraries
14989 *** as such. This will affect the creation of libtool libraries that
14990 *** depend on shared libraries, but programs linked with such libtool
14991 *** libraries will work regardless of this problem. Nevertheless, you
14992 *** may want to report the problem to your system manager and/or to
14993 *** bug-libtool@gnu.org
14995 _LT_EOF
14996 fi ;;
14997 esac
14999 break
15001 done
15002 IFS="$lt_save_ifs"
15003 MAGIC_CMD="$lt_save_MAGIC_CMD"
15005 esac
15008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15009 if test -n "$MAGIC_CMD"; then
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15011 $as_echo "$MAGIC_CMD" >&6; }
15012 else
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014 $as_echo "no" >&6; }
15018 else
15019 MAGIC_CMD=:
15025 esac
15027 # Use C for the default configuration in the libtool script
15029 lt_save_CC="$CC"
15030 ac_ext=c
15031 ac_cpp='$CPP $CPPFLAGS'
15032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15037 # Source file extension for C test sources.
15038 ac_ext=c
15040 # Object file extension for compiled C test sources.
15041 objext=o
15042 objext=$objext
15044 # Code to be used in simple compile tests
15045 lt_simple_compile_test_code="int some_variable = 0;"
15047 # Code to be used in simple link tests
15048 lt_simple_link_test_code='int main(){return(0);}'
15056 # If no C compiler was specified, use CC.
15057 LTCC=${LTCC-"$CC"}
15059 # If no C compiler flags were specified, use CFLAGS.
15060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15062 # Allow CC to be a program name with arguments.
15063 compiler=$CC
15065 # Save the default compiler, since it gets overwritten when the other
15066 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15067 compiler_DEFAULT=$CC
15069 # save warnings/boilerplate of simple test code
15070 ac_outfile=conftest.$ac_objext
15071 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15072 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15073 _lt_compiler_boilerplate=`cat conftest.err`
15074 $RM conftest*
15076 ac_outfile=conftest.$ac_objext
15077 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15078 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15079 _lt_linker_boilerplate=`cat conftest.err`
15080 $RM -r conftest*
15083 ## CAVEAT EMPTOR:
15084 ## There is no encapsulation within the following macros, do not change
15085 ## the running order or otherwise move them around unless you know exactly
15086 ## what you are doing...
15087 if test -n "$compiler"; then
15089 lt_prog_compiler_no_builtin_flag=
15091 if test "$GCC" = yes; then
15092 case $cc_basename in
15093 nvcc*)
15094 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15096 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15097 esac
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15100 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15101 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15102 $as_echo_n "(cached) " >&6
15103 else
15104 lt_cv_prog_compiler_rtti_exceptions=no
15105 ac_outfile=conftest.$ac_objext
15106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15107 lt_compiler_flag="-fno-rtti -fno-exceptions"
15108 # Insert the option either (1) after the last *FLAGS variable, or
15109 # (2) before a word containing "conftest.", or (3) at the end.
15110 # Note that $ac_compile itself does not contain backslashes and begins
15111 # with a dollar sign (not a hyphen), so the echo should work correctly.
15112 # The option is referenced via a variable to avoid confusing sed.
15113 lt_compile=`echo "$ac_compile" | $SED \
15114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15116 -e 's:$: $lt_compiler_flag:'`
15117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15118 (eval "$lt_compile" 2>conftest.err)
15119 ac_status=$?
15120 cat conftest.err >&5
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 if (exit $ac_status) && test -s "$ac_outfile"; then
15123 # The compiler can only warn and ignore the option if not recognized
15124 # So say no if there are warnings other than the usual output.
15125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15127 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15128 lt_cv_prog_compiler_rtti_exceptions=yes
15131 $RM conftest*
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15135 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15137 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15138 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15139 else
15150 lt_prog_compiler_wl=
15151 lt_prog_compiler_pic=
15152 lt_prog_compiler_static=
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15155 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15157 if test "$GCC" = yes; then
15158 lt_prog_compiler_wl='-Wl,'
15159 lt_prog_compiler_static='-static'
15161 case $host_os in
15162 aix*)
15163 # All AIX code is PIC.
15164 if test "$host_cpu" = ia64; then
15165 # AIX 5 now supports IA64 processor
15166 lt_prog_compiler_static='-Bstatic'
15168 lt_prog_compiler_pic='-fPIC'
15171 amigaos*)
15172 case $host_cpu in
15173 powerpc)
15174 # see comment about AmigaOS4 .so support
15175 lt_prog_compiler_pic='-fPIC'
15177 m68k)
15178 # FIXME: we need at least 68020 code to build shared libraries, but
15179 # adding the `-m68020' flag to GCC prevents building anything better,
15180 # like `-m68040'.
15181 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15183 esac
15186 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15187 # PIC is the default for these OSes.
15190 mingw* | cygwin* | pw32* | os2* | cegcc*)
15191 # This hack is so that the source file can tell whether it is being
15192 # built for inclusion in a dll (and should export symbols for example).
15193 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15194 # (--disable-auto-import) libraries
15195 lt_prog_compiler_pic='-DDLL_EXPORT'
15198 darwin* | rhapsody*)
15199 # PIC is the default on this platform
15200 # Common symbols not allowed in MH_DYLIB files
15201 lt_prog_compiler_pic='-fno-common'
15204 haiku*)
15205 # PIC is the default for Haiku.
15206 # The "-static" flag exists, but is broken.
15207 lt_prog_compiler_static=
15210 hpux*)
15211 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15212 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15213 # sets the default TLS model and affects inlining.
15214 case $host_cpu in
15215 hppa*64*)
15216 # +Z the default
15219 lt_prog_compiler_pic='-fPIC'
15221 esac
15224 interix[3-9]*)
15225 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15226 # Instead, we relocate shared libraries at runtime.
15229 msdosdjgpp*)
15230 # Just because we use GCC doesn't mean we suddenly get shared libraries
15231 # on systems that don't support them.
15232 lt_prog_compiler_can_build_shared=no
15233 enable_shared=no
15236 *nto* | *qnx*)
15237 # QNX uses GNU C++, but need to define -shared option too, otherwise
15238 # it will coredump.
15239 lt_prog_compiler_pic='-fPIC -shared'
15242 sysv4*MP*)
15243 if test -d /usr/nec; then
15244 lt_prog_compiler_pic=-Kconform_pic
15249 lt_prog_compiler_pic='-fPIC'
15251 esac
15253 case $cc_basename in
15254 nvcc*) # Cuda Compiler Driver 2.2
15255 lt_prog_compiler_wl='-Xlinker '
15256 lt_prog_compiler_pic='-Xcompiler -fPIC'
15258 esac
15259 else
15260 # PORTME Check for flag to pass linker flags through the system compiler.
15261 case $host_os in
15262 aix*)
15263 lt_prog_compiler_wl='-Wl,'
15264 if test "$host_cpu" = ia64; then
15265 # AIX 5 now supports IA64 processor
15266 lt_prog_compiler_static='-Bstatic'
15267 else
15268 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15272 mingw* | cygwin* | pw32* | os2* | cegcc*)
15273 # This hack is so that the source file can tell whether it is being
15274 # built for inclusion in a dll (and should export symbols for example).
15275 lt_prog_compiler_pic='-DDLL_EXPORT'
15278 hpux9* | hpux10* | hpux11*)
15279 lt_prog_compiler_wl='-Wl,'
15280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15281 # not for PA HP-UX.
15282 case $host_cpu in
15283 hppa*64*|ia64*)
15284 # +Z the default
15287 lt_prog_compiler_pic='+Z'
15289 esac
15290 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15291 lt_prog_compiler_static='${wl}-a ${wl}archive'
15294 irix5* | irix6* | nonstopux*)
15295 lt_prog_compiler_wl='-Wl,'
15296 # PIC (with -KPIC) is the default.
15297 lt_prog_compiler_static='-non_shared'
15300 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15301 case $cc_basename in
15302 # old Intel for x86_64 which still supported -KPIC.
15303 ecc*)
15304 lt_prog_compiler_wl='-Wl,'
15305 lt_prog_compiler_pic='-KPIC'
15306 lt_prog_compiler_static='-static'
15308 # icc used to be incompatible with GCC.
15309 # ICC 10 doesn't accept -KPIC any more.
15310 icc* | ifort*)
15311 lt_prog_compiler_wl='-Wl,'
15312 lt_prog_compiler_pic='-fPIC'
15313 lt_prog_compiler_static='-static'
15315 # Lahey Fortran 8.1.
15316 lf95*)
15317 lt_prog_compiler_wl='-Wl,'
15318 lt_prog_compiler_pic='--shared'
15319 lt_prog_compiler_static='--static'
15321 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15322 # Portland Group compilers (*not* the Pentium gcc compiler,
15323 # which looks to be a dead project)
15324 lt_prog_compiler_wl='-Wl,'
15325 lt_prog_compiler_pic='-fpic'
15326 lt_prog_compiler_static='-Bstatic'
15328 ccc*)
15329 lt_prog_compiler_wl='-Wl,'
15330 # All Alpha code is PIC.
15331 lt_prog_compiler_static='-non_shared'
15333 xl* | bgxl* | bgf* | mpixl*)
15334 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15335 lt_prog_compiler_wl='-Wl,'
15336 lt_prog_compiler_pic='-qpic'
15337 lt_prog_compiler_static='-qstaticlink'
15340 case `$CC -V 2>&1 | sed 5q` in
15341 *Sun\ F* | *Sun*Fortran*)
15342 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15343 lt_prog_compiler_pic='-KPIC'
15344 lt_prog_compiler_static='-Bstatic'
15345 lt_prog_compiler_wl=''
15347 *Sun\ C*)
15348 # Sun C 5.9
15349 lt_prog_compiler_pic='-KPIC'
15350 lt_prog_compiler_static='-Bstatic'
15351 lt_prog_compiler_wl='-Wl,'
15353 esac
15355 esac
15358 newsos6)
15359 lt_prog_compiler_pic='-KPIC'
15360 lt_prog_compiler_static='-Bstatic'
15363 *nto* | *qnx*)
15364 # QNX uses GNU C++, but need to define -shared option too, otherwise
15365 # it will coredump.
15366 lt_prog_compiler_pic='-fPIC -shared'
15369 osf3* | osf4* | osf5*)
15370 lt_prog_compiler_wl='-Wl,'
15371 # All OSF/1 code is PIC.
15372 lt_prog_compiler_static='-non_shared'
15375 rdos*)
15376 lt_prog_compiler_static='-non_shared'
15379 solaris*)
15380 lt_prog_compiler_pic='-KPIC'
15381 lt_prog_compiler_static='-Bstatic'
15382 case $cc_basename in
15383 f77* | f90* | f95*)
15384 lt_prog_compiler_wl='-Qoption ld ';;
15386 lt_prog_compiler_wl='-Wl,';;
15387 esac
15390 sunos4*)
15391 lt_prog_compiler_wl='-Qoption ld '
15392 lt_prog_compiler_pic='-PIC'
15393 lt_prog_compiler_static='-Bstatic'
15396 sysv4 | sysv4.2uw2* | sysv4.3*)
15397 lt_prog_compiler_wl='-Wl,'
15398 lt_prog_compiler_pic='-KPIC'
15399 lt_prog_compiler_static='-Bstatic'
15402 sysv4*MP*)
15403 if test -d /usr/nec ;then
15404 lt_prog_compiler_pic='-Kconform_pic'
15405 lt_prog_compiler_static='-Bstatic'
15409 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15410 lt_prog_compiler_wl='-Wl,'
15411 lt_prog_compiler_pic='-KPIC'
15412 lt_prog_compiler_static='-Bstatic'
15415 unicos*)
15416 lt_prog_compiler_wl='-Wl,'
15417 lt_prog_compiler_can_build_shared=no
15420 uts4*)
15421 lt_prog_compiler_pic='-pic'
15422 lt_prog_compiler_static='-Bstatic'
15426 lt_prog_compiler_can_build_shared=no
15428 esac
15431 case $host_os in
15432 # For platforms which do not support PIC, -DPIC is meaningless:
15433 *djgpp*)
15434 lt_prog_compiler_pic=
15437 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15439 esac
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15441 $as_echo "$lt_prog_compiler_pic" >&6; }
15449 # Check to make sure the PIC flag actually works.
15451 if test -n "$lt_prog_compiler_pic"; then
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15453 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15454 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15455 $as_echo_n "(cached) " >&6
15456 else
15457 lt_cv_prog_compiler_pic_works=no
15458 ac_outfile=conftest.$ac_objext
15459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15460 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15461 # Insert the option either (1) after the last *FLAGS variable, or
15462 # (2) before a word containing "conftest.", or (3) at the end.
15463 # Note that $ac_compile itself does not contain backslashes and begins
15464 # with a dollar sign (not a hyphen), so the echo should work correctly.
15465 # The option is referenced via a variable to avoid confusing sed.
15466 lt_compile=`echo "$ac_compile" | $SED \
15467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15469 -e 's:$: $lt_compiler_flag:'`
15470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15471 (eval "$lt_compile" 2>conftest.err)
15472 ac_status=$?
15473 cat conftest.err >&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 if (exit $ac_status) && test -s "$ac_outfile"; then
15476 # The compiler can only warn and ignore the option if not recognized
15477 # So say no if there are warnings other than the usual output.
15478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15481 lt_cv_prog_compiler_pic_works=yes
15484 $RM conftest*
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15488 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15490 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15491 case $lt_prog_compiler_pic in
15492 "" | " "*) ;;
15493 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15494 esac
15495 else
15496 lt_prog_compiler_pic=
15497 lt_prog_compiler_can_build_shared=no
15508 # Check to make sure the static flag actually works.
15510 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15512 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15513 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15514 $as_echo_n "(cached) " >&6
15515 else
15516 lt_cv_prog_compiler_static_works=no
15517 save_LDFLAGS="$LDFLAGS"
15518 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15519 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15520 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15521 # The linker can only warn and ignore the option if not recognized
15522 # So say no if there are warnings
15523 if test -s conftest.err; then
15524 # Append any errors to the config.log.
15525 cat conftest.err 1>&5
15526 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15528 if diff conftest.exp conftest.er2 >/dev/null; then
15529 lt_cv_prog_compiler_static_works=yes
15531 else
15532 lt_cv_prog_compiler_static_works=yes
15535 $RM -r conftest*
15536 LDFLAGS="$save_LDFLAGS"
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15540 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15542 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15544 else
15545 lt_prog_compiler_static=
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15555 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15556 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 lt_cv_prog_compiler_c_o=no
15560 $RM -r conftest 2>/dev/null
15561 mkdir conftest
15562 cd conftest
15563 mkdir out
15564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15566 lt_compiler_flag="-o out/conftest2.$ac_objext"
15567 # Insert the option either (1) after the last *FLAGS variable, or
15568 # (2) before a word containing "conftest.", or (3) at the end.
15569 # Note that $ac_compile itself does not contain backslashes and begins
15570 # with a dollar sign (not a hyphen), so the echo should work correctly.
15571 lt_compile=`echo "$ac_compile" | $SED \
15572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15574 -e 's:$: $lt_compiler_flag:'`
15575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15576 (eval "$lt_compile" 2>out/conftest.err)
15577 ac_status=$?
15578 cat out/conftest.err >&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15581 then
15582 # The compiler can only warn and ignore the option if not recognized
15583 # So say no if there are warnings
15584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15587 lt_cv_prog_compiler_c_o=yes
15590 chmod u+w . 2>&5
15591 $RM conftest*
15592 # SGI C++ compiler will create directory out/ii_files/ for
15593 # template instantiation
15594 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15595 $RM out/* && rmdir out
15596 cd ..
15597 $RM -r conftest
15598 $RM conftest*
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15602 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15610 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15611 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 lt_cv_prog_compiler_c_o=no
15615 $RM -r conftest 2>/dev/null
15616 mkdir conftest
15617 cd conftest
15618 mkdir out
15619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15621 lt_compiler_flag="-o out/conftest2.$ac_objext"
15622 # Insert the option either (1) after the last *FLAGS variable, or
15623 # (2) before a word containing "conftest.", or (3) at the end.
15624 # Note that $ac_compile itself does not contain backslashes and begins
15625 # with a dollar sign (not a hyphen), so the echo should work correctly.
15626 lt_compile=`echo "$ac_compile" | $SED \
15627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15629 -e 's:$: $lt_compiler_flag:'`
15630 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15631 (eval "$lt_compile" 2>out/conftest.err)
15632 ac_status=$?
15633 cat out/conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15636 then
15637 # The compiler can only warn and ignore the option if not recognized
15638 # So say no if there are warnings
15639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15642 lt_cv_prog_compiler_c_o=yes
15645 chmod u+w . 2>&5
15646 $RM conftest*
15647 # SGI C++ compiler will create directory out/ii_files/ for
15648 # template instantiation
15649 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15650 $RM out/* && rmdir out
15651 cd ..
15652 $RM -r conftest
15653 $RM conftest*
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15657 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15662 hard_links="nottested"
15663 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15664 # do not overwrite the value of need_locks provided by the user
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15666 $as_echo_n "checking if we can lock with hard links... " >&6; }
15667 hard_links=yes
15668 $RM conftest*
15669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15670 touch conftest.a
15671 ln conftest.a conftest.b 2>&5 || hard_links=no
15672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15674 $as_echo "$hard_links" >&6; }
15675 if test "$hard_links" = no; then
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15677 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15678 need_locks=warn
15680 else
15681 need_locks=no
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15690 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15692 runpath_var=
15693 allow_undefined_flag=
15694 always_export_symbols=no
15695 archive_cmds=
15696 archive_expsym_cmds=
15697 compiler_needs_object=no
15698 enable_shared_with_static_runtimes=no
15699 export_dynamic_flag_spec=
15700 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15701 hardcode_automatic=no
15702 hardcode_direct=no
15703 hardcode_direct_absolute=no
15704 hardcode_libdir_flag_spec=
15705 hardcode_libdir_flag_spec_ld=
15706 hardcode_libdir_separator=
15707 hardcode_minus_L=no
15708 hardcode_shlibpath_var=unsupported
15709 inherit_rpath=no
15710 link_all_deplibs=unknown
15711 module_cmds=
15712 module_expsym_cmds=
15713 old_archive_from_new_cmds=
15714 old_archive_from_expsyms_cmds=
15715 thread_safe_flag_spec=
15716 whole_archive_flag_spec=
15717 # include_expsyms should be a list of space-separated symbols to be *always*
15718 # included in the symbol list
15719 include_expsyms=
15720 # exclude_expsyms can be an extended regexp of symbols to exclude
15721 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15722 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15723 # as well as any symbol that contains `d'.
15724 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15725 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15726 # platforms (ab)use it in PIC code, but their linkers get confused if
15727 # the symbol is explicitly referenced. Since portable code cannot
15728 # rely on this symbol name, it's probably fine to never include it in
15729 # preloaded symbol tables.
15730 # Exclude shared library initialization/finalization symbols.
15731 extract_expsyms_cmds=
15733 case $host_os in
15734 cygwin* | mingw* | pw32* | cegcc*)
15735 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15736 # When not using gcc, we currently assume that we are using
15737 # Microsoft Visual C++.
15738 if test "$GCC" != yes; then
15739 with_gnu_ld=no
15742 interix*)
15743 # we just hope/assume this is gcc and not c89 (= MSVC++)
15744 with_gnu_ld=yes
15746 openbsd*)
15747 with_gnu_ld=no
15749 esac
15751 ld_shlibs=yes
15753 # On some targets, GNU ld is compatible enough with the native linker
15754 # that we're better off using the native interface for both.
15755 lt_use_gnu_ld_interface=no
15756 if test "$with_gnu_ld" = yes; then
15757 case $host_os in
15758 aix*)
15759 # The AIX port of GNU ld has always aspired to compatibility
15760 # with the native linker. However, as the warning in the GNU ld
15761 # block says, versions before 2.19.5* couldn't really create working
15762 # shared libraries, regardless of the interface used.
15763 case `$LD -v 2>&1` in
15764 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15765 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15766 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15768 lt_use_gnu_ld_interface=yes
15770 esac
15773 lt_use_gnu_ld_interface=yes
15775 esac
15778 if test "$lt_use_gnu_ld_interface" = yes; then
15779 # If archive_cmds runs LD, not CC, wlarc should be empty
15780 wlarc='${wl}'
15782 # Set some defaults for GNU ld with shared library support. These
15783 # are reset later if shared libraries are not supported. Putting them
15784 # here allows them to be overridden if necessary.
15785 runpath_var=LD_RUN_PATH
15786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15787 export_dynamic_flag_spec='${wl}--export-dynamic'
15788 # ancient GNU ld didn't support --whole-archive et. al.
15789 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15790 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15791 else
15792 whole_archive_flag_spec=
15794 supports_anon_versioning=no
15795 case `$LD -v 2>&1` in
15796 *GNU\ gold*) supports_anon_versioning=yes ;;
15797 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15800 *\ 2.11.*) ;; # other 2.11 versions
15801 *) supports_anon_versioning=yes ;;
15802 esac
15804 # See if GNU ld supports shared libraries.
15805 case $host_os in
15806 aix[3-9]*)
15807 # On AIX/PPC, the GNU linker is very broken
15808 if test "$host_cpu" != ia64; then
15809 ld_shlibs=no
15810 cat <<_LT_EOF 1>&2
15812 *** Warning: the GNU linker, at least up to release 2.19, is reported
15813 *** to be unable to reliably create shared libraries on AIX.
15814 *** Therefore, libtool is disabling shared libraries support. If you
15815 *** really care for shared libraries, you may want to install binutils
15816 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15817 *** You will then need to restart the configuration process.
15819 _LT_EOF
15823 amigaos*)
15824 case $host_cpu in
15825 powerpc)
15826 # see comment about AmigaOS4 .so support
15827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15828 archive_expsym_cmds=''
15830 m68k)
15831 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)'
15832 hardcode_libdir_flag_spec='-L$libdir'
15833 hardcode_minus_L=yes
15835 esac
15838 beos*)
15839 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15840 allow_undefined_flag=unsupported
15841 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15842 # support --undefined. This deserves some investigation. FIXME
15843 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15844 else
15845 ld_shlibs=no
15849 cygwin* | mingw* | pw32* | cegcc*)
15850 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15851 # as there is no search path for DLLs.
15852 hardcode_libdir_flag_spec='-L$libdir'
15853 export_dynamic_flag_spec='${wl}--export-all-symbols'
15854 allow_undefined_flag=unsupported
15855 always_export_symbols=no
15856 enable_shared_with_static_runtimes=yes
15857 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15859 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15861 # If the export-symbols file already is a .def file (1st line
15862 # is EXPORTS), use it as is; otherwise, prepend...
15863 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15864 cp $export_symbols $output_objdir/$soname.def;
15865 else
15866 echo EXPORTS > $output_objdir/$soname.def;
15867 cat $export_symbols >> $output_objdir/$soname.def;
15869 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15870 else
15871 ld_shlibs=no
15875 haiku*)
15876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15877 link_all_deplibs=yes
15880 interix[3-9]*)
15881 hardcode_direct=no
15882 hardcode_shlibpath_var=no
15883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15884 export_dynamic_flag_spec='${wl}-E'
15885 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15886 # Instead, shared libraries are loaded at an image base (0x10000000 by
15887 # default) and relocated if they conflict, which is a slow very memory
15888 # consuming and fragmenting process. To avoid this, we pick a random,
15889 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15890 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15892 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'
15895 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15896 tmp_diet=no
15897 if test "$host_os" = linux-dietlibc; then
15898 case $cc_basename in
15899 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15900 esac
15902 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15903 && test "$tmp_diet" = no
15904 then
15905 tmp_addflag=
15906 tmp_sharedflag='-shared'
15907 case $cc_basename,$host_cpu in
15908 pgcc*) # Portland Group C compiler
15909 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'
15910 tmp_addflag=' $pic_flag'
15912 pgf77* | pgf90* | pgf95* | pgfortran*)
15913 # Portland Group f77 and f90 compilers
15914 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'
15915 tmp_addflag=' $pic_flag -Mnomain' ;;
15916 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15917 tmp_addflag=' -i_dynamic' ;;
15918 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15919 tmp_addflag=' -i_dynamic -nofor_main' ;;
15920 ifc* | ifort*) # Intel Fortran compiler
15921 tmp_addflag=' -nofor_main' ;;
15922 lf95*) # Lahey Fortran 8.1
15923 whole_archive_flag_spec=
15924 tmp_sharedflag='--shared' ;;
15925 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15926 tmp_sharedflag='-qmkshrobj'
15927 tmp_addflag= ;;
15928 nvcc*) # Cuda Compiler Driver 2.2
15929 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'
15930 compiler_needs_object=yes
15932 esac
15933 case `$CC -V 2>&1 | sed 5q` in
15934 *Sun\ C*) # Sun C 5.9
15935 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'
15936 compiler_needs_object=yes
15937 tmp_sharedflag='-G' ;;
15938 *Sun\ F*) # Sun Fortran 8.3
15939 tmp_sharedflag='-G' ;;
15940 esac
15941 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15943 if test "x$supports_anon_versioning" = xyes; then
15944 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15946 echo "local: *; };" >> $output_objdir/$libname.ver~
15947 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15950 case $cc_basename in
15951 xlf* | bgf* | bgxlf* | mpixlf*)
15952 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15953 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15954 hardcode_libdir_flag_spec=
15955 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15956 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15957 if test "x$supports_anon_versioning" = xyes; then
15958 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15959 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15960 echo "local: *; };" >> $output_objdir/$libname.ver~
15961 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15964 esac
15965 else
15966 ld_shlibs=no
15970 netbsd*)
15971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15972 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15973 wlarc=
15974 else
15975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15976 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15980 solaris*)
15981 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15982 ld_shlibs=no
15983 cat <<_LT_EOF 1>&2
15985 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15986 *** create shared libraries on Solaris systems. Therefore, libtool
15987 *** is disabling shared libraries support. We urge you to upgrade GNU
15988 *** binutils to release 2.9.1 or newer. Another option is to modify
15989 *** your PATH or compiler configuration so that the native linker is
15990 *** used, and then restart.
15992 _LT_EOF
15993 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15995 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15996 else
15997 ld_shlibs=no
16001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16002 case `$LD -v 2>&1` in
16003 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16004 ld_shlibs=no
16005 cat <<_LT_EOF 1>&2
16007 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16008 *** reliably create shared libraries on SCO systems. Therefore, libtool
16009 *** is disabling shared libraries support. We urge you to upgrade GNU
16010 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16011 *** your PATH or compiler configuration so that the native linker is
16012 *** used, and then restart.
16014 _LT_EOF
16017 # For security reasons, it is highly recommended that you always
16018 # use absolute paths for naming shared libraries, and exclude the
16019 # DT_RUNPATH tag from executables and libraries. But doing so
16020 # requires that you compile everything twice, which is a pain.
16021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16025 else
16026 ld_shlibs=no
16029 esac
16032 sunos4*)
16033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16034 wlarc=
16035 hardcode_direct=yes
16036 hardcode_shlibpath_var=no
16040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16043 else
16044 ld_shlibs=no
16047 esac
16049 if test "$ld_shlibs" = no; then
16050 runpath_var=
16051 hardcode_libdir_flag_spec=
16052 export_dynamic_flag_spec=
16053 whole_archive_flag_spec=
16055 else
16056 # PORTME fill in a description of your system's linker (not GNU ld)
16057 case $host_os in
16058 aix3*)
16059 allow_undefined_flag=unsupported
16060 always_export_symbols=yes
16061 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'
16062 # Note: this linker hardcodes the directories in LIBPATH if there
16063 # are no directories specified by -L.
16064 hardcode_minus_L=yes
16065 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16066 # Neither direct hardcoding nor static linking is supported with a
16067 # broken collect2.
16068 hardcode_direct=unsupported
16072 aix[4-9]*)
16073 if test "$host_cpu" = ia64; then
16074 # On IA64, the linker does run time linking by default, so we don't
16075 # have to do anything special.
16076 aix_use_runtimelinking=no
16077 exp_sym_flag='-Bexport'
16078 no_entry_flag=""
16079 else
16080 # If we're using GNU nm, then we don't want the "-C" option.
16081 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16082 # Also, AIX nm treats weak defined symbols like other global
16083 # defined symbols, whereas GNU nm marks them as "W".
16084 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16085 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'
16086 else
16087 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'
16089 aix_use_runtimelinking=no
16091 # Test if we are trying to use run time linking or normal
16092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16093 # need to do runtime linking.
16094 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16095 for ld_flag in $LDFLAGS; do
16096 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16097 aix_use_runtimelinking=yes
16098 break
16100 done
16102 esac
16104 exp_sym_flag='-bexport'
16105 no_entry_flag='-bnoentry'
16108 # When large executables or shared objects are built, AIX ld can
16109 # have problems creating the table of contents. If linking a library
16110 # or program results in "error TOC overflow" add -mminimal-toc to
16111 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16112 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16114 archive_cmds=''
16115 hardcode_direct=yes
16116 hardcode_direct_absolute=yes
16117 hardcode_libdir_separator=':'
16118 link_all_deplibs=yes
16119 file_list_spec='${wl}-f,'
16121 if test "$GCC" = yes; then
16122 case $host_os in aix4.[012]|aix4.[012].*)
16123 # We only want to do this on AIX 4.2 and lower, the check
16124 # below for broken collect2 doesn't work under 4.3+
16125 collect2name=`${CC} -print-prog-name=collect2`
16126 if test -f "$collect2name" &&
16127 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16128 then
16129 # We have reworked collect2
16131 else
16132 # We have old collect2
16133 hardcode_direct=unsupported
16134 # It fails to find uninstalled libraries when the uninstalled
16135 # path is not listed in the libpath. Setting hardcode_minus_L
16136 # to unsupported forces relinking
16137 hardcode_minus_L=yes
16138 hardcode_libdir_flag_spec='-L$libdir'
16139 hardcode_libdir_separator=
16142 esac
16143 shared_flag='-shared'
16144 if test "$aix_use_runtimelinking" = yes; then
16145 shared_flag="$shared_flag "'${wl}-G'
16147 else
16148 # not using gcc
16149 if test "$host_cpu" = ia64; then
16150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16151 # chokes on -Wl,-G. The following line is correct:
16152 shared_flag='-G'
16153 else
16154 if test "$aix_use_runtimelinking" = yes; then
16155 shared_flag='${wl}-G'
16156 else
16157 shared_flag='${wl}-bM:SRE'
16162 export_dynamic_flag_spec='${wl}-bexpall'
16163 # It seems that -bexpall does not export symbols beginning with
16164 # underscore (_), so it is better to generate a list of symbols to export.
16165 always_export_symbols=yes
16166 if test "$aix_use_runtimelinking" = yes; then
16167 # Warning - without using the other runtime loading flags (-brtl),
16168 # -berok will link without error, but may produce a broken library.
16169 allow_undefined_flag='-berok'
16170 # Determine the default libpath from the value encoded in an
16171 # empty executable.
16172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16173 /* end confdefs.h. */
16176 main ()
16180 return 0;
16182 _ACEOF
16183 if ac_fn_c_try_link "$LINENO"; then :
16185 lt_aix_libpath_sed='
16186 /Import File Strings/,/^$/ {
16187 /^0/ {
16188 s/^0 *\(.*\)$/\1/
16192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16193 # Check for a 64-bit object if we didn't find anything.
16194 if test -z "$aix_libpath"; then
16195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16198 rm -f core conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16203 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"
16204 else
16205 if test "$host_cpu" = ia64; then
16206 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16207 allow_undefined_flag="-z nodefs"
16208 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"
16209 else
16210 # Determine the default libpath from the value encoded in an
16211 # empty executable.
16212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h. */
16216 main ()
16220 return 0;
16222 _ACEOF
16223 if ac_fn_c_try_link "$LINENO"; then :
16225 lt_aix_libpath_sed='
16226 /Import File Strings/,/^$/ {
16227 /^0/ {
16228 s/^0 *\(.*\)$/\1/
16232 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16233 # Check for a 64-bit object if we didn't find anything.
16234 if test -z "$aix_libpath"; then
16235 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16238 rm -f core conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16242 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16243 # Warning - without using the other run time loading flags,
16244 # -berok will link without error, but may produce a broken library.
16245 no_undefined_flag=' ${wl}-bernotok'
16246 allow_undefined_flag=' ${wl}-berok'
16247 if test "$with_gnu_ld" = yes; then
16248 # We only use this code for GNU lds that support --whole-archive.
16249 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16250 else
16251 # Exported symbols can be pulled into shared objects from archives
16252 whole_archive_flag_spec='$convenience'
16254 archive_cmds_need_lc=yes
16255 # This is similar to how AIX traditionally builds its shared libraries.
16256 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'
16261 amigaos*)
16262 case $host_cpu in
16263 powerpc)
16264 # see comment about AmigaOS4 .so support
16265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16266 archive_expsym_cmds=''
16268 m68k)
16269 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)'
16270 hardcode_libdir_flag_spec='-L$libdir'
16271 hardcode_minus_L=yes
16273 esac
16276 bsdi[45]*)
16277 export_dynamic_flag_spec=-rdynamic
16280 cygwin* | mingw* | pw32* | cegcc*)
16281 # When not using gcc, we currently assume that we are using
16282 # Microsoft Visual C++.
16283 # hardcode_libdir_flag_spec is actually meaningless, as there is
16284 # no search path for DLLs.
16285 hardcode_libdir_flag_spec=' '
16286 allow_undefined_flag=unsupported
16287 # Tell ltmain to make .lib files, not .a files.
16288 libext=lib
16289 # Tell ltmain to make .dll files, not .so files.
16290 shrext_cmds=".dll"
16291 # FIXME: Setting linknames here is a bad hack.
16292 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16293 # The linker will automatically build a .lib file if we build a DLL.
16294 old_archive_from_new_cmds='true'
16295 # FIXME: Should let the user specify the lib program.
16296 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16297 fix_srcfile_path='`cygpath -w "$srcfile"`'
16298 enable_shared_with_static_runtimes=yes
16301 darwin* | rhapsody*)
16304 archive_cmds_need_lc=no
16305 hardcode_direct=no
16306 hardcode_automatic=yes
16307 hardcode_shlibpath_var=unsupported
16308 if test "$lt_cv_ld_force_load" = "yes"; then
16309 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\"`'
16310 else
16311 whole_archive_flag_spec=''
16313 link_all_deplibs=yes
16314 allow_undefined_flag="$_lt_dar_allow_undefined"
16315 case $cc_basename in
16316 ifort*) _lt_dar_can_shared=yes ;;
16317 *) _lt_dar_can_shared=$GCC ;;
16318 esac
16319 if test "$_lt_dar_can_shared" = "yes"; then
16320 output_verbose_link_cmd=func_echo_all
16321 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16322 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16323 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}"
16324 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}"
16326 else
16327 ld_shlibs=no
16332 dgux*)
16333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16334 hardcode_libdir_flag_spec='-L$libdir'
16335 hardcode_shlibpath_var=no
16338 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16339 # support. Future versions do this automatically, but an explicit c++rt0.o
16340 # does not break anything, and helps significantly (at the cost of a little
16341 # extra space).
16342 freebsd2.2*)
16343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16344 hardcode_libdir_flag_spec='-R$libdir'
16345 hardcode_direct=yes
16346 hardcode_shlibpath_var=no
16349 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16350 freebsd2.*)
16351 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16352 hardcode_direct=yes
16353 hardcode_minus_L=yes
16354 hardcode_shlibpath_var=no
16357 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16358 freebsd* | dragonfly*)
16359 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16360 hardcode_libdir_flag_spec='-R$libdir'
16361 hardcode_direct=yes
16362 hardcode_shlibpath_var=no
16365 hpux9*)
16366 if test "$GCC" = yes; then
16367 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'
16368 else
16369 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'
16371 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16372 hardcode_libdir_separator=:
16373 hardcode_direct=yes
16375 # hardcode_minus_L: Not really in the search PATH,
16376 # but as the default location of the library.
16377 hardcode_minus_L=yes
16378 export_dynamic_flag_spec='${wl}-E'
16381 hpux10*)
16382 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16383 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16384 else
16385 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16387 if test "$with_gnu_ld" = no; then
16388 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16389 hardcode_libdir_flag_spec_ld='+b $libdir'
16390 hardcode_libdir_separator=:
16391 hardcode_direct=yes
16392 hardcode_direct_absolute=yes
16393 export_dynamic_flag_spec='${wl}-E'
16394 # hardcode_minus_L: Not really in the search PATH,
16395 # but as the default location of the library.
16396 hardcode_minus_L=yes
16400 hpux11*)
16401 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16402 case $host_cpu in
16403 hppa*64*)
16404 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16406 ia64*)
16407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16410 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16412 esac
16413 else
16414 case $host_cpu in
16415 hppa*64*)
16416 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16418 ia64*)
16419 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16423 # Older versions of the 11.00 compiler do not understand -b yet
16424 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16426 $as_echo_n "checking if $CC understands -b... " >&6; }
16427 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16428 $as_echo_n "(cached) " >&6
16429 else
16430 lt_cv_prog_compiler__b=no
16431 save_LDFLAGS="$LDFLAGS"
16432 LDFLAGS="$LDFLAGS -b"
16433 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16435 # The linker can only warn and ignore the option if not recognized
16436 # So say no if there are warnings
16437 if test -s conftest.err; then
16438 # Append any errors to the config.log.
16439 cat conftest.err 1>&5
16440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16442 if diff conftest.exp conftest.er2 >/dev/null; then
16443 lt_cv_prog_compiler__b=yes
16445 else
16446 lt_cv_prog_compiler__b=yes
16449 $RM -r conftest*
16450 LDFLAGS="$save_LDFLAGS"
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16454 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16456 if test x"$lt_cv_prog_compiler__b" = xyes; then
16457 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16458 else
16459 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16463 esac
16465 if test "$with_gnu_ld" = no; then
16466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16467 hardcode_libdir_separator=:
16469 case $host_cpu in
16470 hppa*64*|ia64*)
16471 hardcode_direct=no
16472 hardcode_shlibpath_var=no
16475 hardcode_direct=yes
16476 hardcode_direct_absolute=yes
16477 export_dynamic_flag_spec='${wl}-E'
16479 # hardcode_minus_L: Not really in the search PATH,
16480 # but as the default location of the library.
16481 hardcode_minus_L=yes
16483 esac
16487 irix5* | irix6* | nonstopux*)
16488 if test "$GCC" = yes; then
16489 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'
16490 # Try to use the -exported_symbol ld option, if it does not
16491 # work, assume that -exports_file does not work either and
16492 # implicitly export all symbols.
16493 save_LDFLAGS="$LDFLAGS"
16494 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h. */
16497 int foo(void) {}
16498 _ACEOF
16499 if ac_fn_c_try_link "$LINENO"; then :
16500 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'
16503 rm -f core conftest.err conftest.$ac_objext \
16504 conftest$ac_exeext conftest.$ac_ext
16505 LDFLAGS="$save_LDFLAGS"
16506 else
16507 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'
16508 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'
16510 archive_cmds_need_lc='no'
16511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16512 hardcode_libdir_separator=:
16513 inherit_rpath=yes
16514 link_all_deplibs=yes
16517 netbsd*)
16518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16520 else
16521 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16523 hardcode_libdir_flag_spec='-R$libdir'
16524 hardcode_direct=yes
16525 hardcode_shlibpath_var=no
16528 newsos6)
16529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_direct=yes
16531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16532 hardcode_libdir_separator=:
16533 hardcode_shlibpath_var=no
16536 *nto* | *qnx*)
16539 openbsd*)
16540 if test -f /usr/libexec/ld.so; then
16541 hardcode_direct=yes
16542 hardcode_shlibpath_var=no
16543 hardcode_direct_absolute=yes
16544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16546 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16547 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16548 export_dynamic_flag_spec='${wl}-E'
16549 else
16550 case $host_os in
16551 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16553 hardcode_libdir_flag_spec='-R$libdir'
16556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16557 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16559 esac
16561 else
16562 ld_shlibs=no
16566 os2*)
16567 hardcode_libdir_flag_spec='-L$libdir'
16568 hardcode_minus_L=yes
16569 allow_undefined_flag=unsupported
16570 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'
16571 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16574 osf3*)
16575 if test "$GCC" = yes; then
16576 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16577 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'
16578 else
16579 allow_undefined_flag=' -expect_unresolved \*'
16580 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'
16582 archive_cmds_need_lc='no'
16583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16584 hardcode_libdir_separator=:
16587 osf4* | osf5*) # as osf3* with the addition of -msym flag
16588 if test "$GCC" = yes; then
16589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16590 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'
16591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16592 else
16593 allow_undefined_flag=' -expect_unresolved \*'
16594 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'
16595 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~
16596 $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'
16598 # Both c and cxx compiler support -rpath directly
16599 hardcode_libdir_flag_spec='-rpath $libdir'
16601 archive_cmds_need_lc='no'
16602 hardcode_libdir_separator=:
16605 solaris*)
16606 no_undefined_flag=' -z defs'
16607 if test "$GCC" = yes; then
16608 wlarc='${wl}'
16609 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16611 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16612 else
16613 case `$CC -V 2>&1` in
16614 *"Compilers 5.0"*)
16615 wlarc=''
16616 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16618 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16621 wlarc='${wl}'
16622 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16624 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16626 esac
16628 hardcode_libdir_flag_spec='-R$libdir'
16629 hardcode_shlibpath_var=no
16630 case $host_os in
16631 solaris2.[0-5] | solaris2.[0-5].*) ;;
16633 # The compiler driver will combine and reorder linker options,
16634 # but understands `-z linker_flag'. GCC discards it without `$wl',
16635 # but is careful enough not to reorder.
16636 # Supported since Solaris 2.6 (maybe 2.5.1?)
16637 if test "$GCC" = yes; then
16638 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16639 else
16640 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16643 esac
16644 link_all_deplibs=yes
16647 sunos4*)
16648 if test "x$host_vendor" = xsequent; then
16649 # Use $CC to link under sequent, because it throws in some extra .o
16650 # files that make .init and .fini sections work.
16651 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16652 else
16653 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_libdir_flag_spec='-L$libdir'
16656 hardcode_direct=yes
16657 hardcode_minus_L=yes
16658 hardcode_shlibpath_var=no
16661 sysv4)
16662 case $host_vendor in
16663 sni)
16664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665 hardcode_direct=yes # is this really true???
16667 siemens)
16668 ## LD is ld it makes a PLAMLIB
16669 ## CC just makes a GrossModule.
16670 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16671 reload_cmds='$CC -r -o $output$reload_objs'
16672 hardcode_direct=no
16674 motorola)
16675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16676 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16678 esac
16679 runpath_var='LD_RUN_PATH'
16680 hardcode_shlibpath_var=no
16683 sysv4.3*)
16684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16685 hardcode_shlibpath_var=no
16686 export_dynamic_flag_spec='-Bexport'
16689 sysv4*MP*)
16690 if test -d /usr/nec; then
16691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16692 hardcode_shlibpath_var=no
16693 runpath_var=LD_RUN_PATH
16694 hardcode_runpath_var=yes
16695 ld_shlibs=yes
16699 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16700 no_undefined_flag='${wl}-z,text'
16701 archive_cmds_need_lc=no
16702 hardcode_shlibpath_var=no
16703 runpath_var='LD_RUN_PATH'
16705 if test "$GCC" = yes; then
16706 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16708 else
16709 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16714 sysv5* | sco3.2v5* | sco5v6*)
16715 # Note: We can NOT use -z defs as we might desire, because we do not
16716 # link with -lc, and that would cause any symbols used from libc to
16717 # always be unresolved, which means just about no library would
16718 # ever link correctly. If we're not using GNU ld we use -z text
16719 # though, which does catch some bad symbols but isn't as heavy-handed
16720 # as -z defs.
16721 no_undefined_flag='${wl}-z,text'
16722 allow_undefined_flag='${wl}-z,nodefs'
16723 archive_cmds_need_lc=no
16724 hardcode_shlibpath_var=no
16725 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16726 hardcode_libdir_separator=':'
16727 link_all_deplibs=yes
16728 export_dynamic_flag_spec='${wl}-Bexport'
16729 runpath_var='LD_RUN_PATH'
16731 if test "$GCC" = yes; then
16732 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16733 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16734 else
16735 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16736 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16740 uts4*)
16741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16742 hardcode_libdir_flag_spec='-L$libdir'
16743 hardcode_shlibpath_var=no
16747 ld_shlibs=no
16749 esac
16751 if test x$host_vendor = xsni; then
16752 case $host in
16753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16754 export_dynamic_flag_spec='${wl}-Blargedynsym'
16756 esac
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16761 $as_echo "$ld_shlibs" >&6; }
16762 test "$ld_shlibs" = no && can_build_shared=no
16764 with_gnu_ld=$with_gnu_ld
16781 # Do we need to explicitly link libc?
16783 case "x$archive_cmds_need_lc" in
16784 x|xyes)
16785 # Assume -lc should be added
16786 archive_cmds_need_lc=yes
16788 if test "$enable_shared" = yes && test "$GCC" = yes; then
16789 case $archive_cmds in
16790 *'~'*)
16791 # FIXME: we may have to deal with multi-command sequences.
16793 '$CC '*)
16794 # Test whether the compiler implicitly links with -lc since on some
16795 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16796 # to ld, don't add -lc before -lgcc.
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16798 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16799 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16800 $as_echo_n "(cached) " >&6
16801 else
16802 $RM conftest*
16803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16806 (eval $ac_compile) 2>&5
16807 ac_status=$?
16808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16809 test $ac_status = 0; } 2>conftest.err; then
16810 soname=conftest
16811 lib=conftest
16812 libobjs=conftest.$ac_objext
16813 deplibs=
16814 wl=$lt_prog_compiler_wl
16815 pic_flag=$lt_prog_compiler_pic
16816 compiler_flags=-v
16817 linker_flags=-v
16818 verstring=
16819 output_objdir=.
16820 libname=conftest
16821 lt_save_allow_undefined_flag=$allow_undefined_flag
16822 allow_undefined_flag=
16823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16824 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16825 ac_status=$?
16826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16827 test $ac_status = 0; }
16828 then
16829 lt_cv_archive_cmds_need_lc=no
16830 else
16831 lt_cv_archive_cmds_need_lc=yes
16833 allow_undefined_flag=$lt_save_allow_undefined_flag
16834 else
16835 cat conftest.err 1>&5
16837 $RM conftest*
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16841 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16842 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16844 esac
16847 esac
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17006 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17008 if test "$GCC" = yes; then
17009 case $host_os in
17010 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17011 *) lt_awk_arg="/^libraries:/" ;;
17012 esac
17013 case $host_os in
17014 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17015 *) lt_sed_strip_eq="s,=/,/,g" ;;
17016 esac
17017 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17018 case $lt_search_path_spec in
17019 *\;*)
17020 # if the path contains ";" then we assume it to be the separator
17021 # otherwise default to the standard path separator (i.e. ":") - it is
17022 # assumed that no part of a normal pathname contains ";" but that should
17023 # okay in the real world where ";" in dirpaths is itself problematic.
17024 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17027 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17029 esac
17030 # Ok, now we have the path, separated by spaces, we can step through it
17031 # and add multilib dir if necessary.
17032 lt_tmp_lt_search_path_spec=
17033 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17034 for lt_sys_path in $lt_search_path_spec; do
17035 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17037 else
17038 test -d "$lt_sys_path" && \
17039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17041 done
17042 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17043 BEGIN {RS=" "; FS="/|\n";} {
17044 lt_foo="";
17045 lt_count=0;
17046 for (lt_i = NF; lt_i > 0; lt_i--) {
17047 if ($lt_i != "" && $lt_i != ".") {
17048 if ($lt_i == "..") {
17049 lt_count++;
17050 } else {
17051 if (lt_count == 0) {
17052 lt_foo="/" $lt_i lt_foo;
17053 } else {
17054 lt_count--;
17059 if (lt_foo != "") { lt_freq[lt_foo]++; }
17060 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17062 # AWK program above erroneously prepends '/' to C:/dos/paths
17063 # for these hosts.
17064 case $host_os in
17065 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17066 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17067 esac
17068 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17069 else
17070 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17072 library_names_spec=
17073 libname_spec='lib$name'
17074 soname_spec=
17075 shrext_cmds=".so"
17076 postinstall_cmds=
17077 postuninstall_cmds=
17078 finish_cmds=
17079 finish_eval=
17080 shlibpath_var=
17081 shlibpath_overrides_runpath=unknown
17082 version_type=none
17083 dynamic_linker="$host_os ld.so"
17084 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17085 need_lib_prefix=unknown
17086 hardcode_into_libs=no
17088 # when you set need_version to no, make sure it does not cause -set_version
17089 # flags to be left without arguments
17090 need_version=unknown
17092 case $host_os in
17093 aix3*)
17094 version_type=linux
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17096 shlibpath_var=LIBPATH
17098 # AIX 3 has no versioning support, so we append a major version to the name.
17099 soname_spec='${libname}${release}${shared_ext}$major'
17102 aix[4-9]*)
17103 version_type=linux
17104 need_lib_prefix=no
17105 need_version=no
17106 hardcode_into_libs=yes
17107 if test "$host_cpu" = ia64; then
17108 # AIX 5 supports IA64
17109 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 else
17112 # With GCC up to 2.95.x, collect2 would create an import file
17113 # for dependence libraries. The import file would start with
17114 # the line `#! .'. This would cause the generated library to
17115 # depend on `.', always an invalid library. This was fixed in
17116 # development snapshots of GCC prior to 3.0.
17117 case $host_os in
17118 aix4 | aix4.[01] | aix4.[01].*)
17119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17120 echo ' yes '
17121 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17123 else
17124 can_build_shared=no
17127 esac
17128 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17129 # soname into executable. Probably we can add versioning support to
17130 # collect2, so additional links can be useful in future.
17131 if test "$aix_use_runtimelinking" = yes; then
17132 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17133 # instead of lib<name>.a to let people know that these are not
17134 # typical AIX shared libraries.
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 else
17137 # We preserve .a as extension for shared libraries through AIX4.2
17138 # and later when we are not doing run time linking.
17139 library_names_spec='${libname}${release}.a $libname.a'
17140 soname_spec='${libname}${release}${shared_ext}$major'
17142 shlibpath_var=LIBPATH
17146 amigaos*)
17147 case $host_cpu in
17148 powerpc)
17149 # Since July 2007 AmigaOS4 officially supports .so libraries.
17150 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 m68k)
17154 library_names_spec='$libname.ixlibrary $libname.a'
17155 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17156 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'
17158 esac
17161 beos*)
17162 library_names_spec='${libname}${shared_ext}'
17163 dynamic_linker="$host_os ld.so"
17164 shlibpath_var=LIBRARY_PATH
17167 bsdi[45]*)
17168 version_type=linux
17169 need_version=no
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17173 shlibpath_var=LD_LIBRARY_PATH
17174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17176 # the default ld.so.conf also contains /usr/contrib/lib and
17177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17178 # libtool to hard-code these into programs
17181 cygwin* | mingw* | pw32* | cegcc*)
17182 version_type=windows
17183 shrext_cmds=".dll"
17184 need_version=no
17185 need_lib_prefix=no
17187 case $GCC,$host_os in
17188 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17189 library_names_spec='$libname.dll.a'
17190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17191 postinstall_cmds='base_file=`basename \${file}`~
17192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17193 dldir=$destdir/`dirname \$dlpath`~
17194 test -d \$dldir || mkdir -p \$dldir~
17195 $install_prog $dir/$dlname \$dldir/$dlname~
17196 chmod a+x \$dldir/$dlname~
17197 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17198 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17201 dlpath=$dir/\$dldll~
17202 $RM \$dlpath'
17203 shlibpath_overrides_runpath=yes
17205 case $host_os in
17206 cygwin*)
17207 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17208 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17210 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17212 mingw* | cegcc*)
17213 # MinGW DLLs use traditional 'lib' prefix
17214 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17216 pw32*)
17217 # pw32 DLLs use 'pw' prefix rather than 'lib'
17218 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17220 esac
17224 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17226 esac
17227 dynamic_linker='Win32 ld.exe'
17228 # FIXME: first we should search . and the directory the executable is in
17229 shlibpath_var=PATH
17232 darwin* | rhapsody*)
17233 dynamic_linker="$host_os dyld"
17234 version_type=darwin
17235 need_lib_prefix=no
17236 need_version=no
17237 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17238 soname_spec='${libname}${release}${major}$shared_ext'
17239 shlibpath_overrides_runpath=yes
17240 shlibpath_var=DYLD_LIBRARY_PATH
17241 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17244 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17247 dgux*)
17248 version_type=linux
17249 need_lib_prefix=no
17250 need_version=no
17251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17252 soname_spec='${libname}${release}${shared_ext}$major'
17253 shlibpath_var=LD_LIBRARY_PATH
17256 freebsd* | dragonfly*)
17257 # DragonFly does not have aout. When/if they implement a new
17258 # versioning mechanism, adjust this.
17259 if test -x /usr/bin/objformat; then
17260 objformat=`/usr/bin/objformat`
17261 else
17262 case $host_os in
17263 freebsd[23].*) objformat=aout ;;
17264 *) objformat=elf ;;
17265 esac
17267 version_type=freebsd-$objformat
17268 case $version_type in
17269 freebsd-elf*)
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17271 need_version=no
17272 need_lib_prefix=no
17274 freebsd-*)
17275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17276 need_version=yes
17278 esac
17279 shlibpath_var=LD_LIBRARY_PATH
17280 case $host_os in
17281 freebsd2.*)
17282 shlibpath_overrides_runpath=yes
17284 freebsd3.[01]* | freebsdelf3.[01]*)
17285 shlibpath_overrides_runpath=yes
17286 hardcode_into_libs=yes
17288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17290 shlibpath_overrides_runpath=no
17291 hardcode_into_libs=yes
17293 *) # from 4.6 on, and DragonFly
17294 shlibpath_overrides_runpath=yes
17295 hardcode_into_libs=yes
17297 esac
17300 gnu*)
17301 version_type=linux
17302 need_lib_prefix=no
17303 need_version=no
17304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17305 soname_spec='${libname}${release}${shared_ext}$major'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 hardcode_into_libs=yes
17310 haiku*)
17311 version_type=linux
17312 need_lib_prefix=no
17313 need_version=no
17314 dynamic_linker="$host_os runtime_loader"
17315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17316 soname_spec='${libname}${release}${shared_ext}$major'
17317 shlibpath_var=LIBRARY_PATH
17318 shlibpath_overrides_runpath=yes
17319 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17320 hardcode_into_libs=yes
17323 hpux9* | hpux10* | hpux11*)
17324 # Give a soname corresponding to the major version so that dld.sl refuses to
17325 # link against other versions.
17326 version_type=sunos
17327 need_lib_prefix=no
17328 need_version=no
17329 case $host_cpu in
17330 ia64*)
17331 shrext_cmds='.so'
17332 hardcode_into_libs=yes
17333 dynamic_linker="$host_os dld.so"
17334 shlibpath_var=LD_LIBRARY_PATH
17335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17337 soname_spec='${libname}${release}${shared_ext}$major'
17338 if test "X$HPUX_IA64_MODE" = X32; then
17339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17340 else
17341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17345 hppa*64*)
17346 shrext_cmds='.sl'
17347 hardcode_into_libs=yes
17348 dynamic_linker="$host_os dld.sl"
17349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17357 shrext_cmds='.sl'
17358 dynamic_linker="$host_os dld.sl"
17359 shlibpath_var=SHLIB_PATH
17360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17362 soname_spec='${libname}${release}${shared_ext}$major'
17364 esac
17365 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17366 postinstall_cmds='chmod 555 $lib'
17367 # or fails outright, so override atomically:
17368 install_override_mode=555
17371 interix[3-9]*)
17372 version_type=linux
17373 need_lib_prefix=no
17374 need_version=no
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17378 shlibpath_var=LD_LIBRARY_PATH
17379 shlibpath_overrides_runpath=no
17380 hardcode_into_libs=yes
17383 irix5* | irix6* | nonstopux*)
17384 case $host_os in
17385 nonstopux*) version_type=nonstopux ;;
17387 if test "$lt_cv_prog_gnu_ld" = yes; then
17388 version_type=linux
17389 else
17390 version_type=irix
17391 fi ;;
17392 esac
17393 need_lib_prefix=no
17394 need_version=no
17395 soname_spec='${libname}${release}${shared_ext}$major'
17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17397 case $host_os in
17398 irix5* | nonstopux*)
17399 libsuff= shlibsuff=
17402 case $LD in # libtool.m4 will add one of these switches to LD
17403 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17404 libsuff= shlibsuff= libmagic=32-bit;;
17405 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17406 libsuff=32 shlibsuff=N32 libmagic=N32;;
17407 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17408 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17409 *) libsuff= shlibsuff= libmagic=never-match;;
17410 esac
17412 esac
17413 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17414 shlibpath_overrides_runpath=no
17415 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17416 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17417 hardcode_into_libs=yes
17420 # No shared lib support for Linux oldld, aout, or coff.
17421 linux*oldld* | linux*aout* | linux*coff*)
17422 dynamic_linker=no
17425 # This must be Linux ELF.
17426 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17427 version_type=linux
17428 need_lib_prefix=no
17429 need_version=no
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17433 shlibpath_var=LD_LIBRARY_PATH
17434 shlibpath_overrides_runpath=no
17436 # Some binutils ld are patched to set DT_RUNPATH
17437 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17438 $as_echo_n "(cached) " >&6
17439 else
17440 lt_cv_shlibpath_overrides_runpath=no
17441 save_LDFLAGS=$LDFLAGS
17442 save_libdir=$libdir
17443 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17444 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17449 main ()
17453 return 0;
17455 _ACEOF
17456 if ac_fn_c_try_link "$LINENO"; then :
17457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17458 lt_cv_shlibpath_overrides_runpath=yes
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LDFLAGS=$save_LDFLAGS
17464 libdir=$save_libdir
17468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17470 # This implies no fast_install, which is unacceptable.
17471 # Some rework will be needed to allow for fast_install
17472 # before this can be enabled.
17473 hardcode_into_libs=yes
17475 # Append ld.so.conf contents to the search path
17476 if test -f /etc/ld.so.conf; then
17477 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' ' '`
17478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17481 # We used to test for /lib/ld.so.1 and disable shared libraries on
17482 # powerpc, because MkLinux only supported shared libraries with the
17483 # GNU dynamic linker. Since this was broken with cross compilers,
17484 # most powerpc-linux boxes support dynamic linking these days and
17485 # people can always --disable-shared, the test was removed, and we
17486 # assume the GNU/Linux dynamic linker is in use.
17487 dynamic_linker='GNU/Linux ld.so'
17490 netbsd*)
17491 version_type=sunos
17492 need_lib_prefix=no
17493 need_version=no
17494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17497 dynamic_linker='NetBSD (a.out) ld.so'
17498 else
17499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17500 soname_spec='${libname}${release}${shared_ext}$major'
17501 dynamic_linker='NetBSD ld.elf_so'
17503 shlibpath_var=LD_LIBRARY_PATH
17504 shlibpath_overrides_runpath=yes
17505 hardcode_into_libs=yes
17508 newsos6)
17509 version_type=linux
17510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511 shlibpath_var=LD_LIBRARY_PATH
17512 shlibpath_overrides_runpath=yes
17515 *nto* | *qnx*)
17516 version_type=qnx
17517 need_lib_prefix=no
17518 need_version=no
17519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17520 soname_spec='${libname}${release}${shared_ext}$major'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 shlibpath_overrides_runpath=no
17523 hardcode_into_libs=yes
17524 dynamic_linker='ldqnx.so'
17527 openbsd*)
17528 version_type=sunos
17529 sys_lib_dlsearch_path_spec="/usr/lib"
17530 need_lib_prefix=no
17531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17532 case $host_os in
17533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17534 *) need_version=no ;;
17535 esac
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17538 shlibpath_var=LD_LIBRARY_PATH
17539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17540 case $host_os in
17541 openbsd2.[89] | openbsd2.[89].*)
17542 shlibpath_overrides_runpath=no
17545 shlibpath_overrides_runpath=yes
17547 esac
17548 else
17549 shlibpath_overrides_runpath=yes
17553 os2*)
17554 libname_spec='$name'
17555 shrext_cmds=".dll"
17556 need_lib_prefix=no
17557 library_names_spec='$libname${shared_ext} $libname.a'
17558 dynamic_linker='OS/2 ld.exe'
17559 shlibpath_var=LIBPATH
17562 osf3* | osf4* | osf5*)
17563 version_type=osf
17564 need_lib_prefix=no
17565 need_version=no
17566 soname_spec='${libname}${release}${shared_ext}$major'
17567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17568 shlibpath_var=LD_LIBRARY_PATH
17569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17573 rdos*)
17574 dynamic_linker=no
17577 solaris*)
17578 version_type=linux
17579 need_lib_prefix=no
17580 need_version=no
17581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17582 soname_spec='${libname}${release}${shared_ext}$major'
17583 shlibpath_var=LD_LIBRARY_PATH
17584 shlibpath_overrides_runpath=yes
17585 hardcode_into_libs=yes
17586 # ldd complains unless libraries are executable
17587 postinstall_cmds='chmod +x $lib'
17590 sunos4*)
17591 version_type=sunos
17592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17594 shlibpath_var=LD_LIBRARY_PATH
17595 shlibpath_overrides_runpath=yes
17596 if test "$with_gnu_ld" = yes; then
17597 need_lib_prefix=no
17599 need_version=yes
17602 sysv4 | sysv4.3*)
17603 version_type=linux
17604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17605 soname_spec='${libname}${release}${shared_ext}$major'
17606 shlibpath_var=LD_LIBRARY_PATH
17607 case $host_vendor in
17608 sni)
17609 shlibpath_overrides_runpath=no
17610 need_lib_prefix=no
17611 runpath_var=LD_RUN_PATH
17613 siemens)
17614 need_lib_prefix=no
17616 motorola)
17617 need_lib_prefix=no
17618 need_version=no
17619 shlibpath_overrides_runpath=no
17620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17622 esac
17625 sysv4*MP*)
17626 if test -d /usr/nec ;then
17627 version_type=linux
17628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17629 soname_spec='$libname${shared_ext}.$major'
17630 shlibpath_var=LD_LIBRARY_PATH
17634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17635 version_type=freebsd-elf
17636 need_lib_prefix=no
17637 need_version=no
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17639 soname_spec='${libname}${release}${shared_ext}$major'
17640 shlibpath_var=LD_LIBRARY_PATH
17641 shlibpath_overrides_runpath=yes
17642 hardcode_into_libs=yes
17643 if test "$with_gnu_ld" = yes; then
17644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17645 else
17646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17647 case $host_os in
17648 sco3.2v5*)
17649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17651 esac
17653 sys_lib_dlsearch_path_spec='/usr/lib'
17656 tpf*)
17657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17658 version_type=linux
17659 need_lib_prefix=no
17660 need_version=no
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17662 shlibpath_var=LD_LIBRARY_PATH
17663 shlibpath_overrides_runpath=no
17664 hardcode_into_libs=yes
17667 uts4*)
17668 version_type=linux
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 soname_spec='${libname}${release}${shared_ext}$major'
17671 shlibpath_var=LD_LIBRARY_PATH
17675 dynamic_linker=no
17677 esac
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17679 $as_echo "$dynamic_linker" >&6; }
17680 test "$dynamic_linker" = no && can_build_shared=no
17682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17683 if test "$GCC" = yes; then
17684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17687 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17688 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17691 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17786 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17787 hardcode_action=
17788 if test -n "$hardcode_libdir_flag_spec" ||
17789 test -n "$runpath_var" ||
17790 test "X$hardcode_automatic" = "Xyes" ; then
17792 # We can hardcode non-existent directories.
17793 if test "$hardcode_direct" != no &&
17794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17795 # have to relink, otherwise we might link with an installed library
17796 # when we should be linking with a yet-to-be-installed one
17797 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17798 test "$hardcode_minus_L" != no; then
17799 # Linking always hardcodes the temporary library directory.
17800 hardcode_action=relink
17801 else
17802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17803 hardcode_action=immediate
17805 else
17806 # We cannot hardcode anything, or else we can only hardcode existing
17807 # directories.
17808 hardcode_action=unsupported
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17811 $as_echo "$hardcode_action" >&6; }
17813 if test "$hardcode_action" = relink ||
17814 test "$inherit_rpath" = yes; then
17815 # Fast installation is not supported
17816 enable_fast_install=no
17817 elif test "$shlibpath_overrides_runpath" = yes ||
17818 test "$enable_shared" = no; then
17819 # Fast installation is not necessary
17820 enable_fast_install=needless
17828 if test "x$enable_dlopen" != xyes; then
17829 enable_dlopen=unknown
17830 enable_dlopen_self=unknown
17831 enable_dlopen_self_static=unknown
17832 else
17833 lt_cv_dlopen=no
17834 lt_cv_dlopen_libs=
17836 case $host_os in
17837 beos*)
17838 lt_cv_dlopen="load_add_on"
17839 lt_cv_dlopen_libs=
17840 lt_cv_dlopen_self=yes
17843 mingw* | pw32* | cegcc*)
17844 lt_cv_dlopen="LoadLibrary"
17845 lt_cv_dlopen_libs=
17848 cygwin*)
17849 lt_cv_dlopen="dlopen"
17850 lt_cv_dlopen_libs=
17853 darwin*)
17854 # if libdl is installed we need to link against it
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17856 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17857 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17858 $as_echo_n "(cached) " >&6
17859 else
17860 ac_check_lib_save_LIBS=$LIBS
17861 LIBS="-ldl $LIBS"
17862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17863 /* end confdefs.h. */
17865 /* Override any GCC internal prototype to avoid an error.
17866 Use char because int might match the return type of a GCC
17867 builtin and then its argument prototype would still apply. */
17868 #ifdef __cplusplus
17869 extern "C"
17870 #endif
17871 char dlopen ();
17873 main ()
17875 return dlopen ();
17877 return 0;
17879 _ACEOF
17880 if ac_fn_c_try_link "$LINENO"; then :
17881 ac_cv_lib_dl_dlopen=yes
17882 else
17883 ac_cv_lib_dl_dlopen=no
17885 rm -f core conftest.err conftest.$ac_objext \
17886 conftest$ac_exeext conftest.$ac_ext
17887 LIBS=$ac_check_lib_save_LIBS
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17890 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17891 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17893 else
17895 lt_cv_dlopen="dyld"
17896 lt_cv_dlopen_libs=
17897 lt_cv_dlopen_self=yes
17904 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17905 if test "x$ac_cv_func_shl_load" = x""yes; then :
17906 lt_cv_dlopen="shl_load"
17907 else
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17909 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17910 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17911 $as_echo_n "(cached) " >&6
17912 else
17913 ac_check_lib_save_LIBS=$LIBS
17914 LIBS="-ldld $LIBS"
17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17916 /* end confdefs.h. */
17918 /* Override any GCC internal prototype to avoid an error.
17919 Use char because int might match the return type of a GCC
17920 builtin and then its argument prototype would still apply. */
17921 #ifdef __cplusplus
17922 extern "C"
17923 #endif
17924 char shl_load ();
17926 main ()
17928 return shl_load ();
17930 return 0;
17932 _ACEOF
17933 if ac_fn_c_try_link "$LINENO"; then :
17934 ac_cv_lib_dld_shl_load=yes
17935 else
17936 ac_cv_lib_dld_shl_load=no
17938 rm -f core conftest.err conftest.$ac_objext \
17939 conftest$ac_exeext conftest.$ac_ext
17940 LIBS=$ac_check_lib_save_LIBS
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17943 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17944 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17945 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17946 else
17947 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17948 if test "x$ac_cv_func_dlopen" = x""yes; then :
17949 lt_cv_dlopen="dlopen"
17950 else
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17954 $as_echo_n "(cached) " >&6
17955 else
17956 ac_check_lib_save_LIBS=$LIBS
17957 LIBS="-ldl $LIBS"
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17961 /* Override any GCC internal prototype to avoid an error.
17962 Use char because int might match the return type of a GCC
17963 builtin and then its argument prototype would still apply. */
17964 #ifdef __cplusplus
17965 extern "C"
17966 #endif
17967 char dlopen ();
17969 main ()
17971 return dlopen ();
17973 return 0;
17975 _ACEOF
17976 if ac_fn_c_try_link "$LINENO"; then :
17977 ac_cv_lib_dl_dlopen=yes
17978 else
17979 ac_cv_lib_dl_dlopen=no
17981 rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
17983 LIBS=$ac_check_lib_save_LIBS
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17987 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17989 else
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17991 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17992 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17993 $as_echo_n "(cached) " >&6
17994 else
17995 ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-lsvld $LIBS"
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
18000 /* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 char dlopen ();
18008 main ()
18010 return dlopen ();
18012 return 0;
18014 _ACEOF
18015 if ac_fn_c_try_link "$LINENO"; then :
18016 ac_cv_lib_svld_dlopen=yes
18017 else
18018 ac_cv_lib_svld_dlopen=no
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022 LIBS=$ac_check_lib_save_LIBS
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18026 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18028 else
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18031 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18032 $as_echo_n "(cached) " >&6
18033 else
18034 ac_check_lib_save_LIBS=$LIBS
18035 LIBS="-ldld $LIBS"
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h. */
18039 /* Override any GCC internal prototype to avoid an error.
18040 Use char because int might match the return type of a GCC
18041 builtin and then its argument prototype would still apply. */
18042 #ifdef __cplusplus
18043 extern "C"
18044 #endif
18045 char dld_link ();
18047 main ()
18049 return dld_link ();
18051 return 0;
18053 _ACEOF
18054 if ac_fn_c_try_link "$LINENO"; then :
18055 ac_cv_lib_dld_dld_link=yes
18056 else
18057 ac_cv_lib_dld_dld_link=no
18059 rm -f core conftest.err conftest.$ac_objext \
18060 conftest$ac_exeext conftest.$ac_ext
18061 LIBS=$ac_check_lib_save_LIBS
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18064 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18065 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18085 esac
18087 if test "x$lt_cv_dlopen" != xno; then
18088 enable_dlopen=yes
18089 else
18090 enable_dlopen=no
18093 case $lt_cv_dlopen in
18094 dlopen)
18095 save_CPPFLAGS="$CPPFLAGS"
18096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18098 save_LDFLAGS="$LDFLAGS"
18099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18101 save_LIBS="$LIBS"
18102 LIBS="$lt_cv_dlopen_libs $LIBS"
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18105 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18106 if test "${lt_cv_dlopen_self+set}" = set; then :
18107 $as_echo_n "(cached) " >&6
18108 else
18109 if test "$cross_compiling" = yes; then :
18110 lt_cv_dlopen_self=cross
18111 else
18112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18113 lt_status=$lt_dlunknown
18114 cat > conftest.$ac_ext <<_LT_EOF
18115 #line 18115 "configure"
18116 #include "confdefs.h"
18118 #if HAVE_DLFCN_H
18119 #include <dlfcn.h>
18120 #endif
18122 #include <stdio.h>
18124 #ifdef RTLD_GLOBAL
18125 # define LT_DLGLOBAL RTLD_GLOBAL
18126 #else
18127 # ifdef DL_GLOBAL
18128 # define LT_DLGLOBAL DL_GLOBAL
18129 # else
18130 # define LT_DLGLOBAL 0
18131 # endif
18132 #endif
18134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18135 find out it does not work in some platform. */
18136 #ifndef LT_DLLAZY_OR_NOW
18137 # ifdef RTLD_LAZY
18138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18139 # else
18140 # ifdef DL_LAZY
18141 # define LT_DLLAZY_OR_NOW DL_LAZY
18142 # else
18143 # ifdef RTLD_NOW
18144 # define LT_DLLAZY_OR_NOW RTLD_NOW
18145 # else
18146 # ifdef DL_NOW
18147 # define LT_DLLAZY_OR_NOW DL_NOW
18148 # else
18149 # define LT_DLLAZY_OR_NOW 0
18150 # endif
18151 # endif
18152 # endif
18153 # endif
18154 #endif
18156 /* When -fvisbility=hidden is used, assume the code has been annotated
18157 correspondingly for the symbols needed. */
18158 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18159 void fnord () __attribute__((visibility("default")));
18160 #endif
18162 void fnord () { int i=42; }
18163 int main ()
18165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18166 int status = $lt_dlunknown;
18168 if (self)
18170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18171 else
18173 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18174 else puts (dlerror ());
18176 /* dlclose (self); */
18178 else
18179 puts (dlerror ());
18181 return status;
18183 _LT_EOF
18184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18185 (eval $ac_link) 2>&5
18186 ac_status=$?
18187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18189 (./conftest; exit; ) >&5 2>/dev/null
18190 lt_status=$?
18191 case x$lt_status in
18192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18195 esac
18196 else :
18197 # compilation failed
18198 lt_cv_dlopen_self=no
18201 rm -fr conftest*
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18206 $as_echo "$lt_cv_dlopen_self" >&6; }
18208 if test "x$lt_cv_dlopen_self" = xyes; then
18209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18211 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18212 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18213 $as_echo_n "(cached) " >&6
18214 else
18215 if test "$cross_compiling" = yes; then :
18216 lt_cv_dlopen_self_static=cross
18217 else
18218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18219 lt_status=$lt_dlunknown
18220 cat > conftest.$ac_ext <<_LT_EOF
18221 #line 18221 "configure"
18222 #include "confdefs.h"
18224 #if HAVE_DLFCN_H
18225 #include <dlfcn.h>
18226 #endif
18228 #include <stdio.h>
18230 #ifdef RTLD_GLOBAL
18231 # define LT_DLGLOBAL RTLD_GLOBAL
18232 #else
18233 # ifdef DL_GLOBAL
18234 # define LT_DLGLOBAL DL_GLOBAL
18235 # else
18236 # define LT_DLGLOBAL 0
18237 # endif
18238 #endif
18240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18241 find out it does not work in some platform. */
18242 #ifndef LT_DLLAZY_OR_NOW
18243 # ifdef RTLD_LAZY
18244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18245 # else
18246 # ifdef DL_LAZY
18247 # define LT_DLLAZY_OR_NOW DL_LAZY
18248 # else
18249 # ifdef RTLD_NOW
18250 # define LT_DLLAZY_OR_NOW RTLD_NOW
18251 # else
18252 # ifdef DL_NOW
18253 # define LT_DLLAZY_OR_NOW DL_NOW
18254 # else
18255 # define LT_DLLAZY_OR_NOW 0
18256 # endif
18257 # endif
18258 # endif
18259 # endif
18260 #endif
18262 /* When -fvisbility=hidden is used, assume the code has been annotated
18263 correspondingly for the symbols needed. */
18264 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18265 void fnord () __attribute__((visibility("default")));
18266 #endif
18268 void fnord () { int i=42; }
18269 int main ()
18271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18272 int status = $lt_dlunknown;
18274 if (self)
18276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18277 else
18279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18280 else puts (dlerror ());
18282 /* dlclose (self); */
18284 else
18285 puts (dlerror ());
18287 return status;
18289 _LT_EOF
18290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18291 (eval $ac_link) 2>&5
18292 ac_status=$?
18293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18294 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18295 (./conftest; exit; ) >&5 2>/dev/null
18296 lt_status=$?
18297 case x$lt_status in
18298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18300 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18301 esac
18302 else :
18303 # compilation failed
18304 lt_cv_dlopen_self_static=no
18307 rm -fr conftest*
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18312 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18315 CPPFLAGS="$save_CPPFLAGS"
18316 LDFLAGS="$save_LDFLAGS"
18317 LIBS="$save_LIBS"
18319 esac
18321 case $lt_cv_dlopen_self in
18322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18323 *) enable_dlopen_self=unknown ;;
18324 esac
18326 case $lt_cv_dlopen_self_static in
18327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18328 *) enable_dlopen_self_static=unknown ;;
18329 esac
18348 striplib=
18349 old_striplib=
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18351 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18352 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18354 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18356 $as_echo "yes" >&6; }
18357 else
18358 # FIXME - insert some real tests, host_os isn't really good enough
18359 case $host_os in
18360 darwin*)
18361 if test -n "$STRIP" ; then
18362 striplib="$STRIP -x"
18363 old_striplib="$STRIP -S"
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18365 $as_echo "yes" >&6; }
18366 else
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18368 $as_echo "no" >&6; }
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18373 $as_echo "no" >&6; }
18375 esac
18389 # Report which library types will actually be built
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18391 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18393 $as_echo "$can_build_shared" >&6; }
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18396 $as_echo_n "checking whether to build shared libraries... " >&6; }
18397 test "$can_build_shared" = "no" && enable_shared=no
18399 # On AIX, shared libraries and static libraries use the same namespace, and
18400 # are all built from PIC.
18401 case $host_os in
18402 aix3*)
18403 test "$enable_shared" = yes && enable_static=no
18404 if test -n "$RANLIB"; then
18405 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18406 postinstall_cmds='$RANLIB $lib'
18410 aix[4-9]*)
18411 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18412 test "$enable_shared" = yes && enable_static=no
18415 esac
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18417 $as_echo "$enable_shared" >&6; }
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18420 $as_echo_n "checking whether to build static libraries... " >&6; }
18421 # Make sure either enable_shared or enable_static is yes.
18422 test "$enable_shared" = yes || enable_static=yes
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18424 $as_echo "$enable_static" >&6; }
18430 ac_ext=c
18431 ac_cpp='$CPP $CPPFLAGS'
18432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18436 CC="$lt_save_CC"
18438 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18439 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18440 (test "X$CXX" != "Xg++"))) ; then
18441 ac_ext=cpp
18442 ac_cpp='$CXXCPP $CPPFLAGS'
18443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18447 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18448 if test -z "$CXXCPP"; then
18449 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18450 $as_echo_n "(cached) " >&6
18451 else
18452 # Double quotes because CXXCPP needs to be expanded
18453 for CXXCPP in "$CXX -E" "/lib/cpp"
18455 ac_preproc_ok=false
18456 for ac_cxx_preproc_warn_flag in '' yes
18458 # Use a header file that comes with gcc, so configuring glibc
18459 # with a fresh cross-compiler works.
18460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18461 # <limits.h> exists even on freestanding compilers.
18462 # On the NeXT, cc -E runs the code through the compiler's parser,
18463 # not just through cpp. "Syntax error" is here to catch this case.
18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18465 /* end confdefs.h. */
18466 #ifdef __STDC__
18467 # include <limits.h>
18468 #else
18469 # include <assert.h>
18470 #endif
18471 Syntax error
18472 _ACEOF
18473 if ac_fn_cxx_try_cpp "$LINENO"; then :
18475 else
18476 # Broken: fails on valid input.
18477 continue
18479 rm -f conftest.err conftest.$ac_ext
18481 # OK, works on sane cases. Now check whether nonexistent headers
18482 # can be detected and how.
18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484 /* end confdefs.h. */
18485 #include <ac_nonexistent.h>
18486 _ACEOF
18487 if ac_fn_cxx_try_cpp "$LINENO"; then :
18488 # Broken: success on invalid input.
18489 continue
18490 else
18491 # Passes both tests.
18492 ac_preproc_ok=:
18493 break
18495 rm -f conftest.err conftest.$ac_ext
18497 done
18498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18499 rm -f conftest.err conftest.$ac_ext
18500 if $ac_preproc_ok; then :
18501 break
18504 done
18505 ac_cv_prog_CXXCPP=$CXXCPP
18508 CXXCPP=$ac_cv_prog_CXXCPP
18509 else
18510 ac_cv_prog_CXXCPP=$CXXCPP
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18513 $as_echo "$CXXCPP" >&6; }
18514 ac_preproc_ok=false
18515 for ac_cxx_preproc_warn_flag in '' yes
18517 # Use a header file that comes with gcc, so configuring glibc
18518 # with a fresh cross-compiler works.
18519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18520 # <limits.h> exists even on freestanding compilers.
18521 # On the NeXT, cc -E runs the code through the compiler's parser,
18522 # not just through cpp. "Syntax error" is here to catch this case.
18523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524 /* end confdefs.h. */
18525 #ifdef __STDC__
18526 # include <limits.h>
18527 #else
18528 # include <assert.h>
18529 #endif
18530 Syntax error
18531 _ACEOF
18532 if ac_fn_cxx_try_cpp "$LINENO"; then :
18534 else
18535 # Broken: fails on valid input.
18536 continue
18538 rm -f conftest.err conftest.$ac_ext
18540 # OK, works on sane cases. Now check whether nonexistent headers
18541 # can be detected and how.
18542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18543 /* end confdefs.h. */
18544 #include <ac_nonexistent.h>
18545 _ACEOF
18546 if ac_fn_cxx_try_cpp "$LINENO"; then :
18547 # Broken: success on invalid input.
18548 continue
18549 else
18550 # Passes both tests.
18551 ac_preproc_ok=:
18552 break
18554 rm -f conftest.err conftest.$ac_ext
18556 done
18557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18558 rm -f conftest.err conftest.$ac_ext
18559 if $ac_preproc_ok; then :
18561 else
18562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18564 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18565 See \`config.log' for more details." "$LINENO" 5; }
18568 ac_ext=c
18569 ac_cpp='$CPP $CPPFLAGS'
18570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18574 else
18575 _lt_caught_CXX_error=yes
18578 ac_ext=cpp
18579 ac_cpp='$CXXCPP $CPPFLAGS'
18580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18584 archive_cmds_need_lc_CXX=no
18585 allow_undefined_flag_CXX=
18586 always_export_symbols_CXX=no
18587 archive_expsym_cmds_CXX=
18588 compiler_needs_object_CXX=no
18589 export_dynamic_flag_spec_CXX=
18590 hardcode_direct_CXX=no
18591 hardcode_direct_absolute_CXX=no
18592 hardcode_libdir_flag_spec_CXX=
18593 hardcode_libdir_flag_spec_ld_CXX=
18594 hardcode_libdir_separator_CXX=
18595 hardcode_minus_L_CXX=no
18596 hardcode_shlibpath_var_CXX=unsupported
18597 hardcode_automatic_CXX=no
18598 inherit_rpath_CXX=no
18599 module_cmds_CXX=
18600 module_expsym_cmds_CXX=
18601 link_all_deplibs_CXX=unknown
18602 old_archive_cmds_CXX=$old_archive_cmds
18603 reload_flag_CXX=$reload_flag
18604 reload_cmds_CXX=$reload_cmds
18605 no_undefined_flag_CXX=
18606 whole_archive_flag_spec_CXX=
18607 enable_shared_with_static_runtimes_CXX=no
18609 # Source file extension for C++ test sources.
18610 ac_ext=cpp
18612 # Object file extension for compiled C++ test sources.
18613 objext=o
18614 objext_CXX=$objext
18616 # No sense in running all these tests if we already determined that
18617 # the CXX compiler isn't working. Some variables (like enable_shared)
18618 # are currently assumed to apply to all compilers on this platform,
18619 # and will be corrupted by setting them based on a non-working compiler.
18620 if test "$_lt_caught_CXX_error" != yes; then
18621 # Code to be used in simple compile tests
18622 lt_simple_compile_test_code="int some_variable = 0;"
18624 # Code to be used in simple link tests
18625 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18627 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18634 # If no C compiler was specified, use CC.
18635 LTCC=${LTCC-"$CC"}
18637 # If no C compiler flags were specified, use CFLAGS.
18638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18640 # Allow CC to be a program name with arguments.
18641 compiler=$CC
18644 # save warnings/boilerplate of simple test code
18645 ac_outfile=conftest.$ac_objext
18646 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18648 _lt_compiler_boilerplate=`cat conftest.err`
18649 $RM conftest*
18651 ac_outfile=conftest.$ac_objext
18652 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18654 _lt_linker_boilerplate=`cat conftest.err`
18655 $RM -r conftest*
18658 # Allow CC to be a program name with arguments.
18659 lt_save_CC=$CC
18660 lt_save_LD=$LD
18661 lt_save_GCC=$GCC
18662 GCC=$GXX
18663 lt_save_with_gnu_ld=$with_gnu_ld
18664 lt_save_path_LD=$lt_cv_path_LD
18665 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18666 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18667 else
18668 $as_unset lt_cv_prog_gnu_ld
18670 if test -n "${lt_cv_path_LDCXX+set}"; then
18671 lt_cv_path_LD=$lt_cv_path_LDCXX
18672 else
18673 $as_unset lt_cv_path_LD
18675 test -z "${LDCXX+set}" || LD=$LDCXX
18676 CC=${CXX-"c++"}
18677 compiler=$CC
18678 compiler_CXX=$CC
18679 for cc_temp in $compiler""; do
18680 case $cc_temp in
18681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18683 \-*) ;;
18684 *) break;;
18685 esac
18686 done
18687 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18690 if test -n "$compiler"; then
18691 # We don't want -fno-exception when compiling C++ code, so set the
18692 # no_builtin_flag separately
18693 if test "$GXX" = yes; then
18694 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18695 else
18696 lt_prog_compiler_no_builtin_flag_CXX=
18699 if test "$GXX" = yes; then
18700 # Set up default GNU C++ configuration
18704 # Check whether --with-gnu-ld was given.
18705 if test "${with_gnu_ld+set}" = set; then :
18706 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18707 else
18708 with_gnu_ld=no
18711 ac_prog=ld
18712 if test "$GCC" = yes; then
18713 # Check if gcc -print-prog-name=ld gives a path.
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18715 $as_echo_n "checking for ld used by $CC... " >&6; }
18716 case $host in
18717 *-*-mingw*)
18718 # gcc leaves a trailing carriage return which upsets mingw
18719 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18721 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18722 esac
18723 case $ac_prog in
18724 # Accept absolute paths.
18725 [\\/]* | ?:[\\/]*)
18726 re_direlt='/[^/][^/]*/\.\./'
18727 # Canonicalize the pathname of ld
18728 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18729 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18730 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18731 done
18732 test -z "$LD" && LD="$ac_prog"
18735 # If it fails, then pretend we aren't using GCC.
18736 ac_prog=ld
18739 # If it is relative, then search for the first ld in PATH.
18740 with_gnu_ld=unknown
18742 esac
18743 elif test "$with_gnu_ld" = yes; then
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18745 $as_echo_n "checking for GNU ld... " >&6; }
18746 else
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18748 $as_echo_n "checking for non-GNU ld... " >&6; }
18750 if test "${lt_cv_path_LD+set}" = set; then :
18751 $as_echo_n "(cached) " >&6
18752 else
18753 if test -z "$LD"; then
18754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18755 for ac_dir in $PATH; do
18756 IFS="$lt_save_ifs"
18757 test -z "$ac_dir" && ac_dir=.
18758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18759 lt_cv_path_LD="$ac_dir/$ac_prog"
18760 # Check to see if the program is GNU ld. I'd rather use --version,
18761 # but apparently some variants of GNU ld only accept -v.
18762 # Break only if it was the GNU/non-GNU ld that we prefer.
18763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18764 *GNU* | *'with BFD'*)
18765 test "$with_gnu_ld" != no && break
18768 test "$with_gnu_ld" != yes && break
18770 esac
18772 done
18773 IFS="$lt_save_ifs"
18774 else
18775 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18779 LD="$lt_cv_path_LD"
18780 if test -n "$LD"; then
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18782 $as_echo "$LD" >&6; }
18783 else
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785 $as_echo "no" >&6; }
18787 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18789 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18790 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18791 $as_echo_n "(cached) " >&6
18792 else
18793 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18794 case `$LD -v 2>&1 </dev/null` in
18795 *GNU* | *'with BFD'*)
18796 lt_cv_prog_gnu_ld=yes
18799 lt_cv_prog_gnu_ld=no
18801 esac
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18804 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18805 with_gnu_ld=$lt_cv_prog_gnu_ld
18813 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18814 # archiving commands below assume that GNU ld is being used.
18815 if test "$with_gnu_ld" = yes; then
18816 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18817 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'
18819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18820 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18822 # If archive_cmds runs LD, not CC, wlarc should be empty
18823 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18824 # investigate it a little bit more. (MM)
18825 wlarc='${wl}'
18827 # ancient GNU ld didn't support --whole-archive et. al.
18828 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18829 $GREP 'no-whole-archive' > /dev/null; then
18830 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18831 else
18832 whole_archive_flag_spec_CXX=
18834 else
18835 with_gnu_ld=no
18836 wlarc=
18838 # A generic and very simple default shared library creation
18839 # command for GNU C++ for the case where it uses the native
18840 # linker, instead of GNU ld. If possible, this setting should
18841 # overridden to take advantage of the native linker features on
18842 # the platform it is being used on.
18843 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18846 # Commands to make compiler produce verbose output that lists
18847 # what "hidden" libraries, object files and flags are used when
18848 # linking a shared library.
18849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18851 else
18852 GXX=no
18853 with_gnu_ld=no
18854 wlarc=
18857 # PORTME: fill in a description of your system's C++ link characteristics
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18859 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18860 ld_shlibs_CXX=yes
18861 case $host_os in
18862 aix3*)
18863 # FIXME: insert proper C++ library support
18864 ld_shlibs_CXX=no
18866 aix[4-9]*)
18867 if test "$host_cpu" = ia64; then
18868 # On IA64, the linker does run time linking by default, so we don't
18869 # have to do anything special.
18870 aix_use_runtimelinking=no
18871 exp_sym_flag='-Bexport'
18872 no_entry_flag=""
18873 else
18874 aix_use_runtimelinking=no
18876 # Test if we are trying to use run time linking or normal
18877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18878 # need to do runtime linking.
18879 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18880 for ld_flag in $LDFLAGS; do
18881 case $ld_flag in
18882 *-brtl*)
18883 aix_use_runtimelinking=yes
18884 break
18886 esac
18887 done
18889 esac
18891 exp_sym_flag='-bexport'
18892 no_entry_flag='-bnoentry'
18895 # When large executables or shared objects are built, AIX ld can
18896 # have problems creating the table of contents. If linking a library
18897 # or program results in "error TOC overflow" add -mminimal-toc to
18898 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18899 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18901 archive_cmds_CXX=''
18902 hardcode_direct_CXX=yes
18903 hardcode_direct_absolute_CXX=yes
18904 hardcode_libdir_separator_CXX=':'
18905 link_all_deplibs_CXX=yes
18906 file_list_spec_CXX='${wl}-f,'
18908 if test "$GXX" = yes; then
18909 case $host_os in aix4.[012]|aix4.[012].*)
18910 # We only want to do this on AIX 4.2 and lower, the check
18911 # below for broken collect2 doesn't work under 4.3+
18912 collect2name=`${CC} -print-prog-name=collect2`
18913 if test -f "$collect2name" &&
18914 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18915 then
18916 # We have reworked collect2
18918 else
18919 # We have old collect2
18920 hardcode_direct_CXX=unsupported
18921 # It fails to find uninstalled libraries when the uninstalled
18922 # path is not listed in the libpath. Setting hardcode_minus_L
18923 # to unsupported forces relinking
18924 hardcode_minus_L_CXX=yes
18925 hardcode_libdir_flag_spec_CXX='-L$libdir'
18926 hardcode_libdir_separator_CXX=
18928 esac
18929 shared_flag='-shared'
18930 if test "$aix_use_runtimelinking" = yes; then
18931 shared_flag="$shared_flag "'${wl}-G'
18933 else
18934 # not using gcc
18935 if test "$host_cpu" = ia64; then
18936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18937 # chokes on -Wl,-G. The following line is correct:
18938 shared_flag='-G'
18939 else
18940 if test "$aix_use_runtimelinking" = yes; then
18941 shared_flag='${wl}-G'
18942 else
18943 shared_flag='${wl}-bM:SRE'
18948 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18949 # It seems that -bexpall does not export symbols beginning with
18950 # underscore (_), so it is better to generate a list of symbols to
18951 # export.
18952 always_export_symbols_CXX=yes
18953 if test "$aix_use_runtimelinking" = yes; then
18954 # Warning - without using the other runtime loading flags (-brtl),
18955 # -berok will link without error, but may produce a broken library.
18956 allow_undefined_flag_CXX='-berok'
18957 # Determine the default libpath from the value encoded in an empty
18958 # executable.
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18963 main ()
18967 return 0;
18969 _ACEOF
18970 if ac_fn_cxx_try_link "$LINENO"; then :
18972 lt_aix_libpath_sed='
18973 /Import File Strings/,/^$/ {
18974 /^0/ {
18975 s/^0 *\(.*\)$/\1/
18979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18980 # Check for a 64-bit object if we didn't find anything.
18981 if test -z "$aix_libpath"; then
18982 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18985 rm -f core conftest.err conftest.$ac_objext \
18986 conftest$ac_exeext conftest.$ac_ext
18987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18989 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18991 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"
18992 else
18993 if test "$host_cpu" = ia64; then
18994 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18995 allow_undefined_flag_CXX="-z nodefs"
18996 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"
18997 else
18998 # Determine the default libpath from the value encoded in an
18999 # empty executable.
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19004 main ()
19008 return 0;
19010 _ACEOF
19011 if ac_fn_cxx_try_link "$LINENO"; then :
19013 lt_aix_libpath_sed='
19014 /Import File Strings/,/^$/ {
19015 /^0/ {
19016 s/^0 *\(.*\)$/\1/
19020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19021 # Check for a 64-bit object if we didn't find anything.
19022 if test -z "$aix_libpath"; then
19023 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19026 rm -f core conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
19028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19030 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19031 # Warning - without using the other run time loading flags,
19032 # -berok will link without error, but may produce a broken library.
19033 no_undefined_flag_CXX=' ${wl}-bernotok'
19034 allow_undefined_flag_CXX=' ${wl}-berok'
19035 if test "$with_gnu_ld" = yes; then
19036 # We only use this code for GNU lds that support --whole-archive.
19037 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19038 else
19039 # Exported symbols can be pulled into shared objects from archives
19040 whole_archive_flag_spec_CXX='$convenience'
19042 archive_cmds_need_lc_CXX=yes
19043 # This is similar to how AIX traditionally builds its shared
19044 # libraries.
19045 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'
19050 beos*)
19051 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19052 allow_undefined_flag_CXX=unsupported
19053 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19054 # support --undefined. This deserves some investigation. FIXME
19055 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19056 else
19057 ld_shlibs_CXX=no
19061 chorus*)
19062 case $cc_basename in
19064 # FIXME: insert proper C++ library support
19065 ld_shlibs_CXX=no
19067 esac
19070 cygwin* | mingw* | pw32* | cegcc*)
19071 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19072 # as there is no search path for DLLs.
19073 hardcode_libdir_flag_spec_CXX='-L$libdir'
19074 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19075 allow_undefined_flag_CXX=unsupported
19076 always_export_symbols_CXX=no
19077 enable_shared_with_static_runtimes_CXX=yes
19079 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19080 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'
19081 # If the export-symbols file already is a .def file (1st line
19082 # is EXPORTS), use it as is; otherwise, prepend...
19083 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19084 cp $export_symbols $output_objdir/$soname.def;
19085 else
19086 echo EXPORTS > $output_objdir/$soname.def;
19087 cat $export_symbols >> $output_objdir/$soname.def;
19089 $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'
19090 else
19091 ld_shlibs_CXX=no
19094 darwin* | rhapsody*)
19097 archive_cmds_need_lc_CXX=no
19098 hardcode_direct_CXX=no
19099 hardcode_automatic_CXX=yes
19100 hardcode_shlibpath_var_CXX=unsupported
19101 if test "$lt_cv_ld_force_load" = "yes"; then
19102 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\"`'
19103 else
19104 whole_archive_flag_spec_CXX=''
19106 link_all_deplibs_CXX=yes
19107 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19108 case $cc_basename in
19109 ifort*) _lt_dar_can_shared=yes ;;
19110 *) _lt_dar_can_shared=$GCC ;;
19111 esac
19112 if test "$_lt_dar_can_shared" = "yes"; then
19113 output_verbose_link_cmd=func_echo_all
19114 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}"
19115 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19116 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}"
19117 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}"
19118 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19119 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}"
19120 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}"
19123 else
19124 ld_shlibs_CXX=no
19129 dgux*)
19130 case $cc_basename in
19131 ec++*)
19132 # FIXME: insert proper C++ library support
19133 ld_shlibs_CXX=no
19135 ghcx*)
19136 # Green Hills C++ Compiler
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19141 # FIXME: insert proper C++ library support
19142 ld_shlibs_CXX=no
19144 esac
19147 freebsd2.*)
19148 # C++ shared libraries reported to be fairly broken before
19149 # switch to ELF
19150 ld_shlibs_CXX=no
19153 freebsd-elf*)
19154 archive_cmds_need_lc_CXX=no
19157 freebsd* | dragonfly*)
19158 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19159 # conventions
19160 ld_shlibs_CXX=yes
19163 gnu*)
19166 haiku*)
19167 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19168 link_all_deplibs_CXX=yes
19171 hpux9*)
19172 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19173 hardcode_libdir_separator_CXX=:
19174 export_dynamic_flag_spec_CXX='${wl}-E'
19175 hardcode_direct_CXX=yes
19176 hardcode_minus_L_CXX=yes # Not in the search PATH,
19177 # but as the default
19178 # location of the library.
19180 case $cc_basename in
19181 CC*)
19182 # FIXME: insert proper C++ library support
19183 ld_shlibs_CXX=no
19185 aCC*)
19186 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'
19187 # Commands to make compiler produce verbose output that lists
19188 # what "hidden" libraries, object files and flags are used when
19189 # linking a shared library.
19191 # There doesn't appear to be a way to prevent this compiler from
19192 # explicitly linking system object files so we need to strip them
19193 # from the output so that they don't get included in the library
19194 # dependencies.
19195 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"'
19198 if test "$GXX" = yes; then
19199 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'
19200 else
19201 # FIXME: insert proper C++ library support
19202 ld_shlibs_CXX=no
19205 esac
19208 hpux10*|hpux11*)
19209 if test $with_gnu_ld = no; then
19210 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19211 hardcode_libdir_separator_CXX=:
19213 case $host_cpu in
19214 hppa*64*|ia64*)
19217 export_dynamic_flag_spec_CXX='${wl}-E'
19219 esac
19221 case $host_cpu in
19222 hppa*64*|ia64*)
19223 hardcode_direct_CXX=no
19224 hardcode_shlibpath_var_CXX=no
19227 hardcode_direct_CXX=yes
19228 hardcode_direct_absolute_CXX=yes
19229 hardcode_minus_L_CXX=yes # Not in the search PATH,
19230 # but as the default
19231 # location of the library.
19233 esac
19235 case $cc_basename in
19236 CC*)
19237 # FIXME: insert proper C++ library support
19238 ld_shlibs_CXX=no
19240 aCC*)
19241 case $host_cpu in
19242 hppa*64*)
19243 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19245 ia64*)
19246 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19249 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19251 esac
19252 # Commands to make compiler produce verbose output that lists
19253 # what "hidden" libraries, object files and flags are used when
19254 # linking a shared library.
19256 # There doesn't appear to be a way to prevent this compiler from
19257 # explicitly linking system object files so we need to strip them
19258 # from the output so that they don't get included in the library
19259 # dependencies.
19260 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"'
19263 if test "$GXX" = yes; then
19264 if test $with_gnu_ld = no; then
19265 case $host_cpu in
19266 hppa*64*)
19267 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19269 ia64*)
19270 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19273 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'
19275 esac
19277 else
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19282 esac
19285 interix[3-9]*)
19286 hardcode_direct_CXX=no
19287 hardcode_shlibpath_var_CXX=no
19288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19289 export_dynamic_flag_spec_CXX='${wl}-E'
19290 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19291 # Instead, shared libraries are loaded at an image base (0x10000000 by
19292 # default) and relocated if they conflict, which is a slow very memory
19293 # consuming and fragmenting process. To avoid this, we pick a random,
19294 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19295 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19296 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'
19297 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'
19299 irix5* | irix6*)
19300 case $cc_basename in
19301 CC*)
19302 # SGI C++
19303 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'
19305 # Archives containing C++ object files must be created using
19306 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19307 # necessary to make sure instantiated templates are included
19308 # in the archive.
19309 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19312 if test "$GXX" = yes; then
19313 if test "$with_gnu_ld" = no; then
19314 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'
19315 else
19316 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'
19319 link_all_deplibs_CXX=yes
19321 esac
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19323 hardcode_libdir_separator_CXX=:
19324 inherit_rpath_CXX=yes
19327 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19328 case $cc_basename in
19329 KCC*)
19330 # Kuck and Associates, Inc. (KAI) C++ Compiler
19332 # KCC will only create a shared library if the output file
19333 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19334 # to its proper name (with version) after linking.
19335 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'
19336 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'
19337 # Commands to make compiler produce verbose output that lists
19338 # what "hidden" libraries, object files and flags are used when
19339 # linking a shared library.
19341 # There doesn't appear to be a way to prevent this compiler from
19342 # explicitly linking system object files so we need to strip them
19343 # from the output so that they don't get included in the library
19344 # dependencies.
19345 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"'
19347 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19348 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19350 # Archives containing C++ object files must be created using
19351 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19352 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19354 icpc* | ecpc* )
19355 # Intel C++
19356 with_gnu_ld=yes
19357 # version 8.0 and above of icpc choke on multiply defined symbols
19358 # if we add $predep_objects and $postdep_objects, however 7.1 and
19359 # earlier do not add the objects themselves.
19360 case `$CC -V 2>&1` in
19361 *"Version 7."*)
19362 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19363 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'
19365 *) # Version 8.0 or newer
19366 tmp_idyn=
19367 case $host_cpu in
19368 ia64*) tmp_idyn=' -i_dynamic';;
19369 esac
19370 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19371 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'
19373 esac
19374 archive_cmds_need_lc_CXX=no
19375 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19377 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19379 pgCC* | pgcpp*)
19380 # Portland Group C++ compiler
19381 case `$CC -V` in
19382 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19383 prelink_cmds_CXX='tpldir=Template.dir~
19384 rm -rf $tpldir~
19385 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19386 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19387 old_archive_cmds_CXX='tpldir=Template.dir~
19388 rm -rf $tpldir~
19389 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19390 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19391 $RANLIB $oldlib'
19392 archive_cmds_CXX='tpldir=Template.dir~
19393 rm -rf $tpldir~
19394 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19395 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19396 archive_expsym_cmds_CXX='tpldir=Template.dir~
19397 rm -rf $tpldir~
19398 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19399 $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'
19401 *) # Version 6 and above use weak symbols
19402 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19403 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'
19405 esac
19407 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19409 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'
19411 cxx*)
19412 # Compaq C++
19413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19414 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'
19416 runpath_var=LD_RUN_PATH
19417 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19418 hardcode_libdir_separator_CXX=:
19420 # Commands to make compiler produce verbose output that lists
19421 # what "hidden" libraries, object files and flags are used when
19422 # linking a shared library.
19424 # There doesn't appear to be a way to prevent this compiler from
19425 # explicitly linking system object files so we need to strip them
19426 # from the output so that they don't get included in the library
19427 # dependencies.
19428 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'
19430 xl* | mpixl* | bgxl*)
19431 # IBM XL 8.0 on PPC, with GNU ld
19432 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19433 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19434 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19435 if test "x$supports_anon_versioning" = xyes; then
19436 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19438 echo "local: *; };" >> $output_objdir/$libname.ver~
19439 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19443 case `$CC -V 2>&1 | sed 5q` in
19444 *Sun\ C*)
19445 # Sun C++ 5.9
19446 no_undefined_flag_CXX=' -zdefs'
19447 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19448 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'
19449 hardcode_libdir_flag_spec_CXX='-R$libdir'
19450 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'
19451 compiler_needs_object_CXX=yes
19453 # Not sure whether something based on
19454 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19455 # would be better.
19456 output_verbose_link_cmd='func_echo_all'
19458 # Archives containing C++ object files must be created using
19459 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19460 # necessary to make sure instantiated templates are included
19461 # in the archive.
19462 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19464 esac
19466 esac
19469 lynxos*)
19470 # FIXME: insert proper C++ library support
19471 ld_shlibs_CXX=no
19474 m88k*)
19475 # FIXME: insert proper C++ library support
19476 ld_shlibs_CXX=no
19479 mvs*)
19480 case $cc_basename in
19481 cxx*)
19482 # FIXME: insert proper C++ library support
19483 ld_shlibs_CXX=no
19486 # FIXME: insert proper C++ library support
19487 ld_shlibs_CXX=no
19489 esac
19492 netbsd*)
19493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19494 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19495 wlarc=
19496 hardcode_libdir_flag_spec_CXX='-R$libdir'
19497 hardcode_direct_CXX=yes
19498 hardcode_shlibpath_var_CXX=no
19500 # Workaround some broken pre-1.5 toolchains
19501 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19504 *nto* | *qnx*)
19505 ld_shlibs_CXX=yes
19508 openbsd2*)
19509 # C++ shared libraries are fairly broken
19510 ld_shlibs_CXX=no
19513 openbsd*)
19514 if test -f /usr/libexec/ld.so; then
19515 hardcode_direct_CXX=yes
19516 hardcode_shlibpath_var_CXX=no
19517 hardcode_direct_absolute_CXX=yes
19518 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19521 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19522 export_dynamic_flag_spec_CXX='${wl}-E'
19523 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19525 output_verbose_link_cmd=func_echo_all
19526 else
19527 ld_shlibs_CXX=no
19531 osf3* | osf4* | osf5*)
19532 case $cc_basename in
19533 KCC*)
19534 # Kuck and Associates, Inc. (KAI) C++ Compiler
19536 # KCC will only create a shared library if the output file
19537 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19538 # to its proper name (with version) after linking.
19539 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'
19541 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19542 hardcode_libdir_separator_CXX=:
19544 # Archives containing C++ object files must be created using
19545 # the KAI C++ compiler.
19546 case $host in
19547 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19548 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19549 esac
19551 RCC*)
19552 # Rational C++ 2.4.1
19553 # FIXME: insert proper C++ library support
19554 ld_shlibs_CXX=no
19556 cxx*)
19557 case $host in
19558 osf3*)
19559 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19560 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'
19561 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19564 allow_undefined_flag_CXX=' -expect_unresolved \*'
19565 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'
19566 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19567 echo "-hidden">> $lib.exp~
19568 $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~
19569 $RM $lib.exp'
19570 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19572 esac
19574 hardcode_libdir_separator_CXX=:
19576 # Commands to make compiler produce verbose output that lists
19577 # what "hidden" libraries, object files and flags are used when
19578 # linking a shared library.
19580 # There doesn't appear to be a way to prevent this compiler from
19581 # explicitly linking system object files so we need to strip them
19582 # from the output so that they don't get included in the library
19583 # dependencies.
19584 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"'
19587 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19588 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19589 case $host in
19590 osf3*)
19591 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'
19594 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'
19596 esac
19598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19599 hardcode_libdir_separator_CXX=:
19601 # Commands to make compiler produce verbose output that lists
19602 # what "hidden" libraries, object files and flags are used when
19603 # linking a shared library.
19604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19606 else
19607 # FIXME: insert proper C++ library support
19608 ld_shlibs_CXX=no
19611 esac
19614 psos*)
19615 # FIXME: insert proper C++ library support
19616 ld_shlibs_CXX=no
19619 sunos4*)
19620 case $cc_basename in
19621 CC*)
19622 # Sun C++ 4.x
19623 # FIXME: insert proper C++ library support
19624 ld_shlibs_CXX=no
19626 lcc*)
19627 # Lucid
19628 # FIXME: insert proper C++ library support
19629 ld_shlibs_CXX=no
19632 # FIXME: insert proper C++ library support
19633 ld_shlibs_CXX=no
19635 esac
19638 solaris*)
19639 case $cc_basename in
19640 CC*)
19641 # Sun C++ 4.2, 5.x and Centerline C++
19642 archive_cmds_need_lc_CXX=yes
19643 no_undefined_flag_CXX=' -zdefs'
19644 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19645 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19646 $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'
19648 hardcode_libdir_flag_spec_CXX='-R$libdir'
19649 hardcode_shlibpath_var_CXX=no
19650 case $host_os in
19651 solaris2.[0-5] | solaris2.[0-5].*) ;;
19653 # The compiler driver will combine and reorder linker options,
19654 # but understands `-z linker_flag'.
19655 # Supported since Solaris 2.6 (maybe 2.5.1?)
19656 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19658 esac
19659 link_all_deplibs_CXX=yes
19661 output_verbose_link_cmd='func_echo_all'
19663 # Archives containing C++ object files must be created using
19664 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19665 # necessary to make sure instantiated templates are included
19666 # in the archive.
19667 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19669 gcx*)
19670 # Green Hills C++ Compiler
19671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19673 # The C++ compiler must be used to create the archive.
19674 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19677 # GNU C++ compiler with Solaris linker
19678 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19679 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19680 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19681 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19682 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19683 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19685 # Commands to make compiler produce verbose output that lists
19686 # what "hidden" libraries, object files and flags are used when
19687 # linking a shared library.
19688 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19689 else
19690 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19691 # platform.
19692 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19693 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19694 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19696 # Commands to make compiler produce verbose output that lists
19697 # what "hidden" libraries, object files and flags are used when
19698 # linking a shared library.
19699 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19702 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19703 case $host_os in
19704 solaris2.[0-5] | solaris2.[0-5].*) ;;
19706 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19708 esac
19711 esac
19714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19715 no_undefined_flag_CXX='${wl}-z,text'
19716 archive_cmds_need_lc_CXX=no
19717 hardcode_shlibpath_var_CXX=no
19718 runpath_var='LD_RUN_PATH'
19720 case $cc_basename in
19721 CC*)
19722 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19723 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19726 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19727 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19729 esac
19732 sysv5* | sco3.2v5* | sco5v6*)
19733 # Note: We can NOT use -z defs as we might desire, because we do not
19734 # link with -lc, and that would cause any symbols used from libc to
19735 # always be unresolved, which means just about no library would
19736 # ever link correctly. If we're not using GNU ld we use -z text
19737 # though, which does catch some bad symbols but isn't as heavy-handed
19738 # as -z defs.
19739 no_undefined_flag_CXX='${wl}-z,text'
19740 allow_undefined_flag_CXX='${wl}-z,nodefs'
19741 archive_cmds_need_lc_CXX=no
19742 hardcode_shlibpath_var_CXX=no
19743 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19744 hardcode_libdir_separator_CXX=':'
19745 link_all_deplibs_CXX=yes
19746 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19747 runpath_var='LD_RUN_PATH'
19749 case $cc_basename in
19750 CC*)
19751 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19752 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19753 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19754 '"$old_archive_cmds_CXX"
19755 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19756 '"$reload_cmds_CXX"
19759 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19760 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19762 esac
19765 tandem*)
19766 case $cc_basename in
19767 NCC*)
19768 # NonStop-UX NCC 3.20
19769 # FIXME: insert proper C++ library support
19770 ld_shlibs_CXX=no
19773 # FIXME: insert proper C++ library support
19774 ld_shlibs_CXX=no
19776 esac
19779 vxworks*)
19780 # FIXME: insert proper C++ library support
19781 ld_shlibs_CXX=no
19785 # FIXME: insert proper C++ library support
19786 ld_shlibs_CXX=no
19788 esac
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19791 $as_echo "$ld_shlibs_CXX" >&6; }
19792 test "$ld_shlibs_CXX" = no && can_build_shared=no
19794 GCC_CXX="$GXX"
19795 LD_CXX="$LD"
19797 ## CAVEAT EMPTOR:
19798 ## There is no encapsulation within the following macros, do not change
19799 ## the running order or otherwise move them around unless you know exactly
19800 ## what you are doing...
19801 # Dependencies to place before and after the object being linked:
19802 predep_objects_CXX=
19803 postdep_objects_CXX=
19804 predeps_CXX=
19805 postdeps_CXX=
19806 compiler_lib_search_path_CXX=
19808 cat > conftest.$ac_ext <<_LT_EOF
19809 class Foo
19811 public:
19812 Foo (void) { a = 0; }
19813 private:
19814 int a;
19816 _LT_EOF
19818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19819 (eval $ac_compile) 2>&5
19820 ac_status=$?
19821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19822 test $ac_status = 0; }; then
19823 # Parse the compiler output and extract the necessary
19824 # objects, libraries and library flags.
19826 # Sentinel used to keep track of whether or not we are before
19827 # the conftest object file.
19828 pre_test_object_deps_done=no
19830 for p in `eval "$output_verbose_link_cmd"`; do
19831 case $p in
19833 -L* | -R* | -l*)
19834 # Some compilers place space between "-{L,R}" and the path.
19835 # Remove the space.
19836 if test $p = "-L" ||
19837 test $p = "-R"; then
19838 prev=$p
19839 continue
19840 else
19841 prev=
19844 if test "$pre_test_object_deps_done" = no; then
19845 case $p in
19846 -L* | -R*)
19847 # Internal compiler library paths should come after those
19848 # provided the user. The postdeps already come after the
19849 # user supplied libs so there is no need to process them.
19850 if test -z "$compiler_lib_search_path_CXX"; then
19851 compiler_lib_search_path_CXX="${prev}${p}"
19852 else
19853 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19856 # The "-l" case would never come before the object being
19857 # linked, so don't bother handling this case.
19858 esac
19859 else
19860 if test -z "$postdeps_CXX"; then
19861 postdeps_CXX="${prev}${p}"
19862 else
19863 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19868 *.$objext)
19869 # This assumes that the test object file only shows up
19870 # once in the compiler output.
19871 if test "$p" = "conftest.$objext"; then
19872 pre_test_object_deps_done=yes
19873 continue
19876 if test "$pre_test_object_deps_done" = no; then
19877 if test -z "$predep_objects_CXX"; then
19878 predep_objects_CXX="$p"
19879 else
19880 predep_objects_CXX="$predep_objects_CXX $p"
19882 else
19883 if test -z "$postdep_objects_CXX"; then
19884 postdep_objects_CXX="$p"
19885 else
19886 postdep_objects_CXX="$postdep_objects_CXX $p"
19891 *) ;; # Ignore the rest.
19893 esac
19894 done
19896 # Clean up.
19897 rm -f a.out a.exe
19898 else
19899 echo "libtool.m4: error: problem compiling CXX test program"
19902 $RM -f confest.$objext
19904 # PORTME: override above test on systems where it is broken
19905 case $host_os in
19906 interix[3-9]*)
19907 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19908 # hack all around it, let's just trust "g++" to DTRT.
19909 predep_objects_CXX=
19910 postdep_objects_CXX=
19911 postdeps_CXX=
19914 linux*)
19915 case `$CC -V 2>&1 | sed 5q` in
19916 *Sun\ C*)
19917 # Sun C++ 5.9
19919 # The more standards-conforming stlport4 library is
19920 # incompatible with the Cstd library. Avoid specifying
19921 # it if it's in CXXFLAGS. Ignore libCrun as
19922 # -library=stlport4 depends on it.
19923 case " $CXX $CXXFLAGS " in
19924 *" -library=stlport4 "*)
19925 solaris_use_stlport4=yes
19927 esac
19929 if test "$solaris_use_stlport4" != yes; then
19930 postdeps_CXX='-library=Cstd -library=Crun'
19933 esac
19936 solaris*)
19937 case $cc_basename in
19938 CC*)
19939 # The more standards-conforming stlport4 library is
19940 # incompatible with the Cstd library. Avoid specifying
19941 # it if it's in CXXFLAGS. Ignore libCrun as
19942 # -library=stlport4 depends on it.
19943 case " $CXX $CXXFLAGS " in
19944 *" -library=stlport4 "*)
19945 solaris_use_stlport4=yes
19947 esac
19949 # Adding this requires a known-good setup of shared libraries for
19950 # Sun compiler versions before 5.6, else PIC objects from an old
19951 # archive will be linked into the output, leading to subtle bugs.
19952 if test "$solaris_use_stlport4" != yes; then
19953 postdeps_CXX='-library=Cstd -library=Crun'
19956 esac
19958 esac
19961 case " $postdeps_CXX " in
19962 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19963 esac
19964 compiler_lib_search_dirs_CXX=
19965 if test -n "${compiler_lib_search_path_CXX}"; then
19966 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19999 lt_prog_compiler_wl_CXX=
20000 lt_prog_compiler_pic_CXX=
20001 lt_prog_compiler_static_CXX=
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20004 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20006 # C++ specific cases for pic, static, wl, etc.
20007 if test "$GXX" = yes; then
20008 lt_prog_compiler_wl_CXX='-Wl,'
20009 lt_prog_compiler_static_CXX='-static'
20011 case $host_os in
20012 aix*)
20013 # All AIX code is PIC.
20014 if test "$host_cpu" = ia64; then
20015 # AIX 5 now supports IA64 processor
20016 lt_prog_compiler_static_CXX='-Bstatic'
20018 lt_prog_compiler_pic_CXX='-fPIC'
20021 amigaos*)
20022 case $host_cpu in
20023 powerpc)
20024 # see comment about AmigaOS4 .so support
20025 lt_prog_compiler_pic_CXX='-fPIC'
20027 m68k)
20028 # FIXME: we need at least 68020 code to build shared libraries, but
20029 # adding the `-m68020' flag to GCC prevents building anything better,
20030 # like `-m68040'.
20031 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20033 esac
20036 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20037 # PIC is the default for these OSes.
20039 mingw* | cygwin* | os2* | pw32* | cegcc*)
20040 # This hack is so that the source file can tell whether it is being
20041 # built for inclusion in a dll (and should export symbols for example).
20042 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20043 # (--disable-auto-import) libraries
20044 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20046 darwin* | rhapsody*)
20047 # PIC is the default on this platform
20048 # Common symbols not allowed in MH_DYLIB files
20049 lt_prog_compiler_pic_CXX='-fno-common'
20051 *djgpp*)
20052 # DJGPP does not support shared libraries at all
20053 lt_prog_compiler_pic_CXX=
20055 haiku*)
20056 # PIC is the default for Haiku.
20057 # The "-static" flag exists, but is broken.
20058 lt_prog_compiler_static_CXX=
20060 interix[3-9]*)
20061 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20062 # Instead, we relocate shared libraries at runtime.
20064 sysv4*MP*)
20065 if test -d /usr/nec; then
20066 lt_prog_compiler_pic_CXX=-Kconform_pic
20069 hpux*)
20070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20072 # sets the default TLS model and affects inlining.
20073 case $host_cpu in
20074 hppa*64*)
20077 lt_prog_compiler_pic_CXX='-fPIC'
20079 esac
20081 *qnx* | *nto*)
20082 # QNX uses GNU C++, but need to define -shared option too, otherwise
20083 # it will coredump.
20084 lt_prog_compiler_pic_CXX='-fPIC -shared'
20087 lt_prog_compiler_pic_CXX='-fPIC'
20089 esac
20090 else
20091 case $host_os in
20092 aix[4-9]*)
20093 # All AIX code is PIC.
20094 if test "$host_cpu" = ia64; then
20095 # AIX 5 now supports IA64 processor
20096 lt_prog_compiler_static_CXX='-Bstatic'
20097 else
20098 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20101 chorus*)
20102 case $cc_basename in
20103 cxch68*)
20104 # Green Hills C++ Compiler
20105 # _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"
20107 esac
20109 dgux*)
20110 case $cc_basename in
20111 ec++*)
20112 lt_prog_compiler_pic_CXX='-KPIC'
20114 ghcx*)
20115 # Green Hills C++ Compiler
20116 lt_prog_compiler_pic_CXX='-pic'
20120 esac
20122 freebsd* | dragonfly*)
20123 # FreeBSD uses GNU C++
20125 hpux9* | hpux10* | hpux11*)
20126 case $cc_basename in
20127 CC*)
20128 lt_prog_compiler_wl_CXX='-Wl,'
20129 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20130 if test "$host_cpu" != ia64; then
20131 lt_prog_compiler_pic_CXX='+Z'
20134 aCC*)
20135 lt_prog_compiler_wl_CXX='-Wl,'
20136 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20137 case $host_cpu in
20138 hppa*64*|ia64*)
20139 # +Z the default
20142 lt_prog_compiler_pic_CXX='+Z'
20144 esac
20148 esac
20150 interix*)
20151 # This is c89, which is MS Visual C++ (no shared libs)
20152 # Anyone wants to do a port?
20154 irix5* | irix6* | nonstopux*)
20155 case $cc_basename in
20156 CC*)
20157 lt_prog_compiler_wl_CXX='-Wl,'
20158 lt_prog_compiler_static_CXX='-non_shared'
20159 # CC pic flag -KPIC is the default.
20163 esac
20165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20166 case $cc_basename in
20167 KCC*)
20168 # KAI C++ Compiler
20169 lt_prog_compiler_wl_CXX='--backend -Wl,'
20170 lt_prog_compiler_pic_CXX='-fPIC'
20172 ecpc* )
20173 # old Intel C++ for x86_64 which still supported -KPIC.
20174 lt_prog_compiler_wl_CXX='-Wl,'
20175 lt_prog_compiler_pic_CXX='-KPIC'
20176 lt_prog_compiler_static_CXX='-static'
20178 icpc* )
20179 # Intel C++, used to be incompatible with GCC.
20180 # ICC 10 doesn't accept -KPIC any more.
20181 lt_prog_compiler_wl_CXX='-Wl,'
20182 lt_prog_compiler_pic_CXX='-fPIC'
20183 lt_prog_compiler_static_CXX='-static'
20185 pgCC* | pgcpp*)
20186 # Portland Group C++ compiler
20187 lt_prog_compiler_wl_CXX='-Wl,'
20188 lt_prog_compiler_pic_CXX='-fpic'
20189 lt_prog_compiler_static_CXX='-Bstatic'
20191 cxx*)
20192 # Compaq C++
20193 # Make sure the PIC flag is empty. It appears that all Alpha
20194 # Linux and Compaq Tru64 Unix objects are PIC.
20195 lt_prog_compiler_pic_CXX=
20196 lt_prog_compiler_static_CXX='-non_shared'
20198 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20199 # IBM XL 8.0, 9.0 on PPC and BlueGene
20200 lt_prog_compiler_wl_CXX='-Wl,'
20201 lt_prog_compiler_pic_CXX='-qpic'
20202 lt_prog_compiler_static_CXX='-qstaticlink'
20205 case `$CC -V 2>&1 | sed 5q` in
20206 *Sun\ C*)
20207 # Sun C++ 5.9
20208 lt_prog_compiler_pic_CXX='-KPIC'
20209 lt_prog_compiler_static_CXX='-Bstatic'
20210 lt_prog_compiler_wl_CXX='-Qoption ld '
20212 esac
20214 esac
20216 lynxos*)
20218 m88k*)
20220 mvs*)
20221 case $cc_basename in
20222 cxx*)
20223 lt_prog_compiler_pic_CXX='-W c,exportall'
20227 esac
20229 netbsd*)
20231 *qnx* | *nto*)
20232 # QNX uses GNU C++, but need to define -shared option too, otherwise
20233 # it will coredump.
20234 lt_prog_compiler_pic_CXX='-fPIC -shared'
20236 osf3* | osf4* | osf5*)
20237 case $cc_basename in
20238 KCC*)
20239 lt_prog_compiler_wl_CXX='--backend -Wl,'
20241 RCC*)
20242 # Rational C++ 2.4.1
20243 lt_prog_compiler_pic_CXX='-pic'
20245 cxx*)
20246 # Digital/Compaq C++
20247 lt_prog_compiler_wl_CXX='-Wl,'
20248 # Make sure the PIC flag is empty. It appears that all Alpha
20249 # Linux and Compaq Tru64 Unix objects are PIC.
20250 lt_prog_compiler_pic_CXX=
20251 lt_prog_compiler_static_CXX='-non_shared'
20255 esac
20257 psos*)
20259 solaris*)
20260 case $cc_basename in
20261 CC*)
20262 # Sun C++ 4.2, 5.x and Centerline C++
20263 lt_prog_compiler_pic_CXX='-KPIC'
20264 lt_prog_compiler_static_CXX='-Bstatic'
20265 lt_prog_compiler_wl_CXX='-Qoption ld '
20267 gcx*)
20268 # Green Hills C++ Compiler
20269 lt_prog_compiler_pic_CXX='-PIC'
20273 esac
20275 sunos4*)
20276 case $cc_basename in
20277 CC*)
20278 # Sun C++ 4.x
20279 lt_prog_compiler_pic_CXX='-pic'
20280 lt_prog_compiler_static_CXX='-Bstatic'
20282 lcc*)
20283 # Lucid
20284 lt_prog_compiler_pic_CXX='-pic'
20288 esac
20290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20291 case $cc_basename in
20292 CC*)
20293 lt_prog_compiler_wl_CXX='-Wl,'
20294 lt_prog_compiler_pic_CXX='-KPIC'
20295 lt_prog_compiler_static_CXX='-Bstatic'
20297 esac
20299 tandem*)
20300 case $cc_basename in
20301 NCC*)
20302 # NonStop-UX NCC 3.20
20303 lt_prog_compiler_pic_CXX='-KPIC'
20307 esac
20309 vxworks*)
20312 lt_prog_compiler_can_build_shared_CXX=no
20314 esac
20317 case $host_os in
20318 # For platforms which do not support PIC, -DPIC is meaningless:
20319 *djgpp*)
20320 lt_prog_compiler_pic_CXX=
20323 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20325 esac
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20327 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20332 # Check to make sure the PIC flag actually works.
20334 if test -n "$lt_prog_compiler_pic_CXX"; then
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20336 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20337 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20338 $as_echo_n "(cached) " >&6
20339 else
20340 lt_cv_prog_compiler_pic_works_CXX=no
20341 ac_outfile=conftest.$ac_objext
20342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20343 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20344 # Insert the option either (1) after the last *FLAGS variable, or
20345 # (2) before a word containing "conftest.", or (3) at the end.
20346 # Note that $ac_compile itself does not contain backslashes and begins
20347 # with a dollar sign (not a hyphen), so the echo should work correctly.
20348 # The option is referenced via a variable to avoid confusing sed.
20349 lt_compile=`echo "$ac_compile" | $SED \
20350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20352 -e 's:$: $lt_compiler_flag:'`
20353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20354 (eval "$lt_compile" 2>conftest.err)
20355 ac_status=$?
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 if (exit $ac_status) && test -s "$ac_outfile"; then
20359 # The compiler can only warn and ignore the option if not recognized
20360 # So say no if there are warnings other than the usual output.
20361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20364 lt_cv_prog_compiler_pic_works_CXX=yes
20367 $RM conftest*
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20371 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20373 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20374 case $lt_prog_compiler_pic_CXX in
20375 "" | " "*) ;;
20376 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20377 esac
20378 else
20379 lt_prog_compiler_pic_CXX=
20380 lt_prog_compiler_can_build_shared_CXX=no
20388 # Check to make sure the static flag actually works.
20390 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20392 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20393 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20394 $as_echo_n "(cached) " >&6
20395 else
20396 lt_cv_prog_compiler_static_works_CXX=no
20397 save_LDFLAGS="$LDFLAGS"
20398 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20401 # The linker can only warn and ignore the option if not recognized
20402 # So say no if there are warnings
20403 if test -s conftest.err; then
20404 # Append any errors to the config.log.
20405 cat conftest.err 1>&5
20406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20408 if diff conftest.exp conftest.er2 >/dev/null; then
20409 lt_cv_prog_compiler_static_works_CXX=yes
20411 else
20412 lt_cv_prog_compiler_static_works_CXX=yes
20415 $RM -r conftest*
20416 LDFLAGS="$save_LDFLAGS"
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20420 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20422 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20424 else
20425 lt_prog_compiler_static_CXX=
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20432 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20433 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20434 $as_echo_n "(cached) " >&6
20435 else
20436 lt_cv_prog_compiler_c_o_CXX=no
20437 $RM -r conftest 2>/dev/null
20438 mkdir conftest
20439 cd conftest
20440 mkdir out
20441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20443 lt_compiler_flag="-o out/conftest2.$ac_objext"
20444 # Insert the option either (1) after the last *FLAGS variable, or
20445 # (2) before a word containing "conftest.", or (3) at the end.
20446 # Note that $ac_compile itself does not contain backslashes and begins
20447 # with a dollar sign (not a hyphen), so the echo should work correctly.
20448 lt_compile=`echo "$ac_compile" | $SED \
20449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20451 -e 's:$: $lt_compiler_flag:'`
20452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20453 (eval "$lt_compile" 2>out/conftest.err)
20454 ac_status=$?
20455 cat out/conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20458 then
20459 # The compiler can only warn and ignore the option if not recognized
20460 # So say no if there are warnings
20461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20462 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20463 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20464 lt_cv_prog_compiler_c_o_CXX=yes
20467 chmod u+w . 2>&5
20468 $RM conftest*
20469 # SGI C++ compiler will create directory out/ii_files/ for
20470 # template instantiation
20471 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20472 $RM out/* && rmdir out
20473 cd ..
20474 $RM -r conftest
20475 $RM conftest*
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20479 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20484 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20485 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20486 $as_echo_n "(cached) " >&6
20487 else
20488 lt_cv_prog_compiler_c_o_CXX=no
20489 $RM -r conftest 2>/dev/null
20490 mkdir conftest
20491 cd conftest
20492 mkdir out
20493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20495 lt_compiler_flag="-o out/conftest2.$ac_objext"
20496 # Insert the option either (1) after the last *FLAGS variable, or
20497 # (2) before a word containing "conftest.", or (3) at the end.
20498 # Note that $ac_compile itself does not contain backslashes and begins
20499 # with a dollar sign (not a hyphen), so the echo should work correctly.
20500 lt_compile=`echo "$ac_compile" | $SED \
20501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20503 -e 's:$: $lt_compiler_flag:'`
20504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20505 (eval "$lt_compile" 2>out/conftest.err)
20506 ac_status=$?
20507 cat out/conftest.err >&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20510 then
20511 # The compiler can only warn and ignore the option if not recognized
20512 # So say no if there are warnings
20513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20514 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20515 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20516 lt_cv_prog_compiler_c_o_CXX=yes
20519 chmod u+w . 2>&5
20520 $RM conftest*
20521 # SGI C++ compiler will create directory out/ii_files/ for
20522 # template instantiation
20523 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20524 $RM out/* && rmdir out
20525 cd ..
20526 $RM -r conftest
20527 $RM conftest*
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20531 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20536 hard_links="nottested"
20537 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20538 # do not overwrite the value of need_locks provided by the user
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20540 $as_echo_n "checking if we can lock with hard links... " >&6; }
20541 hard_links=yes
20542 $RM conftest*
20543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20544 touch conftest.a
20545 ln conftest.a conftest.b 2>&5 || hard_links=no
20546 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20548 $as_echo "$hard_links" >&6; }
20549 if test "$hard_links" = no; then
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20551 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20552 need_locks=warn
20554 else
20555 need_locks=no
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20561 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20563 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20564 case $host_os in
20565 aix[4-9]*)
20566 # If we're using GNU nm, then we don't want the "-C" option.
20567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20568 # Also, AIX nm treats weak defined symbols like other global defined
20569 # symbols, whereas GNU nm marks them as "W".
20570 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20571 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'
20572 else
20573 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'
20576 pw32*)
20577 export_symbols_cmds_CXX="$ltdll_cmds"
20579 cygwin* | mingw* | cegcc*)
20580 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'
20583 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20585 esac
20586 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20589 $as_echo "$ld_shlibs_CXX" >&6; }
20590 test "$ld_shlibs_CXX" = no && can_build_shared=no
20592 with_gnu_ld_CXX=$with_gnu_ld
20600 # Do we need to explicitly link libc?
20602 case "x$archive_cmds_need_lc_CXX" in
20603 x|xyes)
20604 # Assume -lc should be added
20605 archive_cmds_need_lc_CXX=yes
20607 if test "$enable_shared" = yes && test "$GCC" = yes; then
20608 case $archive_cmds_CXX in
20609 *'~'*)
20610 # FIXME: we may have to deal with multi-command sequences.
20612 '$CC '*)
20613 # Test whether the compiler implicitly links with -lc since on some
20614 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20615 # to ld, don't add -lc before -lgcc.
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20617 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20618 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20619 $as_echo_n "(cached) " >&6
20620 else
20621 $RM conftest*
20622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20625 (eval $ac_compile) 2>&5
20626 ac_status=$?
20627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20628 test $ac_status = 0; } 2>conftest.err; then
20629 soname=conftest
20630 lib=conftest
20631 libobjs=conftest.$ac_objext
20632 deplibs=
20633 wl=$lt_prog_compiler_wl_CXX
20634 pic_flag=$lt_prog_compiler_pic_CXX
20635 compiler_flags=-v
20636 linker_flags=-v
20637 verstring=
20638 output_objdir=.
20639 libname=conftest
20640 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20641 allow_undefined_flag_CXX=
20642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20643 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20644 ac_status=$?
20645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20646 test $ac_status = 0; }
20647 then
20648 lt_cv_archive_cmds_need_lc_CXX=no
20649 else
20650 lt_cv_archive_cmds_need_lc_CXX=yes
20652 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20653 else
20654 cat conftest.err 1>&5
20656 $RM conftest*
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20660 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20661 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20663 esac
20666 esac
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20732 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20734 library_names_spec=
20735 libname_spec='lib$name'
20736 soname_spec=
20737 shrext_cmds=".so"
20738 postinstall_cmds=
20739 postuninstall_cmds=
20740 finish_cmds=
20741 finish_eval=
20742 shlibpath_var=
20743 shlibpath_overrides_runpath=unknown
20744 version_type=none
20745 dynamic_linker="$host_os ld.so"
20746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20747 need_lib_prefix=unknown
20748 hardcode_into_libs=no
20750 # when you set need_version to no, make sure it does not cause -set_version
20751 # flags to be left without arguments
20752 need_version=unknown
20754 case $host_os in
20755 aix3*)
20756 version_type=linux
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20758 shlibpath_var=LIBPATH
20760 # AIX 3 has no versioning support, so we append a major version to the name.
20761 soname_spec='${libname}${release}${shared_ext}$major'
20764 aix[4-9]*)
20765 version_type=linux
20766 need_lib_prefix=no
20767 need_version=no
20768 hardcode_into_libs=yes
20769 if test "$host_cpu" = ia64; then
20770 # AIX 5 supports IA64
20771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20772 shlibpath_var=LD_LIBRARY_PATH
20773 else
20774 # With GCC up to 2.95.x, collect2 would create an import file
20775 # for dependence libraries. The import file would start with
20776 # the line `#! .'. This would cause the generated library to
20777 # depend on `.', always an invalid library. This was fixed in
20778 # development snapshots of GCC prior to 3.0.
20779 case $host_os in
20780 aix4 | aix4.[01] | aix4.[01].*)
20781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20782 echo ' yes '
20783 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20785 else
20786 can_build_shared=no
20789 esac
20790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20791 # soname into executable. Probably we can add versioning support to
20792 # collect2, so additional links can be useful in future.
20793 if test "$aix_use_runtimelinking" = yes; then
20794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20795 # instead of lib<name>.a to let people know that these are not
20796 # typical AIX shared libraries.
20797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20798 else
20799 # We preserve .a as extension for shared libraries through AIX4.2
20800 # and later when we are not doing run time linking.
20801 library_names_spec='${libname}${release}.a $libname.a'
20802 soname_spec='${libname}${release}${shared_ext}$major'
20804 shlibpath_var=LIBPATH
20808 amigaos*)
20809 case $host_cpu in
20810 powerpc)
20811 # Since July 2007 AmigaOS4 officially supports .so libraries.
20812 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20815 m68k)
20816 library_names_spec='$libname.ixlibrary $libname.a'
20817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20818 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'
20820 esac
20823 beos*)
20824 library_names_spec='${libname}${shared_ext}'
20825 dynamic_linker="$host_os ld.so"
20826 shlibpath_var=LIBRARY_PATH
20829 bsdi[45]*)
20830 version_type=linux
20831 need_version=no
20832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 soname_spec='${libname}${release}${shared_ext}$major'
20834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20835 shlibpath_var=LD_LIBRARY_PATH
20836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20838 # the default ld.so.conf also contains /usr/contrib/lib and
20839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20840 # libtool to hard-code these into programs
20843 cygwin* | mingw* | pw32* | cegcc*)
20844 version_type=windows
20845 shrext_cmds=".dll"
20846 need_version=no
20847 need_lib_prefix=no
20849 case $GCC,$host_os in
20850 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20851 library_names_spec='$libname.dll.a'
20852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20853 postinstall_cmds='base_file=`basename \${file}`~
20854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20855 dldir=$destdir/`dirname \$dlpath`~
20856 test -d \$dldir || mkdir -p \$dldir~
20857 $install_prog $dir/$dlname \$dldir/$dlname~
20858 chmod a+x \$dldir/$dlname~
20859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20863 dlpath=$dir/\$dldll~
20864 $RM \$dlpath'
20865 shlibpath_overrides_runpath=yes
20867 case $host_os in
20868 cygwin*)
20869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20873 mingw* | cegcc*)
20874 # MinGW DLLs use traditional 'lib' prefix
20875 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20877 pw32*)
20878 # pw32 DLLs use 'pw' prefix rather than 'lib'
20879 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20881 esac
20885 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20887 esac
20888 dynamic_linker='Win32 ld.exe'
20889 # FIXME: first we should search . and the directory the executable is in
20890 shlibpath_var=PATH
20893 darwin* | rhapsody*)
20894 dynamic_linker="$host_os dyld"
20895 version_type=darwin
20896 need_lib_prefix=no
20897 need_version=no
20898 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20899 soname_spec='${libname}${release}${major}$shared_ext'
20900 shlibpath_overrides_runpath=yes
20901 shlibpath_var=DYLD_LIBRARY_PATH
20902 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20904 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20907 dgux*)
20908 version_type=linux
20909 need_lib_prefix=no
20910 need_version=no
20911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20912 soname_spec='${libname}${release}${shared_ext}$major'
20913 shlibpath_var=LD_LIBRARY_PATH
20916 freebsd* | dragonfly*)
20917 # DragonFly does not have aout. When/if they implement a new
20918 # versioning mechanism, adjust this.
20919 if test -x /usr/bin/objformat; then
20920 objformat=`/usr/bin/objformat`
20921 else
20922 case $host_os in
20923 freebsd[23].*) objformat=aout ;;
20924 *) objformat=elf ;;
20925 esac
20927 version_type=freebsd-$objformat
20928 case $version_type in
20929 freebsd-elf*)
20930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20931 need_version=no
20932 need_lib_prefix=no
20934 freebsd-*)
20935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20936 need_version=yes
20938 esac
20939 shlibpath_var=LD_LIBRARY_PATH
20940 case $host_os in
20941 freebsd2.*)
20942 shlibpath_overrides_runpath=yes
20944 freebsd3.[01]* | freebsdelf3.[01]*)
20945 shlibpath_overrides_runpath=yes
20946 hardcode_into_libs=yes
20948 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20949 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20950 shlibpath_overrides_runpath=no
20951 hardcode_into_libs=yes
20953 *) # from 4.6 on, and DragonFly
20954 shlibpath_overrides_runpath=yes
20955 hardcode_into_libs=yes
20957 esac
20960 gnu*)
20961 version_type=linux
20962 need_lib_prefix=no
20963 need_version=no
20964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20965 soname_spec='${libname}${release}${shared_ext}$major'
20966 shlibpath_var=LD_LIBRARY_PATH
20967 hardcode_into_libs=yes
20970 haiku*)
20971 version_type=linux
20972 need_lib_prefix=no
20973 need_version=no
20974 dynamic_linker="$host_os runtime_loader"
20975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20976 soname_spec='${libname}${release}${shared_ext}$major'
20977 shlibpath_var=LIBRARY_PATH
20978 shlibpath_overrides_runpath=yes
20979 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20980 hardcode_into_libs=yes
20983 hpux9* | hpux10* | hpux11*)
20984 # Give a soname corresponding to the major version so that dld.sl refuses to
20985 # link against other versions.
20986 version_type=sunos
20987 need_lib_prefix=no
20988 need_version=no
20989 case $host_cpu in
20990 ia64*)
20991 shrext_cmds='.so'
20992 hardcode_into_libs=yes
20993 dynamic_linker="$host_os dld.so"
20994 shlibpath_var=LD_LIBRARY_PATH
20995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20997 soname_spec='${libname}${release}${shared_ext}$major'
20998 if test "X$HPUX_IA64_MODE" = X32; then
20999 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21000 else
21001 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21005 hppa*64*)
21006 shrext_cmds='.sl'
21007 hardcode_into_libs=yes
21008 dynamic_linker="$host_os dld.sl"
21009 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21017 shrext_cmds='.sl'
21018 dynamic_linker="$host_os dld.sl"
21019 shlibpath_var=SHLIB_PATH
21020 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21022 soname_spec='${libname}${release}${shared_ext}$major'
21024 esac
21025 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21026 postinstall_cmds='chmod 555 $lib'
21027 # or fails outright, so override atomically:
21028 install_override_mode=555
21031 interix[3-9]*)
21032 version_type=linux
21033 need_lib_prefix=no
21034 need_version=no
21035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21036 soname_spec='${libname}${release}${shared_ext}$major'
21037 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21038 shlibpath_var=LD_LIBRARY_PATH
21039 shlibpath_overrides_runpath=no
21040 hardcode_into_libs=yes
21043 irix5* | irix6* | nonstopux*)
21044 case $host_os in
21045 nonstopux*) version_type=nonstopux ;;
21047 if test "$lt_cv_prog_gnu_ld" = yes; then
21048 version_type=linux
21049 else
21050 version_type=irix
21051 fi ;;
21052 esac
21053 need_lib_prefix=no
21054 need_version=no
21055 soname_spec='${libname}${release}${shared_ext}$major'
21056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21057 case $host_os in
21058 irix5* | nonstopux*)
21059 libsuff= shlibsuff=
21062 case $LD in # libtool.m4 will add one of these switches to LD
21063 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21064 libsuff= shlibsuff= libmagic=32-bit;;
21065 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21066 libsuff=32 shlibsuff=N32 libmagic=N32;;
21067 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21068 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21069 *) libsuff= shlibsuff= libmagic=never-match;;
21070 esac
21072 esac
21073 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21074 shlibpath_overrides_runpath=no
21075 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21076 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21077 hardcode_into_libs=yes
21080 # No shared lib support for Linux oldld, aout, or coff.
21081 linux*oldld* | linux*aout* | linux*coff*)
21082 dynamic_linker=no
21085 # This must be Linux ELF.
21086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21087 version_type=linux
21088 need_lib_prefix=no
21089 need_version=no
21090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21091 soname_spec='${libname}${release}${shared_ext}$major'
21092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21093 shlibpath_var=LD_LIBRARY_PATH
21094 shlibpath_overrides_runpath=no
21096 # Some binutils ld are patched to set DT_RUNPATH
21097 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21098 $as_echo_n "(cached) " >&6
21099 else
21100 lt_cv_shlibpath_overrides_runpath=no
21101 save_LDFLAGS=$LDFLAGS
21102 save_libdir=$libdir
21103 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21104 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21106 /* end confdefs.h. */
21109 main ()
21113 return 0;
21115 _ACEOF
21116 if ac_fn_cxx_try_link "$LINENO"; then :
21117 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21118 lt_cv_shlibpath_overrides_runpath=yes
21121 rm -f core conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21123 LDFLAGS=$save_LDFLAGS
21124 libdir=$save_libdir
21128 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21130 # This implies no fast_install, which is unacceptable.
21131 # Some rework will be needed to allow for fast_install
21132 # before this can be enabled.
21133 hardcode_into_libs=yes
21135 # Append ld.so.conf contents to the search path
21136 if test -f /etc/ld.so.conf; then
21137 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' ' '`
21138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21141 # We used to test for /lib/ld.so.1 and disable shared libraries on
21142 # powerpc, because MkLinux only supported shared libraries with the
21143 # GNU dynamic linker. Since this was broken with cross compilers,
21144 # most powerpc-linux boxes support dynamic linking these days and
21145 # people can always --disable-shared, the test was removed, and we
21146 # assume the GNU/Linux dynamic linker is in use.
21147 dynamic_linker='GNU/Linux ld.so'
21150 netbsd*)
21151 version_type=sunos
21152 need_lib_prefix=no
21153 need_version=no
21154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21157 dynamic_linker='NetBSD (a.out) ld.so'
21158 else
21159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21160 soname_spec='${libname}${release}${shared_ext}$major'
21161 dynamic_linker='NetBSD ld.elf_so'
21163 shlibpath_var=LD_LIBRARY_PATH
21164 shlibpath_overrides_runpath=yes
21165 hardcode_into_libs=yes
21168 newsos6)
21169 version_type=linux
21170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21171 shlibpath_var=LD_LIBRARY_PATH
21172 shlibpath_overrides_runpath=yes
21175 *nto* | *qnx*)
21176 version_type=qnx
21177 need_lib_prefix=no
21178 need_version=no
21179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21180 soname_spec='${libname}${release}${shared_ext}$major'
21181 shlibpath_var=LD_LIBRARY_PATH
21182 shlibpath_overrides_runpath=no
21183 hardcode_into_libs=yes
21184 dynamic_linker='ldqnx.so'
21187 openbsd*)
21188 version_type=sunos
21189 sys_lib_dlsearch_path_spec="/usr/lib"
21190 need_lib_prefix=no
21191 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21192 case $host_os in
21193 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21194 *) need_version=no ;;
21195 esac
21196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21198 shlibpath_var=LD_LIBRARY_PATH
21199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21200 case $host_os in
21201 openbsd2.[89] | openbsd2.[89].*)
21202 shlibpath_overrides_runpath=no
21205 shlibpath_overrides_runpath=yes
21207 esac
21208 else
21209 shlibpath_overrides_runpath=yes
21213 os2*)
21214 libname_spec='$name'
21215 shrext_cmds=".dll"
21216 need_lib_prefix=no
21217 library_names_spec='$libname${shared_ext} $libname.a'
21218 dynamic_linker='OS/2 ld.exe'
21219 shlibpath_var=LIBPATH
21222 osf3* | osf4* | osf5*)
21223 version_type=osf
21224 need_lib_prefix=no
21225 need_version=no
21226 soname_spec='${libname}${release}${shared_ext}$major'
21227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21228 shlibpath_var=LD_LIBRARY_PATH
21229 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21230 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21233 rdos*)
21234 dynamic_linker=no
21237 solaris*)
21238 version_type=linux
21239 need_lib_prefix=no
21240 need_version=no
21241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21242 soname_spec='${libname}${release}${shared_ext}$major'
21243 shlibpath_var=LD_LIBRARY_PATH
21244 shlibpath_overrides_runpath=yes
21245 hardcode_into_libs=yes
21246 # ldd complains unless libraries are executable
21247 postinstall_cmds='chmod +x $lib'
21250 sunos4*)
21251 version_type=sunos
21252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21254 shlibpath_var=LD_LIBRARY_PATH
21255 shlibpath_overrides_runpath=yes
21256 if test "$with_gnu_ld" = yes; then
21257 need_lib_prefix=no
21259 need_version=yes
21262 sysv4 | sysv4.3*)
21263 version_type=linux
21264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21265 soname_spec='${libname}${release}${shared_ext}$major'
21266 shlibpath_var=LD_LIBRARY_PATH
21267 case $host_vendor in
21268 sni)
21269 shlibpath_overrides_runpath=no
21270 need_lib_prefix=no
21271 runpath_var=LD_RUN_PATH
21273 siemens)
21274 need_lib_prefix=no
21276 motorola)
21277 need_lib_prefix=no
21278 need_version=no
21279 shlibpath_overrides_runpath=no
21280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21282 esac
21285 sysv4*MP*)
21286 if test -d /usr/nec ;then
21287 version_type=linux
21288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21289 soname_spec='$libname${shared_ext}.$major'
21290 shlibpath_var=LD_LIBRARY_PATH
21294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21295 version_type=freebsd-elf
21296 need_lib_prefix=no
21297 need_version=no
21298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21299 soname_spec='${libname}${release}${shared_ext}$major'
21300 shlibpath_var=LD_LIBRARY_PATH
21301 shlibpath_overrides_runpath=yes
21302 hardcode_into_libs=yes
21303 if test "$with_gnu_ld" = yes; then
21304 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21305 else
21306 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21307 case $host_os in
21308 sco3.2v5*)
21309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21311 esac
21313 sys_lib_dlsearch_path_spec='/usr/lib'
21316 tpf*)
21317 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21318 version_type=linux
21319 need_lib_prefix=no
21320 need_version=no
21321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21322 shlibpath_var=LD_LIBRARY_PATH
21323 shlibpath_overrides_runpath=no
21324 hardcode_into_libs=yes
21327 uts4*)
21328 version_type=linux
21329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21330 soname_spec='${libname}${release}${shared_ext}$major'
21331 shlibpath_var=LD_LIBRARY_PATH
21335 dynamic_linker=no
21337 esac
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21339 $as_echo "$dynamic_linker" >&6; }
21340 test "$dynamic_linker" = no && can_build_shared=no
21342 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21343 if test "$GCC" = yes; then
21344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21347 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21348 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21350 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21351 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21392 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21393 hardcode_action_CXX=
21394 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21395 test -n "$runpath_var_CXX" ||
21396 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21398 # We can hardcode non-existent directories.
21399 if test "$hardcode_direct_CXX" != no &&
21400 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21401 # have to relink, otherwise we might link with an installed library
21402 # when we should be linking with a yet-to-be-installed one
21403 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21404 test "$hardcode_minus_L_CXX" != no; then
21405 # Linking always hardcodes the temporary library directory.
21406 hardcode_action_CXX=relink
21407 else
21408 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21409 hardcode_action_CXX=immediate
21411 else
21412 # We cannot hardcode anything, or else we can only hardcode existing
21413 # directories.
21414 hardcode_action_CXX=unsupported
21416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21417 $as_echo "$hardcode_action_CXX" >&6; }
21419 if test "$hardcode_action_CXX" = relink ||
21420 test "$inherit_rpath_CXX" = yes; then
21421 # Fast installation is not supported
21422 enable_fast_install=no
21423 elif test "$shlibpath_overrides_runpath" = yes ||
21424 test "$enable_shared" = no; then
21425 # Fast installation is not necessary
21426 enable_fast_install=needless
21435 fi # test -n "$compiler"
21437 CC=$lt_save_CC
21438 LDCXX=$LD
21439 LD=$lt_save_LD
21440 GCC=$lt_save_GCC
21441 with_gnu_ld=$lt_save_with_gnu_ld
21442 lt_cv_path_LDCXX=$lt_cv_path_LD
21443 lt_cv_path_LD=$lt_save_path_LD
21444 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21445 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21446 fi # test "$_lt_caught_CXX_error" != yes
21448 ac_ext=c
21449 ac_cpp='$CPP $CPPFLAGS'
21450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21469 # Only expand once:
21475 # Identify the assembler which will work hand-in-glove with the newly
21476 # built GCC, so that we can examine its features. This is the assembler
21477 # which will be driven by the driver program.
21479 # If build != host, and we aren't building gas in-tree, we identify a
21480 # build->target assembler and hope that it will have the same features
21481 # as the host->target assembler we'll be using.
21482 gcc_cv_gas_major_version=
21483 gcc_cv_gas_minor_version=
21484 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21486 if test "${gcc_cv_as+set}" = set; then :
21488 else
21490 if test -x "$DEFAULT_ASSEMBLER"; then
21491 gcc_cv_as="$DEFAULT_ASSEMBLER"
21492 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21493 && test -f ../gas/Makefile \
21494 && test x$build = x$host; then
21495 gcc_cv_as=../gas/as-new$build_exeext
21496 elif test -x as$build_exeext; then
21497 # Build using assembler in the current directory.
21498 gcc_cv_as=./as$build_exeext
21499 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21500 gcc_cv_as="$AS_FOR_TARGET"
21501 else
21502 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21503 set dummy $AS_FOR_TARGET; ac_word=$2
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21505 $as_echo_n "checking for $ac_word... " >&6; }
21506 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21507 $as_echo_n "(cached) " >&6
21508 else
21509 case $gcc_cv_as in
21510 [\\/]* | ?:[\\/]*)
21511 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21515 for as_dir in $PATH
21517 IFS=$as_save_IFS
21518 test -z "$as_dir" && as_dir=.
21519 for ac_exec_ext in '' $ac_executable_extensions; do
21520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21521 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21523 break 2
21525 done
21526 done
21527 IFS=$as_save_IFS
21530 esac
21532 gcc_cv_as=$ac_cv_path_gcc_cv_as
21533 if test -n "$gcc_cv_as"; then
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21535 $as_echo "$gcc_cv_as" >&6; }
21536 else
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21538 $as_echo "no" >&6; }
21545 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21547 case "$ORIGINAL_AS_FOR_TARGET" in
21548 ./as | ./as$build_exeext) ;;
21549 *) ac_config_files="$ac_config_files as:exec-tool.in"
21551 esac
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21554 $as_echo_n "checking what assembler to use... " >&6; }
21555 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21556 # Single tree build which includes gas. We want to prefer it
21557 # over whatever linker top-level may have detected, since
21558 # we'll use what we're building after installation anyway.
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21560 $as_echo "newly built gas" >&6; }
21561 in_tree_gas=yes
21562 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21563 for f in $gcc_cv_as_bfd_srcdir/configure \
21564 $gcc_cv_as_gas_srcdir/configure \
21565 $gcc_cv_as_gas_srcdir/configure.in \
21566 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21567 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21568 if test x$gcc_cv_gas_version != x; then
21569 break
21571 done
21572 case $gcc_cv_gas_version in
21573 VERSION=[0-9]*) ;;
21574 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21575 esac
21576 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21577 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21578 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21579 case $gcc_cv_gas_patch_version in
21580 "") gcc_cv_gas_patch_version="0" ;;
21581 esac
21582 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21583 + $gcc_cv_gas_minor_version \) \* 1000 \
21584 + $gcc_cv_gas_patch_version`
21586 in_tree_gas_is_elf=no
21587 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21588 || (grep 'obj_format = multi' ../gas/Makefile \
21589 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21590 then
21591 in_tree_gas_is_elf=yes
21593 else
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21595 $as_echo "$gcc_cv_as" >&6; }
21596 in_tree_gas=no
21599 default_ld=
21600 # Check whether --enable-ld was given.
21601 if test "${enable_ld+set}" = set; then :
21602 enableval=$enable_ld; case "${enableval}" in
21604 default_ld=ld.gold
21606 esac
21610 install_gold_as_default=no
21611 # Check whether --enable-gold was given.
21612 if test "${enable_gold+set}" = set; then :
21613 enableval=$enable_gold; case "${enableval}" in
21614 default)
21615 install_gold_as_default=yes
21617 yes)
21618 if test x${default_ld} != x; then
21619 install_gold_as_default=yes
21625 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21627 esac
21631 # Identify the linker which will work hand-in-glove with the newly
21632 # built GCC, so that we can examine its features. This is the linker
21633 # which will be driven by the driver program.
21635 # If build != host, and we aren't building gas in-tree, we identify a
21636 # build->target linker and hope that it will have the same features
21637 # as the host->target linker we'll be using.
21638 gcc_cv_gld_major_version=
21639 gcc_cv_gld_minor_version=
21640 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21641 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21642 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21644 if test "${gcc_cv_ld+set}" = set; then :
21646 else
21648 if test -x "$DEFAULT_LINKER"; then
21649 gcc_cv_ld="$DEFAULT_LINKER"
21650 elif test $install_gold_as_default = yes \
21651 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21652 && test -f ../gold/Makefile \
21653 && test x$build = x$host; then
21654 gcc_cv_ld=../gold/ld-new$build_exeext
21655 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21656 && test -f ../ld/Makefile \
21657 && test x$build = x$host; then
21658 gcc_cv_ld=../ld/ld-new$build_exeext
21659 elif test -x collect-ld$build_exeext; then
21660 # Build using linker in the current directory.
21661 gcc_cv_ld=./collect-ld$build_exeext
21662 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21663 gcc_cv_ld="$LD_FOR_TARGET"
21664 else
21665 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21666 set dummy $LD_FOR_TARGET; ac_word=$2
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21668 $as_echo_n "checking for $ac_word... " >&6; }
21669 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21670 $as_echo_n "(cached) " >&6
21671 else
21672 case $gcc_cv_ld in
21673 [\\/]* | ?:[\\/]*)
21674 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21678 for as_dir in $PATH
21680 IFS=$as_save_IFS
21681 test -z "$as_dir" && as_dir=.
21682 for ac_exec_ext in '' $ac_executable_extensions; do
21683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21684 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21686 break 2
21688 done
21689 done
21690 IFS=$as_save_IFS
21693 esac
21695 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21696 if test -n "$gcc_cv_ld"; then
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21698 $as_echo "$gcc_cv_ld" >&6; }
21699 else
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 $as_echo "no" >&6; }
21708 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21709 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21710 # if the PLUGIN_LD is set ld-new, just have it as ld
21711 # as that is the installed named.
21712 if test x$PLUGIN_LD_SUFFIX = xld-new \
21713 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21714 PLUGIN_LD_SUFFIX=ld
21717 # Check whether --with-plugin-ld was given.
21718 if test "${with_plugin_ld+set}" = set; then :
21719 withval=$with_plugin_ld; if test x"$withval" != x; then
21720 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21721 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21727 cat >>confdefs.h <<_ACEOF
21728 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21729 _ACEOF
21732 # Check to see if we are using gold instead of ld
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21734 $as_echo_n "checking whether we are using gold... " >&6; }
21735 ld_is_gold=no
21736 if test x$gcc_cv_ld != x; then
21737 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21738 | grep "GNU gold" > /dev/null; then
21739 ld_is_gold=yes
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21743 $as_echo "$ld_is_gold" >&6; }
21745 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21747 case "$ORIGINAL_LD_FOR_TARGET" in
21748 ./collect-ld | ./collect-ld$build_exeext) ;;
21749 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21751 esac
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21754 $as_echo_n "checking what linker to use... " >&6; }
21755 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21756 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21757 # Single tree build which includes ld. We want to prefer it
21758 # over whatever linker top-level may have detected, since
21759 # we'll use what we're building after installation anyway.
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21761 $as_echo "newly built ld" >&6; }
21762 in_tree_ld=yes
21763 in_tree_ld_is_elf=no
21764 if (grep 'EMUL = .*elf' ../ld/Makefile \
21765 || grep 'EMUL = .*linux' ../ld/Makefile \
21766 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21767 in_tree_ld_is_elf=yes
21768 elif test "$ld_is_gold" = yes; then
21769 in_tree_ld_is_elf=yes
21771 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
21773 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21774 if test x$gcc_cv_gld_version != x; then
21775 break
21777 done
21778 case $gcc_cv_gld_version in
21779 VERSION=[0-9]*) ;;
21780 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21781 esac
21782 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21783 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21784 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21785 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21786 else
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21788 $as_echo "$gcc_cv_ld" >&6; }
21789 in_tree_ld=no
21790 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21791 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21792 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21798 # Figure out what nm we will be using.
21799 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21800 if test "${gcc_cv_nm+set}" = set; then :
21802 else
21804 if test -f $gcc_cv_binutils_srcdir/configure.in \
21805 && test -f ../binutils/Makefile \
21806 && test x$build = x$host; then
21807 gcc_cv_nm=../binutils/nm-new$build_exeext
21808 elif test -x nm$build_exeext; then
21809 gcc_cv_nm=./nm$build_exeext
21810 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21811 gcc_cv_nm="$NM_FOR_TARGET"
21812 else
21813 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21814 set dummy $NM_FOR_TARGET; ac_word=$2
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21816 $as_echo_n "checking for $ac_word... " >&6; }
21817 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21818 $as_echo_n "(cached) " >&6
21819 else
21820 case $gcc_cv_nm in
21821 [\\/]* | ?:[\\/]*)
21822 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21826 for as_dir in $PATH
21828 IFS=$as_save_IFS
21829 test -z "$as_dir" && as_dir=.
21830 for ac_exec_ext in '' $ac_executable_extensions; do
21831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21832 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21834 break 2
21836 done
21837 done
21838 IFS=$as_save_IFS
21841 esac
21843 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21844 if test -n "$gcc_cv_nm"; then
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21846 $as_echo "$gcc_cv_nm" >&6; }
21847 else
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849 $as_echo "no" >&6; }
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21857 $as_echo_n "checking what nm to use... " >&6; }
21858 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21859 # Single tree build which includes binutils.
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21861 $as_echo "newly built nm" >&6; }
21862 in_tree_nm=yes
21863 else
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21865 $as_echo "$gcc_cv_nm" >&6; }
21866 in_tree_nm=no
21869 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21871 case "$ORIGINAL_NM_FOR_TARGET" in
21872 ./nm | ./nm$build_exeext) ;;
21873 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21875 esac
21878 # Figure out what objdump we will be using.
21879 if test "${gcc_cv_objdump+set}" = set; then :
21881 else
21883 if test -f $gcc_cv_binutils_srcdir/configure.in \
21884 && test -f ../binutils/Makefile \
21885 && test x$build = x$host; then
21886 # Single tree build which includes binutils.
21887 gcc_cv_objdump=../binutils/objdump$build_exeext
21888 elif test -x objdump$build_exeext; then
21889 gcc_cv_objdump=./objdump$build_exeext
21890 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21891 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21892 else
21893 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21894 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21896 $as_echo_n "checking for $ac_word... " >&6; }
21897 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21898 $as_echo_n "(cached) " >&6
21899 else
21900 case $gcc_cv_objdump in
21901 [\\/]* | ?:[\\/]*)
21902 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21906 for as_dir in $PATH
21908 IFS=$as_save_IFS
21909 test -z "$as_dir" && as_dir=.
21910 for ac_exec_ext in '' $ac_executable_extensions; do
21911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21912 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21914 break 2
21916 done
21917 done
21918 IFS=$as_save_IFS
21921 esac
21923 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21924 if test -n "$gcc_cv_objdump"; then
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21926 $as_echo "$gcc_cv_objdump" >&6; }
21927 else
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21929 $as_echo "no" >&6; }
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21937 $as_echo_n "checking what objdump to use... " >&6; }
21938 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21939 # Single tree build which includes binutils.
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21941 $as_echo "newly built objdump" >&6; }
21942 elif test x$gcc_cv_objdump = x; then
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21944 $as_echo "not found" >&6; }
21945 else
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21947 $as_echo "$gcc_cv_objdump" >&6; }
21950 # Figure out what readelf we will be using.
21951 if test "${gcc_cv_readelf+set}" = set; then :
21953 else
21955 if test -f $gcc_cv_binutils_srcdir/configure.in \
21956 && test -f ../binutils/Makefile \
21957 && test x$build = x$host; then
21958 # Single tree build which includes binutils.
21959 gcc_cv_readelf=../binutils/readelf$build_exeext
21960 elif test -x readelf$build_exeext; then
21961 gcc_cv_readelf=./readelf$build_exeext
21962 else
21963 # Extract the first word of "readelf", so it can be a program name with args.
21964 set dummy readelf; ac_word=$2
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21966 $as_echo_n "checking for $ac_word... " >&6; }
21967 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21968 $as_echo_n "(cached) " >&6
21969 else
21970 case $gcc_cv_readelf in
21971 [\\/]* | ?:[\\/]*)
21972 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21976 for as_dir in $PATH
21978 IFS=$as_save_IFS
21979 test -z "$as_dir" && as_dir=.
21980 for ac_exec_ext in '' $ac_executable_extensions; do
21981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21982 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21984 break 2
21986 done
21987 done
21988 IFS=$as_save_IFS
21991 esac
21993 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21994 if test -n "$gcc_cv_readelf"; then
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21996 $as_echo "$gcc_cv_readelf" >&6; }
21997 else
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21999 $as_echo "no" >&6; }
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22007 $as_echo_n "checking what readelf to use... " >&6; }
22008 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22009 # Single tree build which includes binutils.
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22011 $as_echo "newly built readelf" >&6; }
22012 elif test x$gcc_cv_readelf = x; then
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22014 $as_echo "not found" >&6; }
22015 else
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22017 $as_echo "$gcc_cv_readelf" >&6; }
22020 # Figure out what assembler alignment features are present.
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22022 $as_echo_n "checking assembler flags... " >&6; }
22023 if test "${gcc_cv_as_flags+set}" = set; then :
22024 $as_echo_n "(cached) " >&6
22025 else
22026 case "$target" in
22027 i[34567]86-*-linux*)
22028 gcc_cv_as_flags=--32
22030 x86_64-*-linux-gnux32)
22031 gcc_cv_as_flags=--x32
22033 x86_64-*-linux*)
22034 gcc_cv_as_flags=--64
22036 powerpc*-*-darwin*)
22037 gcc_cv_as_flags="-arch ppc"
22040 gcc_cv_as_flags=" "
22042 esac
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22045 $as_echo "$gcc_cv_as_flags" >&6; }
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22048 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22049 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22050 $as_echo_n "(cached) " >&6
22051 else
22052 gcc_cv_as_balign_and_p2align=no
22053 if test $in_tree_gas = yes; then
22054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22055 then gcc_cv_as_balign_and_p2align=yes
22057 elif test x$gcc_cv_as != x; then
22058 $as_echo '.balign 4
22059 .p2align 2' > conftest.s
22060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22062 (eval $ac_try) 2>&5
22063 ac_status=$?
22064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22065 test $ac_status = 0; }; }
22066 then
22067 gcc_cv_as_balign_and_p2align=yes
22068 else
22069 echo "configure: failed program was" >&5
22070 cat conftest.s >&5
22072 rm -f conftest.o conftest.s
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22076 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22077 if test $gcc_cv_as_balign_and_p2align = yes; then
22079 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22084 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22085 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22086 $as_echo_n "(cached) " >&6
22087 else
22088 gcc_cv_as_max_skip_p2align=no
22089 if test $in_tree_gas = yes; then
22090 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22091 then gcc_cv_as_max_skip_p2align=yes
22093 elif test x$gcc_cv_as != x; then
22094 $as_echo '.p2align 4,,7' > conftest.s
22095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; }
22101 then
22102 gcc_cv_as_max_skip_p2align=yes
22103 else
22104 echo "configure: failed program was" >&5
22105 cat conftest.s >&5
22107 rm -f conftest.o conftest.s
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22111 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22112 if test $gcc_cv_as_max_skip_p2align = yes; then
22114 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22119 $as_echo_n "checking assembler for .literal16... " >&6; }
22120 if test "${gcc_cv_as_literal16+set}" = set; then :
22121 $as_echo_n "(cached) " >&6
22122 else
22123 gcc_cv_as_literal16=no
22124 if test $in_tree_gas = yes; then
22125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22126 then gcc_cv_as_literal16=yes
22128 elif test x$gcc_cv_as != x; then
22129 $as_echo '.literal16' > conftest.s
22130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22132 (eval $ac_try) 2>&5
22133 ac_status=$?
22134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22135 test $ac_status = 0; }; }
22136 then
22137 gcc_cv_as_literal16=yes
22138 else
22139 echo "configure: failed program was" >&5
22140 cat conftest.s >&5
22142 rm -f conftest.o conftest.s
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22146 $as_echo "$gcc_cv_as_literal16" >&6; }
22147 if test $gcc_cv_as_literal16 = yes; then
22149 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22154 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22155 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22156 $as_echo_n "(cached) " >&6
22157 else
22158 gcc_cv_as_subsection_m1=no
22159 if test $in_tree_gas = yes; then
22160 if test $in_tree_gas_is_elf = yes \
22161 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22162 then gcc_cv_as_subsection_m1=yes
22164 elif test x$gcc_cv_as != x; then
22165 $as_echo 'conftest_label1: .word 0
22166 .subsection -1
22167 conftest_label2: .word 0
22168 .previous' > conftest.s
22169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22171 (eval $ac_try) 2>&5
22172 ac_status=$?
22173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22174 test $ac_status = 0; }; }
22175 then
22176 if test x$gcc_cv_nm != x; then
22177 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22178 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22179 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22180 then :
22181 else gcc_cv_as_subsection_m1=yes
22183 rm -f conftest.nm1 conftest.nm2
22185 else
22186 echo "configure: failed program was" >&5
22187 cat conftest.s >&5
22189 rm -f conftest.o conftest.s
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22193 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22194 if test $gcc_cv_as_subsection_m1 = yes; then
22196 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22201 $as_echo_n "checking assembler for .weak... " >&6; }
22202 if test "${gcc_cv_as_weak+set}" = set; then :
22203 $as_echo_n "(cached) " >&6
22204 else
22205 gcc_cv_as_weak=no
22206 if test $in_tree_gas = yes; then
22207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22208 then gcc_cv_as_weak=yes
22210 elif test x$gcc_cv_as != x; then
22211 $as_echo ' .weak foobar' > conftest.s
22212 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22214 (eval $ac_try) 2>&5
22215 ac_status=$?
22216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22217 test $ac_status = 0; }; }
22218 then
22219 gcc_cv_as_weak=yes
22220 else
22221 echo "configure: failed program was" >&5
22222 cat conftest.s >&5
22224 rm -f conftest.o conftest.s
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22228 $as_echo "$gcc_cv_as_weak" >&6; }
22229 if test $gcc_cv_as_weak = yes; then
22231 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22236 $as_echo_n "checking assembler for .weakref... " >&6; }
22237 if test "${gcc_cv_as_weakref+set}" = set; then :
22238 $as_echo_n "(cached) " >&6
22239 else
22240 gcc_cv_as_weakref=no
22241 if test $in_tree_gas = yes; then
22242 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22243 then gcc_cv_as_weakref=yes
22245 elif test x$gcc_cv_as != x; then
22246 $as_echo ' .weakref foobar, barfnot' > conftest.s
22247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22252 test $ac_status = 0; }; }
22253 then
22254 gcc_cv_as_weakref=yes
22255 else
22256 echo "configure: failed program was" >&5
22257 cat conftest.s >&5
22259 rm -f conftest.o conftest.s
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22263 $as_echo "$gcc_cv_as_weakref" >&6; }
22264 if test $gcc_cv_as_weakref = yes; then
22266 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22271 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22272 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22274 else
22275 gcc_cv_as_nsubspa_comdat=no
22276 if test $in_tree_gas = yes; then
22277 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22278 then gcc_cv_as_nsubspa_comdat=yes
22280 elif test x$gcc_cv_as != x; then
22281 $as_echo ' .SPACE $TEXT$
22282 .NSUBSPA $CODE$,COMDAT' > 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_nsubspa_comdat=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_nsubspa_comdat" >&5
22299 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22300 if test $gcc_cv_as_nsubspa_comdat = yes; then
22302 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22306 # .hidden needs to be supported in both the assembler and the linker,
22307 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22308 # This is irritatingly difficult to feature test for; we have to check the
22309 # date string after the version number. If we've got an in-tree
22310 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22311 # to be safe.
22312 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22314 $as_echo_n "checking assembler for .hidden... " >&6; }
22315 if test "${gcc_cv_as_hidden+set}" = set; then :
22316 $as_echo_n "(cached) " >&6
22317 else
22318 gcc_cv_as_hidden=no
22319 if test $in_tree_gas = yes; then
22320 if test $in_tree_gas_is_elf = yes \
22321 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22322 then gcc_cv_as_hidden=yes
22324 elif test x$gcc_cv_as != x; then
22325 $as_echo ' .hidden foobar
22326 foobar:' > conftest.s
22327 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22329 (eval $ac_try) 2>&5
22330 ac_status=$?
22331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22332 test $ac_status = 0; }; }
22333 then
22334 gcc_cv_as_hidden=yes
22335 else
22336 echo "configure: failed program was" >&5
22337 cat conftest.s >&5
22339 rm -f conftest.o conftest.s
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22343 $as_echo "$gcc_cv_as_hidden" >&6; }
22345 case "${target}" in
22346 *-*-darwin*)
22347 # Darwin as has some visibility support, though with a different syntax.
22348 gcc_cv_as_hidden=yes
22350 esac
22352 # gnu_indirect_function type is an extension proposed at
22353 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22354 # selection of function implementation
22355 # Check whether --enable-gnu-indirect-function was given.
22356 if test "${enable_gnu_indirect_function+set}" = set; then :
22357 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22358 yes | no) ;;
22359 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22360 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22361 esac
22362 else
22363 enable_gnu_indirect_function="$default_gnu_indirect_function"
22367 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22371 _ACEOF
22375 if test $in_tree_ld != yes ; then
22376 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22377 if echo "$ld_ver" | grep GNU > /dev/null; then
22378 if test x"$ld_is_gold" = xyes; then
22379 # GNU gold --version looks like this:
22381 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22383 # We extract the binutils version which is more familiar and specific
22384 # than the gold version.
22385 ld_vers=`echo $ld_ver | sed -n \
22386 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22387 else
22388 # GNU ld --version looks like this:
22390 # GNU ld (GNU Binutils) 2.21.51.20110225
22391 ld_vers=`echo $ld_ver | sed -n \
22392 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22394 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'`
22395 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22396 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22397 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22398 else
22399 case "${target}" in
22400 *-*-solaris2*)
22401 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22402 # format.
22404 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22405 # /usr/ccs/bin/ld has been configured.
22406 ld_ver=`$gcc_cv_ld -V 2>&1`
22407 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22408 ld_vers=`echo $ld_ver | sed -n \
22409 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22410 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22411 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22414 esac
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22419 $as_echo_n "checking linker for .hidden support... " >&6; }
22420 if test "${gcc_cv_ld_hidden+set}" = set; then :
22421 $as_echo_n "(cached) " >&6
22422 else
22423 if test $in_tree_ld = yes ; then
22424 gcc_cv_ld_hidden=no
22425 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 \
22426 && test $in_tree_ld_is_elf = yes; then
22427 gcc_cv_ld_hidden=yes
22429 else
22430 gcc_cv_ld_hidden=yes
22431 if test x"$ld_is_gold" = xyes; then
22433 elif echo "$ld_ver" | grep GNU > /dev/null; then
22434 case "${target}" in
22435 mmix-knuth-mmixware)
22436 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22437 gcc_cv_ld_hidden=no
22439 esac
22440 if test 0"$ld_date" -lt 20020404; then
22441 if test -n "$ld_date"; then
22442 # If there was date string, but was earlier than 2002-04-04, fail
22443 gcc_cv_ld_hidden=no
22444 elif test -z "$ld_vers"; then
22445 # If there was no date string nor ld version number, something is wrong
22446 gcc_cv_ld_hidden=no
22447 else
22448 test -z "$ld_vers_patch" && ld_vers_patch=0
22449 if test "$ld_vers_major" -lt 2; then
22450 gcc_cv_ld_hidden=no
22451 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22452 gcc_cv_ld_hidden="no"
22453 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22454 gcc_cv_ld_hidden=no
22458 else
22459 case "${target}" in
22460 *-*-darwin*)
22461 # Darwin ld has some visibility support.
22462 gcc_cv_ld_hidden=yes
22464 hppa64*-*-hpux* | ia64*-*-hpux*)
22465 gcc_cv_ld_hidden=yes
22467 *-*-solaris2.1[0-9]*)
22468 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22469 # .symbolic was only added in Solaris 9 12/02.
22470 gcc_cv_ld_hidden=yes
22473 gcc_cv_ld_hidden=no
22475 esac
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22480 $as_echo "$gcc_cv_ld_hidden" >&6; }
22481 libgcc_visibility=no
22484 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22485 libgcc_visibility=yes
22487 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22492 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22493 gcc_cv_ld_ro_rw_mix=unknown
22494 if test $in_tree_ld = yes ; then
22495 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 \
22496 && test $in_tree_ld_is_elf = yes; then
22497 gcc_cv_ld_ro_rw_mix=read-write
22499 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22500 echo '.section myfoosect, "a"' > conftest1.s
22501 echo '.section myfoosect, "aw"' > conftest2.s
22502 echo '.byte 1' >> conftest2.s
22503 echo '.section myfoosect, "a"' > conftest3.s
22504 echo '.byte 0' >> conftest3.s
22505 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22506 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22507 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22508 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22509 conftest2.o conftest3.o > /dev/null 2>&1; then
22510 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22511 | sed -e '/myfoosect/!d' -e N`
22512 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22513 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22514 gcc_cv_ld_ro_rw_mix=read-only
22515 else
22516 gcc_cv_ld_ro_rw_mix=read-write
22520 rm -f conftest.* conftest[123].*
22522 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22524 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22528 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22530 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22531 case "${target}" in
22532 *-*-solaris2*)
22534 # Solaris 2 ld -V output looks like this for a regular version:
22536 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22538 # but test versions add stuff at the end:
22540 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22542 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22543 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22544 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22545 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22546 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22547 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22550 esac
22553 # Check whether --enable-initfini-array was given.
22554 if test "${enable_initfini_array+set}" = set; then :
22555 enableval=$enable_initfini_array;
22556 else
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22559 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22560 if test "${gcc_cv_initfini_array+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562 else
22563 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22564 case "${target}" in
22565 ia64-*)
22566 if test "$cross_compiling" = yes; then :
22567 gcc_cv_initfini_array=no
22568 else
22569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22570 /* end confdefs.h. */
22572 #ifndef __ELF__
22573 #error Not an ELF OS
22574 #endif
22575 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22576 if it can be used. */
22577 static int x = -1;
22578 int main (void) { return x; }
22579 int foo (void) { x = 0; }
22580 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22582 _ACEOF
22583 if ac_fn_c_try_run "$LINENO"; then :
22584 gcc_cv_initfini_array=yes
22585 else
22586 gcc_cv_initfini_array=no
22588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22589 conftest.$ac_objext conftest.beam conftest.$ac_ext
22593 gcc_cv_initfini_array=no
22594 if test $in_tree_ld = yes ; then
22595 if test "$gcc_cv_gld_major_version" -eq 2 \
22596 -a "$gcc_cv_gld_minor_version" -ge 22 \
22597 -o "$gcc_cv_gld_major_version" -gt 2 \
22598 && test $in_tree_ld_is_elf = yes; then
22599 gcc_cv_initfini_array=yes
22601 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22602 cat > conftest.s <<\EOF
22603 .section .dtors,"a",%progbits
22604 .balign 4
22605 .byte 'A', 'A', 'A', 'A'
22606 .section .ctors,"a",%progbits
22607 .balign 4
22608 .byte 'B', 'B', 'B', 'B'
22609 .section .fini_array.65530,"a",%progbits
22610 .balign 4
22611 .byte 'C', 'C', 'C', 'C'
22612 .section .init_array.65530,"a",%progbits
22613 .balign 4
22614 .byte 'D', 'D', 'D', 'D'
22615 .section .dtors.64528,"a",%progbits
22616 .balign 4
22617 .byte 'E', 'E', 'E', 'E'
22618 .section .ctors.64528,"a",%progbits
22619 .balign 4
22620 .byte 'F', 'F', 'F', 'F'
22621 .section .fini_array.01005,"a",%progbits
22622 .balign 4
22623 .byte 'G', 'G', 'G', 'G'
22624 .section .init_array.01005,"a",%progbits
22625 .balign 4
22626 .byte 'H', 'H', 'H', 'H'
22627 .text
22628 .globl _start
22629 _start:
22631 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22632 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22633 && $gcc_cv_objdump -s -j .init_array conftest \
22634 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22635 && $gcc_cv_objdump -s -j .fini_array conftest \
22636 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22637 gcc_cv_initfini_array=yes
22639 rm -f conftest conftest.*
22641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22642 /* end confdefs.h. */
22644 #ifndef __ELF__
22645 # error Not an ELF OS
22646 #endif
22647 #include <stdlib.h>
22648 #if defined __GLIBC_PREREQ
22649 # if __GLIBC_PREREQ (2, 4)
22650 # else
22651 # error GLIBC 2.4 required
22652 # endif
22653 #else
22654 # if defined __sun__ && defined __svr4__
22655 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22656 # else
22657 # error The C library not known to support .init_array/.fini_array
22658 # endif
22659 #endif
22661 _ACEOF
22662 if ac_fn_c_try_cpp "$LINENO"; then :
22664 else
22665 gcc_cv_initfini_array=no
22667 rm -f conftest.err conftest.$ac_ext;;
22668 esac
22669 else
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22671 $as_echo_n "checking cross compile... guessing... " >&6; }
22672 gcc_cv_initfini_array=no
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22676 $as_echo "$gcc_cv_initfini_array" >&6; }
22677 enable_initfini_array=$gcc_cv_initfini_array
22681 if test $enable_initfini_array = yes; then
22683 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22687 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22689 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22690 if test "${gcc_cv_as_leb128+set}" = set; then :
22691 $as_echo_n "(cached) " >&6
22692 else
22693 gcc_cv_as_leb128=no
22694 if test $in_tree_gas = yes; then
22695 if test $in_tree_gas_is_elf = yes \
22696 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22697 then gcc_cv_as_leb128=yes
22699 elif test x$gcc_cv_as != x; then
22700 $as_echo ' .data
22701 .uleb128 L2 - L1
22703 .uleb128 1280
22704 .sleb128 -1010
22705 L2:' > conftest.s
22706 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22708 (eval $ac_try) 2>&5
22709 ac_status=$?
22710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22711 test $ac_status = 0; }; }
22712 then
22713 # GAS versions before 2.11 do not support uleb128,
22714 # despite appearing to.
22715 # ??? There exists an elf-specific test that will crash
22716 # the assembler. Perhaps it's better to figure out whether
22717 # arbitrary sections are supported and try the test.
22718 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22719 if echo "$as_ver" | grep GNU > /dev/null; then
22720 as_vers=`echo $as_ver | sed -n \
22721 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22722 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22723 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22724 if test $as_major -eq 2 && test $as_minor -lt 11
22725 then :
22726 else gcc_cv_as_leb128=yes
22729 else
22730 echo "configure: failed program was" >&5
22731 cat conftest.s >&5
22733 rm -f conftest.o conftest.s
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22737 $as_echo "$gcc_cv_as_leb128" >&6; }
22738 if test $gcc_cv_as_leb128 = yes; then
22740 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22744 # Check if we have assembler support for unwind directives.
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22746 $as_echo_n "checking assembler for cfi directives... " >&6; }
22747 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22749 else
22750 gcc_cv_as_cfi_directive=no
22751 if test x$gcc_cv_as != x; then
22752 $as_echo ' .text
22753 .cfi_startproc
22754 .cfi_offset 0, 0
22755 .cfi_same_value 1
22756 .cfi_def_cfa 1, 2
22757 .cfi_escape 1, 2, 3, 4, 5
22758 .cfi_endproc' > conftest.s
22759 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22761 (eval $ac_try) 2>&5
22762 ac_status=$?
22763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22764 test $ac_status = 0; }; }
22765 then
22766 case "$target" in
22767 *-*-solaris*)
22768 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22769 # read-only and read-write sections, we need to make sure that the
22770 # assembler used emits read-write .eh_frame sections.
22771 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22772 if test "x$gcc_cv_objdump" != x; then
22773 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22774 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22775 gcc_cv_as_cfi_directive=no
22776 else
22777 case "$target" in
22778 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22779 # On Solaris/x86, make sure that GCC and assembler agree on using
22780 # read-only .eh_frame sections for 64-bit.
22781 if test x$gas = xyes; then
22782 as_ix86_64_opt="--64"
22783 else
22784 as_ix86_64_opt="-xarch=amd64"
22786 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s > /dev/null 2>&1 && \
22787 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22788 sed -e /.eh_frame/!d -e N | \
22789 grep READONLY > /dev/null; then
22790 gcc_cv_as_cfi_directive=yes
22791 else
22792 gcc_cv_as_cfi_directive=no
22796 gcc_cv_as_cfi_directive=yes
22798 esac
22800 else
22801 # no objdump, err on the side of caution
22802 gcc_cv_as_cfi_directive=no
22804 else
22805 gcc_cv_as_cfi_directive=yes
22808 *-*-*)
22809 gcc_cv_as_cfi_directive=yes
22811 esac
22812 else
22813 echo "configure: failed program was" >&5
22814 cat conftest.s >&5
22816 rm -f conftest.o conftest.s
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22820 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22822 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22824 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22825 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22826 $as_echo_n "(cached) " >&6
22827 else
22828 gcc_cv_as_cfi_advance_working=no
22829 if test x$gcc_cv_as != x; then
22830 $as_echo ' .text
22831 .cfi_startproc
22832 .cfi_adjust_cfa_offset 64
22833 .skip 75040, 0
22834 .cfi_adjust_cfa_offset 128
22835 .cfi_endproc' > conftest.s
22836 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22838 (eval $ac_try) 2>&5
22839 ac_status=$?
22840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22841 test $ac_status = 0; }; }
22842 then
22844 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22845 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22846 gcc_cv_as_cfi_advance_working=yes
22849 else
22850 echo "configure: failed program was" >&5
22851 cat conftest.s >&5
22853 rm -f conftest.o conftest.s
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22857 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22859 else
22860 # no objdump, err on the side of caution
22861 gcc_cv_as_cfi_advance_working=no
22865 cat >>confdefs.h <<_ACEOF
22866 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22867 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22868 _ACEOF
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22873 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22874 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22875 $as_echo_n "(cached) " >&6
22876 else
22877 gcc_cv_as_cfi_personality_directive=no
22878 if test x$gcc_cv_as != x; then
22879 $as_echo ' .text
22880 .cfi_startproc
22881 .cfi_personality 0, symbol
22882 .cfi_endproc' > conftest.s
22883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22885 (eval $ac_try) 2>&5
22886 ac_status=$?
22887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22888 test $ac_status = 0; }; }
22889 then
22890 gcc_cv_as_cfi_personality_directive=yes
22891 else
22892 echo "configure: failed program was" >&5
22893 cat conftest.s >&5
22895 rm -f conftest.o conftest.s
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22899 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22902 cat >>confdefs.h <<_ACEOF
22903 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22904 then echo 1; else echo 0; fi`
22905 _ACEOF
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22909 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22910 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22912 else
22913 gcc_cv_as_cfi_sections_directive=no
22914 if test x$gcc_cv_as != x; then
22915 $as_echo ' .text
22916 .cfi_sections .debug_frame, .eh_frame
22917 .cfi_startproc
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 case $target_os in
22927 win32 | pe | cygwin* | mingw32* | uwin*)
22928 # Need to check that we generated the correct relocation for the
22929 # .debug_frame section. This was fixed for binutils 2.21.
22930 gcc_cv_as_cfi_sections_directive=no
22931 if test "x$gcc_cv_objdump" != x; then
22932 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22933 grep secrel > /dev/null; then
22934 gcc_cv_as_cfi_sections_directive=yes
22939 gcc_cv_as_cfi_sections_directive=yes
22941 esac
22942 else
22943 echo "configure: failed program was" >&5
22944 cat conftest.s >&5
22946 rm -f conftest.o conftest.s
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22950 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22954 cat >>confdefs.h <<_ACEOF
22955 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22956 then echo 1; else echo 0; fi`
22957 _ACEOF
22960 # GAS versions up to and including 2.11.0 may mis-optimize
22961 # .eh_frame data.
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22963 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22964 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22965 $as_echo_n "(cached) " >&6
22966 else
22967 gcc_cv_as_eh_frame=no
22968 if test $in_tree_gas = yes; then
22969 if test $in_tree_gas_is_elf = yes \
22970 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22971 then gcc_cv_as_eh_frame=yes
22973 elif test x$gcc_cv_as != x; then
22974 $as_echo ' .text
22975 .LFB1:
22976 .4byte 0
22977 .L1:
22978 .4byte 0
22979 .LFE1:
22980 .section .eh_frame,"aw",@progbits
22981 __FRAME_BEGIN__:
22982 .4byte .LECIE1-.LSCIE1
22983 .LSCIE1:
22984 .4byte 0x0
22985 .byte 0x1
22986 .ascii "z\0"
22987 .byte 0x1
22988 .byte 0x78
22989 .byte 0x1a
22990 .byte 0x0
22991 .byte 0x4
22992 .4byte 1
22993 .p2align 1
22994 .LECIE1:
22995 .LSFDE1:
22996 .4byte .LEFDE1-.LASFDE1
22997 .LASFDE1:
22998 .4byte .LASFDE1-__FRAME_BEGIN__
22999 .4byte .LFB1
23000 .4byte .LFE1-.LFB1
23001 .byte 0x4
23002 .4byte .LFE1-.LFB1
23003 .byte 0x4
23004 .4byte .L1-.LFB1
23005 .LEFDE1:' > conftest.s
23006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23008 (eval $ac_try) 2>&5
23009 ac_status=$?
23010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23011 test $ac_status = 0; }; }
23012 then
23013 cat > conftest.lit <<EOF
23014 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23015 0010 01000000 12000000 18000000 00000000 ................
23016 0020 08000000 04080000 0044 .........D
23018 cat > conftest.big <<EOF
23019 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23020 0010 00000001 00000012 00000018 00000000 ................
23021 0020 00000008 04000000 0844 .........D
23023 # If the assembler didn't choke, and we can objdump,
23024 # and we got the correct data, then succeed.
23025 # The text in the here-document typically retains its unix-style line
23026 # endings, while the output of objdump will use host line endings.
23027 # Therefore, use diff -b for the comparisons.
23028 if test x$gcc_cv_objdump != x \
23029 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23030 | tail -3 > conftest.got \
23031 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23032 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23033 then
23034 gcc_cv_as_eh_frame=yes
23035 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23037 (eval $ac_try) 2>&5
23038 ac_status=$?
23039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23040 test $ac_status = 0; }; }; then
23041 gcc_cv_as_eh_frame=buggy
23042 else
23043 # Uh oh, what do we do now?
23044 gcc_cv_as_eh_frame=no
23046 else
23047 echo "configure: failed program was" >&5
23048 cat conftest.s >&5
23050 rm -f conftest.o conftest.s
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23054 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23057 if test $gcc_cv_as_eh_frame = buggy; then
23059 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23064 $as_echo_n "checking assembler for section merging support... " >&6; }
23065 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23066 $as_echo_n "(cached) " >&6
23067 else
23068 gcc_cv_as_shf_merge=no
23069 if test $in_tree_gas = yes; then
23070 if test $in_tree_gas_is_elf = yes \
23071 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23072 then gcc_cv_as_shf_merge=yes
23074 elif test x$gcc_cv_as != x; then
23075 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23076 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23078 (eval $ac_try) 2>&5
23079 ac_status=$?
23080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23081 test $ac_status = 0; }; }
23082 then
23083 gcc_cv_as_shf_merge=yes
23084 else
23085 echo "configure: failed program was" >&5
23086 cat conftest.s >&5
23088 rm -f conftest.o conftest.s
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23092 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23094 if test $gcc_cv_as_shf_merge = no; then
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23096 $as_echo_n "checking assembler for section merging support... " >&6; }
23097 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23098 $as_echo_n "(cached) " >&6
23099 else
23100 gcc_cv_as_shf_merge=no
23101 if test $in_tree_gas = yes; then
23102 if test $in_tree_gas_is_elf = yes \
23103 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23104 then gcc_cv_as_shf_merge=yes
23106 elif test x$gcc_cv_as != x; then
23107 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23108 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113 test $ac_status = 0; }; }
23114 then
23115 gcc_cv_as_shf_merge=yes
23116 else
23117 echo "configure: failed program was" >&5
23118 cat conftest.s >&5
23120 rm -f conftest.o conftest.s
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23124 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23128 cat >>confdefs.h <<_ACEOF
23129 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23130 _ACEOF
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23134 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23135 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23136 $as_echo_n "(cached) " >&6
23137 else
23138 gcc_cv_as_comdat_group=no
23139 if test $in_tree_gas = yes; then
23140 if test $in_tree_gas_is_elf = yes \
23141 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23142 then gcc_cv_as_comdat_group=yes
23144 elif test x$gcc_cv_as != x; then
23145 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23148 (eval $ac_try) 2>&5
23149 ac_status=$?
23150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23151 test $ac_status = 0; }; }
23152 then
23153 gcc_cv_as_comdat_group=yes
23154 else
23155 echo "configure: failed program was" >&5
23156 cat conftest.s >&5
23158 rm -f conftest.o conftest.s
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23162 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23164 if test $gcc_cv_as_comdat_group = yes; then
23165 gcc_cv_as_comdat_group_percent=no
23166 gcc_cv_as_comdat_group_group=no
23167 else
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23169 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23170 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23171 $as_echo_n "(cached) " >&6
23172 else
23173 gcc_cv_as_comdat_group_percent=no
23174 if test $in_tree_gas = yes; then
23175 if test $in_tree_gas_is_elf = yes \
23176 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23177 then gcc_cv_as_comdat_group_percent=yes
23179 elif test x$gcc_cv_as != x; then
23180 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186 test $ac_status = 0; }; }
23187 then
23188 gcc_cv_as_comdat_group_percent=yes
23189 else
23190 echo "configure: failed program was" >&5
23191 cat conftest.s >&5
23193 rm -f conftest.o conftest.s
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23197 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23199 if test $gcc_cv_as_comdat_group_percent = yes; then
23200 gcc_cv_as_comdat_group_group=no
23201 else
23202 case "${target}" in
23203 # Sun as uses a completely different syntax.
23204 *-*-solaris2*)
23205 case "${target}" in
23206 sparc*-*-solaris2*)
23207 conftest_s='
23208 .group foo,".text%foo",#comdat
23209 .section ".text%foo", #alloc,#execinstr,#progbits
23210 .globl foo
23211 foo:
23214 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23215 conftest_s='
23216 .group foo,.text%foo,#comdat
23217 .section .text%foo, "ax", @progbits
23218 .globl foo
23219 foo:
23222 esac
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23224 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23225 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23226 $as_echo_n "(cached) " >&6
23227 else
23228 gcc_cv_as_comdat_group_group=no
23229 if test x$gcc_cv_as != x; then
23230 $as_echo "$conftest_s" > conftest.s
23231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23236 test $ac_status = 0; }; }
23237 then
23238 gcc_cv_as_comdat_group_group=yes
23239 else
23240 echo "configure: failed program was" >&5
23241 cat conftest.s >&5
23243 rm -f conftest.o conftest.s
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23247 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23250 esac
23251 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23252 gcc_cv_as_comdat_group_group=no
23256 if test x"$ld_is_gold" = xyes; then
23257 comdat_group=yes
23258 elif test $in_tree_ld = yes ; then
23259 comdat_group=no
23260 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 \
23261 && test $in_tree_ld_is_elf = yes; then
23262 comdat_group=yes
23264 elif echo "$ld_ver" | grep GNU > /dev/null; then
23265 comdat_group=yes
23266 if test 0"$ld_date" -lt 20050308; then
23267 if test -n "$ld_date"; then
23268 # If there was date string, but was earlier than 2005-03-08, fail
23269 comdat_group=no
23270 elif test "$ld_vers_major" -lt 2; then
23271 comdat_group=no
23272 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23273 comdat_group=no
23276 else
23277 case "${target}" in
23278 *-*-solaris2.1[1-9]*)
23279 comdat_group=no
23280 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23281 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23282 # version 1.688.
23284 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23285 # least ld version 1.2267.
23286 if test "$ld_vers_major" -gt 1; then
23287 comdat_group=yes
23288 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23289 comdat_group=yes
23290 elif test "$ld_vers_minor" -ge 2267; then
23291 comdat_group=yes
23295 # Assume linkers other than GNU ld don't support COMDAT group.
23296 comdat_group=no
23298 esac
23300 # Allow overriding the automatic COMDAT group tests above.
23301 # Check whether --enable-comdat was given.
23302 if test "${enable_comdat+set}" = set; then :
23303 enableval=$enable_comdat; comdat_group="$enable_comdat"
23306 if test $comdat_group = no; then
23307 gcc_cv_as_comdat_group=no
23308 gcc_cv_as_comdat_group_percent=no
23309 gcc_cv_as_comdat_group_group=no
23312 cat >>confdefs.h <<_ACEOF
23313 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23314 || test $gcc_cv_as_comdat_group_percent = yes \
23315 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23316 _ACEOF
23319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23320 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23321 if test "${gcc_cv_as_discriminator+set}" = set; then :
23322 $as_echo_n "(cached) " >&6
23323 else
23324 gcc_cv_as_discriminator=no
23325 if test $in_tree_gas = yes; then
23326 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23327 then gcc_cv_as_discriminator=yes
23329 elif test x$gcc_cv_as != x; then
23330 $as_echo ' .text
23331 .file 1 "conf.c"
23332 .loc 1 1 0 discriminator 1' > conftest.s
23333 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23335 (eval $ac_try) 2>&5
23336 ac_status=$?
23337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23338 test $ac_status = 0; }; }
23339 then
23340 gcc_cv_as_discriminator=yes
23341 else
23342 echo "configure: failed program was" >&5
23343 cat conftest.s >&5
23345 rm -f conftest.o conftest.s
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23349 $as_echo "$gcc_cv_as_discriminator" >&6; }
23350 if test $gcc_cv_as_discriminator = yes; then
23352 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23356 # Thread-local storage - the check is heavily parameterized.
23357 conftest_s=
23358 tls_first_major=
23359 tls_first_minor=
23360 tls_as_opt=
23361 case "$target" in
23362 alpha*-*-*)
23363 conftest_s='
23364 .section ".tdata","awT",@progbits
23365 foo: .long 25
23366 .text
23367 ldq $27,__tls_get_addr($29) !literal!1
23368 lda $16,foo($29) !tlsgd!1
23369 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23370 ldq $27,__tls_get_addr($29) !literal!2
23371 lda $16,foo($29) !tlsldm!2
23372 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23373 ldq $1,foo($29) !gotdtprel
23374 ldah $2,foo($29) !dtprelhi
23375 lda $3,foo($2) !dtprello
23376 lda $4,foo($29) !dtprel
23377 ldq $1,foo($29) !gottprel
23378 ldah $2,foo($29) !tprelhi
23379 lda $3,foo($2) !tprello
23380 lda $4,foo($29) !tprel'
23381 tls_first_major=2
23382 tls_first_minor=13
23383 tls_as_opt=--fatal-warnings
23385 cris-*-*|crisv32-*-*)
23386 conftest_s='
23387 .section ".tdata","awT",@progbits
23388 x: .long 25
23389 .text
23390 move.d x:IE,$r10
23391 nop'
23392 tls_first_major=2
23393 tls_first_minor=20
23394 tls_as_opt=--fatal-warnings
23396 frv*-*-*)
23397 conftest_s='
23398 .section ".tdata","awT",@progbits
23399 x: .long 25
23400 .text
23401 call #gettlsoff(x)'
23402 tls_first_major=2
23403 tls_first_minor=14
23405 hppa*-*-linux*)
23406 conftest_s='
23407 t1: .reg %r20
23408 t2: .reg %r21
23409 gp: .reg %r19
23410 .section ".tdata","awT",@progbits
23411 foo: .long 25
23412 .text
23413 .align 4
23414 addil LT%foo-$tls_gdidx$,gp
23415 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23416 b __tls_get_addr
23418 addil LT%foo-$tls_ldidx$,gp
23419 b __tls_get_addr
23420 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23421 addil LR%foo-$tls_dtpoff$,%ret0
23422 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23423 mfctl %cr27,%t1
23424 addil LT%foo-$tls_ieoff$,gp
23425 ldw RT%foo-$tls_ieoff$(%r1),%t2
23426 add %t1,%t2,%t3
23427 mfctl %cr27,%t1
23428 addil LR%foo-$tls_leoff$,%t1
23429 ldo RR%foo-$tls_leoff$(%r1),%t2'
23430 tls_first_major=2
23431 tls_first_minor=15
23432 tls_as_opt=--fatal-warnings
23434 arm*-*-*)
23435 conftest_s='
23436 .section ".tdata","awT",%progbits
23437 foo: .long 25
23438 .text
23439 .word foo(gottpoff)
23440 .word foo(tpoff)
23441 .word foo(tlsgd)
23442 .word foo(tlsldm)
23443 .word foo(tlsldo)'
23444 tls_first_major=2
23445 tls_first_minor=17
23447 i[34567]86-*-* | x86_64-*-*)
23448 case "$target" in
23449 i[34567]86-*-solaris2.* | x86_64-*-solaris2.1[0-9]*)
23450 on_solaris=yes
23453 on_solaris=no
23455 esac
23456 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23457 conftest_s='
23458 .section .tdata,"awt",@progbits'
23459 tls_first_major=0
23460 tls_first_minor=0
23461 tls_section_flag=t
23463 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23465 else
23466 conftest_s='
23467 .section ".tdata","awT",@progbits'
23468 tls_first_major=2
23469 tls_first_minor=14
23470 tls_section_flag=T
23471 tls_as_opt="--fatal-warnings"
23473 case "$target" in
23474 i[34567]86-*-*)
23475 conftest_s="$conftest_s
23476 foo: .long 25
23477 .text
23478 movl %gs:0, %eax
23479 leal foo@tlsgd(,%ebx,1), %eax
23480 leal foo@tlsldm(%ebx), %eax
23481 leal foo@dtpoff(%eax), %edx
23482 movl foo@gottpoff(%ebx), %eax
23483 subl foo@gottpoff(%ebx), %eax
23484 addl foo@gotntpoff(%ebx), %eax
23485 movl foo@indntpoff, %eax
23486 movl \$foo@tpoff, %eax
23487 subl \$foo@tpoff, %eax
23488 leal foo@ntpoff(%ecx), %eax"
23490 x86_64-*-*)
23491 if test x$on_solaris = xyes; then
23492 case $gas_flag in
23493 yes) tls_as_opt="$tls_as_opt --64" ;;
23494 no) tls_as_opt="$tls_as_opt -xarch=amd64" ;;
23495 esac
23497 conftest_s="$conftest_s
23498 foo: .long 25
23499 .text
23500 movq %fs:0, %rax
23501 leaq foo@tlsgd(%rip), %rdi
23502 leaq foo@tlsld(%rip), %rdi
23503 leaq foo@dtpoff(%rax), %rdx
23504 movq foo@gottpoff(%rip), %rax
23505 movq \$foo@tpoff, %rax"
23507 esac
23509 ia64-*-*)
23510 conftest_s='
23511 .section ".tdata","awT",@progbits
23512 foo: data8 25
23513 .text
23514 addl r16 = @ltoff(@dtpmod(foo#)), gp
23515 addl r17 = @ltoff(@dtprel(foo#)), gp
23516 addl r18 = @ltoff(@tprel(foo#)), gp
23517 addl r19 = @dtprel(foo#), gp
23518 adds r21 = @dtprel(foo#), r13
23519 movl r23 = @dtprel(foo#)
23520 addl r20 = @tprel(foo#), gp
23521 adds r22 = @tprel(foo#), r13
23522 movl r24 = @tprel(foo#)'
23523 tls_first_major=2
23524 tls_first_minor=13
23525 tls_as_opt=--fatal-warnings
23527 microblaze*-*-*)
23528 conftest_s='
23529 .section .tdata,"awT",@progbits
23531 .word 2
23532 .text
23533 addik r5,r20,x@TLSGD
23534 addik r5,r20,x@TLSLDM'
23535 tls_first_major=2
23536 tls_first_minor=20
23537 tls_as_opt='--fatal-warnings'
23539 mips*-*-*)
23540 conftest_s='
23541 .section .tdata,"awT",@progbits
23543 .word 2
23544 .text
23545 addiu $4, $28, %tlsgd(x)
23546 addiu $4, $28, %tlsldm(x)
23547 lui $4, %dtprel_hi(x)
23548 addiu $4, $4, %dtprel_lo(x)
23549 lw $4, %gottprel(x)($28)
23550 lui $4, %tprel_hi(x)
23551 addiu $4, $4, %tprel_lo(x)'
23552 tls_first_major=2
23553 tls_first_minor=16
23554 tls_as_opt='-32 --fatal-warnings'
23556 m68k-*-*)
23557 conftest_s='
23558 .section .tdata,"awT",@progbits
23560 .word 2
23561 .text
23562 foo:
23563 move.l x@TLSGD(%a5),%a0
23564 move.l x@TLSLDM(%a5),%a0
23565 move.l x@TLSLDO(%a5),%a0
23566 move.l x@TLSIE(%a5),%a0
23567 move.l x@TLSLE(%a5),%a0'
23568 tls_first_major=2
23569 tls_first_minor=19
23570 tls_as_opt='--fatal-warnings'
23572 nios2-*-*)
23573 conftest_s='
23574 .section ".tdata","awT",@progbits'
23575 tls_first_major=2
23576 tls_first_minor=23
23577 tls_as_opt="--fatal-warnings"
23579 aarch64*-*-*)
23580 conftest_s='
23581 .section ".tdata","awT",%progbits
23582 foo: .long 25
23583 .text
23584 adrp x0, :tlsgd:x
23585 add x0, x0, #:tlsgd_lo12:x
23586 bl __tls_get_addr
23587 nop'
23588 tls_first_major=2
23589 tls_first_minor=20
23590 tls_as_opt='--fatal-warnings'
23592 powerpc-ibm-aix*)
23593 conftest_s='
23594 .extern __get_tpointer
23595 .toc
23596 LC..1:
23597 .tc a[TC],a[TL]@le
23598 .csect .text[PR]
23599 .tlstest:
23600 lwz 9,LC..1(2)
23601 bla __get_tpointer
23602 lwzx 3,9,3
23603 .globl a
23604 .csect a[TL],4
23606 .space 4'
23607 tls_first_major=0
23608 tls_first_minor=0
23610 powerpc64*-*-*)
23611 conftest_s='
23612 .section ".tdata","awT",@progbits
23613 .align 3
23614 ld0: .space 8
23615 ld1: .space 8
23616 x1: .space 8
23617 x2: .space 8
23618 x3: .space 8
23619 .text
23620 addi 3,2,ld0@got@tlsgd
23621 bl .__tls_get_addr
23623 addi 3,2,ld1@toc
23624 bl .__tls_get_addr
23626 addi 3,2,x1@got@tlsld
23627 bl .__tls_get_addr
23629 addi 9,3,x1@dtprel
23630 bl .__tls_get_addr
23632 addis 9,3,x2@dtprel@ha
23633 addi 9,9,x2@dtprel@l
23634 bl .__tls_get_addr
23636 ld 9,x3@got@dtprel(2)
23637 add 9,9,3
23638 bl .__tls_get_addr
23639 nop'
23640 tls_first_major=2
23641 tls_first_minor=14
23642 tls_as_opt="-a64 --fatal-warnings"
23644 powerpc*-*-*)
23645 conftest_s='
23646 .section ".tdata","awT",@progbits
23647 .align 2
23648 ld0: .space 4
23649 ld1: .space 4
23650 x1: .space 4
23651 x2: .space 4
23652 x3: .space 4
23653 .text
23654 addi 3,31,ld0@got@tlsgd
23655 bl __tls_get_addr
23656 addi 3,31,x1@got@tlsld
23657 bl __tls_get_addr
23658 addi 9,3,x1@dtprel
23659 addis 9,3,x2@dtprel@ha
23660 addi 9,9,x2@dtprel@l
23661 lwz 9,x3@got@tprel(31)
23662 add 9,9,x@tls
23663 addi 9,2,x1@tprel
23664 addis 9,2,x2@tprel@ha
23665 addi 9,9,x2@tprel@l'
23666 tls_first_major=2
23667 tls_first_minor=14
23668 tls_as_opt="-a32 --fatal-warnings"
23670 s390-*-*)
23671 conftest_s='
23672 .section ".tdata","awT",@progbits
23673 foo: .long 25
23674 .text
23675 .long foo@TLSGD
23676 .long foo@TLSLDM
23677 .long foo@DTPOFF
23678 .long foo@NTPOFF
23679 .long foo@GOTNTPOFF
23680 .long foo@INDNTPOFF
23681 l %r1,foo@GOTNTPOFF(%r12)
23682 l %r1,0(%r1):tls_load:foo
23683 bas %r14,0(%r1,%r13):tls_gdcall:foo
23684 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23685 tls_first_major=2
23686 tls_first_minor=14
23687 tls_as_opt="-m31 --fatal-warnings"
23689 s390x-*-*)
23690 conftest_s='
23691 .section ".tdata","awT",@progbits
23692 foo: .long 25
23693 .text
23694 .quad foo@TLSGD
23695 .quad foo@TLSLDM
23696 .quad foo@DTPOFF
23697 .quad foo@NTPOFF
23698 .quad foo@GOTNTPOFF
23699 lg %r1,foo@GOTNTPOFF(%r12)
23700 larl %r1,foo@INDNTPOFF
23701 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23702 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23703 tls_first_major=2
23704 tls_first_minor=14
23705 tls_as_opt="-m64 -Aesame --fatal-warnings"
23707 sh-*-* | sh[34]-*-*)
23708 conftest_s='
23709 .section ".tdata","awT",@progbits
23710 foo: .long 25
23711 .text
23712 .long foo@TLSGD
23713 .long foo@TLSLDM
23714 .long foo@DTPOFF
23715 .long foo@GOTTPOFF
23716 .long foo@TPOFF'
23717 tls_first_major=2
23718 tls_first_minor=13
23719 tls_as_opt=--fatal-warnings
23721 sparc*-*-*)
23722 case "$target" in
23723 sparc*-sun-solaris2.*)
23724 on_solaris=yes
23727 on_solaris=no
23729 esac
23730 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23731 conftest_s='
23732 .section ".tdata",#alloc,#write,#tls'
23733 tls_first_major=0
23734 tls_first_minor=0
23735 else
23736 conftest_s='
23737 .section ".tdata","awT",@progbits'
23738 tls_first_major=2
23739 tls_first_minor=14
23740 tls_as_opt="-32 --fatal-warnings"
23742 conftest_s="$conftest_s
23743 foo: .long 25
23744 .text
23745 sethi %tgd_hi22(foo), %o0
23746 add %o0, %tgd_lo10(foo), %o1
23747 add %l7, %o1, %o0, %tgd_add(foo)
23748 call __tls_get_addr, %tgd_call(foo)
23749 sethi %tldm_hi22(foo), %l1
23750 add %l1, %tldm_lo10(foo), %l2
23751 add %l7, %l2, %o0, %tldm_add(foo)
23752 call __tls_get_addr, %tldm_call(foo)
23753 sethi %tldo_hix22(foo), %l3
23754 xor %l3, %tldo_lox10(foo), %l4
23755 add %o0, %l4, %l5, %tldo_add(foo)
23756 sethi %tie_hi22(foo), %o3
23757 add %o3, %tie_lo10(foo), %o3
23758 ld [%l7 + %o3], %o2, %tie_ld(foo)
23759 add %g7, %o2, %o4, %tie_add(foo)
23760 sethi %tle_hix22(foo), %l1
23761 xor %l1, %tle_lox10(foo), %o5
23762 ld [%g7 + %o5], %o1"
23764 tilepro*-*-*)
23765 conftest_s='
23766 .section ".tdata","awT",@progbits
23767 foo: .long 25
23768 .text
23769 addli r0, zero, tls_gd(foo)
23770 auli r0, zero, tls_gd_ha16(foo)
23771 addli r0, r0, tls_gd_lo16(foo)
23772 jal __tls_get_addr
23773 addli r0, zero, tls_ie(foo)
23774 auli r0, r0, tls_ie_ha16(foo)
23775 addli r0, r0, tls_ie_lo16(foo)'
23776 tls_first_major=2
23777 tls_first_minor=22
23778 tls_as_opt="--fatal-warnings"
23780 tilegx*-*-*)
23781 conftest_s='
23782 .section ".tdata","awT",@progbits
23783 foo: .long 25
23784 .text
23785 shl16insli r0, zero, hw0_last_tls_gd(foo)
23786 shl16insli r0, zero, hw1_last_tls_gd(foo)
23787 shl16insli r0, r0, hw0_tls_gd(foo)
23788 jal __tls_get_addr
23789 shl16insli r0, zero, hw1_last_tls_ie(foo)
23790 shl16insli r0, r0, hw0_tls_ie(foo)'
23791 tls_first_major=2
23792 tls_first_minor=22
23793 tls_as_opt="--fatal-warnings"
23795 xtensa*-*-*)
23796 conftest_s='
23797 .section ".tdata","awT",@progbits
23798 foo: .long 25
23799 .text
23800 movi a8, foo@TLSFUNC
23801 movi a10, foo@TLSARG
23802 callx8.tls a8, foo@TLSCALL'
23803 tls_first_major=2
23804 tls_first_minor=19
23806 esac
23807 set_have_as_tls=no
23808 if test "x$enable_tls" = xno ; then
23809 : # TLS explicitly disabled.
23810 elif test "x$enable_tls" = xyes ; then
23811 set_have_as_tls=yes # TLS explicitly enabled.
23812 elif test -z "$tls_first_major"; then
23813 : # If we don't have a check, assume no support.
23814 else
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23816 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23817 if test "${gcc_cv_as_tls+set}" = set; then :
23818 $as_echo_n "(cached) " >&6
23819 else
23820 gcc_cv_as_tls=no
23821 if test $in_tree_gas = yes; then
23822 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23823 then gcc_cv_as_tls=yes
23825 elif test x$gcc_cv_as != x; then
23826 $as_echo "$conftest_s" > conftest.s
23827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23832 test $ac_status = 0; }; }
23833 then
23834 gcc_cv_as_tls=yes
23835 else
23836 echo "configure: failed program was" >&5
23837 cat conftest.s >&5
23839 rm -f conftest.o conftest.s
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23843 $as_echo "$gcc_cv_as_tls" >&6; }
23844 if test $gcc_cv_as_tls = yes; then
23845 set_have_as_tls=yes
23848 if test $set_have_as_tls = yes ; then
23850 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23854 # Target-specific assembler checks.
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23857 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23858 gcc_cv_ld_static_dynamic=no
23859 gcc_cv_ld_static_option='-Bstatic'
23860 gcc_cv_ld_dynamic_option='-Bdynamic'
23861 if test $in_tree_ld = yes ; then
23862 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
23863 gcc_cv_ld_static_dynamic=yes
23865 elif test x$gcc_cv_ld != x; then
23866 # Check if linker supports -Bstatic/-Bdynamic option
23867 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23868 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23869 gcc_cv_ld_static_dynamic=yes
23870 else
23871 case "$target" in
23872 # AIX ld uses -b flags
23873 *-*-aix4.[23]* | *-*-aix[5-9]*)
23874 gcc_cv_ld_static_dynamic=yes
23875 gcc_cv_ld_static_option="-bstatic"
23876 gcc_cv_ld_dynamic_option="-bdynamic"
23878 # HP-UX ld uses -a flags to select between shared and archive.
23879 *-*-hpux*)
23880 if test x"$gnu_ld" = xno; then
23881 gcc_cv_ld_static_dynamic=yes
23882 gcc_cv_ld_static_option="-aarchive_shared"
23883 gcc_cv_ld_dynamic_option="-adefault"
23886 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23887 *-*-solaris2*)
23888 gcc_cv_ld_static_dynamic=yes
23890 esac
23893 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23895 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23898 cat >>confdefs.h <<_ACEOF
23899 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23900 _ACEOF
23903 cat >>confdefs.h <<_ACEOF
23904 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23905 _ACEOF
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23909 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23911 if test x"$demangler_in_ld" = xyes; then
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23913 $as_echo_n "checking linker --demangle support... " >&6; }
23914 gcc_cv_ld_demangle=no
23915 if test $in_tree_ld = yes; then
23916 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 \
23917 gcc_cv_ld_demangle=yes
23919 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23920 # Check if the GNU linker supports --demangle option
23921 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23922 gcc_cv_ld_demangle=yes
23925 if test x"$gcc_cv_ld_demangle" = xyes; then
23927 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23931 $as_echo "$gcc_cv_ld_demangle" >&6; }
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23935 $as_echo_n "checking linker plugin support... " >&6; }
23936 gcc_cv_lto_plugin=0
23937 if test -f liblto_plugin.la; then
23938 save_ld_ver="$ld_ver"
23939 save_ld_vers_major="$ld_vers_major"
23940 save_ld_vers_minor="$ld_vers_minor"
23941 save_ld_is_gold="$ld_is_gold"
23943 ld_is_gold=no
23945 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23946 ld_ver="GNU ld"
23947 # FIXME: ld_is_gold?
23948 ld_vers_major="$gcc_cv_gld_major_version"
23949 ld_vers_minor="$gcc_cv_gld_minor_version"
23950 else
23951 # Determine plugin linker version.
23952 # FIXME: Partial duplicate from above, generalize.
23953 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23954 if echo "$ld_ver" | grep GNU > /dev/null; then
23955 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23956 ld_is_gold=yes
23957 ld_vers=`echo $ld_ver | sed -n \
23958 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23959 else
23960 ld_vers=`echo $ld_ver | sed -n \
23961 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23963 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23964 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23968 # Determine plugin support.
23969 if echo "$ld_ver" | grep GNU > /dev/null; then
23970 # Require GNU ld or gold 2.21+ for plugin support by default.
23971 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23972 gcc_cv_lto_plugin=2
23973 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23974 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23975 gcc_cv_lto_plugin=1
23979 ld_ver="$save_ld_ver"
23980 ld_vers_major="$save_ld_vers_major"
23981 ld_vers_minor="$save_ld_vers_minor"
23982 ld_is_gold="$save_ld_is_gold"
23985 cat >>confdefs.h <<_ACEOF
23986 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23987 _ACEOF
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23990 $as_echo "$gcc_cv_lto_plugin" >&6; }
23992 case "$target" in
23993 aarch64*-*-*)
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23995 $as_echo_n "checking assembler for -mabi option... " >&6; }
23996 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23997 $as_echo_n "(cached) " >&6
23998 else
23999 gcc_cv_as_aarch64_mabi=no
24000 if test x$gcc_cv_as != x; then
24001 $as_echo '.text' > conftest.s
24002 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004 (eval $ac_try) 2>&5
24005 ac_status=$?
24006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007 test $ac_status = 0; }; }
24008 then
24009 gcc_cv_as_aarch64_mabi=yes
24010 else
24011 echo "configure: failed program was" >&5
24012 cat conftest.s >&5
24014 rm -f conftest.o conftest.s
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24018 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24020 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24022 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24024 else
24025 if test x$with_abi = xilp32; then
24026 as_fn_error "Assembler does not support -mabi=ilp32.\
24027 Upgrade the Assembler." "$LINENO" 5
24029 if test x"$with_multilib_list" = xdefault; then
24030 TM_MULTILIB_CONFIG=lp64
24031 else
24032 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24033 for aarch64_multilib in ${aarch64_multilibs}; do
24034 case ${aarch64_multilib} in
24035 ilp32)
24036 as_fn_error "Assembler does not support -mabi=ilp32.\
24037 Upgrade the Assembler." "$LINENO" 5
24041 esac
24042 done
24045 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24046 # Check whether --enable-fix-cortex-a53-835769 was given.
24047 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24048 enableval=$enable_fix_cortex_a53_835769;
24049 case $enableval in
24050 yes)
24051 tm_defines="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24056 as_fn_error "'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24057 Valid choices are 'yes' and 'no'." "$LINENO" 5
24060 esac
24066 # All TARGET_ABI_OSF targets.
24067 alpha*-*-linux* | alpha*-*-*bsd*)
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24069 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24070 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24071 $as_echo_n "(cached) " >&6
24072 else
24073 gcc_cv_as_alpha_explicit_relocs=no
24074 if test $in_tree_gas = yes; then
24075 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24076 then gcc_cv_as_alpha_explicit_relocs=yes
24078 elif test x$gcc_cv_as != x; then
24079 $as_echo ' .set nomacro
24080 .text
24081 extbl $3, $2, $3 !lituse_bytoff!1
24082 ldq $2, a($29) !literal!1
24083 ldq $4, b($29) !literal!2
24084 ldq_u $3, 0($2) !lituse_base!1
24085 ldq $27, f($29) !literal!5
24086 jsr $26, ($27), f !lituse_jsr!5
24087 ldah $29, 0($26) !gpdisp!3
24088 lda $0, c($29) !gprel
24089 ldah $1, d($29) !gprelhigh
24090 lda $1, d($1) !gprellow
24091 lda $29, 0($29) !gpdisp!3' > conftest.s
24092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24095 ac_status=$?
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; }
24098 then
24099 gcc_cv_as_alpha_explicit_relocs=yes
24100 else
24101 echo "configure: failed program was" >&5
24102 cat conftest.s >&5
24104 rm -f conftest.o conftest.s
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24108 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24109 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24111 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24115 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24116 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24117 $as_echo_n "(cached) " >&6
24118 else
24119 gcc_cv_as_alpha_jsrdirect_relocs=no
24120 if test $in_tree_gas = yes; then
24121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24122 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24124 elif test x$gcc_cv_as != x; then
24125 $as_echo ' .set nomacro
24126 .text
24127 ldq $27, a($29) !literal!1
24128 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24132 ac_status=$?
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }
24135 then
24136 gcc_cv_as_alpha_jsrdirect_relocs=yes
24137 else
24138 echo "configure: failed program was" >&5
24139 cat conftest.s >&5
24141 rm -f conftest.o conftest.s
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24145 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24146 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24148 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24153 cris-*-*)
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24155 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24156 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24157 $as_echo_n "(cached) " >&6
24158 else
24159 gcc_cv_as_cris_no_mul_bug=no
24160 if test $in_tree_gas = yes; then
24161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24162 then gcc_cv_as_cris_no_mul_bug=yes
24164 elif test x$gcc_cv_as != x; then
24165 $as_echo '.text' > conftest.s
24166 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24168 (eval $ac_try) 2>&5
24169 ac_status=$?
24170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24171 test $ac_status = 0; }; }
24172 then
24173 gcc_cv_as_cris_no_mul_bug=yes
24174 else
24175 echo "configure: failed program was" >&5
24176 cat conftest.s >&5
24178 rm -f conftest.o conftest.s
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24182 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24183 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24185 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24190 sparc*-*-*)
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24192 $as_echo_n "checking assembler for .register... " >&6; }
24193 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24194 $as_echo_n "(cached) " >&6
24195 else
24196 gcc_cv_as_sparc_register_op=no
24197 if test x$gcc_cv_as != x; then
24198 $as_echo '.register %g2, #scratch' > conftest.s
24199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24201 (eval $ac_try) 2>&5
24202 ac_status=$?
24203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24204 test $ac_status = 0; }; }
24205 then
24206 gcc_cv_as_sparc_register_op=yes
24207 else
24208 echo "configure: failed program was" >&5
24209 cat conftest.s >&5
24211 rm -f conftest.o conftest.s
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24215 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24216 if test $gcc_cv_as_sparc_register_op = yes; then
24218 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24223 $as_echo_n "checking assembler for #nobits... " >&6; }
24224 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24225 $as_echo_n "(cached) " >&6
24226 else
24227 gcc_cv_as_sparc_nobits=no
24228 if test x$gcc_cv_as != x; then
24229 $as_echo '.section "nobits",#alloc,#write,#nobits
24230 .section "progbits",#alloc,#write,#progbits' > conftest.s
24231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24233 (eval $ac_try) 2>&5
24234 ac_status=$?
24235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24236 test $ac_status = 0; }; }
24237 then
24238 gcc_cv_as_sparc_nobits=yes
24239 else
24240 echo "configure: failed program was" >&5
24241 cat conftest.s >&5
24243 rm -f conftest.o conftest.s
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24247 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24250 cat >>confdefs.h <<_ACEOF
24251 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24252 _ACEOF
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24256 $as_echo_n "checking assembler for -relax option... " >&6; }
24257 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24258 $as_echo_n "(cached) " >&6
24259 else
24260 gcc_cv_as_sparc_relax=no
24261 if test x$gcc_cv_as != x; then
24262 $as_echo '.text' > conftest.s
24263 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24268 test $ac_status = 0; }; }
24269 then
24270 gcc_cv_as_sparc_relax=yes
24271 else
24272 echo "configure: failed program was" >&5
24273 cat conftest.s >&5
24275 rm -f conftest.o conftest.s
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24279 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24280 if test $gcc_cv_as_sparc_relax = yes; then
24282 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24287 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24288 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24289 $as_echo_n "(cached) " >&6
24290 else
24291 gcc_cv_as_sparc_gotdata_op=no
24292 if test x$gcc_cv_as != x; then
24293 $as_echo '.text
24294 .align 4
24295 foo:
24297 bar:
24298 sethi %gdop_hix22(foo), %g1
24299 xor %g1, %gdop_lox10(foo), %g1
24300 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24301 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24306 test $ac_status = 0; }; }
24307 then
24308 if test x$gcc_cv_ld != x \
24309 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24310 if test x$gcc_cv_objdump != x; then
24311 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24312 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24313 gcc_cv_as_sparc_gotdata_op=no
24314 else
24315 gcc_cv_as_sparc_gotdata_op=yes
24319 rm -f conftest
24320 else
24321 echo "configure: failed program was" >&5
24322 cat conftest.s >&5
24324 rm -f conftest.o conftest.s
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24328 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24329 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24331 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24336 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24337 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24338 $as_echo_n "(cached) " >&6
24339 else
24340 gcc_cv_as_sparc_ua_pcrel=no
24341 if test x$gcc_cv_as != x; then
24342 $as_echo '.text
24343 foo:
24345 .data
24346 .align 4
24347 .byte 0
24348 .uaword %r_disp32(foo)' > conftest.s
24349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351 (eval $ac_try) 2>&5
24352 ac_status=$?
24353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354 test $ac_status = 0; }; }
24355 then
24356 if test x$gcc_cv_ld != x \
24357 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24358 gcc_cv_as_sparc_ua_pcrel=yes
24360 rm -f conftest
24361 else
24362 echo "configure: failed program was" >&5
24363 cat conftest.s >&5
24365 rm -f conftest.o conftest.s
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24369 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24370 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24372 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24376 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24377 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24378 $as_echo_n "(cached) " >&6
24379 else
24380 gcc_cv_as_sparc_ua_pcrel_hidden=no
24381 if test x$gcc_cv_as != x; then
24382 $as_echo '.data
24383 .align 4
24384 .byte 0x31
24385 .uaword %r_disp32(foo)
24386 .byte 0x32, 0x33, 0x34
24387 .global foo
24388 .hidden foo
24389 foo:
24390 .skip 4' > conftest.s
24391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24393 (eval $ac_try) 2>&5
24394 ac_status=$?
24395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24396 test $ac_status = 0; }; }
24397 then
24398 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24399 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24400 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24401 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24402 if $gcc_cv_objdump -R conftest 2> /dev/null \
24403 | grep 'DISP32' > /dev/null 2>&1; then
24405 else
24406 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24409 rm -f conftest
24410 else
24411 echo "configure: failed program was" >&5
24412 cat conftest.s >&5
24414 rm -f conftest.o conftest.s
24417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24418 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24419 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24421 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24425 fi # unaligned pcrel relocs
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24428 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24429 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24430 $as_echo_n "(cached) " >&6
24431 else
24432 gcc_cv_as_sparc_offsetable_lo10=no
24433 if test x$gcc_cv_as != x; then
24434 $as_echo '.text
24435 or %g1, %lo(ab) + 12, %g1
24436 or %g1, %lo(ab + 12), %g1' > conftest.s
24437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24439 (eval $ac_try) 2>&5
24440 ac_status=$?
24441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24442 test $ac_status = 0; }; }
24443 then
24444 if test x$gcc_cv_objdump != x \
24445 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24446 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24447 gcc_cv_as_sparc_offsetable_lo10=yes
24449 else
24450 echo "configure: failed program was" >&5
24451 cat conftest.s >&5
24453 rm -f conftest.o conftest.s
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24457 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24458 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24460 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24465 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24466 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24467 $as_echo_n "(cached) " >&6
24468 else
24469 gcc_cv_as_sparc_fmaf=no
24470 if test x$gcc_cv_as != x; then
24471 $as_echo '.text
24472 .register %g2, #scratch
24473 .register %g3, #scratch
24474 .align 4
24475 fmaddd %f0, %f2, %f4, %f6
24476 addxccc %g1, %g2, %g3
24477 fsrl32 %f2, %f4, %f8
24478 fnaddd %f10, %f12, %f14' > conftest.s
24479 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24481 (eval $ac_try) 2>&5
24482 ac_status=$?
24483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24484 test $ac_status = 0; }; }
24485 then
24486 gcc_cv_as_sparc_fmaf=yes
24487 else
24488 echo "configure: failed program was" >&5
24489 cat conftest.s >&5
24491 rm -f conftest.o conftest.s
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24495 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24496 if test $gcc_cv_as_sparc_fmaf = yes; then
24498 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24503 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24504 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24505 $as_echo_n "(cached) " >&6
24506 else
24507 gcc_cv_as_sparc_sparc4=no
24508 if test x$gcc_cv_as != x; then
24509 $as_echo '.text
24510 .register %g2, #scratch
24511 .register %g3, #scratch
24512 .align 4
24513 cxbe %g2, %g3, 1f
24514 1: cwbneg %g2, %g3, 1f
24515 1: sha1
24517 aes_kexpand0 %f4, %f6, %f8
24518 des_round %f38, %f40, %f42, %f44
24519 camellia_f %f54, %f56, %f58, %f60
24520 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24521 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24523 (eval $ac_try) 2>&5
24524 ac_status=$?
24525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24526 test $ac_status = 0; }; }
24527 then
24528 gcc_cv_as_sparc_sparc4=yes
24529 else
24530 echo "configure: failed program was" >&5
24531 cat conftest.s >&5
24533 rm -f conftest.o conftest.s
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24537 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24538 if test $gcc_cv_as_sparc_sparc4 = yes; then
24540 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24545 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24546 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24547 $as_echo_n "(cached) " >&6
24548 else
24549 gcc_cv_as_sparc_leon=no
24550 if test x$gcc_cv_as != x; then
24551 $as_echo '.text
24552 .register %g2, #scratch
24553 .register %g3, #scratch
24554 .align 4
24555 smac %g2, %g3, %g1
24556 umac %g2, %g3, %g1
24557 casa [%g2] 0xb, %g3, %g1' > conftest.s
24558 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24560 (eval $ac_try) 2>&5
24561 ac_status=$?
24562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24563 test $ac_status = 0; }; }
24564 then
24565 gcc_cv_as_sparc_leon=yes
24566 else
24567 echo "configure: failed program was" >&5
24568 cat conftest.s >&5
24570 rm -f conftest.o conftest.s
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24574 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24575 if test $gcc_cv_as_sparc_leon = yes; then
24577 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24582 i[34567]86-*-* | x86_64-*-*)
24583 case $target_os in
24584 cygwin*)
24585 # Full C++ conformance when using a shared libstdc++-v3 requires some
24586 # support from the Cygwin DLL, which in more recent versions exports
24587 # wrappers to aid in interposing and redirecting operators new, delete,
24588 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24589 # are configuring for a version of Cygwin that exports the wrappers.
24590 if test x$host = x$target && test x$host_cpu = xi686; then
24591 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24592 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24593 gcc_ac_cygwin_dll_wrappers=yes
24594 else
24595 gcc_ac_cygwin_dll_wrappers=no
24598 else
24599 # Can't check presence of libc functions during cross-compile, so
24600 # we just have to assume we're building for an up-to-date target.
24601 gcc_ac_cygwin_dll_wrappers=yes
24604 cat >>confdefs.h <<_ACEOF
24605 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24606 _ACEOF
24608 esac
24609 case $target_os in
24610 cygwin* | pe | mingw32* | interix*)
24611 # Recent binutils allows the three-operand form of ".comm" on PE. This
24612 # definition is used unconditionally to initialise the default state of
24613 # the target option variable that governs usage of the feature.
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24615 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24616 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24617 $as_echo_n "(cached) " >&6
24618 else
24619 gcc_cv_as_comm_has_align=no
24620 if test $in_tree_gas = yes; then
24621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24622 then gcc_cv_as_comm_has_align=yes
24624 elif test x$gcc_cv_as != x; then
24625 $as_echo '.comm foo,1,32' > conftest.s
24626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24628 (eval $ac_try) 2>&5
24629 ac_status=$?
24630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24631 test $ac_status = 0; }; }
24632 then
24633 gcc_cv_as_comm_has_align=yes
24634 else
24635 echo "configure: failed program was" >&5
24636 cat conftest.s >&5
24638 rm -f conftest.o conftest.s
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24642 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24645 cat >>confdefs.h <<_ACEOF
24646 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24647 _ACEOF
24649 # Used for DWARF 2 in PE
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24651 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24652 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24653 $as_echo_n "(cached) " >&6
24654 else
24655 gcc_cv_as_ix86_pe_secrel32=no
24656 if test $in_tree_gas = yes; then
24657 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24658 then gcc_cv_as_ix86_pe_secrel32=yes
24660 elif test x$gcc_cv_as != x; then
24661 $as_echo '.text
24662 foo: nop
24663 .data
24664 .secrel32 foo' > conftest.s
24665 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24667 (eval $ac_try) 2>&5
24668 ac_status=$?
24669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24670 test $ac_status = 0; }; }
24671 then
24672 if test x$gcc_cv_ld != x \
24673 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24674 gcc_cv_as_ix86_pe_secrel32=yes
24676 rm -f conftest
24677 else
24678 echo "configure: failed program was" >&5
24679 cat conftest.s >&5
24681 rm -f conftest.o conftest.s
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24685 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24686 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24688 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24691 # Test if the assembler supports the extended form of the .section
24692 # directive that specifies section alignment. LTO support uses this,
24693 # but normally only after installation, so we warn but don't fail the
24694 # configure if LTO is enabled but the assembler does not support it.
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24696 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24697 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24698 $as_echo_n "(cached) " >&6
24699 else
24700 gcc_cv_as_section_has_align=no
24701 if test $in_tree_gas = yes; then
24702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24703 then gcc_cv_as_section_has_align=yes
24705 elif test x$gcc_cv_as != x; then
24706 $as_echo '.section lto_test,"dr0"' > conftest.s
24707 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24709 (eval $ac_try) 2>&5
24710 ac_status=$?
24711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24712 test $ac_status = 0; }; }
24713 then
24714 gcc_cv_as_section_has_align=yes
24715 else
24716 echo "configure: failed program was" >&5
24717 cat conftest.s >&5
24719 rm -f conftest.o conftest.s
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24723 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24725 if test x$gcc_cv_as_section_has_align != xyes; then
24726 case ",$enable_languages," in
24727 *,lto,*)
24728 { $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
24729 $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;}
24731 esac
24734 esac
24736 # Test if the assembler supports the section flag 'e' for specifying
24737 # an excluded section.
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24739 $as_echo_n "checking assembler for .section with e... " >&6; }
24740 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24742 else
24743 gcc_cv_as_section_has_e=no
24744 if test $in_tree_gas = yes; then
24745 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24746 then gcc_cv_as_section_has_e=yes
24748 elif test x$gcc_cv_as != x; then
24749 $as_echo '.section foo1,"e"
24750 .byte 0,0,0,0' > conftest.s
24751 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24753 (eval $ac_try) 2>&5
24754 ac_status=$?
24755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24756 test $ac_status = 0; }; }
24757 then
24758 gcc_cv_as_section_has_e=yes
24759 else
24760 echo "configure: failed program was" >&5
24761 cat conftest.s >&5
24763 rm -f conftest.o conftest.s
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24767 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24770 cat >>confdefs.h <<_ACEOF
24771 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24772 _ACEOF
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24776 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24777 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24778 $as_echo_n "(cached) " >&6
24779 else
24780 gcc_cv_as_ix86_filds=no
24781 if test x$gcc_cv_as != x; then
24782 $as_echo 'filds mem; fists mem' > conftest.s
24783 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24789 then
24790 gcc_cv_as_ix86_filds=yes
24791 else
24792 echo "configure: failed program was" >&5
24793 cat conftest.s >&5
24795 rm -f conftest.o conftest.s
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24799 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24800 if test $gcc_cv_as_ix86_filds = yes; then
24802 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24807 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24808 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24809 $as_echo_n "(cached) " >&6
24810 else
24811 gcc_cv_as_ix86_fildq=no
24812 if test x$gcc_cv_as != x; then
24813 $as_echo 'fildq mem; fistpq mem' > conftest.s
24814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24819 test $ac_status = 0; }; }
24820 then
24821 gcc_cv_as_ix86_fildq=yes
24822 else
24823 echo "configure: failed program was" >&5
24824 cat conftest.s >&5
24826 rm -f conftest.o conftest.s
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24830 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24831 if test $gcc_cv_as_ix86_fildq = yes; then
24833 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24838 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24839 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24840 $as_echo_n "(cached) " >&6
24841 else
24842 gcc_cv_as_ix86_cmov_sun_syntax=no
24843 if test x$gcc_cv_as != x; then
24844 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24845 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24847 (eval $ac_try) 2>&5
24848 ac_status=$?
24849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24850 test $ac_status = 0; }; }
24851 then
24852 gcc_cv_as_ix86_cmov_sun_syntax=yes
24853 else
24854 echo "configure: failed program was" >&5
24855 cat conftest.s >&5
24857 rm -f conftest.o conftest.s
24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24861 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24862 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24864 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24869 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24870 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24871 $as_echo_n "(cached) " >&6
24872 else
24873 gcc_cv_as_ix86_ffreep=no
24874 if test x$gcc_cv_as != x; then
24875 $as_echo 'ffreep %st(1)' > conftest.s
24876 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24878 (eval $ac_try) 2>&5
24879 ac_status=$?
24880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24881 test $ac_status = 0; }; }
24882 then
24883 gcc_cv_as_ix86_ffreep=yes
24884 else
24885 echo "configure: failed program was" >&5
24886 cat conftest.s >&5
24888 rm -f conftest.o conftest.s
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24892 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24893 if test $gcc_cv_as_ix86_ffreep = yes; then
24895 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24900 $as_echo_n "checking assembler for .quad directive... " >&6; }
24901 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24902 $as_echo_n "(cached) " >&6
24903 else
24904 gcc_cv_as_ix86_quad=no
24905 if test x$gcc_cv_as != x; then
24906 $as_echo '.quad 0' > conftest.s
24907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24909 (eval $ac_try) 2>&5
24910 ac_status=$?
24911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24912 test $ac_status = 0; }; }
24913 then
24914 gcc_cv_as_ix86_quad=yes
24915 else
24916 echo "configure: failed program was" >&5
24917 cat conftest.s >&5
24919 rm -f conftest.o conftest.s
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24923 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24924 if test $gcc_cv_as_ix86_quad = yes; then
24926 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24931 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24932 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24933 $as_echo_n "(cached) " >&6
24934 else
24935 gcc_cv_as_ix86_sahf=no
24936 if test x$gcc_cv_as != x; then
24937 $as_echo '.code64
24938 sahf' > conftest.s
24939 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24944 test $ac_status = 0; }; }
24945 then
24946 gcc_cv_as_ix86_sahf=yes
24947 else
24948 echo "configure: failed program was" >&5
24949 cat conftest.s >&5
24951 rm -f conftest.o conftest.s
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24955 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24956 if test $gcc_cv_as_ix86_sahf = yes; then
24958 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24963 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24964 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24965 $as_echo_n "(cached) " >&6
24966 else
24967 gcc_cv_as_ix86_interunit_movq=no
24968 if test x$gcc_cv_as != x; then
24969 $as_echo '.code64
24970 movq %mm0, %rax
24971 movq %rax, %xmm0' > conftest.s
24972 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24974 (eval $ac_try) 2>&5
24975 ac_status=$?
24976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24977 test $ac_status = 0; }; }
24978 then
24979 gcc_cv_as_ix86_interunit_movq=yes
24980 else
24981 echo "configure: failed program was" >&5
24982 cat conftest.s >&5
24984 rm -f conftest.o conftest.s
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24988 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24991 cat >>confdefs.h <<_ACEOF
24992 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24993 _ACEOF
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24997 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24998 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25000 else
25001 gcc_cv_as_ix86_hle=no
25002 if test x$gcc_cv_as != x; then
25003 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25004 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25006 (eval $ac_try) 2>&5
25007 ac_status=$?
25008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25009 test $ac_status = 0; }; }
25010 then
25011 gcc_cv_as_ix86_hle=yes
25012 else
25013 echo "configure: failed program was" >&5
25014 cat conftest.s >&5
25016 rm -f conftest.o conftest.s
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25020 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25021 if test $gcc_cv_as_ix86_hle = yes; then
25023 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25028 $as_echo_n "checking assembler for swap suffix... " >&6; }
25029 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25030 $as_echo_n "(cached) " >&6
25031 else
25032 gcc_cv_as_ix86_swap=no
25033 if test x$gcc_cv_as != x; then
25034 $as_echo 'movl.s %esp, %ebp' > conftest.s
25035 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25037 (eval $ac_try) 2>&5
25038 ac_status=$?
25039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25040 test $ac_status = 0; }; }
25041 then
25042 gcc_cv_as_ix86_swap=yes
25043 else
25044 echo "configure: failed program was" >&5
25045 cat conftest.s >&5
25047 rm -f conftest.o conftest.s
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25051 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25052 if test $gcc_cv_as_ix86_swap = yes; then
25054 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25059 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25060 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25061 $as_echo_n "(cached) " >&6
25062 else
25063 gcc_cv_as_ix86_diff_sect_delta=no
25064 if test x$gcc_cv_as != x; then
25065 $as_echo '.section .rodata
25066 .L1:
25067 .long .L2-.L1
25068 .long .L3-.L1
25069 .text
25070 .L3: nop
25071 .L2: nop' > conftest.s
25072 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077 test $ac_status = 0; }; }
25078 then
25079 gcc_cv_as_ix86_diff_sect_delta=yes
25080 else
25081 echo "configure: failed program was" >&5
25082 cat conftest.s >&5
25084 rm -f conftest.o conftest.s
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25088 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25089 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25091 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25095 # These two are used unconditionally by i386.[ch]; it is to be defined
25096 # to 1 if the feature is present, 0 otherwise.
25097 as_ix86_gotoff_in_data_opt=
25098 if test x$gas = xyes; then
25099 as_ix86_gotoff_in_data_opt="--32"
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25102 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25103 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25105 else
25106 gcc_cv_as_ix86_gotoff_in_data=no
25107 if test $in_tree_gas = yes; then
25108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25109 then gcc_cv_as_ix86_gotoff_in_data=yes
25111 elif test x$gcc_cv_as != x; then
25112 $as_echo ' .text
25113 .L0:
25115 .data
25116 .long .L0@GOTOFF' > conftest.s
25117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25120 ac_status=$?
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; }
25123 then
25124 gcc_cv_as_ix86_gotoff_in_data=yes
25125 else
25126 echo "configure: failed program was" >&5
25127 cat conftest.s >&5
25129 rm -f conftest.o conftest.s
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25133 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25136 cat >>confdefs.h <<_ACEOF
25137 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25138 _ACEOF
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25142 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25143 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25144 $as_echo_n "(cached) " >&6
25145 else
25146 gcc_cv_as_ix86_rep_lock_prefix=no
25147 if test x$gcc_cv_as != x; then
25148 $as_echo 'rep movsl
25149 rep ret
25150 rep nop
25151 rep bsf %ecx, %eax
25152 rep bsr %ecx, %eax
25153 lock addl %edi, (%eax,%esi)
25154 lock orl $0, (%esp)' > conftest.s
25155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25157 (eval $ac_try) 2>&5
25158 ac_status=$?
25159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25160 test $ac_status = 0; }; }
25161 then
25162 gcc_cv_as_ix86_rep_lock_prefix=yes
25163 else
25164 echo "configure: failed program was" >&5
25165 cat conftest.s >&5
25167 rm -f conftest.o conftest.s
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25171 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25172 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25174 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25179 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25180 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25181 $as_echo_n "(cached) " >&6
25182 else
25183 gcc_cv_as_ix86_ud2=no
25184 if test x$gcc_cv_as != x; then
25185 $as_echo 'ud2' > conftest.s
25186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188 (eval $ac_try) 2>&5
25189 ac_status=$?
25190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191 test $ac_status = 0; }; }
25192 then
25193 gcc_cv_as_ix86_ud2=yes
25194 else
25195 echo "configure: failed program was" >&5
25196 cat conftest.s >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25202 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25203 if test $gcc_cv_as_ix86_ud2 = yes; then
25205 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25210 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25211 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25212 $as_echo_n "(cached) " >&6
25213 else
25214 gcc_cv_as_ix86_tlsgdplt=no
25215 if test x$gcc_cv_as != x; then
25216 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25217 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25219 (eval $ac_try) 2>&5
25220 ac_status=$?
25221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25222 test $ac_status = 0; }; }
25223 then
25224 if test x$gcc_cv_ld != x \
25225 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25226 gcc_cv_as_ix86_tlsgdplt=yes
25228 rm -f conftest
25229 else
25230 echo "configure: failed program was" >&5
25231 cat conftest.s >&5
25233 rm -f conftest.o conftest.s
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25237 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25238 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25240 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25244 conftest_s='
25245 .section .tdata,"aw'$tls_section_flag'",@progbits
25246 tls_ld:
25247 .section .text,"ax",@progbits
25248 call tls_ld@tlsldmplt'
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25250 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25251 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25253 else
25254 gcc_cv_as_ix86_tlsldmplt=no
25255 if test x$gcc_cv_as != x; then
25256 $as_echo "$conftest_s" > conftest.s
25257 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25262 test $ac_status = 0; }; }
25263 then
25264 if test x$gcc_cv_ld != x \
25265 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25266 gcc_cv_as_ix86_tlsldmplt=yes
25268 rm -f conftest
25269 else
25270 echo "configure: failed program was" >&5
25271 cat conftest.s >&5
25273 rm -f conftest.o conftest.s
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25277 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25280 cat >>confdefs.h <<_ACEOF
25281 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25282 _ACEOF
25285 # Enforce 32-bit output with gas and gld.
25286 if test x$gas = xyes; then
25287 as_ix86_tls_ldm_opt="--32"
25289 if echo "$ld_ver" | grep GNU > /dev/null; then
25290 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25291 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25292 else
25293 ld_ix86_tls_ldm_opt="-melf_i386"
25296 conftest_s='
25297 .section .text,"ax",@progbits
25298 .globl _start
25299 .type _start, @function
25300 _start:
25301 leal value@tlsldm(%ebx), %eax
25302 call ___tls_get_addr@plt
25304 .section .tdata,"aw'$tls_section_flag'",@progbits
25305 .type value, @object
25306 value:'
25307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25308 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25309 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25310 $as_echo_n "(cached) " >&6
25311 else
25312 gcc_cv_as_ix86_tlsldm=no
25313 if test x$gcc_cv_as != x; then
25314 $as_echo "$conftest_s" > conftest.s
25315 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25317 (eval $ac_try) 2>&5
25318 ac_status=$?
25319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25320 test $ac_status = 0; }; }
25321 then
25322 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25323 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25324 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25325 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25326 gcc_cv_as_ix86_tlsldm=yes
25329 rm -f conftest
25330 else
25331 echo "configure: failed program was" >&5
25332 cat conftest.s >&5
25334 rm -f conftest.o conftest.s
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25338 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25341 cat >>confdefs.h <<_ACEOF
25342 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25343 _ACEOF
25348 ia64*-*-*)
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25350 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25351 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25352 $as_echo_n "(cached) " >&6
25353 else
25354 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25355 if test $in_tree_gas = yes; then
25356 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25357 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25359 elif test x$gcc_cv_as != x; then
25360 $as_echo ' .text
25361 addl r15 = @ltoffx(x#), gp
25363 ld8.mov r16 = [r15], x#' > conftest.s
25364 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25366 (eval $ac_try) 2>&5
25367 ac_status=$?
25368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25369 test $ac_status = 0; }; }
25370 then
25371 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25372 else
25373 echo "configure: failed program was" >&5
25374 cat conftest.s >&5
25376 rm -f conftest.o conftest.s
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25380 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25381 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25383 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25389 powerpc*-*-*)
25390 case $target in
25391 *-*-aix*) conftest_s=' .machine "pwr5"
25392 .csect .text[PR]
25393 mfcr 3,128';;
25394 *-*-darwin*)
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25396 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25397 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25398 $as_echo_n "(cached) " >&6
25399 else
25400 gcc_cv_as_machine_directive=no
25401 if test x$gcc_cv_as != x; then
25402 $as_echo ' .machine ppc7400' > conftest.s
25403 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25405 (eval $ac_try) 2>&5
25406 ac_status=$?
25407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25408 test $ac_status = 0; }; }
25409 then
25410 gcc_cv_as_machine_directive=yes
25411 else
25412 echo "configure: failed program was" >&5
25413 cat conftest.s >&5
25415 rm -f conftest.o conftest.s
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25419 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25421 if test x$gcc_cv_as_machine_directive != xyes; then
25422 echo "*** This target requires an assembler supporting \".machine\"" >&2
25423 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25424 test x$build = x$target && exit 1
25426 conftest_s=' .text
25427 mfcr r3,128';;
25428 *) conftest_s=' .machine power4
25429 .text
25430 mfcr 3,128';;
25431 esac
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25434 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25435 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25436 $as_echo_n "(cached) " >&6
25437 else
25438 gcc_cv_as_powerpc_mfcrf=no
25439 if test $in_tree_gas = yes; then
25440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25441 then gcc_cv_as_powerpc_mfcrf=yes
25443 elif test x$gcc_cv_as != x; then
25444 $as_echo "$conftest_s" > conftest.s
25445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450 test $ac_status = 0; }; }
25451 then
25452 gcc_cv_as_powerpc_mfcrf=yes
25453 else
25454 echo "configure: failed program was" >&5
25455 cat conftest.s >&5
25457 rm -f conftest.o conftest.s
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25461 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25462 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25464 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25468 case $target in
25469 *-*-aix*) conftest_s=' .machine "pwr5"
25470 .csect .text[PR]
25471 popcntb 3,3';;
25472 *) conftest_s=' .machine power5
25473 .text
25474 popcntb 3,3';;
25475 esac
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25478 $as_echo_n "checking assembler for popcntb support... " >&6; }
25479 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25480 $as_echo_n "(cached) " >&6
25481 else
25482 gcc_cv_as_powerpc_popcntb=no
25483 if test $in_tree_gas = yes; then
25484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25485 then gcc_cv_as_powerpc_popcntb=yes
25487 elif test x$gcc_cv_as != x; then
25488 $as_echo "$conftest_s" > conftest.s
25489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25491 (eval $ac_try) 2>&5
25492 ac_status=$?
25493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25494 test $ac_status = 0; }; }
25495 then
25496 gcc_cv_as_powerpc_popcntb=yes
25497 else
25498 echo "configure: failed program was" >&5
25499 cat conftest.s >&5
25501 rm -f conftest.o conftest.s
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25505 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25506 if test $gcc_cv_as_powerpc_popcntb = yes; then
25508 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25512 case $target in
25513 *-*-aix*) conftest_s=' .machine "pwr5x"
25514 .csect .text[PR]
25515 frin 1,1';;
25516 *) conftest_s=' .machine power5
25517 .text
25518 frin 1,1';;
25519 esac
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25522 $as_echo_n "checking assembler for fp round support... " >&6; }
25523 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25524 $as_echo_n "(cached) " >&6
25525 else
25526 gcc_cv_as_powerpc_fprnd=no
25527 if test $in_tree_gas = yes; then
25528 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25529 then gcc_cv_as_powerpc_fprnd=yes
25531 elif test x$gcc_cv_as != x; then
25532 $as_echo "$conftest_s" > conftest.s
25533 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25535 (eval $ac_try) 2>&5
25536 ac_status=$?
25537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25538 test $ac_status = 0; }; }
25539 then
25540 gcc_cv_as_powerpc_fprnd=yes
25541 else
25542 echo "configure: failed program was" >&5
25543 cat conftest.s >&5
25545 rm -f conftest.o conftest.s
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25549 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25550 if test $gcc_cv_as_powerpc_fprnd = yes; then
25552 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25556 case $target in
25557 *-*-aix*) conftest_s=' .machine "pwr6"
25558 .csect .text[PR]
25559 mffgpr 1,3';;
25560 *) conftest_s=' .machine power6
25561 .text
25562 mffgpr 1,3';;
25563 esac
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25566 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25567 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25568 $as_echo_n "(cached) " >&6
25569 else
25570 gcc_cv_as_powerpc_mfpgpr=no
25571 if test $in_tree_gas = yes; then
25572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25573 then gcc_cv_as_powerpc_mfpgpr=yes
25575 elif test x$gcc_cv_as != x; then
25576 $as_echo "$conftest_s" > conftest.s
25577 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25579 (eval $ac_try) 2>&5
25580 ac_status=$?
25581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25582 test $ac_status = 0; }; }
25583 then
25584 gcc_cv_as_powerpc_mfpgpr=yes
25585 else
25586 echo "configure: failed program was" >&5
25587 cat conftest.s >&5
25589 rm -f conftest.o conftest.s
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25593 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25594 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25596 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25600 case $target in
25601 *-*-aix*) conftest_s=' .csect .text[PR]
25602 LCF..0:
25603 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25604 *-*-darwin*)
25605 conftest_s=' .text
25606 LCF0:
25607 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25608 *) conftest_s=' .text
25609 .LCF0:
25610 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25611 esac
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25614 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25615 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25617 else
25618 gcc_cv_as_powerpc_rel16=no
25619 if test $in_tree_gas = yes; then
25620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25621 then gcc_cv_as_powerpc_rel16=yes
25623 elif test x$gcc_cv_as != x; then
25624 $as_echo "$conftest_s" > conftest.s
25625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25627 (eval $ac_try) 2>&5
25628 ac_status=$?
25629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25630 test $ac_status = 0; }; }
25631 then
25632 gcc_cv_as_powerpc_rel16=yes
25633 else
25634 echo "configure: failed program was" >&5
25635 cat conftest.s >&5
25637 rm -f conftest.o conftest.s
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25641 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25642 if test $gcc_cv_as_powerpc_rel16 = yes; then
25644 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25648 case $target in
25649 *-*-aix*) conftest_s=' .machine "pwr6"
25650 .csect .text[PR]
25651 cmpb 3,4,5';;
25652 *) conftest_s=' .machine power6
25653 .text
25654 cmpb 3,4,5';;
25655 esac
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25658 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25659 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25660 $as_echo_n "(cached) " >&6
25661 else
25662 gcc_cv_as_powerpc_cmpb=no
25663 if test $in_tree_gas = yes; then
25664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25665 then gcc_cv_as_powerpc_cmpb=yes
25667 elif test x$gcc_cv_as != x; then
25668 $as_echo "$conftest_s" > conftest.s
25669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25671 (eval $ac_try) 2>&5
25672 ac_status=$?
25673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25674 test $ac_status = 0; }; }
25675 then
25676 gcc_cv_as_powerpc_cmpb=yes
25677 else
25678 echo "configure: failed program was" >&5
25679 cat conftest.s >&5
25681 rm -f conftest.o conftest.s
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25685 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25686 if test $gcc_cv_as_powerpc_cmpb = yes; then
25688 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25692 case $target in
25693 *-*-aix*) conftest_s=' .machine "pwr6"
25694 .csect .text[PR]
25695 dadd 1,2,3';;
25696 *) conftest_s=' .machine power6
25697 .text
25698 dadd 1,2,3';;
25699 esac
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25702 $as_echo_n "checking assembler for decimal float support... " >&6; }
25703 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25704 $as_echo_n "(cached) " >&6
25705 else
25706 gcc_cv_as_powerpc_dfp=no
25707 if test $in_tree_gas = yes; then
25708 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25709 then gcc_cv_as_powerpc_dfp=yes
25711 elif test x$gcc_cv_as != x; then
25712 $as_echo "$conftest_s" > conftest.s
25713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25715 (eval $ac_try) 2>&5
25716 ac_status=$?
25717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25718 test $ac_status = 0; }; }
25719 then
25720 gcc_cv_as_powerpc_dfp=yes
25721 else
25722 echo "configure: failed program was" >&5
25723 cat conftest.s >&5
25725 rm -f conftest.o conftest.s
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25729 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25730 if test $gcc_cv_as_powerpc_dfp = yes; then
25732 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25736 case $target in
25737 *-*-aix*) conftest_s=' .machine "pwr7"
25738 .csect .text[PR]
25739 lxvd2x 1,2,3';;
25740 *) conftest_s=' .machine power7
25741 .text
25742 lxvd2x 1,2,3';;
25743 esac
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25746 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25747 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25748 $as_echo_n "(cached) " >&6
25749 else
25750 gcc_cv_as_powerpc_vsx=no
25751 if test $in_tree_gas = yes; then
25752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25753 then gcc_cv_as_powerpc_vsx=yes
25755 elif test x$gcc_cv_as != x; then
25756 $as_echo "$conftest_s" > conftest.s
25757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25759 (eval $ac_try) 2>&5
25760 ac_status=$?
25761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25762 test $ac_status = 0; }; }
25763 then
25764 gcc_cv_as_powerpc_vsx=yes
25765 else
25766 echo "configure: failed program was" >&5
25767 cat conftest.s >&5
25769 rm -f conftest.o conftest.s
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25773 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25774 if test $gcc_cv_as_powerpc_vsx = yes; then
25776 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25780 case $target in
25781 *-*-aix*) conftest_s=' .machine "pwr7"
25782 .csect .text[PR]
25783 popcntd 3,3';;
25784 *) conftest_s=' .machine power7
25785 .text
25786 popcntd 3,3';;
25787 esac
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25790 $as_echo_n "checking assembler for popcntd support... " >&6; }
25791 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25792 $as_echo_n "(cached) " >&6
25793 else
25794 gcc_cv_as_powerpc_popcntd=no
25795 if test $in_tree_gas = yes; then
25796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25797 then gcc_cv_as_powerpc_popcntd=yes
25799 elif test x$gcc_cv_as != x; then
25800 $as_echo "$conftest_s" > conftest.s
25801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25803 (eval $ac_try) 2>&5
25804 ac_status=$?
25805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25806 test $ac_status = 0; }; }
25807 then
25808 gcc_cv_as_powerpc_popcntd=yes
25809 else
25810 echo "configure: failed program was" >&5
25811 cat conftest.s >&5
25813 rm -f conftest.o conftest.s
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25817 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25818 if test $gcc_cv_as_powerpc_popcntd = yes; then
25820 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25824 case $target in
25825 *-*-aix*) conftest_s=' .machine "pwr8"
25826 .csect .text[PR]';;
25827 *) conftest_s=' .machine power8
25828 .text';;
25829 esac
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25832 $as_echo_n "checking assembler for power8 support... " >&6; }
25833 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25834 $as_echo_n "(cached) " >&6
25835 else
25836 gcc_cv_as_powerpc_power8=no
25837 if test $in_tree_gas = yes; then
25838 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25839 then gcc_cv_as_powerpc_power8=yes
25841 elif test x$gcc_cv_as != x; then
25842 $as_echo "$conftest_s" > conftest.s
25843 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25845 (eval $ac_try) 2>&5
25846 ac_status=$?
25847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25848 test $ac_status = 0; }; }
25849 then
25850 gcc_cv_as_powerpc_power8=yes
25851 else
25852 echo "configure: failed program was" >&5
25853 cat conftest.s >&5
25855 rm -f conftest.o conftest.s
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25859 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25860 if test $gcc_cv_as_powerpc_power8 = yes; then
25862 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25866 case $target in
25867 *-*-aix*) conftest_s=' .csect .text[PR]
25868 lwsync';;
25869 *) conftest_s=' .text
25870 lwsync';;
25871 esac
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25874 $as_echo_n "checking assembler for lwsync support... " >&6; }
25875 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25876 $as_echo_n "(cached) " >&6
25877 else
25878 gcc_cv_as_powerpc_lwsync=no
25879 if test $in_tree_gas = yes; then
25880 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25881 then gcc_cv_as_powerpc_lwsync=yes
25883 elif test x$gcc_cv_as != x; then
25884 $as_echo "$conftest_s" > conftest.s
25885 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25887 (eval $ac_try) 2>&5
25888 ac_status=$?
25889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25890 test $ac_status = 0; }; }
25891 then
25892 gcc_cv_as_powerpc_lwsync=yes
25893 else
25894 echo "configure: failed program was" >&5
25895 cat conftest.s >&5
25897 rm -f conftest.o conftest.s
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25901 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25902 if test $gcc_cv_as_powerpc_lwsync = yes; then
25904 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25908 case $target in
25909 *-*-aix*) conftest_s=' .machine "476"
25910 .csect .text[PR]
25911 dci 0';;
25912 *) conftest_s=' .machine "476"
25913 .text
25914 dci 0';;
25915 esac
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25918 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25919 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25920 $as_echo_n "(cached) " >&6
25921 else
25922 gcc_cv_as_powerpc_dci=no
25923 if test $in_tree_gas = yes; then
25924 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25925 then gcc_cv_as_powerpc_dci=yes
25927 elif test x$gcc_cv_as != x; then
25928 $as_echo "$conftest_s" > conftest.s
25929 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25934 test $ac_status = 0; }; }
25935 then
25936 gcc_cv_as_powerpc_dci=yes
25937 else
25938 echo "configure: failed program was" >&5
25939 cat conftest.s >&5
25941 rm -f conftest.o conftest.s
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25945 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25946 if test $gcc_cv_as_powerpc_dci = yes; then
25948 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25953 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25954 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25955 $as_echo_n "(cached) " >&6
25956 else
25957 gcc_cv_as_powerpc_gnu_attribute=no
25958 if test $in_tree_gas = yes; then
25959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25960 then gcc_cv_as_powerpc_gnu_attribute=yes
25962 elif test x$gcc_cv_as != x; then
25963 $as_echo '.gnu_attribute 4,1' > conftest.s
25964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25966 (eval $ac_try) 2>&5
25967 ac_status=$?
25968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25969 test $ac_status = 0; }; }
25970 then
25971 gcc_cv_as_powerpc_gnu_attribute=yes
25972 else
25973 echo "configure: failed program was" >&5
25974 cat conftest.s >&5
25976 rm -f conftest.o conftest.s
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25980 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25981 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25983 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25988 $as_echo_n "checking assembler for tls marker support... " >&6; }
25989 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25990 $as_echo_n "(cached) " >&6
25991 else
25992 gcc_cv_as_powerpc_tls_markers=no
25993 if test $in_tree_gas = yes; then
25994 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25995 then gcc_cv_as_powerpc_tls_markers=yes
25997 elif test x$gcc_cv_as != x; then
25998 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25999 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26001 (eval $ac_try) 2>&5
26002 ac_status=$?
26003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26004 test $ac_status = 0; }; }
26005 then
26006 gcc_cv_as_powerpc_tls_markers=yes
26007 else
26008 echo "configure: failed program was" >&5
26009 cat conftest.s >&5
26011 rm -f conftest.o conftest.s
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26015 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26016 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26018 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26022 case $target in
26023 *-*-aix*)
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26025 $as_echo_n "checking assembler for .ref support... " >&6; }
26026 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26027 $as_echo_n "(cached) " >&6
26028 else
26029 gcc_cv_as_aix_ref=no
26030 if test $in_tree_gas = yes; then
26031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26032 then gcc_cv_as_aix_ref=yes
26034 elif test x$gcc_cv_as != x; then
26035 $as_echo ' .csect stuff[rw]
26036 stuff:
26037 .long 1
26038 .extern sym
26039 .ref sym
26040 ' > conftest.s
26041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; }
26047 then
26048 gcc_cv_as_aix_ref=yes
26049 else
26050 echo "configure: failed program was" >&5
26051 cat conftest.s >&5
26053 rm -f conftest.o conftest.s
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26057 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26058 if test $gcc_cv_as_aix_ref = yes; then
26060 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26064 esac
26067 mips*-*-*)
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26069 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26070 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26071 $as_echo_n "(cached) " >&6
26072 else
26073 gcc_cv_as_mips_explicit_relocs=no
26074 if test $in_tree_gas = yes; then
26075 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26076 then gcc_cv_as_mips_explicit_relocs=yes
26078 elif test x$gcc_cv_as != x; then
26079 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26080 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26085 test $ac_status = 0; }; }
26086 then
26087 gcc_cv_as_mips_explicit_relocs=yes
26088 else
26089 echo "configure: failed program was" >&5
26090 cat conftest.s >&5
26092 rm -f conftest.o conftest.s
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26096 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26097 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26098 if test x$target_cpu_default = x
26099 then target_cpu_default=MASK_EXPLICIT_RELOCS
26100 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26104 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26105 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26106 $as_echo_n "(cached) " >&6
26107 else
26108 gcc_cv_as_mips_no_shared=no
26109 if test $in_tree_gas = yes; then
26110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26111 then gcc_cv_as_mips_no_shared=yes
26113 elif test x$gcc_cv_as != x; then
26114 $as_echo 'nop' > conftest.s
26115 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26120 test $ac_status = 0; }; }
26121 then
26122 gcc_cv_as_mips_no_shared=yes
26123 else
26124 echo "configure: failed program was" >&5
26125 cat conftest.s >&5
26127 rm -f conftest.o conftest.s
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26131 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26132 if test $gcc_cv_as_mips_no_shared = yes; then
26134 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26139 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26140 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26141 $as_echo_n "(cached) " >&6
26142 else
26143 gcc_cv_as_mips_gnu_attribute=no
26144 if test $in_tree_gas = yes; then
26145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26146 then gcc_cv_as_mips_gnu_attribute=yes
26148 elif test x$gcc_cv_as != x; then
26149 $as_echo '.gnu_attribute 4,1' > conftest.s
26150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26155 test $ac_status = 0; }; }
26156 then
26157 gcc_cv_as_mips_gnu_attribute=yes
26158 else
26159 echo "configure: failed program was" >&5
26160 cat conftest.s >&5
26162 rm -f conftest.o conftest.s
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26166 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26167 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26169 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26174 $as_echo_n "checking assembler for .micromips support... " >&6; }
26175 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26176 $as_echo_n "(cached) " >&6
26177 else
26178 gcc_cv_as_micromips_support=no
26179 if test x$gcc_cv_as != x; then
26180 $as_echo '.set micromips' > conftest.s
26181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26183 (eval $ac_try) 2>&5
26184 ac_status=$?
26185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26186 test $ac_status = 0; }; }
26187 then
26188 gcc_cv_as_micromips_support=yes
26189 else
26190 echo "configure: failed program was" >&5
26191 cat conftest.s >&5
26193 rm -f conftest.o conftest.s
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26197 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26198 if test $gcc_cv_as_micromips_support = yes; then
26200 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26205 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26206 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26208 else
26209 gcc_cv_as_mips_dtprelword=no
26210 if test $in_tree_gas = yes; then
26211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26212 then gcc_cv_as_mips_dtprelword=yes
26214 elif test x$gcc_cv_as != x; then
26215 $as_echo '.section .tdata,"awT",@progbits
26217 .word 2
26218 .text
26219 .dtprelword x+0x8000' > conftest.s
26220 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26222 (eval $ac_try) 2>&5
26223 ac_status=$?
26224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26225 test $ac_status = 0; }; }
26226 then
26227 gcc_cv_as_mips_dtprelword=yes
26228 else
26229 echo "configure: failed program was" >&5
26230 cat conftest.s >&5
26232 rm -f conftest.o conftest.s
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26236 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26237 if test $gcc_cv_as_mips_dtprelword = yes; then
26239 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26244 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26245 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26246 $as_echo_n "(cached) " >&6
26247 else
26248 gcc_cv_as_mips_dspr1_mult=no
26249 if test x$gcc_cv_as != x; then
26250 $as_echo ' .set mips32r2
26251 .set nodspr2
26252 .set dsp
26253 madd $ac3,$4,$5
26254 maddu $ac3,$4,$5
26255 msub $ac3,$4,$5
26256 msubu $ac3,$4,$5
26257 mult $ac3,$4,$5
26258 multu $ac3,$4,$5' > conftest.s
26259 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26264 test $ac_status = 0; }; }
26265 then
26266 gcc_cv_as_mips_dspr1_mult=yes
26267 else
26268 echo "configure: failed program was" >&5
26269 cat conftest.s >&5
26271 rm -f conftest.o conftest.s
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26275 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26276 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26278 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26283 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26284 gcc_cv_as_ld_jalr_reloc=no
26285 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26286 if test $in_tree_ld = yes ; then
26287 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 \
26288 && test $in_tree_ld_is_elf = yes; then
26289 gcc_cv_as_ld_jalr_reloc=yes
26291 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26292 echo ' .ent x' > conftest.s
26293 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26294 echo ' lw $25,%call16(y)($28)' >> conftest.s
26295 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26296 echo '1: jalr $25' >> conftest.s
26297 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26298 echo '1: jalr $25' >> conftest.s
26299 echo ' .end x' >> conftest.s
26300 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26301 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26302 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26303 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26304 gcc_cv_as_ld_jalr_reloc=yes
26307 rm -f conftest.*
26310 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26311 if test x$target_cpu_default = x; then
26312 target_cpu_default=MASK_RELAX_PIC_CALLS
26313 else
26314 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26318 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26321 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26322 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26323 $as_echo_n "(cached) " >&6
26324 else
26325 gcc_cv_ld_mips_personality_relaxation=no
26326 if test $in_tree_ld = yes ; then
26327 if test "$gcc_cv_gld_major_version" -eq 2 \
26328 -a "$gcc_cv_gld_minor_version" -ge 21 \
26329 -o "$gcc_cv_gld_major_version" -gt 2; then
26330 gcc_cv_ld_mips_personality_relaxation=yes
26332 elif test x$gcc_cv_as != x \
26333 -a x$gcc_cv_ld != x \
26334 -a x$gcc_cv_readelf != x ; then
26335 cat > conftest.s <<EOF
26336 .cfi_startproc
26337 .cfi_personality 0x80,indirect_ptr
26338 .ent test
26339 test:
26341 .end test
26342 .cfi_endproc
26344 .section .data,"aw",@progbits
26345 indirect_ptr:
26346 .dc.a personality
26348 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26349 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26350 if $gcc_cv_readelf -d conftest 2>&1 \
26351 | grep TEXTREL > /dev/null 2>&1; then
26353 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26354 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26356 else
26357 gcc_cv_ld_mips_personality_relaxation=yes
26361 rm -f conftest.s conftest.o conftest
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26364 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26365 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26367 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26372 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26373 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26374 $as_echo_n "(cached) " >&6
26375 else
26376 gcc_cv_as_mips_nan=no
26377 if test x$gcc_cv_as != x; then
26378 $as_echo '' > conftest.s
26379 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26381 (eval $ac_try) 2>&5
26382 ac_status=$?
26383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26384 test $ac_status = 0; }; }
26385 then
26386 gcc_cv_as_mips_nan=yes
26387 else
26388 echo "configure: failed program was" >&5
26389 cat conftest.s >&5
26391 rm -f conftest.o conftest.s
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26395 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26396 if test $gcc_cv_as_mips_nan = yes; then
26398 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26401 if test x$gcc_cv_as_mips_nan = xno \
26402 && test x$with_nan != x; then
26403 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26406 esac
26408 # Mips and HP-UX need the GNU assembler.
26409 # Linux on IA64 might be able to use the Intel assembler.
26411 case "$target" in
26412 mips*-*-* | *-*-hpux* )
26413 if test x$gas_flag = xyes \
26414 || test x"$host" != x"$build" \
26415 || test ! -x "$gcc_cv_as" \
26416 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26418 else
26419 echo "*** This configuration requires the GNU assembler" >&2
26420 exit 1
26423 esac
26425 # ??? Not all targets support dwarf2 debug_line, even within a version
26426 # of gas. Moreover, we need to emit a valid instruction to trigger any
26427 # info to the output file. So, as supported targets are added to gas 2.11,
26428 # add some instruction here to (also) show we expect this might work.
26429 # ??? Once 2.11 is released, probably need to add first known working
26430 # version to the per-target configury.
26431 case "$cpu_type" in
26432 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26433 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26434 | xstormy16 | xtensa)
26435 insn="nop"
26437 ia64 | s390)
26438 insn="nop 0"
26440 mmix)
26441 insn="swym 0"
26443 esac
26444 if test x"$insn" != x; then
26445 conftest_s="\
26446 .file 1 \"conftest.s\"
26447 .loc 1 3 0
26448 $insn"
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26450 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26451 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26453 else
26454 gcc_cv_as_dwarf2_debug_line=no
26455 if test $in_tree_gas = yes; then
26456 if test $in_tree_gas_is_elf = yes \
26457 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26458 then gcc_cv_as_dwarf2_debug_line=yes
26460 elif test x$gcc_cv_as != x; then
26461 $as_echo "$conftest_s" > conftest.s
26462 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26464 (eval $ac_try) 2>&5
26465 ac_status=$?
26466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467 test $ac_status = 0; }; }
26468 then
26469 if test x$gcc_cv_objdump != x \
26470 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26471 | grep debug_line > /dev/null 2>&1; then
26472 gcc_cv_as_dwarf2_debug_line=yes
26474 else
26475 echo "configure: failed program was" >&5
26476 cat conftest.s >&5
26478 rm -f conftest.o conftest.s
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26482 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26485 # The .debug_line file table must be in the exact order that
26486 # we specified the files, since these indices are also used
26487 # by DW_AT_decl_file. Approximate this test by testing if
26488 # the assembler bitches if the same index is assigned twice.
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26490 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26491 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26492 $as_echo_n "(cached) " >&6
26493 else
26494 gcc_cv_as_dwarf2_file_buggy=no
26495 if test x$gcc_cv_as != x; then
26496 $as_echo ' .file 1 "foo.s"
26497 .file 1 "bar.s"' > conftest.s
26498 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26500 (eval $ac_try) 2>&5
26501 ac_status=$?
26502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26503 test $ac_status = 0; }; }
26504 then
26505 gcc_cv_as_dwarf2_file_buggy=yes
26506 else
26507 echo "configure: failed program was" >&5
26508 cat conftest.s >&5
26510 rm -f conftest.o conftest.s
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26514 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26517 if test $gcc_cv_as_dwarf2_debug_line = yes \
26518 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26520 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26525 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26526 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26527 $as_echo_n "(cached) " >&6
26528 else
26529 gcc_cv_as_gdwarf2_flag=no
26530 if test $in_tree_gas = yes; then
26531 if test $in_tree_gas_is_elf = yes \
26532 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26533 then gcc_cv_as_gdwarf2_flag=yes
26535 elif test x$gcc_cv_as != x; then
26536 $as_echo "$insn" > conftest.s
26537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26539 (eval $ac_try) 2>&5
26540 ac_status=$?
26541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26542 test $ac_status = 0; }; }
26543 then
26544 gcc_cv_as_gdwarf2_flag=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_gdwarf2_flag" >&5
26553 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26554 if test $gcc_cv_as_gdwarf2_flag = yes; then
26556 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26561 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26562 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26563 $as_echo_n "(cached) " >&6
26564 else
26565 gcc_cv_as_gstabs_flag=no
26566 if test $in_tree_gas = yes; then
26567 if test $in_tree_gas_is_elf = yes \
26568 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26569 then gcc_cv_as_gstabs_flag=yes
26571 elif test x$gcc_cv_as != x; then
26572 $as_echo "$insn" > conftest.s
26573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26575 (eval $ac_try) 2>&5
26576 ac_status=$?
26577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26578 test $ac_status = 0; }; }
26579 then
26580 gcc_cv_as_gstabs_flag=yes
26581 else
26582 echo "configure: failed program was" >&5
26583 cat conftest.s >&5
26585 rm -f conftest.o conftest.s
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26589 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26590 if test $gcc_cv_as_gstabs_flag = yes; then
26592 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26597 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26598 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26599 $as_echo_n "(cached) " >&6
26600 else
26601 gcc_cv_as_debug_prefix_map_flag=no
26602 if test $in_tree_gas = yes; then
26603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26604 then gcc_cv_as_debug_prefix_map_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 --debug-prefix-map /a=/b -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_debug_prefix_map_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_debug_prefix_map_flag" >&5
26624 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26625 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26627 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26633 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26634 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26635 $as_echo_n "(cached) " >&6
26636 else
26637 gcc_cv_as_compress_debug=no
26638 if test x$gcc_cv_as != x; then
26639 $as_echo '' > conftest.s
26640 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26642 (eval $ac_try) 2>&5
26643 ac_status=$?
26644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26645 test $ac_status = 0; }; }
26646 then
26647 # gas compiled without zlib cannot compress debug sections and warns
26648 # about it, but still exits successfully. So check for this, too.
26649 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null
26650 then
26651 gcc_cv_as_compress_debug=0
26652 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s > /dev/null 2>&1
26653 then
26654 gcc_cv_as_compress_debug=1
26655 gcc_cv_as_compress_debug_option="--compress-debug-sections"
26656 gcc_cv_as_no_compress_debug_option="--nocompress-debug-sections"
26657 else
26658 gcc_cv_as_compress_debug=0
26659 # FIXME: Future gas versions will support ELF gABI style via
26660 # --compress-debug-sections[=type].
26662 else
26663 echo "configure: failed program was" >&5
26664 cat conftest.s >&5
26666 rm -f conftest.o conftest.s
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26670 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26673 cat >>confdefs.h <<_ACEOF
26674 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26675 _ACEOF
26678 cat >>confdefs.h <<_ACEOF
26679 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26680 _ACEOF
26683 cat >>confdefs.h <<_ACEOF
26684 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26685 _ACEOF
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26689 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26690 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26691 $as_echo_n "(cached) " >&6
26692 else
26693 gcc_cv_as_lcomm_with_alignment=no
26694 if test x$gcc_cv_as != x; then
26695 $as_echo '.lcomm bar,4,16' > conftest.s
26696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26701 test $ac_status = 0; }; }
26702 then
26703 gcc_cv_as_lcomm_with_alignment=yes
26704 else
26705 echo "configure: failed program was" >&5
26706 cat conftest.s >&5
26708 rm -f conftest.o conftest.s
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26712 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26713 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26715 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26719 if test x$with_sysroot = x && test x$host = x$target \
26720 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26721 && test "$prefix" != "NONE"; then
26723 cat >>confdefs.h <<_ACEOF
26724 #define PREFIX_INCLUDE_DIR "$prefix/include"
26725 _ACEOF
26729 # Determine the version of glibc, if any, used on the target.
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26731 $as_echo_n "checking for target glibc version... " >&6; }
26733 # Check whether --with-glibc-version was given.
26734 if test "${with_glibc_version+set}" = set; then :
26735 withval=$with_glibc_version;
26736 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26737 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26738 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26739 else
26740 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26742 else
26744 glibc_version_major=0
26745 glibc_version_minor=0
26746 if test -f $target_header_dir/features.h \
26747 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26748 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26749 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26750 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26755 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26757 # Check whether --enable-gnu-unique-object was given.
26758 if test "${enable_gnu_unique_object+set}" = set; then :
26759 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26760 yes | no) ;;
26761 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26762 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26763 esac
26764 else
26765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26766 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26767 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26768 $as_echo_n "(cached) " >&6
26769 else
26770 gcc_cv_as_gnu_unique_object=no
26771 if test $in_tree_gas = yes; then
26772 if test $in_tree_gas_is_elf = yes \
26773 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26774 then gcc_cv_as_gnu_unique_object=yes
26776 elif test x$gcc_cv_as != x; then
26777 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26778 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26780 (eval $ac_try) 2>&5
26781 ac_status=$?
26782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26783 test $ac_status = 0; }; }
26784 then
26785 gcc_cv_as_gnu_unique_object=yes
26786 else
26787 echo "configure: failed program was" >&5
26788 cat conftest.s >&5
26790 rm -f conftest.o conftest.s
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26794 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26795 if test $gcc_cv_as_gnu_unique_object = yes; then
26796 # We need to unquote above to to use the definition from config.gcc.
26797 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26799 if test $glibc_version_major -gt 2 \
26800 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26801 enable_gnu_unique_object=yes
26807 if test x$enable_gnu_unique_object = xyes; then
26809 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26814 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26815 if test "${gcc_cv_as_line_zero+set}" = set; then :
26816 $as_echo_n "(cached) " >&6
26817 else
26818 gcc_cv_as_line_zero=no
26819 if test $in_tree_gas = yes; then
26820 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26821 then gcc_cv_as_line_zero=yes
26823 elif test "x$gcc_cv_as" != x; then
26824 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26825 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26827 (eval $ac_try) 2>&5
26828 ac_status=$?
26829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26830 test $ac_status = 0; }; } &&
26831 test "x`cat conftest.out`" = x
26832 then
26833 gcc_cv_as_line_zero=yes
26834 else
26835 echo "configure: failed program was" >&5
26836 cat conftest.s >&5
26837 echo "configure: error output was" >&5
26838 cat conftest.out >&5
26840 rm -f conftest.o conftest.s conftest.out
26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26844 $as_echo "$gcc_cv_as_line_zero" >&6; }
26845 if test "x$gcc_cv_as_line_zero" = xyes; then
26847 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26852 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26853 gcc_cv_ld_eh_frame_hdr=no
26854 if test $in_tree_ld = yes ; then
26855 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 \
26856 && test $in_tree_ld_is_elf = yes; then
26857 gcc_cv_ld_eh_frame_hdr=yes
26859 elif test x$gcc_cv_ld != x; then
26860 if echo "$ld_ver" | grep GNU > /dev/null; then
26861 # Check if linker supports --eh-frame-hdr option
26862 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26863 gcc_cv_ld_eh_frame_hdr=yes
26865 else
26866 case "$target" in
26867 *-*-solaris2*)
26868 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26869 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26870 gcc_cv_ld_eh_frame_hdr=yes
26873 esac
26877 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26879 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26883 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26886 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26887 gcc_cv_ld_eh_frame_ciev3=no
26888 if test $in_tree_ld = yes ; then
26889 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 \
26890 && test $in_tree_ld_is_elf = yes; then
26891 gcc_cv_ld_eh_frame_ciev3=yes
26893 elif test x$gcc_cv_ld != x; then
26894 if echo "$ld_ver" | grep GNU > /dev/null; then
26895 gcc_cv_ld_eh_frame_ciev3=yes
26896 if test 0"$ld_date" -lt 20040513; then
26897 if test -n "$ld_date"; then
26898 # If there was date string, but was earlier than 2004-05-13, fail
26899 gcc_cv_ld_eh_frame_ciev3=no
26900 elif test "$ld_vers_major" -lt 2; then
26901 gcc_cv_ld_eh_frame_ciev3=no
26902 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26903 gcc_cv_ld_eh_frame_ciev3=no
26906 else
26907 case "$target" in
26908 *-*-solaris2*)
26909 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26910 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26911 gcc_cv_ld_eh_frame_ciev3=yes
26914 esac
26918 cat >>confdefs.h <<_ACEOF
26919 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26920 _ACEOF
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26923 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26926 $as_echo_n "checking linker position independent executable support... " >&6; }
26927 gcc_cv_ld_pie=no
26928 if test $in_tree_ld = yes ; then
26929 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 \
26930 && test $in_tree_ld_is_elf = yes; then
26931 gcc_cv_ld_pie=yes
26933 elif test x$gcc_cv_ld != x; then
26934 # Check if linker supports -pie option
26935 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26936 gcc_cv_ld_pie=yes
26939 if test x"$gcc_cv_ld_pie" = xyes; then
26941 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26945 $as_echo "$gcc_cv_ld_pie" >&6; }
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26948 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26949 gcc_cv_ld_eh_gc_sections=no
26950 if test $in_tree_ld = yes ; then
26951 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
26952 && test $in_tree_ld_is_elf = yes; then
26953 gcc_cv_ld_eh_gc_sections=yes
26955 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26956 cat > conftest.s <<EOF
26957 .section .text
26958 .globl _start
26959 .type _start, @function
26960 _start:
26961 .long foo
26962 .size _start, .-_start
26963 .section .text.foo,"ax",@progbits
26964 .type foo, @function
26965 foo:
26966 .long 0
26967 .size foo, .-foo
26968 .section .gcc_except_table.foo,"a",@progbits
26969 .L0:
26970 .long 0
26971 .section .eh_frame,"a",@progbits
26972 .long .L0
26974 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26975 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26976 | grep "gc-sections option ignored" > /dev/null; then
26977 gcc_cv_ld_eh_gc_sections=no
26978 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26979 | grep gcc_except_table > /dev/null; then
26980 gcc_cv_ld_eh_gc_sections=yes
26981 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26982 if test x$gcc_cv_as_comdat_group != xyes; then
26983 gcc_cv_ld_eh_gc_sections=no
26984 cat > conftest.s <<EOF
26985 .section .text
26986 .globl _start
26987 .type _start, @function
26988 _start:
26989 .long foo
26990 .size _start, .-_start
26991 .section .gnu.linkonce.t.foo,"ax",@progbits
26992 .type foo, @function
26993 foo:
26994 .long 0
26995 .size foo, .-foo
26996 .section .gcc_except_table.foo,"a",@progbits
26997 .L0:
26998 .long 0
26999 .section .eh_frame,"a",@progbits
27000 .long .L0
27002 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27003 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27004 | grep "gc-sections option ignored" > /dev/null; then
27005 gcc_cv_ld_eh_gc_sections=no
27006 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27007 | grep gcc_except_table > /dev/null; then
27008 gcc_cv_ld_eh_gc_sections=yes
27014 rm -f conftest.s conftest.o conftest
27016 case "$target" in
27017 hppa*-*-linux*)
27018 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27019 gcc_cv_ld_eh_gc_sections=no
27021 esac
27022 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27024 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27028 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27031 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27032 gcc_cv_ld_eh_gc_sections_bug=no
27033 if test $in_tree_ld = yes ; then
27034 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 \
27035 && test $in_tree_ld_is_elf = yes; then
27036 gcc_cv_ld_eh_gc_sections_bug=yes
27038 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
27039 gcc_cv_ld_eh_gc_sections_bug=yes
27040 cat > conftest.s <<EOF
27041 .section .text
27042 .globl _start
27043 .type _start, @function
27044 _start:
27045 .long foo
27046 .size _start, .-_start
27047 .section .text.startup.foo,"ax",@progbits
27048 .type foo, @function
27049 foo:
27050 .long 0
27051 .size foo, .-foo
27052 .section .gcc_except_table.foo,"a",@progbits
27053 .L0:
27054 .long 0
27055 .section .eh_frame,"a",@progbits
27056 .long .L0
27058 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27059 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27060 | grep "gc-sections option ignored" > /dev/null; then
27062 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27063 | grep gcc_except_table > /dev/null; then
27064 gcc_cv_ld_eh_gc_sections_bug=no
27067 rm -f conftest.s conftest.o conftest
27069 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27071 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27075 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27078 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27079 # gold/gld support compressed debug sections since binutils 2.19/2.21
27080 if test $in_tree_ld = yes ; then
27081 gcc_cv_ld_compress_debug=0
27082 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 \
27083 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27084 gcc_cv_ld_compress_debug=2
27085 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27086 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 \
27087 && test $in_tree_ld_is_elf = yes; then
27088 gcc_cv_ld_compress_debug=1
27090 elif echo "$ld_ver" | grep GNU > /dev/null; then
27091 gcc_cv_ld_compress_debug=1
27092 if test 0"$ld_date" -lt 20050308; then
27093 if test -n "$ld_date"; then
27094 # If there was date string, but was earlier than 2005-03-08, fail
27095 gcc_cv_ld_compress_debug=0
27096 elif test "$ld_vers_major" -lt 2; then
27097 gcc_cv_ld_compress_debug=0
27098 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27099 gcc_cv_ld_compress_debug=0
27102 if test $ld_is_gold = yes; then
27103 gcc_cv_ld_compress_debug=2
27104 gcc_cv_ld_compress_debug_option="--compress-debug-sections"
27106 else
27107 case "${target}" in
27108 *-*-solaris2*)
27109 # Introduced in Solaris 11.2.
27110 if $gcc_cv_ld --help 2>&1 | grep -- '-z compress-sections' > /dev/null; then
27111 gcc_cv_ld_compress_debug=3
27112 gcc_cv_ld_compress_debug_option="-z compress-sections"
27113 else
27114 gcc_cv_ld_compress_debug=0
27118 # Assume linkers other than GNU ld don't support compessed debug
27119 # sections.
27120 gcc_cv_ld_compress_debug=0
27122 esac
27125 cat >>confdefs.h <<_ACEOF
27126 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27127 _ACEOF
27130 cat >>confdefs.h <<_ACEOF
27131 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27132 _ACEOF
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27135 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27137 # --------
27138 # UNSORTED
27139 # --------
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27142 $as_echo_n "checking linker --as-needed support... " >&6; }
27143 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27144 $as_echo_n "(cached) " >&6
27145 else
27146 gcc_cv_ld_as_needed=no
27147 gcc_cv_ld_as_needed_option='--as-needed'
27148 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27149 if test $in_tree_ld = yes ; then
27150 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 \
27151 && test $in_tree_ld_is_elf = yes; then
27152 gcc_cv_ld_as_needed=yes
27154 elif test x$gcc_cv_ld != x; then
27155 # Check if linker supports --as-needed and --no-as-needed options
27156 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27157 gcc_cv_ld_as_needed=yes
27158 else
27159 case "$target" in
27160 # Solaris 2 ld always supports -z ignore/-z record.
27161 *-*-solaris2*)
27162 gcc_cv_ld_as_needed=yes
27163 gcc_cv_ld_as_needed_option="-z ignore"
27164 gcc_cv_ld_no_as_needed_option="-z record"
27166 esac
27169 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27170 # dl_iterate_phdr, i.e. since Solaris 11.
27171 case "$target" in
27172 *-*-solaris2.1[1-9]*)
27173 case "$target" in
27174 i?86-*-* | x86_64-*-*)
27175 if echo "$ld_ver" | grep GNU > /dev/null; then
27176 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27177 gcc_cv_ld_as_needed=no
27180 esac
27182 *-*-solaris2*)
27183 gcc_cv_ld_as_needed=no
27185 esac
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27189 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27190 if test x"$gcc_cv_ld_as_needed" = xyes; then
27192 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27195 cat >>confdefs.h <<_ACEOF
27196 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27197 _ACEOF
27200 cat >>confdefs.h <<_ACEOF
27201 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27202 _ACEOF
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27207 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27208 saved_LDFLAGS="$LDFLAGS"
27209 for clearcap_map in sol2-clearcapv2.map sol2-clearcap.map; do
27210 LDFLAGS="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27212 /* end confdefs.h. */
27213 int main(void) {return 0;}
27214 _ACEOF
27215 if ac_fn_c_try_link "$LINENO"; then :
27216 gcc_cv_ld_clearcap=yes; break
27217 else
27218 gcc_cv_ld_clearcap=no
27220 rm -f core conftest.err conftest.$ac_objext \
27221 conftest$ac_exeext conftest.$ac_ext
27222 done
27223 LDFLAGS="$saved_LDFLAGS"
27224 if test "x$gcc_cv_ld_clearcap" = xyes; then
27226 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27228 ac_config_links="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27232 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27234 case "$target:$tm_file" in
27235 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27236 case "$target" in
27237 *le-*-linux*)
27238 emul_name="-melf64lppc"
27240 *-*-linux*)
27241 emul_name="-melf64ppc"
27243 *-*-freebsd*)
27244 emul_name="-melf64ppc_fbsd"
27246 esac
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27248 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27249 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27250 $as_echo_n "(cached) " >&6
27251 else
27252 gcc_cv_ld_no_dot_syms=no
27253 if test x"$ld_is_gold" = xyes; then
27254 gcc_cv_ld_no_dot_syms=yes
27255 elif test $in_tree_ld = yes ; then
27256 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
27257 gcc_cv_ld_no_dot_syms=yes
27259 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27260 cat > conftest1.s <<EOF
27261 .text
27262 bl .foo
27264 cat > conftest2.s <<EOF
27265 .section ".opd","aw"
27266 .align 3
27267 .globl foo
27268 .type foo,@function
27269 foo:
27270 .quad .LEfoo,.TOC.@tocbase,0
27271 .text
27272 .LEfoo:
27274 .size foo,.-.LEfoo
27276 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27277 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27278 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27279 gcc_cv_ld_no_dot_syms=yes
27281 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27286 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27287 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27289 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27294 $as_echo_n "checking linker large toc support... " >&6; }
27295 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27296 $as_echo_n "(cached) " >&6
27297 else
27298 gcc_cv_ld_large_toc=no
27299 if test x"$ld_is_gold" = xyes; then
27300 gcc_cv_ld_large_toc=yes
27301 elif test $in_tree_ld = yes ; then
27302 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
27303 gcc_cv_ld_large_toc=yes
27305 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27306 cat > conftest.s <<EOF
27307 .section ".tbss","awT",@nobits
27308 .align 3
27309 ie0: .space 8
27310 .global _start
27311 .text
27312 _start:
27313 addis 9,13,ie0@got@tprel@ha
27314 ld 9,ie0@got@tprel@l(9)
27316 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27317 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27318 gcc_cv_ld_large_toc=yes
27320 rm -f conftest conftest.o conftest.s
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27325 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27326 if test x"$gcc_cv_ld_large_toc" = xyes; then
27328 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27332 esac
27334 case "$target" in
27335 *-*-aix*)
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27337 $as_echo_n "checking linker large toc support... " >&6; }
27338 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27339 $as_echo_n "(cached) " >&6
27340 else
27341 gcc_cv_ld_large_toc=no
27342 if test x$gcc_cv_as != x ; then
27343 cat > conftest.s <<EOF
27344 .toc
27345 LC..1:
27346 .tc a[TC],a[RW]
27347 .extern a[RW]
27348 .csect .text[PR]
27349 .largetoctest:
27350 addis 9,LC..1@u(2)
27351 ld 3,LC..1@l(9)
27353 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27354 gcc_cv_ld_large_toc=yes
27356 rm -f conftest conftest.o conftest.s
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27361 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27362 if test x"$gcc_cv_ld_large_toc" = xyes; then
27364 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27368 esac
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27371 $as_echo_n "checking linker --build-id support... " >&6; }
27372 if test "${gcc_cv_ld_buildid+set}" = set; then :
27373 $as_echo_n "(cached) " >&6
27374 else
27375 gcc_cv_ld_buildid=no
27376 if test $in_tree_ld = yes ; then
27377 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27378 "$gcc_cv_gld_minor_version" -ge 18 -o \
27379 "$gcc_cv_gld_major_version" -gt 2 \
27380 && test $in_tree_ld_is_elf = yes; then
27381 gcc_cv_ld_buildid=yes
27383 elif test x$gcc_cv_ld != x; then
27384 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27385 gcc_cv_ld_buildid=yes
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27390 $as_echo "$gcc_cv_ld_buildid" >&6; }
27391 if test x"$gcc_cv_ld_buildid" = xyes; then
27393 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27397 # Check whether --enable-linker-build-id was given.
27398 if test "${enable_linker_build_id+set}" = set; then :
27399 enableval=$enable_linker_build_id;
27400 else
27401 enable_linker_build_id=no
27405 if test x"$enable_linker_build_id" = xyes; then
27406 if test x"$gcc_cv_ld_buildid" = xyes; then
27408 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27410 else
27411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27412 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27416 # In binutils 2.21, GNU ld gained support for new emulations fully
27417 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27419 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27420 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27421 $as_echo_n "(cached) " >&6
27422 else
27423 gcc_cv_ld_sol2_emulation=no
27424 if test $in_tree_ld = yes ; then
27425 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27426 "$gcc_cv_gld_minor_version" -ge 21 -o \
27427 "$gcc_cv_gld_major_version" -gt 2 \
27428 && test $in_tree_ld_is_elf = yes; then
27429 gcc_cv_ld_sol2_emulation=yes
27431 elif test x$gcc_cv_ld != x; then
27432 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27433 grep _sol2 > /dev/null; then
27434 gcc_cv_ld_sol2_emulation=yes
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27439 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27440 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27442 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27447 $as_echo_n "checking linker --sysroot support... " >&6; }
27448 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27449 $as_echo_n "(cached) " >&6
27450 else
27451 gcc_cv_ld_sysroot=no
27452 if test $in_tree_ld = yes ; then
27453 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
27454 gcc_cv_ld_sysroot=yes
27456 elif test x$gcc_cv_ld != x; then
27457 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27458 gcc_cv_ld_sysroot=yes
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27463 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27464 if test x"$gcc_cv_ld_sysroot" = xyes; then
27466 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27470 # Test for stack protector support in target C library.
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27472 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27473 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27474 $as_echo_n "(cached) " >&6
27475 else
27476 gcc_cv_libc_provides_ssp=no
27477 case "$target" in
27478 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27479 # glibc 2.4 and later provides __stack_chk_fail and
27480 # either __stack_chk_guard, or TLS access to stack guard canary.
27482 if test $glibc_version_major -gt 2 \
27483 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27484 gcc_cv_libc_provides_ssp=yes
27485 else
27487 if test -f $target_header_dir/features.h \
27488 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27489 $target_header_dir/features.h > /dev/null; then
27490 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27491 $target_header_dir/features.h > /dev/null && \
27492 test -f $target_header_dir/bits/uClibc_config.h && \
27493 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27494 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27495 gcc_cv_libc_provides_ssp=yes
27497 # all versions of Bionic support stack protector
27498 elif test -f $target_header_dir/sys/cdefs.h \
27499 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27500 $target_header_dir/sys/cdefs.h > /dev/null; then
27501 gcc_cv_libc_provides_ssp=yes
27505 *-*-gnu*)
27506 # Avoid complicated tests (see
27507 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27508 # simply assert that glibc does provide this, which is true for all
27509 # realistically usable GNU/Hurd configurations.
27510 gcc_cv_libc_provides_ssp=yes;;
27511 *-*-darwin* | *-*-freebsd*)
27512 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27513 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27514 gcc_cv_libc_provides_ssp=yes
27515 else
27516 echo "no __stack_chk_fail on this target"
27520 *) gcc_cv_libc_provides_ssp=no ;;
27521 esac
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27524 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27526 if test x$gcc_cv_libc_provides_ssp = xyes; then
27528 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27532 # Test for <sys/sdt.h> on the target.
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27535 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27536 have_sys_sdt_h=no
27537 if test -f $target_header_dir/sys/sdt.h; then
27538 have_sys_sdt_h=yes
27540 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27544 $as_echo "$have_sys_sdt_h" >&6; }
27546 # Check if TFmode long double should be used by default or not.
27547 # Some glibc targets used DFmode long double, but with glibc 2.4
27548 # and later they can use TFmode.
27549 case "$target" in
27550 powerpc*-*-linux* | \
27551 sparc*-*-linux* | \
27552 s390*-*-linux* | \
27553 alpha*-*-linux*)
27555 # Check whether --with-long-double-128 was given.
27556 if test "${with_long_double_128+set}" = set; then :
27557 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27558 else
27560 if test $glibc_version_major -gt 2 \
27561 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27562 gcc_cv_target_ldbl128=yes
27563 else
27565 gcc_cv_target_ldbl128=no
27566 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27567 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27568 && gcc_cv_target_ldbl128=yes
27574 esac
27575 if test x$gcc_cv_target_ldbl128 = xyes; then
27577 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27582 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27583 gcc_cv_target_dl_iterate_phdr=unknown
27584 case "$target" in
27585 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27586 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27587 # libdl there, both complicating its use and breaking compatibility
27588 # between Solaris 10 updates.
27589 *-*-solaris2.1[1-9]*)
27590 # <link.h> needs both a dl_iterate_phdr declaration and support for
27591 # compilation with largefile support.
27592 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27593 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27594 gcc_cv_target_dl_iterate_phdr=yes
27595 else
27596 gcc_cv_target_dl_iterate_phdr=no
27599 *-*-dragonfly* | *-*-freebsd*)
27600 if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then
27601 gcc_cv_target_dl_iterate_phdr=yes
27602 else
27603 gcc_cv_target_dl_iterate_phdr=no
27606 esac
27608 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27610 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27614 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27616 # We no longer support different GC mechanisms. Emit an error if
27617 # the user configures with --with-gc.
27619 # Check whether --with-gc was given.
27620 if test "${with_gc+set}" = set; then :
27621 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27625 # Libraries to use on the host. This will normally be set by the top
27626 # level Makefile. Here we simply capture the value for our Makefile.
27627 if test -z "${HOST_LIBS+set}"; then
27628 HOST_LIBS=
27632 # Use the system's zlib library.
27633 zlibdir=-L../zlib
27634 zlibinc="-I\$(srcdir)/../zlib"
27636 # Check whether --with-system-zlib was given.
27637 if test "${with_system_zlib+set}" = set; then :
27638 withval=$with_system_zlib; zlibdir=
27639 zlibinc=
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27648 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27649 # Check whether --enable-maintainer-mode was given.
27650 if test "${enable_maintainer_mode+set}" = set; then :
27651 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27652 else
27653 maintainer_mode=no
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27658 $as_echo "$maintainer_mode" >&6; }
27660 if test "$maintainer_mode" = "yes"; then
27661 MAINT=''
27662 else
27663 MAINT='#'
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27668 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27669 # Check whether --enable-link-mutex was given.
27670 if test "${enable_link_mutex+set}" = set; then :
27671 enableval=$enable_link_mutex; do_link_mutex=$enableval
27672 else
27673 do_link_mutex=no
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27677 $as_echo "$do_link_mutex" >&6; }
27679 if test "$do_link_mutex" = "yes"; then
27680 DO_LINK_MUTEX=true
27681 else
27682 DO_LINK_MUTEX=false
27686 # --------------
27687 # Language hooks
27688 # --------------
27690 # Make empty files to contain the specs and options for each language.
27691 # Then add #include lines to for a compiler that has specs and/or options.
27693 subdirs=
27694 lang_opt_files=
27695 lang_specs_files=
27696 lang_tree_files=
27697 # These (without "all_") are set in each config-lang.in.
27698 # `language' must be a single word so is spelled singularly.
27699 all_languages=
27700 all_compilers=
27701 all_outputs='Makefile'
27702 # List of language makefile fragments.
27703 all_lang_makefrags=
27704 # Additional files for gengtype
27705 all_gtfiles="$target_gtfiles"
27707 # These are the languages that are set in --enable-languages,
27708 # and are available in the GCC tree.
27709 all_selected_languages=
27711 # Add the language fragments.
27712 # Languages are added via two mechanisms. Some information must be
27713 # recorded in makefile variables, these are defined in config-lang.in.
27714 # We accumulate them and plug them into the main Makefile.
27715 # The other mechanism is a set of hooks for each of the main targets
27716 # like `clean', `install', etc.
27718 language_hooks="Make-hooks"
27720 for lang in ${srcdir}/*/config-lang.in
27722 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27724 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27725 if test "x$lang_alias" = x
27726 then
27727 echo "$lang doesn't set \$language." 1>&2
27728 exit 1
27730 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27731 subdirs="$subdirs $subdir"
27733 # $gcc_subdir is where the gcc integration files are to be found
27734 # for a language, both for internal compiler purposes (compiler
27735 # sources implementing front-end to GCC tree converters), and for
27736 # build infrastructure purposes (Make-lang.in, etc.)
27738 # This will be <subdir> (relative to $srcdir) if a line like
27739 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27740 # is found in <langdir>/config-lang.in, and will remain <langdir>
27741 # otherwise.
27743 # Except for the language alias (fetched above), the regular
27744 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27745 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27746 # only this and the language alias.
27748 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27749 if [ "$gcc_subdir" = "" ]; then
27750 gcc_subdir="$subdir"
27753 case ",$enable_languages," in
27754 *,$lang_alias,*)
27755 all_selected_languages="$all_selected_languages $lang_alias"
27756 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27757 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27760 esac
27762 language=
27763 boot_language=
27764 compilers=
27765 outputs=
27766 gtfiles=
27767 subdir_requires=
27768 . ${srcdir}/$gcc_subdir/config-lang.in
27769 if test "x$language" = x
27770 then
27771 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27772 exit 1
27775 ok=:
27776 case ",$enable_languages," in
27777 *,$lang_alias,*) ;;
27779 for i in $subdir_requires; do
27780 test -f "${srcdir}/$i/config-lang.in" && continue
27781 ok=false
27782 break
27783 done
27785 esac
27786 $ok || continue
27788 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27789 if test -f $srcdir/$gcc_subdir/lang.opt; then
27790 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27791 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27793 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27794 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27796 all_languages="$all_languages $language"
27797 all_compilers="$all_compilers $compilers"
27798 all_outputs="$all_outputs $outputs"
27799 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27800 case ",$enable_languages," in
27801 *,lto,*)
27803 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27805 enable_lto=yes
27808 *) ;;
27809 esac
27810 done
27812 check_languages=
27813 for language in $all_selected_languages
27815 check_languages="$check_languages check-$language"
27816 done
27818 # We link each language in with a set of hooks, reached indirectly via
27819 # lang.${target}. Only do so for selected languages.
27821 rm -f Make-hooks
27822 touch Make-hooks
27823 target_list="all.cross start.encap rest.encap tags \
27824 install-common install-man install-info install-pdf install-html dvi \
27825 pdf html uninstall info man srcextra srcman srcinfo \
27826 mostlyclean clean distclean maintainer-clean install-plugin"
27828 for t in $target_list
27831 for lang in $all_selected_languages
27833 x="$x $lang.$t"
27834 done
27835 echo "lang.$t: $x" >> Make-hooks
27836 done
27838 # --------
27839 # Option include files
27840 # --------
27842 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27843 option_includes="option-includes.mk"
27846 # --------
27847 # UNSORTED
27848 # --------
27850 # Create .gdbinit.
27852 echo "dir ." > .gdbinit
27853 echo "dir ${srcdir}" >> .gdbinit
27854 if test x$gdb_needs_out_file_path = xyes
27855 then
27856 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27858 if test "x$subdirs" != x; then
27859 for s in $subdirs
27861 echo "dir ${srcdir}/$s" >> .gdbinit
27862 done
27864 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27865 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27867 # Put a breakpoint on __asan_report_error to help with debugging buffer
27868 # overflow.
27869 case "$CFLAGS" in
27870 *-fsanitize=address*)
27871 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27873 esac
27875 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27879 # Find a directory in which to install a shared libgcc.
27881 # Check whether --enable-version-specific-runtime-libs was given.
27882 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27883 enableval=$enable_version_specific_runtime_libs;
27887 # Substitute configuration variables
27952 # Echo link setup.
27953 if test x${build} = x${host} ; then
27954 if test x${host} = x${target} ; then
27955 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27956 else
27957 echo "Links are now set up to build a cross-compiler" 1>&2
27958 echo " from ${host} to ${target}." 1>&2
27960 else
27961 if test x${host} = x${target} ; then
27962 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27963 echo " for ${target}." 1>&2
27964 else
27965 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27966 echo " from ${host} to ${target}." 1>&2
27975 if test "x${ISLLIBS}" != "x" ; then
27977 $as_echo "#define HAVE_isl 1" >>confdefs.h
27983 if test "x${CLOOGLIBS}" != "x" ; then
27985 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27989 # Check for plugin support
27990 # Check whether --enable-plugin was given.
27991 if test "${enable_plugin+set}" = set; then :
27992 enableval=$enable_plugin; enable_plugin=$enableval
27993 else
27994 enable_plugin=yes; default_plugin=yes
27998 pluginlibs=
28000 case "${host}" in
28001 *-*-darwin*)
28002 if test x$build = x$host; then
28003 export_sym_check="nm${exeext} -g"
28004 elif test x$host = x$target; then
28005 export_sym_check="$gcc_cv_nm -g"
28006 else
28007 export_sym_check=
28011 if test x$build = x$host; then
28012 export_sym_check="objdump${exeext} -T"
28013 elif test x$host = x$target; then
28014 export_sym_check="$gcc_cv_objdump -T"
28015 else
28016 export_sym_check=
28019 esac
28021 if test x"$enable_plugin" = x"yes"; then
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28024 $as_echo_n "checking for exported symbols... " >&6; }
28025 if test "x$export_sym_check" != x; then
28026 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28027 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28028 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28029 : # No need to use a flag
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28031 $as_echo "yes" >&6; }
28032 else
28033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28034 $as_echo "yes" >&6; }
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28036 $as_echo_n "checking for -rdynamic... " >&6; }
28037 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28038 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28039 plugin_rdynamic=yes
28040 pluginlibs="-rdynamic"
28041 else
28042 plugin_rdynamic=no
28043 enable_plugin=no
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28046 $as_echo "$plugin_rdynamic" >&6; }
28048 else
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28050 $as_echo "unable to check" >&6; }
28053 # Check -ldl
28054 saved_LIBS="$LIBS"
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28056 $as_echo_n "checking for library containing dlopen... " >&6; }
28057 if test "${ac_cv_search_dlopen+set}" = set; then :
28058 $as_echo_n "(cached) " >&6
28059 else
28060 ac_func_search_save_LIBS=$LIBS
28061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28062 /* end confdefs.h. */
28064 /* Override any GCC internal prototype to avoid an error.
28065 Use char because int might match the return type of a GCC
28066 builtin and then its argument prototype would still apply. */
28067 #ifdef __cplusplus
28068 extern "C"
28069 #endif
28070 char dlopen ();
28072 main ()
28074 return dlopen ();
28076 return 0;
28078 _ACEOF
28079 for ac_lib in '' dl; do
28080 if test -z "$ac_lib"; then
28081 ac_res="none required"
28082 else
28083 ac_res=-l$ac_lib
28084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28086 if ac_fn_c_try_link "$LINENO"; then :
28087 ac_cv_search_dlopen=$ac_res
28089 rm -f core conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext
28091 if test "${ac_cv_search_dlopen+set}" = set; then :
28092 break
28094 done
28095 if test "${ac_cv_search_dlopen+set}" = set; then :
28097 else
28098 ac_cv_search_dlopen=no
28100 rm conftest.$ac_ext
28101 LIBS=$ac_func_search_save_LIBS
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28104 $as_echo "$ac_cv_search_dlopen" >&6; }
28105 ac_res=$ac_cv_search_dlopen
28106 if test "$ac_res" != no; then :
28107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28111 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28112 pluginlibs="$pluginlibs -ldl"
28114 LIBS="$saved_LIBS"
28116 # Check that we can build shared objects with -fPIC -shared
28117 saved_LDFLAGS="$LDFLAGS"
28118 saved_CFLAGS="$CFLAGS"
28119 case "${host}" in
28120 *-*-darwin*)
28121 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28122 CFLAGS="$CFLAGS -fPIC"
28123 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28126 CFLAGS="$CFLAGS -fPIC"
28127 LDFLAGS="$LDFLAGS -fPIC -shared"
28129 esac
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28131 $as_echo_n "checking for -fPIC -shared... " >&6; }
28132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28133 /* end confdefs.h. */
28134 extern int X;
28136 main ()
28138 return X == 0;
28140 return 0;
28142 _ACEOF
28143 if ac_fn_c_try_link "$LINENO"; then :
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28145 $as_echo "yes" >&6; }; have_pic_shared=yes
28146 else
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28148 $as_echo "no" >&6; }; have_pic_shared=no
28150 rm -f core conftest.err conftest.$ac_objext \
28151 conftest$ac_exeext conftest.$ac_ext
28152 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28153 pluginlibs=
28154 enable_plugin=no
28156 LDFLAGS="$saved_LDFLAGS"
28157 CFLAGS="$saved_CFLAGS"
28159 # If plugin support had been requested but not available, fail.
28160 if test x"$enable_plugin" = x"no" ; then
28161 if test x"$default_plugin" != x"yes"; then
28162 as_fn_error "
28163 Building GCC with plugin support requires a host that supports
28164 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28171 if test x"$enable_plugin" = x"yes"; then
28173 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28178 # Enable --enable-host-shared
28179 # Check whether --enable-host-shared was given.
28180 if test "${enable_host_shared+set}" = set; then :
28181 enableval=$enable_host_shared; PICFLAG=-fPIC
28182 else
28183 PICFLAG=
28190 # Check whether --enable-libquadmath-support was given.
28191 if test "${enable_libquadmath_support+set}" = set; then :
28192 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28193 else
28194 ENABLE_LIBQUADMATH_SUPPORT=yes
28197 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28199 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28204 # Specify what hash style to use by default.
28206 # Check whether --with-linker-hash-style was given.
28207 if test "${with_linker_hash_style+set}" = set; then :
28208 withval=$with_linker_hash_style; case x"$withval" in
28209 xsysv)
28210 LINKER_HASH_STYLE=sysv
28212 xgnu)
28213 LINKER_HASH_STYLE=gnu
28215 xboth)
28216 LINKER_HASH_STYLE=both
28219 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28221 esac
28222 else
28223 LINKER_HASH_STYLE=''
28226 if test x"${LINKER_HASH_STYLE}" != x; then
28228 cat >>confdefs.h <<_ACEOF
28229 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28230 _ACEOF
28234 # Configure the subdirectories
28235 # AC_CONFIG_SUBDIRS($subdirs)
28237 # Create the Makefile
28238 # and configure language subdirectories
28239 ac_config_files="$ac_config_files $all_outputs"
28242 ac_config_commands="$ac_config_commands default"
28244 cat >confcache <<\_ACEOF
28245 # This file is a shell script that caches the results of configure
28246 # tests run on this system so they can be shared between configure
28247 # scripts and configure runs, see configure's option --config-cache.
28248 # It is not useful on other systems. If it contains results you don't
28249 # want to keep, you may remove or edit it.
28251 # config.status only pays attention to the cache file if you give it
28252 # the --recheck option to rerun configure.
28254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28256 # following values.
28258 _ACEOF
28260 # The following way of writing the cache mishandles newlines in values,
28261 # but we know of no workaround that is simple, portable, and efficient.
28262 # So, we kill variables containing newlines.
28263 # Ultrix sh set writes to stderr and can't be redirected directly,
28264 # and sets the high bit in the cache file unless we assign to the vars.
28266 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28267 eval ac_val=\$$ac_var
28268 case $ac_val in #(
28269 *${as_nl}*)
28270 case $ac_var in #(
28271 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28272 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28273 esac
28274 case $ac_var in #(
28275 _ | IFS | as_nl) ;; #(
28276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28277 *) { eval $ac_var=; unset $ac_var;} ;;
28278 esac ;;
28279 esac
28280 done
28282 (set) 2>&1 |
28283 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28284 *${as_nl}ac_space=\ *)
28285 # `set' does not quote correctly, so add quotes: double-quote
28286 # substitution turns \\\\ into \\, and sed turns \\ into \.
28287 sed -n \
28288 "s/'/'\\\\''/g;
28289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28290 ;; #(
28292 # `set' quotes correctly as required by POSIX, so do not add quotes.
28293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28295 esac |
28296 sort
28298 sed '
28299 /^ac_cv_env_/b end
28300 t clear
28301 :clear
28302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28303 t end
28304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28305 :end' >>confcache
28306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28307 if test -w "$cache_file"; then
28308 test "x$cache_file" != "x/dev/null" &&
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28310 $as_echo "$as_me: updating cache $cache_file" >&6;}
28311 cat confcache >$cache_file
28312 else
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28314 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28317 rm -f confcache
28319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28320 # Let make expand exec_prefix.
28321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28323 DEFS=-DHAVE_CONFIG_H
28325 ac_libobjs=
28326 ac_ltlibobjs=
28327 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28328 # 1. Remove the extension, and $U if already installed.
28329 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28330 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28332 # will be set to the directory where LIBOBJS objects are built.
28333 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28334 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28335 done
28336 LIBOBJS=$ac_libobjs
28338 LTLIBOBJS=$ac_ltlibobjs
28343 : ${CONFIG_STATUS=./config.status}
28344 ac_write_fail=0
28345 ac_clean_files_save=$ac_clean_files
28346 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28348 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28349 as_write_fail=0
28350 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28351 #! $SHELL
28352 # Generated by $as_me.
28353 # Run this file to recreate the current configuration.
28354 # Compiler output produced by configure, useful for debugging
28355 # configure, is in config.log if it exists.
28357 debug=false
28358 ac_cs_recheck=false
28359 ac_cs_silent=false
28361 SHELL=\${CONFIG_SHELL-$SHELL}
28362 export SHELL
28363 _ASEOF
28364 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28365 ## -------------------- ##
28366 ## M4sh Initialization. ##
28367 ## -------------------- ##
28369 # Be more Bourne compatible
28370 DUALCASE=1; export DUALCASE # for MKS sh
28371 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28372 emulate sh
28373 NULLCMD=:
28374 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28375 # is contrary to our usage. Disable this feature.
28376 alias -g '${1+"$@"}'='"$@"'
28377 setopt NO_GLOB_SUBST
28378 else
28379 case `(set -o) 2>/dev/null` in #(
28380 *posix*) :
28381 set -o posix ;; #(
28382 *) :
28384 esac
28388 as_nl='
28390 export as_nl
28391 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28392 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28394 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28395 # Prefer a ksh shell builtin over an external printf program on Solaris,
28396 # but without wasting forks for bash or zsh.
28397 if test -z "$BASH_VERSION$ZSH_VERSION" \
28398 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28399 as_echo='print -r --'
28400 as_echo_n='print -rn --'
28401 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28402 as_echo='printf %s\n'
28403 as_echo_n='printf %s'
28404 else
28405 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28406 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28407 as_echo_n='/usr/ucb/echo -n'
28408 else
28409 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28410 as_echo_n_body='eval
28411 arg=$1;
28412 case $arg in #(
28413 *"$as_nl"*)
28414 expr "X$arg" : "X\\(.*\\)$as_nl";
28415 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28416 esac;
28417 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28419 export as_echo_n_body
28420 as_echo_n='sh -c $as_echo_n_body as_echo'
28422 export as_echo_body
28423 as_echo='sh -c $as_echo_body as_echo'
28426 # The user is always right.
28427 if test "${PATH_SEPARATOR+set}" != set; then
28428 PATH_SEPARATOR=:
28429 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28430 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28431 PATH_SEPARATOR=';'
28436 # IFS
28437 # We need space, tab and new line, in precisely that order. Quoting is
28438 # there to prevent editors from complaining about space-tab.
28439 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28440 # splitting by setting IFS to empty value.)
28441 IFS=" "" $as_nl"
28443 # Find who we are. Look in the path if we contain no directory separator.
28444 case $0 in #((
28445 *[\\/]* ) as_myself=$0 ;;
28446 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28447 for as_dir in $PATH
28449 IFS=$as_save_IFS
28450 test -z "$as_dir" && as_dir=.
28451 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28452 done
28453 IFS=$as_save_IFS
28456 esac
28457 # We did not find ourselves, most probably we were run as `sh COMMAND'
28458 # in which case we are not to be found in the path.
28459 if test "x$as_myself" = x; then
28460 as_myself=$0
28462 if test ! -f "$as_myself"; then
28463 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28464 exit 1
28467 # Unset variables that we do not need and which cause bugs (e.g. in
28468 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28469 # suppresses any "Segmentation fault" message there. '((' could
28470 # trigger a bug in pdksh 5.2.14.
28471 for as_var in BASH_ENV ENV MAIL MAILPATH
28472 do eval test x\${$as_var+set} = xset \
28473 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28474 done
28475 PS1='$ '
28476 PS2='> '
28477 PS4='+ '
28479 # NLS nuisances.
28480 LC_ALL=C
28481 export LC_ALL
28482 LANGUAGE=C
28483 export LANGUAGE
28485 # CDPATH.
28486 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28489 # as_fn_error ERROR [LINENO LOG_FD]
28490 # ---------------------------------
28491 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28492 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28493 # script with status $?, using 1 if that was 0.
28494 as_fn_error ()
28496 as_status=$?; test $as_status -eq 0 && as_status=1
28497 if test "$3"; then
28498 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28499 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28501 $as_echo "$as_me: error: $1" >&2
28502 as_fn_exit $as_status
28503 } # as_fn_error
28506 # as_fn_set_status STATUS
28507 # -----------------------
28508 # Set $? to STATUS, without forking.
28509 as_fn_set_status ()
28511 return $1
28512 } # as_fn_set_status
28514 # as_fn_exit STATUS
28515 # -----------------
28516 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28517 as_fn_exit ()
28519 set +e
28520 as_fn_set_status $1
28521 exit $1
28522 } # as_fn_exit
28524 # as_fn_unset VAR
28525 # ---------------
28526 # Portably unset VAR.
28527 as_fn_unset ()
28529 { eval $1=; unset $1;}
28531 as_unset=as_fn_unset
28532 # as_fn_append VAR VALUE
28533 # ----------------------
28534 # Append the text in VALUE to the end of the definition contained in VAR. Take
28535 # advantage of any shell optimizations that allow amortized linear growth over
28536 # repeated appends, instead of the typical quadratic growth present in naive
28537 # implementations.
28538 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28539 eval 'as_fn_append ()
28541 eval $1+=\$2
28543 else
28544 as_fn_append ()
28546 eval $1=\$$1\$2
28548 fi # as_fn_append
28550 # as_fn_arith ARG...
28551 # ------------------
28552 # Perform arithmetic evaluation on the ARGs, and store the result in the
28553 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28554 # must be portable across $(()) and expr.
28555 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28556 eval 'as_fn_arith ()
28558 as_val=$(( $* ))
28560 else
28561 as_fn_arith ()
28563 as_val=`expr "$@" || test $? -eq 1`
28565 fi # as_fn_arith
28568 if expr a : '\(a\)' >/dev/null 2>&1 &&
28569 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28570 as_expr=expr
28571 else
28572 as_expr=false
28575 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28576 as_basename=basename
28577 else
28578 as_basename=false
28581 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28582 as_dirname=dirname
28583 else
28584 as_dirname=false
28587 as_me=`$as_basename -- "$0" ||
28588 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28589 X"$0" : 'X\(//\)$' \| \
28590 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28591 $as_echo X/"$0" |
28592 sed '/^.*\/\([^/][^/]*\)\/*$/{
28593 s//\1/
28596 /^X\/\(\/\/\)$/{
28597 s//\1/
28600 /^X\/\(\/\).*/{
28601 s//\1/
28604 s/.*/./; q'`
28606 # Avoid depending upon Character Ranges.
28607 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28608 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28609 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28610 as_cr_digits='0123456789'
28611 as_cr_alnum=$as_cr_Letters$as_cr_digits
28613 ECHO_C= ECHO_N= ECHO_T=
28614 case `echo -n x` in #(((((
28615 -n*)
28616 case `echo 'xy\c'` in
28617 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28618 xy) ECHO_C='\c';;
28619 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28620 ECHO_T=' ';;
28621 esac;;
28623 ECHO_N='-n';;
28624 esac
28626 rm -f conf$$ conf$$.exe conf$$.file
28627 if test -d conf$$.dir; then
28628 rm -f conf$$.dir/conf$$.file
28629 else
28630 rm -f conf$$.dir
28631 mkdir conf$$.dir 2>/dev/null
28633 if (echo >conf$$.file) 2>/dev/null; then
28634 if ln -s conf$$.file conf$$ 2>/dev/null; then
28635 as_ln_s='ln -s'
28636 # ... but there are two gotchas:
28637 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28638 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28639 # In both cases, we have to default to `cp -p'.
28640 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28641 as_ln_s='cp -p'
28642 elif ln conf$$.file conf$$ 2>/dev/null; then
28643 as_ln_s=ln
28644 else
28645 as_ln_s='cp -p'
28647 else
28648 as_ln_s='cp -p'
28650 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28651 rmdir conf$$.dir 2>/dev/null
28654 # as_fn_mkdir_p
28655 # -------------
28656 # Create "$as_dir" as a directory, including parents if necessary.
28657 as_fn_mkdir_p ()
28660 case $as_dir in #(
28661 -*) as_dir=./$as_dir;;
28662 esac
28663 test -d "$as_dir" || eval $as_mkdir_p || {
28664 as_dirs=
28665 while :; do
28666 case $as_dir in #(
28667 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28668 *) as_qdir=$as_dir;;
28669 esac
28670 as_dirs="'$as_qdir' $as_dirs"
28671 as_dir=`$as_dirname -- "$as_dir" ||
28672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28673 X"$as_dir" : 'X\(//\)[^/]' \| \
28674 X"$as_dir" : 'X\(//\)$' \| \
28675 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28676 $as_echo X"$as_dir" |
28677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28678 s//\1/
28681 /^X\(\/\/\)[^/].*/{
28682 s//\1/
28685 /^X\(\/\/\)$/{
28686 s//\1/
28689 /^X\(\/\).*/{
28690 s//\1/
28693 s/.*/./; q'`
28694 test -d "$as_dir" && break
28695 done
28696 test -z "$as_dirs" || eval "mkdir $as_dirs"
28697 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28700 } # as_fn_mkdir_p
28701 if mkdir -p . 2>/dev/null; then
28702 as_mkdir_p='mkdir -p "$as_dir"'
28703 else
28704 test -d ./-p && rmdir ./-p
28705 as_mkdir_p=false
28708 if test -x / >/dev/null 2>&1; then
28709 as_test_x='test -x'
28710 else
28711 if ls -dL / >/dev/null 2>&1; then
28712 as_ls_L_option=L
28713 else
28714 as_ls_L_option=
28716 as_test_x='
28717 eval sh -c '\''
28718 if test -d "$1"; then
28719 test -d "$1/.";
28720 else
28721 case $1 in #(
28722 -*)set "./$1";;
28723 esac;
28724 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28725 ???[sx]*):;;*)false;;esac;fi
28726 '\'' sh
28729 as_executable_p=$as_test_x
28731 # Sed expression to map a string onto a valid CPP name.
28732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28734 # Sed expression to map a string onto a valid variable name.
28735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28738 exec 6>&1
28739 ## ----------------------------------- ##
28740 ## Main body of $CONFIG_STATUS script. ##
28741 ## ----------------------------------- ##
28742 _ASEOF
28743 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28746 # Save the log message, to keep $0 and so on meaningful, and to
28747 # report actual input values of CONFIG_FILES etc. instead of their
28748 # values after options handling.
28749 ac_log="
28750 This file was extended by $as_me, which was
28751 generated by GNU Autoconf 2.64. Invocation command line was
28753 CONFIG_FILES = $CONFIG_FILES
28754 CONFIG_HEADERS = $CONFIG_HEADERS
28755 CONFIG_LINKS = $CONFIG_LINKS
28756 CONFIG_COMMANDS = $CONFIG_COMMANDS
28757 $ $0 $@
28759 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28762 _ACEOF
28764 case $ac_config_files in *"
28765 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28766 esac
28768 case $ac_config_headers in *"
28769 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28770 esac
28773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28774 # Files that config.status was made for.
28775 config_files="$ac_config_files"
28776 config_headers="$ac_config_headers"
28777 config_links="$ac_config_links"
28778 config_commands="$ac_config_commands"
28780 _ACEOF
28782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28783 ac_cs_usage="\
28784 \`$as_me' instantiates files and other configuration actions
28785 from templates according to the current configuration. Unless the files
28786 and actions are specified as TAGs, all are instantiated by default.
28788 Usage: $0 [OPTION]... [TAG]...
28790 -h, --help print this help, then exit
28791 -V, --version print version number and configuration settings, then exit
28792 -q, --quiet, --silent
28793 do not print progress messages
28794 -d, --debug don't remove temporary files
28795 --recheck update $as_me by reconfiguring in the same conditions
28796 --file=FILE[:TEMPLATE]
28797 instantiate the configuration file FILE
28798 --header=FILE[:TEMPLATE]
28799 instantiate the configuration header FILE
28801 Configuration files:
28802 $config_files
28804 Configuration headers:
28805 $config_headers
28807 Configuration links:
28808 $config_links
28810 Configuration commands:
28811 $config_commands
28813 Report bugs to the package provider."
28815 _ACEOF
28816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28817 ac_cs_version="\\
28818 config.status
28819 configured by $0, generated by GNU Autoconf 2.64,
28820 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28822 Copyright (C) 2009 Free Software Foundation, Inc.
28823 This config.status script is free software; the Free Software Foundation
28824 gives unlimited permission to copy, distribute and modify it."
28826 ac_pwd='$ac_pwd'
28827 srcdir='$srcdir'
28828 AWK='$AWK'
28829 test -n "\$AWK" || AWK=awk
28830 _ACEOF
28832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28833 # The default lists apply if the user does not specify any file.
28834 ac_need_defaults=:
28835 while test $# != 0
28837 case $1 in
28838 --*=*)
28839 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28840 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28841 ac_shift=:
28844 ac_option=$1
28845 ac_optarg=$2
28846 ac_shift=shift
28848 esac
28850 case $ac_option in
28851 # Handling of the options.
28852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28853 ac_cs_recheck=: ;;
28854 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28855 $as_echo "$ac_cs_version"; exit ;;
28856 --debug | --debu | --deb | --de | --d | -d )
28857 debug=: ;;
28858 --file | --fil | --fi | --f )
28859 $ac_shift
28860 case $ac_optarg in
28861 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28862 esac
28863 as_fn_append CONFIG_FILES " '$ac_optarg'"
28864 ac_need_defaults=false;;
28865 --header | --heade | --head | --hea )
28866 $ac_shift
28867 case $ac_optarg in
28868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28869 esac
28870 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28871 ac_need_defaults=false;;
28872 --he | --h)
28873 # Conflict between --help and --header
28874 as_fn_error "ambiguous option: \`$1'
28875 Try \`$0 --help' for more information.";;
28876 --help | --hel | -h )
28877 $as_echo "$ac_cs_usage"; exit ;;
28878 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28879 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28880 ac_cs_silent=: ;;
28882 # This is an error.
28883 -*) as_fn_error "unrecognized option: \`$1'
28884 Try \`$0 --help' for more information." ;;
28886 *) as_fn_append ac_config_targets " $1"
28887 ac_need_defaults=false ;;
28889 esac
28890 shift
28891 done
28893 ac_configure_extra_args=
28895 if $ac_cs_silent; then
28896 exec 6>/dev/null
28897 ac_configure_extra_args="$ac_configure_extra_args --silent"
28900 _ACEOF
28901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28902 if \$ac_cs_recheck; then
28903 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28904 shift
28905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28906 CONFIG_SHELL='$SHELL'
28907 export CONFIG_SHELL
28908 exec "\$@"
28911 _ACEOF
28912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28913 exec 5>>config.log
28915 echo
28916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28917 ## Running $as_me. ##
28918 _ASBOX
28919 $as_echo "$ac_log"
28920 } >&5
28922 _ACEOF
28923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28925 # INIT-COMMANDS
28927 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28928 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28929 subdirs='$subdirs'
28931 _ACEOF
28933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28935 # Handling of arguments.
28936 for ac_config_target in $ac_config_targets
28938 case $ac_config_target in
28939 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28940 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28941 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28942 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28943 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28944 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28945 "clearcap.map") CONFIG_LINKS="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28946 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28947 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28949 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28950 esac
28951 done
28954 # If the user did not use the arguments to specify the items to instantiate,
28955 # then the envvar interface is used. Set only those that are not.
28956 # We use the long form for the default assignment because of an extremely
28957 # bizarre bug on SunOS 4.1.3.
28958 if $ac_need_defaults; then
28959 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28960 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28961 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28965 # Have a temporary directory for convenience. Make it in the build tree
28966 # simply because there is no reason against having it here, and in addition,
28967 # creating and moving files from /tmp can sometimes cause problems.
28968 # Hook for its removal unless debugging.
28969 # Note that there is a small window in which the directory will not be cleaned:
28970 # after its creation but before its name has been assigned to `$tmp'.
28971 $debug ||
28973 tmp=
28974 trap 'exit_status=$?
28975 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28977 trap 'as_fn_exit 1' 1 2 13 15
28979 # Create a (secure) tmp directory for tmp files.
28982 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28983 test -n "$tmp" && test -d "$tmp"
28984 } ||
28986 tmp=./conf$$-$RANDOM
28987 (umask 077 && mkdir "$tmp")
28988 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28990 # Set up the scripts for CONFIG_FILES section.
28991 # No need to generate them if there are no CONFIG_FILES.
28992 # This happens for instance with `./config.status config.h'.
28993 if test -n "$CONFIG_FILES"; then
28995 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28996 ac_cs_awk_getline=:
28997 ac_cs_awk_pipe_init=
28998 ac_cs_awk_read_file='
28999 while ((getline aline < (F[key])) > 0)
29000 print(aline)
29001 close(F[key])'
29002 ac_cs_awk_pipe_fini=
29003 else
29004 ac_cs_awk_getline=false
29005 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29006 ac_cs_awk_read_file='
29007 print "|#_!!_#|"
29008 print "cat " F[key] " &&"
29009 '$ac_cs_awk_pipe_init
29010 # The final `:' finishes the AND list.
29011 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29013 ac_cr=`echo X | tr X '\015'`
29014 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29015 # But we know of no other shell where ac_cr would be empty at this
29016 # point, so we can use a bashism as a fallback.
29017 if test "x$ac_cr" = x; then
29018 eval ac_cr=\$\'\\r\'
29020 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29021 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29022 ac_cs_awk_cr='\r'
29023 else
29024 ac_cs_awk_cr=$ac_cr
29027 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29028 _ACEOF
29030 # Create commands to substitute file output variables.
29032 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29033 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29034 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29035 echo "_ACAWK" &&
29036 echo "_ACEOF"
29037 } >conf$$files.sh &&
29038 . ./conf$$files.sh ||
29039 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29040 rm -f conf$$files.sh
29043 echo "cat >conf$$subs.awk <<_ACEOF" &&
29044 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29045 echo "_ACEOF"
29046 } >conf$$subs.sh ||
29047 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29048 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29049 ac_delim='%!_!# '
29050 for ac_last_try in false false false false false :; do
29051 . ./conf$$subs.sh ||
29052 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29054 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29055 if test $ac_delim_n = $ac_delim_num; then
29056 break
29057 elif $ac_last_try; then
29058 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29059 else
29060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29062 done
29063 rm -f conf$$subs.sh
29065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29066 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29067 _ACEOF
29068 sed -n '
29070 s/^/S["/; s/!.*/"]=/
29073 s/^[^!]*!//
29074 :repl
29075 t repl
29076 s/'"$ac_delim"'$//
29077 t delim
29080 s/\(.\{148\}\).*/\1/
29081 t more1
29082 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29085 b repl
29086 :more1
29087 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29090 s/.\{148\}//
29091 t nl
29092 :delim
29094 s/\(.\{148\}\).*/\1/
29095 t more2
29096 s/["\\]/\\&/g; s/^/"/; s/$/"/
29099 :more2
29100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29103 s/.\{148\}//
29104 t delim
29105 ' <conf$$subs.awk | sed '
29106 /^[^""]/{
29108 s/\n//
29110 ' >>$CONFIG_STATUS || ac_write_fail=1
29111 rm -f conf$$subs.awk
29112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29113 _ACAWK
29114 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29115 for (key in S) S_is_set[key] = 1
29116 FS = "\a"
29117 \$ac_cs_awk_pipe_init
29120 line = $ 0
29121 nfields = split(line, field, "@")
29122 substed = 0
29123 len = length(field[1])
29124 for (i = 2; i < nfields; i++) {
29125 key = field[i]
29126 keylen = length(key)
29127 if (S_is_set[key]) {
29128 value = S[key]
29129 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29130 len += length(value) + length(field[++i])
29131 substed = 1
29132 } else
29133 len += 1 + keylen
29135 if (nfields == 3 && !substed) {
29136 key = field[2]
29137 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29138 \$ac_cs_awk_read_file
29139 next
29142 print line
29144 \$ac_cs_awk_pipe_fini
29145 _ACAWK
29146 _ACEOF
29147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29148 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29149 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29150 else
29152 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29153 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29154 _ACEOF
29156 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29157 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29158 # trailing colons and then remove the whole line if VPATH becomes empty
29159 # (actually we leave an empty line to preserve line numbers).
29160 if test "x$srcdir" = x.; then
29161 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29162 s/:*\$(srcdir):*/:/
29163 s/:*\${srcdir}:*/:/
29164 s/:*@srcdir@:*/:/
29165 s/^\([^=]*=[ ]*\):*/\1/
29166 s/:*$//
29167 s/^[^=]*=[ ]*$//
29171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29172 fi # test -n "$CONFIG_FILES"
29174 # Set up the scripts for CONFIG_HEADERS section.
29175 # No need to generate them if there are no CONFIG_HEADERS.
29176 # This happens for instance with `./config.status Makefile'.
29177 if test -n "$CONFIG_HEADERS"; then
29178 cat >"$tmp/defines.awk" <<\_ACAWK ||
29179 BEGIN {
29180 _ACEOF
29182 # Transform confdefs.h into an awk script `defines.awk', embedded as
29183 # here-document in config.status, that substitutes the proper values into
29184 # config.h.in to produce config.h.
29186 # Create a delimiter string that does not exist in confdefs.h, to ease
29187 # handling of long lines.
29188 ac_delim='%!_!# '
29189 for ac_last_try in false false :; do
29190 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29191 if test -z "$ac_t"; then
29192 break
29193 elif $ac_last_try; then
29194 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29195 else
29196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29198 done
29200 # For the awk script, D is an array of macro values keyed by name,
29201 # likewise P contains macro parameters if any. Preserve backslash
29202 # newline sequences.
29204 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29205 sed -n '
29206 s/.\{148\}/&'"$ac_delim"'/g
29207 t rset
29208 :rset
29209 s/^[ ]*#[ ]*define[ ][ ]*/ /
29210 t def
29212 :def
29213 s/\\$//
29214 t bsnl
29215 s/["\\]/\\&/g
29216 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29217 D["\1"]=" \3"/p
29218 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29220 :bsnl
29221 s/["\\]/\\&/g
29222 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29223 D["\1"]=" \3\\\\\\n"\\/p
29224 t cont
29225 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29226 t cont
29228 :cont
29230 s/.\{148\}/&'"$ac_delim"'/g
29231 t clear
29232 :clear
29233 s/\\$//
29234 t bsnlc
29235 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29237 :bsnlc
29238 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29239 b cont
29240 ' <confdefs.h | sed '
29241 s/'"$ac_delim"'/"\\\
29242 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29245 for (key in D) D_is_set[key] = 1
29246 FS = "\a"
29248 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29249 line = \$ 0
29250 split(line, arg, " ")
29251 if (arg[1] == "#") {
29252 defundef = arg[2]
29253 mac1 = arg[3]
29254 } else {
29255 defundef = substr(arg[1], 2)
29256 mac1 = arg[2]
29258 split(mac1, mac2, "(") #)
29259 macro = mac2[1]
29260 prefix = substr(line, 1, index(line, defundef) - 1)
29261 if (D_is_set[macro]) {
29262 # Preserve the white space surrounding the "#".
29263 print prefix "define", macro P[macro] D[macro]
29264 next
29265 } else {
29266 # Replace #undef with comments. This is necessary, for example,
29267 # in the case of _POSIX_SOURCE, which is predefined and required
29268 # on some systems where configure will not decide to define it.
29269 if (defundef == "undef") {
29270 print "/*", prefix defundef, macro, "*/"
29271 next
29275 { print }
29276 _ACAWK
29277 _ACEOF
29278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29279 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29280 fi # test -n "$CONFIG_HEADERS"
29283 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29284 shift
29285 for ac_tag
29287 case $ac_tag in
29288 :[FHLC]) ac_mode=$ac_tag; continue;;
29289 esac
29290 case $ac_mode$ac_tag in
29291 :[FHL]*:*);;
29292 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29293 :[FH]-) ac_tag=-:-;;
29294 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29295 esac
29296 ac_save_IFS=$IFS
29297 IFS=:
29298 set x $ac_tag
29299 IFS=$ac_save_IFS
29300 shift
29301 ac_file=$1
29302 shift
29304 case $ac_mode in
29305 :L) ac_source=$1;;
29306 :[FH])
29307 ac_file_inputs=
29308 for ac_f
29310 case $ac_f in
29311 -) ac_f="$tmp/stdin";;
29312 *) # Look for the file first in the build tree, then in the source tree
29313 # (if the path is not absolute). The absolute path cannot be DOS-style,
29314 # because $ac_f cannot contain `:'.
29315 test -f "$ac_f" ||
29316 case $ac_f in
29317 [\\/$]*) false;;
29318 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29319 esac ||
29320 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29321 esac
29322 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29323 as_fn_append ac_file_inputs " '$ac_f'"
29324 done
29326 # Let's still pretend it is `configure' which instantiates (i.e., don't
29327 # use $as_me), people would be surprised to read:
29328 # /* config.h. Generated by config.status. */
29329 configure_input='Generated from '`
29330 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29331 `' by configure.'
29332 if test x"$ac_file" != x-; then
29333 configure_input="$ac_file. $configure_input"
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29335 $as_echo "$as_me: creating $ac_file" >&6;}
29337 # Neutralize special characters interpreted by sed in replacement strings.
29338 case $configure_input in #(
29339 *\&* | *\|* | *\\* )
29340 ac_sed_conf_input=`$as_echo "$configure_input" |
29341 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29342 *) ac_sed_conf_input=$configure_input;;
29343 esac
29345 case $ac_tag in
29346 *:-:* | *:-) cat >"$tmp/stdin" \
29347 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29348 esac
29350 esac
29352 ac_dir=`$as_dirname -- "$ac_file" ||
29353 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29354 X"$ac_file" : 'X\(//\)[^/]' \| \
29355 X"$ac_file" : 'X\(//\)$' \| \
29356 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29357 $as_echo X"$ac_file" |
29358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29359 s//\1/
29362 /^X\(\/\/\)[^/].*/{
29363 s//\1/
29366 /^X\(\/\/\)$/{
29367 s//\1/
29370 /^X\(\/\).*/{
29371 s//\1/
29374 s/.*/./; q'`
29375 as_dir="$ac_dir"; as_fn_mkdir_p
29376 ac_builddir=.
29378 case "$ac_dir" in
29379 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29381 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29382 # A ".." for each directory in $ac_dir_suffix.
29383 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29384 case $ac_top_builddir_sub in
29385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29387 esac ;;
29388 esac
29389 ac_abs_top_builddir=$ac_pwd
29390 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29391 # for backward compatibility:
29392 ac_top_builddir=$ac_top_build_prefix
29394 case $srcdir in
29395 .) # We are building in place.
29396 ac_srcdir=.
29397 ac_top_srcdir=$ac_top_builddir_sub
29398 ac_abs_top_srcdir=$ac_pwd ;;
29399 [\\/]* | ?:[\\/]* ) # Absolute name.
29400 ac_srcdir=$srcdir$ac_dir_suffix;
29401 ac_top_srcdir=$srcdir
29402 ac_abs_top_srcdir=$srcdir ;;
29403 *) # Relative name.
29404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29405 ac_top_srcdir=$ac_top_build_prefix$srcdir
29406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29407 esac
29408 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29411 case $ac_mode in
29414 # CONFIG_FILE
29417 _ACEOF
29419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29420 # If the template does not know about datarootdir, expand it.
29421 # FIXME: This hack should be removed a few years after 2.60.
29422 ac_datarootdir_hack=; ac_datarootdir_seen=
29423 ac_sed_dataroot='
29424 /datarootdir/ {
29428 /@datadir@/p
29429 /@docdir@/p
29430 /@infodir@/p
29431 /@localedir@/p
29432 /@mandir@/p'
29433 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29434 *datarootdir*) ac_datarootdir_seen=yes;;
29435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29437 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29438 _ACEOF
29439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29440 ac_datarootdir_hack='
29441 s&@datadir@&$datadir&g
29442 s&@docdir@&$docdir&g
29443 s&@infodir@&$infodir&g
29444 s&@localedir@&$localedir&g
29445 s&@mandir@&$mandir&g
29446 s&\\\${datarootdir}&$datarootdir&g' ;;
29447 esac
29448 _ACEOF
29450 # Neutralize VPATH when `$srcdir' = `.'.
29451 # Shell code in configure.ac might set extrasub.
29452 # FIXME: do we really want to maintain this feature?
29453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29454 ac_sed_extra="$ac_vpsub
29455 $extrasub
29456 _ACEOF
29457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29460 s|@configure_input@|$ac_sed_conf_input|;t t
29461 s&@top_builddir@&$ac_top_builddir_sub&;t t
29462 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29463 s&@srcdir@&$ac_srcdir&;t t
29464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29465 s&@top_srcdir@&$ac_top_srcdir&;t t
29466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29467 s&@builddir@&$ac_builddir&;t t
29468 s&@abs_builddir@&$ac_abs_builddir&;t t
29469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29470 $ac_datarootdir_hack
29472 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29473 if $ac_cs_awk_getline; then
29474 $AWK -f "$tmp/subs.awk"
29475 else
29476 $AWK -f "$tmp/subs.awk" | $SHELL
29477 fi >$tmp/out \
29478 || as_fn_error "could not create $ac_file" "$LINENO" 5
29480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29484 which seems to be undefined. Please make sure it is defined." >&5
29485 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29486 which seems to be undefined. Please make sure it is defined." >&2;}
29488 rm -f "$tmp/stdin"
29489 case $ac_file in
29490 -) cat "$tmp/out" && rm -f "$tmp/out";;
29491 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29492 esac \
29493 || as_fn_error "could not create $ac_file" "$LINENO" 5
29497 # CONFIG_HEADER
29499 if test x"$ac_file" != x-; then
29501 $as_echo "/* $configure_input */" \
29502 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29503 } >"$tmp/config.h" \
29504 || as_fn_error "could not create $ac_file" "$LINENO" 5
29505 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29507 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29508 else
29509 rm -f "$ac_file"
29510 mv "$tmp/config.h" "$ac_file" \
29511 || as_fn_error "could not create $ac_file" "$LINENO" 5
29513 else
29514 $as_echo "/* $configure_input */" \
29515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29516 || as_fn_error "could not create -" "$LINENO" 5
29521 # CONFIG_LINK
29524 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29526 else
29527 # Prefer the file from the source tree if names are identical.
29528 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29529 ac_source=$srcdir/$ac_source
29532 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29533 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29535 if test ! -r "$ac_source"; then
29536 as_fn_error "$ac_source: file not found" "$LINENO" 5
29538 rm -f "$ac_file"
29540 # Try a relative symlink, then a hard link, then a copy.
29541 case $srcdir in
29542 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29543 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29544 esac
29545 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29546 ln "$ac_source" "$ac_file" 2>/dev/null ||
29547 cp -p "$ac_source" "$ac_file" ||
29548 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29551 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29552 $as_echo "$as_me: executing $ac_file commands" >&6;}
29554 esac
29557 case $ac_file$ac_mode in
29558 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29559 "gccdepdir":C)
29560 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29561 for lang in $subdirs c-family common
29563 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29564 done ;;
29565 "as":F) chmod +x as ;;
29566 "collect-ld":F) chmod +x collect-ld ;;
29567 "nm":F) chmod +x nm ;;
29568 "default":C)
29569 case ${CONFIG_HEADERS} in
29570 *auto-host.h:config.in*)
29571 echo > cstamp-h ;;
29572 esac
29573 # Make sure all the subdirs exist.
29574 for d in $subdirs doc build common c-family
29576 test -d $d || mkdir $d
29577 done
29580 esac
29581 done # for ac_tag
29584 as_fn_exit 0
29585 _ACEOF
29586 ac_clean_files=$ac_clean_files_save
29588 test $ac_write_fail = 0 ||
29589 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29592 # configure is writing to config.log, and then calls config.status.
29593 # config.status does its own redirection, appending to config.log.
29594 # Unfortunately, on DOS this fails, as config.log is still kept open
29595 # by configure, so config.status won't be able to write to it; its
29596 # output is simply discarded. So we exec the FD to /dev/null,
29597 # effectively closing config.log, so it can be properly (re)opened and
29598 # appended to by config.status. When coming back to configure, we
29599 # need to make the FD available again.
29600 if test "$no_create" != yes; then
29601 ac_cs_success=:
29602 ac_config_status_args=
29603 test "$silent" = yes &&
29604 ac_config_status_args="$ac_config_status_args --quiet"
29605 exec 5>/dev/null
29606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29607 exec 5>>config.log
29608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29609 # would make configure fail if this is the last instruction.
29610 $ac_cs_success || as_fn_exit $?
29612 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29614 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}