Merge trunk version 208447 into gupc branch.
[official-gcc.git] / gcc / configure
blobd4ba1adeed3333ae2ca0cf7c6eb4a7c8316f7c8c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 PICFLAG
604 enable_host_shared
605 enable_plugin
606 pluginlibs
607 CLOOGINC
608 CLOOGLIBS
609 ISLINC
610 ISLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 common_out_object_file
627 common_out_file
628 out_object_file
629 out_file
630 objc_boehm_gc
631 md_file
632 local_prefix
633 lang_tree_files
634 lang_specs_files
635 lang_opt_files
636 install
637 out_host_hook_obj
638 host_xm_defines
639 host_xm_include_list
640 host_xm_file_list
641 host_exeext
642 gcc_gxx_include_dir_add_sysroot
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 dollar
673 gcc_tooldir
674 enable_lto
675 DO_LINK_MUTEX
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
689 gcc_cv_ld
690 ORIGINAL_AS_FOR_TARGET
691 gcc_cv_as
692 enable_fast_install
693 objdir
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
704 FGREP
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CXXFLAGS
711 BUILD_CFLAGS
712 CXX_FOR_BUILD
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXDEPMODE
743 DEPDIR
744 am__leading_dot
745 CXXCPP
748 BISON
749 FLEX
750 GENERATED_MANPAGES
751 BUILD_INFO
752 MAKEINFO
753 have_mktemp_command
754 make_compare_target
755 INSTALL_DATA
756 INSTALL_PROGRAM
757 INSTALL
758 ranlib_flags
759 RANLIB
761 LN_S
763 SET_MAKE
764 REPORT_BUGS_TEXI
765 REPORT_BUGS_TO
766 PKGVERSION
767 CONFIGURE_SPECS
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
770 TARGET_SYSTEM_ROOT
771 SYSROOT_CFLAGS_FOR_TARGET
772 enable_shared
773 PERL
774 enable_fixed_point
775 enable_decimal_float
776 with_float
777 with_cpu
778 enable_multiarch
779 enable_multilib
780 coverage_flags
781 valgrind_command
782 valgrind_path_defines
783 valgrind_path
784 TREECHECKING
785 TREEBROWSER
786 nocommon_flag
787 noexception_flags
788 warn_cxxflags
789 warn_cflags
790 c_strict_warn
791 strict_warn
792 c_loose_warn
793 loose_warn
794 EGREP
795 GREP
797 PICFLAG_FOR_TARGET
798 GNATMAKE
799 GNATBIND
800 ac_ct_CXX
801 CXXFLAGS
803 OBJEXT
804 EXEEXT
805 ac_ct_CC
806 CPPFLAGS
807 LDFLAGS
808 CFLAGS
810 GENINSRC
811 target_subdir
812 host_subdir
813 build_subdir
814 build_libsubdir
815 target_noncanonical
816 target_os
817 target_vendor
818 target_cpu
819 target
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files='option_includes
867 language_hooks'
868 ac_user_opts='
869 enable_option_checking
870 with_build_libsubdir
871 with_local_prefix
872 with_gxx_include_dir
873 with_cpp_install_dir
874 enable_generated_files_in_srcdir
875 with_gnu_ld
876 with_ld
877 with_demangler_in_ld
878 with_gnu_as
879 with_as
880 enable_largefile
881 enable_build_format_warnings
882 enable_werror_always
883 enable_checking
884 enable_coverage
885 enable_gather_detailed_mem_stats
886 with_stabs
887 enable_multilib
888 enable_multiarch
889 enable___cxa_atexit
890 enable_decimal_float
891 enable_fixed_point
892 enable_threads
893 enable_tls
894 enable_objc_gc
895 with_upc_pts
896 with_upc_pts_vaddr_order
897 with_upc_pts_packed_bits
898 enable_upc_link_script
899 with_dwarf2
900 enable_shared
901 with_native_system_header_dir
902 with_build_sysroot
903 with_sysroot
904 with_specs
905 with_pkgversion
906 with_bugurl
907 enable_languages
908 with_multilib_list
909 enable_rpath
910 with_libiconv_prefix
911 enable_sjlj_exceptions
912 enable_secureplt
913 enable_leading_mingw64_underscores
914 enable_cld
915 enable_frame_pointer
916 enable_win32_registry
917 enable_static
918 with_pic
919 enable_fast_install
920 enable_libtool_lock
921 enable_ld
922 enable_gold
923 with_plugin_ld
924 enable_gnu_indirect_function
925 enable_initfini_array
926 enable_comdat
927 with_glibc_version
928 enable_gnu_unique_object
929 enable_linker_build_id
930 with_long_double_128
931 with_gc
932 with_system_zlib
933 enable_maintainer_mode
934 enable_link_mutex
935 enable_version_specific_runtime_libs
936 enable_plugin
937 enable_host_shared
938 enable_libquadmath_support
939 with_linker_hash_style
941 ac_precious_vars='build_alias
942 host_alias
943 target_alias
945 CFLAGS
946 LDFLAGS
947 LIBS
948 CPPFLAGS
950 CXXFLAGS
953 CXXCPP
954 GMPLIBS
955 GMPINC
956 ISLLIBS
957 ISLINC
958 CLOOGLIBS
959 CLOOGINC'
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1002 htmldir='${docdir}'
1003 dvidir='${docdir}'
1004 pdfdir='${docdir}'
1005 psdir='${docdir}'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1010 ac_prev=
1011 ac_dashdash=
1012 for ac_option
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1017 ac_prev=
1018 continue
1021 case $ac_option in
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 *) ac_optarg=yes ;;
1024 esac
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1030 ac_dashdash=yes ;;
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1033 ac_prev=bindir ;;
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1053 ac_prev=datadir ;;
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error "invalid feature name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=no ;;
1080 -docdir | --docdir | --docdi | --doc | --do)
1081 ac_prev=docdir ;;
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1086 ac_prev=dvidir ;;
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1090 -enable-* | --enable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error "invalid feature name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "enable_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval enable_$ac_useropt=\$ac_optarg ;;
1106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1108 | --exec | --exe | --ex)
1109 ac_prev=exec_prefix ;;
1110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1112 | --exec=* | --exe=* | --ex=*)
1113 exec_prefix=$ac_optarg ;;
1115 -gas | --gas | --ga | --g)
1116 # Obsolete; use --with-gas.
1117 with_gas=yes ;;
1119 -help | --help | --hel | --he | -h)
1120 ac_init_help=long ;;
1121 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1122 ac_init_help=recursive ;;
1123 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1124 ac_init_help=short ;;
1126 -host | --host | --hos | --ho)
1127 ac_prev=host_alias ;;
1128 -host=* | --host=* | --hos=* | --ho=*)
1129 host_alias=$ac_optarg ;;
1131 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 ac_prev=htmldir ;;
1133 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 | --ht=*)
1135 htmldir=$ac_optarg ;;
1137 -includedir | --includedir | --includedi | --included | --include \
1138 | --includ | --inclu | --incl | --inc)
1139 ac_prev=includedir ;;
1140 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1141 | --includ=* | --inclu=* | --incl=* | --inc=*)
1142 includedir=$ac_optarg ;;
1144 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 ac_prev=infodir ;;
1146 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1147 infodir=$ac_optarg ;;
1149 -libdir | --libdir | --libdi | --libd)
1150 ac_prev=libdir ;;
1151 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1152 libdir=$ac_optarg ;;
1154 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1155 | --libexe | --libex | --libe)
1156 ac_prev=libexecdir ;;
1157 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1158 | --libexe=* | --libex=* | --libe=*)
1159 libexecdir=$ac_optarg ;;
1161 -localedir | --localedir | --localedi | --localed | --locale)
1162 ac_prev=localedir ;;
1163 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1164 localedir=$ac_optarg ;;
1166 -localstatedir | --localstatedir | --localstatedi | --localstated \
1167 | --localstate | --localstat | --localsta | --localst | --locals)
1168 ac_prev=localstatedir ;;
1169 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1170 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1171 localstatedir=$ac_optarg ;;
1173 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 ac_prev=mandir ;;
1175 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1176 mandir=$ac_optarg ;;
1178 -nfp | --nfp | --nf)
1179 # Obsolete; use --without-fp.
1180 with_fp=no ;;
1182 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1183 | --no-cr | --no-c | -n)
1184 no_create=yes ;;
1186 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1187 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 no_recursion=yes ;;
1190 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1191 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1192 | --oldin | --oldi | --old | --ol | --o)
1193 ac_prev=oldincludedir ;;
1194 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1195 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1196 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1197 oldincludedir=$ac_optarg ;;
1199 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 ac_prev=prefix ;;
1201 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1202 prefix=$ac_optarg ;;
1204 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1205 | --program-pre | --program-pr | --program-p)
1206 ac_prev=program_prefix ;;
1207 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1208 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1209 program_prefix=$ac_optarg ;;
1211 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1212 | --program-suf | --program-su | --program-s)
1213 ac_prev=program_suffix ;;
1214 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1215 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1216 program_suffix=$ac_optarg ;;
1218 -program-transform-name | --program-transform-name \
1219 | --program-transform-nam | --program-transform-na \
1220 | --program-transform-n | --program-transform- \
1221 | --program-transform | --program-transfor \
1222 | --program-transfo | --program-transf \
1223 | --program-trans | --program-tran \
1224 | --progr-tra | --program-tr | --program-t)
1225 ac_prev=program_transform_name ;;
1226 -program-transform-name=* | --program-transform-name=* \
1227 | --program-transform-nam=* | --program-transform-na=* \
1228 | --program-transform-n=* | --program-transform-=* \
1229 | --program-transform=* | --program-transfor=* \
1230 | --program-transfo=* | --program-transf=* \
1231 | --program-trans=* | --program-tran=* \
1232 | --progr-tra=* | --program-tr=* | --program-t=*)
1233 program_transform_name=$ac_optarg ;;
1235 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 ac_prev=pdfdir ;;
1237 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1238 pdfdir=$ac_optarg ;;
1240 -psdir | --psdir | --psdi | --psd | --ps)
1241 ac_prev=psdir ;;
1242 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 psdir=$ac_optarg ;;
1245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1246 | -silent | --silent | --silen | --sile | --sil)
1247 silent=yes ;;
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 ac_prev=sbindir ;;
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 | --sbi=* | --sb=*)
1253 sbindir=$ac_optarg ;;
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1258 | --sha | --sh)
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 | --sha=* | --sh=*)
1264 sharedstatedir=$ac_optarg ;;
1266 -site | --site | --sit)
1267 ac_prev=site ;;
1268 -site=* | --site=* | --sit=*)
1269 site=$ac_optarg ;;
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 ac_prev=srcdir ;;
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 verbose=yes ;;
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1294 -with-* | --with-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error "invalid package name: $ac_useropt"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=no ;;
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1344 -*) as_fn_error "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information."
1348 *=*)
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
1353 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1354 esac
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1366 esac
1367 done
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error "missing argument to $ac_option"
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1376 no) ;;
1377 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1401 done
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1406 build=$build_alias
1407 host=$host_alias
1408 target=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1415 If a cross compiler is detected then cross compile mode will be used." >&2
1416 elif test "x$build_alias" != "x$host_alias"; then
1417 cross_compiling=yes
1421 ac_tool_prefix=
1422 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424 test "$silent" = yes && exec 6>/dev/null
1427 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1428 ac_ls_di=`ls -di .` &&
1429 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1430 as_fn_error "working directory cannot be determined"
1431 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1432 as_fn_error "pwd does not report name of working directory"
1435 # Find the source files, if location was not specified.
1436 if test -z "$srcdir"; then
1437 ac_srcdir_defaulted=yes
1438 # Try the directory containing this script, then the parent directory.
1439 ac_confdir=`$as_dirname -- "$as_myself" ||
1440 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1441 X"$as_myself" : 'X\(//\)[^/]' \| \
1442 X"$as_myself" : 'X\(//\)$' \| \
1443 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1444 $as_echo X"$as_myself" |
1445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1446 s//\1/
1449 /^X\(\/\/\)[^/].*/{
1450 s//\1/
1453 /^X\(\/\/\)$/{
1454 s//\1/
1457 /^X\(\/\).*/{
1458 s//\1/
1461 s/.*/./; q'`
1462 srcdir=$ac_confdir
1463 if test ! -r "$srcdir/$ac_unique_file"; then
1464 srcdir=..
1466 else
1467 ac_srcdir_defaulted=no
1469 if test ! -r "$srcdir/$ac_unique_file"; then
1470 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1471 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1473 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 ac_abs_confdir=`(
1475 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1476 pwd)`
1477 # When building in place, set srcdir=.
1478 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 srcdir=.
1481 # Remove unnecessary trailing slashes from srcdir.
1482 # Double slashes in file names in object file debugging info
1483 # mess up M-x gdb in Emacs.
1484 case $srcdir in
1485 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 esac
1487 for ac_var in $ac_precious_vars; do
1488 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_env_${ac_var}_value=\$${ac_var}
1490 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1491 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1492 done
1495 # Report the --help message.
1497 if test "$ac_init_help" = "long"; then
1498 # Omit some internal or obsolete options to make the list less imposing.
1499 # This message is too long to be a string in the A/UX 3.1 sh.
1500 cat <<_ACEOF
1501 \`configure' configures this package to adapt to many kinds of systems.
1503 Usage: $0 [OPTION]... [VAR=VALUE]...
1505 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1506 VAR=VALUE. See below for descriptions of some of the useful variables.
1508 Defaults for the options are specified in brackets.
1510 Configuration:
1511 -h, --help display this help and exit
1512 --help=short display options specific to this package
1513 --help=recursive display the short help of all the included packages
1514 -V, --version display version information and exit
1515 -q, --quiet, --silent do not print \`checking...' messages
1516 --cache-file=FILE cache test results in FILE [disabled]
1517 -C, --config-cache alias for \`--cache-file=config.cache'
1518 -n, --no-create do not create output files
1519 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1521 Installation directories:
1522 --prefix=PREFIX install architecture-independent files in PREFIX
1523 [$ac_default_prefix]
1524 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 [PREFIX]
1527 By default, \`make install' will install all the files in
1528 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1529 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1530 for instance \`--prefix=\$HOME'.
1532 For better control, use the options below.
1534 Fine tuning of the installation directories:
1535 --bindir=DIR user executables [EPREFIX/bin]
1536 --sbindir=DIR system admin executables [EPREFIX/sbin]
1537 --libexecdir=DIR program executables [EPREFIX/libexec]
1538 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1539 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1540 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1541 --libdir=DIR object code libraries [EPREFIX/lib]
1542 --includedir=DIR C header files [PREFIX/include]
1543 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1544 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1545 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1546 --infodir=DIR info documentation [DATAROOTDIR/info]
1547 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1548 --mandir=DIR man documentation [DATAROOTDIR/man]
1549 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1550 --htmldir=DIR html documentation [DOCDIR]
1551 --dvidir=DIR dvi documentation [DOCDIR]
1552 --pdfdir=DIR pdf documentation [DOCDIR]
1553 --psdir=DIR ps documentation [DOCDIR]
1554 _ACEOF
1556 cat <<\_ACEOF
1558 Program names:
1559 --program-prefix=PREFIX prepend PREFIX to installed program names
1560 --program-suffix=SUFFIX append SUFFIX to installed program names
1561 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1563 System types:
1564 --build=BUILD configure for building on BUILD [guessed]
1565 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1566 --target=TARGET configure for building compilers for TARGET [HOST]
1567 _ACEOF
1570 if test -n "$ac_init_help"; then
1572 cat <<\_ACEOF
1574 Optional Features:
1575 --disable-option-checking ignore unrecognized --enable/--with options
1576 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1577 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1578 --enable-generated-files-in-srcdir
1579 put copies of generated files in source dir intended
1580 for creating source tarballs for users without
1581 texinfo bison or flex
1582 --disable-largefile omit support for large files
1583 --disable-build-format-warnings
1584 don't use -Wformat while building GCC
1585 --enable-werror-always enable -Werror despite compiler version
1586 --enable-checking[=LIST]
1587 enable expensive run-time checks. With LIST, enable
1588 only specific categories of checks. Categories are:
1589 yes,no,all,none,release. Flags are:
1590 assert,df,fold,gc,gcac,gimple,misc,
1591 rtlflag,rtl,runtime,tree,valgrind,types
1592 --enable-coverage[=LEVEL]
1593 enable compiler's code coverage collection. Use to
1594 measure compiler performance and locate unused parts
1595 of the compiler. With LEVEL, specify optimization.
1596 Values are opt, noopt, default is noopt
1597 --enable-gather-detailed-mem-stats
1598 enable detailed memory allocation stats gathering
1599 --enable-multilib enable library support for multiple ABIs
1600 --enable-multiarch enable support for multiarch paths
1601 --enable-__cxa_atexit enable __cxa_atexit for C++
1602 --enable-decimal-float={no,yes,bid,dpd}
1603 enable decimal float extension to C. Selecting 'bid'
1604 or 'dpd' choses which decimal floating point format
1605 to use
1606 --enable-fixed-point enable fixed-point arithmetic extension to C
1607 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1608 package
1609 --enable-tls enable or disable generation of tls code overriding
1610 the assembler check for tls support
1611 --enable-objc-gc enable the use of Boehm's garbage collector with the
1612 GNU Objective-C runtime
1613 --enable-upc-link-script
1614 enable UPC's use of a custom linker script; this
1615 will define the UPC shared section as a no load
1616 section on targets where this feature is supported
1617 (requires GNU LD)
1618 --disable-shared don't provide a shared libgcc
1619 --enable-languages=LIST specify which front-ends to build
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on 64 bit mingw targets
1626 --enable-cld enable -mcld by default for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths in the Registry
1631 on Windows hosts
1632 --enable-win32-registry enable registry lookup (default)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1635 of the registry key
1636 --enable-shared[=PKGS] build shared libraries [default=yes]
1637 --enable-static[=PKGS] build static libraries [default=yes]
1638 --enable-fast-install[=PKGS]
1639 optimize for fast installation [default=yes]
1640 --disable-libtool-lock avoid locking (might break parallel builds)
1641 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1642 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1645 glibc systems
1646 --enable-initfini-array use .init_array/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1648 --enable-gnu-unique-object
1649 enable the use of the @gnu_unique_object ELF
1650 extension on glibc systems
1651 --enable-linker-build-id
1652 compiler will always pass --build-id to linker
1653 --enable-maintainer-mode
1654 enable make rules and dependencies not useful (and
1655 sometimes confusing) to the casual installer
1656 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1657 thrashing on the build machine
1658 --enable-version-specific-runtime-libs
1659 specify that runtime libraries should be installed
1660 in a compiler-specific directory
1661 --enable-plugin enable plugin support
1662 --enable-host-shared build host code as shared libraries
1663 --disable-libquadmath-support
1664 disable libquadmath support for Fortran
1666 Optional Packages:
1667 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1668 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1669 --with-build-libsubdir=DIR Directory where to find libraries for build system
1670 --with-local-prefix=DIR specifies directory to put local include
1671 --with-gxx-include-dir=DIR
1672 specifies directory to put g++ header files
1673 --with-cpp-install-dir=DIR
1674 install the user visible C preprocessor in DIR
1675 (relative to PREFIX) as well as PREFIX/bin
1676 --with-gnu-ld arrange to work with GNU ld
1677 --with-ld arrange to use the specified ld (full pathname)
1678 --with-demangler-in-ld try to use demangler in GNU ld
1679 --with-gnu-as arrange to work with GNU as
1680 --with-as arrange to use the specified as (full pathname)
1681 --with-stabs arrange to use stabs instead of host debug format
1682 --with-upc-pts={struct,packed}
1683 choose the representation of a UPC pointer-to-shared
1684 --with-upc-pts-vaddr-order={last,first}
1685 choose position of the address field in UPC
1686 pointer-to-shared representation
1687 --with-upc-pts-packed-bits=phase,thread,vaddr
1688 choose bit distribution in packed UPC
1689 pointer-to-shared representation
1690 --with-dwarf2 force the default debug format to be DWARF 2
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to look for standard
1693 system header files in. Defaults to /usr/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1697 --with-specs=SPECS add SPECS to driver command-line processing
1698 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1699 --with-bugurl=URL Direct users to URL to report a bug
1700 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1701 --with-gnu-ld assume the C compiler uses GNU ld default=no
1702 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1703 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1704 --with-pic try to use only PIC/non-PIC objects [default=use
1705 both]
1706 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1707 --with-plugin-ld=[ARG] specify the plugin linker
1708 --with-glibc-version=M.N
1709 assume GCC used with glibc version M.N or later
1710 --with-long-double-128 use 128-bit long double by default
1711 --with-gc={page,zone} this option is not supported anymore. It used to
1712 choose the garbage collection mechanism to use with
1713 the compiler
1714 --with-system-zlib use installed libz
1715 --with-linker-hash-style={sysv,gnu,both}
1716 specify the linker hash style
1718 Some influential environment variables:
1719 CC C compiler command
1720 CFLAGS C compiler flags
1721 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1722 nonstandard directory <lib dir>
1723 LIBS libraries to pass to the linker, e.g. -l<library>
1724 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1725 you have headers in a nonstandard directory <include dir>
1726 CXX C++ compiler command
1727 CXXFLAGS C++ compiler flags
1728 CPP C preprocessor
1729 CXXCPP C++ preprocessor
1730 GMPLIBS How to link GMP
1731 GMPINC How to find GMP include files
1732 ISLLIBS How to link ISL
1733 ISLINC How to find ISL include files
1734 CLOOGLIBS How to link CLOOG
1735 CLOOGINC How to find CLOOG include files
1737 Use these variables to override the choices made by `configure' or to help
1738 it to find libraries and programs with nonstandard names/locations.
1740 Report bugs to the package provider.
1741 _ACEOF
1742 ac_status=$?
1745 if test "$ac_init_help" = "recursive"; then
1746 # If there are subdirs, report their specific --help.
1747 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1748 test -d "$ac_dir" ||
1749 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1750 continue
1751 ac_builddir=.
1753 case "$ac_dir" in
1754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1757 # A ".." for each directory in $ac_dir_suffix.
1758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1759 case $ac_top_builddir_sub in
1760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1762 esac ;;
1763 esac
1764 ac_abs_top_builddir=$ac_pwd
1765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1766 # for backward compatibility:
1767 ac_top_builddir=$ac_top_build_prefix
1769 case $srcdir in
1770 .) # We are building in place.
1771 ac_srcdir=.
1772 ac_top_srcdir=$ac_top_builddir_sub
1773 ac_abs_top_srcdir=$ac_pwd ;;
1774 [\\/]* | ?:[\\/]* ) # Absolute name.
1775 ac_srcdir=$srcdir$ac_dir_suffix;
1776 ac_top_srcdir=$srcdir
1777 ac_abs_top_srcdir=$srcdir ;;
1778 *) # Relative name.
1779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1780 ac_top_srcdir=$ac_top_build_prefix$srcdir
1781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1782 esac
1783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1785 cd "$ac_dir" || { ac_status=$?; continue; }
1786 # Check for guested configure.
1787 if test -f "$ac_srcdir/configure.gnu"; then
1788 echo &&
1789 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1790 elif test -f "$ac_srcdir/configure"; then
1791 echo &&
1792 $SHELL "$ac_srcdir/configure" --help=recursive
1793 else
1794 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1795 fi || ac_status=$?
1796 cd "$ac_pwd" || { ac_status=$?; break; }
1797 done
1800 test -n "$ac_init_help" && exit $ac_status
1801 if $ac_init_version; then
1802 cat <<\_ACEOF
1803 configure
1804 generated by GNU Autoconf 2.64
1806 Copyright (C) 2009 Free Software Foundation, Inc.
1807 This configure script is free software; the Free Software Foundation
1808 gives unlimited permission to copy, distribute and modify it.
1809 _ACEOF
1810 exit
1813 ## ------------------------ ##
1814 ## Autoconf initialization. ##
1815 ## ------------------------ ##
1817 # ac_fn_c_try_compile LINENO
1818 # --------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=1
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 return $ac_retval
1853 } # ac_fn_c_try_compile
1855 # ac_fn_cxx_try_compile LINENO
1856 # ----------------------------
1857 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_cxx_try_compile ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext
1862 if { { ac_try="$ac_compile"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_compile") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_cxx_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest.$ac_objext; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 return $ac_retval
1891 } # ac_fn_cxx_try_compile
1893 # ac_fn_c_try_cpp LINENO
1894 # ----------------------
1895 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_cpp ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if { { ac_try="$ac_cpp conftest.$ac_ext"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } >/dev/null && {
1915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 return $ac_retval
1928 } # ac_fn_c_try_cpp
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1934 # accordingly.
1935 ac_fn_c_check_header_mongrel ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 $as_echo_n "(cached) " >&6
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 else
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1958 else
1959 ac_header_compiler=no
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1974 else
1975 ac_header_preproc=no
1977 rm -f conftest.err conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1983 yes:no: )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 no:yes:* )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001 esac
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=\$ac_header_compiler"
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 } # ac_fn_c_check_header_mongrel
2017 # ac_fn_c_try_run LINENO
2018 # ----------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2020 # that executables *can* be run.
2021 ac_fn_c_try_run ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>&5
2032 ac_status=$?
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2035 { { case "(($ac_try" in
2036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2037 *) ac_try_echo=$ac_try;;
2038 esac
2039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2040 $as_echo "$ac_try_echo"; } >&5
2041 (eval "$ac_try") 2>&5
2042 ac_status=$?
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; }; }; then :
2045 ac_retval=0
2046 else
2047 $as_echo "$as_me: program exited with status $ac_status" >&5
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2051 ac_retval=$ac_status
2053 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055 return $ac_retval
2057 } # ac_fn_c_try_run
2059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists and can be compiled using the include files in
2062 # INCLUDES, setting the cache variable VAR accordingly.
2063 ac_fn_c_check_header_compile ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069 $as_echo_n "(cached) " >&6
2070 else
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 eval "$3=yes"
2078 else
2079 eval "$3=no"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 } # ac_fn_c_check_header_compile
2090 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2091 # --------------------------------------------
2092 # Tries to find the compile-time value of EXPR in a program that includes
2093 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2094 # computed
2095 ac_fn_c_compute_int ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 if test "$cross_compiling" = yes; then
2099 # Depending upon the size, compute the lo and hi bounds.
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 main ()
2106 static int test_array [1 - 2 * !(($2) >= 0)];
2107 test_array [0] = 0
2110 return 0;
2112 _ACEOF
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_lo=0 ac_mid=0
2115 while :; do
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2120 main ()
2122 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 test_array [0] = 0
2126 return 0;
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_hi=$ac_mid; break
2131 else
2132 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2133 if test $ac_lo -le $ac_mid; then
2134 ac_lo= ac_hi=
2135 break
2137 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 done
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 main ()
2148 static int test_array [1 - 2 * !(($2) < 0)];
2149 test_array [0] = 0
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_hi=-1 ac_mid=-1
2157 while :; do
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2162 main ()
2164 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2165 test_array [0] = 0
2168 return 0;
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172 ac_lo=$ac_mid; break
2173 else
2174 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2175 if test $ac_mid -le $ac_hi; then
2176 ac_lo= ac_hi=
2177 break
2179 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 done
2183 else
2184 ac_lo= ac_hi=
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 # Binary search between lo and hi bounds.
2190 while test "x$ac_lo" != "x$ac_hi"; do
2191 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2196 main ()
2198 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199 test_array [0] = 0
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_hi=$ac_mid
2207 else
2208 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 done
2212 case $ac_lo in #((
2213 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2214 '') ac_retval=1 ;;
2215 esac
2216 else
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2220 static long int longval () { return $2; }
2221 static unsigned long int ulongval () { return $2; }
2222 #include <stdio.h>
2223 #include <stdlib.h>
2225 main ()
2228 FILE *f = fopen ("conftest.val", "w");
2229 if (! f)
2230 return 1;
2231 if (($2) < 0)
2233 long int i = longval ();
2234 if (i != ($2))
2235 return 1;
2236 fprintf (f, "%ld", i);
2238 else
2240 unsigned long int i = ulongval ();
2241 if (i != ($2))
2242 return 1;
2243 fprintf (f, "%lu", i);
2245 /* Do not output a trailing newline, as this causes \r\n confusion
2246 on some platforms. */
2247 return ferror (f) || fclose (f) != 0;
2250 return 0;
2252 _ACEOF
2253 if ac_fn_c_try_run "$LINENO"; then :
2254 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2255 else
2256 ac_retval=1
2258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2259 conftest.$ac_objext conftest.beam conftest.$ac_ext
2260 rm -f conftest.val
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264 return $ac_retval
2266 } # ac_fn_c_compute_int
2268 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2269 # -------------------------------------------
2270 # Tests whether TYPE exists after having included INCLUDES, setting cache
2271 # variable VAR accordingly.
2272 ac_fn_c_check_type ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 eval "$3=no"
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2285 main ()
2287 if (sizeof ($2))
2288 return 0;
2290 return 0;
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 if (sizeof (($2)))
2301 return 0;
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2308 else
2309 eval "$3=yes"
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 eval ac_res=\$$3
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 } # ac_fn_c_check_type
2322 # ac_fn_c_find_intX_t LINENO BITS VAR
2323 # -----------------------------------
2324 # Finds a signed integer type with width BITS, setting cache variable VAR
2325 # accordingly.
2326 ac_fn_c_find_intX_t ()
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2330 $as_echo_n "checking for int$2_t... " >&6; }
2331 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2332 $as_echo_n "(cached) " >&6
2333 else
2334 eval "$3=no"
2335 for ac_type in int$2_t 'int' 'long int' \
2336 'long long int' 'short int' 'signed char'; do
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2339 $ac_includes_default
2341 main ()
2343 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2344 test_array [0] = 0
2347 return 0;
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2353 $ac_includes_default
2355 main ()
2357 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2358 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2359 test_array [0] = 0
2362 return 0;
2364 _ACEOF
2365 if ac_fn_c_try_compile "$LINENO"; then :
2367 else
2368 case $ac_type in #(
2369 int$2_t) :
2370 eval "$3=yes" ;; #(
2371 *) :
2372 eval "$3=\$ac_type" ;;
2373 esac
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 eval as_val=\$$3
2379 if test "x$as_val" = x""no; then :
2381 else
2382 break
2384 done
2386 eval ac_res=\$$3
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2388 $as_echo "$ac_res" >&6; }
2389 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391 } # ac_fn_c_find_intX_t
2393 # ac_fn_c_try_link LINENO
2394 # -----------------------
2395 # Try to link conftest.$ac_ext, and return whether this succeeded.
2396 ac_fn_c_try_link ()
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { { ac_try="$ac_link"
2401 case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2406 $as_echo "$ac_try_echo"; } >&5
2407 (eval "$ac_link") 2>conftest.err
2408 ac_status=$?
2409 if test -s conftest.err; then
2410 grep -v '^ *+' conftest.err >conftest.er1
2411 cat conftest.er1 >&5
2412 mv -f conftest.er1 conftest.err
2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415 test $ac_status = 0; } && {
2416 test -z "$ac_c_werror_flag" ||
2417 test ! -s conftest.err
2418 } && test -s conftest$ac_exeext && {
2419 test "$cross_compiling" = yes ||
2420 $as_test_x conftest$ac_exeext
2421 }; then :
2422 ac_retval=0
2423 else
2424 $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2427 ac_retval=1
2429 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2430 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2431 # interfere with the next link command; also delete a directory that is
2432 # left behind by Apple's compiler. We do this before executing the actions.
2433 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2435 return $ac_retval
2437 } # ac_fn_c_try_link
2439 # ac_fn_c_find_uintX_t LINENO BITS VAR
2440 # ------------------------------------
2441 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2442 # accordingly.
2443 ac_fn_c_find_uintX_t ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2447 $as_echo_n "checking for uint$2_t... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449 $as_echo_n "(cached) " >&6
2450 else
2451 eval "$3=no"
2452 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2453 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2456 $ac_includes_default
2458 main ()
2460 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2461 test_array [0] = 0
2464 return 0;
2466 _ACEOF
2467 if ac_fn_c_try_compile "$LINENO"; then :
2468 case $ac_type in #(
2469 uint$2_t) :
2470 eval "$3=yes" ;; #(
2471 *) :
2472 eval "$3=\$ac_type" ;;
2473 esac
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 eval as_val=\$$3
2477 if test "x$as_val" = x""no; then :
2479 else
2480 break
2482 done
2484 eval ac_res=\$$3
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2486 $as_echo "$ac_res" >&6; }
2487 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2489 } # ac_fn_c_find_uintX_t
2491 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2492 # ----------------------------------------------
2493 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2494 ac_fn_c_check_header_preproc ()
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2498 $as_echo_n "checking for $2... " >&6; }
2499 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2504 #include <$2>
2505 _ACEOF
2506 if ac_fn_c_try_cpp "$LINENO"; then :
2507 eval "$3=yes"
2508 else
2509 eval "$3=no"
2511 rm -f conftest.err conftest.$ac_ext
2513 eval ac_res=\$$3
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 } # ac_fn_c_check_header_preproc
2520 # ac_fn_cxx_try_cpp LINENO
2521 # ------------------------
2522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523 ac_fn_cxx_try_cpp ()
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 if { { ac_try="$ac_cpp conftest.$ac_ext"
2527 case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530 esac
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2534 ac_status=$?
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } >/dev/null && {
2542 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2544 }; then :
2545 ac_retval=0
2546 else
2547 $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 ac_retval=1
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 return $ac_retval
2555 } # ac_fn_cxx_try_cpp
2557 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2558 # ------------------------------------------------
2559 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2560 ac_fn_cxx_check_header_preproc ()
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2570 #include <$2>
2571 _ACEOF
2572 if ac_fn_cxx_try_cpp "$LINENO"; then :
2573 eval "$3=yes"
2574 else
2575 eval "$3=no"
2577 rm -f conftest.err conftest.$ac_ext
2579 eval ac_res=\$$3
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2584 } # ac_fn_cxx_check_header_preproc
2586 # ac_fn_c_check_func LINENO FUNC VAR
2587 # ----------------------------------
2588 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2589 ac_fn_c_check_func ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2601 #define $2 innocuous_$2
2603 /* System header to define __stub macros and hopefully few prototypes,
2604 which can conflict with char $2 (); below.
2605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2606 <limits.h> exists even on freestanding compilers. */
2608 #ifdef __STDC__
2609 # include <limits.h>
2610 #else
2611 # include <assert.h>
2612 #endif
2614 #undef $2
2616 /* Override any GCC internal prototype to avoid an error.
2617 Use char because int might match the return type of a GCC
2618 builtin and then its argument prototype would still apply. */
2619 #ifdef __cplusplus
2620 extern "C"
2621 #endif
2622 char $2 ();
2623 /* The GNU C library defines this for functions which it implements
2624 to always fail with ENOSYS. Some functions are actually named
2625 something starting with __ and the normal name is an alias. */
2626 #if defined __stub_$2 || defined __stub___$2
2627 choke me
2628 #endif
2631 main ()
2633 return $2 ();
2635 return 0;
2637 _ACEOF
2638 if ac_fn_c_try_link "$LINENO"; then :
2639 eval "$3=yes"
2640 else
2641 eval "$3=no"
2643 rm -f core conftest.err conftest.$ac_objext \
2644 conftest$ac_exeext conftest.$ac_ext
2646 eval ac_res=\$$3
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651 } # ac_fn_c_check_func
2653 # ac_fn_cxx_try_link LINENO
2654 # -------------------------
2655 # Try to link conftest.$ac_ext, and return whether this succeeded.
2656 ac_fn_cxx_try_link ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 rm -f conftest.$ac_objext conftest$ac_exeext
2660 if { { ac_try="$ac_link"
2661 case "(($ac_try" in
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2664 esac
2665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2666 $as_echo "$ac_try_echo"; } >&5
2667 (eval "$ac_link") 2>conftest.err
2668 ac_status=$?
2669 if test -s conftest.err; then
2670 grep -v '^ *+' conftest.err >conftest.er1
2671 cat conftest.er1 >&5
2672 mv -f conftest.er1 conftest.err
2674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2675 test $ac_status = 0; } && {
2676 test -z "$ac_cxx_werror_flag" ||
2677 test ! -s conftest.err
2678 } && test -s conftest$ac_exeext && {
2679 test "$cross_compiling" = yes ||
2680 $as_test_x conftest$ac_exeext
2681 }; then :
2682 ac_retval=0
2683 else
2684 $as_echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2687 ac_retval=1
2689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2691 # interfere with the next link command; also delete a directory that is
2692 # left behind by Apple's compiler. We do this before executing the actions.
2693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2694 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2695 return $ac_retval
2697 } # ac_fn_cxx_try_link
2698 cat >config.log <<_ACEOF
2699 This file contains any messages produced by compilers while
2700 running configure, to aid debugging if configure makes a mistake.
2702 It was created by $as_me, which was
2703 generated by GNU Autoconf 2.64. Invocation command line was
2705 $ $0 $@
2707 _ACEOF
2708 exec 5>>config.log
2710 cat <<_ASUNAME
2711 ## --------- ##
2712 ## Platform. ##
2713 ## --------- ##
2715 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2716 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2717 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2718 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2719 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2721 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2722 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2724 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2725 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2726 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2727 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2728 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2729 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2730 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2732 _ASUNAME
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 $as_echo "PATH: $as_dir"
2740 done
2741 IFS=$as_save_IFS
2743 } >&5
2745 cat >&5 <<_ACEOF
2748 ## ----------- ##
2749 ## Core tests. ##
2750 ## ----------- ##
2752 _ACEOF
2755 # Keep a trace of the command line.
2756 # Strip out --no-create and --no-recursion so they do not pile up.
2757 # Strip out --silent because we don't want to record it for future runs.
2758 # Also quote any args containing shell meta-characters.
2759 # Make two passes to allow for proper duplicate-argument suppression.
2760 ac_configure_args=
2761 ac_configure_args0=
2762 ac_configure_args1=
2763 ac_must_keep_next=false
2764 for ac_pass in 1 2
2766 for ac_arg
2768 case $ac_arg in
2769 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2771 | -silent | --silent | --silen | --sile | --sil)
2772 continue ;;
2773 *\'*)
2774 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2775 esac
2776 case $ac_pass in
2777 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2779 as_fn_append ac_configure_args1 " '$ac_arg'"
2780 if test $ac_must_keep_next = true; then
2781 ac_must_keep_next=false # Got value, back to normal.
2782 else
2783 case $ac_arg in
2784 *=* | --config-cache | -C | -disable-* | --disable-* \
2785 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2786 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2787 | -with-* | --with-* | -without-* | --without-* | --x)
2788 case "$ac_configure_args0 " in
2789 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2790 esac
2792 -* ) ac_must_keep_next=true ;;
2793 esac
2795 as_fn_append ac_configure_args " '$ac_arg'"
2797 esac
2798 done
2799 done
2800 { ac_configure_args0=; unset ac_configure_args0;}
2801 { ac_configure_args1=; unset ac_configure_args1;}
2803 # When interrupted or exit'd, cleanup temporary files, and complete
2804 # config.log. We remove comments because anyway the quotes in there
2805 # would cause problems or look ugly.
2806 # WARNING: Use '\'' to represent an apostrophe within the trap.
2807 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2808 trap 'exit_status=$?
2809 # Save into config.log some information that might help in debugging.
2811 echo
2813 cat <<\_ASBOX
2814 ## ---------------- ##
2815 ## Cache variables. ##
2816 ## ---------------- ##
2817 _ASBOX
2818 echo
2819 # The following way of writing the cache mishandles newlines in values,
2821 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2822 eval ac_val=\$$ac_var
2823 case $ac_val in #(
2824 *${as_nl}*)
2825 case $ac_var in #(
2826 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2828 esac
2829 case $ac_var in #(
2830 _ | IFS | as_nl) ;; #(
2831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2832 *) { eval $ac_var=; unset $ac_var;} ;;
2833 esac ;;
2834 esac
2835 done
2836 (set) 2>&1 |
2837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2838 *${as_nl}ac_space=\ *)
2839 sed -n \
2840 "s/'\''/'\''\\\\'\'''\''/g;
2841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2842 ;; #(
2844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2846 esac |
2847 sort
2849 echo
2851 cat <<\_ASBOX
2852 ## ----------------- ##
2853 ## Output variables. ##
2854 ## ----------------- ##
2855 _ASBOX
2856 echo
2857 for ac_var in $ac_subst_vars
2859 eval ac_val=\$$ac_var
2860 case $ac_val in
2861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2862 esac
2863 $as_echo "$ac_var='\''$ac_val'\''"
2864 done | sort
2865 echo
2867 if test -n "$ac_subst_files"; then
2868 cat <<\_ASBOX
2869 ## ------------------- ##
2870 ## File substitutions. ##
2871 ## ------------------- ##
2872 _ASBOX
2873 echo
2874 for ac_var in $ac_subst_files
2876 eval ac_val=\$$ac_var
2877 case $ac_val in
2878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2879 esac
2880 $as_echo "$ac_var='\''$ac_val'\''"
2881 done | sort
2882 echo
2885 if test -s confdefs.h; then
2886 cat <<\_ASBOX
2887 ## ----------- ##
2888 ## confdefs.h. ##
2889 ## ----------- ##
2890 _ASBOX
2891 echo
2892 cat confdefs.h
2893 echo
2895 test "$ac_signal" != 0 &&
2896 $as_echo "$as_me: caught signal $ac_signal"
2897 $as_echo "$as_me: exit $exit_status"
2898 } >&5
2899 rm -f core *.core core.conftest.* &&
2900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2901 exit $exit_status
2903 for ac_signal in 1 2 13 15; do
2904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2905 done
2906 ac_signal=0
2908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2909 rm -f -r conftest* confdefs.h
2911 $as_echo "/* confdefs.h */" > confdefs.h
2913 # Predefined preprocessor variables.
2915 cat >>confdefs.h <<_ACEOF
2916 #define PACKAGE_NAME "$PACKAGE_NAME"
2917 _ACEOF
2919 cat >>confdefs.h <<_ACEOF
2920 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2921 _ACEOF
2923 cat >>confdefs.h <<_ACEOF
2924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2925 _ACEOF
2927 cat >>confdefs.h <<_ACEOF
2928 #define PACKAGE_STRING "$PACKAGE_STRING"
2929 _ACEOF
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2933 _ACEOF
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_URL "$PACKAGE_URL"
2937 _ACEOF
2940 # Let the site file select an alternate cache file if it wants to.
2941 # Prefer an explicitly selected file to automatically selected ones.
2942 ac_site_file1=NONE
2943 ac_site_file2=NONE
2944 if test -n "$CONFIG_SITE"; then
2945 ac_site_file1=$CONFIG_SITE
2946 elif test "x$prefix" != xNONE; then
2947 ac_site_file1=$prefix/share/config.site
2948 ac_site_file2=$prefix/etc/config.site
2949 else
2950 ac_site_file1=$ac_default_prefix/share/config.site
2951 ac_site_file2=$ac_default_prefix/etc/config.site
2953 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2955 test "x$ac_site_file" = xNONE && continue
2956 if test -r "$ac_site_file"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2958 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2959 sed 's/^/| /' "$ac_site_file" >&5
2960 . "$ac_site_file"
2962 done
2964 if test -r "$cache_file"; then
2965 # Some versions of bash will fail to source /dev/null (special
2966 # files actually), so we avoid doing that.
2967 if test -f "$cache_file"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2969 $as_echo "$as_me: loading cache $cache_file" >&6;}
2970 case $cache_file in
2971 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2972 *) . "./$cache_file";;
2973 esac
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2977 $as_echo "$as_me: creating cache $cache_file" >&6;}
2978 >$cache_file
2981 # Check that the precious variables saved in the cache have kept the same
2982 # value.
2983 ac_cache_corrupted=false
2984 for ac_var in $ac_precious_vars; do
2985 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2986 eval ac_new_set=\$ac_env_${ac_var}_set
2987 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2988 eval ac_new_val=\$ac_env_${ac_var}_value
2989 case $ac_old_set,$ac_new_set in
2990 set,)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2992 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2993 ac_cache_corrupted=: ;;
2994 ,set)
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2996 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2997 ac_cache_corrupted=: ;;
2998 ,);;
3000 if test "x$ac_old_val" != "x$ac_new_val"; then
3001 # differences in whitespace do not lead to failure.
3002 ac_old_val_w=`echo x $ac_old_val`
3003 ac_new_val_w=`echo x $ac_new_val`
3004 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3006 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3007 ac_cache_corrupted=:
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3010 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3011 eval $ac_var=\$ac_old_val
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3014 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3016 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3017 fi;;
3018 esac
3019 # Pass precious variables to config.status.
3020 if test "$ac_new_set" = set; then
3021 case $ac_new_val in
3022 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3023 *) ac_arg=$ac_var=$ac_new_val ;;
3024 esac
3025 case " $ac_configure_args " in
3026 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3027 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3028 esac
3030 done
3031 if $ac_cache_corrupted; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3035 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3036 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3038 ## -------------------- ##
3039 ## Main body of script. ##
3040 ## -------------------- ##
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3056 gcc_version=`cat $srcdir/BASE-VER`
3058 # Determine the host, build, and target systems
3059 ac_aux_dir=
3060 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3061 for ac_t in install-sh install.sh shtool; do
3062 if test -f "$ac_dir/$ac_t"; then
3063 ac_aux_dir=$ac_dir
3064 ac_install_sh="$ac_aux_dir/$ac_t -c"
3065 break 2
3067 done
3068 done
3069 if test -z "$ac_aux_dir"; then
3070 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3073 # These three variables are undocumented and unsupported,
3074 # and are intended to be withdrawn in a future Autoconf release.
3075 # They can cause serious problems if a builder's source tree is in a directory
3076 # whose full name contains unusual characters.
3077 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3078 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3079 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3082 # Make sure we can run config.sub.
3083 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3084 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3087 $as_echo_n "checking build system type... " >&6; }
3088 if test "${ac_cv_build+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 ac_build_alias=$build_alias
3092 test "x$ac_build_alias" = x &&
3093 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3094 test "x$ac_build_alias" = x &&
3095 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3096 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3097 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3101 $as_echo "$ac_cv_build" >&6; }
3102 case $ac_cv_build in
3103 *-*-*) ;;
3104 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3105 esac
3106 build=$ac_cv_build
3107 ac_save_IFS=$IFS; IFS='-'
3108 set x $ac_cv_build
3109 shift
3110 build_cpu=$1
3111 build_vendor=$2
3112 shift; shift
3113 # Remember, the first character of IFS is used to create $*,
3114 # except with old shells:
3115 build_os=$*
3116 IFS=$ac_save_IFS
3117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3121 $as_echo_n "checking host system type... " >&6; }
3122 if test "${ac_cv_host+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test "x$host_alias" = x; then
3126 ac_cv_host=$ac_cv_build
3127 else
3128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3129 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3134 $as_echo "$ac_cv_host" >&6; }
3135 case $ac_cv_host in
3136 *-*-*) ;;
3137 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3138 esac
3139 host=$ac_cv_host
3140 ac_save_IFS=$IFS; IFS='-'
3141 set x $ac_cv_host
3142 shift
3143 host_cpu=$1
3144 host_vendor=$2
3145 shift; shift
3146 # Remember, the first character of IFS is used to create $*,
3147 # except with old shells:
3148 host_os=$*
3149 IFS=$ac_save_IFS
3150 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3154 $as_echo_n "checking target system type... " >&6; }
3155 if test "${ac_cv_target+set}" = set; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 if test "x$target_alias" = x; then
3159 ac_cv_target=$ac_cv_host
3160 else
3161 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3162 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3167 $as_echo "$ac_cv_target" >&6; }
3168 case $ac_cv_target in
3169 *-*-*) ;;
3170 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3171 esac
3172 target=$ac_cv_target
3173 ac_save_IFS=$IFS; IFS='-'
3174 set x $ac_cv_target
3175 shift
3176 target_cpu=$1
3177 target_vendor=$2
3178 shift; shift
3179 # Remember, the first character of IFS is used to create $*,
3180 # except with old shells:
3181 target_os=$*
3182 IFS=$ac_save_IFS
3183 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3186 # The aliases save the names the user supplied, while $host etc.
3187 # will get canonicalized.
3188 test -n "$target_alias" &&
3189 test "$program_prefix$program_suffix$program_transform_name" = \
3190 NONENONEs,x,x, &&
3191 program_prefix=${target_alias}-
3193 # Determine the noncanonical target name, for directory use.
3194 case ${build_alias} in
3195 "") build_noncanonical=${build} ;;
3196 *) build_noncanonical=${build_alias} ;;
3197 esac
3199 case ${host_alias} in
3200 "") host_noncanonical=${build_noncanonical} ;;
3201 *) host_noncanonical=${host_alias} ;;
3202 esac
3204 case ${target_alias} in
3205 "") target_noncanonical=${host_noncanonical} ;;
3206 *) target_noncanonical=${target_alias} ;;
3207 esac
3212 # Determine the target- and build-specific subdirectories
3214 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3215 # have matching libraries, they should use host libraries: Makefile.tpl
3216 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3217 # However, they still use the build modules, because the corresponding
3218 # host modules (e.g. bison) are only built for the host when bootstrap
3219 # finishes. So:
3220 # - build_subdir is where we find build modules, and never changes.
3221 # - build_libsubdir is where we find build libraries, and can be overridden.
3223 # Prefix 'build-' so this never conflicts with target_subdir.
3224 build_subdir="build-${build_noncanonical}"
3226 # Check whether --with-build-libsubdir was given.
3227 if test "${with_build_libsubdir+set}" = set; then :
3228 withval=$with_build_libsubdir; build_libsubdir="$withval"
3229 else
3230 build_libsubdir="$build_subdir"
3233 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3234 if ( test $srcdir = . && test -d gcc ) \
3235 || test -d $srcdir/../host-${host_noncanonical}; then
3236 host_subdir="host-${host_noncanonical}"
3237 else
3238 host_subdir=.
3240 # No prefix.
3241 target_subdir=${target_noncanonical}
3244 # Set program_transform_name
3245 test "$program_prefix" != NONE &&
3246 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3247 # Use a double $ so make ignores it.
3248 test "$program_suffix" != NONE &&
3249 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3250 # Double any \ or $.
3251 # By default was `s,x,x', remove it if useless.
3252 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3253 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3256 # Check for bogus environment variables.
3257 # Test if LIBRARY_PATH contains the notation for the current directory
3258 # since this would lead to problems installing/building glibc.
3259 # LIBRARY_PATH contains the current directory if one of the following
3260 # is true:
3261 # - one of the terminals (":" and ";") is the first or last sign
3262 # - two terminals occur directly after each other
3263 # - the path contains an element with a dot in it
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3265 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3266 case ${LIBRARY_PATH} in
3267 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3268 library_path_setting="contains current directory"
3271 library_path_setting="ok"
3273 esac
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3275 $as_echo "$library_path_setting" >&6; }
3276 if test "$library_path_setting" != "ok"; then
3277 as_fn_error "
3278 *** LIBRARY_PATH shouldn't contain the current directory when
3279 *** building gcc. Please change the environment variable
3280 *** and run configure again." "$LINENO" 5
3283 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3284 # since this would lead to problems installing/building glibc.
3285 # GCC_EXEC_PREFIX contains the current directory if one of the following
3286 # is true:
3287 # - one of the terminals (":" and ";") is the first or last sign
3288 # - two terminals occur directly after each other
3289 # - the path contains an element with a dot in it
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3291 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3292 case ${GCC_EXEC_PREFIX} in
3293 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3294 gcc_exec_prefix_setting="contains current directory"
3297 gcc_exec_prefix_setting="ok"
3299 esac
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3301 $as_echo "$gcc_exec_prefix_setting" >&6; }
3302 if test "$gcc_exec_prefix_setting" != "ok"; then
3303 as_fn_error "
3304 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3305 *** building gcc. Please change the environment variable
3306 *** and run configure again." "$LINENO" 5
3309 # -----------
3310 # Directories
3311 # -----------
3313 # Specify the local prefix
3314 local_prefix=
3316 # Check whether --with-local-prefix was given.
3317 if test "${with_local_prefix+set}" = set; then :
3318 withval=$with_local_prefix; case "${withval}" in
3319 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3320 no) ;;
3321 *) local_prefix=$with_local_prefix ;;
3322 esac
3326 # Default local prefix if it is empty
3327 if test x$local_prefix = x; then
3328 local_prefix=/usr/local
3331 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3332 # passed in by the toplevel make and thus we'd get different behavior
3333 # depending on where we built the sources.
3334 gcc_gxx_include_dir=
3335 # Specify the g++ header file directory
3337 # Check whether --with-gxx-include-dir was given.
3338 if test "${with_gxx_include_dir+set}" = set; then :
3339 withval=$with_gxx_include_dir; case "${withval}" in
3340 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3341 no) ;;
3342 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3343 esac
3347 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3348 if test x${gcc_gxx_include_dir} = x; then
3349 if test x${enable_version_specific_runtime_libs} = xyes; then
3350 gcc_gxx_include_dir='${libsubdir}/include/c++'
3351 else
3352 libstdcxx_incdir='include/c++/$(version)'
3353 if test x$host != x$target; then
3354 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3356 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3360 gcc_gxx_include_dir_add_sysroot=0
3361 if test "${with_sysroot+set}" = set; then
3362 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3363 if test "${gcc_gxx_without_sysroot}"; then
3364 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3365 gcc_gxx_include_dir_add_sysroot=1
3370 # Check whether --with-cpp_install_dir was given.
3371 if test "${with_cpp_install_dir+set}" = set; then :
3372 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3373 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3374 elif test x$withval != xno; then
3375 cpp_install_dir=$withval
3380 # We would like to our source tree to be readonly. However when releases or
3381 # pre-releases are generated, the flex/bison generated files as well as the
3382 # various formats of manuals need to be included along with the rest of the
3383 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3384 # just that.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3387 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3388 # Check whether --enable-generated-files-in-srcdir was given.
3389 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3390 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3391 else
3392 generated_files_in_srcdir=no
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3397 $as_echo "$generated_files_in_srcdir" >&6; }
3399 if test "$generated_files_in_srcdir" = "yes"; then
3400 GENINSRC=''
3401 else
3402 GENINSRC='#'
3406 # -------------------
3407 # Find default linker
3408 # -------------------
3410 # With GNU ld
3412 # Check whether --with-gnu-ld was given.
3413 if test "${with_gnu_ld+set}" = set; then :
3414 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3415 else
3416 gnu_ld_flag=no
3420 # With pre-defined ld
3422 # Check whether --with-ld was given.
3423 if test "${with_ld+set}" = set; then :
3424 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3427 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3428 if test ! -x "$DEFAULT_LINKER"; then
3429 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3430 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3431 gnu_ld_flag=yes
3434 cat >>confdefs.h <<_ACEOF
3435 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3436 _ACEOF
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3441 $as_echo_n "checking whether a default linker was specified... " >&6; }
3442 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3443 if test x"$gnu_ld_flag" = x"no"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3445 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3448 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3455 # With demangler in GNU ld
3457 # Check whether --with-demangler-in-ld was given.
3458 if test "${with_demangler_in_ld+set}" = set; then :
3459 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3460 else
3461 demangler_in_ld=yes
3465 # ----------------------
3466 # Find default assembler
3467 # ----------------------
3469 # With GNU as
3471 # Check whether --with-gnu-as was given.
3472 if test "${with_gnu_as+set}" = set; then :
3473 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3474 else
3475 gas_flag=no
3480 # Check whether --with-as was given.
3481 if test "${with_as+set}" = set; then :
3482 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3485 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3486 if test ! -x "$DEFAULT_ASSEMBLER"; then
3487 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3488 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3489 gas_flag=yes
3492 cat >>confdefs.h <<_ACEOF
3493 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3494 _ACEOF
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3499 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3500 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3501 if test x"$gas_flag" = x"no"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3503 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3506 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3513 # ---------------
3514 # Find C compiler
3515 # ---------------
3517 # If a non-executable a.out is present (e.g. created by GNU as above even if
3518 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3519 # file, even when creating an executable, so an execution test fails.
3520 # Remove possible default executable files to avoid this.
3522 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3523 # Autoconf includes it.
3524 rm -f a.out a.exe b.out
3526 # Find the native compiler
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3554 done
3555 done
3556 IFS=$as_save_IFS
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3571 if test -z "$ac_cv_prog_CC"; then
3572 ac_ct_CC=$CC
3573 # Extract the first word of "gcc", so it can be a program name with args.
3574 set dummy gcc; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_ac_ct_CC="gcc"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601 if test -n "$ac_ct_CC"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3603 $as_echo "$ac_ct_CC" >&6; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3609 if test "x$ac_ct_CC" = x; then
3610 CC=""
3611 else
3612 case $cross_compiling:$ac_tool_warned in
3613 yes:)
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned=yes ;;
3617 esac
3618 CC=$ac_ct_CC
3620 else
3621 CC="$ac_cv_prog_CC"
3624 if test -z "$CC"; then
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}cc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CC="${ac_tool_prefix}cc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3647 done
3648 done
3649 IFS=$as_save_IFS
3653 CC=$ac_cv_prog_CC
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3665 if test -z "$CC"; then
3666 # Extract the first word of "cc", so it can be a program name with args.
3667 set dummy cc; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_CC+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC="$CC" # Let the user override the test.
3675 else
3676 ac_prog_rejected=no
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3685 ac_prog_rejected=yes
3686 continue
3688 ac_cv_prog_CC="cc"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 break 2
3692 done
3693 done
3694 IFS=$as_save_IFS
3696 if test $ac_prog_rejected = yes; then
3697 # We found a bogon in the path, so make sure we never use it.
3698 set dummy $ac_cv_prog_CC
3699 shift
3700 if test $# != 0; then
3701 # We chose a different compiler from the bogus one.
3702 # However, it has the same basename, so the bogon will be chosen
3703 # first if we set CC to just the basename; use the full file name.
3704 shift
3705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3710 CC=$ac_cv_prog_CC
3711 if test -n "$CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713 $as_echo "$CC" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 for ac_prog in cl.exe
3725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_CC+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC="$CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3746 done
3747 done
3748 IFS=$as_save_IFS
3752 CC=$ac_cv_prog_CC
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3762 test -n "$CC" && break
3763 done
3765 if test -z "$CC"; then
3766 ac_ct_CC=$CC
3767 for ac_prog in cl.exe
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770 set dummy $ac_prog; ac_word=$2
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3772 $as_echo_n "checking for $ac_word... " >&6; }
3773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -n "$ac_ct_CC"; then
3777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_prog_ac_ct_CC="$ac_prog"
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3790 done
3791 done
3792 IFS=$as_save_IFS
3796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3797 if test -n "$ac_ct_CC"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3799 $as_echo "$ac_ct_CC" >&6; }
3800 else
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3806 test -n "$ac_ct_CC" && break
3807 done
3809 if test "x$ac_ct_CC" = x; then
3810 CC=""
3811 else
3812 case $cross_compiling:$ac_tool_warned in
3813 yes:)
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3816 ac_tool_warned=yes ;;
3817 esac
3818 CC=$ac_ct_CC
3825 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error "no acceptable C compiler found in \$PATH
3828 See \`config.log' for more details." "$LINENO" 5; }
3830 # Provide some information about the compiler.
3831 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3832 set X $ac_compile
3833 ac_compiler=$2
3834 for ac_option in --version -v -V -qversion; do
3835 { { ac_try="$ac_compiler $ac_option >&5"
3836 case "(($ac_try" in
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3839 esac
3840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3841 $as_echo "$ac_try_echo"; } >&5
3842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3843 ac_status=$?
3844 if test -s conftest.err; then
3845 sed '10a\
3846 ... rest of stderr output deleted ...
3847 10q' conftest.err >conftest.er1
3848 cat conftest.er1 >&5
3849 rm -f conftest.er1 conftest.err
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852 test $ac_status = 0; }
3853 done
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 main ()
3863 return 0;
3865 _ACEOF
3866 ac_clean_files_save=$ac_clean_files
3867 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3868 # Try to create an executable without -o first, disregard a.out.
3869 # It will help us diagnose broken compilers, and finding out an intuition
3870 # of exeext.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3872 $as_echo_n "checking for C compiler default output file name... " >&6; }
3873 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3875 # The possible output files:
3876 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3878 ac_rmfiles=
3879 for ac_file in $ac_files
3881 case $ac_file in
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3884 esac
3885 done
3886 rm -f $ac_rmfiles
3888 if { { ac_try="$ac_link_default"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_link_default") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; then :
3899 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3900 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3901 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3902 # so that the user can short-circuit this test for compilers unknown to
3903 # Autoconf.
3904 for ac_file in $ac_files ''
3906 test -f "$ac_file" || continue
3907 case $ac_file in
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3910 [ab].out )
3911 # We found the default executable, but exeext='' is most
3912 # certainly right.
3913 break;;
3914 *.* )
3915 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3916 then :; else
3917 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3919 # We set ac_cv_exeext here because the later test for it is not
3920 # safe: cross compilers may not add the suffix if given an `-o'
3921 # argument, so we may need to know it at that point already.
3922 # Even if this section looks crufty: it has the advantage of
3923 # actually working.
3924 break;;
3926 break;;
3927 esac
3928 done
3929 test "$ac_cv_exeext" = no && ac_cv_exeext=
3931 else
3932 ac_file=''
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3935 $as_echo "$ac_file" >&6; }
3936 if test -z "$ac_file"; then :
3937 $as_echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 { as_fn_set_status 77
3943 as_fn_error "C compiler cannot create executables
3944 See \`config.log' for more details." "$LINENO" 5; }; }
3946 ac_exeext=$ac_cv_exeext
3948 # Check that the compiler produces executables we can run. If not, either
3949 # the compiler is broken, or we cross compile.
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3951 $as_echo_n "checking whether the C compiler works... " >&6; }
3952 # If not cross compiling, check that we can run a simple program.
3953 if test "$cross_compiling" != yes; then
3954 if { ac_try='./$ac_file'
3955 { { case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_try") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; }; then
3965 cross_compiling=no
3966 else
3967 if test "$cross_compiling" = maybe; then
3968 cross_compiling=yes
3969 else
3970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error "cannot run C compiled programs.
3973 If you meant to cross compile, use \`--host'.
3974 See \`config.log' for more details." "$LINENO" 5; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 $as_echo "yes" >&6; }
3981 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3982 ac_clean_files=$ac_clean_files_save
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 $as_echo_n "checking whether we are cross compiling... " >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3988 $as_echo "$cross_compiling" >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3991 $as_echo_n "checking for suffix of executables... " >&6; }
3992 if { { ac_try="$ac_link"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4004 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4005 # work properly (i.e., refer to `conftest.exe'), while it won't with
4006 # `rm'.
4007 for ac_file in conftest.exe conftest conftest.*; do
4008 test -f "$ac_file" || continue
4009 case $ac_file in
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4012 break;;
4013 * ) break;;
4014 esac
4015 done
4016 else
4017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error "cannot compute suffix of executables: cannot compile and link
4020 See \`config.log' for more details." "$LINENO" 5; }
4022 rm -f conftest$ac_cv_exeext
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4024 $as_echo "$ac_cv_exeext" >&6; }
4026 rm -f conftest.$ac_ext
4027 EXEEXT=$ac_cv_exeext
4028 ac_exeext=$EXEEXT
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4030 $as_echo_n "checking for suffix of object files... " >&6; }
4031 if test "${ac_cv_objext+set}" = set; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4038 main ()
4042 return 0;
4044 _ACEOF
4045 rm -f conftest.o conftest.obj
4046 if { { ac_try="$ac_compile"
4047 case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4052 $as_echo "$ac_try_echo"; } >&5
4053 (eval "$ac_compile") 2>&5
4054 ac_status=$?
4055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4056 test $ac_status = 0; }; then :
4057 for ac_file in conftest.o conftest.obj conftest.*; do
4058 test -f "$ac_file" || continue;
4059 case $ac_file in
4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4061 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4062 break;;
4063 esac
4064 done
4065 else
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of object files: cannot compile
4072 See \`config.log' for more details." "$LINENO" 5; }
4074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4077 $as_echo "$ac_cv_objext" >&6; }
4078 OBJEXT=$ac_cv_objext
4079 ac_objext=$OBJEXT
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4082 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4089 main ()
4091 #ifndef __GNUC__
4092 choke me
4093 #endif
4096 return 0;
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_compiler_gnu=yes
4101 else
4102 ac_compiler_gnu=no
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110 if test $ac_compiler_gnu = yes; then
4111 GCC=yes
4112 else
4113 GCC=
4115 ac_test_CFLAGS=${CFLAGS+set}
4116 ac_save_CFLAGS=$CFLAGS
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4119 if test "${ac_cv_prog_cc_g+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 ac_save_c_werror_flag=$ac_c_werror_flag
4123 ac_c_werror_flag=yes
4124 ac_cv_prog_cc_g=no
4125 CFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4130 main ()
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_g=yes
4139 else
4140 CFLAGS=""
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4145 main ()
4149 return 0;
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4154 else
4155 ac_c_werror_flag=$ac_save_c_werror_flag
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_g=yes
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179 $as_echo "$ac_cv_prog_cc_g" >&6; }
4180 if test "$ac_test_CFLAGS" = set; then
4181 CFLAGS=$ac_save_CFLAGS
4182 elif test $ac_cv_prog_cc_g = yes; then
4183 if test "$GCC" = yes; then
4184 CFLAGS="-g -O2"
4185 else
4186 CFLAGS="-g"
4188 else
4189 if test "$GCC" = yes; then
4190 CFLAGS="-O2"
4191 else
4192 CFLAGS=
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4197 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4198 $as_echo_n "(cached) " >&6
4199 else
4200 ac_cv_prog_cc_c89=no
4201 ac_save_CC=$CC
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <stdarg.h>
4205 #include <stdio.h>
4206 #include <sys/types.h>
4207 #include <sys/stat.h>
4208 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4209 struct buf { int x; };
4210 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4211 static char *e (p, i)
4212 char **p;
4213 int i;
4215 return p[i];
4217 static char *f (char * (*g) (char **, int), char **p, ...)
4219 char *s;
4220 va_list v;
4221 va_start (v,p);
4222 s = g (p, va_arg (v,int));
4223 va_end (v);
4224 return s;
4227 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4228 function prototypes and stuff, but not '\xHH' hex character constants.
4229 These don't provoke an error unfortunately, instead are silently treated
4230 as 'x'. The following induces an error, until -std is added to get
4231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4232 array size at least. It's necessary to write '\x00'==0 to get something
4233 that's true only with -std. */
4234 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4236 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4237 inside strings and character constants. */
4238 #define FOO(x) 'x'
4239 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241 int test (int i, double x);
4242 struct s1 {int (*f) (int a);};
4243 struct s2 {int (*f) (double a);};
4244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4245 int argc;
4246 char **argv;
4248 main ()
4250 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4252 return 0;
4254 _ACEOF
4255 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258 CC="$ac_save_CC $ac_arg"
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_prog_cc_c89=$ac_arg
4262 rm -f core conftest.err conftest.$ac_objext
4263 test "x$ac_cv_prog_cc_c89" != "xno" && break
4264 done
4265 rm -f conftest.$ac_ext
4266 CC=$ac_save_CC
4269 # AC_CACHE_VAL
4270 case "x$ac_cv_prog_cc_c89" in
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4273 $as_echo "none needed" >&6; } ;;
4274 xno)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276 $as_echo "unsupported" >&6; } ;;
4278 CC="$CC $ac_cv_prog_cc_c89"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4280 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4281 esac
4282 if test "x$ac_cv_prog_cc_c89" != xno; then :
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 ac_ext=cpp
4293 ac_cpp='$CXXCPP $CPPFLAGS'
4294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4297 if test -z "$CXX"; then
4298 if test -n "$CCC"; then
4299 CXX=$CCC
4300 else
4301 if test -n "$ac_tool_prefix"; then
4302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4305 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if test "${ac_cv_prog_CXX+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$CXX"; then
4312 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4325 done
4326 done
4327 IFS=$as_save_IFS
4331 CXX=$ac_cv_prog_CXX
4332 if test -n "$CXX"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4334 $as_echo "$CXX" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4341 test -n "$CXX" && break
4342 done
4344 if test -z "$CXX"; then
4345 ac_ct_CXX=$CXX
4346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4348 # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$ac_ct_CXX"; then
4356 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_ac_ct_CXX="$ac_prog"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4375 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4376 if test -n "$ac_ct_CXX"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4378 $as_echo "$ac_ct_CXX" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4385 test -n "$ac_ct_CXX" && break
4386 done
4388 if test "x$ac_ct_CXX" = x; then
4389 CXX="g++"
4390 else
4391 case $cross_compiling:$ac_tool_warned in
4392 yes:)
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4395 ac_tool_warned=yes ;;
4396 esac
4397 CXX=$ac_ct_CXX
4403 # Provide some information about the compiler.
4404 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4405 set X $ac_compile
4406 ac_compiler=$2
4407 for ac_option in --version -v -V -qversion; do
4408 { { ac_try="$ac_compiler $ac_option >&5"
4409 case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4416 ac_status=$?
4417 if test -s conftest.err; then
4418 sed '10a\
4419 ... rest of stderr output deleted ...
4420 10q' conftest.err >conftest.er1
4421 cat conftest.er1 >&5
4422 rm -f conftest.er1 conftest.err
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; }
4426 done
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4429 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4430 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4437 main ()
4439 #ifndef __GNUC__
4440 choke me
4441 #endif
4444 return 0;
4446 _ACEOF
4447 if ac_fn_cxx_try_compile "$LINENO"; then :
4448 ac_compiler_gnu=yes
4449 else
4450 ac_compiler_gnu=no
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4457 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4458 if test $ac_compiler_gnu = yes; then
4459 GXX=yes
4460 else
4461 GXX=
4463 ac_test_CXXFLAGS=${CXXFLAGS+set}
4464 ac_save_CXXFLAGS=$CXXFLAGS
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4466 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4467 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4471 ac_cxx_werror_flag=yes
4472 ac_cv_prog_cxx_g=no
4473 CXXFLAGS="-g"
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4478 main ()
4482 return 0;
4484 _ACEOF
4485 if ac_fn_cxx_try_compile "$LINENO"; then :
4486 ac_cv_prog_cxx_g=yes
4487 else
4488 CXXFLAGS=""
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4493 main ()
4497 return 0;
4499 _ACEOF
4500 if ac_fn_cxx_try_compile "$LINENO"; then :
4502 else
4503 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4504 CXXFLAGS="-g"
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4509 main ()
4513 return 0;
4515 _ACEOF
4516 if ac_fn_cxx_try_compile "$LINENO"; then :
4517 ac_cv_prog_cxx_g=yes
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4527 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4528 if test "$ac_test_CXXFLAGS" = set; then
4529 CXXFLAGS=$ac_save_CXXFLAGS
4530 elif test $ac_cv_prog_cxx_g = yes; then
4531 if test "$GXX" = yes; then
4532 CXXFLAGS="-g -O2"
4533 else
4534 CXXFLAGS="-g"
4536 else
4537 if test "$GXX" = yes; then
4538 CXXFLAGS="-O2"
4539 else
4540 CXXFLAGS=
4543 ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$GNATBIND"; then
4561 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 GNATBIND=$ac_cv_prog_GNATBIND
4581 if test -n "$GNATBIND"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4583 $as_echo "$GNATBIND" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$ac_cv_prog_GNATBIND"; then
4592 ac_ct_GNATBIND=$GNATBIND
4593 # Extract the first word of "gnatbind", so it can be a program name with args.
4594 set dummy gnatbind; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_GNATBIND"; then
4601 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4621 if test -n "$ac_ct_GNATBIND"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4623 $as_echo "$ac_ct_GNATBIND" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4629 if test "x$ac_ct_GNATBIND" = x; then
4630 GNATBIND="no"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 GNATBIND=$ac_ct_GNATBIND
4640 else
4641 GNATBIND="$ac_cv_prog_GNATBIND"
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4646 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$GNATMAKE"; then
4653 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 GNATMAKE=$ac_cv_prog_GNATMAKE
4673 if test -n "$GNATMAKE"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4675 $as_echo "$GNATMAKE" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4683 if test -z "$ac_cv_prog_GNATMAKE"; then
4684 ac_ct_GNATMAKE=$GNATMAKE
4685 # Extract the first word of "gnatmake", so it can be a program name with args.
4686 set dummy gnatmake; ac_word=$2
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688 $as_echo_n "checking for $ac_word... " >&6; }
4689 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if test -n "$ac_ct_GNATMAKE"; then
4693 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4706 done
4707 done
4708 IFS=$as_save_IFS
4712 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4713 if test -n "$ac_ct_GNATMAKE"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4715 $as_echo "$ac_ct_GNATMAKE" >&6; }
4716 else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 $as_echo "no" >&6; }
4721 if test "x$ac_ct_GNATMAKE" = x; then
4722 GNATMAKE="no"
4723 else
4724 case $cross_compiling:$ac_tool_warned in
4725 yes:)
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4728 ac_tool_warned=yes ;;
4729 esac
4730 GNATMAKE=$ac_ct_GNATMAKE
4732 else
4733 GNATMAKE="$ac_cv_prog_GNATMAKE"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4737 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4738 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 cat >conftest.adb <<EOF
4742 procedure conftest is begin null; end conftest;
4744 acx_cv_cc_gcc_supports_ada=no
4745 # There is a bug in old released versions of GCC which causes the
4746 # driver to exit successfully when the appropriate language module
4747 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4748 # Therefore we must check for the error message as well as an
4749 # unsuccessful exit.
4750 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4751 # given a .adb file, but produce no object file. So we must check
4752 # if an object file was really produced to guard against this.
4753 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4754 if test x"$errors" = x && test -f conftest.$ac_objext; then
4755 acx_cv_cc_gcc_supports_ada=yes
4757 rm -f conftest.*
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4760 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4762 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4763 have_gnat=yes
4764 else
4765 have_gnat=no
4769 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4770 # optimizations to be activated explicitly by the toplevel.
4771 case "$CC" in
4772 */prev-gcc/xgcc*) ;;
4773 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4774 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4775 esac
4779 # Determine PICFLAG for target gnatlib.
4784 case "${target}" in
4785 # PIC is the default on some targets or must not be used.
4786 *-*-darwin*)
4787 # PIC is the default on this platform
4788 # Common symbols not allowed in MH_DYLIB files
4789 PICFLAG_FOR_TARGET=-fno-common
4791 alpha*-dec-osf5*)
4792 # PIC is the default.
4794 hppa*64*-*-hpux*)
4795 # PIC is the default for 64-bit PA HP-UX.
4797 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4799 i[34567]86-*-mingw* | x86_64-*-mingw*)
4801 i[34567]86-*-interix[3-9]*)
4802 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4803 # Instead, we relocate shared libraries at runtime.
4805 i[34567]86-*-nto-qnx*)
4806 # QNX uses GNU C++, but need to define -shared option too, otherwise
4807 # it will coredump.
4808 PICFLAG_FOR_TARGET='-fPIC -shared'
4810 i[34567]86-pc-msdosdjgpp*)
4811 # DJGPP does not support shared libraries at all.
4813 ia64*-*-hpux*)
4814 # On IA64 HP-UX, PIC is the default but the pic flag
4815 # sets the default TLS model and affects inlining.
4816 PICFLAG_FOR_TARGET=-fPIC
4818 mips-sgi-irix6*)
4819 # PIC is the default.
4821 rs6000-ibm-aix* | powerpc-ibm-aix*)
4822 # All AIX code is PIC.
4825 # Some targets support both -fPIC and -fpic, but prefer the latter.
4826 # FIXME: Why?
4827 i[34567]86-*-* | x86_64-*-*)
4828 PICFLAG_FOR_TARGET=-fpic
4830 # FIXME: Override -fPIC default in libgcc only?
4831 sh-*-linux* | sh[2346lbe]*-*-linux*)
4832 PICFLAG_FOR_TARGET=-fpic
4834 # FIXME: Simplify to sh*-*-netbsd*?
4835 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4836 sh64-*-netbsd* | sh64l*-*-netbsd*)
4837 PICFLAG_FOR_TARGET=-fpic
4839 # Default to -fPIC unless specified otherwise.
4841 PICFLAG_FOR_TARGET=-fPIC
4843 esac
4845 # If the user explicitly uses -fpic/-fPIC, keep that.
4846 case "${CFLAGS_FOR_TARGET}" in
4847 *-fpic*)
4848 PICFLAG_FOR_TARGET=-fpic
4850 *-fPIC*)
4851 PICFLAG_FOR_TARGET=-fPIC
4853 esac
4857 # -------------------------
4858 # Check C compiler features
4859 # -------------------------
4862 ac_ext=c
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4868 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4869 # On Suns, sometimes $CPP names a directory.
4870 if test -n "$CPP" && test -d "$CPP"; then
4871 CPP=
4873 if test -z "$CPP"; then
4874 if test "${ac_cv_prog_CPP+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 # Double quotes because CPP needs to be expanded
4878 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4880 ac_preproc_ok=false
4881 for ac_c_preproc_warn_flag in '' yes
4883 # Use a header file that comes with gcc, so configuring glibc
4884 # with a fresh cross-compiler works.
4885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886 # <limits.h> exists even on freestanding compilers.
4887 # On the NeXT, cc -E runs the code through the compiler's parser,
4888 # not just through cpp. "Syntax error" is here to catch this case.
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 #ifdef __STDC__
4892 # include <limits.h>
4893 #else
4894 # include <assert.h>
4895 #endif
4896 Syntax error
4897 _ACEOF
4898 if ac_fn_c_try_cpp "$LINENO"; then :
4900 else
4901 # Broken: fails on valid input.
4902 continue
4904 rm -f conftest.err conftest.$ac_ext
4906 # OK, works on sane cases. Now check whether nonexistent headers
4907 # can be detected and how.
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <ac_nonexistent.h>
4911 _ACEOF
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4913 # Broken: success on invalid input.
4914 continue
4915 else
4916 # Passes both tests.
4917 ac_preproc_ok=:
4918 break
4920 rm -f conftest.err conftest.$ac_ext
4922 done
4923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4924 rm -f conftest.err conftest.$ac_ext
4925 if $ac_preproc_ok; then :
4926 break
4929 done
4930 ac_cv_prog_CPP=$CPP
4933 CPP=$ac_cv_prog_CPP
4934 else
4935 ac_cv_prog_CPP=$CPP
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4938 $as_echo "$CPP" >&6; }
4939 ac_preproc_ok=false
4940 for ac_c_preproc_warn_flag in '' yes
4942 # Use a header file that comes with gcc, so configuring glibc
4943 # with a fresh cross-compiler works.
4944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4945 # <limits.h> exists even on freestanding compilers.
4946 # On the NeXT, cc -E runs the code through the compiler's parser,
4947 # not just through cpp. "Syntax error" is here to catch this case.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #ifdef __STDC__
4951 # include <limits.h>
4952 #else
4953 # include <assert.h>
4954 #endif
4955 Syntax error
4956 _ACEOF
4957 if ac_fn_c_try_cpp "$LINENO"; then :
4959 else
4960 # Broken: fails on valid input.
4961 continue
4963 rm -f conftest.err conftest.$ac_ext
4965 # OK, works on sane cases. Now check whether nonexistent headers
4966 # can be detected and how.
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 #include <ac_nonexistent.h>
4970 _ACEOF
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4972 # Broken: success on invalid input.
4973 continue
4974 else
4975 # Passes both tests.
4976 ac_preproc_ok=:
4977 break
4979 rm -f conftest.err conftest.$ac_ext
4981 done
4982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4983 rm -f conftest.err conftest.$ac_ext
4984 if $ac_preproc_ok; then :
4986 else
4987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4989 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4990 See \`config.log' for more details." "$LINENO" 5; }
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5001 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5002 if test "${ac_cv_path_GREP+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 if test -z "$GREP"; then
5006 ac_path_GREP_found=false
5007 # Loop through the user's path and test for each of PROGNAME-LIST
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_prog in grep ggrep; do
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5017 # Check for GNU ac_path_GREP and select it if it is found.
5018 # Check for GNU $ac_path_GREP
5019 case `"$ac_path_GREP" --version 2>&1` in
5020 *GNU*)
5021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5023 ac_count=0
5024 $as_echo_n 0123456789 >"conftest.in"
5025 while :
5027 cat "conftest.in" "conftest.in" >"conftest.tmp"
5028 mv "conftest.tmp" "conftest.in"
5029 cp "conftest.in" "conftest.nl"
5030 $as_echo 'GREP' >> "conftest.nl"
5031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5033 as_fn_arith $ac_count + 1 && ac_count=$as_val
5034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5035 # Best one so far, save it but keep looking for a better one
5036 ac_cv_path_GREP="$ac_path_GREP"
5037 ac_path_GREP_max=$ac_count
5039 # 10*(2^10) chars as input seems more than enough
5040 test $ac_count -gt 10 && break
5041 done
5042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5043 esac
5045 $ac_path_GREP_found && break 3
5046 done
5047 done
5048 done
5049 IFS=$as_save_IFS
5050 if test -z "$ac_cv_path_GREP"; then
5051 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5053 else
5054 ac_cv_path_GREP=$GREP
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5059 $as_echo "$ac_cv_path_GREP" >&6; }
5060 GREP="$ac_cv_path_GREP"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5064 $as_echo_n "checking for egrep... " >&6; }
5065 if test "${ac_cv_path_EGREP+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5069 then ac_cv_path_EGREP="$GREP -E"
5070 else
5071 if test -z "$EGREP"; then
5072 ac_path_EGREP_found=false
5073 # Loop through the user's path and test for each of PROGNAME-LIST
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_prog in egrep; do
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5082 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5083 # Check for GNU ac_path_EGREP and select it if it is found.
5084 # Check for GNU $ac_path_EGREP
5085 case `"$ac_path_EGREP" --version 2>&1` in
5086 *GNU*)
5087 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5089 ac_count=0
5090 $as_echo_n 0123456789 >"conftest.in"
5091 while :
5093 cat "conftest.in" "conftest.in" >"conftest.tmp"
5094 mv "conftest.tmp" "conftest.in"
5095 cp "conftest.in" "conftest.nl"
5096 $as_echo 'EGREP' >> "conftest.nl"
5097 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099 as_fn_arith $ac_count + 1 && ac_count=$as_val
5100 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5101 # Best one so far, save it but keep looking for a better one
5102 ac_cv_path_EGREP="$ac_path_EGREP"
5103 ac_path_EGREP_max=$ac_count
5105 # 10*(2^10) chars as input seems more than enough
5106 test $ac_count -gt 10 && break
5107 done
5108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 esac
5111 $ac_path_EGREP_found && break 3
5112 done
5113 done
5114 done
5115 IFS=$as_save_IFS
5116 if test -z "$ac_cv_path_EGREP"; then
5117 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5119 else
5120 ac_cv_path_EGREP=$EGREP
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5126 $as_echo "$ac_cv_path_EGREP" >&6; }
5127 EGREP="$ac_cv_path_EGREP"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5131 $as_echo_n "checking for ANSI C header files... " >&6; }
5132 if test "${ac_cv_header_stdc+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <stdlib.h>
5138 #include <stdarg.h>
5139 #include <string.h>
5140 #include <float.h>
5143 main ()
5147 return 0;
5149 _ACEOF
5150 if ac_fn_c_try_compile "$LINENO"; then :
5151 ac_cv_header_stdc=yes
5152 else
5153 ac_cv_header_stdc=no
5155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 if test $ac_cv_header_stdc = yes; then
5158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <string.h>
5163 _ACEOF
5164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5165 $EGREP "memchr" >/dev/null 2>&1; then :
5167 else
5168 ac_cv_header_stdc=no
5170 rm -f conftest*
5174 if test $ac_cv_header_stdc = yes; then
5175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <stdlib.h>
5180 _ACEOF
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "free" >/dev/null 2>&1; then :
5184 else
5185 ac_cv_header_stdc=no
5187 rm -f conftest*
5191 if test $ac_cv_header_stdc = yes; then
5192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5193 if test "$cross_compiling" = yes; then :
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #include <ctype.h>
5199 #include <stdlib.h>
5200 #if ((' ' & 0x0FF) == 0x020)
5201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5203 #else
5204 # define ISLOWER(c) \
5205 (('a' <= (c) && (c) <= 'i') \
5206 || ('j' <= (c) && (c) <= 'r') \
5207 || ('s' <= (c) && (c) <= 'z'))
5208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5209 #endif
5211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5213 main ()
5215 int i;
5216 for (i = 0; i < 256; i++)
5217 if (XOR (islower (i), ISLOWER (i))
5218 || toupper (i) != TOUPPER (i))
5219 return 2;
5220 return 0;
5222 _ACEOF
5223 if ac_fn_c_try_run "$LINENO"; then :
5225 else
5226 ac_cv_header_stdc=no
5228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5229 conftest.$ac_objext conftest.beam conftest.$ac_ext
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5235 $as_echo "$ac_cv_header_stdc" >&6; }
5236 if test $ac_cv_header_stdc = yes; then
5238 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5244 inttypes.h stdint.h unistd.h
5245 do :
5246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5247 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5249 eval as_val=\$$as_ac_Header
5250 if test "x$as_val" = x""yes; then :
5251 cat >>confdefs.h <<_ACEOF
5252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5253 _ACEOF
5257 done
5261 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5263 MINIX=yes
5264 else
5265 MINIX=
5269 if test "$MINIX" = yes; then
5271 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5274 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5277 $as_echo "#define _MINIX 1" >>confdefs.h
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5283 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5284 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5290 # define __EXTENSIONS__ 1
5291 $ac_includes_default
5293 main ()
5297 return 0;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 ac_cv_safe_to_define___extensions__=yes
5302 else
5303 ac_cv_safe_to_define___extensions__=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5308 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5309 test $ac_cv_safe_to_define___extensions__ = yes &&
5310 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5312 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5314 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5316 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5318 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5321 ac_ext=c
5322 ac_cpp='$CPP $CPPFLAGS'
5323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5327 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5328 # On Suns, sometimes $CPP names a directory.
5329 if test -n "$CPP" && test -d "$CPP"; then
5330 CPP=
5332 if test -z "$CPP"; then
5333 if test "${ac_cv_prog_CPP+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 # Double quotes because CPP needs to be expanded
5337 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5339 ac_preproc_ok=false
5340 for ac_c_preproc_warn_flag in '' yes
5342 # Use a header file that comes with gcc, so configuring glibc
5343 # with a fresh cross-compiler works.
5344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5345 # <limits.h> exists even on freestanding compilers.
5346 # On the NeXT, cc -E runs the code through the compiler's parser,
5347 # not just through cpp. "Syntax error" is here to catch this case.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #ifdef __STDC__
5351 # include <limits.h>
5352 #else
5353 # include <assert.h>
5354 #endif
5355 Syntax error
5356 _ACEOF
5357 if ac_fn_c_try_cpp "$LINENO"; then :
5359 else
5360 # Broken: fails on valid input.
5361 continue
5363 rm -f conftest.err conftest.$ac_ext
5365 # OK, works on sane cases. Now check whether nonexistent headers
5366 # can be detected and how.
5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5369 #include <ac_nonexistent.h>
5370 _ACEOF
5371 if ac_fn_c_try_cpp "$LINENO"; then :
5372 # Broken: success on invalid input.
5373 continue
5374 else
5375 # Passes both tests.
5376 ac_preproc_ok=:
5377 break
5379 rm -f conftest.err conftest.$ac_ext
5381 done
5382 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5383 rm -f conftest.err conftest.$ac_ext
5384 if $ac_preproc_ok; then :
5385 break
5388 done
5389 ac_cv_prog_CPP=$CPP
5392 CPP=$ac_cv_prog_CPP
5393 else
5394 ac_cv_prog_CPP=$CPP
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5397 $as_echo "$CPP" >&6; }
5398 ac_preproc_ok=false
5399 for ac_c_preproc_warn_flag in '' yes
5401 # Use a header file that comes with gcc, so configuring glibc
5402 # with a fresh cross-compiler works.
5403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5404 # <limits.h> exists even on freestanding compilers.
5405 # On the NeXT, cc -E runs the code through the compiler's parser,
5406 # not just through cpp. "Syntax error" is here to catch this case.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #ifdef __STDC__
5410 # include <limits.h>
5411 #else
5412 # include <assert.h>
5413 #endif
5414 Syntax error
5415 _ACEOF
5416 if ac_fn_c_try_cpp "$LINENO"; then :
5418 else
5419 # Broken: fails on valid input.
5420 continue
5422 rm -f conftest.err conftest.$ac_ext
5424 # OK, works on sane cases. Now check whether nonexistent headers
5425 # can be detected and how.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 #include <ac_nonexistent.h>
5429 _ACEOF
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5431 # Broken: success on invalid input.
5432 continue
5433 else
5434 # Passes both tests.
5435 ac_preproc_ok=:
5436 break
5438 rm -f conftest.err conftest.$ac_ext
5440 done
5441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5442 rm -f conftest.err conftest.$ac_ext
5443 if $ac_preproc_ok; then :
5445 else
5446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5448 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5449 See \`config.log' for more details." "$LINENO" 5; }
5452 ac_ext=c
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5459 $as_echo_n "checking for inline... " >&6; }
5460 if test "${ac_cv_c_inline+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462 else
5463 ac_cv_c_inline=no
5464 for ac_kw in inline __inline__ __inline; do
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 #ifndef __cplusplus
5468 typedef int foo_t;
5469 static $ac_kw foo_t static_foo () {return 0; }
5470 $ac_kw foo_t foo () {return 0; }
5471 #endif
5473 _ACEOF
5474 if ac_fn_c_try_compile "$LINENO"; then :
5475 ac_cv_c_inline=$ac_kw
5477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478 test "$ac_cv_c_inline" != no && break
5479 done
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5483 $as_echo "$ac_cv_c_inline" >&6; }
5485 case $ac_cv_c_inline in
5486 inline | yes) ;;
5488 case $ac_cv_c_inline in
5489 no) ac_val=;;
5490 *) ac_val=$ac_cv_c_inline;;
5491 esac
5492 cat >>confdefs.h <<_ACEOF
5493 #ifndef __cplusplus
5494 #define inline $ac_val
5495 #endif
5496 _ACEOF
5498 esac
5501 # Check whether --enable-largefile was given.
5502 if test "${enable_largefile+set}" = set; then :
5503 enableval=$enable_largefile;
5506 if test "$enable_largefile" != no; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5509 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5510 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 ac_cv_sys_largefile_CC=no
5514 if test "$GCC" != yes; then
5515 ac_save_CC=$CC
5516 while :; do
5517 # IRIX 6.2 and later do not support large files by default,
5518 # so use the C compiler's -n32 option if that helps.
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 /* Check that off_t can represent 2**63 - 1 correctly.
5523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5524 since some C++ compilers masquerading as C compilers
5525 incorrectly reject 9223372036854775807. */
5526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5528 && LARGE_OFF_T % 2147483647 == 1)
5529 ? 1 : -1];
5531 main ()
5535 return 0;
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"; then :
5539 break
5541 rm -f core conftest.err conftest.$ac_objext
5542 CC="$CC -n32"
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 ac_cv_sys_largefile_CC=' -n32'; break
5546 rm -f core conftest.err conftest.$ac_objext
5547 break
5548 done
5549 CC=$ac_save_CC
5550 rm -f conftest.$ac_ext
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5554 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5555 if test "$ac_cv_sys_largefile_CC" != no; then
5556 CC=$CC$ac_cv_sys_largefile_CC
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5560 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5561 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 while :; do
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5568 /* Check that off_t can represent 2**63 - 1 correctly.
5569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5570 since some C++ compilers masquerading as C compilers
5571 incorrectly reject 9223372036854775807. */
5572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5574 && LARGE_OFF_T % 2147483647 == 1)
5575 ? 1 : -1];
5577 main ()
5581 return 0;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_sys_file_offset_bits=no; break
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #define _FILE_OFFSET_BITS 64
5591 #include <sys/types.h>
5592 /* Check that off_t can represent 2**63 - 1 correctly.
5593 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5594 since some C++ compilers masquerading as C compilers
5595 incorrectly reject 9223372036854775807. */
5596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5597 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5598 && LARGE_OFF_T % 2147483647 == 1)
5599 ? 1 : -1];
5601 main ()
5605 return 0;
5607 _ACEOF
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_sys_file_offset_bits=64; break
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 ac_cv_sys_file_offset_bits=unknown
5613 break
5614 done
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5617 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5618 case $ac_cv_sys_file_offset_bits in #(
5619 no | unknown) ;;
5621 cat >>confdefs.h <<_ACEOF
5622 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5623 _ACEOF
5625 esac
5626 rm -rf conftest*
5627 if test $ac_cv_sys_file_offset_bits = unknown; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5629 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5630 if test "${ac_cv_sys_large_files+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 while :; do
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636 #include <sys/types.h>
5637 /* Check that off_t can represent 2**63 - 1 correctly.
5638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5639 since some C++ compilers masquerading as C compilers
5640 incorrectly reject 9223372036854775807. */
5641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5643 && LARGE_OFF_T % 2147483647 == 1)
5644 ? 1 : -1];
5646 main ()
5650 return 0;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"; then :
5654 ac_cv_sys_large_files=no; break
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #define _LARGE_FILES 1
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5668 ? 1 : -1];
5670 main ()
5674 return 0;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 ac_cv_sys_large_files=1; break
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 ac_cv_sys_large_files=unknown
5682 break
5683 done
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5686 $as_echo "$ac_cv_sys_large_files" >&6; }
5687 case $ac_cv_sys_large_files in #(
5688 no | unknown) ;;
5690 cat >>confdefs.h <<_ACEOF
5691 #define _LARGE_FILES $ac_cv_sys_large_files
5692 _ACEOF
5694 esac
5695 rm -rf conftest*
5700 # sizeof(char) is 1 by definition.
5701 # The cast to long int works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5706 $as_echo_n "checking size of void *... " >&6; }
5707 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5708 $as_echo_n "(cached) " >&6
5709 else
5710 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5712 else
5713 if test "$ac_cv_type_void_p" = yes; then
5714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5716 { as_fn_set_status 77
5717 as_fn_error "cannot compute sizeof (void *)
5718 See \`config.log' for more details." "$LINENO" 5; }; }
5719 else
5720 ac_cv_sizeof_void_p=0
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5726 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5730 cat >>confdefs.h <<_ACEOF
5731 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5732 _ACEOF
5735 # The cast to long int works around a bug in the HP C Compiler
5736 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5737 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5738 # This bug is HP SR number 8606223364.
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5740 $as_echo_n "checking size of short... " >&6; }
5741 if test "${ac_cv_sizeof_short+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5746 else
5747 if test "$ac_cv_type_short" = yes; then
5748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5750 { as_fn_set_status 77
5751 as_fn_error "cannot compute sizeof (short)
5752 See \`config.log' for more details." "$LINENO" 5; }; }
5753 else
5754 ac_cv_sizeof_short=0
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5760 $as_echo "$ac_cv_sizeof_short" >&6; }
5764 cat >>confdefs.h <<_ACEOF
5765 #define SIZEOF_SHORT $ac_cv_sizeof_short
5766 _ACEOF
5769 # The cast to long int works around a bug in the HP C Compiler
5770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5772 # This bug is HP SR number 8606223364.
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5774 $as_echo_n "checking size of int... " >&6; }
5775 if test "${ac_cv_sizeof_int+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5780 else
5781 if test "$ac_cv_type_int" = yes; then
5782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5784 { as_fn_set_status 77
5785 as_fn_error "cannot compute sizeof (int)
5786 See \`config.log' for more details." "$LINENO" 5; }; }
5787 else
5788 ac_cv_sizeof_int=0
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5794 $as_echo "$ac_cv_sizeof_int" >&6; }
5798 cat >>confdefs.h <<_ACEOF
5799 #define SIZEOF_INT $ac_cv_sizeof_int
5800 _ACEOF
5803 # The cast to long int works around a bug in the HP C Compiler
5804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5806 # This bug is HP SR number 8606223364.
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5808 $as_echo_n "checking size of long... " >&6; }
5809 if test "${ac_cv_sizeof_long+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811 else
5812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5814 else
5815 if test "$ac_cv_type_long" = yes; then
5816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5818 { as_fn_set_status 77
5819 as_fn_error "cannot compute sizeof (long)
5820 See \`config.log' for more details." "$LINENO" 5; }; }
5821 else
5822 ac_cv_sizeof_long=0
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5828 $as_echo "$ac_cv_sizeof_long" >&6; }
5832 cat >>confdefs.h <<_ACEOF
5833 #define SIZEOF_LONG $ac_cv_sizeof_long
5834 _ACEOF
5837 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5838 if test "x$ac_cv_type_long_long" = x""yes; then :
5840 cat >>confdefs.h <<_ACEOF
5841 #define HAVE_LONG_LONG 1
5842 _ACEOF
5844 # The cast to long int works around a bug in the HP C Compiler
5845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5847 # This bug is HP SR number 8606223364.
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5849 $as_echo_n "checking size of long long... " >&6; }
5850 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5855 else
5856 if test "$ac_cv_type_long_long" = yes; then
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859 { as_fn_set_status 77
5860 as_fn_error "cannot compute sizeof (long long)
5861 See \`config.log' for more details." "$LINENO" 5; }; }
5862 else
5863 ac_cv_sizeof_long_long=0
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5869 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5873 cat >>confdefs.h <<_ACEOF
5874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5875 _ACEOF
5880 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5881 if test "x$ac_cv_type___int64" = x""yes; then :
5883 cat >>confdefs.h <<_ACEOF
5884 #define HAVE___INT64 1
5885 _ACEOF
5887 # The cast to long int works around a bug in the HP C Compiler
5888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5890 # This bug is HP SR number 8606223364.
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5892 $as_echo_n "checking size of __int64... " >&6; }
5893 if test "${ac_cv_sizeof___int64+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5898 else
5899 if test "$ac_cv_type___int64" = yes; then
5900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5902 { as_fn_set_status 77
5903 as_fn_error "cannot compute sizeof (__int64)
5904 See \`config.log' for more details." "$LINENO" 5; }; }
5905 else
5906 ac_cv_sizeof___int64=0
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5912 $as_echo "$ac_cv_sizeof___int64" >&6; }
5916 cat >>confdefs.h <<_ACEOF
5917 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5918 _ACEOF
5923 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5924 case $ac_cv_c_int8_t in #(
5925 no|yes) ;; #(
5928 cat >>confdefs.h <<_ACEOF
5929 #define int8_t $ac_cv_c_int8_t
5930 _ACEOF
5932 esac
5934 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5935 case $ac_cv_c_int16_t in #(
5936 no|yes) ;; #(
5939 cat >>confdefs.h <<_ACEOF
5940 #define int16_t $ac_cv_c_int16_t
5941 _ACEOF
5943 esac
5945 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5946 case $ac_cv_c_int32_t in #(
5947 no|yes) ;; #(
5950 cat >>confdefs.h <<_ACEOF
5951 #define int32_t $ac_cv_c_int32_t
5952 _ACEOF
5954 esac
5956 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5957 case $ac_cv_c_int64_t in #(
5958 no|yes) ;; #(
5961 cat >>confdefs.h <<_ACEOF
5962 #define int64_t $ac_cv_c_int64_t
5963 _ACEOF
5965 esac
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5969 $as_echo_n "checking for long long int... " >&6; }
5970 if test "${ac_cv_type_long_long_int+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5976 /* For now, do not test the preprocessor; as of 2007 there are too many
5977 implementations with broken preprocessors. Perhaps this can
5978 be revisited in 2012. In the meantime, code should not expect
5979 #if to work with literals wider than 32 bits. */
5980 /* Test literals. */
5981 long long int ll = 9223372036854775807ll;
5982 long long int nll = -9223372036854775807LL;
5983 unsigned long long int ull = 18446744073709551615ULL;
5984 /* Test constant expressions. */
5985 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5986 ? 1 : -1)];
5987 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5988 ? 1 : -1)];
5989 int i = 63;
5991 main ()
5993 /* Test availability of runtime routines for shift and division. */
5994 long long int llmax = 9223372036854775807ll;
5995 unsigned long long int ullmax = 18446744073709551615ull;
5996 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5997 | (llmax / ll) | (llmax % ll)
5998 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5999 | (ullmax / ull) | (ullmax % ull));
6001 return 0;
6004 _ACEOF
6005 if ac_fn_c_try_link "$LINENO"; then :
6006 if test "$cross_compiling" = yes; then :
6007 ac_cv_type_long_long_int=yes
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <limits.h>
6012 #ifndef LLONG_MAX
6013 # define HALF \
6014 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6015 # define LLONG_MAX (HALF - 1 + HALF)
6016 #endif
6018 main ()
6020 long long int n = 1;
6021 int i;
6022 for (i = 0; ; i++)
6024 long long int m = n << i;
6025 if (m >> i != n)
6026 return 1;
6027 if (LLONG_MAX / 2 < m)
6028 break;
6030 return 0;
6032 return 0;
6034 _ACEOF
6035 if ac_fn_c_try_run "$LINENO"; then :
6036 ac_cv_type_long_long_int=yes
6037 else
6038 ac_cv_type_long_long_int=no
6040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6041 conftest.$ac_objext conftest.beam conftest.$ac_ext
6044 else
6045 ac_cv_type_long_long_int=no
6047 rm -f core conftest.err conftest.$ac_objext \
6048 conftest$ac_exeext conftest.$ac_ext
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6051 $as_echo "$ac_cv_type_long_long_int" >&6; }
6052 if test $ac_cv_type_long_long_int = yes; then
6054 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6060 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6061 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6063 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6065 else
6066 test $ac_cv_type_long_long_int = yes \
6067 && ac_type='long long int' \
6068 || ac_type='long int'
6070 cat >>confdefs.h <<_ACEOF
6071 #define intmax_t $ac_type
6072 _ACEOF
6078 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6079 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6081 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6083 else
6084 for ac_type in 'int' 'long int' 'long long int'; do
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086 /* end confdefs.h. */
6087 $ac_includes_default
6089 main ()
6091 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6092 test_array [0] = 0
6095 return 0;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"; then :
6100 cat >>confdefs.h <<_ACEOF
6101 #define intptr_t $ac_type
6102 _ACEOF
6104 ac_type=
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 test -z "$ac_type" && break
6108 done
6112 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6113 case $ac_cv_c_uint8_t in #(
6114 no|yes) ;; #(
6117 $as_echo "#define _UINT8_T 1" >>confdefs.h
6120 cat >>confdefs.h <<_ACEOF
6121 #define uint8_t $ac_cv_c_uint8_t
6122 _ACEOF
6124 esac
6126 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6127 case $ac_cv_c_uint16_t in #(
6128 no|yes) ;; #(
6132 cat >>confdefs.h <<_ACEOF
6133 #define uint16_t $ac_cv_c_uint16_t
6134 _ACEOF
6136 esac
6138 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6139 case $ac_cv_c_uint32_t in #(
6140 no|yes) ;; #(
6143 $as_echo "#define _UINT32_T 1" >>confdefs.h
6146 cat >>confdefs.h <<_ACEOF
6147 #define uint32_t $ac_cv_c_uint32_t
6148 _ACEOF
6150 esac
6152 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6153 case $ac_cv_c_uint64_t in #(
6154 no|yes) ;; #(
6157 $as_echo "#define _UINT64_T 1" >>confdefs.h
6160 cat >>confdefs.h <<_ACEOF
6161 #define uint64_t $ac_cv_c_uint64_t
6162 _ACEOF
6164 esac
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6168 $as_echo_n "checking for unsigned long long int... " >&6; }
6169 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6175 /* For now, do not test the preprocessor; as of 2007 there are too many
6176 implementations with broken preprocessors. Perhaps this can
6177 be revisited in 2012. In the meantime, code should not expect
6178 #if to work with literals wider than 32 bits. */
6179 /* Test literals. */
6180 long long int ll = 9223372036854775807ll;
6181 long long int nll = -9223372036854775807LL;
6182 unsigned long long int ull = 18446744073709551615ULL;
6183 /* Test constant expressions. */
6184 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6185 ? 1 : -1)];
6186 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6187 ? 1 : -1)];
6188 int i = 63;
6190 main ()
6192 /* Test availability of runtime routines for shift and division. */
6193 long long int llmax = 9223372036854775807ll;
6194 unsigned long long int ullmax = 18446744073709551615ull;
6195 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6196 | (llmax / ll) | (llmax % ll)
6197 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6198 | (ullmax / ull) | (ullmax % ull));
6200 return 0;
6203 _ACEOF
6204 if ac_fn_c_try_link "$LINENO"; then :
6205 ac_cv_type_unsigned_long_long_int=yes
6206 else
6207 ac_cv_type_unsigned_long_long_int=no
6209 rm -f core conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6213 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6214 if test $ac_cv_type_unsigned_long_long_int = yes; then
6216 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6222 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6223 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6225 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6227 else
6228 test $ac_cv_type_unsigned_long_long_int = yes \
6229 && ac_type='unsigned long long int' \
6230 || ac_type='unsigned long int'
6232 cat >>confdefs.h <<_ACEOF
6233 #define uintmax_t $ac_type
6234 _ACEOF
6240 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6241 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6243 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6245 else
6246 for ac_type in 'unsigned int' 'unsigned long int' \
6247 'unsigned long long int'; do
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 $ac_includes_default
6252 main ()
6254 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6255 test_array [0] = 0
6258 return 0;
6260 _ACEOF
6261 if ac_fn_c_try_compile "$LINENO"; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define uintptr_t $ac_type
6265 _ACEOF
6267 ac_type=
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 test -z "$ac_type" && break
6271 done
6288 # ---------------------
6289 # Warnings and checking
6290 # ---------------------
6292 # Check $CC warning features (if it's GCC).
6293 # We want to use -pedantic, but we don't want warnings about
6294 # * 'long long'
6295 # * variadic macros
6296 # * overlong strings
6297 # * C++11 narrowing conversions in { }
6298 # So, we only use -pedantic if we can disable those warnings.
6300 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6301 # Check whether --enable-build-format-warnings was given.
6302 if test "${enable_build_format_warnings+set}" = set; then :
6303 enableval=$enable_build_format_warnings;
6304 else
6305 enable_build_format_warnings=yes
6308 if test $enable_build_format_warnings = no; then :
6309 wf_opt=-Wno-format
6310 else
6311 wf_opt=
6313 loose_warn=
6314 save_CFLAGS="$CFLAGS"
6315 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6316 # Do the check with the no- prefix removed since gcc silently
6317 # accepts any -Wno-* option on purpose
6318 case $real_option in
6319 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6320 *) option=$real_option ;;
6321 esac
6322 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6325 $as_echo_n "checking whether $CC supports $option... " >&6; }
6326 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 CFLAGS="$option"
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6334 main ()
6338 return 0;
6340 _ACEOF
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342 eval "$as_acx_Woption=yes"
6343 else
6344 eval "$as_acx_Woption=no"
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 eval ac_res=\$$as_acx_Woption
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6353 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6355 done
6356 CFLAGS="$save_CFLAGS"
6358 c_loose_warn=
6359 save_CFLAGS="$CFLAGS"
6360 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6361 # Do the check with the no- prefix removed since gcc silently
6362 # accepts any -Wno-* option on purpose
6363 case $real_option in
6364 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6365 *) option=$real_option ;;
6366 esac
6367 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6370 $as_echo_n "checking whether $CC supports $option... " >&6; }
6371 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 CFLAGS="$option"
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6379 main ()
6383 return 0;
6385 _ACEOF
6386 if ac_fn_c_try_compile "$LINENO"; then :
6387 eval "$as_acx_Woption=yes"
6388 else
6389 eval "$as_acx_Woption=no"
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 eval ac_res=\$$as_acx_Woption
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6396 $as_echo "$ac_res" >&6; }
6397 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6398 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6400 done
6401 CFLAGS="$save_CFLAGS"
6403 strict_warn=
6404 save_CFLAGS="$CFLAGS"
6405 for real_option in -Wmissing-format-attribute; do
6406 # Do the check with the no- prefix removed since gcc silently
6407 # accepts any -Wno-* option on purpose
6408 case $real_option in
6409 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6410 *) option=$real_option ;;
6411 esac
6412 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6415 $as_echo_n "checking whether $CC supports $option... " >&6; }
6416 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 CFLAGS="$option"
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6424 main ()
6428 return 0;
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 eval "$as_acx_Woption=yes"
6433 else
6434 eval "$as_acx_Woption=no"
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 eval ac_res=\$$as_acx_Woption
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6441 $as_echo "$ac_res" >&6; }
6442 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6443 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6445 done
6446 CFLAGS="$save_CFLAGS"
6448 c_strict_warn=
6449 save_CFLAGS="$CFLAGS"
6450 for real_option in -Wold-style-definition -Wc++-compat; do
6451 # Do the check with the no- prefix removed since gcc silently
6452 # accepts any -Wno-* option on purpose
6453 case $real_option in
6454 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6455 *) option=$real_option ;;
6456 esac
6457 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6460 $as_echo_n "checking whether $CC supports $option... " >&6; }
6461 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 CFLAGS="$option"
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6469 main ()
6473 return 0;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 eval "$as_acx_Woption=yes"
6478 else
6479 eval "$as_acx_Woption=no"
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 eval ac_res=\$$as_acx_Woption
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6486 $as_echo "$ac_res" >&6; }
6487 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6488 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6490 done
6491 CFLAGS="$save_CFLAGS"
6493 # Do the check with the no- prefix removed from the warning options
6494 # since gcc silently accepts any -Wno-* option on purpose
6495 if test "$GCC" = yes; then :
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6497 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6498 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
6500 else
6501 save_CFLAGS="$CFLAGS"
6502 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6507 main ()
6511 return 0;
6513 _ACEOF
6514 if ac_fn_c_try_compile "$LINENO"; then :
6515 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6516 else
6517 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6520 CFLAGS="$save_CFLAGS"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6523 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6524 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6525 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6530 # Check whether --enable-werror-always was given.
6531 if test "${enable_werror_always+set}" = set; then :
6532 enableval=$enable_werror_always;
6533 else
6534 enable_werror_always=no
6537 if test $enable_werror_always = yes; then :
6538 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6543 # The above macros do nothing if the compiler is not GCC. However, the
6544 # Makefile has more goo to add other flags, so these variables are used
6545 # to enable warnings only for GCC.
6546 warn_cflags=
6547 warn_cxxflags=
6548 if test "x$GCC" = "xyes"; then
6549 warn_cflags='$(GCC_WARN_CFLAGS)'
6550 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6555 # Disable exceptions and RTTI if building with g++
6556 noexception_flags=
6557 save_CFLAGS="$CFLAGS"
6558 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6559 # Do the check with the no- prefix removed since gcc silently
6560 # accepts any -Wno-* option on purpose
6561 case $real_option in
6562 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6563 *) option=$real_option ;;
6564 esac
6565 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6568 $as_echo_n "checking whether $CC supports $option... " >&6; }
6569 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 CFLAGS="$option"
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6577 main ()
6581 return 0;
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 eval "$as_acx_Woption=yes"
6586 else
6587 eval "$as_acx_Woption=no"
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 eval ac_res=\$$as_acx_Woption
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6594 $as_echo "$ac_res" >&6; }
6595 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6596 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6598 done
6599 CFLAGS="$save_CFLAGS"
6602 # Enable expensive internal checks
6603 is_release=
6604 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6605 is_release=yes
6608 # Check whether --enable-checking was given.
6609 if test "${enable_checking+set}" = set; then :
6610 enableval=$enable_checking; ac_checking_flags="${enableval}"
6611 else
6613 # Determine the default checks.
6614 if test x$is_release = x ; then
6615 ac_checking_flags=yes
6616 else
6617 ac_checking_flags=release
6621 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6622 for check in release $ac_checking_flags
6624 case $check in
6625 # these set all the flags to specific states
6626 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6627 ac_fold_checking= ; ac_gc_checking=1 ;
6628 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6629 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6630 ac_tree_checking=1 ; ac_valgrind_checking= ;
6631 ac_types_checking=1 ;;
6632 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6633 ac_fold_checking= ; ac_gc_checking= ;
6634 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6635 ac_rtlflag_checking= ; ac_runtime_checking= ;
6636 ac_tree_checking= ; ac_valgrind_checking= ;
6637 ac_types_checking= ;;
6638 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6639 ac_fold_checking=1 ; ac_gc_checking=1 ;
6640 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6641 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6642 ac_tree_checking=1 ; ac_valgrind_checking= ;
6643 ac_types_checking=1 ;;
6644 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6645 ac_fold_checking= ; ac_gc_checking= ;
6646 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6647 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6648 ac_tree_checking= ; ac_valgrind_checking= ;
6649 ac_types_checking= ;;
6650 # these enable particular checks
6651 assert) ac_assert_checking=1 ;;
6652 df) ac_df_checking=1 ;;
6653 fold) ac_fold_checking=1 ;;
6654 gc) ac_gc_checking=1 ;;
6655 gcac) ac_gc_always_collect=1 ;;
6656 gimple) ac_gimple_checking=1 ;;
6657 misc) ac_checking=1 ;;
6658 rtl) ac_rtl_checking=1 ;;
6659 rtlflag) ac_rtlflag_checking=1 ;;
6660 runtime) ac_runtime_checking=1 ;;
6661 tree) ac_tree_checking=1 ;;
6662 types) ac_types_checking=1 ;;
6663 valgrind) ac_valgrind_checking=1 ;;
6664 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6665 esac
6666 done
6667 IFS="$ac_save_IFS"
6669 nocommon_flag=""
6670 if test x$ac_checking != x ; then
6672 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6674 nocommon_flag=-fno-common
6677 if test x$ac_df_checking != x ; then
6679 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6682 if test x$ac_assert_checking != x ; then
6684 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6687 if test x$ac_gimple_checking != x ; then
6689 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6693 if test x$ac_runtime_checking != x ; then
6695 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6698 if test x$ac_tree_checking != x ; then
6700 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6702 TREEBROWSER=tree-browser.o
6703 TREECHECKING=yes
6705 if test x$ac_types_checking != x ; then
6707 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6712 if test x$ac_rtl_checking != x ; then
6714 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6717 if test x$ac_rtlflag_checking != x ; then
6719 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6722 if test x$ac_gc_checking != x ; then
6724 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6727 if test x$ac_gc_always_collect != x ; then
6729 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6732 if test x$ac_fold_checking != x ; then
6734 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6737 valgrind_path_defines=
6738 valgrind_command=
6740 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6741 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6742 have_valgrind_h=yes
6743 else
6744 have_valgrind_h=no
6749 if test x$ac_valgrind_checking != x ; then
6750 # It is certainly possible that there's valgrind but no valgrind.h.
6751 # GCC relies on making annotations so we must have both.
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6753 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <valgrind/memcheck.h>
6757 #ifndef VALGRIND_DISCARD
6758 #error VALGRIND_DISCARD not defined
6759 #endif
6760 _ACEOF
6761 if ac_fn_c_try_cpp "$LINENO"; then :
6762 gcc_cv_header_valgrind_memcheck_h=yes
6763 else
6764 gcc_cv_header_valgrind_memcheck_h=no
6766 rm -f conftest.err conftest.$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6768 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6770 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <memcheck.h>
6774 #ifndef VALGRIND_DISCARD
6775 #error VALGRIND_DISCARD not defined
6776 #endif
6777 _ACEOF
6778 if ac_fn_c_try_cpp "$LINENO"; then :
6779 gcc_cv_header_memcheck_h=yes
6780 else
6781 gcc_cv_header_memcheck_h=no
6783 rm -f conftest.err conftest.$ac_ext
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6785 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6787 # Prepare PATH_SEPARATOR.
6788 # The user is always right.
6789 if test "${PATH_SEPARATOR+set}" != set; then
6790 echo "#! /bin/sh" >conf$$.sh
6791 echo "exit 0" >>conf$$.sh
6792 chmod +x conf$$.sh
6793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6794 PATH_SEPARATOR=';'
6795 else
6796 PATH_SEPARATOR=:
6798 rm -f conf$$.sh
6801 # Find out how to test for executable files. Don't use a zero-byte file,
6802 # as systems may use methods other than mode bits to determine executability.
6803 cat >conf$$.file <<_ASEOF
6804 #! /bin/sh
6805 exit 0
6806 _ASEOF
6807 chmod +x conf$$.file
6808 if test -x conf$$.file >/dev/null 2>&1; then
6809 ac_executable_p="test -x"
6810 else
6811 ac_executable_p="test -f"
6813 rm -f conf$$.file
6815 # Extract the first word of "valgrind", so it can be a program name with args.
6816 set dummy valgrind; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 case "$valgrind_path" in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6827 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6828 for ac_dir in $PATH; do
6829 IFS="$ac_save_IFS"
6830 test -z "$ac_dir" && ac_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6833 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6834 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6835 break 2
6838 done
6839 done
6840 IFS="$ac_save_IFS"
6842 esac
6844 valgrind_path="$ac_cv_path_valgrind_path"
6845 if test -n "$valgrind_path"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6847 $as_echo "$valgrind_path" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6853 if test "x$valgrind_path" = "x" \
6854 || (test $have_valgrind_h = no \
6855 && test $gcc_cv_header_memcheck_h = no \
6856 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6857 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6859 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6860 valgrind_command="$valgrind_path -q"
6862 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6864 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6866 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6869 if test $gcc_cv_header_memcheck_h = yes; then
6871 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6878 # Enable code coverage collection
6879 # Check whether --enable-coverage was given.
6880 if test "${enable_coverage+set}" = set; then :
6881 enableval=$enable_coverage; case "${enableval}" in
6882 yes|noopt)
6883 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6885 opt)
6886 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6889 # a.k.a. --disable-coverage
6890 coverage_flags=""
6893 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6895 esac
6896 else
6897 coverage_flags=""
6902 # Check whether --enable-gather-detailed-mem-stats was given.
6903 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6904 enableval=$enable_gather_detailed_mem_stats;
6905 else
6906 enable_gather_detailed_mem_stats=no
6909 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6911 cat >>confdefs.h <<_ACEOF
6912 #define GATHER_STATISTICS $gather_stats
6913 _ACEOF
6916 # -------------------------------
6917 # Miscenalleous configure options
6918 # -------------------------------
6920 # With stabs
6922 # Check whether --with-stabs was given.
6923 if test "${with_stabs+set}" = set; then :
6924 withval=$with_stabs; stabs="$with_stabs"
6925 else
6926 stabs=no
6930 # Determine whether or not multilibs are enabled.
6931 # Check whether --enable-multilib was given.
6932 if test "${enable_multilib+set}" = set; then :
6933 enableval=$enable_multilib;
6934 else
6935 enable_multilib=yes
6940 # Determine whether or not multiarch is enabled.
6941 # Check whether --enable-multiarch was given.
6942 if test "${enable_multiarch+set}" = set; then :
6943 enableval=$enable_multiarch; case "${enableval}" in
6944 yes|no|auto) enable_multiarch=$enableval;;
6945 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6946 esac
6947 else
6948 enable_multiarch=auto
6951 if test x${enable_multiarch} = xauto; then
6952 if test x${with_native_system_header_dir} != x; then
6953 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6954 enable_multiarch=no
6956 if test x$host != x$target && test "x$with_sysroot" = x; then
6957 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6958 enable_multiarch=no
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6962 $as_echo_n "checking for multiarch configuration... " >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6965 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6967 # needed for setting the multiarch name for soft-float/hard-float ABIs
6971 # Enable __cxa_atexit for C++.
6972 # Check whether --enable-__cxa_atexit was given.
6973 if test "${enable___cxa_atexit+set}" = set; then :
6974 enableval=$enable___cxa_atexit;
6978 # Enable C extension for decimal float if target supports it.
6980 # Check whether --enable-decimal-float was given.
6981 if test "${enable_decimal_float+set}" = set; then :
6982 enableval=$enable_decimal_float;
6983 case $enable_decimal_float in
6984 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6985 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6986 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6987 esac
6989 else
6991 case $target in
6992 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6993 i?86*-*-gnu* | \
6994 i?86*-*-mingw* | x86_64*-*-mingw* | \
6995 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6996 enable_decimal_float=yes
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7000 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7001 enable_decimal_float=no
7003 esac
7008 # x86's use BID format instead of DPD
7009 case x$enable_decimal_float in
7010 xyes)
7011 case $target in
7012 i?86*-*-* | x86_64*-*-*)
7013 enable_decimal_float=bid
7016 enable_decimal_float=dpd
7018 esac
7019 default_decimal_float=$enable_decimal_float
7021 xno)
7022 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7023 # dependency on libdecnumber.
7024 default_decimal_float=dpd
7026 esac
7031 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7033 cat >>confdefs.h <<_ACEOF
7034 #define ENABLE_DECIMAL_FLOAT $dfp
7035 _ACEOF
7038 # Use default_decimal_float for dependency.
7039 enable_decimal_float=$default_decimal_float
7041 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7043 cat >>confdefs.h <<_ACEOF
7044 #define ENABLE_DECIMAL_BID_FORMAT $bid
7045 _ACEOF
7048 # Enable C extension for fixed-point arithmetic.
7049 # Check whether --enable-fixed-point was given.
7050 if test "${enable_fixed_point+set}" = set; then :
7051 enableval=$enable_fixed_point;
7052 else
7054 case $target in
7055 arm*)
7056 enable_fixed_point=yes
7059 mips*-*-*)
7060 enable_fixed_point=yes
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7064 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7065 enable_fixed_point=no
7067 esac
7073 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7075 cat >>confdefs.h <<_ACEOF
7076 #define ENABLE_FIXED_POINT $fixedpoint
7077 _ACEOF
7080 # Enable threads
7081 # Pass with no value to take the default
7082 # Pass with a value to specify a thread package
7083 # Check whether --enable-threads was given.
7084 if test "${enable_threads+set}" = set; then :
7085 enableval=$enable_threads;
7086 else
7087 enable_threads=''
7091 # Check whether --enable-tls was given.
7092 if test "${enable_tls+set}" = set; then :
7093 enableval=$enable_tls;
7094 case $enable_tls in
7095 yes | no) ;;
7096 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7097 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7098 esac
7100 else
7101 enable_tls=''
7105 # Check whether --enable-objc-gc was given.
7106 if test "${enable_objc_gc+set}" = set; then :
7107 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7108 objc_boehm_gc=''
7109 else
7110 objc_boehm_gc=1
7112 else
7113 objc_boehm_gc=''
7118 # Check whether --with-upc-pts was given.
7119 if test "${with_upc_pts+set}" = set; then :
7120 withval=$with_upc_pts;
7121 case "$withval" in
7122 packed|struct) upc_pts_rep="$withval" ;;
7123 *) as_fn_error "$withval is an invalid option to --with-upc-pts" "$LINENO" 5
7125 esac
7127 else
7128 upc_pts_rep="packed"
7133 # Perl is required for checking pts representation
7134 # Extract the first word of "perl", so it can be a program name with args.
7135 set dummy perl; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_PERL+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$PERL"; then
7142 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_PERL="perl"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7161 PERL=$ac_cv_prog_PERL
7162 if test -n "$PERL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7164 $as_echo "$PERL" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7173 # Check whether --with-upc-pts-vaddr-order was given.
7174 if test "${with_upc_pts_vaddr_order+set}" = set; then :
7175 withval=$with_upc_pts_vaddr_order;
7176 upc_vaddr_order="$withval"
7177 case "$upc_vaddr_order" in
7178 first|last) ;;
7179 *) as_fn_error "$withval is an invalid option to --with-upc-pts-vaddr-order" "$LINENO" 5 ;;
7180 esac
7182 else
7183 upc_vaddr_order="first"
7188 # Check whether --with-upc-pts-packed-bits was given.
7189 if test "${with_upc_pts_packed_bits+set}" = set; then :
7190 withval=$with_upc_pts_packed_bits;
7191 if test x"$upc_pts_rep" = x"packed"; then
7192 UPC_PTS_PHASE_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7193 print $1 if ($1+$2+$3 == 64) && $1>=1;'`
7194 UPC_PTS_THREAD_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7195 print $2 if ($1+$2+$3 == 64) && $2>=1;'`
7196 UPC_PTS_VADDR_SIZE=`echo "$withval" | $PERL -ne 'm/^(\d+),(\d+),(\d+)$/;
7197 print $3 if ($1+$2+$3 == 64) && $3>=20;'`
7198 if test -z "$UPC_PTS_PHASE_SIZE" \
7199 || test -z "$UPC_PTS_THREAD_SIZE" \
7200 || test -z "$UPC_PTS_VADDR_SIZE" ; then
7201 as_fn_error "--with-upc-pts-packed-bits=phase,thread,vaddr requires
7202 phase+thread+vaddr=64 and phase >= 1 and thread >= 1 and vaddr >= 20" "$LINENO" 5
7204 else
7205 as_fn_error "--with-upc-pts-packed-bits is only supported for
7206 the packed UPC pointer-to-shared representation" "$LINENO" 5
7209 else
7211 # GNU UPC packed pointer representation defaults.
7212 case "$target" in
7213 i35686* )
7214 UPC_PTS_PHASE_SIZE=20
7215 UPC_PTS_THREAD_SIZE=12
7216 UPC_PTS_VADDR_SIZE=32
7219 UPC_PTS_PHASE_SIZE=20
7220 UPC_PTS_THREAD_SIZE=10
7221 UPC_PTS_VADDR_SIZE=34
7222 esac
7227 # Check whether --enable-upc-link-script was given.
7228 if test "${enable_upc_link_script+set}" = set; then :
7229 enableval=$enable_upc_link_script;
7230 case $enableval in
7231 yes | no) ;;
7233 as_fn_error "--enable-upc-link-script accepts only yes or no." "$LINENO" 5
7234 esac
7236 else
7237 enable_upc_link_script=no
7242 # Process UPC-specific configuration options.
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared representation" >&5
7245 $as_echo_n "checking for UPC pointer-to-shared representation... " >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_pts_rep" >&5
7247 $as_echo "$upc_pts_rep" >&6; }
7248 case "$upc_pts_rep" in
7249 packed)
7251 $as_echo "#define HAVE_UPC_PTS_PACKED_REP 1" >>confdefs.h
7254 struct)
7256 $as_echo "#define HAVE_UPC_PTS_STRUCT_REP 1" >>confdefs.h
7259 esac
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC pointer-to-shared address field position" >&5
7261 $as_echo_n "checking for UPC pointer-to-shared address field position... " >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $upc_vaddr_order" >&5
7263 $as_echo "$upc_vaddr_order" >&6; }
7264 if test x"$upc_vaddr_order" = x"first"; then
7266 $as_echo "#define HAVE_UPC_PTS_VADDR_FIRST 1" >>confdefs.h
7269 if test x"$upc_pts_rep" = x"packed"; then
7271 cat >>confdefs.h <<_ACEOF
7272 #define UPC_PTS_PHASE_SIZE $UPC_PTS_PHASE_SIZE
7273 _ACEOF
7276 cat >>confdefs.h <<_ACEOF
7277 #define UPC_PTS_THREAD_SIZE $UPC_PTS_THREAD_SIZE
7278 _ACEOF
7281 cat >>confdefs.h <<_ACEOF
7282 #define UPC_PTS_VADDR_SIZE $UPC_PTS_VADDR_SIZE
7283 _ACEOF
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for packed UPC pointer-to-shared layout" >&5
7286 $as_echo_n "checking for packed UPC pointer-to-shared layout... " >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7288 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&5
7289 $as_echo "\"phase=${UPC_PTS_PHASE_SIZE},thread=${UPC_PTS_THREAD_SIZE},
7290 vaddr=${UPC_PTS_VADDR_SIZE}\"" >&6; }
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPC link script support" >&5
7293 $as_echo_n "checking for UPC link script support... " >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_upc_link_script" >&5
7295 $as_echo "$enable_upc_link_script" >&6; }
7296 if test "$enable_upc_link_script" = yes; then
7298 $as_echo "#define HAVE_UPC_LINK_SCRIPT 1" >>confdefs.h
7303 # Check whether --with-dwarf2 was given.
7304 if test "${with_dwarf2+set}" = set; then :
7305 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7306 else
7307 dwarf2=no
7311 # Check whether --enable-shared was given.
7312 if test "${enable_shared+set}" = set; then :
7313 enableval=$enable_shared;
7314 case $enable_shared in
7315 yes | no) ;;
7317 enable_shared=no
7318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7319 for pkg in $enableval; do
7320 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7321 enable_shared=yes
7323 done
7324 IFS="$ac_save_ifs"
7326 esac
7328 else
7329 enable_shared=yes
7335 # Check whether --with-native-system-header-dir was given.
7336 if test "${with_native_system_header_dir+set}" = set; then :
7337 withval=$with_native_system_header_dir;
7338 case ${with_native_system_header_dir} in
7339 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7340 /* | [A-Za-z]:[\\/]*) ;;
7341 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7342 esac
7343 configured_native_system_header_dir="${withval}"
7345 else
7346 configured_native_system_header_dir=
7351 # Check whether --with-build-sysroot was given.
7352 if test "${with_build_sysroot+set}" = set; then :
7353 withval=$with_build_sysroot; if test x"$withval" != x ; then
7354 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7356 else
7357 SYSROOT_CFLAGS_FOR_TARGET=
7362 if test "x$prefix" = xNONE; then
7363 test_prefix=/usr/local
7364 else
7365 test_prefix=$prefix
7367 if test "x$exec_prefix" = xNONE; then
7368 test_exec_prefix=$test_prefix
7369 else
7370 test_exec_prefix=$exec_prefix
7374 # Check whether --with-sysroot was given.
7375 if test "${with_sysroot+set}" = set; then :
7376 withval=$with_sysroot;
7377 case ${with_sysroot} in
7378 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7379 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7380 esac
7382 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7383 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7385 case ${TARGET_SYSTEM_ROOT} in
7386 "${test_prefix}"|"${test_prefix}/"*|\
7387 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7388 '${prefix}'|'${prefix}/'*|\
7389 '${exec_prefix}'|'${exec_prefix}/'*)
7390 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7391 TARGET_SYSTEM_ROOT_DEFINE="$t"
7393 esac
7395 else
7397 TARGET_SYSTEM_ROOT=
7398 TARGET_SYSTEM_ROOT_DEFINE=
7399 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7408 # Check whether --with-specs was given.
7409 if test "${with_specs+set}" = set; then :
7410 withval=$with_specs; CONFIGURE_SPECS=$withval
7411 else
7412 CONFIGURE_SPECS=
7420 # Check whether --with-pkgversion was given.
7421 if test "${with_pkgversion+set}" = set; then :
7422 withval=$with_pkgversion; case "$withval" in
7423 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7424 no) PKGVERSION= ;;
7425 *) PKGVERSION="($withval) " ;;
7426 esac
7427 else
7428 PKGVERSION="(GCC) "
7436 # Check whether --with-bugurl was given.
7437 if test "${with_bugurl+set}" = set; then :
7438 withval=$with_bugurl; case "$withval" in
7439 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7440 no) BUGURL=
7442 *) BUGURL="$withval"
7444 esac
7445 else
7446 BUGURL="http://gccupc.org/bugs"
7450 case ${BUGURL} in
7452 REPORT_BUGS_TO=
7453 REPORT_BUGS_TEXI=
7456 REPORT_BUGS_TO="<$BUGURL>"
7457 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7459 esac;
7464 # Sanity check enable_languages in case someone does not run the toplevel
7465 # configure # script.
7466 # Check whether --enable-languages was given.
7467 if test "${enable_languages+set}" = set; then :
7468 enableval=$enable_languages; case ,${enable_languages}, in
7469 ,,|,yes,)
7470 # go safe -- we cannot be much sure without the toplevel
7471 # configure's
7472 # analysis of which target libs are present and usable
7473 enable_languages=c
7475 *,all,*)
7476 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7478 *,c,*)
7481 enable_languages=c,${enable_languages}
7483 esac
7484 else
7485 enable_languages=c
7490 # Check whether --with-multilib-list was given.
7491 if test "${with_multilib_list+set}" = set; then :
7492 withval=$with_multilib_list; :
7493 else
7494 with_multilib_list=default
7498 # -------------------------
7499 # Checks for other programs
7500 # -------------------------
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7504 set x ${MAKE-make}
7505 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7506 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 cat >conftest.make <<\_ACEOF
7510 SHELL = /bin/sh
7511 all:
7512 @echo '@@@%%%=$(MAKE)=@@@%%%'
7513 _ACEOF
7514 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7516 *@@@%%%=?*=@@@%%%*)
7517 eval ac_cv_prog_make_${ac_make}_set=yes;;
7519 eval ac_cv_prog_make_${ac_make}_set=no;;
7520 esac
7521 rm -f conftest.make
7523 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7525 $as_echo "yes" >&6; }
7526 SET_MAKE=
7527 else
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 $as_echo "no" >&6; }
7530 SET_MAKE="MAKE=${MAKE-make}"
7534 # Find some useful tools
7535 for ac_prog in gawk mawk nawk awk
7537 # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_AWK+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$AWK"; then
7545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_AWK="$ac_prog"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7558 done
7559 done
7560 IFS=$as_save_IFS
7564 AWK=$ac_cv_prog_AWK
7565 if test -n "$AWK"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7567 $as_echo "$AWK" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7574 test -n "$AWK" && break
7575 done
7577 # We need awk to create options.c and options.h.
7578 # Bail out if it's missing.
7579 case ${AWK} in
7580 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7581 esac
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7584 $as_echo_n "checking whether ln -s works... " >&6; }
7585 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 rm -f conftestdata_t
7589 echo >conftestdata_f
7590 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7591 then
7592 gcc_cv_prog_LN_S="ln -s"
7593 else
7594 if ln conftestdata_f conftestdata_t 2>/dev/null
7595 then
7596 gcc_cv_prog_LN_S=ln
7597 else
7598 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7599 then
7600 gcc_cv_prog_LN_S="cp -p"
7601 else
7602 gcc_cv_prog_LN_S=cp
7606 rm -f conftestdata_f conftestdata_t
7609 LN_S="$gcc_cv_prog_LN_S"
7610 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7612 $as_echo "yes" >&6; }
7613 else
7614 if test "$gcc_cv_prog_LN_S" = "ln"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7616 $as_echo "no, using ln" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7619 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7624 $as_echo_n "checking whether ln works... " >&6; }
7625 if test "${acx_cv_prog_LN+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 rm -f conftestdata_t
7629 echo >conftestdata_f
7630 if ln conftestdata_f conftestdata_t 2>/dev/null
7631 then
7632 acx_cv_prog_LN=ln
7633 else
7634 acx_cv_prog_LN=no
7636 rm -f conftestdata_f conftestdata_t
7639 if test $acx_cv_prog_LN = no; then
7640 LN="$LN_S"
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7642 $as_echo "no, using $LN" >&6; }
7643 else
7644 LN="$acx_cv_prog_LN"
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7646 $as_echo "yes" >&6; }
7649 if test -n "$ac_tool_prefix"; then
7650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 if test -n "$RANLIB"; then
7658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7677 RANLIB=$ac_cv_prog_RANLIB
7678 if test -n "$RANLIB"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7680 $as_echo "$RANLIB" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7688 if test -z "$ac_cv_prog_RANLIB"; then
7689 ac_ct_RANLIB=$RANLIB
7690 # Extract the first word of "ranlib", so it can be a program name with args.
7691 set dummy ranlib; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$ac_ct_RANLIB"; then
7698 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 ac_cv_prog_ac_ct_RANLIB="ranlib"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7711 done
7712 done
7713 IFS=$as_save_IFS
7717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7718 if test -n "$ac_ct_RANLIB"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7720 $as_echo "$ac_ct_RANLIB" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7726 if test "x$ac_ct_RANLIB" = x; then
7727 RANLIB=":"
7728 else
7729 case $cross_compiling:$ac_tool_warned in
7730 yes:)
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned=yes ;;
7734 esac
7735 RANLIB=$ac_ct_RANLIB
7737 else
7738 RANLIB="$ac_cv_prog_RANLIB"
7741 ranlib_flags=""
7744 # Find a good install program. We prefer a C program (faster),
7745 # so one script is as good as another. But avoid the broken or
7746 # incompatible versions:
7747 # SysV /etc/install, /usr/sbin/install
7748 # SunOS /usr/etc/install
7749 # IRIX /sbin/install
7750 # AIX /bin/install
7751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7753 # ./install, which can be erroneously created by make from ./install.sh.
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7755 $as_echo_n "checking for a BSD compatible install... " >&6; }
7756 if test -z "$INSTALL"; then
7757 if test "${ac_cv_path_install+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7761 for ac_dir in $PATH; do
7762 # Account for people who put trailing slashes in PATH elements.
7763 case "$ac_dir/" in
7764 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7766 # OSF1 and SCO ODT 3.0 have their own names for install.
7767 for ac_prog in ginstall scoinst install; do
7768 if test -f $ac_dir/$ac_prog; then
7769 if test $ac_prog = install &&
7770 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7771 # AIX install. It has an incompatible calling convention.
7772 # OSF/1 installbsd also uses dspmsg, but is usable.
7774 else
7775 ac_cv_path_install="$ac_dir/$ac_prog -c"
7776 break 2
7779 done
7781 esac
7782 done
7783 IFS="$ac_save_IFS"
7786 if test "${ac_cv_path_install+set}" = set; then
7787 INSTALL="$ac_cv_path_install"
7788 else
7789 # As a last resort, use the slow shell script. We don't cache a
7790 # path for INSTALL within a source directory, because that will
7791 # break other packages using the cache if that directory is
7792 # removed, or if the path is relative.
7793 INSTALL="$ac_install_sh"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7797 $as_echo "$INSTALL" >&6; }
7799 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7800 # It thinks the first close brace ends the variable substitution.
7801 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7803 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7806 # See if cmp has --ignore-initial.
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7808 $as_echo_n "checking for cmp's capabilities... " >&6; }
7809 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 echo abfoo >t1
7813 echo cdfoo >t2
7814 gcc_cv_prog_cmp_skip=slowcompare
7815 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7816 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7818 else
7819 gcc_cv_prog_cmp_skip=gnucompare
7822 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7823 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7824 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7826 else
7827 gcc_cv_prog_cmp_skip=fastcompare
7831 rm t1 t2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7835 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7836 make_compare_target=$gcc_cv_prog_cmp_skip
7840 # See if we have the mktemp command.
7841 # Extract the first word of "mktemp", so it can be a program name with args.
7842 set dummy mktemp; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 if test -n "$have_mktemp_command"; then
7849 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7858 ac_cv_prog_have_mktemp_command="yes"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7864 IFS=$as_save_IFS
7866 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7869 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7870 if test -n "$have_mktemp_command"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7872 $as_echo "$have_mktemp_command" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7880 # See if makeinfo has been installed and is modern enough
7881 # that we can use it.
7883 # Extract the first word of "makeinfo", so it can be a program name with args.
7884 set dummy makeinfo; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 if test -n "$MAKEINFO"; then
7891 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7892 else
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894 for as_dir in $PATH
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_MAKEINFO="makeinfo"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7904 done
7905 done
7906 IFS=$as_save_IFS
7910 MAKEINFO=$ac_cv_prog_MAKEINFO
7911 if test -n "$MAKEINFO"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7913 $as_echo "$MAKEINFO" >&6; }
7914 else
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7920 if test -n "$MAKEINFO"; then
7921 # Found it, now check the version.
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7923 $as_echo_n "checking for modern makeinfo... " >&6; }
7924 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7928 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7930 case $ac_prog_version in
7931 '') gcc_cv_prog_makeinfo_modern=no;;
7932 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7933 *) gcc_cv_prog_makeinfo_modern=no;;
7934 esac
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7938 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7939 else
7940 gcc_cv_prog_makeinfo_modern=no
7942 if test $gcc_cv_prog_makeinfo_modern = no; then
7943 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7946 if test $gcc_cv_prog_makeinfo_modern = no; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7948 *** Makeinfo is missing or too old.
7949 *** Info documentation will not be built." >&5
7950 $as_echo "$as_me: WARNING:
7951 *** Makeinfo is missing or too old.
7952 *** Info documentation will not be built." >&2;}
7953 BUILD_INFO=
7954 else
7955 BUILD_INFO=info
7959 # Is pod2man recent enough to regenerate manpages?
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7961 $as_echo_n "checking for recent Pod::Man... " >&6; }
7962 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7964 $as_echo "yes" >&6; }
7965 GENERATED_MANPAGES=generated-manpages
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968 $as_echo "no" >&6; }
7969 GENERATED_MANPAGES=
7973 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7975 # How about lex?
7976 for ac_prog in flex
7978 # Extract the first word of "$ac_prog", so it can be a program name with args.
7979 set dummy $ac_prog; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_FLEX+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$FLEX"; then
7986 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_FLEX="$ac_prog"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7999 done
8000 done
8001 IFS=$as_save_IFS
8005 FLEX=$ac_cv_prog_FLEX
8006 if test -n "$FLEX"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8008 $as_echo "$FLEX" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8015 test -n "$FLEX" && break
8016 done
8017 test -n "$FLEX" || FLEX="$MISSING flex"
8020 # Bison?
8021 for ac_prog in bison
8023 # Extract the first word of "$ac_prog", so it can be a program name with args.
8024 set dummy $ac_prog; ac_word=$2
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8026 $as_echo_n "checking for $ac_word... " >&6; }
8027 if test "${ac_cv_prog_BISON+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 if test -n "$BISON"; then
8031 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8032 else
8033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 for as_dir in $PATH
8036 IFS=$as_save_IFS
8037 test -z "$as_dir" && as_dir=.
8038 for ac_exec_ext in '' $ac_executable_extensions; do
8039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8040 ac_cv_prog_BISON="$ac_prog"
8041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 break 2
8044 done
8045 done
8046 IFS=$as_save_IFS
8050 BISON=$ac_cv_prog_BISON
8051 if test -n "$BISON"; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8053 $as_echo "$BISON" >&6; }
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 $as_echo "no" >&6; }
8060 test -n "$BISON" && break
8061 done
8062 test -n "$BISON" || BISON="$MISSING bison"
8065 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8066 # check for build == host before using them.
8068 # NM
8069 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
8070 && test -d ../binutils ; then
8071 NM='${objdir}/../binutils/nm-new'
8072 else
8073 # Extract the first word of "nm", so it can be a program name with args.
8074 set dummy nm; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if test "${ac_cv_prog_NM+set}" = set; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$NM"; then
8081 ac_cv_prog_NM="$NM" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8090 ac_cv_prog_NM="nm"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8094 done
8095 done
8096 IFS=$as_save_IFS
8098 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8101 NM=$ac_cv_prog_NM
8102 if test -n "$NM"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8104 $as_echo "$NM" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8113 # AR
8114 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
8115 && test -d ../binutils ; then
8116 AR='${objdir}/../binutils/ar'
8117 else
8118 # Extract the first word of "ar", so it can be a program name with args.
8119 set dummy ar; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_AR+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 if test -n "$AR"; then
8126 ac_cv_prog_AR="$AR" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_AR="ar"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8139 done
8140 done
8141 IFS=$as_save_IFS
8143 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8146 AR=$ac_cv_prog_AR
8147 if test -n "$AR"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8149 $as_echo "$AR" >&6; }
8150 else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8159 # --------------------
8160 # Checks for C headers
8161 # --------------------
8163 # Need to reject headers which give warnings, so that the -Werror bootstrap
8164 # works later. *sigh* This needs to come before all header checks.
8166 ac_c_preproc_warn_flag=yes
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8169 $as_echo_n "checking for ANSI C header files... " >&6; }
8170 if test "${ac_cv_header_stdc+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 #include <stdlib.h>
8176 #include <stdarg.h>
8177 #include <string.h>
8178 #include <float.h>
8181 main ()
8185 return 0;
8187 _ACEOF
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189 ac_cv_header_stdc=yes
8190 else
8191 ac_cv_header_stdc=no
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 if test $ac_cv_header_stdc = yes; then
8196 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 #include <string.h>
8201 _ACEOF
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 $EGREP "memchr" >/dev/null 2>&1; then :
8205 else
8206 ac_cv_header_stdc=no
8208 rm -f conftest*
8212 if test $ac_cv_header_stdc = yes; then
8213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 #include <stdlib.h>
8218 _ACEOF
8219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8220 $EGREP "free" >/dev/null 2>&1; then :
8222 else
8223 ac_cv_header_stdc=no
8225 rm -f conftest*
8229 if test $ac_cv_header_stdc = yes; then
8230 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8231 if test "$cross_compiling" = yes; then :
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 #include <ctype.h>
8237 #include <stdlib.h>
8238 #if ((' ' & 0x0FF) == 0x020)
8239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8241 #else
8242 # define ISLOWER(c) \
8243 (('a' <= (c) && (c) <= 'i') \
8244 || ('j' <= (c) && (c) <= 'r') \
8245 || ('s' <= (c) && (c) <= 'z'))
8246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8247 #endif
8249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8251 main ()
8253 int i;
8254 for (i = 0; i < 256; i++)
8255 if (XOR (islower (i), ISLOWER (i))
8256 || toupper (i) != TOUPPER (i))
8257 return 2;
8258 return 0;
8260 _ACEOF
8261 if ac_fn_c_try_run "$LINENO"; then :
8263 else
8264 ac_cv_header_stdc=no
8266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8267 conftest.$ac_objext conftest.beam conftest.$ac_ext
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8273 $as_echo "$ac_cv_header_stdc" >&6; }
8274 if test $ac_cv_header_stdc = yes; then
8276 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8281 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8282 if test "${ac_cv_header_time+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 #include <sys/types.h>
8288 #include <sys/time.h>
8289 #include <time.h>
8292 main ()
8294 if ((struct tm *) 0)
8295 return 0;
8297 return 0;
8299 _ACEOF
8300 if ac_fn_c_try_compile "$LINENO"; then :
8301 ac_cv_header_time=yes
8302 else
8303 ac_cv_header_time=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8308 $as_echo "$ac_cv_header_time" >&6; }
8309 if test $ac_cv_header_time = yes; then
8311 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8316 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8317 if test "${gcc_cv_header_string+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 <string.h>
8323 #include <strings.h>
8325 main ()
8329 return 0;
8331 _ACEOF
8332 if ac_fn_c_try_compile "$LINENO"; then :
8333 gcc_cv_header_string=yes
8334 else
8335 gcc_cv_header_string=no
8337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8340 $as_echo "$gcc_cv_header_string" >&6; }
8341 if test $gcc_cv_header_string = yes; then
8343 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8348 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8349 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354 #include <sys/types.h>
8355 #include <sys/wait.h>
8356 #ifndef WEXITSTATUS
8357 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8358 #endif
8359 #ifndef WIFEXITED
8360 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8361 #endif
8364 main ()
8366 int s;
8367 wait (&s);
8368 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8370 return 0;
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374 ac_cv_header_sys_wait_h=yes
8375 else
8376 ac_cv_header_sys_wait_h=no
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8381 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8382 if test $ac_cv_header_sys_wait_h = yes; then
8384 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8389 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8390 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #include <sys/types.h>
8396 #include <termios.h>
8397 #ifdef TIOCGWINSZ
8399 #endif
8401 _ACEOF
8402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8403 $EGREP "yes" >/dev/null 2>&1; then :
8404 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8405 else
8406 ac_cv_sys_tiocgwinsz_in_termios_h=no
8408 rm -f conftest*
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8412 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8414 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8416 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8417 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
8419 else
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <sys/types.h>
8423 #include <sys/ioctl.h>
8424 #ifdef TIOCGWINSZ
8426 #endif
8428 _ACEOF
8429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8430 $EGREP "yes" >/dev/null 2>&1; then :
8431 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8432 else
8433 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8435 rm -f conftest*
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8439 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8441 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8443 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8448 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8449 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8450 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8451 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8452 do :
8453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8454 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8455 eval as_val=\$$as_ac_Header
8456 if test "x$as_val" = x""yes; then :
8457 cat >>confdefs.h <<_ACEOF
8458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8459 _ACEOF
8462 done
8465 # Check for thread headers.
8466 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8467 if test "x$ac_cv_header_thread_h" = x""yes; then :
8468 have_thread_h=yes
8469 else
8470 have_thread_h=
8473 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8474 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8475 have_pthread_h=yes
8476 else
8477 have_pthread_h=
8481 # These tests can't be done till we know if we have limits.h.
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8483 $as_echo_n "checking for CHAR_BIT... " >&6; }
8484 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #ifdef HAVE_LIMITS_H
8490 #include <limits.h>
8491 #endif
8492 #ifdef CHAR_BIT
8493 found
8494 #endif
8495 _ACEOF
8496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8497 $EGREP "found" >/dev/null 2>&1; then :
8498 gcc_cv_decl_char_bit=yes
8499 else
8500 gcc_cv_decl_char_bit=no
8502 rm -f conftest*
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8507 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8508 if test $gcc_cv_decl_char_bit = no; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8510 $as_echo_n "checking number of bits in a byte... " >&6; }
8511 if test "${gcc_cv_c_nbby+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8515 gcc_cv_c_nbby=
8516 while test $i -lt 65; do
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8521 main ()
8523 switch(0) {
8524 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8525 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8528 return 0;
8530 _ACEOF
8531 if ac_fn_c_try_compile "$LINENO"; then :
8532 gcc_cv_c_nbby=$i; break
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 i=`expr $i + 1`
8536 done
8537 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8541 $as_echo "$gcc_cv_c_nbby" >&6; }
8542 if test $gcc_cv_c_nbby = failed; then
8543 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8544 else
8546 cat >>confdefs.h <<_ACEOF
8547 #define CHAR_BIT $gcc_cv_c_nbby
8548 _ACEOF
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8553 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8554 if test "${ac_cv_c_bigendian+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 ac_cv_c_bigendian=unknown
8558 # See if we're dealing with a universal compiler.
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 #ifndef __APPLE_CC__
8562 not a universal capable compiler
8563 #endif
8564 typedef int dummy;
8566 _ACEOF
8567 if ac_fn_c_try_compile "$LINENO"; then :
8569 # Check for potential -arch flags. It is not universal unless
8570 # there are at least two -arch flags with different values.
8571 ac_arch=
8572 ac_prev=
8573 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8574 if test -n "$ac_prev"; then
8575 case $ac_word in
8576 i?86 | x86_64 | ppc | ppc64)
8577 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8578 ac_arch=$ac_word
8579 else
8580 ac_cv_c_bigendian=universal
8581 break
8584 esac
8585 ac_prev=
8586 elif test "x$ac_word" = "x-arch"; then
8587 ac_prev=arch
8589 done
8591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 if test $ac_cv_c_bigendian = unknown; then
8593 # See if sys/param.h defines the BYTE_ORDER macro.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <sys/types.h>
8597 #include <sys/param.h>
8600 main ()
8602 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8603 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8604 && LITTLE_ENDIAN)
8605 bogus endian macros
8606 #endif
8609 return 0;
8611 _ACEOF
8612 if ac_fn_c_try_compile "$LINENO"; then :
8613 # It does; now see whether it defined to BIG_ENDIAN or not.
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/param.h>
8620 main ()
8622 #if BYTE_ORDER != BIG_ENDIAN
8623 not big endian
8624 #endif
8627 return 0;
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"; then :
8631 ac_cv_c_bigendian=yes
8632 else
8633 ac_cv_c_bigendian=no
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 if test $ac_cv_c_bigendian = unknown; then
8640 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 #include <limits.h>
8646 main ()
8648 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8649 bogus endian macros
8650 #endif
8653 return 0;
8655 _ACEOF
8656 if ac_fn_c_try_compile "$LINENO"; then :
8657 # It does; now see whether it defined to _BIG_ENDIAN or not.
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <limits.h>
8663 main ()
8665 #ifndef _BIG_ENDIAN
8666 not big endian
8667 #endif
8670 return 0;
8672 _ACEOF
8673 if ac_fn_c_try_compile "$LINENO"; then :
8674 ac_cv_c_bigendian=yes
8675 else
8676 ac_cv_c_bigendian=no
8678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8682 if test $ac_cv_c_bigendian = unknown; then
8683 # Compile a test program.
8684 if test "$cross_compiling" = yes; then :
8685 # Try to guess by grepping values from an object file.
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688 short int ascii_mm[] =
8689 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8690 short int ascii_ii[] =
8691 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8692 int use_ascii (int i) {
8693 return ascii_mm[i] + ascii_ii[i];
8695 short int ebcdic_ii[] =
8696 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8697 short int ebcdic_mm[] =
8698 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8699 int use_ebcdic (int i) {
8700 return ebcdic_mm[i] + ebcdic_ii[i];
8702 extern int foo;
8705 main ()
8707 return use_ascii (foo) == use_ebcdic (foo);
8709 return 0;
8711 _ACEOF
8712 if ac_fn_c_try_compile "$LINENO"; then :
8713 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8714 ac_cv_c_bigendian=yes
8716 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8717 if test "$ac_cv_c_bigendian" = unknown; then
8718 ac_cv_c_bigendian=no
8719 else
8720 # finding both strings is unlikely to happen, but who knows?
8721 ac_cv_c_bigendian=unknown
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 else
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 $ac_includes_default
8731 main ()
8734 /* Are we little or big endian? From Harbison&Steele. */
8735 union
8737 long int l;
8738 char c[sizeof (long int)];
8739 } u;
8740 u.l = 1;
8741 return u.c[sizeof (long int) - 1] == 1;
8744 return 0;
8746 _ACEOF
8747 if ac_fn_c_try_run "$LINENO"; then :
8748 ac_cv_c_bigendian=no
8749 else
8750 ac_cv_c_bigendian=yes
8752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8753 conftest.$ac_objext conftest.beam conftest.$ac_ext
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8759 $as_echo "$ac_cv_c_bigendian" >&6; }
8760 case $ac_cv_c_bigendian in #(
8761 yes)
8762 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8763 ;; #(
8765 ;; #(
8766 universal)
8768 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8770 ;; #(
8772 as_fn_error "unknown endianness
8773 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8774 esac
8777 # ----------------------
8778 # Checks for C++ headers
8779 # ----------------------
8781 ac_ext=cpp
8782 ac_cpp='$CXXCPP $CPPFLAGS'
8783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8787 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8788 if test -z "$CXXCPP"; then
8789 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 # Double quotes because CXXCPP needs to be expanded
8793 for CXXCPP in "$CXX -E" "/lib/cpp"
8795 ac_preproc_ok=false
8796 for ac_cxx_preproc_warn_flag in '' yes
8798 # Use a header file that comes with gcc, so configuring glibc
8799 # with a fresh cross-compiler works.
8800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801 # <limits.h> exists even on freestanding compilers.
8802 # On the NeXT, cc -E runs the code through the compiler's parser,
8803 # not just through cpp. "Syntax error" is here to catch this case.
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8806 #ifdef __STDC__
8807 # include <limits.h>
8808 #else
8809 # include <assert.h>
8810 #endif
8811 Syntax error
8812 _ACEOF
8813 if ac_fn_cxx_try_cpp "$LINENO"; then :
8815 else
8816 # Broken: fails on valid input.
8817 continue
8819 rm -f conftest.err conftest.$ac_ext
8821 # OK, works on sane cases. Now check whether nonexistent headers
8822 # can be detected and how.
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 #include <ac_nonexistent.h>
8826 _ACEOF
8827 if ac_fn_cxx_try_cpp "$LINENO"; then :
8828 # Broken: success on invalid input.
8829 continue
8830 else
8831 # Passes both tests.
8832 ac_preproc_ok=:
8833 break
8835 rm -f conftest.err conftest.$ac_ext
8837 done
8838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8839 rm -f conftest.err conftest.$ac_ext
8840 if $ac_preproc_ok; then :
8841 break
8844 done
8845 ac_cv_prog_CXXCPP=$CXXCPP
8848 CXXCPP=$ac_cv_prog_CXXCPP
8849 else
8850 ac_cv_prog_CXXCPP=$CXXCPP
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8853 $as_echo "$CXXCPP" >&6; }
8854 ac_preproc_ok=false
8855 for ac_cxx_preproc_warn_flag in '' yes
8857 # Use a header file that comes with gcc, so configuring glibc
8858 # with a fresh cross-compiler works.
8859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8860 # <limits.h> exists even on freestanding compilers.
8861 # On the NeXT, cc -E runs the code through the compiler's parser,
8862 # not just through cpp. "Syntax error" is here to catch this case.
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8865 #ifdef __STDC__
8866 # include <limits.h>
8867 #else
8868 # include <assert.h>
8869 #endif
8870 Syntax error
8871 _ACEOF
8872 if ac_fn_cxx_try_cpp "$LINENO"; then :
8874 else
8875 # Broken: fails on valid input.
8876 continue
8878 rm -f conftest.err conftest.$ac_ext
8880 # OK, works on sane cases. Now check whether nonexistent headers
8881 # can be detected and how.
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 #include <ac_nonexistent.h>
8885 _ACEOF
8886 if ac_fn_cxx_try_cpp "$LINENO"; then :
8887 # Broken: success on invalid input.
8888 continue
8889 else
8890 # Passes both tests.
8891 ac_preproc_ok=:
8892 break
8894 rm -f conftest.err conftest.$ac_ext
8896 done
8897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8898 rm -f conftest.err conftest.$ac_ext
8899 if $ac_preproc_ok; then :
8901 else
8902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8905 See \`config.log' for more details." >&5
8906 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8907 See \`config.log' for more details." >&2;}; }
8910 ac_ext=c
8911 ac_cpp='$CPP $CPPFLAGS'
8912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8917 ac_ext=cpp
8918 ac_cpp='$CXXCPP $CPPFLAGS'
8919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8926 for ac_header in unordered_map
8927 do :
8928 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8929 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8930 cat >>confdefs.h <<_ACEOF
8931 #define HAVE_UNORDERED_MAP 1
8932 _ACEOF
8935 done
8937 for ac_header in tr1/unordered_map
8938 do :
8939 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8940 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8941 cat >>confdefs.h <<_ACEOF
8942 #define HAVE_TR1_UNORDERED_MAP 1
8943 _ACEOF
8946 done
8948 for ac_header in ext/hash_map
8949 do :
8950 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8951 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_EXT_HASH_MAP 1
8954 _ACEOF
8957 done
8960 ac_ext=c
8961 ac_cpp='$CPP $CPPFLAGS'
8962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8967 # --------
8968 # Dependency checking.
8969 # --------
8971 ac_ext=cpp
8972 ac_cpp='$CXXCPP $CPPFLAGS'
8973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8977 rm -rf .tst 2>/dev/null
8978 mkdir .tst 2>/dev/null
8979 if test -d .tst; then
8980 am__leading_dot=.
8981 else
8982 am__leading_dot=_
8984 rmdir .tst 2>/dev/null
8986 DEPDIR="${am__leading_dot}deps"
8988 ac_config_commands="$ac_config_commands depdir"
8991 ac_config_commands="$ac_config_commands gccdepdir"
8994 depcc="$CXX" am_compiler_list=
8996 am_depcomp=$ac_aux_dir/depcomp
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8998 $as_echo_n "checking dependency style of $depcc... " >&6; }
8999 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 if test -f "$am_depcomp"; then
9003 # We make a subdir and do the tests there. Otherwise we can end up
9004 # making bogus files that we don't know about and never remove. For
9005 # instance it was reported that on HP-UX the gcc test will end up
9006 # making a dummy file named `D' -- because `-MD' means `put the output
9007 # in D'.
9008 mkdir conftest.dir
9009 # Copy depcomp to subdir because otherwise we won't find it if we're
9010 # using a relative directory.
9011 cp "$am_depcomp" conftest.dir
9012 cd conftest.dir
9013 # We will build objects and dependencies in a subdirectory because
9014 # it helps to detect inapplicable dependency modes. For instance
9015 # both Tru64's cc and ICC support -MD to output dependencies as a
9016 # side effect of compilation, but ICC will put the dependencies in
9017 # the current directory while Tru64 will put them in the object
9018 # directory.
9019 mkdir sub
9021 am_cv_CXX_dependencies_compiler_type=none
9022 if test "$am_compiler_list" = ""; then
9023 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9025 for depmode in $am_compiler_list; do
9026 if test $depmode = none; then break; fi
9028 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9029 # Setup a source with many dependencies, because some compilers
9030 # like to wrap large dependency lists on column 80 (with \), and
9031 # we should not choose a depcomp mode which is confused by this.
9033 # We need to recreate these files for each test, as the compiler may
9034 # overwrite some of them when testing with obscure command lines.
9035 # This happens at least with the AIX C compiler.
9036 : > sub/conftest.c
9037 for i in 1 2 3 4 5 6; do
9038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9039 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9040 # Solaris 8's {/usr,}/bin/sh.
9041 touch sub/conftst$i.h
9042 done
9043 echo "include sub/conftest.Po" > confmf
9045 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9046 # mode. It turns out that the SunPro C++ compiler does not properly
9047 # handle `-M -o', and we need to detect this.
9048 depcmd="depmode=$depmode \
9049 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9051 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9052 echo "| $depcmd" | sed -e 's/ */ /g' >&5
9053 if env $depcmd > conftest.err 2>&1 &&
9054 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
9055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
9056 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
9057 # icc doesn't choke on unknown options, it will just issue warnings
9058 # or remarks (even with -Werror). So we grep stderr for any message
9059 # that says an option was ignored or not supported.
9060 # When given -MP, icc 7.0 and 7.1 complain thusly:
9061 # icc: Command line warning: ignoring option '-M'; no argument required
9062 # The diagnosis changed in icc 8.0:
9063 # icc: Command line remark: option '-MP' not supported
9064 if (grep 'ignoring option' conftest.err ||
9065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9066 am_cv_CXX_dependencies_compiler_type=$depmode
9067 $as_echo "$as_me:$LINENO: success" >&5
9068 break
9071 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9072 sed -e 's/^/| /' < conftest.err >&5
9073 done
9075 cd ..
9076 rm -rf conftest.dir
9077 else
9078 am_cv_CXX_dependencies_compiler_type=none
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9083 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9084 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
9085 then as_fn_error "no usable dependency style found" "$LINENO" 5
9086 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9090 ac_ext=c
9091 ac_cpp='$CPP $CPPFLAGS'
9092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9097 # --------
9098 # UNSORTED
9099 # --------
9102 # These libraries may be used by collect2.
9103 # We may need a special search path to get them linked.
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9105 $as_echo_n "checking for collect2 libraries... " >&6; }
9106 if test "${gcc_cv_collect2_libs+set}" = set; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 save_LIBS="$LIBS"
9110 for libs in '' -lld -lmld \
9111 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9112 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9114 LIBS="$libs"
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9118 /* Override any GCC internal prototype to avoid an error.
9119 Use char because int might match the return type of a GCC
9120 builtin and then its argument prototype would still apply. */
9121 #ifdef __cplusplus
9122 extern "C"
9123 #endif
9124 char ldopen ();
9126 main ()
9128 return ldopen ();
9130 return 0;
9132 _ACEOF
9133 if ac_fn_c_try_link "$LINENO"; then :
9134 gcc_cv_collect2_libs="$libs"; break
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138 done
9139 LIBS="$save_LIBS"
9140 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9143 $as_echo "$gcc_cv_collect2_libs" >&6; }
9144 case $gcc_cv_collect2_libs in
9145 "none required") ;;
9146 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
9147 esac
9150 # When building Ada code on Alpha, we need exc_resume which is usually in
9151 # -lexc. So test for it.
9152 save_LIBS="$LIBS"
9153 LIBS=
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9155 $as_echo_n "checking for library containing exc_resume... " >&6; }
9156 if test "${ac_cv_search_exc_resume+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 ac_func_search_save_LIBS=$LIBS
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9163 /* Override any GCC internal prototype to avoid an error.
9164 Use char because int might match the return type of a GCC
9165 builtin and then its argument prototype would still apply. */
9166 #ifdef __cplusplus
9167 extern "C"
9168 #endif
9169 char exc_resume ();
9171 main ()
9173 return exc_resume ();
9175 return 0;
9177 _ACEOF
9178 for ac_lib in '' exc; do
9179 if test -z "$ac_lib"; then
9180 ac_res="none required"
9181 else
9182 ac_res=-l$ac_lib
9183 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9185 if ac_fn_c_try_link "$LINENO"; then :
9186 ac_cv_search_exc_resume=$ac_res
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext
9190 if test "${ac_cv_search_exc_resume+set}" = set; then :
9191 break
9193 done
9194 if test "${ac_cv_search_exc_resume+set}" = set; then :
9196 else
9197 ac_cv_search_exc_resume=no
9199 rm conftest.$ac_ext
9200 LIBS=$ac_func_search_save_LIBS
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9203 $as_echo "$ac_cv_search_exc_resume" >&6; }
9204 ac_res=$ac_cv_search_exc_resume
9205 if test "$ac_res" != no; then :
9206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9210 GNAT_LIBEXC="$LIBS"
9211 LIBS="$save_LIBS"
9214 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9215 save_LIBS="$LIBS"
9216 LIBS=
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9218 $as_echo_n "checking for library containing kstat_open... " >&6; }
9219 if test "${ac_cv_search_kstat_open+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 ac_func_search_save_LIBS=$LIBS
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9226 /* Override any GCC internal prototype to avoid an error.
9227 Use char because int might match the return type of a GCC
9228 builtin and then its argument prototype would still apply. */
9229 #ifdef __cplusplus
9230 extern "C"
9231 #endif
9232 char kstat_open ();
9234 main ()
9236 return kstat_open ();
9238 return 0;
9240 _ACEOF
9241 for ac_lib in '' kstat; do
9242 if test -z "$ac_lib"; then
9243 ac_res="none required"
9244 else
9245 ac_res=-l$ac_lib
9246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9248 if ac_fn_c_try_link "$LINENO"; then :
9249 ac_cv_search_kstat_open=$ac_res
9251 rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext
9253 if test "${ac_cv_search_kstat_open+set}" = set; then :
9254 break
9256 done
9257 if test "${ac_cv_search_kstat_open+set}" = set; then :
9259 else
9260 ac_cv_search_kstat_open=no
9262 rm conftest.$ac_ext
9263 LIBS=$ac_func_search_save_LIBS
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9266 $as_echo "$ac_cv_search_kstat_open" >&6; }
9267 ac_res=$ac_cv_search_kstat_open
9268 if test "$ac_res" != no; then :
9269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9273 EXTRA_GCC_LIBS="$LIBS"
9274 LIBS="$save_LIBS"
9277 # Some systems put ldexp and frexp in libm instead of libc; assume
9278 # they're both in the same place. jcf-dump needs them.
9279 save_LIBS="$LIBS"
9280 LIBS=
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9282 $as_echo_n "checking for library containing ldexp... " >&6; }
9283 if test "${ac_cv_search_ldexp+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 ac_func_search_save_LIBS=$LIBS
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9290 /* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
9293 #ifdef __cplusplus
9294 extern "C"
9295 #endif
9296 char ldexp ();
9298 main ()
9300 return ldexp ();
9302 return 0;
9304 _ACEOF
9305 for ac_lib in '' m; do
9306 if test -z "$ac_lib"; then
9307 ac_res="none required"
9308 else
9309 ac_res=-l$ac_lib
9310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9312 if ac_fn_c_try_link "$LINENO"; then :
9313 ac_cv_search_ldexp=$ac_res
9315 rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext
9317 if test "${ac_cv_search_ldexp+set}" = set; then :
9318 break
9320 done
9321 if test "${ac_cv_search_ldexp+set}" = set; then :
9323 else
9324 ac_cv_search_ldexp=no
9326 rm conftest.$ac_ext
9327 LIBS=$ac_func_search_save_LIBS
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9330 $as_echo "$ac_cv_search_ldexp" >&6; }
9331 ac_res=$ac_cv_search_ldexp
9332 if test "$ac_res" != no; then :
9333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9337 LDEXP_LIB="$LIBS"
9338 LIBS="$save_LIBS"
9341 # Use <inttypes.h> only if it exists,
9342 # doesn't clash with <sys/types.h>, and declares intmax_t.
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9344 $as_echo_n "checking for inttypes.h... " >&6; }
9345 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 #include <sys/types.h>
9351 #include <inttypes.h>
9353 main ()
9355 intmax_t i = -1;
9357 return 0;
9359 _ACEOF
9360 if ac_fn_c_try_compile "$LINENO"; then :
9361 gcc_cv_header_inttypes_h=yes
9362 else
9363 gcc_cv_header_inttypes_h=no
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9369 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9370 if test $gcc_cv_header_inttypes_h = yes; then
9372 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9378 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9379 sysconf strsignal getrusage nl_langinfo \
9380 gettimeofday mbstowcs wcswidth mmap setlocale \
9381 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
9382 do :
9383 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9385 eval as_val=\$$as_ac_var
9386 if test "x$as_val" = x""yes; then :
9387 cat >>confdefs.h <<_ACEOF
9388 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9389 _ACEOF
9392 done
9395 if test x$ac_cv_func_mbstowcs = xyes; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9397 $as_echo_n "checking whether mbstowcs works... " >&6; }
9398 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 if test "$cross_compiling" = yes; then :
9402 gcc_cv_func_mbstowcs_works=yes
9403 else
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 #include <stdlib.h>
9407 int main()
9409 mbstowcs(0, "", 0);
9410 return 0;
9412 _ACEOF
9413 if ac_fn_c_try_run "$LINENO"; then :
9414 gcc_cv_func_mbstowcs_works=yes
9415 else
9416 gcc_cv_func_mbstowcs_works=no
9418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9419 conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9424 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9425 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9427 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9432 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9433 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9435 else
9437 cat >>confdefs.h <<_ACEOF
9438 #define ssize_t int
9439 _ACEOF
9443 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9444 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9446 else
9448 cat >>confdefs.h <<_ACEOF
9449 #define caddr_t char *
9450 _ACEOF
9456 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9457 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9458 gcc_header_sys_mman_h=yes
9459 else
9460 gcc_header_sys_mman_h=no
9463 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9464 if test "x$ac_cv_func_mmap" = x""yes; then :
9465 gcc_func_mmap=yes
9466 else
9467 gcc_func_mmap=no
9470 if test "$gcc_header_sys_mman_h" != yes \
9471 || test "$gcc_func_mmap" != yes; then
9472 gcc_cv_func_mmap_file=no
9473 gcc_cv_func_mmap_dev_zero=no
9474 gcc_cv_func_mmap_anon=no
9475 else
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9477 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9478 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 # Add a system to this blacklist if
9482 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9483 # memory area containing the same data that you'd get if you applied
9484 # read() to the same fd. The only system known to have a problem here
9485 # is VMS, where text files have record structure.
9486 case "$host_os" in
9487 *vms* | ultrix*)
9488 gcc_cv_func_mmap_file=no ;;
9490 gcc_cv_func_mmap_file=yes;;
9491 esac
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9494 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9496 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9497 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 # Add a system to this blacklist if it has mmap() but /dev/zero
9501 # does not exist, or if mmapping /dev/zero does not give anonymous
9502 # zeroed pages with both the following properties:
9503 # 1. If you map N consecutive pages in with one call, and then
9504 # unmap any subset of those pages, the pages that were not
9505 # explicitly unmapped remain accessible.
9506 # 2. If you map two adjacent blocks of memory and then unmap them
9507 # both at once, they must both go away.
9508 # Systems known to be in this category are Windows (all variants),
9509 # VMS, and Darwin.
9510 case "$host_os" in
9511 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9512 gcc_cv_func_mmap_dev_zero=no ;;
9514 gcc_cv_func_mmap_dev_zero=yes;;
9515 esac
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9518 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9520 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9522 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9523 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
9525 else
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528 #include <sys/types.h>
9529 #include <sys/mman.h>
9530 #include <unistd.h>
9532 #ifndef MAP_ANONYMOUS
9533 #define MAP_ANONYMOUS MAP_ANON
9534 #endif
9537 main ()
9539 int n = MAP_ANONYMOUS;
9541 return 0;
9543 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"; then :
9545 gcc_cv_decl_map_anon=yes
9546 else
9547 gcc_cv_decl_map_anon=no
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9552 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9554 if test $gcc_cv_decl_map_anon = no; then
9555 gcc_cv_func_mmap_anon=no
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9558 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9559 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9560 $as_echo_n "(cached) " >&6
9561 else
9562 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9563 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9564 # doesn't give anonymous zeroed pages with the same properties listed
9565 # above for use of /dev/zero.
9566 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9567 case "$host_os" in
9568 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9569 gcc_cv_func_mmap_anon=no ;;
9571 gcc_cv_func_mmap_anon=yes;;
9572 esac
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9575 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9579 if test $gcc_cv_func_mmap_file = yes; then
9581 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9584 if test $gcc_cv_func_mmap_dev_zero = yes; then
9586 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9589 if test $gcc_cv_func_mmap_anon = yes; then
9591 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9596 case "${host}" in
9597 *-*-*vms*)
9598 # Under VMS, vfork works very differently than on Unix. The standard test
9599 # won't work, and it isn't easily adaptable. It makes more sense to
9600 # just force it.
9601 ac_cv_func_vfork_works=yes
9603 esac
9604 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9605 if test "x$ac_cv_type_pid_t" = x""yes; then :
9607 else
9609 cat >>confdefs.h <<_ACEOF
9610 #define pid_t int
9611 _ACEOF
9615 for ac_header in vfork.h
9616 do :
9617 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9618 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9619 cat >>confdefs.h <<_ACEOF
9620 #define HAVE_VFORK_H 1
9621 _ACEOF
9624 done
9626 for ac_func in fork vfork
9627 do :
9628 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9629 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9630 eval as_val=\$$as_ac_var
9631 if test "x$as_val" = x""yes; then :
9632 cat >>confdefs.h <<_ACEOF
9633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9634 _ACEOF
9637 done
9639 if test "x$ac_cv_func_fork" = xyes; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9641 $as_echo_n "checking for working fork... " >&6; }
9642 if test "${ac_cv_func_fork_works+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 if test "$cross_compiling" = yes; then :
9646 ac_cv_func_fork_works=cross
9647 else
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9650 $ac_includes_default
9652 main ()
9655 /* By Ruediger Kuhlmann. */
9656 return fork () < 0;
9659 return 0;
9661 _ACEOF
9662 if ac_fn_c_try_run "$LINENO"; then :
9663 ac_cv_func_fork_works=yes
9664 else
9665 ac_cv_func_fork_works=no
9667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9668 conftest.$ac_objext conftest.beam conftest.$ac_ext
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9673 $as_echo "$ac_cv_func_fork_works" >&6; }
9675 else
9676 ac_cv_func_fork_works=$ac_cv_func_fork
9678 if test "x$ac_cv_func_fork_works" = xcross; then
9679 case $host in
9680 *-*-amigaos* | *-*-msdosdjgpp*)
9681 # Override, as these systems have only a dummy fork() stub
9682 ac_cv_func_fork_works=no
9685 ac_cv_func_fork_works=yes
9687 esac
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9689 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9691 ac_cv_func_vfork_works=$ac_cv_func_vfork
9692 if test "x$ac_cv_func_vfork" = xyes; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9694 $as_echo_n "checking for working vfork... " >&6; }
9695 if test "${ac_cv_func_vfork_works+set}" = set; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 if test "$cross_compiling" = yes; then :
9699 ac_cv_func_vfork_works=cross
9700 else
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9703 /* Thanks to Paul Eggert for this test. */
9704 $ac_includes_default
9705 #include <sys/wait.h>
9706 #ifdef HAVE_VFORK_H
9707 # include <vfork.h>
9708 #endif
9709 /* On some sparc systems, changes by the child to local and incoming
9710 argument registers are propagated back to the parent. The compiler
9711 is told about this with #include <vfork.h>, but some compilers
9712 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9713 static variable whose address is put into a register that is
9714 clobbered by the vfork. */
9715 static void
9716 #ifdef __cplusplus
9717 sparc_address_test (int arg)
9718 # else
9719 sparc_address_test (arg) int arg;
9720 #endif
9722 static pid_t child;
9723 if (!child) {
9724 child = vfork ();
9725 if (child < 0) {
9726 perror ("vfork");
9727 _exit(2);
9729 if (!child) {
9730 arg = getpid();
9731 write(-1, "", 0);
9732 _exit (arg);
9738 main ()
9740 pid_t parent = getpid ();
9741 pid_t child;
9743 sparc_address_test (0);
9745 child = vfork ();
9747 if (child == 0) {
9748 /* Here is another test for sparc vfork register problems. This
9749 test uses lots of local variables, at least as many local
9750 variables as main has allocated so far including compiler
9751 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9752 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9753 reuse the register of parent for one of the local variables,
9754 since it will think that parent can't possibly be used any more
9755 in this routine. Assigning to the local variable will thus
9756 munge parent in the parent process. */
9757 pid_t
9758 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9759 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9760 /* Convince the compiler that p..p7 are live; otherwise, it might
9761 use the same hardware register for all 8 local variables. */
9762 if (p != p1 || p != p2 || p != p3 || p != p4
9763 || p != p5 || p != p6 || p != p7)
9764 _exit(1);
9766 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9767 from child file descriptors. If the child closes a descriptor
9768 before it execs or exits, this munges the parent's descriptor
9769 as well. Test for this by closing stdout in the child. */
9770 _exit(close(fileno(stdout)) != 0);
9771 } else {
9772 int status;
9773 struct stat st;
9775 while (wait(&status) != child)
9777 return (
9778 /* Was there some problem with vforking? */
9779 child < 0
9781 /* Did the child fail? (This shouldn't happen.) */
9782 || status
9784 /* Did the vfork/compiler bug occur? */
9785 || parent != getpid()
9787 /* Did the file descriptor bug occur? */
9788 || fstat(fileno(stdout), &st) != 0
9792 _ACEOF
9793 if ac_fn_c_try_run "$LINENO"; then :
9794 ac_cv_func_vfork_works=yes
9795 else
9796 ac_cv_func_vfork_works=no
9798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9799 conftest.$ac_objext conftest.beam conftest.$ac_ext
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9804 $as_echo "$ac_cv_func_vfork_works" >&6; }
9807 if test "x$ac_cv_func_fork_works" = xcross; then
9808 ac_cv_func_vfork_works=$ac_cv_func_vfork
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9810 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9813 if test "x$ac_cv_func_vfork_works" = xyes; then
9815 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9817 else
9819 $as_echo "#define vfork fork" >>confdefs.h
9822 if test "x$ac_cv_func_fork_works" = xyes; then
9824 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9829 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9830 # iconv() prototype.
9831 ac_ext=cpp
9832 ac_cpp='$CXXCPP $CPPFLAGS'
9833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9838 if test "X$prefix" = "XNONE"; then
9839 acl_final_prefix="$ac_default_prefix"
9840 else
9841 acl_final_prefix="$prefix"
9843 if test "X$exec_prefix" = "XNONE"; then
9844 acl_final_exec_prefix='${prefix}'
9845 else
9846 acl_final_exec_prefix="$exec_prefix"
9848 acl_save_prefix="$prefix"
9849 prefix="$acl_final_prefix"
9850 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9851 prefix="$acl_save_prefix"
9854 # Check whether --with-gnu-ld was given.
9855 if test "${with_gnu_ld+set}" = set; then :
9856 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9857 else
9858 with_gnu_ld=no
9861 # Prepare PATH_SEPARATOR.
9862 # The user is always right.
9863 if test "${PATH_SEPARATOR+set}" != set; then
9864 echo "#! /bin/sh" >conf$$.sh
9865 echo "exit 0" >>conf$$.sh
9866 chmod +x conf$$.sh
9867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9868 PATH_SEPARATOR=';'
9869 else
9870 PATH_SEPARATOR=:
9872 rm -f conf$$.sh
9874 ac_prog=ld
9875 if test "$GCC" = yes; then
9876 # Check if gcc -print-prog-name=ld gives a path.
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9878 $as_echo_n "checking for ld used by GCC... " >&6; }
9879 case $host in
9880 *-*-mingw*)
9881 # gcc leaves a trailing carriage return which upsets mingw
9882 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9884 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9885 esac
9886 case $ac_prog in
9887 # Accept absolute paths.
9888 [\\/]* | [A-Za-z]:[\\/]*)
9889 re_direlt='/[^/][^/]*/\.\./'
9890 # Canonicalize the path of ld
9891 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9892 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9893 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9894 done
9895 test -z "$LD" && LD="$ac_prog"
9898 # If it fails, then pretend we aren't using GCC.
9899 ac_prog=ld
9902 # If it is relative, then search for the first ld in PATH.
9903 with_gnu_ld=unknown
9905 esac
9906 elif test "$with_gnu_ld" = yes; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9908 $as_echo_n "checking for GNU ld... " >&6; }
9909 else
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9911 $as_echo_n "checking for non-GNU ld... " >&6; }
9913 if test "${acl_cv_path_LD+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 if test -z "$LD"; then
9917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9918 for ac_dir in $PATH; do
9919 test -z "$ac_dir" && ac_dir=.
9920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9921 acl_cv_path_LD="$ac_dir/$ac_prog"
9922 # Check to see if the program is GNU ld. I'd rather use --version,
9923 # but apparently some GNU ld's only accept -v.
9924 # Break only if it was the GNU/non-GNU ld that we prefer.
9925 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9926 test "$with_gnu_ld" != no && break
9927 else
9928 test "$with_gnu_ld" != yes && break
9931 done
9932 IFS="$ac_save_ifs"
9933 else
9934 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9938 LD="$acl_cv_path_LD"
9939 if test -n "$LD"; then
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9941 $as_echo "$LD" >&6; }
9942 else
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9946 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9948 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9949 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9953 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9954 acl_cv_prog_gnu_ld=yes
9955 else
9956 acl_cv_prog_gnu_ld=no
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9960 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9961 with_gnu_ld=$acl_cv_prog_gnu_ld
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9966 $as_echo_n "checking for shared library run path origin... " >&6; }
9967 if test "${acl_cv_rpath+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9971 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9972 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9973 . ./conftest.sh
9974 rm -f ./conftest.sh
9975 acl_cv_rpath=done
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9979 $as_echo "$acl_cv_rpath" >&6; }
9980 wl="$acl_cv_wl"
9981 libext="$acl_cv_libext"
9982 shlibext="$acl_cv_shlibext"
9983 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9984 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9985 hardcode_direct="$acl_cv_hardcode_direct"
9986 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9987 # Check whether --enable-rpath was given.
9988 if test "${enable_rpath+set}" = set; then :
9989 enableval=$enable_rpath; :
9990 else
9991 enable_rpath=yes
10001 use_additional=yes
10003 acl_save_prefix="$prefix"
10004 prefix="$acl_final_prefix"
10005 acl_save_exec_prefix="$exec_prefix"
10006 exec_prefix="$acl_final_exec_prefix"
10008 eval additional_includedir=\"$includedir\"
10009 eval additional_libdir=\"$libdir\"
10011 exec_prefix="$acl_save_exec_prefix"
10012 prefix="$acl_save_prefix"
10015 # Check whether --with-libiconv-prefix was given.
10016 if test "${with_libiconv_prefix+set}" = set; then :
10017 withval=$with_libiconv_prefix;
10018 if test "X$withval" = "Xno"; then
10019 use_additional=no
10020 else
10021 if test "X$withval" = "X"; then
10023 acl_save_prefix="$prefix"
10024 prefix="$acl_final_prefix"
10025 acl_save_exec_prefix="$exec_prefix"
10026 exec_prefix="$acl_final_exec_prefix"
10028 eval additional_includedir=\"$includedir\"
10029 eval additional_libdir=\"$libdir\"
10031 exec_prefix="$acl_save_exec_prefix"
10032 prefix="$acl_save_prefix"
10034 else
10035 additional_includedir="$withval/include"
10036 additional_libdir="$withval/lib"
10042 LIBICONV=
10043 LTLIBICONV=
10044 INCICONV=
10045 rpathdirs=
10046 ltrpathdirs=
10047 names_already_handled=
10048 names_next_round='iconv '
10049 while test -n "$names_next_round"; do
10050 names_this_round="$names_next_round"
10051 names_next_round=
10052 for name in $names_this_round; do
10053 already_handled=
10054 for n in $names_already_handled; do
10055 if test "$n" = "$name"; then
10056 already_handled=yes
10057 break
10059 done
10060 if test -z "$already_handled"; then
10061 names_already_handled="$names_already_handled $name"
10062 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10063 eval value=\"\$HAVE_LIB$uppername\"
10064 if test -n "$value"; then
10065 if test "$value" = yes; then
10066 eval value=\"\$LIB$uppername\"
10067 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10068 eval value=\"\$LTLIB$uppername\"
10069 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10070 else
10073 else
10074 found_dir=
10075 found_la=
10076 found_so=
10077 found_a=
10078 if test $use_additional = yes; then
10079 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10080 found_dir="$additional_libdir"
10081 found_so="$additional_libdir/lib$name.$shlibext"
10082 if test -f "$additional_libdir/lib$name.la"; then
10083 found_la="$additional_libdir/lib$name.la"
10085 else
10086 if test -f "$additional_libdir/lib$name.$libext"; then
10087 found_dir="$additional_libdir"
10088 found_a="$additional_libdir/lib$name.$libext"
10089 if test -f "$additional_libdir/lib$name.la"; then
10090 found_la="$additional_libdir/lib$name.la"
10095 if test "X$found_dir" = "X"; then
10096 for x in $LDFLAGS $LTLIBICONV; do
10098 acl_save_prefix="$prefix"
10099 prefix="$acl_final_prefix"
10100 acl_save_exec_prefix="$exec_prefix"
10101 exec_prefix="$acl_final_exec_prefix"
10102 eval x=\"$x\"
10103 exec_prefix="$acl_save_exec_prefix"
10104 prefix="$acl_save_prefix"
10106 case "$x" in
10107 -L*)
10108 dir=`echo "X$x" | sed -e 's/^X-L//'`
10109 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10110 found_dir="$dir"
10111 found_so="$dir/lib$name.$shlibext"
10112 if test -f "$dir/lib$name.la"; then
10113 found_la="$dir/lib$name.la"
10115 else
10116 if test -f "$dir/lib$name.$libext"; then
10117 found_dir="$dir"
10118 found_a="$dir/lib$name.$libext"
10119 if test -f "$dir/lib$name.la"; then
10120 found_la="$dir/lib$name.la"
10125 esac
10126 if test "X$found_dir" != "X"; then
10127 break
10129 done
10131 if test "X$found_dir" != "X"; then
10132 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10133 if test "X$found_so" != "X"; then
10134 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10135 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10136 else
10137 haveit=
10138 for x in $ltrpathdirs; do
10139 if test "X$x" = "X$found_dir"; then
10140 haveit=yes
10141 break
10143 done
10144 if test -z "$haveit"; then
10145 ltrpathdirs="$ltrpathdirs $found_dir"
10147 if test "$hardcode_direct" = yes; then
10148 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10149 else
10150 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10151 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10152 haveit=
10153 for x in $rpathdirs; do
10154 if test "X$x" = "X$found_dir"; then
10155 haveit=yes
10156 break
10158 done
10159 if test -z "$haveit"; then
10160 rpathdirs="$rpathdirs $found_dir"
10162 else
10163 haveit=
10164 for x in $LDFLAGS $LIBICONV; do
10166 acl_save_prefix="$prefix"
10167 prefix="$acl_final_prefix"
10168 acl_save_exec_prefix="$exec_prefix"
10169 exec_prefix="$acl_final_exec_prefix"
10170 eval x=\"$x\"
10171 exec_prefix="$acl_save_exec_prefix"
10172 prefix="$acl_save_prefix"
10174 if test "X$x" = "X-L$found_dir"; then
10175 haveit=yes
10176 break
10178 done
10179 if test -z "$haveit"; then
10180 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10182 if test "$hardcode_minus_L" != no; then
10183 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10184 else
10185 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10190 else
10191 if test "X$found_a" != "X"; then
10192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10193 else
10194 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10197 additional_includedir=
10198 case "$found_dir" in
10199 */lib | */lib/)
10200 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10201 additional_includedir="$basedir/include"
10203 esac
10204 if test "X$additional_includedir" != "X"; then
10205 if test "X$additional_includedir" != "X/usr/include"; then
10206 haveit=
10207 if test "X$additional_includedir" = "X/usr/local/include"; then
10208 if test -n "$GCC"; then
10209 case $host_os in
10210 linux*) haveit=yes;;
10211 esac
10214 if test -z "$haveit"; then
10215 for x in $CPPFLAGS $INCICONV; do
10217 acl_save_prefix="$prefix"
10218 prefix="$acl_final_prefix"
10219 acl_save_exec_prefix="$exec_prefix"
10220 exec_prefix="$acl_final_exec_prefix"
10221 eval x=\"$x\"
10222 exec_prefix="$acl_save_exec_prefix"
10223 prefix="$acl_save_prefix"
10225 if test "X$x" = "X-I$additional_includedir"; then
10226 haveit=yes
10227 break
10229 done
10230 if test -z "$haveit"; then
10231 if test -d "$additional_includedir"; then
10232 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10238 if test -n "$found_la"; then
10239 save_libdir="$libdir"
10240 case "$found_la" in
10241 */* | *\\*) . "$found_la" ;;
10242 *) . "./$found_la" ;;
10243 esac
10244 libdir="$save_libdir"
10245 for dep in $dependency_libs; do
10246 case "$dep" in
10247 -L*)
10248 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10249 if test "X$additional_libdir" != "X/usr/lib"; then
10250 haveit=
10251 if test "X$additional_libdir" = "X/usr/local/lib"; then
10252 if test -n "$GCC"; then
10253 case $host_os in
10254 linux*) haveit=yes;;
10255 esac
10258 if test -z "$haveit"; then
10259 haveit=
10260 for x in $LDFLAGS $LIBICONV; do
10262 acl_save_prefix="$prefix"
10263 prefix="$acl_final_prefix"
10264 acl_save_exec_prefix="$exec_prefix"
10265 exec_prefix="$acl_final_exec_prefix"
10266 eval x=\"$x\"
10267 exec_prefix="$acl_save_exec_prefix"
10268 prefix="$acl_save_prefix"
10270 if test "X$x" = "X-L$additional_libdir"; then
10271 haveit=yes
10272 break
10274 done
10275 if test -z "$haveit"; then
10276 if test -d "$additional_libdir"; then
10277 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10280 haveit=
10281 for x in $LDFLAGS $LTLIBICONV; do
10283 acl_save_prefix="$prefix"
10284 prefix="$acl_final_prefix"
10285 acl_save_exec_prefix="$exec_prefix"
10286 exec_prefix="$acl_final_exec_prefix"
10287 eval x=\"$x\"
10288 exec_prefix="$acl_save_exec_prefix"
10289 prefix="$acl_save_prefix"
10291 if test "X$x" = "X-L$additional_libdir"; then
10292 haveit=yes
10293 break
10295 done
10296 if test -z "$haveit"; then
10297 if test -d "$additional_libdir"; then
10298 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10304 -R*)
10305 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10306 if test "$enable_rpath" != no; then
10307 haveit=
10308 for x in $rpathdirs; do
10309 if test "X$x" = "X$dir"; then
10310 haveit=yes
10311 break
10313 done
10314 if test -z "$haveit"; then
10315 rpathdirs="$rpathdirs $dir"
10317 haveit=
10318 for x in $ltrpathdirs; do
10319 if test "X$x" = "X$dir"; then
10320 haveit=yes
10321 break
10323 done
10324 if test -z "$haveit"; then
10325 ltrpathdirs="$ltrpathdirs $dir"
10329 -l*)
10330 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10332 *.la)
10333 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10336 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10337 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10339 esac
10340 done
10342 else
10343 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10344 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10348 done
10349 done
10350 if test "X$rpathdirs" != "X"; then
10351 if test -n "$hardcode_libdir_separator"; then
10352 alldirs=
10353 for found_dir in $rpathdirs; do
10354 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10355 done
10356 acl_save_libdir="$libdir"
10357 libdir="$alldirs"
10358 eval flag=\"$hardcode_libdir_flag_spec\"
10359 libdir="$acl_save_libdir"
10360 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10361 else
10362 for found_dir in $rpathdirs; do
10363 acl_save_libdir="$libdir"
10364 libdir="$found_dir"
10365 eval flag=\"$hardcode_libdir_flag_spec\"
10366 libdir="$acl_save_libdir"
10367 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10368 done
10371 if test "X$ltrpathdirs" != "X"; then
10372 for found_dir in $ltrpathdirs; do
10373 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10374 done
10383 am_save_CPPFLAGS="$CPPFLAGS"
10385 for element in $INCICONV; do
10386 haveit=
10387 for x in $CPPFLAGS; do
10389 acl_save_prefix="$prefix"
10390 prefix="$acl_final_prefix"
10391 acl_save_exec_prefix="$exec_prefix"
10392 exec_prefix="$acl_final_exec_prefix"
10393 eval x=\"$x\"
10394 exec_prefix="$acl_save_exec_prefix"
10395 prefix="$acl_save_prefix"
10397 if test "X$x" = "X$element"; then
10398 haveit=yes
10399 break
10401 done
10402 if test -z "$haveit"; then
10403 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10405 done
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10409 $as_echo_n "checking for iconv... " >&6; }
10410 if test "${am_cv_func_iconv+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10414 am_cv_func_iconv="no, consider installing GNU libiconv"
10415 am_cv_lib_iconv=no
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 #include <stdlib.h>
10419 #include <iconv.h>
10421 main ()
10423 iconv_t cd = iconv_open("","");
10424 iconv(cd,NULL,NULL,NULL,NULL);
10425 iconv_close(cd);
10427 return 0;
10429 _ACEOF
10430 if ac_fn_cxx_try_link "$LINENO"; then :
10431 am_cv_func_iconv=yes
10433 rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435 if test "$am_cv_func_iconv" != yes; then
10436 am_save_LIBS="$LIBS"
10437 LIBS="$LIBS $LIBICONV"
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10440 #include <stdlib.h>
10441 #include <iconv.h>
10443 main ()
10445 iconv_t cd = iconv_open("","");
10446 iconv(cd,NULL,NULL,NULL,NULL);
10447 iconv_close(cd);
10449 return 0;
10451 _ACEOF
10452 if ac_fn_cxx_try_link "$LINENO"; then :
10453 am_cv_lib_iconv=yes
10454 am_cv_func_iconv=yes
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LIBS="$am_save_LIBS"
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10463 $as_echo "$am_cv_func_iconv" >&6; }
10464 if test "$am_cv_func_iconv" = yes; then
10466 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10469 if test "$am_cv_lib_iconv" = yes; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10471 $as_echo_n "checking how to link with libiconv... " >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10473 $as_echo "$LIBICONV" >&6; }
10474 else
10475 CPPFLAGS="$am_save_CPPFLAGS"
10476 LIBICONV=
10477 LTLIBICONV=
10482 if test "$am_cv_func_iconv" = yes; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10484 $as_echo_n "checking for iconv declaration... " >&6; }
10485 if test "${am_cv_proto_iconv+set}" = set; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10492 #include <stdlib.h>
10493 #include <iconv.h>
10494 extern
10495 #ifdef __cplusplus
10497 #endif
10498 #if defined(__STDC__) || defined(__cplusplus)
10499 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10500 #else
10501 size_t iconv();
10502 #endif
10505 main ()
10509 return 0;
10511 _ACEOF
10512 if ac_fn_cxx_try_compile "$LINENO"; then :
10513 am_cv_proto_iconv_arg1=""
10514 else
10515 am_cv_proto_iconv_arg1="const"
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 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);"
10521 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10523 }$am_cv_proto_iconv" >&5
10524 $as_echo "${ac_t:-
10525 }$am_cv_proto_iconv" >&6; }
10527 cat >>confdefs.h <<_ACEOF
10528 #define ICONV_CONST $am_cv_proto_iconv_arg1
10529 _ACEOF
10533 ac_ext=c
10534 ac_cpp='$CPP $CPPFLAGS'
10535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10540 # Until we have in-tree GNU iconv:
10541 LIBICONV_DEP=
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10546 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10547 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h. */
10552 #include <locale.h>
10554 main ()
10556 return LC_MESSAGES
10558 return 0;
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 am_cv_val_LC_MESSAGES=yes
10563 else
10564 am_cv_val_LC_MESSAGES=no
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10570 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10571 if test $am_cv_val_LC_MESSAGES = yes; then
10573 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10580 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10581 if test "${am_cv_langinfo_codeset+set}" = set; then :
10582 $as_echo_n "(cached) " >&6
10583 else
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10586 #include <langinfo.h>
10588 main ()
10590 char* cs = nl_langinfo(CODESET);
10592 return 0;
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596 am_cv_langinfo_codeset=yes
10597 else
10598 am_cv_langinfo_codeset=no
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10605 $as_echo "$am_cv_langinfo_codeset" >&6; }
10606 if test $am_cv_langinfo_codeset = yes; then
10608 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10613 # We will need to find libiberty.h and ansidecl.h
10614 saved_CFLAGS="$CFLAGS"
10615 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10616 saved_CXXFLAGS="$CXXFLAGS"
10617 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10618 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10619 strsignal strstr stpcpy strverscmp \
10620 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10621 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
10623 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10625 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10626 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #undef $ac_tr_decl
10632 #define $ac_tr_decl 1
10634 #include "ansidecl.h"
10635 #include "system.h"
10638 main ()
10640 #ifndef $ac_func
10641 char *(*pfn) = (char *(*)) $ac_func ;
10642 #endif
10644 return 0;
10646 _ACEOF
10647 if ac_fn_c_try_compile "$LINENO"; then :
10648 eval "gcc_cv_have_decl_$ac_func=yes"
10649 else
10650 eval "gcc_cv_have_decl_$ac_func=no"
10652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10658 #define $ac_tr_decl 1
10659 _ACEOF
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10664 #define $ac_tr_decl 0
10665 _ACEOF
10669 done
10672 for ac_func in getrlimit setrlimit getrusage
10674 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10676 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10677 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10682 #undef $ac_tr_decl
10683 #define $ac_tr_decl 1
10685 #include "ansidecl.h"
10686 #include "system.h"
10687 #ifdef HAVE_SYS_RESOURCE_H
10688 #include <sys/resource.h>
10689 #endif
10693 main ()
10695 #ifndef $ac_func
10696 char *(*pfn) = (char *(*)) $ac_func ;
10697 #endif
10699 return 0;
10701 _ACEOF
10702 if ac_fn_c_try_compile "$LINENO"; then :
10703 eval "gcc_cv_have_decl_$ac_func=yes"
10704 else
10705 eval "gcc_cv_have_decl_$ac_func=no"
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10712 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10713 #define $ac_tr_decl 1
10714 _ACEOF
10716 else
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10719 #define $ac_tr_decl 0
10720 _ACEOF
10724 done
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10730 #include "ansidecl.h"
10731 #include "system.h"
10732 #ifdef HAVE_SYS_RESOURCE_H
10733 #include <sys/resource.h>
10734 #endif
10737 main ()
10739 rlim_t l = 0;
10741 return 0;
10743 _ACEOF
10744 if ac_fn_c_try_compile "$LINENO"; then :
10746 else
10748 $as_echo "#define rlim_t long" >>confdefs.h
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10754 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10755 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10756 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10757 for ac_func in ldgetname
10759 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10761 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10762 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767 #undef $ac_tr_decl
10768 #define $ac_tr_decl 1
10770 #include "ansidecl.h"
10771 #include "system.h"
10772 #ifdef HAVE_LDFCN_H
10773 #undef FREAD
10774 #undef FWRITE
10775 #include <ldfcn.h>
10776 #endif
10780 main ()
10782 #ifndef $ac_func
10783 char *(*pfn) = (char *(*)) $ac_func ;
10784 #endif
10786 return 0;
10788 _ACEOF
10789 if ac_fn_c_try_compile "$LINENO"; then :
10790 eval "gcc_cv_have_decl_$ac_func=yes"
10791 else
10792 eval "gcc_cv_have_decl_$ac_func=no"
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10799 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10800 #define $ac_tr_decl 1
10801 _ACEOF
10803 else
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10806 #define $ac_tr_decl 0
10807 _ACEOF
10811 done
10814 for ac_func in times
10816 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10818 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10819 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 #undef $ac_tr_decl
10825 #define $ac_tr_decl 1
10827 #include "ansidecl.h"
10828 #include "system.h"
10829 #ifdef HAVE_SYS_TIMES_H
10830 #include <sys/times.h>
10831 #endif
10835 main ()
10837 #ifndef $ac_func
10838 char *(*pfn) = (char *(*)) $ac_func ;
10839 #endif
10841 return 0;
10843 _ACEOF
10844 if ac_fn_c_try_compile "$LINENO"; then :
10845 eval "gcc_cv_have_decl_$ac_func=yes"
10846 else
10847 eval "gcc_cv_have_decl_$ac_func=no"
10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10852 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10854 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10855 #define $ac_tr_decl 1
10856 _ACEOF
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10861 #define $ac_tr_decl 0
10862 _ACEOF
10866 done
10869 for ac_func in sigaltstack
10871 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10873 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10874 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10879 #undef $ac_tr_decl
10880 #define $ac_tr_decl 1
10882 #include "ansidecl.h"
10883 #include "system.h"
10884 #include <signal.h>
10888 main ()
10890 #ifndef $ac_func
10891 char *(*pfn) = (char *(*)) $ac_func ;
10892 #endif
10894 return 0;
10896 _ACEOF
10897 if ac_fn_c_try_compile "$LINENO"; then :
10898 eval "gcc_cv_have_decl_$ac_func=yes"
10899 else
10900 eval "gcc_cv_have_decl_$ac_func=no"
10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10905 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10907 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10908 #define $ac_tr_decl 1
10909 _ACEOF
10911 else
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10914 #define $ac_tr_decl 0
10915 _ACEOF
10919 done
10922 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10923 # prototype.
10924 ac_ext=cpp
10925 ac_cpp='$CXXCPP $CPPFLAGS'
10926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10930 for ac_func in madvise
10932 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10934 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10935 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 #undef $ac_tr_decl
10941 #define $ac_tr_decl 1
10943 #include "ansidecl.h"
10944 #include "system.h"
10948 main ()
10950 #ifndef $ac_func
10951 char *(*pfn) = (char *(*)) $ac_func ;
10952 #endif
10954 return 0;
10956 _ACEOF
10957 if ac_fn_cxx_try_compile "$LINENO"; then :
10958 eval "gcc_cv_have_decl_$ac_func=yes"
10959 else
10960 eval "gcc_cv_have_decl_$ac_func=no"
10962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10967 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10968 #define $ac_tr_decl 1
10969 _ACEOF
10971 else
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10974 #define $ac_tr_decl 0
10975 _ACEOF
10979 done
10981 ac_ext=c
10982 ac_cpp='$CPP $CPPFLAGS'
10983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10988 # More time-related stuff.
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10990 $as_echo_n "checking for struct tms... " >&6; }
10991 if test "${ac_cv_struct_tms+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 #include "ansidecl.h"
10999 #include "system.h"
11000 #ifdef HAVE_SYS_TIMES_H
11001 #include <sys/times.h>
11002 #endif
11005 main ()
11007 struct tms tms;
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_compile "$LINENO"; then :
11013 ac_cv_struct_tms=yes
11014 else
11015 ac_cv_struct_tms=no
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11020 $as_echo "$ac_cv_struct_tms" >&6; }
11021 if test $ac_cv_struct_tms = yes; then
11023 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11027 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11028 # revisit after autoconf 2.50.
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11030 $as_echo_n "checking for clock_t... " >&6; }
11031 if test "${gcc_cv_type_clock_t+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 #include "ansidecl.h"
11039 #include "system.h"
11042 main ()
11044 clock_t x;
11046 return 0;
11048 _ACEOF
11049 if ac_fn_c_try_compile "$LINENO"; then :
11050 gcc_cv_type_clock_t=yes
11051 else
11052 gcc_cv_type_clock_t=no
11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11057 $as_echo "$gcc_cv_type_clock_t" >&6; }
11058 if test $gcc_cv_type_clock_t = yes; then
11060 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11064 # Check if F_SETLKW is supported by fcntl.
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11066 $as_echo_n "checking for F_SETLKW... " >&6; }
11067 if test "${ac_cv_f_setlkw+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11074 #include <fcntl.h>
11076 main ()
11079 struct flock fl;
11080 fl.l_whence = 0;
11081 fl.l_start = 0;
11082 fl.l_len = 0;
11083 fl.l_pid = 0;
11084 return fcntl (1, F_SETLKW, &fl);
11086 return 0;
11088 _ACEOF
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090 ac_cv_f_setlkw=yes
11091 else
11092 ac_cv_f_setlkw=no
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11097 $as_echo "$ac_cv_f_setlkw" >&6; }
11098 if test $ac_cv_f_setlkw = yes; then
11100 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11104 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11105 CFLAGS="$saved_CFLAGS"
11106 CXXFLAGS="$saved_CXXFLAGS"
11108 # mkdir takes a single argument on some systems.
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11110 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11111 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 #include <sys/types.h>
11118 #ifdef HAVE_SYS_STAT_H
11119 # include <sys/stat.h>
11120 #endif
11121 #ifdef HAVE_UNISTD_H
11122 # include <unistd.h>
11123 #endif
11124 #ifdef HAVE_DIRECT_H
11125 # include <direct.h>
11126 #endif
11128 main ()
11130 mkdir ("foo", 0);
11132 return 0;
11134 _ACEOF
11135 if ac_fn_c_try_compile "$LINENO"; then :
11136 gcc_cv_mkdir_takes_one_arg=no
11137 else
11138 gcc_cv_mkdir_takes_one_arg=yes
11140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11143 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11144 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11146 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11151 # File extensions
11152 manext='.1'
11153 objext='.o'
11157 # With Setjmp/Longjmp based exception handling.
11158 # Check whether --enable-sjlj-exceptions was given.
11159 if test "${enable_sjlj_exceptions+set}" = set; then :
11160 enableval=$enable_sjlj_exceptions; case $target in
11161 *-*-hpux10*)
11162 if test $enableval != yes; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11164 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11165 enableval=yes
11168 esac
11169 force_sjlj_exceptions=yes
11170 else
11171 case $target in
11172 *-*-hpux10*)
11173 force_sjlj_exceptions=yes
11174 enableval=yes
11176 lm32*-*-*)
11177 force_sjlj_exceptions=yes
11178 enableval=yes
11181 force_sjlj_exceptions=no
11183 esac
11186 if test $force_sjlj_exceptions = yes; then
11187 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11189 cat >>confdefs.h <<_ACEOF
11190 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11191 _ACEOF
11195 # --------------------------------------------------------
11196 # Build, host, and target specific configuration fragments
11197 # --------------------------------------------------------
11199 # Collect build-machine-specific information.
11200 . ${srcdir}/config.build
11202 # Collect host-machine-specific information.
11203 . ${srcdir}/config.host
11205 target_gtfiles=
11207 # Collect target-machine-specific information.
11208 . ${srcdir}/config.gcc
11210 extra_objs="${host_extra_objs} ${extra_objs}"
11211 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11213 # Default the target-machine variables that were not explicitly set.
11214 if test x"$tm_file" = x
11215 then tm_file=$cpu_type/$cpu_type.h; fi
11217 if test x"$extra_headers" = x
11218 then extra_headers=; fi
11220 if test x$md_file = x
11221 then md_file=$cpu_type/$cpu_type.md; fi
11223 if test x$out_file = x
11224 then out_file=$cpu_type/$cpu_type.c; fi
11226 if test x"$tmake_file" = x
11227 then tmake_file=$cpu_type/t-$cpu_type
11230 # Support --enable-initfini-array.
11231 if test x$enable_initfini_array != xno; then
11232 tm_file="${tm_file} initfini-array.h"
11235 if test x"$dwarf2" = xyes
11236 then tm_file="$tm_file tm-dwarf2.h"
11239 # Say what files are being used for the output code and MD file.
11240 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11241 echo "Using \`$srcdir/config/$md_file' as machine description file."
11243 # If any of the xm_file variables contain nonexistent files, warn
11244 # about them and drop them.
11247 for x in $build_xm_file; do
11248 if test -f $srcdir/config/$x
11249 then bx="$bx $x"
11250 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11251 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11253 done
11254 build_xm_file="$bx"
11257 for x in $host_xm_file; do
11258 if test -f $srcdir/config/$x
11259 then hx="$hx $x"
11260 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11261 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11263 done
11264 host_xm_file="$hx"
11267 for x in $xm_file; do
11268 if test -f $srcdir/config/$x
11269 then tx="$tx $x"
11270 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11271 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11273 done
11274 xm_file="$tx"
11276 count=a
11277 for f in $tm_file; do
11278 count=${count}x
11279 done
11280 if test $count = ax; then
11281 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11282 else
11283 echo "Using the following target machine macro files:"
11284 for f in $tm_file; do
11285 echo " $srcdir/config/$f"
11286 done
11289 if test x$need_64bit_hwint = xyes; then
11291 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11295 if test x$use_long_long_for_widest_fast_int = xyes; then
11297 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11301 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11303 cat >>confdefs.h <<_ACEOF
11304 #define HAVE_GNU_LD $gnu_ld_bool
11305 _ACEOF
11308 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11310 cat >>confdefs.h <<_ACEOF
11311 #define HAVE_GNU_AS $gnu_as_bool
11312 _ACEOF
11315 count=a
11316 for f in $host_xm_file; do
11317 count=${count}x
11318 done
11319 if test $count = a; then
11321 elif test $count = ax; then
11322 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11323 else
11324 echo "Using the following host machine macro files:"
11325 for f in $host_xm_file; do
11326 echo " $srcdir/config/$f"
11327 done
11329 echo "Using ${out_host_hook_obj} for host machine hooks."
11331 if test "$host_xm_file" != "$build_xm_file"; then
11332 count=a
11333 for f in $build_xm_file; do
11334 count=${count}x
11335 done
11336 if test $count = a; then
11338 elif test $count = ax; then
11339 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11340 else
11341 echo "Using the following build machine macro files:"
11342 for f in $build_xm_file; do
11343 echo " $srcdir/config/$f"
11344 done
11348 if test -n "$configured_native_system_header_dir"; then
11349 native_system_header_dir=$configured_native_system_header_dir
11351 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11354 case ${host} in
11355 powerpc*-*-darwin*)
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11357 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11358 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11359 $as_echo_n "(cached) " >&6
11360 else
11361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362 /* end confdefs.h. */
11364 #include <sys/cdefs.h>
11365 #include <sys/signal.h>
11366 #include <ucontext.h>
11367 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11369 _ACEOF
11370 if ac_fn_c_try_compile "$LINENO"; then :
11371 gcc_cv_mcontext_underscores=no
11372 else
11373 gcc_cv_mcontext_underscores=yes
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11378 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11379 if test $gcc_cv_mcontext_underscores = yes; then
11381 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11385 esac
11387 # ---------
11388 # Threading
11389 # ---------
11391 # Check if a valid thread package
11392 case ${enable_threads} in
11393 "" | no)
11394 # No threads
11395 target_thread_file='single'
11397 yes)
11398 # default
11399 target_thread_file='single'
11401 aix | dce | lynx | mipssde | posix | rtems | \
11402 single | tpf | vxworks | win32)
11403 target_thread_file=${enable_threads}
11406 echo "${enable_threads} is an unknown thread package" 1>&2
11407 exit 1
11409 esac
11411 if test x${thread_file} = x; then
11412 # No thread file set by target-specific clauses in config.gcc,
11413 # so use file chosen by default logic above
11414 thread_file=${target_thread_file}
11417 # --------
11418 # UNSORTED
11419 # --------
11421 use_cxa_atexit=no
11422 if test x$enable___cxa_atexit = xyes || \
11423 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11424 if test x$host = x$target; then
11425 case $host in
11426 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11427 # keyed to flag_use_cxa_atexit
11428 *-*-mingw32*)
11429 use_cxa_atexit=yes
11431 powerpc-ibm-aix*)
11432 use_cxa_atexit=yes
11435 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11436 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11437 use_cxa_atexit=yes
11438 else
11439 echo "__cxa_atexit can't be enabled on this target"
11443 esac
11444 else
11445 # We can't check for __cxa_atexit when building a cross, so assume
11446 # it is available
11447 use_cxa_atexit=yes
11449 if test x$use_cxa_atexit = xyes; then
11451 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11456 # Look for a file containing extra machine modes.
11457 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11458 extra_modes_file='$(srcdir)'/config/${extra_modes}
11461 cat >>confdefs.h <<_ACEOF
11462 #define EXTRA_MODES_FILE "config/$extra_modes"
11463 _ACEOF
11467 # Convert extra_options into a form suitable for Makefile use.
11468 extra_opt_files=
11469 all_opt_files=
11470 for f in $extra_options; do
11471 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11472 all_opt_files="$all_opt_files $srcdir/config/$f"
11473 done
11476 # auto-host.h is the file containing items generated by autoconf and is
11477 # the first file included by config.h.
11478 # If host=build, it is correct to have bconfig include auto-host.h
11479 # as well. If host!=build, we are in error and need to do more
11480 # work to find out the build config parameters.
11481 if test x$host = x$build
11482 then
11483 build_auto=auto-host.h
11484 else
11485 # We create a subdir, then run autoconf in the subdir.
11486 # To prevent recursion we set host and build for the new
11487 # invocation of configure to the build for this invocation
11488 # of configure.
11489 tempdir=build.$$
11490 rm -rf $tempdir
11491 mkdir $tempdir
11492 cd $tempdir
11493 case ${srcdir} in
11494 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11495 *) realsrcdir=../${srcdir};;
11496 esac
11497 # Clearing GMPINC is necessary to prevent host headers being
11498 # used by the build compiler. Defining GENERATOR_FILE stops
11499 # system.h from including gmp.h.
11500 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11501 CXX="${CXX_FOR_BUILD}" CXXFLAGS="${CXXFLAGS_FOR_BUILD}" \
11502 LD="${LD_FOR_BUILD}" LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11503 GMPINC="" CPPFLAGS="${CPPFLAGS} -DGENERATOR_FILE" \
11504 ${realsrcdir}/configure \
11505 --enable-languages=${enable_languages-all} \
11506 --target=$target_alias --host=$build_alias --build=$build_alias
11508 # We just finished tests for the build machine, so rename
11509 # the file auto-build.h in the gcc directory.
11510 mv auto-host.h ../auto-build.h
11511 cd ..
11512 rm -rf $tempdir
11513 build_auto=auto-build.h
11517 tm_file="${tm_file} defaults.h"
11518 tm_p_file="${tm_p_file} tm-preds.h"
11519 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11520 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11521 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11522 # put this back in temporarily.
11523 xm_file="auto-host.h ansidecl.h ${xm_file}"
11525 # --------
11526 # UNSORTED
11527 # --------
11529 # Compile in configure arguments.
11530 if test -f configargs.h ; then
11531 # Being re-configured.
11532 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11533 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11534 else
11535 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11538 # Double all backslashes and backslash all quotes to turn
11539 # gcc_config_arguments into a C string.
11540 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11541 $gcc_config_arguments
11543 gcc_config_arguments_str=`cat conftest.out`
11544 rm -f conftest.out
11546 cat > configargs.h <<EOF
11547 /* Generated automatically. */
11548 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11549 static const char thread_model[] = "$thread_file";
11551 static const struct {
11552 const char *name, *value;
11553 } configure_default_options[] = $configure_default_options;
11556 gcc_BASEVER=`cat $srcdir/BASE-VER`
11557 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11558 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11559 if test -f $srcdir/REVISION ; then
11560 gcc_REVISION=`cat $srcdir/REVISION`
11561 else
11562 gcc_REVISION=""
11564 cat > plugin-version.h <<EOF
11565 #include "configargs.h"
11567 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11568 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11569 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11570 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11572 static char basever[] = "$gcc_BASEVER";
11573 static char datestamp[] = "$gcc_DATESTAMP";
11574 static char devphase[] = "$gcc_DEVPHASE";
11575 static char revision[] = "$gcc_REVISION";
11577 /* FIXME plugins: We should make the version information more precise.
11578 One way to do is to add a checksum. */
11580 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11581 devphase, revision,
11582 configuration_arguments};
11585 # Internationalization
11586 # If we haven't got the data from the intl directory,
11587 # assume NLS is disabled.
11588 USE_NLS=no
11589 LIBINTL=
11590 LIBINTL_DEP=
11591 INCINTL=
11592 XGETTEXT=
11593 GMSGFMT=
11594 POSUB=
11596 if test -f ../intl/config.intl; then
11597 . ../intl/config.intl
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11600 $as_echo_n "checking whether NLS is requested... " >&6; }
11601 if test x"$USE_NLS" != xyes; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11606 $as_echo "yes" >&6; }
11608 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11612 $as_echo_n "checking for catalogs to be installed... " >&6; }
11613 # Look for .po and .gmo files in the source directory.
11614 CATALOGS=
11615 XLINGUAS=
11616 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11617 # If there aren't any .gmo files the shell will give us the
11618 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11619 # weeded out.
11620 case "$cat" in *\**)
11621 continue;;
11622 esac
11623 # The quadruple backslash is collapsed to a double backslash
11624 # by the backticks, then collapsed again by the double quotes,
11625 # leaving us with one backslash in the sed expression (right
11626 # before the dot that mustn't act as a wildcard).
11627 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11628 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11629 # The user is allowed to set LINGUAS to a list of languages to
11630 # install catalogs for. If it's empty that means "all of them."
11631 if test "x$LINGUAS" = x; then
11632 CATALOGS="$CATALOGS $cat"
11633 XLINGUAS="$XLINGUAS $lang"
11634 else
11635 case "$LINGUAS" in *$lang*)
11636 CATALOGS="$CATALOGS $cat"
11637 XLINGUAS="$XLINGUAS $lang"
11639 esac
11641 done
11642 LINGUAS="$XLINGUAS"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11644 $as_echo "$LINGUAS" >&6; }
11647 DATADIRNAME=share
11649 INSTOBJEXT=.mo
11651 GENCAT=gencat
11653 CATOBJEXT=.gmo
11657 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11658 # -liconv on the link line twice.
11659 case "$LIBINTL" in *$LIBICONV*)
11660 LIBICONV= ;;
11661 esac
11663 # Check whether --enable-secureplt was given.
11664 if test "${enable_secureplt+set}" = set; then :
11665 enableval=$enable_secureplt;
11669 # Check whether --enable-leading-mingw64-underscores was given.
11670 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11671 enableval=$enable_leading_mingw64_underscores;
11674 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11676 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11680 # Check whether --enable-cld was given.
11681 if test "${enable_cld+set}" = set; then :
11682 enableval=$enable_cld;
11683 else
11684 enable_cld=no
11688 # Check whether --enable-frame-pointer was given.
11689 if test "${enable_frame_pointer+set}" = set; then :
11690 enableval=$enable_frame_pointer;
11691 else
11693 case $target_os in
11694 linux* | darwin[8912]*)
11695 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11696 # DWARF2.
11697 enable_frame_pointer=no
11700 enable_frame_pointer=yes
11702 esac
11707 # Windows32 Registry support for specifying GCC installation paths.
11708 # Check whether --enable-win32-registry was given.
11709 if test "${enable_win32_registry+set}" = set; then :
11710 enableval=$enable_win32_registry;
11714 case $host_os in
11715 win32 | pe | cygwin* | mingw32* | uwin*)
11716 if test "x$enable_win32_registry" != xno; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11718 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11719 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11720 $as_echo_n "(cached) " >&6
11721 else
11722 ac_func_search_save_LIBS=$LIBS
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729 #ifdef __cplusplus
11730 extern "C"
11731 #endif
11732 char RegOpenKeyExA ();
11734 main ()
11736 return RegOpenKeyExA ();
11738 return 0;
11740 _ACEOF
11741 for ac_lib in '' advapi32; do
11742 if test -z "$ac_lib"; then
11743 ac_res="none required"
11744 else
11745 ac_res=-l$ac_lib
11746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11748 if ac_fn_c_try_link "$LINENO"; then :
11749 ac_cv_search_RegOpenKeyExA=$ac_res
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext
11753 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11754 break
11756 done
11757 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11759 else
11760 ac_cv_search_RegOpenKeyExA=no
11762 rm conftest.$ac_ext
11763 LIBS=$ac_func_search_save_LIBS
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11766 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11767 ac_res=$ac_cv_search_RegOpenKeyExA
11768 if test "$ac_res" != no; then :
11769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11771 else
11772 enable_win32_registry=no
11777 if test "x$enable_win32_registry" != xno; then
11779 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11782 if test "x$enable_win32_registry" != xyes \
11783 && test "x$enable_win32_registry" != x; then
11785 cat >>confdefs.h <<_ACEOF
11786 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11787 _ACEOF
11792 esac
11794 # Get an absolute path to the GCC top-level source directory
11795 holddir=`${PWDCMD-pwd}`
11796 cd $srcdir
11797 topdir=`${PWDCMD-pwd}`
11798 cd $holddir
11800 # Conditionalize the makefile for this host machine.
11801 xmake_file=
11802 for f in ${host_xmake_file}
11804 if test -f ${srcdir}/config/$f
11805 then
11806 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11808 done
11810 # Conditionalize the makefile for this target machine.
11811 tmake_file_=
11812 for f in ${tmake_file}
11814 if test -f ${srcdir}/config/$f
11815 then
11816 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11818 done
11819 tmake_file="${tmake_file_}"
11821 out_object_file=`basename $out_file .c`.o
11822 common_out_object_file=`basename $common_out_file .c`.o
11824 tm_file_list="options.h"
11825 tm_include_list="options.h insn-constants.h"
11826 for f in $tm_file; do
11827 case $f in
11828 ./* )
11829 f=`echo $f | sed 's/^..//'`
11830 tm_file_list="${tm_file_list} $f"
11831 tm_include_list="${tm_include_list} $f"
11833 defaults.h )
11834 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11835 tm_include_list="${tm_include_list} $f"
11838 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11839 tm_include_list="${tm_include_list} config/$f"
11841 esac
11842 done
11844 tm_p_file_list=
11845 tm_p_include_list=
11846 for f in $tm_p_file; do
11847 case $f in
11848 tm-preds.h )
11849 tm_p_file_list="${tm_p_file_list} $f"
11850 tm_p_include_list="${tm_p_include_list} $f"
11853 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11854 tm_p_include_list="${tm_p_include_list} config/$f"
11855 esac
11856 done
11858 xm_file_list=
11859 xm_include_list=
11860 for f in $xm_file; do
11861 case $f in
11862 ansidecl.h )
11863 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11864 xm_include_list="${xm_include_list} $f"
11866 auto-host.h )
11867 xm_file_list="${xm_file_list} $f"
11868 xm_include_list="${xm_include_list} $f"
11871 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11872 xm_include_list="${xm_include_list} config/$f"
11874 esac
11875 done
11877 host_xm_file_list=
11878 host_xm_include_list=
11879 for f in $host_xm_file; do
11880 case $f in
11881 ansidecl.h )
11882 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11883 host_xm_include_list="${host_xm_include_list} $f"
11885 auto-host.h )
11886 host_xm_file_list="${host_xm_file_list} $f"
11887 host_xm_include_list="${host_xm_include_list} $f"
11890 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11891 host_xm_include_list="${host_xm_include_list} config/$f"
11893 esac
11894 done
11896 build_xm_file_list=
11897 for f in $build_xm_file; do
11898 case $f in
11899 ansidecl.h )
11900 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11901 build_xm_include_list="${build_xm_include_list} $f"
11903 auto-build.h | auto-host.h )
11904 build_xm_file_list="${build_xm_file_list} $f"
11905 build_xm_include_list="${build_xm_include_list} $f"
11908 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11909 build_xm_include_list="${build_xm_include_list} config/$f"
11911 esac
11912 done
11914 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11915 # cross-compiler which does not use the native headers and libraries.
11916 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11917 CROSS=
11918 ALL=all.internal
11919 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11921 if test "x$with_build_sysroot" != x; then
11922 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11923 else
11924 # This value is used, even on a native system, because
11925 # CROSS_SYSTEM_HEADER_DIR is just
11926 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11927 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11930 if test x$host != x$target
11931 then
11932 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11933 ALL=all.cross
11934 SYSTEM_HEADER_DIR=$build_system_header_dir
11935 case "$host","$target" in
11936 # Darwin crosses can use the host system's libraries and headers,
11937 # because of the fat library support. Of course, it must be the
11938 # same version of Darwin on both sides. Allow the user to
11939 # just say --target=foo-darwin without a version number to mean
11940 # "the version on this system".
11941 *-*-darwin*,*-*-darwin*)
11942 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11943 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11944 if test $hostos = $targetos -o $targetos = darwin ; then
11945 CROSS=
11946 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11947 with_headers=yes
11951 i?86-*-*,x86_64-*-* \
11952 | powerpc*-*-*,powerpc64*-*-*)
11953 CROSS="$CROSS -DNATIVE_CROSS" ;;
11954 esac
11956 case $target in
11957 *-*-mingw*)
11958 if test "x$with_headers" = x; then
11959 with_headers=yes
11964 esac
11965 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11966 SYSTEM_HEADER_DIR=$build_system_header_dir
11969 # If this is a cross-compiler that does not
11970 # have its own set of headers then define
11971 # inhibit_libc
11973 # If this is using newlib, without having the headers available now,
11974 # then define inhibit_libc in LIBGCC2_CFLAGS.
11975 # This prevents libgcc2 from containing any code which requires libc
11976 # support.
11977 : ${inhibit_libc=false}
11978 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11979 test x$with_newlib = xyes ; } &&
11980 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11981 inhibit_libc=true
11985 # When building gcc with a cross-compiler, we need to adjust things so
11986 # that the generator programs are still built with the native compiler.
11987 # Also, we cannot run fixincludes.
11989 # These are the normal (build=host) settings:
11990 CC_FOR_BUILD='$(CC)'
11991 CXX_FOR_BUILD='$(CXX)'
11992 BUILD_CFLAGS='$(ALL_CFLAGS)'
11993 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11994 BUILD_LDFLAGS='$(LDFLAGS)'
11995 STMP_FIXINC=stmp-fixinc
11997 # And these apply if build != host, or we are generating coverage data
11998 if test x$build != x$host || test "x$coverage_flags" != x
11999 then
12000 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12001 BUILD_CXXFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12002 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
12005 # Expand extra_headers to include complete path.
12006 # This substitutes for lots of t-* files.
12007 extra_headers_list=
12008 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12009 for file in ${extra_headers} ; do
12010 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12011 done
12013 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12014 if test x"$use_gcc_tgmath" = xyes
12015 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12018 # Define collect2 in Makefile.
12019 case $host_can_use_collect2 in
12020 no) collect2= ;;
12021 *) collect2='collect2$(exeext)' ;;
12022 esac
12025 # Add a definition of USE_COLLECT2 if system wants one.
12026 case $use_collect2 in
12027 no) use_collect2= ;;
12028 "") ;;
12030 host_xm_defines="${host_xm_defines} USE_COLLECT2"
12031 xm_defines="${xm_defines} USE_COLLECT2"
12032 case $host_can_use_collect2 in
12034 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
12036 esac
12038 esac
12041 cat >>confdefs.h <<_ACEOF
12042 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12043 _ACEOF
12046 # ---------------------------
12047 # Assembler & linker features
12048 # ---------------------------
12050 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12051 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12052 # However when ld-new is first executed from the build tree, libtool will
12053 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12054 # to the build tree. While doing this we need to use the previous-stage
12055 # linker, or we have an infinite loop. The presence of a shell script as
12056 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12057 # the gcc/collect-ld script. So we need to know how libtool works, or
12058 # exec-tool will fail.
12061 case `pwd` in
12062 *\ * | *\ *)
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12064 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12065 esac
12069 macro_version='2.2.7a'
12070 macro_revision='1.3134'
12084 ltmain="$ac_aux_dir/ltmain.sh"
12086 # Backslashify metacharacters that are still active within
12087 # double-quoted strings.
12088 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12090 # Same as above, but do not quote variable references.
12091 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12093 # Sed substitution to delay expansion of an escaped shell variable in a
12094 # double_quote_subst'ed string.
12095 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12097 # Sed substitution to delay expansion of an escaped single quote.
12098 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12100 # Sed substitution to avoid accidental globbing in evaled expressions
12101 no_glob_subst='s/\*/\\\*/g'
12103 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12108 $as_echo_n "checking how to print strings... " >&6; }
12109 # Test print first, because it will be a builtin if present.
12110 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12111 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12112 ECHO='print -r --'
12113 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12114 ECHO='printf %s\n'
12115 else
12116 # Use this function as a fallback that always works.
12117 func_fallback_echo ()
12119 eval 'cat <<_LTECHO_EOF
12121 _LTECHO_EOF'
12123 ECHO='func_fallback_echo'
12126 # func_echo_all arg...
12127 # Invoke $ECHO with all args, space-separated.
12128 func_echo_all ()
12130 $ECHO ""
12133 case "$ECHO" in
12134 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12135 $as_echo "printf" >&6; } ;;
12136 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12137 $as_echo "print -r" >&6; } ;;
12138 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12139 $as_echo "cat" >&6; } ;;
12140 esac
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12156 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12157 if test "${ac_cv_path_SED+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
12159 else
12160 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12161 for ac_i in 1 2 3 4 5 6 7; do
12162 ac_script="$ac_script$as_nl$ac_script"
12163 done
12164 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12165 { ac_script=; unset ac_script;}
12166 if test -z "$SED"; then
12167 ac_path_SED_found=false
12168 # Loop through the user's path and test for each of PROGNAME-LIST
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
12174 for ac_prog in sed gsed; do
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12177 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12178 # Check for GNU ac_path_SED and select it if it is found.
12179 # Check for GNU $ac_path_SED
12180 case `"$ac_path_SED" --version 2>&1` in
12181 *GNU*)
12182 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12184 ac_count=0
12185 $as_echo_n 0123456789 >"conftest.in"
12186 while :
12188 cat "conftest.in" "conftest.in" >"conftest.tmp"
12189 mv "conftest.tmp" "conftest.in"
12190 cp "conftest.in" "conftest.nl"
12191 $as_echo '' >> "conftest.nl"
12192 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12194 as_fn_arith $ac_count + 1 && ac_count=$as_val
12195 if test $ac_count -gt ${ac_path_SED_max-0}; then
12196 # Best one so far, save it but keep looking for a better one
12197 ac_cv_path_SED="$ac_path_SED"
12198 ac_path_SED_max=$ac_count
12200 # 10*(2^10) chars as input seems more than enough
12201 test $ac_count -gt 10 && break
12202 done
12203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12204 esac
12206 $ac_path_SED_found && break 3
12207 done
12208 done
12209 done
12210 IFS=$as_save_IFS
12211 if test -z "$ac_cv_path_SED"; then
12212 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12214 else
12215 ac_cv_path_SED=$SED
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12220 $as_echo "$ac_cv_path_SED" >&6; }
12221 SED="$ac_cv_path_SED"
12222 rm -f conftest.sed
12224 test -z "$SED" && SED=sed
12225 Xsed="$SED -e 1s/^X//"
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12238 $as_echo_n "checking for fgrep... " >&6; }
12239 if test "${ac_cv_path_FGREP+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12243 then ac_cv_path_FGREP="$GREP -F"
12244 else
12245 if test -z "$FGREP"; then
12246 ac_path_FGREP_found=false
12247 # Loop through the user's path and test for each of PROGNAME-LIST
12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
12253 for ac_prog in fgrep; do
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12256 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12257 # Check for GNU ac_path_FGREP and select it if it is found.
12258 # Check for GNU $ac_path_FGREP
12259 case `"$ac_path_FGREP" --version 2>&1` in
12260 *GNU*)
12261 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12263 ac_count=0
12264 $as_echo_n 0123456789 >"conftest.in"
12265 while :
12267 cat "conftest.in" "conftest.in" >"conftest.tmp"
12268 mv "conftest.tmp" "conftest.in"
12269 cp "conftest.in" "conftest.nl"
12270 $as_echo 'FGREP' >> "conftest.nl"
12271 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12273 as_fn_arith $ac_count + 1 && ac_count=$as_val
12274 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12275 # Best one so far, save it but keep looking for a better one
12276 ac_cv_path_FGREP="$ac_path_FGREP"
12277 ac_path_FGREP_max=$ac_count
12279 # 10*(2^10) chars as input seems more than enough
12280 test $ac_count -gt 10 && break
12281 done
12282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12283 esac
12285 $ac_path_FGREP_found && break 3
12286 done
12287 done
12288 done
12289 IFS=$as_save_IFS
12290 if test -z "$ac_cv_path_FGREP"; then
12291 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12293 else
12294 ac_cv_path_FGREP=$FGREP
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12300 $as_echo "$ac_cv_path_FGREP" >&6; }
12301 FGREP="$ac_cv_path_FGREP"
12304 test -z "$GREP" && GREP=grep
12324 # Check whether --with-gnu-ld was given.
12325 if test "${with_gnu_ld+set}" = set; then :
12326 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12327 else
12328 with_gnu_ld=no
12331 ac_prog=ld
12332 if test "$GCC" = yes; then
12333 # Check if gcc -print-prog-name=ld gives a path.
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12335 $as_echo_n "checking for ld used by $CC... " >&6; }
12336 case $host in
12337 *-*-mingw*)
12338 # gcc leaves a trailing carriage return which upsets mingw
12339 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12341 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12342 esac
12343 case $ac_prog in
12344 # Accept absolute paths.
12345 [\\/]* | ?:[\\/]*)
12346 re_direlt='/[^/][^/]*/\.\./'
12347 # Canonicalize the pathname of ld
12348 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12349 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12350 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12351 done
12352 test -z "$LD" && LD="$ac_prog"
12355 # If it fails, then pretend we aren't using GCC.
12356 ac_prog=ld
12359 # If it is relative, then search for the first ld in PATH.
12360 with_gnu_ld=unknown
12362 esac
12363 elif test "$with_gnu_ld" = yes; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12365 $as_echo_n "checking for GNU ld... " >&6; }
12366 else
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12368 $as_echo_n "checking for non-GNU ld... " >&6; }
12370 if test "${lt_cv_path_LD+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 if test -z "$LD"; then
12374 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12375 for ac_dir in $PATH; do
12376 IFS="$lt_save_ifs"
12377 test -z "$ac_dir" && ac_dir=.
12378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12379 lt_cv_path_LD="$ac_dir/$ac_prog"
12380 # Check to see if the program is GNU ld. I'd rather use --version,
12381 # but apparently some variants of GNU ld only accept -v.
12382 # Break only if it was the GNU/non-GNU ld that we prefer.
12383 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12384 *GNU* | *'with BFD'*)
12385 test "$with_gnu_ld" != no && break
12388 test "$with_gnu_ld" != yes && break
12390 esac
12392 done
12393 IFS="$lt_save_ifs"
12394 else
12395 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12399 LD="$lt_cv_path_LD"
12400 if test -n "$LD"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12402 $as_echo "$LD" >&6; }
12403 else
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12407 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12409 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12410 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12414 case `$LD -v 2>&1 </dev/null` in
12415 *GNU* | *'with BFD'*)
12416 lt_cv_prog_gnu_ld=yes
12419 lt_cv_prog_gnu_ld=no
12421 esac
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12424 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12425 with_gnu_ld=$lt_cv_prog_gnu_ld
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12436 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12437 if test "${lt_cv_path_NM+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 if test -n "$NM"; then
12441 # Let the user override the test.
12442 lt_cv_path_NM="$NM"
12443 else
12444 lt_nm_to_check="${ac_tool_prefix}nm"
12445 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12446 lt_nm_to_check="$lt_nm_to_check nm"
12448 for lt_tmp_nm in $lt_nm_to_check; do
12449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12450 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12451 IFS="$lt_save_ifs"
12452 test -z "$ac_dir" && ac_dir=.
12453 tmp_nm="$ac_dir/$lt_tmp_nm"
12454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12455 # Check to see if the nm accepts a BSD-compat flag.
12456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12457 # nm: unknown option "B" ignored
12458 # Tru64's nm complains that /dev/null is an invalid object file
12459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12460 */dev/null* | *'Invalid file or object type'*)
12461 lt_cv_path_NM="$tmp_nm -B"
12462 break
12465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12466 */dev/null*)
12467 lt_cv_path_NM="$tmp_nm -p"
12468 break
12471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12472 continue # so that we can try to find one that supports BSD flags
12474 esac
12476 esac
12478 done
12479 IFS="$lt_save_ifs"
12480 done
12481 : ${lt_cv_path_NM=no}
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12485 $as_echo "$lt_cv_path_NM" >&6; }
12486 if test "$lt_cv_path_NM" != "no"; then
12487 NM="$lt_cv_path_NM"
12488 else
12489 # Didn't find any BSD compatible name lister, look for dumpbin.
12490 if test -n "$DUMPBIN"; then :
12491 # Let the user override the test.
12492 else
12493 if test -n "$ac_tool_prefix"; then
12494 for ac_prog in dumpbin "link -dump"
12496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12499 $as_echo_n "checking for $ac_word... " >&6; }
12500 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12502 else
12503 if test -n "$DUMPBIN"; then
12504 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12505 else
12506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12507 for as_dir in $PATH
12509 IFS=$as_save_IFS
12510 test -z "$as_dir" && as_dir=.
12511 for ac_exec_ext in '' $ac_executable_extensions; do
12512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12513 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 break 2
12517 done
12518 done
12519 IFS=$as_save_IFS
12523 DUMPBIN=$ac_cv_prog_DUMPBIN
12524 if test -n "$DUMPBIN"; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12526 $as_echo "$DUMPBIN" >&6; }
12527 else
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12529 $as_echo "no" >&6; }
12533 test -n "$DUMPBIN" && break
12534 done
12536 if test -z "$DUMPBIN"; then
12537 ac_ct_DUMPBIN=$DUMPBIN
12538 for ac_prog in dumpbin "link -dump"
12540 # Extract the first word of "$ac_prog", so it can be a program name with args.
12541 set dummy $ac_prog; ac_word=$2
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12543 $as_echo_n "checking for $ac_word... " >&6; }
12544 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 if test -n "$ac_ct_DUMPBIN"; then
12548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12549 else
12550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551 for as_dir in $PATH
12553 IFS=$as_save_IFS
12554 test -z "$as_dir" && as_dir=.
12555 for ac_exec_ext in '' $ac_executable_extensions; do
12556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12557 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12559 break 2
12561 done
12562 done
12563 IFS=$as_save_IFS
12567 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12568 if test -n "$ac_ct_DUMPBIN"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12570 $as_echo "$ac_ct_DUMPBIN" >&6; }
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12577 test -n "$ac_ct_DUMPBIN" && break
12578 done
12580 if test "x$ac_ct_DUMPBIN" = x; then
12581 DUMPBIN=":"
12582 else
12583 case $cross_compiling:$ac_tool_warned in
12584 yes:)
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12587 ac_tool_warned=yes ;;
12588 esac
12589 DUMPBIN=$ac_ct_DUMPBIN
12593 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12594 *COFF*)
12595 DUMPBIN="$DUMPBIN -symbols"
12598 DUMPBIN=:
12600 esac
12603 if test "$DUMPBIN" != ":"; then
12604 NM="$DUMPBIN"
12607 test -z "$NM" && NM=nm
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12615 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12616 if test "${lt_cv_nm_interface+set}" = set; then :
12617 $as_echo_n "(cached) " >&6
12618 else
12619 lt_cv_nm_interface="BSD nm"
12620 echo "int some_variable = 0;" > conftest.$ac_ext
12621 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12622 (eval "$ac_compile" 2>conftest.err)
12623 cat conftest.err >&5
12624 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12625 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12626 cat conftest.err >&5
12627 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12628 cat conftest.out >&5
12629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12630 lt_cv_nm_interface="MS dumpbin"
12632 rm -f conftest*
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12635 $as_echo "$lt_cv_nm_interface" >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12638 $as_echo_n "checking whether ln -s works... " >&6; }
12639 LN_S=$as_ln_s
12640 if test "$LN_S" = "ln -s"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642 $as_echo "yes" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12645 $as_echo "no, using $LN_S" >&6; }
12648 # find the maximum length of command line arguments
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12650 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12651 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12655 teststring="ABCD"
12657 case $build_os in
12658 msdosdjgpp*)
12659 # On DJGPP, this test can blow up pretty badly due to problems in libc
12660 # (any single argument exceeding 2000 bytes causes a buffer overrun
12661 # during glob expansion). Even if it were fixed, the result of this
12662 # check would be larger than it should be.
12663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12666 gnu*)
12667 # Under GNU Hurd, this test is not required because there is
12668 # no limit to the length of command line arguments.
12669 # Libtool will interpret -1 as no limit whatsoever
12670 lt_cv_sys_max_cmd_len=-1;
12673 cygwin* | mingw* | cegcc*)
12674 # On Win9x/ME, this test blows up -- it succeeds, but takes
12675 # about 5 minutes as the teststring grows exponentially.
12676 # Worse, since 9x/ME are not pre-emptively multitasking,
12677 # you end up with a "frozen" computer, even though with patience
12678 # the test eventually succeeds (with a max line length of 256k).
12679 # Instead, let's just punt: use the minimum linelength reported by
12680 # all of the supported platforms: 8192 (on NT/2K/XP).
12681 lt_cv_sys_max_cmd_len=8192;
12684 mint*)
12685 # On MiNT this can take a long time and run out of memory.
12686 lt_cv_sys_max_cmd_len=8192;
12689 amigaos*)
12690 # On AmigaOS with pdksh, this test takes hours, literally.
12691 # So we just punt and use a minimum line length of 8192.
12692 lt_cv_sys_max_cmd_len=8192;
12695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12696 # This has been around since 386BSD, at least. Likely further.
12697 if test -x /sbin/sysctl; then
12698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12699 elif test -x /usr/sbin/sysctl; then
12700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12701 else
12702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12704 # And add a safety zone
12705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12709 interix*)
12710 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12711 lt_cv_sys_max_cmd_len=196608
12714 osf*)
12715 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12716 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12717 # nice to cause kernel panics so lets avoid the loop below.
12718 # First set a reasonable default.
12719 lt_cv_sys_max_cmd_len=16384
12721 if test -x /sbin/sysconfig; then
12722 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12723 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12724 esac
12727 sco3.2v5*)
12728 lt_cv_sys_max_cmd_len=102400
12730 sysv5* | sco5v6* | sysv4.2uw2*)
12731 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12732 if test -n "$kargmax"; then
12733 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12734 else
12735 lt_cv_sys_max_cmd_len=32768
12739 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12740 if test -n "$lt_cv_sys_max_cmd_len"; then
12741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12743 else
12744 # Make teststring a little bigger before we do anything with it.
12745 # a 1K string should be a reasonable start.
12746 for i in 1 2 3 4 5 6 7 8 ; do
12747 teststring=$teststring$teststring
12748 done
12749 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12750 # If test is not a shell built-in, we'll probably end up computing a
12751 # maximum length that is only half of the actual maximum length, but
12752 # we can't tell.
12753 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12754 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12755 test $i != 17 # 1/2 MB should be enough
12757 i=`expr $i + 1`
12758 teststring=$teststring$teststring
12759 done
12760 # Only check the string length outside the loop.
12761 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12762 teststring=
12763 # Add a significant safety factor because C++ compilers can tack on
12764 # massive amounts of additional arguments before passing them to the
12765 # linker. It appears as though 1/2 is a usable value.
12766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12769 esac
12773 if test -n $lt_cv_sys_max_cmd_len ; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12775 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12776 else
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12778 $as_echo "none" >&6; }
12780 max_cmd_len=$lt_cv_sys_max_cmd_len
12787 : ${CP="cp -f"}
12788 : ${MV="mv -f"}
12789 : ${RM="rm -f"}
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12792 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12793 # Try some XSI features
12794 xsi_shell=no
12795 ( _lt_dummy="a/b/c"
12796 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12797 = c,a/b,, \
12798 && eval 'test $(( 1 + 1 )) -eq 2 \
12799 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12800 && xsi_shell=yes
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12802 $as_echo "$xsi_shell" >&6; }
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12806 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12807 lt_shell_append=no
12808 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12809 >/dev/null 2>&1 \
12810 && lt_shell_append=yes
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12812 $as_echo "$lt_shell_append" >&6; }
12815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12816 lt_unset=unset
12817 else
12818 lt_unset=false
12825 # test EBCDIC or ASCII
12826 case `echo X|tr X '\101'` in
12827 A) # ASCII based system
12828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12829 lt_SP2NL='tr \040 \012'
12830 lt_NL2SP='tr \015\012 \040\040'
12832 *) # EBCDIC based system
12833 lt_SP2NL='tr \100 \n'
12834 lt_NL2SP='tr \r\n \100\100'
12836 esac
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12847 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12848 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 lt_cv_ld_reload_flag='-r'
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12854 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12855 reload_flag=$lt_cv_ld_reload_flag
12856 case $reload_flag in
12857 "" | " "*) ;;
12858 *) reload_flag=" $reload_flag" ;;
12859 esac
12860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12861 case $host_os in
12862 darwin*)
12863 if test "$GCC" = yes; then
12864 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12865 else
12866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12869 esac
12879 if test -n "$ac_tool_prefix"; then
12880 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12881 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883 $as_echo_n "checking for $ac_word... " >&6; }
12884 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 if test -n "$OBJDUMP"; then
12888 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12889 else
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
12896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12897 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12899 break 2
12901 done
12902 done
12903 IFS=$as_save_IFS
12907 OBJDUMP=$ac_cv_prog_OBJDUMP
12908 if test -n "$OBJDUMP"; then
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12910 $as_echo "$OBJDUMP" >&6; }
12911 else
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913 $as_echo "no" >&6; }
12918 if test -z "$ac_cv_prog_OBJDUMP"; then
12919 ac_ct_OBJDUMP=$OBJDUMP
12920 # Extract the first word of "objdump", so it can be a program name with args.
12921 set dummy objdump; ac_word=$2
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12923 $as_echo_n "checking for $ac_word... " >&6; }
12924 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 if test -n "$ac_ct_OBJDUMP"; then
12928 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12929 else
12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12933 IFS=$as_save_IFS
12934 test -z "$as_dir" && as_dir=.
12935 for ac_exec_ext in '' $ac_executable_extensions; do
12936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12937 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939 break 2
12941 done
12942 done
12943 IFS=$as_save_IFS
12947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12948 if test -n "$ac_ct_OBJDUMP"; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12950 $as_echo "$ac_ct_OBJDUMP" >&6; }
12951 else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12956 if test "x$ac_ct_OBJDUMP" = x; then
12957 OBJDUMP="false"
12958 else
12959 case $cross_compiling:$ac_tool_warned in
12960 yes:)
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12963 ac_tool_warned=yes ;;
12964 esac
12965 OBJDUMP=$ac_ct_OBJDUMP
12967 else
12968 OBJDUMP="$ac_cv_prog_OBJDUMP"
12971 test -z "$OBJDUMP" && OBJDUMP=objdump
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12982 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12983 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12984 $as_echo_n "(cached) " >&6
12985 else
12986 lt_cv_file_magic_cmd='$MAGIC_CMD'
12987 lt_cv_file_magic_test_file=
12988 lt_cv_deplibs_check_method='unknown'
12989 # Need to set the preceding variable on all platforms that support
12990 # interlibrary dependencies.
12991 # 'none' -- dependencies not supported.
12992 # `unknown' -- same as none, but documents that we really don't know.
12993 # 'pass_all' -- all dependencies passed with no checks.
12994 # 'test_compile' -- check by making test program.
12995 # 'file_magic [[regex]]' -- check by looking for files in library path
12996 # which responds to the $file_magic_cmd with a given extended regex.
12997 # If you have `file' or equivalent on your system and you're not sure
12998 # whether `pass_all' will *always* work, you probably want this one.
13000 case $host_os in
13001 aix[4-9]*)
13002 lt_cv_deplibs_check_method=pass_all
13005 beos*)
13006 lt_cv_deplibs_check_method=pass_all
13009 bsdi[45]*)
13010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13011 lt_cv_file_magic_cmd='/usr/bin/file -L'
13012 lt_cv_file_magic_test_file=/shlib/libc.so
13015 cygwin*)
13016 # func_win32_libid is a shell function defined in ltmain.sh
13017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13018 lt_cv_file_magic_cmd='func_win32_libid'
13021 mingw* | pw32*)
13022 # Base MSYS/MinGW do not provide the 'file' command needed by
13023 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13024 # unless we find 'file', for example because we are cross-compiling.
13025 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13026 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
13027 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13028 lt_cv_file_magic_cmd='func_win32_libid'
13029 else
13030 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13031 lt_cv_file_magic_cmd='$OBJDUMP -f'
13035 cegcc*)
13036 # use the weaker test based on 'objdump'. See mingw*.
13037 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13038 lt_cv_file_magic_cmd='$OBJDUMP -f'
13041 darwin* | rhapsody*)
13042 lt_cv_deplibs_check_method=pass_all
13045 freebsd* | dragonfly*)
13046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13047 case $host_cpu in
13048 i*86 )
13049 # Not sure whether the presence of OpenBSD here was a mistake.
13050 # Let's accept both of them until this is cleared up.
13051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13052 lt_cv_file_magic_cmd=/usr/bin/file
13053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13055 esac
13056 else
13057 lt_cv_deplibs_check_method=pass_all
13061 gnu*)
13062 lt_cv_deplibs_check_method=pass_all
13065 haiku*)
13066 lt_cv_deplibs_check_method=pass_all
13069 hpux10.20* | hpux11*)
13070 lt_cv_file_magic_cmd=/usr/bin/file
13071 case $host_cpu in
13072 ia64*)
13073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13076 hppa*64*)
13077 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]'
13078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13084 esac
13087 interix[3-9]*)
13088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13092 irix5* | irix6* | nonstopux*)
13093 case $LD in
13094 *-32|*"-32 ") libmagic=32-bit;;
13095 *-n32|*"-n32 ") libmagic=N32;;
13096 *-64|*"-64 ") libmagic=64-bit;;
13097 *) libmagic=never-match;;
13098 esac
13099 lt_cv_deplibs_check_method=pass_all
13102 # This must be Linux ELF.
13103 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13104 lt_cv_deplibs_check_method=pass_all
13107 netbsd*)
13108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13110 else
13111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13115 newos6*)
13116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13117 lt_cv_file_magic_cmd=/usr/bin/file
13118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13121 *nto* | *qnx*)
13122 lt_cv_deplibs_check_method=pass_all
13125 openbsd*)
13126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13128 else
13129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13133 osf3* | osf4* | osf5*)
13134 lt_cv_deplibs_check_method=pass_all
13137 rdos*)
13138 lt_cv_deplibs_check_method=pass_all
13141 solaris*)
13142 lt_cv_deplibs_check_method=pass_all
13145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13146 lt_cv_deplibs_check_method=pass_all
13149 sysv4 | sysv4.3*)
13150 case $host_vendor in
13151 motorola)
13152 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]'
13153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13155 ncr)
13156 lt_cv_deplibs_check_method=pass_all
13158 sequent)
13159 lt_cv_file_magic_cmd='/bin/file'
13160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13162 sni)
13163 lt_cv_file_magic_cmd='/bin/file'
13164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13165 lt_cv_file_magic_test_file=/lib/libc.so
13167 siemens)
13168 lt_cv_deplibs_check_method=pass_all
13171 lt_cv_deplibs_check_method=pass_all
13173 esac
13176 tpf*)
13177 lt_cv_deplibs_check_method=pass_all
13179 esac
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13184 file_magic_cmd=$lt_cv_file_magic_cmd
13185 deplibs_check_method=$lt_cv_deplibs_check_method
13186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13199 if test -n "$ac_tool_prefix"; then
13200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13201 set dummy ${ac_tool_prefix}ar; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 $as_echo_n "checking for $ac_word... " >&6; }
13204 if test "${ac_cv_prog_AR+set}" = set; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 if test -n "$AR"; then
13208 ac_cv_prog_AR="$AR" # Let the user override the test.
13209 else
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13217 ac_cv_prog_AR="${ac_tool_prefix}ar"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13221 done
13222 done
13223 IFS=$as_save_IFS
13227 AR=$ac_cv_prog_AR
13228 if test -n "$AR"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13230 $as_echo "$AR" >&6; }
13231 else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13238 if test -z "$ac_cv_prog_AR"; then
13239 ac_ct_AR=$AR
13240 # Extract the first word of "ar", so it can be a program name with args.
13241 set dummy ar; ac_word=$2
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243 $as_echo_n "checking for $ac_word... " >&6; }
13244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
13246 else
13247 if test -n "$ac_ct_AR"; then
13248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13249 else
13250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251 for as_dir in $PATH
13253 IFS=$as_save_IFS
13254 test -z "$as_dir" && as_dir=.
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13257 ac_cv_prog_ac_ct_AR="ar"
13258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 break 2
13261 done
13262 done
13263 IFS=$as_save_IFS
13267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13268 if test -n "$ac_ct_AR"; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13270 $as_echo "$ac_ct_AR" >&6; }
13271 else
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273 $as_echo "no" >&6; }
13276 if test "x$ac_ct_AR" = x; then
13277 AR="false"
13278 else
13279 case $cross_compiling:$ac_tool_warned in
13280 yes:)
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13283 ac_tool_warned=yes ;;
13284 esac
13285 AR=$ac_ct_AR
13287 else
13288 AR="$ac_cv_prog_AR"
13291 test -z "$AR" && AR=ar
13292 test -z "$AR_FLAGS" && AR_FLAGS=cru
13304 if test -n "$ac_tool_prefix"; then
13305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13306 set dummy ${ac_tool_prefix}strip; ac_word=$2
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308 $as_echo_n "checking for $ac_word... " >&6; }
13309 if test "${ac_cv_prog_STRIP+set}" = set; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13312 if test -n "$STRIP"; then
13313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13314 else
13315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316 for as_dir in $PATH
13318 IFS=$as_save_IFS
13319 test -z "$as_dir" && as_dir=.
13320 for ac_exec_ext in '' $ac_executable_extensions; do
13321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13324 break 2
13326 done
13327 done
13328 IFS=$as_save_IFS
13332 STRIP=$ac_cv_prog_STRIP
13333 if test -n "$STRIP"; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13335 $as_echo "$STRIP" >&6; }
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13343 if test -z "$ac_cv_prog_STRIP"; then
13344 ac_ct_STRIP=$STRIP
13345 # Extract the first word of "strip", so it can be a program name with args.
13346 set dummy strip; ac_word=$2
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13348 $as_echo_n "checking for $ac_word... " >&6; }
13349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 if test -n "$ac_ct_STRIP"; then
13353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13354 else
13355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13356 for as_dir in $PATH
13358 IFS=$as_save_IFS
13359 test -z "$as_dir" && as_dir=.
13360 for ac_exec_ext in '' $ac_executable_extensions; do
13361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13362 ac_cv_prog_ac_ct_STRIP="strip"
13363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13364 break 2
13366 done
13367 done
13368 IFS=$as_save_IFS
13372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13373 if test -n "$ac_ct_STRIP"; then
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13375 $as_echo "$ac_ct_STRIP" >&6; }
13376 else
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13381 if test "x$ac_ct_STRIP" = x; then
13382 STRIP=":"
13383 else
13384 case $cross_compiling:$ac_tool_warned in
13385 yes:)
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13388 ac_tool_warned=yes ;;
13389 esac
13390 STRIP=$ac_ct_STRIP
13392 else
13393 STRIP="$ac_cv_prog_STRIP"
13396 test -z "$STRIP" && STRIP=:
13403 if test -n "$ac_tool_prefix"; then
13404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407 $as_echo_n "checking for $ac_word... " >&6; }
13408 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 if test -n "$RANLIB"; then
13412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13413 else
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13425 done
13426 done
13427 IFS=$as_save_IFS
13431 RANLIB=$ac_cv_prog_RANLIB
13432 if test -n "$RANLIB"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13434 $as_echo "$RANLIB" >&6; }
13435 else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13442 if test -z "$ac_cv_prog_RANLIB"; then
13443 ac_ct_RANLIB=$RANLIB
13444 # Extract the first word of "ranlib", so it can be a program name with args.
13445 set dummy ranlib; ac_word=$2
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13447 $as_echo_n "checking for $ac_word... " >&6; }
13448 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13449 $as_echo_n "(cached) " >&6
13450 else
13451 if test -n "$ac_ct_RANLIB"; then
13452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13453 else
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13457 IFS=$as_save_IFS
13458 test -z "$as_dir" && as_dir=.
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13461 ac_cv_prog_ac_ct_RANLIB="ranlib"
13462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 break 2
13465 done
13466 done
13467 IFS=$as_save_IFS
13471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13472 if test -n "$ac_ct_RANLIB"; then
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13474 $as_echo "$ac_ct_RANLIB" >&6; }
13475 else
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477 $as_echo "no" >&6; }
13480 if test "x$ac_ct_RANLIB" = x; then
13481 RANLIB=":"
13482 else
13483 case $cross_compiling:$ac_tool_warned in
13484 yes:)
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13487 ac_tool_warned=yes ;;
13488 esac
13489 RANLIB=$ac_ct_RANLIB
13491 else
13492 RANLIB="$ac_cv_prog_RANLIB"
13495 test -z "$RANLIB" && RANLIB=:
13502 # Determine commands to create old-style static archives.
13503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13504 old_postinstall_cmds='chmod 644 $oldlib'
13505 old_postuninstall_cmds=
13507 if test -n "$RANLIB"; then
13508 case $host_os in
13509 openbsd*)
13510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13515 esac
13516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13519 case $host_os in
13520 darwin*)
13521 lock_old_archive_extraction=yes ;;
13523 lock_old_archive_extraction=no ;;
13524 esac
13564 # If no C compiler was specified, use CC.
13565 LTCC=${LTCC-"$CC"}
13567 # If no C compiler flags were specified, use CFLAGS.
13568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13570 # Allow CC to be a program name with arguments.
13571 compiler=$CC
13574 # Check for command to grab the raw symbol name followed by C symbol from nm.
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13576 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13577 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13581 # These are sane defaults that work on at least a few old systems.
13582 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13584 # Character class describing NM global symbol codes.
13585 symcode='[BCDEGRST]'
13587 # Regexp to match symbols that can be accessed directly from C.
13588 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13590 # Define system-specific variables.
13591 case $host_os in
13592 aix*)
13593 symcode='[BCDT]'
13595 cygwin* | mingw* | pw32* | cegcc*)
13596 symcode='[ABCDGISTW]'
13598 hpux*)
13599 if test "$host_cpu" = ia64; then
13600 symcode='[ABCDEGRST]'
13603 irix* | nonstopux*)
13604 symcode='[BCDEGRST]'
13606 osf*)
13607 symcode='[BCDEGQRST]'
13609 solaris*)
13610 symcode='[BDRT]'
13612 sco3.2v5*)
13613 symcode='[DT]'
13615 sysv4.2uw2*)
13616 symcode='[DT]'
13618 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13619 symcode='[ABDT]'
13621 sysv4)
13622 symcode='[DFNSTU]'
13624 esac
13626 # If we're using GNU nm, then use its standard symbol codes.
13627 case `$NM -V 2>&1` in
13628 *GNU* | *'with BFD'*)
13629 symcode='[ABCDGIRSTW]' ;;
13630 esac
13632 # Transform an extracted symbol line into a proper C declaration.
13633 # Some systems (esp. on ia64) link data and code symbols differently,
13634 # so use this general approach.
13635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13637 # Transform an extracted symbol line into symbol name and symbol address
13638 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13639 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'"
13641 # Handle CRLF in mingw tool chain
13642 opt_cr=
13643 case $build_os in
13644 mingw*)
13645 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13647 esac
13649 # Try without a prefix underscore, then with it.
13650 for ac_symprfx in "" "_"; do
13652 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13653 symxfrm="\\1 $ac_symprfx\\2 \\2"
13655 # Write the raw and C identifiers.
13656 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13657 # Fake it for dumpbin and say T for any non-static function
13658 # and D for any global variable.
13659 # Also find C++ and __fastcall symbols from MSVC++,
13660 # which start with @ or ?.
13661 lt_cv_sys_global_symbol_pipe="$AWK '"\
13662 " {last_section=section; section=\$ 3};"\
13663 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13664 " \$ 0!~/External *\|/{next};"\
13665 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13666 " {if(hide[section]) next};"\
13667 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13668 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13669 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13670 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13671 " ' prfx=^$ac_symprfx"
13672 else
13673 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13676 # Check to see that the pipe works correctly.
13677 pipe_works=no
13679 rm -f conftest*
13680 cat > conftest.$ac_ext <<_LT_EOF
13681 #ifdef __cplusplus
13682 extern "C" {
13683 #endif
13684 char nm_test_var;
13685 void nm_test_func(void);
13686 void nm_test_func(void){}
13687 #ifdef __cplusplus
13689 #endif
13690 int main(){nm_test_var='a';nm_test_func();return(0);}
13691 _LT_EOF
13693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13694 (eval $ac_compile) 2>&5
13695 ac_status=$?
13696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697 test $ac_status = 0; }; then
13698 # Now try to grab the symbols.
13699 nlist=conftest.nm
13700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13701 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13702 ac_status=$?
13703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13704 test $ac_status = 0; } && test -s "$nlist"; then
13705 # Try sorting and uniquifying the output.
13706 if sort "$nlist" | uniq > "$nlist"T; then
13707 mv -f "$nlist"T "$nlist"
13708 else
13709 rm -f "$nlist"T
13712 # Make sure that we snagged all the symbols we need.
13713 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13714 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13715 cat <<_LT_EOF > conftest.$ac_ext
13716 #ifdef __cplusplus
13717 extern "C" {
13718 #endif
13720 _LT_EOF
13721 # Now generate the symbol file.
13722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13724 cat <<_LT_EOF >> conftest.$ac_ext
13726 /* The mapping between symbol names and symbols. */
13727 const struct {
13728 const char *name;
13729 void *address;
13731 lt__PROGRAM__LTX_preloaded_symbols[] =
13733 { "@PROGRAM@", (void *) 0 },
13734 _LT_EOF
13735 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13736 cat <<\_LT_EOF >> conftest.$ac_ext
13737 {0, (void *) 0}
13740 /* This works around a problem in FreeBSD linker */
13741 #ifdef FREEBSD_WORKAROUND
13742 static const void *lt_preloaded_setup() {
13743 return lt__PROGRAM__LTX_preloaded_symbols;
13745 #endif
13747 #ifdef __cplusplus
13749 #endif
13750 _LT_EOF
13751 # Now try linking the two files.
13752 mv conftest.$ac_objext conftstm.$ac_objext
13753 lt_save_LIBS="$LIBS"
13754 lt_save_CFLAGS="$CFLAGS"
13755 LIBS="conftstm.$ac_objext"
13756 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13758 (eval $ac_link) 2>&5
13759 ac_status=$?
13760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13761 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13762 pipe_works=yes
13764 LIBS="$lt_save_LIBS"
13765 CFLAGS="$lt_save_CFLAGS"
13766 else
13767 echo "cannot find nm_test_func in $nlist" >&5
13769 else
13770 echo "cannot find nm_test_var in $nlist" >&5
13772 else
13773 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13775 else
13776 echo "$progname: failed program was:" >&5
13777 cat conftest.$ac_ext >&5
13779 rm -rf conftest* conftst*
13781 # Do not use the global_symbol_pipe unless it works.
13782 if test "$pipe_works" = yes; then
13783 break
13784 else
13785 lt_cv_sys_global_symbol_pipe=
13787 done
13791 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13792 lt_cv_sys_global_symbol_to_cdecl=
13794 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13796 $as_echo "failed" >&6; }
13797 else
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13799 $as_echo "ok" >&6; }
13823 # Check whether --enable-libtool-lock was given.
13824 if test "${enable_libtool_lock+set}" = set; then :
13825 enableval=$enable_libtool_lock;
13828 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13830 # Some flags need to be propagated to the compiler or linker for good
13831 # libtool support.
13832 case $host in
13833 ia64-*-hpux*)
13834 # Find out which ABI we are using.
13835 echo 'int i;' > conftest.$ac_ext
13836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13837 (eval $ac_compile) 2>&5
13838 ac_status=$?
13839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13840 test $ac_status = 0; }; then
13841 case `/usr/bin/file conftest.$ac_objext` in
13842 *ELF-32*)
13843 HPUX_IA64_MODE="32"
13845 *ELF-64*)
13846 HPUX_IA64_MODE="64"
13848 esac
13850 rm -rf conftest*
13852 *-*-irix6*)
13853 # Find out which ABI we are using.
13854 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13856 (eval $ac_compile) 2>&5
13857 ac_status=$?
13858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13859 test $ac_status = 0; }; then
13860 if test "$lt_cv_prog_gnu_ld" = yes; then
13861 case `/usr/bin/file conftest.$ac_objext` in
13862 *32-bit*)
13863 LD="${LD-ld} -melf32bsmip"
13865 *N32*)
13866 LD="${LD-ld} -melf32bmipn32"
13868 *64-bit*)
13869 LD="${LD-ld} -melf64bmip"
13871 esac
13872 else
13873 case `/usr/bin/file conftest.$ac_objext` in
13874 *32-bit*)
13875 LD="${LD-ld} -32"
13877 *N32*)
13878 LD="${LD-ld} -n32"
13880 *64-bit*)
13881 LD="${LD-ld} -64"
13883 esac
13886 rm -rf conftest*
13889 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13890 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13891 # Find out which ABI we are using.
13892 echo 'int i;' > conftest.$ac_ext
13893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13894 (eval $ac_compile) 2>&5
13895 ac_status=$?
13896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13897 test $ac_status = 0; }; then
13898 case `/usr/bin/file conftest.o` in
13899 *32-bit*)
13900 case $host in
13901 x86_64-*kfreebsd*-gnu)
13902 LD="${LD-ld} -m elf_i386_fbsd"
13904 x86_64-*linux*)
13905 case `/usr/bin/file conftest.o` in
13906 *x86-64*)
13907 LD="${LD-ld} -m elf32_x86_64"
13910 LD="${LD-ld} -m elf_i386"
13912 esac
13914 powerpc64le-*linux*)
13915 LD="${LD-ld} -m elf32lppclinux"
13917 powerpc64-*linux*)
13918 LD="${LD-ld} -m elf32ppclinux"
13920 s390x-*linux*)
13921 LD="${LD-ld} -m elf_s390"
13923 sparc64-*linux*)
13924 LD="${LD-ld} -m elf32_sparc"
13926 esac
13928 *64-bit*)
13929 case $host in
13930 x86_64-*kfreebsd*-gnu)
13931 LD="${LD-ld} -m elf_x86_64_fbsd"
13933 x86_64-*linux*)
13934 LD="${LD-ld} -m elf_x86_64"
13936 powerpcle-*linux*)
13937 LD="${LD-ld} -m elf64lppc"
13939 powerpc-*linux*)
13940 LD="${LD-ld} -m elf64ppc"
13942 s390*-*linux*|s390*-*tpf*)
13943 LD="${LD-ld} -m elf64_s390"
13945 sparc*-*linux*)
13946 LD="${LD-ld} -m elf64_sparc"
13948 esac
13950 esac
13952 rm -rf conftest*
13955 *-*-sco3.2v5*)
13956 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13957 SAVE_CFLAGS="$CFLAGS"
13958 CFLAGS="$CFLAGS -belf"
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13960 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13961 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13962 $as_echo_n "(cached) " >&6
13963 else
13964 ac_ext=c
13965 ac_cpp='$CPP $CPPFLAGS'
13966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13974 main ()
13978 return 0;
13980 _ACEOF
13981 if ac_fn_c_try_link "$LINENO"; then :
13982 lt_cv_cc_needs_belf=yes
13983 else
13984 lt_cv_cc_needs_belf=no
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13988 ac_ext=c
13989 ac_cpp='$CPP $CPPFLAGS'
13990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13996 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13997 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13998 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13999 CFLAGS="$SAVE_CFLAGS"
14002 sparc*-*solaris*)
14003 # Find out which ABI we are using.
14004 echo 'int i;' > conftest.$ac_ext
14005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14006 (eval $ac_compile) 2>&5
14007 ac_status=$?
14008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009 test $ac_status = 0; }; then
14010 case `/usr/bin/file conftest.o` in
14011 *64-bit*)
14012 case $lt_cv_prog_gnu_ld in
14013 yes*) LD="${LD-ld} -m elf64_sparc" ;;
14015 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14016 LD="${LD-ld} -64"
14019 esac
14021 esac
14023 rm -rf conftest*
14025 esac
14027 need_locks="$enable_libtool_lock"
14030 case $host_os in
14031 rhapsody* | darwin*)
14032 if test -n "$ac_tool_prefix"; then
14033 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14034 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14038 $as_echo_n "(cached) " >&6
14039 else
14040 if test -n "$DSYMUTIL"; then
14041 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14042 else
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14050 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14054 done
14055 done
14056 IFS=$as_save_IFS
14060 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14061 if test -n "$DSYMUTIL"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14063 $as_echo "$DSYMUTIL" >&6; }
14064 else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14071 if test -z "$ac_cv_prog_DSYMUTIL"; then
14072 ac_ct_DSYMUTIL=$DSYMUTIL
14073 # Extract the first word of "dsymutil", so it can be a program name with args.
14074 set dummy dsymutil; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14076 $as_echo_n "checking for $ac_word... " >&6; }
14077 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 if test -n "$ac_ct_DSYMUTIL"; then
14081 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14082 else
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14086 IFS=$as_save_IFS
14087 test -z "$as_dir" && as_dir=.
14088 for ac_exec_ext in '' $ac_executable_extensions; do
14089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14090 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092 break 2
14094 done
14095 done
14096 IFS=$as_save_IFS
14100 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14101 if test -n "$ac_ct_DSYMUTIL"; then
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14103 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14104 else
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14109 if test "x$ac_ct_DSYMUTIL" = x; then
14110 DSYMUTIL=":"
14111 else
14112 case $cross_compiling:$ac_tool_warned in
14113 yes:)
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14116 ac_tool_warned=yes ;;
14117 esac
14118 DSYMUTIL=$ac_ct_DSYMUTIL
14120 else
14121 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14124 if test -n "$ac_tool_prefix"; then
14125 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14126 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14128 $as_echo_n "checking for $ac_word... " >&6; }
14129 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14130 $as_echo_n "(cached) " >&6
14131 else
14132 if test -n "$NMEDIT"; then
14133 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14134 else
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14138 IFS=$as_save_IFS
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
14141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14142 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14144 break 2
14146 done
14147 done
14148 IFS=$as_save_IFS
14152 NMEDIT=$ac_cv_prog_NMEDIT
14153 if test -n "$NMEDIT"; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14155 $as_echo "$NMEDIT" >&6; }
14156 else
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14163 if test -z "$ac_cv_prog_NMEDIT"; then
14164 ac_ct_NMEDIT=$NMEDIT
14165 # Extract the first word of "nmedit", so it can be a program name with args.
14166 set dummy nmedit; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 if test -n "$ac_ct_NMEDIT"; then
14173 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14174 else
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14182 ac_cv_prog_ac_ct_NMEDIT="nmedit"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14186 done
14187 done
14188 IFS=$as_save_IFS
14192 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14193 if test -n "$ac_ct_NMEDIT"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14195 $as_echo "$ac_ct_NMEDIT" >&6; }
14196 else
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14201 if test "x$ac_ct_NMEDIT" = x; then
14202 NMEDIT=":"
14203 else
14204 case $cross_compiling:$ac_tool_warned in
14205 yes:)
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14208 ac_tool_warned=yes ;;
14209 esac
14210 NMEDIT=$ac_ct_NMEDIT
14212 else
14213 NMEDIT="$ac_cv_prog_NMEDIT"
14216 if test -n "$ac_tool_prefix"; then
14217 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14218 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if test "${ac_cv_prog_LIPO+set}" = set; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 if test -n "$LIPO"; then
14225 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14226 else
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14230 IFS=$as_save_IFS
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14234 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14236 break 2
14238 done
14239 done
14240 IFS=$as_save_IFS
14244 LIPO=$ac_cv_prog_LIPO
14245 if test -n "$LIPO"; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14247 $as_echo "$LIPO" >&6; }
14248 else
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14255 if test -z "$ac_cv_prog_LIPO"; then
14256 ac_ct_LIPO=$LIPO
14257 # Extract the first word of "lipo", so it can be a program name with args.
14258 set dummy lipo; ac_word=$2
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14260 $as_echo_n "checking for $ac_word... " >&6; }
14261 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14262 $as_echo_n "(cached) " >&6
14263 else
14264 if test -n "$ac_ct_LIPO"; then
14265 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14266 else
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14270 IFS=$as_save_IFS
14271 test -z "$as_dir" && as_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
14273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14274 ac_cv_prog_ac_ct_LIPO="lipo"
14275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14276 break 2
14278 done
14279 done
14280 IFS=$as_save_IFS
14284 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14285 if test -n "$ac_ct_LIPO"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14287 $as_echo "$ac_ct_LIPO" >&6; }
14288 else
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14293 if test "x$ac_ct_LIPO" = x; then
14294 LIPO=":"
14295 else
14296 case $cross_compiling:$ac_tool_warned in
14297 yes:)
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14300 ac_tool_warned=yes ;;
14301 esac
14302 LIPO=$ac_ct_LIPO
14304 else
14305 LIPO="$ac_cv_prog_LIPO"
14308 if test -n "$ac_tool_prefix"; then
14309 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14310 set dummy ${ac_tool_prefix}otool; ac_word=$2
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14312 $as_echo_n "checking for $ac_word... " >&6; }
14313 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316 if test -n "$OTOOL"; then
14317 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14318 else
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14322 IFS=$as_save_IFS
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14326 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14328 break 2
14330 done
14331 done
14332 IFS=$as_save_IFS
14336 OTOOL=$ac_cv_prog_OTOOL
14337 if test -n "$OTOOL"; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14339 $as_echo "$OTOOL" >&6; }
14340 else
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14347 if test -z "$ac_cv_prog_OTOOL"; then
14348 ac_ct_OTOOL=$OTOOL
14349 # Extract the first word of "otool", so it can be a program name with args.
14350 set dummy otool; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352 $as_echo_n "checking for $ac_word... " >&6; }
14353 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14354 $as_echo_n "(cached) " >&6
14355 else
14356 if test -n "$ac_ct_OTOOL"; then
14357 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14358 else
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14362 IFS=$as_save_IFS
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14366 ac_cv_prog_ac_ct_OTOOL="otool"
14367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14368 break 2
14370 done
14371 done
14372 IFS=$as_save_IFS
14376 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14377 if test -n "$ac_ct_OTOOL"; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14379 $as_echo "$ac_ct_OTOOL" >&6; }
14380 else
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382 $as_echo "no" >&6; }
14385 if test "x$ac_ct_OTOOL" = x; then
14386 OTOOL=":"
14387 else
14388 case $cross_compiling:$ac_tool_warned in
14389 yes:)
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14392 ac_tool_warned=yes ;;
14393 esac
14394 OTOOL=$ac_ct_OTOOL
14396 else
14397 OTOOL="$ac_cv_prog_OTOOL"
14400 if test -n "$ac_tool_prefix"; then
14401 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14402 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14404 $as_echo_n "checking for $ac_word... " >&6; }
14405 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14406 $as_echo_n "(cached) " >&6
14407 else
14408 if test -n "$OTOOL64"; then
14409 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14410 else
14411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14412 for as_dir in $PATH
14414 IFS=$as_save_IFS
14415 test -z "$as_dir" && as_dir=.
14416 for ac_exec_ext in '' $ac_executable_extensions; do
14417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14418 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14420 break 2
14422 done
14423 done
14424 IFS=$as_save_IFS
14428 OTOOL64=$ac_cv_prog_OTOOL64
14429 if test -n "$OTOOL64"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14431 $as_echo "$OTOOL64" >&6; }
14432 else
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14434 $as_echo "no" >&6; }
14439 if test -z "$ac_cv_prog_OTOOL64"; then
14440 ac_ct_OTOOL64=$OTOOL64
14441 # Extract the first word of "otool64", so it can be a program name with args.
14442 set dummy otool64; ac_word=$2
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14444 $as_echo_n "checking for $ac_word... " >&6; }
14445 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 if test -n "$ac_ct_OTOOL64"; then
14449 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14450 else
14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452 for as_dir in $PATH
14454 IFS=$as_save_IFS
14455 test -z "$as_dir" && as_dir=.
14456 for ac_exec_ext in '' $ac_executable_extensions; do
14457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14458 ac_cv_prog_ac_ct_OTOOL64="otool64"
14459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14460 break 2
14462 done
14463 done
14464 IFS=$as_save_IFS
14468 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14469 if test -n "$ac_ct_OTOOL64"; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14471 $as_echo "$ac_ct_OTOOL64" >&6; }
14472 else
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14477 if test "x$ac_ct_OTOOL64" = x; then
14478 OTOOL64=":"
14479 else
14480 case $cross_compiling:$ac_tool_warned in
14481 yes:)
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14484 ac_tool_warned=yes ;;
14485 esac
14486 OTOOL64=$ac_ct_OTOOL64
14488 else
14489 OTOOL64="$ac_cv_prog_OTOOL64"
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14519 $as_echo_n "checking for -single_module linker flag... " >&6; }
14520 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14521 $as_echo_n "(cached) " >&6
14522 else
14523 lt_cv_apple_cc_single_mod=no
14524 if test -z "${LT_MULTI_MODULE}"; then
14525 # By default we will add the -single_module flag. You can override
14526 # by either setting the environment variable LT_MULTI_MODULE
14527 # non-empty at configure time, or by adding -multi_module to the
14528 # link flags.
14529 rm -rf libconftest.dylib*
14530 echo "int foo(void){return 1;}" > conftest.c
14531 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14532 -dynamiclib -Wl,-single_module conftest.c" >&5
14533 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14534 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14535 _lt_result=$?
14536 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14537 lt_cv_apple_cc_single_mod=yes
14538 else
14539 cat conftest.err >&5
14541 rm -rf libconftest.dylib*
14542 rm -f conftest.*
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14546 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14548 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14549 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14550 $as_echo_n "(cached) " >&6
14551 else
14552 lt_cv_ld_exported_symbols_list=no
14553 save_LDFLAGS=$LDFLAGS
14554 echo "_main" > conftest.sym
14555 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14560 main ()
14564 return 0;
14566 _ACEOF
14567 if ac_fn_c_try_link "$LINENO"; then :
14568 lt_cv_ld_exported_symbols_list=yes
14569 else
14570 lt_cv_ld_exported_symbols_list=no
14572 rm -f core conftest.err conftest.$ac_objext \
14573 conftest$ac_exeext conftest.$ac_ext
14574 LDFLAGS="$save_LDFLAGS"
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14578 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14580 $as_echo_n "checking for -force_load linker flag... " >&6; }
14581 if test "${lt_cv_ld_force_load+set}" = set; then :
14582 $as_echo_n "(cached) " >&6
14583 else
14584 lt_cv_ld_force_load=no
14585 cat > conftest.c << _LT_EOF
14586 int forced_loaded() { return 2;}
14587 _LT_EOF
14588 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14589 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14590 echo "$AR cru libconftest.a conftest.o" >&5
14591 $AR cru libconftest.a conftest.o 2>&5
14592 cat > conftest.c << _LT_EOF
14593 int main() { return 0;}
14594 _LT_EOF
14595 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14596 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14597 _lt_result=$?
14598 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14599 lt_cv_ld_force_load=yes
14600 else
14601 cat conftest.err >&5
14603 rm -f conftest.err libconftest.a conftest conftest.c
14604 rm -rf conftest.dSYM
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14608 $as_echo "$lt_cv_ld_force_load" >&6; }
14609 case $host_os in
14610 rhapsody* | darwin1.[012])
14611 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14612 darwin1.*)
14613 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14614 darwin*) # darwin 5.x on
14615 # if running on 10.5 or later, the deployment target defaults
14616 # to the OS version, if on x86, and 10.4, the deployment
14617 # target defaults to 10.4. Don't you love it?
14618 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14619 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14621 10.[012]*)
14622 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14623 10.*)
14624 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14625 esac
14627 esac
14628 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14629 _lt_dar_single_mod='$single_module'
14631 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14632 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14633 else
14634 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14636 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14637 _lt_dsymutil='~$DSYMUTIL $lib || :'
14638 else
14639 _lt_dsymutil=
14642 esac
14644 for ac_header in dlfcn.h
14645 do :
14646 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14647 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14648 cat >>confdefs.h <<_ACEOF
14649 #define HAVE_DLFCN_H 1
14650 _ACEOF
14653 done
14659 # Set options
14663 enable_dlopen=no
14666 enable_win32_dll=no
14669 # Check whether --enable-shared was given.
14670 if test "${enable_shared+set}" = set; then :
14671 enableval=$enable_shared; p=${PACKAGE-default}
14672 case $enableval in
14673 yes) enable_shared=yes ;;
14674 no) enable_shared=no ;;
14676 enable_shared=no
14677 # Look at the argument we got. We use all the common list separators.
14678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14679 for pkg in $enableval; do
14680 IFS="$lt_save_ifs"
14681 if test "X$pkg" = "X$p"; then
14682 enable_shared=yes
14684 done
14685 IFS="$lt_save_ifs"
14687 esac
14688 else
14689 enable_shared=yes
14700 # Check whether --enable-static was given.
14701 if test "${enable_static+set}" = set; then :
14702 enableval=$enable_static; p=${PACKAGE-default}
14703 case $enableval in
14704 yes) enable_static=yes ;;
14705 no) enable_static=no ;;
14707 enable_static=no
14708 # Look at the argument we got. We use all the common list separators.
14709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14710 for pkg in $enableval; do
14711 IFS="$lt_save_ifs"
14712 if test "X$pkg" = "X$p"; then
14713 enable_static=yes
14715 done
14716 IFS="$lt_save_ifs"
14718 esac
14719 else
14720 enable_static=yes
14732 # Check whether --with-pic was given.
14733 if test "${with_pic+set}" = set; then :
14734 withval=$with_pic; pic_mode="$withval"
14735 else
14736 pic_mode=default
14740 test -z "$pic_mode" && pic_mode=default
14748 # Check whether --enable-fast-install was given.
14749 if test "${enable_fast_install+set}" = set; then :
14750 enableval=$enable_fast_install; p=${PACKAGE-default}
14751 case $enableval in
14752 yes) enable_fast_install=yes ;;
14753 no) enable_fast_install=no ;;
14755 enable_fast_install=no
14756 # Look at the argument we got. We use all the common list separators.
14757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14758 for pkg in $enableval; do
14759 IFS="$lt_save_ifs"
14760 if test "X$pkg" = "X$p"; then
14761 enable_fast_install=yes
14763 done
14764 IFS="$lt_save_ifs"
14766 esac
14767 else
14768 enable_fast_install=yes
14781 # This can be used to rebuild libtool when needed
14782 LIBTOOL_DEPS="$ltmain"
14784 # Always use our own libtool.
14785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14812 test -z "$LN_S" && LN_S="ln -s"
14827 if test -n "${ZSH_VERSION+set}" ; then
14828 setopt NO_GLOB_SUBST
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14832 $as_echo_n "checking for objdir... " >&6; }
14833 if test "${lt_cv_objdir+set}" = set; then :
14834 $as_echo_n "(cached) " >&6
14835 else
14836 rm -f .libs 2>/dev/null
14837 mkdir .libs 2>/dev/null
14838 if test -d .libs; then
14839 lt_cv_objdir=.libs
14840 else
14841 # MS-DOS does not allow filenames that begin with a dot.
14842 lt_cv_objdir=_libs
14844 rmdir .libs 2>/dev/null
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14847 $as_echo "$lt_cv_objdir" >&6; }
14848 objdir=$lt_cv_objdir
14854 cat >>confdefs.h <<_ACEOF
14855 #define LT_OBJDIR "$lt_cv_objdir/"
14856 _ACEOF
14861 case $host_os in
14862 aix3*)
14863 # AIX sometimes has problems with the GCC collect2 program. For some
14864 # reason, if we set the COLLECT_NAMES environment variable, the problems
14865 # vanish in a puff of smoke.
14866 if test "X${COLLECT_NAMES+set}" != Xset; then
14867 COLLECT_NAMES=
14868 export COLLECT_NAMES
14871 esac
14873 # Global variables:
14874 ofile=libtool
14875 can_build_shared=yes
14877 # All known linkers require a `.a' archive for static linking (except MSVC,
14878 # which needs '.lib').
14879 libext=a
14881 with_gnu_ld="$lt_cv_prog_gnu_ld"
14883 old_CC="$CC"
14884 old_CFLAGS="$CFLAGS"
14886 # Set sane defaults for various variables
14887 test -z "$CC" && CC=cc
14888 test -z "$LTCC" && LTCC=$CC
14889 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14890 test -z "$LD" && LD=ld
14891 test -z "$ac_objext" && ac_objext=o
14893 for cc_temp in $compiler""; do
14894 case $cc_temp in
14895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14897 \-*) ;;
14898 *) break;;
14899 esac
14900 done
14901 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14904 # Only perform the check for file, if the check method requires it
14905 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14906 case $deplibs_check_method in
14907 file_magic*)
14908 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14910 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14911 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 case $MAGIC_CMD in
14915 [\\/*] | ?:[\\/]*)
14916 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14919 lt_save_MAGIC_CMD="$MAGIC_CMD"
14920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14922 for ac_dir in $ac_dummy; do
14923 IFS="$lt_save_ifs"
14924 test -z "$ac_dir" && ac_dir=.
14925 if test -f $ac_dir/${ac_tool_prefix}file; then
14926 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14927 if test -n "$file_magic_test_file"; then
14928 case $deplibs_check_method in
14929 "file_magic "*)
14930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14933 $EGREP "$file_magic_regex" > /dev/null; then
14935 else
14936 cat <<_LT_EOF 1>&2
14938 *** Warning: the command libtool uses to detect shared libraries,
14939 *** $file_magic_cmd, produces output that libtool cannot recognize.
14940 *** The result is that libtool may fail to recognize shared libraries
14941 *** as such. This will affect the creation of libtool libraries that
14942 *** depend on shared libraries, but programs linked with such libtool
14943 *** libraries will work regardless of this problem. Nevertheless, you
14944 *** may want to report the problem to your system manager and/or to
14945 *** bug-libtool@gnu.org
14947 _LT_EOF
14948 fi ;;
14949 esac
14951 break
14953 done
14954 IFS="$lt_save_ifs"
14955 MAGIC_CMD="$lt_save_MAGIC_CMD"
14957 esac
14960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14961 if test -n "$MAGIC_CMD"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14963 $as_echo "$MAGIC_CMD" >&6; }
14964 else
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14966 $as_echo "no" >&6; }
14973 if test -z "$lt_cv_path_MAGIC_CMD"; then
14974 if test -n "$ac_tool_prefix"; then
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14976 $as_echo_n "checking for file... " >&6; }
14977 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14978 $as_echo_n "(cached) " >&6
14979 else
14980 case $MAGIC_CMD in
14981 [\\/*] | ?:[\\/]*)
14982 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14985 lt_save_MAGIC_CMD="$MAGIC_CMD"
14986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14987 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14988 for ac_dir in $ac_dummy; do
14989 IFS="$lt_save_ifs"
14990 test -z "$ac_dir" && ac_dir=.
14991 if test -f $ac_dir/file; then
14992 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14993 if test -n "$file_magic_test_file"; then
14994 case $deplibs_check_method in
14995 "file_magic "*)
14996 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14998 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14999 $EGREP "$file_magic_regex" > /dev/null; then
15001 else
15002 cat <<_LT_EOF 1>&2
15004 *** Warning: the command libtool uses to detect shared libraries,
15005 *** $file_magic_cmd, produces output that libtool cannot recognize.
15006 *** The result is that libtool may fail to recognize shared libraries
15007 *** as such. This will affect the creation of libtool libraries that
15008 *** depend on shared libraries, but programs linked with such libtool
15009 *** libraries will work regardless of this problem. Nevertheless, you
15010 *** may want to report the problem to your system manager and/or to
15011 *** bug-libtool@gnu.org
15013 _LT_EOF
15014 fi ;;
15015 esac
15017 break
15019 done
15020 IFS="$lt_save_ifs"
15021 MAGIC_CMD="$lt_save_MAGIC_CMD"
15023 esac
15026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15027 if test -n "$MAGIC_CMD"; then
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15029 $as_echo "$MAGIC_CMD" >&6; }
15030 else
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15032 $as_echo "no" >&6; }
15036 else
15037 MAGIC_CMD=:
15043 esac
15045 # Use C for the default configuration in the libtool script
15047 lt_save_CC="$CC"
15048 ac_ext=c
15049 ac_cpp='$CPP $CPPFLAGS'
15050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15055 # Source file extension for C test sources.
15056 ac_ext=c
15058 # Object file extension for compiled C test sources.
15059 objext=o
15060 objext=$objext
15062 # Code to be used in simple compile tests
15063 lt_simple_compile_test_code="int some_variable = 0;"
15065 # Code to be used in simple link tests
15066 lt_simple_link_test_code='int main(){return(0);}'
15074 # If no C compiler was specified, use CC.
15075 LTCC=${LTCC-"$CC"}
15077 # If no C compiler flags were specified, use CFLAGS.
15078 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15080 # Allow CC to be a program name with arguments.
15081 compiler=$CC
15083 # Save the default compiler, since it gets overwritten when the other
15084 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15085 compiler_DEFAULT=$CC
15087 # save warnings/boilerplate of simple test code
15088 ac_outfile=conftest.$ac_objext
15089 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15090 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15091 _lt_compiler_boilerplate=`cat conftest.err`
15092 $RM conftest*
15094 ac_outfile=conftest.$ac_objext
15095 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15096 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15097 _lt_linker_boilerplate=`cat conftest.err`
15098 $RM -r conftest*
15101 ## CAVEAT EMPTOR:
15102 ## There is no encapsulation within the following macros, do not change
15103 ## the running order or otherwise move them around unless you know exactly
15104 ## what you are doing...
15105 if test -n "$compiler"; then
15107 lt_prog_compiler_no_builtin_flag=
15109 if test "$GCC" = yes; then
15110 case $cc_basename in
15111 nvcc*)
15112 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15114 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15115 esac
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15118 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15119 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15120 $as_echo_n "(cached) " >&6
15121 else
15122 lt_cv_prog_compiler_rtti_exceptions=no
15123 ac_outfile=conftest.$ac_objext
15124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15125 lt_compiler_flag="-fno-rtti -fno-exceptions"
15126 # Insert the option either (1) after the last *FLAGS variable, or
15127 # (2) before a word containing "conftest.", or (3) at the end.
15128 # Note that $ac_compile itself does not contain backslashes and begins
15129 # with a dollar sign (not a hyphen), so the echo should work correctly.
15130 # The option is referenced via a variable to avoid confusing sed.
15131 lt_compile=`echo "$ac_compile" | $SED \
15132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15134 -e 's:$: $lt_compiler_flag:'`
15135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15136 (eval "$lt_compile" 2>conftest.err)
15137 ac_status=$?
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 if (exit $ac_status) && test -s "$ac_outfile"; then
15141 # The compiler can only warn and ignore the option if not recognized
15142 # So say no if there are warnings other than the usual output.
15143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15146 lt_cv_prog_compiler_rtti_exceptions=yes
15149 $RM conftest*
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15153 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15155 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15156 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15157 else
15168 lt_prog_compiler_wl=
15169 lt_prog_compiler_pic=
15170 lt_prog_compiler_static=
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15173 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15175 if test "$GCC" = yes; then
15176 lt_prog_compiler_wl='-Wl,'
15177 lt_prog_compiler_static='-static'
15179 case $host_os in
15180 aix*)
15181 # All AIX code is PIC.
15182 if test "$host_cpu" = ia64; then
15183 # AIX 5 now supports IA64 processor
15184 lt_prog_compiler_static='-Bstatic'
15186 lt_prog_compiler_pic='-fPIC'
15189 amigaos*)
15190 case $host_cpu in
15191 powerpc)
15192 # see comment about AmigaOS4 .so support
15193 lt_prog_compiler_pic='-fPIC'
15195 m68k)
15196 # FIXME: we need at least 68020 code to build shared libraries, but
15197 # adding the `-m68020' flag to GCC prevents building anything better,
15198 # like `-m68040'.
15199 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15201 esac
15204 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15205 # PIC is the default for these OSes.
15208 mingw* | cygwin* | pw32* | os2* | cegcc*)
15209 # This hack is so that the source file can tell whether it is being
15210 # built for inclusion in a dll (and should export symbols for example).
15211 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15212 # (--disable-auto-import) libraries
15213 lt_prog_compiler_pic='-DDLL_EXPORT'
15216 darwin* | rhapsody*)
15217 # PIC is the default on this platform
15218 # Common symbols not allowed in MH_DYLIB files
15219 lt_prog_compiler_pic='-fno-common'
15222 haiku*)
15223 # PIC is the default for Haiku.
15224 # The "-static" flag exists, but is broken.
15225 lt_prog_compiler_static=
15228 hpux*)
15229 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15230 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15231 # sets the default TLS model and affects inlining.
15232 case $host_cpu in
15233 hppa*64*)
15234 # +Z the default
15237 lt_prog_compiler_pic='-fPIC'
15239 esac
15242 interix[3-9]*)
15243 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15244 # Instead, we relocate shared libraries at runtime.
15247 msdosdjgpp*)
15248 # Just because we use GCC doesn't mean we suddenly get shared libraries
15249 # on systems that don't support them.
15250 lt_prog_compiler_can_build_shared=no
15251 enable_shared=no
15254 *nto* | *qnx*)
15255 # QNX uses GNU C++, but need to define -shared option too, otherwise
15256 # it will coredump.
15257 lt_prog_compiler_pic='-fPIC -shared'
15260 sysv4*MP*)
15261 if test -d /usr/nec; then
15262 lt_prog_compiler_pic=-Kconform_pic
15267 lt_prog_compiler_pic='-fPIC'
15269 esac
15271 case $cc_basename in
15272 nvcc*) # Cuda Compiler Driver 2.2
15273 lt_prog_compiler_wl='-Xlinker '
15274 lt_prog_compiler_pic='-Xcompiler -fPIC'
15276 esac
15277 else
15278 # PORTME Check for flag to pass linker flags through the system compiler.
15279 case $host_os in
15280 aix*)
15281 lt_prog_compiler_wl='-Wl,'
15282 if test "$host_cpu" = ia64; then
15283 # AIX 5 now supports IA64 processor
15284 lt_prog_compiler_static='-Bstatic'
15285 else
15286 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15290 mingw* | cygwin* | pw32* | os2* | cegcc*)
15291 # This hack is so that the source file can tell whether it is being
15292 # built for inclusion in a dll (and should export symbols for example).
15293 lt_prog_compiler_pic='-DDLL_EXPORT'
15296 hpux9* | hpux10* | hpux11*)
15297 lt_prog_compiler_wl='-Wl,'
15298 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15299 # not for PA HP-UX.
15300 case $host_cpu in
15301 hppa*64*|ia64*)
15302 # +Z the default
15305 lt_prog_compiler_pic='+Z'
15307 esac
15308 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15309 lt_prog_compiler_static='${wl}-a ${wl}archive'
15312 irix5* | irix6* | nonstopux*)
15313 lt_prog_compiler_wl='-Wl,'
15314 # PIC (with -KPIC) is the default.
15315 lt_prog_compiler_static='-non_shared'
15318 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15319 case $cc_basename in
15320 # old Intel for x86_64 which still supported -KPIC.
15321 ecc*)
15322 lt_prog_compiler_wl='-Wl,'
15323 lt_prog_compiler_pic='-KPIC'
15324 lt_prog_compiler_static='-static'
15326 # icc used to be incompatible with GCC.
15327 # ICC 10 doesn't accept -KPIC any more.
15328 icc* | ifort*)
15329 lt_prog_compiler_wl='-Wl,'
15330 lt_prog_compiler_pic='-fPIC'
15331 lt_prog_compiler_static='-static'
15333 # Lahey Fortran 8.1.
15334 lf95*)
15335 lt_prog_compiler_wl='-Wl,'
15336 lt_prog_compiler_pic='--shared'
15337 lt_prog_compiler_static='--static'
15339 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15340 # Portland Group compilers (*not* the Pentium gcc compiler,
15341 # which looks to be a dead project)
15342 lt_prog_compiler_wl='-Wl,'
15343 lt_prog_compiler_pic='-fpic'
15344 lt_prog_compiler_static='-Bstatic'
15346 ccc*)
15347 lt_prog_compiler_wl='-Wl,'
15348 # All Alpha code is PIC.
15349 lt_prog_compiler_static='-non_shared'
15351 xl* | bgxl* | bgf* | mpixl*)
15352 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15353 lt_prog_compiler_wl='-Wl,'
15354 lt_prog_compiler_pic='-qpic'
15355 lt_prog_compiler_static='-qstaticlink'
15358 case `$CC -V 2>&1 | sed 5q` in
15359 *Sun\ F* | *Sun*Fortran*)
15360 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15361 lt_prog_compiler_pic='-KPIC'
15362 lt_prog_compiler_static='-Bstatic'
15363 lt_prog_compiler_wl=''
15365 *Sun\ C*)
15366 # Sun C 5.9
15367 lt_prog_compiler_pic='-KPIC'
15368 lt_prog_compiler_static='-Bstatic'
15369 lt_prog_compiler_wl='-Wl,'
15371 esac
15373 esac
15376 newsos6)
15377 lt_prog_compiler_pic='-KPIC'
15378 lt_prog_compiler_static='-Bstatic'
15381 *nto* | *qnx*)
15382 # QNX uses GNU C++, but need to define -shared option too, otherwise
15383 # it will coredump.
15384 lt_prog_compiler_pic='-fPIC -shared'
15387 osf3* | osf4* | osf5*)
15388 lt_prog_compiler_wl='-Wl,'
15389 # All OSF/1 code is PIC.
15390 lt_prog_compiler_static='-non_shared'
15393 rdos*)
15394 lt_prog_compiler_static='-non_shared'
15397 solaris*)
15398 lt_prog_compiler_pic='-KPIC'
15399 lt_prog_compiler_static='-Bstatic'
15400 case $cc_basename in
15401 f77* | f90* | f95*)
15402 lt_prog_compiler_wl='-Qoption ld ';;
15404 lt_prog_compiler_wl='-Wl,';;
15405 esac
15408 sunos4*)
15409 lt_prog_compiler_wl='-Qoption ld '
15410 lt_prog_compiler_pic='-PIC'
15411 lt_prog_compiler_static='-Bstatic'
15414 sysv4 | sysv4.2uw2* | sysv4.3*)
15415 lt_prog_compiler_wl='-Wl,'
15416 lt_prog_compiler_pic='-KPIC'
15417 lt_prog_compiler_static='-Bstatic'
15420 sysv4*MP*)
15421 if test -d /usr/nec ;then
15422 lt_prog_compiler_pic='-Kconform_pic'
15423 lt_prog_compiler_static='-Bstatic'
15427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15428 lt_prog_compiler_wl='-Wl,'
15429 lt_prog_compiler_pic='-KPIC'
15430 lt_prog_compiler_static='-Bstatic'
15433 unicos*)
15434 lt_prog_compiler_wl='-Wl,'
15435 lt_prog_compiler_can_build_shared=no
15438 uts4*)
15439 lt_prog_compiler_pic='-pic'
15440 lt_prog_compiler_static='-Bstatic'
15444 lt_prog_compiler_can_build_shared=no
15446 esac
15449 case $host_os in
15450 # For platforms which do not support PIC, -DPIC is meaningless:
15451 *djgpp*)
15452 lt_prog_compiler_pic=
15455 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15457 esac
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15459 $as_echo "$lt_prog_compiler_pic" >&6; }
15467 # Check to make sure the PIC flag actually works.
15469 if test -n "$lt_prog_compiler_pic"; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15471 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15472 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15473 $as_echo_n "(cached) " >&6
15474 else
15475 lt_cv_prog_compiler_pic_works=no
15476 ac_outfile=conftest.$ac_objext
15477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15478 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15479 # Insert the option either (1) after the last *FLAGS variable, or
15480 # (2) before a word containing "conftest.", or (3) at the end.
15481 # Note that $ac_compile itself does not contain backslashes and begins
15482 # with a dollar sign (not a hyphen), so the echo should work correctly.
15483 # The option is referenced via a variable to avoid confusing sed.
15484 lt_compile=`echo "$ac_compile" | $SED \
15485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15487 -e 's:$: $lt_compiler_flag:'`
15488 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15489 (eval "$lt_compile" 2>conftest.err)
15490 ac_status=$?
15491 cat conftest.err >&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 if (exit $ac_status) && test -s "$ac_outfile"; then
15494 # The compiler can only warn and ignore the option if not recognized
15495 # So say no if there are warnings other than the usual output.
15496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15499 lt_cv_prog_compiler_pic_works=yes
15502 $RM conftest*
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15506 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15508 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15509 case $lt_prog_compiler_pic in
15510 "" | " "*) ;;
15511 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15512 esac
15513 else
15514 lt_prog_compiler_pic=
15515 lt_prog_compiler_can_build_shared=no
15526 # Check to make sure the static flag actually works.
15528 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15530 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15531 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15532 $as_echo_n "(cached) " >&6
15533 else
15534 lt_cv_prog_compiler_static_works=no
15535 save_LDFLAGS="$LDFLAGS"
15536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15537 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15539 # The linker can only warn and ignore the option if not recognized
15540 # So say no if there are warnings
15541 if test -s conftest.err; then
15542 # Append any errors to the config.log.
15543 cat conftest.err 1>&5
15544 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15546 if diff conftest.exp conftest.er2 >/dev/null; then
15547 lt_cv_prog_compiler_static_works=yes
15549 else
15550 lt_cv_prog_compiler_static_works=yes
15553 $RM -r conftest*
15554 LDFLAGS="$save_LDFLAGS"
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15558 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15560 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15562 else
15563 lt_prog_compiler_static=
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15574 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15575 $as_echo_n "(cached) " >&6
15576 else
15577 lt_cv_prog_compiler_c_o=no
15578 $RM -r conftest 2>/dev/null
15579 mkdir conftest
15580 cd conftest
15581 mkdir out
15582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15584 lt_compiler_flag="-o out/conftest2.$ac_objext"
15585 # Insert the option either (1) after the last *FLAGS variable, or
15586 # (2) before a word containing "conftest.", or (3) at the end.
15587 # Note that $ac_compile itself does not contain backslashes and begins
15588 # with a dollar sign (not a hyphen), so the echo should work correctly.
15589 lt_compile=`echo "$ac_compile" | $SED \
15590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15592 -e 's:$: $lt_compiler_flag:'`
15593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15594 (eval "$lt_compile" 2>out/conftest.err)
15595 ac_status=$?
15596 cat out/conftest.err >&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15599 then
15600 # The compiler can only warn and ignore the option if not recognized
15601 # So say no if there are warnings
15602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15605 lt_cv_prog_compiler_c_o=yes
15608 chmod u+w . 2>&5
15609 $RM conftest*
15610 # SGI C++ compiler will create directory out/ii_files/ for
15611 # template instantiation
15612 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15613 $RM out/* && rmdir out
15614 cd ..
15615 $RM -r conftest
15616 $RM conftest*
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15628 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15629 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15630 $as_echo_n "(cached) " >&6
15631 else
15632 lt_cv_prog_compiler_c_o=no
15633 $RM -r conftest 2>/dev/null
15634 mkdir conftest
15635 cd conftest
15636 mkdir out
15637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15639 lt_compiler_flag="-o out/conftest2.$ac_objext"
15640 # Insert the option either (1) after the last *FLAGS variable, or
15641 # (2) before a word containing "conftest.", or (3) at the end.
15642 # Note that $ac_compile itself does not contain backslashes and begins
15643 # with a dollar sign (not a hyphen), so the echo should work correctly.
15644 lt_compile=`echo "$ac_compile" | $SED \
15645 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15646 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15647 -e 's:$: $lt_compiler_flag:'`
15648 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15649 (eval "$lt_compile" 2>out/conftest.err)
15650 ac_status=$?
15651 cat out/conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15654 then
15655 # The compiler can only warn and ignore the option if not recognized
15656 # So say no if there are warnings
15657 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15658 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15659 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15660 lt_cv_prog_compiler_c_o=yes
15663 chmod u+w . 2>&5
15664 $RM conftest*
15665 # SGI C++ compiler will create directory out/ii_files/ for
15666 # template instantiation
15667 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15668 $RM out/* && rmdir out
15669 cd ..
15670 $RM -r conftest
15671 $RM conftest*
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15675 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15680 hard_links="nottested"
15681 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15682 # do not overwrite the value of need_locks provided by the user
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15684 $as_echo_n "checking if we can lock with hard links... " >&6; }
15685 hard_links=yes
15686 $RM conftest*
15687 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15688 touch conftest.a
15689 ln conftest.a conftest.b 2>&5 || hard_links=no
15690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15692 $as_echo "$hard_links" >&6; }
15693 if test "$hard_links" = no; then
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15695 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15696 need_locks=warn
15698 else
15699 need_locks=no
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15708 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15710 runpath_var=
15711 allow_undefined_flag=
15712 always_export_symbols=no
15713 archive_cmds=
15714 archive_expsym_cmds=
15715 compiler_needs_object=no
15716 enable_shared_with_static_runtimes=no
15717 export_dynamic_flag_spec=
15718 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15719 hardcode_automatic=no
15720 hardcode_direct=no
15721 hardcode_direct_absolute=no
15722 hardcode_libdir_flag_spec=
15723 hardcode_libdir_flag_spec_ld=
15724 hardcode_libdir_separator=
15725 hardcode_minus_L=no
15726 hardcode_shlibpath_var=unsupported
15727 inherit_rpath=no
15728 link_all_deplibs=unknown
15729 module_cmds=
15730 module_expsym_cmds=
15731 old_archive_from_new_cmds=
15732 old_archive_from_expsyms_cmds=
15733 thread_safe_flag_spec=
15734 whole_archive_flag_spec=
15735 # include_expsyms should be a list of space-separated symbols to be *always*
15736 # included in the symbol list
15737 include_expsyms=
15738 # exclude_expsyms can be an extended regexp of symbols to exclude
15739 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15740 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15741 # as well as any symbol that contains `d'.
15742 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15743 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15744 # platforms (ab)use it in PIC code, but their linkers get confused if
15745 # the symbol is explicitly referenced. Since portable code cannot
15746 # rely on this symbol name, it's probably fine to never include it in
15747 # preloaded symbol tables.
15748 # Exclude shared library initialization/finalization symbols.
15749 extract_expsyms_cmds=
15751 case $host_os in
15752 cygwin* | mingw* | pw32* | cegcc*)
15753 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15754 # When not using gcc, we currently assume that we are using
15755 # Microsoft Visual C++.
15756 if test "$GCC" != yes; then
15757 with_gnu_ld=no
15760 interix*)
15761 # we just hope/assume this is gcc and not c89 (= MSVC++)
15762 with_gnu_ld=yes
15764 openbsd*)
15765 with_gnu_ld=no
15767 esac
15769 ld_shlibs=yes
15771 # On some targets, GNU ld is compatible enough with the native linker
15772 # that we're better off using the native interface for both.
15773 lt_use_gnu_ld_interface=no
15774 if test "$with_gnu_ld" = yes; then
15775 case $host_os in
15776 aix*)
15777 # The AIX port of GNU ld has always aspired to compatibility
15778 # with the native linker. However, as the warning in the GNU ld
15779 # block says, versions before 2.19.5* couldn't really create working
15780 # shared libraries, regardless of the interface used.
15781 case `$LD -v 2>&1` in
15782 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15783 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15784 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15786 lt_use_gnu_ld_interface=yes
15788 esac
15791 lt_use_gnu_ld_interface=yes
15793 esac
15796 if test "$lt_use_gnu_ld_interface" = yes; then
15797 # If archive_cmds runs LD, not CC, wlarc should be empty
15798 wlarc='${wl}'
15800 # Set some defaults for GNU ld with shared library support. These
15801 # are reset later if shared libraries are not supported. Putting them
15802 # here allows them to be overridden if necessary.
15803 runpath_var=LD_RUN_PATH
15804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15805 export_dynamic_flag_spec='${wl}--export-dynamic'
15806 # ancient GNU ld didn't support --whole-archive et. al.
15807 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15808 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15809 else
15810 whole_archive_flag_spec=
15812 supports_anon_versioning=no
15813 case `$LD -v 2>&1` in
15814 *GNU\ gold*) supports_anon_versioning=yes ;;
15815 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15816 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15817 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15818 *\ 2.11.*) ;; # other 2.11 versions
15819 *) supports_anon_versioning=yes ;;
15820 esac
15822 # See if GNU ld supports shared libraries.
15823 case $host_os in
15824 aix[3-9]*)
15825 # On AIX/PPC, the GNU linker is very broken
15826 if test "$host_cpu" != ia64; then
15827 ld_shlibs=no
15828 cat <<_LT_EOF 1>&2
15830 *** Warning: the GNU linker, at least up to release 2.19, is reported
15831 *** to be unable to reliably create shared libraries on AIX.
15832 *** Therefore, libtool is disabling shared libraries support. If you
15833 *** really care for shared libraries, you may want to install binutils
15834 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15835 *** You will then need to restart the configuration process.
15837 _LT_EOF
15841 amigaos*)
15842 case $host_cpu in
15843 powerpc)
15844 # see comment about AmigaOS4 .so support
15845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15846 archive_expsym_cmds=''
15848 m68k)
15849 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)'
15850 hardcode_libdir_flag_spec='-L$libdir'
15851 hardcode_minus_L=yes
15853 esac
15856 beos*)
15857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15858 allow_undefined_flag=unsupported
15859 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15860 # support --undefined. This deserves some investigation. FIXME
15861 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15862 else
15863 ld_shlibs=no
15867 cygwin* | mingw* | pw32* | cegcc*)
15868 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15869 # as there is no search path for DLLs.
15870 hardcode_libdir_flag_spec='-L$libdir'
15871 export_dynamic_flag_spec='${wl}--export-all-symbols'
15872 allow_undefined_flag=unsupported
15873 always_export_symbols=no
15874 enable_shared_with_static_runtimes=yes
15875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15877 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15879 # If the export-symbols file already is a .def file (1st line
15880 # is EXPORTS), use it as is; otherwise, prepend...
15881 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15882 cp $export_symbols $output_objdir/$soname.def;
15883 else
15884 echo EXPORTS > $output_objdir/$soname.def;
15885 cat $export_symbols >> $output_objdir/$soname.def;
15887 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15888 else
15889 ld_shlibs=no
15893 haiku*)
15894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15895 link_all_deplibs=yes
15898 interix[3-9]*)
15899 hardcode_direct=no
15900 hardcode_shlibpath_var=no
15901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15902 export_dynamic_flag_spec='${wl}-E'
15903 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15904 # Instead, shared libraries are loaded at an image base (0x10000000 by
15905 # default) and relocated if they conflict, which is a slow very memory
15906 # consuming and fragmenting process. To avoid this, we pick a random,
15907 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15908 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15909 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15910 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'
15913 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15914 tmp_diet=no
15915 if test "$host_os" = linux-dietlibc; then
15916 case $cc_basename in
15917 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15918 esac
15920 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15921 && test "$tmp_diet" = no
15922 then
15923 tmp_addflag=
15924 tmp_sharedflag='-shared'
15925 case $cc_basename,$host_cpu in
15926 pgcc*) # Portland Group C compiler
15927 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'
15928 tmp_addflag=' $pic_flag'
15930 pgf77* | pgf90* | pgf95* | pgfortran*)
15931 # Portland Group f77 and f90 compilers
15932 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'
15933 tmp_addflag=' $pic_flag -Mnomain' ;;
15934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15935 tmp_addflag=' -i_dynamic' ;;
15936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15937 tmp_addflag=' -i_dynamic -nofor_main' ;;
15938 ifc* | ifort*) # Intel Fortran compiler
15939 tmp_addflag=' -nofor_main' ;;
15940 lf95*) # Lahey Fortran 8.1
15941 whole_archive_flag_spec=
15942 tmp_sharedflag='--shared' ;;
15943 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15944 tmp_sharedflag='-qmkshrobj'
15945 tmp_addflag= ;;
15946 nvcc*) # Cuda Compiler Driver 2.2
15947 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'
15948 compiler_needs_object=yes
15950 esac
15951 case `$CC -V 2>&1 | sed 5q` in
15952 *Sun\ C*) # Sun C 5.9
15953 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'
15954 compiler_needs_object=yes
15955 tmp_sharedflag='-G' ;;
15956 *Sun\ F*) # Sun Fortran 8.3
15957 tmp_sharedflag='-G' ;;
15958 esac
15959 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15961 if test "x$supports_anon_versioning" = xyes; then
15962 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15963 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15964 echo "local: *; };" >> $output_objdir/$libname.ver~
15965 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15968 case $cc_basename in
15969 xlf* | bgf* | bgxlf* | mpixlf*)
15970 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15971 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15972 hardcode_libdir_flag_spec=
15973 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15974 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15975 if test "x$supports_anon_versioning" = xyes; then
15976 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15978 echo "local: *; };" >> $output_objdir/$libname.ver~
15979 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15982 esac
15983 else
15984 ld_shlibs=no
15988 netbsd*)
15989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15990 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15991 wlarc=
15992 else
15993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15998 solaris*)
15999 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16000 ld_shlibs=no
16001 cat <<_LT_EOF 1>&2
16003 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16004 *** create shared libraries on Solaris systems. Therefore, libtool
16005 *** is disabling shared libraries support. We urge you to upgrade GNU
16006 *** binutils to release 2.9.1 or newer. Another option is to modify
16007 *** your PATH or compiler configuration so that the native linker is
16008 *** used, and then restart.
16010 _LT_EOF
16011 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16014 else
16015 ld_shlibs=no
16019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16020 case `$LD -v 2>&1` in
16021 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16022 ld_shlibs=no
16023 cat <<_LT_EOF 1>&2
16025 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16026 *** reliably create shared libraries on SCO systems. Therefore, libtool
16027 *** is disabling shared libraries support. We urge you to upgrade GNU
16028 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16029 *** your PATH or compiler configuration so that the native linker is
16030 *** used, and then restart.
16032 _LT_EOF
16035 # For security reasons, it is highly recommended that you always
16036 # use absolute paths for naming shared libraries, and exclude the
16037 # DT_RUNPATH tag from executables and libraries. But doing so
16038 # requires that you compile everything twice, which is a pain.
16039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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
16050 sunos4*)
16051 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16052 wlarc=
16053 hardcode_direct=yes
16054 hardcode_shlibpath_var=no
16058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16061 else
16062 ld_shlibs=no
16065 esac
16067 if test "$ld_shlibs" = no; then
16068 runpath_var=
16069 hardcode_libdir_flag_spec=
16070 export_dynamic_flag_spec=
16071 whole_archive_flag_spec=
16073 else
16074 # PORTME fill in a description of your system's linker (not GNU ld)
16075 case $host_os in
16076 aix3*)
16077 allow_undefined_flag=unsupported
16078 always_export_symbols=yes
16079 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'
16080 # Note: this linker hardcodes the directories in LIBPATH if there
16081 # are no directories specified by -L.
16082 hardcode_minus_L=yes
16083 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16084 # Neither direct hardcoding nor static linking is supported with a
16085 # broken collect2.
16086 hardcode_direct=unsupported
16090 aix[4-9]*)
16091 if test "$host_cpu" = ia64; then
16092 # On IA64, the linker does run time linking by default, so we don't
16093 # have to do anything special.
16094 aix_use_runtimelinking=no
16095 exp_sym_flag='-Bexport'
16096 no_entry_flag=""
16097 else
16098 # If we're using GNU nm, then we don't want the "-C" option.
16099 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16100 # Also, AIX nm treats weak defined symbols like other global
16101 # defined symbols, whereas GNU nm marks them as "W".
16102 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16103 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'
16104 else
16105 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'
16107 aix_use_runtimelinking=no
16109 # Test if we are trying to use run time linking or normal
16110 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16111 # need to do runtime linking.
16112 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16113 for ld_flag in $LDFLAGS; do
16114 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16115 aix_use_runtimelinking=yes
16116 break
16118 done
16120 esac
16122 exp_sym_flag='-bexport'
16123 no_entry_flag='-bnoentry'
16126 # When large executables or shared objects are built, AIX ld can
16127 # have problems creating the table of contents. If linking a library
16128 # or program results in "error TOC overflow" add -mminimal-toc to
16129 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16130 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16132 archive_cmds=''
16133 hardcode_direct=yes
16134 hardcode_direct_absolute=yes
16135 hardcode_libdir_separator=':'
16136 link_all_deplibs=yes
16137 file_list_spec='${wl}-f,'
16139 if test "$GCC" = yes; then
16140 case $host_os in aix4.[012]|aix4.[012].*)
16141 # We only want to do this on AIX 4.2 and lower, the check
16142 # below for broken collect2 doesn't work under 4.3+
16143 collect2name=`${CC} -print-prog-name=collect2`
16144 if test -f "$collect2name" &&
16145 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16146 then
16147 # We have reworked collect2
16149 else
16150 # We have old collect2
16151 hardcode_direct=unsupported
16152 # It fails to find uninstalled libraries when the uninstalled
16153 # path is not listed in the libpath. Setting hardcode_minus_L
16154 # to unsupported forces relinking
16155 hardcode_minus_L=yes
16156 hardcode_libdir_flag_spec='-L$libdir'
16157 hardcode_libdir_separator=
16160 esac
16161 shared_flag='-shared'
16162 if test "$aix_use_runtimelinking" = yes; then
16163 shared_flag="$shared_flag "'${wl}-G'
16165 else
16166 # not using gcc
16167 if test "$host_cpu" = ia64; then
16168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16169 # chokes on -Wl,-G. The following line is correct:
16170 shared_flag='-G'
16171 else
16172 if test "$aix_use_runtimelinking" = yes; then
16173 shared_flag='${wl}-G'
16174 else
16175 shared_flag='${wl}-bM:SRE'
16180 export_dynamic_flag_spec='${wl}-bexpall'
16181 # It seems that -bexpall does not export symbols beginning with
16182 # underscore (_), so it is better to generate a list of symbols to export.
16183 always_export_symbols=yes
16184 if test "$aix_use_runtimelinking" = yes; then
16185 # Warning - without using the other runtime loading flags (-brtl),
16186 # -berok will link without error, but may produce a broken library.
16187 allow_undefined_flag='-berok'
16188 # Determine the default libpath from the value encoded in an
16189 # empty executable.
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16194 main ()
16198 return 0;
16200 _ACEOF
16201 if ac_fn_c_try_link "$LINENO"; then :
16203 lt_aix_libpath_sed='
16204 /Import File Strings/,/^$/ {
16205 /^0/ {
16206 s/^0 *\(.*\)$/\1/
16210 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16211 # Check for a 64-bit object if we didn't find anything.
16212 if test -z "$aix_libpath"; then
16213 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16216 rm -f core conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
16218 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16220 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16221 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"
16222 else
16223 if test "$host_cpu" = ia64; then
16224 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16225 allow_undefined_flag="-z nodefs"
16226 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"
16227 else
16228 # Determine the default libpath from the value encoded in an
16229 # empty executable.
16230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231 /* end confdefs.h. */
16234 main ()
16238 return 0;
16240 _ACEOF
16241 if ac_fn_c_try_link "$LINENO"; then :
16243 lt_aix_libpath_sed='
16244 /Import File Strings/,/^$/ {
16245 /^0/ {
16246 s/^0 *\(.*\)$/\1/
16250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16251 # Check for a 64-bit object if we didn't find anything.
16252 if test -z "$aix_libpath"; then
16253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16256 rm -f core conftest.err conftest.$ac_objext \
16257 conftest$ac_exeext conftest.$ac_ext
16258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16260 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16261 # Warning - without using the other run time loading flags,
16262 # -berok will link without error, but may produce a broken library.
16263 no_undefined_flag=' ${wl}-bernotok'
16264 allow_undefined_flag=' ${wl}-berok'
16265 if test "$with_gnu_ld" = yes; then
16266 # We only use this code for GNU lds that support --whole-archive.
16267 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16268 else
16269 # Exported symbols can be pulled into shared objects from archives
16270 whole_archive_flag_spec='$convenience'
16272 archive_cmds_need_lc=yes
16273 # This is similar to how AIX traditionally builds its shared libraries.
16274 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'
16279 amigaos*)
16280 case $host_cpu in
16281 powerpc)
16282 # see comment about AmigaOS4 .so support
16283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16284 archive_expsym_cmds=''
16286 m68k)
16287 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)'
16288 hardcode_libdir_flag_spec='-L$libdir'
16289 hardcode_minus_L=yes
16291 esac
16294 bsdi[45]*)
16295 export_dynamic_flag_spec=-rdynamic
16298 cygwin* | mingw* | pw32* | cegcc*)
16299 # When not using gcc, we currently assume that we are using
16300 # Microsoft Visual C++.
16301 # hardcode_libdir_flag_spec is actually meaningless, as there is
16302 # no search path for DLLs.
16303 hardcode_libdir_flag_spec=' '
16304 allow_undefined_flag=unsupported
16305 # Tell ltmain to make .lib files, not .a files.
16306 libext=lib
16307 # Tell ltmain to make .dll files, not .so files.
16308 shrext_cmds=".dll"
16309 # FIXME: Setting linknames here is a bad hack.
16310 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16311 # The linker will automatically build a .lib file if we build a DLL.
16312 old_archive_from_new_cmds='true'
16313 # FIXME: Should let the user specify the lib program.
16314 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16315 fix_srcfile_path='`cygpath -w "$srcfile"`'
16316 enable_shared_with_static_runtimes=yes
16319 darwin* | rhapsody*)
16322 archive_cmds_need_lc=no
16323 hardcode_direct=no
16324 hardcode_automatic=yes
16325 hardcode_shlibpath_var=unsupported
16326 if test "$lt_cv_ld_force_load" = "yes"; then
16327 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\"`'
16328 else
16329 whole_archive_flag_spec=''
16331 link_all_deplibs=yes
16332 allow_undefined_flag="$_lt_dar_allow_undefined"
16333 case $cc_basename in
16334 ifort*) _lt_dar_can_shared=yes ;;
16335 *) _lt_dar_can_shared=$GCC ;;
16336 esac
16337 if test "$_lt_dar_can_shared" = "yes"; then
16338 output_verbose_link_cmd=func_echo_all
16339 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16340 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16341 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}"
16342 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}"
16344 else
16345 ld_shlibs=no
16350 dgux*)
16351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16352 hardcode_libdir_flag_spec='-L$libdir'
16353 hardcode_shlibpath_var=no
16356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16357 # support. Future versions do this automatically, but an explicit c++rt0.o
16358 # does not break anything, and helps significantly (at the cost of a little
16359 # extra space).
16360 freebsd2.2*)
16361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16362 hardcode_libdir_flag_spec='-R$libdir'
16363 hardcode_direct=yes
16364 hardcode_shlibpath_var=no
16367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16368 freebsd2.*)
16369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16370 hardcode_direct=yes
16371 hardcode_minus_L=yes
16372 hardcode_shlibpath_var=no
16375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16376 freebsd* | dragonfly*)
16377 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16378 hardcode_libdir_flag_spec='-R$libdir'
16379 hardcode_direct=yes
16380 hardcode_shlibpath_var=no
16383 hpux9*)
16384 if test "$GCC" = yes; then
16385 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'
16386 else
16387 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'
16389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16390 hardcode_libdir_separator=:
16391 hardcode_direct=yes
16393 # hardcode_minus_L: Not really in the search PATH,
16394 # but as the default location of the library.
16395 hardcode_minus_L=yes
16396 export_dynamic_flag_spec='${wl}-E'
16399 hpux10*)
16400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16402 else
16403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16405 if test "$with_gnu_ld" = no; then
16406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16407 hardcode_libdir_flag_spec_ld='+b $libdir'
16408 hardcode_libdir_separator=:
16409 hardcode_direct=yes
16410 hardcode_direct_absolute=yes
16411 export_dynamic_flag_spec='${wl}-E'
16412 # hardcode_minus_L: Not really in the search PATH,
16413 # but as the default location of the library.
16414 hardcode_minus_L=yes
16418 hpux11*)
16419 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16420 case $host_cpu in
16421 hppa*64*)
16422 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16424 ia64*)
16425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16428 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16430 esac
16431 else
16432 case $host_cpu in
16433 hppa*64*)
16434 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16436 ia64*)
16437 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16441 # Older versions of the 11.00 compiler do not understand -b yet
16442 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16444 $as_echo_n "checking if $CC understands -b... " >&6; }
16445 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16446 $as_echo_n "(cached) " >&6
16447 else
16448 lt_cv_prog_compiler__b=no
16449 save_LDFLAGS="$LDFLAGS"
16450 LDFLAGS="$LDFLAGS -b"
16451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16453 # The linker can only warn and ignore the option if not recognized
16454 # So say no if there are warnings
16455 if test -s conftest.err; then
16456 # Append any errors to the config.log.
16457 cat conftest.err 1>&5
16458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16460 if diff conftest.exp conftest.er2 >/dev/null; then
16461 lt_cv_prog_compiler__b=yes
16463 else
16464 lt_cv_prog_compiler__b=yes
16467 $RM -r conftest*
16468 LDFLAGS="$save_LDFLAGS"
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16472 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16474 if test x"$lt_cv_prog_compiler__b" = xyes; then
16475 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16476 else
16477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16481 esac
16483 if test "$with_gnu_ld" = no; then
16484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16485 hardcode_libdir_separator=:
16487 case $host_cpu in
16488 hppa*64*|ia64*)
16489 hardcode_direct=no
16490 hardcode_shlibpath_var=no
16493 hardcode_direct=yes
16494 hardcode_direct_absolute=yes
16495 export_dynamic_flag_spec='${wl}-E'
16497 # hardcode_minus_L: Not really in the search PATH,
16498 # but as the default location of the library.
16499 hardcode_minus_L=yes
16501 esac
16505 irix5* | irix6* | nonstopux*)
16506 if test "$GCC" = yes; then
16507 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'
16508 # Try to use the -exported_symbol ld option, if it does not
16509 # work, assume that -exports_file does not work either and
16510 # implicitly export all symbols.
16511 save_LDFLAGS="$LDFLAGS"
16512 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16515 int foo(void) {}
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16518 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'
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16523 LDFLAGS="$save_LDFLAGS"
16524 else
16525 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'
16526 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'
16528 archive_cmds_need_lc='no'
16529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16530 hardcode_libdir_separator=:
16531 inherit_rpath=yes
16532 link_all_deplibs=yes
16535 netbsd*)
16536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16537 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16538 else
16539 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16541 hardcode_libdir_flag_spec='-R$libdir'
16542 hardcode_direct=yes
16543 hardcode_shlibpath_var=no
16546 newsos6)
16547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548 hardcode_direct=yes
16549 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16550 hardcode_libdir_separator=:
16551 hardcode_shlibpath_var=no
16554 *nto* | *qnx*)
16557 openbsd*)
16558 if test -f /usr/libexec/ld.so; then
16559 hardcode_direct=yes
16560 hardcode_shlibpath_var=no
16561 hardcode_direct_absolute=yes
16562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16564 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16565 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16566 export_dynamic_flag_spec='${wl}-E'
16567 else
16568 case $host_os in
16569 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16571 hardcode_libdir_flag_spec='-R$libdir'
16574 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16577 esac
16579 else
16580 ld_shlibs=no
16584 os2*)
16585 hardcode_libdir_flag_spec='-L$libdir'
16586 hardcode_minus_L=yes
16587 allow_undefined_flag=unsupported
16588 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'
16589 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16592 osf3*)
16593 if test "$GCC" = yes; then
16594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16595 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'
16596 else
16597 allow_undefined_flag=' -expect_unresolved \*'
16598 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'
16600 archive_cmds_need_lc='no'
16601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16602 hardcode_libdir_separator=:
16605 osf4* | osf5*) # as osf3* with the addition of -msym flag
16606 if test "$GCC" = yes; then
16607 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16608 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'
16609 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16610 else
16611 allow_undefined_flag=' -expect_unresolved \*'
16612 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'
16613 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~
16614 $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'
16616 # Both c and cxx compiler support -rpath directly
16617 hardcode_libdir_flag_spec='-rpath $libdir'
16619 archive_cmds_need_lc='no'
16620 hardcode_libdir_separator=:
16623 solaris*)
16624 no_undefined_flag=' -z defs'
16625 if test "$GCC" = yes; then
16626 wlarc='${wl}'
16627 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16629 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16630 else
16631 case `$CC -V 2>&1` in
16632 *"Compilers 5.0"*)
16633 wlarc=''
16634 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16635 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16636 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16639 wlarc='${wl}'
16640 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16642 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16644 esac
16646 hardcode_libdir_flag_spec='-R$libdir'
16647 hardcode_shlibpath_var=no
16648 case $host_os in
16649 solaris2.[0-5] | solaris2.[0-5].*) ;;
16651 # The compiler driver will combine and reorder linker options,
16652 # but understands `-z linker_flag'. GCC discards it without `$wl',
16653 # but is careful enough not to reorder.
16654 # Supported since Solaris 2.6 (maybe 2.5.1?)
16655 if test "$GCC" = yes; then
16656 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16657 else
16658 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16661 esac
16662 link_all_deplibs=yes
16665 sunos4*)
16666 if test "x$host_vendor" = xsequent; then
16667 # Use $CC to link under sequent, because it throws in some extra .o
16668 # files that make .init and .fini sections work.
16669 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16670 else
16671 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16673 hardcode_libdir_flag_spec='-L$libdir'
16674 hardcode_direct=yes
16675 hardcode_minus_L=yes
16676 hardcode_shlibpath_var=no
16679 sysv4)
16680 case $host_vendor in
16681 sni)
16682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16683 hardcode_direct=yes # is this really true???
16685 siemens)
16686 ## LD is ld it makes a PLAMLIB
16687 ## CC just makes a GrossModule.
16688 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16689 reload_cmds='$CC -r -o $output$reload_objs'
16690 hardcode_direct=no
16692 motorola)
16693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16694 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16696 esac
16697 runpath_var='LD_RUN_PATH'
16698 hardcode_shlibpath_var=no
16701 sysv4.3*)
16702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_shlibpath_var=no
16704 export_dynamic_flag_spec='-Bexport'
16707 sysv4*MP*)
16708 if test -d /usr/nec; then
16709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710 hardcode_shlibpath_var=no
16711 runpath_var=LD_RUN_PATH
16712 hardcode_runpath_var=yes
16713 ld_shlibs=yes
16717 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16718 no_undefined_flag='${wl}-z,text'
16719 archive_cmds_need_lc=no
16720 hardcode_shlibpath_var=no
16721 runpath_var='LD_RUN_PATH'
16723 if test "$GCC" = yes; then
16724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16726 else
16727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16732 sysv5* | sco3.2v5* | sco5v6*)
16733 # Note: We can NOT use -z defs as we might desire, because we do not
16734 # link with -lc, and that would cause any symbols used from libc to
16735 # always be unresolved, which means just about no library would
16736 # ever link correctly. If we're not using GNU ld we use -z text
16737 # though, which does catch some bad symbols but isn't as heavy-handed
16738 # as -z defs.
16739 no_undefined_flag='${wl}-z,text'
16740 allow_undefined_flag='${wl}-z,nodefs'
16741 archive_cmds_need_lc=no
16742 hardcode_shlibpath_var=no
16743 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16744 hardcode_libdir_separator=':'
16745 link_all_deplibs=yes
16746 export_dynamic_flag_spec='${wl}-Bexport'
16747 runpath_var='LD_RUN_PATH'
16749 if test "$GCC" = yes; then
16750 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16751 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16752 else
16753 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16754 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16758 uts4*)
16759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760 hardcode_libdir_flag_spec='-L$libdir'
16761 hardcode_shlibpath_var=no
16765 ld_shlibs=no
16767 esac
16769 if test x$host_vendor = xsni; then
16770 case $host in
16771 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16772 export_dynamic_flag_spec='${wl}-Blargedynsym'
16774 esac
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16779 $as_echo "$ld_shlibs" >&6; }
16780 test "$ld_shlibs" = no && can_build_shared=no
16782 with_gnu_ld=$with_gnu_ld
16799 # Do we need to explicitly link libc?
16801 case "x$archive_cmds_need_lc" in
16802 x|xyes)
16803 # Assume -lc should be added
16804 archive_cmds_need_lc=yes
16806 if test "$enable_shared" = yes && test "$GCC" = yes; then
16807 case $archive_cmds in
16808 *'~'*)
16809 # FIXME: we may have to deal with multi-command sequences.
16811 '$CC '*)
16812 # Test whether the compiler implicitly links with -lc since on some
16813 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16814 # to ld, don't add -lc before -lgcc.
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16816 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16817 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16818 $as_echo_n "(cached) " >&6
16819 else
16820 $RM conftest*
16821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16824 (eval $ac_compile) 2>&5
16825 ac_status=$?
16826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16827 test $ac_status = 0; } 2>conftest.err; then
16828 soname=conftest
16829 lib=conftest
16830 libobjs=conftest.$ac_objext
16831 deplibs=
16832 wl=$lt_prog_compiler_wl
16833 pic_flag=$lt_prog_compiler_pic
16834 compiler_flags=-v
16835 linker_flags=-v
16836 verstring=
16837 output_objdir=.
16838 libname=conftest
16839 lt_save_allow_undefined_flag=$allow_undefined_flag
16840 allow_undefined_flag=
16841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16842 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16843 ac_status=$?
16844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16845 test $ac_status = 0; }
16846 then
16847 lt_cv_archive_cmds_need_lc=no
16848 else
16849 lt_cv_archive_cmds_need_lc=yes
16851 allow_undefined_flag=$lt_save_allow_undefined_flag
16852 else
16853 cat conftest.err 1>&5
16855 $RM conftest*
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16859 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16860 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16862 esac
16865 esac
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17024 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17026 if test "$GCC" = yes; then
17027 case $host_os in
17028 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17029 *) lt_awk_arg="/^libraries:/" ;;
17030 esac
17031 case $host_os in
17032 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
17033 *) lt_sed_strip_eq="s,=/,/,g" ;;
17034 esac
17035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17036 case $lt_search_path_spec in
17037 *\;*)
17038 # if the path contains ";" then we assume it to be the separator
17039 # otherwise default to the standard path separator (i.e. ":") - it is
17040 # assumed that no part of a normal pathname contains ";" but that should
17041 # okay in the real world where ";" in dirpaths is itself problematic.
17042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17047 esac
17048 # Ok, now we have the path, separated by spaces, we can step through it
17049 # and add multilib dir if necessary.
17050 lt_tmp_lt_search_path_spec=
17051 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17052 for lt_sys_path in $lt_search_path_spec; do
17053 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17055 else
17056 test -d "$lt_sys_path" && \
17057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17059 done
17060 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17061 BEGIN {RS=" "; FS="/|\n";} {
17062 lt_foo="";
17063 lt_count=0;
17064 for (lt_i = NF; lt_i > 0; lt_i--) {
17065 if ($lt_i != "" && $lt_i != ".") {
17066 if ($lt_i == "..") {
17067 lt_count++;
17068 } else {
17069 if (lt_count == 0) {
17070 lt_foo="/" $lt_i lt_foo;
17071 } else {
17072 lt_count--;
17077 if (lt_foo != "") { lt_freq[lt_foo]++; }
17078 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17080 # AWK program above erroneously prepends '/' to C:/dos/paths
17081 # for these hosts.
17082 case $host_os in
17083 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17084 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17085 esac
17086 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17087 else
17088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17090 library_names_spec=
17091 libname_spec='lib$name'
17092 soname_spec=
17093 shrext_cmds=".so"
17094 postinstall_cmds=
17095 postuninstall_cmds=
17096 finish_cmds=
17097 finish_eval=
17098 shlibpath_var=
17099 shlibpath_overrides_runpath=unknown
17100 version_type=none
17101 dynamic_linker="$host_os ld.so"
17102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17103 need_lib_prefix=unknown
17104 hardcode_into_libs=no
17106 # when you set need_version to no, make sure it does not cause -set_version
17107 # flags to be left without arguments
17108 need_version=unknown
17110 case $host_os in
17111 aix3*)
17112 version_type=linux
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17114 shlibpath_var=LIBPATH
17116 # AIX 3 has no versioning support, so we append a major version to the name.
17117 soname_spec='${libname}${release}${shared_ext}$major'
17120 aix[4-9]*)
17121 version_type=linux
17122 need_lib_prefix=no
17123 need_version=no
17124 hardcode_into_libs=yes
17125 if test "$host_cpu" = ia64; then
17126 # AIX 5 supports IA64
17127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17128 shlibpath_var=LD_LIBRARY_PATH
17129 else
17130 # With GCC up to 2.95.x, collect2 would create an import file
17131 # for dependence libraries. The import file would start with
17132 # the line `#! .'. This would cause the generated library to
17133 # depend on `.', always an invalid library. This was fixed in
17134 # development snapshots of GCC prior to 3.0.
17135 case $host_os in
17136 aix4 | aix4.[01] | aix4.[01].*)
17137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17138 echo ' yes '
17139 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17141 else
17142 can_build_shared=no
17145 esac
17146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17147 # soname into executable. Probably we can add versioning support to
17148 # collect2, so additional links can be useful in future.
17149 if test "$aix_use_runtimelinking" = yes; then
17150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17151 # instead of lib<name>.a to let people know that these are not
17152 # typical AIX shared libraries.
17153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17154 else
17155 # We preserve .a as extension for shared libraries through AIX4.2
17156 # and later when we are not doing run time linking.
17157 library_names_spec='${libname}${release}.a $libname.a'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17160 shlibpath_var=LIBPATH
17164 amigaos*)
17165 case $host_cpu in
17166 powerpc)
17167 # Since July 2007 AmigaOS4 officially supports .so libraries.
17168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 m68k)
17172 library_names_spec='$libname.ixlibrary $libname.a'
17173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17174 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'
17176 esac
17179 beos*)
17180 library_names_spec='${libname}${shared_ext}'
17181 dynamic_linker="$host_os ld.so"
17182 shlibpath_var=LIBRARY_PATH
17185 bsdi[45]*)
17186 version_type=linux
17187 need_version=no
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17189 soname_spec='${libname}${release}${shared_ext}$major'
17190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17191 shlibpath_var=LD_LIBRARY_PATH
17192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17194 # the default ld.so.conf also contains /usr/contrib/lib and
17195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17196 # libtool to hard-code these into programs
17199 cygwin* | mingw* | pw32* | cegcc*)
17200 version_type=windows
17201 shrext_cmds=".dll"
17202 need_version=no
17203 need_lib_prefix=no
17205 case $GCC,$host_os in
17206 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17207 library_names_spec='$libname.dll.a'
17208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17209 postinstall_cmds='base_file=`basename \${file}`~
17210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17211 dldir=$destdir/`dirname \$dlpath`~
17212 test -d \$dldir || mkdir -p \$dldir~
17213 $install_prog $dir/$dlname \$dldir/$dlname~
17214 chmod a+x \$dldir/$dlname~
17215 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17216 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17219 dlpath=$dir/\$dldll~
17220 $RM \$dlpath'
17221 shlibpath_overrides_runpath=yes
17223 case $host_os in
17224 cygwin*)
17225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17226 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17230 mingw* | cegcc*)
17231 # MinGW DLLs use traditional 'lib' prefix
17232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17234 pw32*)
17235 # pw32 DLLs use 'pw' prefix rather than 'lib'
17236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17238 esac
17242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17244 esac
17245 dynamic_linker='Win32 ld.exe'
17246 # FIXME: first we should search . and the directory the executable is in
17247 shlibpath_var=PATH
17250 darwin* | rhapsody*)
17251 dynamic_linker="$host_os dyld"
17252 version_type=darwin
17253 need_lib_prefix=no
17254 need_version=no
17255 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17256 soname_spec='${libname}${release}${major}$shared_ext'
17257 shlibpath_overrides_runpath=yes
17258 shlibpath_var=DYLD_LIBRARY_PATH
17259 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17261 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17265 dgux*)
17266 version_type=linux
17267 need_lib_prefix=no
17268 need_version=no
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 shlibpath_var=LD_LIBRARY_PATH
17274 freebsd* | dragonfly*)
17275 # DragonFly does not have aout. When/if they implement a new
17276 # versioning mechanism, adjust this.
17277 if test -x /usr/bin/objformat; then
17278 objformat=`/usr/bin/objformat`
17279 else
17280 case $host_os in
17281 freebsd[23].*) objformat=aout ;;
17282 *) objformat=elf ;;
17283 esac
17285 version_type=freebsd-$objformat
17286 case $version_type in
17287 freebsd-elf*)
17288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17289 need_version=no
17290 need_lib_prefix=no
17292 freebsd-*)
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17294 need_version=yes
17296 esac
17297 shlibpath_var=LD_LIBRARY_PATH
17298 case $host_os in
17299 freebsd2.*)
17300 shlibpath_overrides_runpath=yes
17302 freebsd3.[01]* | freebsdelf3.[01]*)
17303 shlibpath_overrides_runpath=yes
17304 hardcode_into_libs=yes
17306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17308 shlibpath_overrides_runpath=no
17309 hardcode_into_libs=yes
17311 *) # from 4.6 on, and DragonFly
17312 shlibpath_overrides_runpath=yes
17313 hardcode_into_libs=yes
17315 esac
17318 gnu*)
17319 version_type=linux
17320 need_lib_prefix=no
17321 need_version=no
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 shlibpath_var=LD_LIBRARY_PATH
17325 hardcode_into_libs=yes
17328 haiku*)
17329 version_type=linux
17330 need_lib_prefix=no
17331 need_version=no
17332 dynamic_linker="$host_os runtime_loader"
17333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17334 soname_spec='${libname}${release}${shared_ext}$major'
17335 shlibpath_var=LIBRARY_PATH
17336 shlibpath_overrides_runpath=yes
17337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17338 hardcode_into_libs=yes
17341 hpux9* | hpux10* | hpux11*)
17342 # Give a soname corresponding to the major version so that dld.sl refuses to
17343 # link against other versions.
17344 version_type=sunos
17345 need_lib_prefix=no
17346 need_version=no
17347 case $host_cpu in
17348 ia64*)
17349 shrext_cmds='.so'
17350 hardcode_into_libs=yes
17351 dynamic_linker="$host_os dld.so"
17352 shlibpath_var=LD_LIBRARY_PATH
17353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 if test "X$HPUX_IA64_MODE" = X32; then
17357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17358 else
17359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17363 hppa*64*)
17364 shrext_cmds='.sl'
17365 hardcode_into_libs=yes
17366 dynamic_linker="$host_os dld.sl"
17367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17375 shrext_cmds='.sl'
17376 dynamic_linker="$host_os dld.sl"
17377 shlibpath_var=SHLIB_PATH
17378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17382 esac
17383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17384 postinstall_cmds='chmod 555 $lib'
17385 # or fails outright, so override atomically:
17386 install_override_mode=555
17389 interix[3-9]*)
17390 version_type=linux
17391 need_lib_prefix=no
17392 need_version=no
17393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17394 soname_spec='${libname}${release}${shared_ext}$major'
17395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17396 shlibpath_var=LD_LIBRARY_PATH
17397 shlibpath_overrides_runpath=no
17398 hardcode_into_libs=yes
17401 irix5* | irix6* | nonstopux*)
17402 case $host_os in
17403 nonstopux*) version_type=nonstopux ;;
17405 if test "$lt_cv_prog_gnu_ld" = yes; then
17406 version_type=linux
17407 else
17408 version_type=irix
17409 fi ;;
17410 esac
17411 need_lib_prefix=no
17412 need_version=no
17413 soname_spec='${libname}${release}${shared_ext}$major'
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17415 case $host_os in
17416 irix5* | nonstopux*)
17417 libsuff= shlibsuff=
17420 case $LD in # libtool.m4 will add one of these switches to LD
17421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17422 libsuff= shlibsuff= libmagic=32-bit;;
17423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17424 libsuff=32 shlibsuff=N32 libmagic=N32;;
17425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17427 *) libsuff= shlibsuff= libmagic=never-match;;
17428 esac
17430 esac
17431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17432 shlibpath_overrides_runpath=no
17433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17435 hardcode_into_libs=yes
17438 # No shared lib support for Linux oldld, aout, or coff.
17439 linux*oldld* | linux*aout* | linux*coff*)
17440 dynamic_linker=no
17443 # This must be Linux ELF.
17444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17445 version_type=linux
17446 need_lib_prefix=no
17447 need_version=no
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17449 soname_spec='${libname}${release}${shared_ext}$major'
17450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17451 shlibpath_var=LD_LIBRARY_PATH
17452 shlibpath_overrides_runpath=no
17454 # Some binutils ld are patched to set DT_RUNPATH
17455 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17456 $as_echo_n "(cached) " >&6
17457 else
17458 lt_cv_shlibpath_overrides_runpath=no
17459 save_LDFLAGS=$LDFLAGS
17460 save_libdir=$libdir
17461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17467 main ()
17471 return 0;
17473 _ACEOF
17474 if ac_fn_c_try_link "$LINENO"; then :
17475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17476 lt_cv_shlibpath_overrides_runpath=yes
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17481 LDFLAGS=$save_LDFLAGS
17482 libdir=$save_libdir
17486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17488 # This implies no fast_install, which is unacceptable.
17489 # Some rework will be needed to allow for fast_install
17490 # before this can be enabled.
17491 hardcode_into_libs=yes
17493 # Append ld.so.conf contents to the search path
17494 if test -f /etc/ld.so.conf; then
17495 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' ' '`
17496 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17499 # We used to test for /lib/ld.so.1 and disable shared libraries on
17500 # powerpc, because MkLinux only supported shared libraries with the
17501 # GNU dynamic linker. Since this was broken with cross compilers,
17502 # most powerpc-linux boxes support dynamic linking these days and
17503 # people can always --disable-shared, the test was removed, and we
17504 # assume the GNU/Linux dynamic linker is in use.
17505 dynamic_linker='GNU/Linux ld.so'
17508 netbsd*)
17509 version_type=sunos
17510 need_lib_prefix=no
17511 need_version=no
17512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17515 dynamic_linker='NetBSD (a.out) ld.so'
17516 else
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17518 soname_spec='${libname}${release}${shared_ext}$major'
17519 dynamic_linker='NetBSD ld.elf_so'
17521 shlibpath_var=LD_LIBRARY_PATH
17522 shlibpath_overrides_runpath=yes
17523 hardcode_into_libs=yes
17526 newsos6)
17527 version_type=linux
17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17529 shlibpath_var=LD_LIBRARY_PATH
17530 shlibpath_overrides_runpath=yes
17533 *nto* | *qnx*)
17534 version_type=qnx
17535 need_lib_prefix=no
17536 need_version=no
17537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17539 shlibpath_var=LD_LIBRARY_PATH
17540 shlibpath_overrides_runpath=no
17541 hardcode_into_libs=yes
17542 dynamic_linker='ldqnx.so'
17545 openbsd*)
17546 version_type=sunos
17547 sys_lib_dlsearch_path_spec="/usr/lib"
17548 need_lib_prefix=no
17549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17550 case $host_os in
17551 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17552 *) need_version=no ;;
17553 esac
17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17556 shlibpath_var=LD_LIBRARY_PATH
17557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17558 case $host_os in
17559 openbsd2.[89] | openbsd2.[89].*)
17560 shlibpath_overrides_runpath=no
17563 shlibpath_overrides_runpath=yes
17565 esac
17566 else
17567 shlibpath_overrides_runpath=yes
17571 os2*)
17572 libname_spec='$name'
17573 shrext_cmds=".dll"
17574 need_lib_prefix=no
17575 library_names_spec='$libname${shared_ext} $libname.a'
17576 dynamic_linker='OS/2 ld.exe'
17577 shlibpath_var=LIBPATH
17580 osf3* | osf4* | osf5*)
17581 version_type=osf
17582 need_lib_prefix=no
17583 need_version=no
17584 soname_spec='${libname}${release}${shared_ext}$major'
17585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586 shlibpath_var=LD_LIBRARY_PATH
17587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17591 rdos*)
17592 dynamic_linker=no
17595 solaris*)
17596 version_type=linux
17597 need_lib_prefix=no
17598 need_version=no
17599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 shlibpath_var=LD_LIBRARY_PATH
17602 shlibpath_overrides_runpath=yes
17603 hardcode_into_libs=yes
17604 # ldd complains unless libraries are executable
17605 postinstall_cmds='chmod +x $lib'
17608 sunos4*)
17609 version_type=sunos
17610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17612 shlibpath_var=LD_LIBRARY_PATH
17613 shlibpath_overrides_runpath=yes
17614 if test "$with_gnu_ld" = yes; then
17615 need_lib_prefix=no
17617 need_version=yes
17620 sysv4 | sysv4.3*)
17621 version_type=linux
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17623 soname_spec='${libname}${release}${shared_ext}$major'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 case $host_vendor in
17626 sni)
17627 shlibpath_overrides_runpath=no
17628 need_lib_prefix=no
17629 runpath_var=LD_RUN_PATH
17631 siemens)
17632 need_lib_prefix=no
17634 motorola)
17635 need_lib_prefix=no
17636 need_version=no
17637 shlibpath_overrides_runpath=no
17638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17640 esac
17643 sysv4*MP*)
17644 if test -d /usr/nec ;then
17645 version_type=linux
17646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17647 soname_spec='$libname${shared_ext}.$major'
17648 shlibpath_var=LD_LIBRARY_PATH
17652 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17653 version_type=freebsd-elf
17654 need_lib_prefix=no
17655 need_version=no
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17657 soname_spec='${libname}${release}${shared_ext}$major'
17658 shlibpath_var=LD_LIBRARY_PATH
17659 shlibpath_overrides_runpath=yes
17660 hardcode_into_libs=yes
17661 if test "$with_gnu_ld" = yes; then
17662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17663 else
17664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17665 case $host_os in
17666 sco3.2v5*)
17667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17669 esac
17671 sys_lib_dlsearch_path_spec='/usr/lib'
17674 tpf*)
17675 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17676 version_type=linux
17677 need_lib_prefix=no
17678 need_version=no
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 shlibpath_var=LD_LIBRARY_PATH
17681 shlibpath_overrides_runpath=no
17682 hardcode_into_libs=yes
17685 uts4*)
17686 version_type=linux
17687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17688 soname_spec='${libname}${release}${shared_ext}$major'
17689 shlibpath_var=LD_LIBRARY_PATH
17693 dynamic_linker=no
17695 esac
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17697 $as_echo "$dynamic_linker" >&6; }
17698 test "$dynamic_linker" = no && can_build_shared=no
17700 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17701 if test "$GCC" = yes; then
17702 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17705 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17706 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17708 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17709 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17804 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17805 hardcode_action=
17806 if test -n "$hardcode_libdir_flag_spec" ||
17807 test -n "$runpath_var" ||
17808 test "X$hardcode_automatic" = "Xyes" ; then
17810 # We can hardcode non-existent directories.
17811 if test "$hardcode_direct" != no &&
17812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17813 # have to relink, otherwise we might link with an installed library
17814 # when we should be linking with a yet-to-be-installed one
17815 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17816 test "$hardcode_minus_L" != no; then
17817 # Linking always hardcodes the temporary library directory.
17818 hardcode_action=relink
17819 else
17820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17821 hardcode_action=immediate
17823 else
17824 # We cannot hardcode anything, or else we can only hardcode existing
17825 # directories.
17826 hardcode_action=unsupported
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17829 $as_echo "$hardcode_action" >&6; }
17831 if test "$hardcode_action" = relink ||
17832 test "$inherit_rpath" = yes; then
17833 # Fast installation is not supported
17834 enable_fast_install=no
17835 elif test "$shlibpath_overrides_runpath" = yes ||
17836 test "$enable_shared" = no; then
17837 # Fast installation is not necessary
17838 enable_fast_install=needless
17846 if test "x$enable_dlopen" != xyes; then
17847 enable_dlopen=unknown
17848 enable_dlopen_self=unknown
17849 enable_dlopen_self_static=unknown
17850 else
17851 lt_cv_dlopen=no
17852 lt_cv_dlopen_libs=
17854 case $host_os in
17855 beos*)
17856 lt_cv_dlopen="load_add_on"
17857 lt_cv_dlopen_libs=
17858 lt_cv_dlopen_self=yes
17861 mingw* | pw32* | cegcc*)
17862 lt_cv_dlopen="LoadLibrary"
17863 lt_cv_dlopen_libs=
17866 cygwin*)
17867 lt_cv_dlopen="dlopen"
17868 lt_cv_dlopen_libs=
17871 darwin*)
17872 # if libdl is installed we need to link against it
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17874 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17876 $as_echo_n "(cached) " >&6
17877 else
17878 ac_check_lib_save_LIBS=$LIBS
17879 LIBS="-ldl $LIBS"
17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17883 /* Override any GCC internal prototype to avoid an error.
17884 Use char because int might match the return type of a GCC
17885 builtin and then its argument prototype would still apply. */
17886 #ifdef __cplusplus
17887 extern "C"
17888 #endif
17889 char dlopen ();
17891 main ()
17893 return dlopen ();
17895 return 0;
17897 _ACEOF
17898 if ac_fn_c_try_link "$LINENO"; then :
17899 ac_cv_lib_dl_dlopen=yes
17900 else
17901 ac_cv_lib_dl_dlopen=no
17903 rm -f core conftest.err conftest.$ac_objext \
17904 conftest$ac_exeext conftest.$ac_ext
17905 LIBS=$ac_check_lib_save_LIBS
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17908 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17909 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17910 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17911 else
17913 lt_cv_dlopen="dyld"
17914 lt_cv_dlopen_libs=
17915 lt_cv_dlopen_self=yes
17922 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17923 if test "x$ac_cv_func_shl_load" = x""yes; then :
17924 lt_cv_dlopen="shl_load"
17925 else
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17927 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17928 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17929 $as_echo_n "(cached) " >&6
17930 else
17931 ac_check_lib_save_LIBS=$LIBS
17932 LIBS="-ldld $LIBS"
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17936 /* Override any GCC internal prototype to avoid an error.
17937 Use char because int might match the return type of a GCC
17938 builtin and then its argument prototype would still apply. */
17939 #ifdef __cplusplus
17940 extern "C"
17941 #endif
17942 char shl_load ();
17944 main ()
17946 return shl_load ();
17948 return 0;
17950 _ACEOF
17951 if ac_fn_c_try_link "$LINENO"; then :
17952 ac_cv_lib_dld_shl_load=yes
17953 else
17954 ac_cv_lib_dld_shl_load=no
17956 rm -f core conftest.err conftest.$ac_objext \
17957 conftest$ac_exeext conftest.$ac_ext
17958 LIBS=$ac_check_lib_save_LIBS
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17961 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17962 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17963 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17964 else
17965 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17966 if test "x$ac_cv_func_dlopen" = x""yes; then :
17967 lt_cv_dlopen="dlopen"
17968 else
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17972 $as_echo_n "(cached) " >&6
17973 else
17974 ac_check_lib_save_LIBS=$LIBS
17975 LIBS="-ldl $LIBS"
17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977 /* end confdefs.h. */
17979 /* Override any GCC internal prototype to avoid an error.
17980 Use char because int might match the return type of a GCC
17981 builtin and then its argument prototype would still apply. */
17982 #ifdef __cplusplus
17983 extern "C"
17984 #endif
17985 char dlopen ();
17987 main ()
17989 return dlopen ();
17991 return 0;
17993 _ACEOF
17994 if ac_fn_c_try_link "$LINENO"; then :
17995 ac_cv_lib_dl_dlopen=yes
17996 else
17997 ac_cv_lib_dl_dlopen=no
17999 rm -f core conftest.err conftest.$ac_objext \
18000 conftest$ac_exeext conftest.$ac_ext
18001 LIBS=$ac_check_lib_save_LIBS
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18007 else
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18011 $as_echo_n "(cached) " >&6
18012 else
18013 ac_check_lib_save_LIBS=$LIBS
18014 LIBS="-lsvld $LIBS"
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18018 /* Override any GCC internal prototype to avoid an error.
18019 Use char because int might match the return type of a GCC
18020 builtin and then its argument prototype would still apply. */
18021 #ifdef __cplusplus
18022 extern "C"
18023 #endif
18024 char dlopen ();
18026 main ()
18028 return dlopen ();
18030 return 0;
18032 _ACEOF
18033 if ac_fn_c_try_link "$LINENO"; then :
18034 ac_cv_lib_svld_dlopen=yes
18035 else
18036 ac_cv_lib_svld_dlopen=no
18038 rm -f core conftest.err conftest.$ac_objext \
18039 conftest$ac_exeext conftest.$ac_ext
18040 LIBS=$ac_check_lib_save_LIBS
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18043 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18044 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18046 else
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18048 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18049 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 ac_check_lib_save_LIBS=$LIBS
18053 LIBS="-ldld $LIBS"
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18060 #ifdef __cplusplus
18061 extern "C"
18062 #endif
18063 char dld_link ();
18065 main ()
18067 return dld_link ();
18069 return 0;
18071 _ACEOF
18072 if ac_fn_c_try_link "$LINENO"; then :
18073 ac_cv_lib_dld_dld_link=yes
18074 else
18075 ac_cv_lib_dld_dld_link=no
18077 rm -f core conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18079 LIBS=$ac_check_lib_save_LIBS
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18082 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18083 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18084 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18103 esac
18105 if test "x$lt_cv_dlopen" != xno; then
18106 enable_dlopen=yes
18107 else
18108 enable_dlopen=no
18111 case $lt_cv_dlopen in
18112 dlopen)
18113 save_CPPFLAGS="$CPPFLAGS"
18114 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18116 save_LDFLAGS="$LDFLAGS"
18117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18119 save_LIBS="$LIBS"
18120 LIBS="$lt_cv_dlopen_libs $LIBS"
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18123 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18124 if test "${lt_cv_dlopen_self+set}" = set; then :
18125 $as_echo_n "(cached) " >&6
18126 else
18127 if test "$cross_compiling" = yes; then :
18128 lt_cv_dlopen_self=cross
18129 else
18130 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18131 lt_status=$lt_dlunknown
18132 cat > conftest.$ac_ext <<_LT_EOF
18133 #line 18133 "configure"
18134 #include "confdefs.h"
18136 #if HAVE_DLFCN_H
18137 #include <dlfcn.h>
18138 #endif
18140 #include <stdio.h>
18142 #ifdef RTLD_GLOBAL
18143 # define LT_DLGLOBAL RTLD_GLOBAL
18144 #else
18145 # ifdef DL_GLOBAL
18146 # define LT_DLGLOBAL DL_GLOBAL
18147 # else
18148 # define LT_DLGLOBAL 0
18149 # endif
18150 #endif
18152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18153 find out it does not work in some platform. */
18154 #ifndef LT_DLLAZY_OR_NOW
18155 # ifdef RTLD_LAZY
18156 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18157 # else
18158 # ifdef DL_LAZY
18159 # define LT_DLLAZY_OR_NOW DL_LAZY
18160 # else
18161 # ifdef RTLD_NOW
18162 # define LT_DLLAZY_OR_NOW RTLD_NOW
18163 # else
18164 # ifdef DL_NOW
18165 # define LT_DLLAZY_OR_NOW DL_NOW
18166 # else
18167 # define LT_DLLAZY_OR_NOW 0
18168 # endif
18169 # endif
18170 # endif
18171 # endif
18172 #endif
18174 /* When -fvisbility=hidden is used, assume the code has been annotated
18175 correspondingly for the symbols needed. */
18176 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18177 void fnord () __attribute__((visibility("default")));
18178 #endif
18180 void fnord () { int i=42; }
18181 int main ()
18183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18184 int status = $lt_dlunknown;
18186 if (self)
18188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18189 else
18191 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18192 else puts (dlerror ());
18194 /* dlclose (self); */
18196 else
18197 puts (dlerror ());
18199 return status;
18201 _LT_EOF
18202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18203 (eval $ac_link) 2>&5
18204 ac_status=$?
18205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18206 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18207 (./conftest; exit; ) >&5 2>/dev/null
18208 lt_status=$?
18209 case x$lt_status in
18210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18213 esac
18214 else :
18215 # compilation failed
18216 lt_cv_dlopen_self=no
18219 rm -fr conftest*
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18224 $as_echo "$lt_cv_dlopen_self" >&6; }
18226 if test "x$lt_cv_dlopen_self" = xyes; then
18227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18229 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18230 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18231 $as_echo_n "(cached) " >&6
18232 else
18233 if test "$cross_compiling" = yes; then :
18234 lt_cv_dlopen_self_static=cross
18235 else
18236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18237 lt_status=$lt_dlunknown
18238 cat > conftest.$ac_ext <<_LT_EOF
18239 #line 18239 "configure"
18240 #include "confdefs.h"
18242 #if HAVE_DLFCN_H
18243 #include <dlfcn.h>
18244 #endif
18246 #include <stdio.h>
18248 #ifdef RTLD_GLOBAL
18249 # define LT_DLGLOBAL RTLD_GLOBAL
18250 #else
18251 # ifdef DL_GLOBAL
18252 # define LT_DLGLOBAL DL_GLOBAL
18253 # else
18254 # define LT_DLGLOBAL 0
18255 # endif
18256 #endif
18258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18259 find out it does not work in some platform. */
18260 #ifndef LT_DLLAZY_OR_NOW
18261 # ifdef RTLD_LAZY
18262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18263 # else
18264 # ifdef DL_LAZY
18265 # define LT_DLLAZY_OR_NOW DL_LAZY
18266 # else
18267 # ifdef RTLD_NOW
18268 # define LT_DLLAZY_OR_NOW RTLD_NOW
18269 # else
18270 # ifdef DL_NOW
18271 # define LT_DLLAZY_OR_NOW DL_NOW
18272 # else
18273 # define LT_DLLAZY_OR_NOW 0
18274 # endif
18275 # endif
18276 # endif
18277 # endif
18278 #endif
18280 /* When -fvisbility=hidden is used, assume the code has been annotated
18281 correspondingly for the symbols needed. */
18282 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18283 void fnord () __attribute__((visibility("default")));
18284 #endif
18286 void fnord () { int i=42; }
18287 int main ()
18289 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18290 int status = $lt_dlunknown;
18292 if (self)
18294 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18295 else
18297 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18298 else puts (dlerror ());
18300 /* dlclose (self); */
18302 else
18303 puts (dlerror ());
18305 return status;
18307 _LT_EOF
18308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18309 (eval $ac_link) 2>&5
18310 ac_status=$?
18311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18312 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18313 (./conftest; exit; ) >&5 2>/dev/null
18314 lt_status=$?
18315 case x$lt_status in
18316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18319 esac
18320 else :
18321 # compilation failed
18322 lt_cv_dlopen_self_static=no
18325 rm -fr conftest*
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18333 CPPFLAGS="$save_CPPFLAGS"
18334 LDFLAGS="$save_LDFLAGS"
18335 LIBS="$save_LIBS"
18337 esac
18339 case $lt_cv_dlopen_self in
18340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18341 *) enable_dlopen_self=unknown ;;
18342 esac
18344 case $lt_cv_dlopen_self_static in
18345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18346 *) enable_dlopen_self_static=unknown ;;
18347 esac
18366 striplib=
18367 old_striplib=
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18374 $as_echo "yes" >&6; }
18375 else
18376 # FIXME - insert some real tests, host_os isn't really good enough
18377 case $host_os in
18378 darwin*)
18379 if test -n "$STRIP" ; then
18380 striplib="$STRIP -x"
18381 old_striplib="$STRIP -S"
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18383 $as_echo "yes" >&6; }
18384 else
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386 $as_echo "no" >&6; }
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391 $as_echo "no" >&6; }
18393 esac
18407 # Report which library types will actually be built
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18411 $as_echo "$can_build_shared" >&6; }
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18414 $as_echo_n "checking whether to build shared libraries... " >&6; }
18415 test "$can_build_shared" = "no" && enable_shared=no
18417 # On AIX, shared libraries and static libraries use the same namespace, and
18418 # are all built from PIC.
18419 case $host_os in
18420 aix3*)
18421 test "$enable_shared" = yes && enable_static=no
18422 if test -n "$RANLIB"; then
18423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18424 postinstall_cmds='$RANLIB $lib'
18428 aix[4-9]*)
18429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18430 test "$enable_shared" = yes && enable_static=no
18433 esac
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18435 $as_echo "$enable_shared" >&6; }
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18438 $as_echo_n "checking whether to build static libraries... " >&6; }
18439 # Make sure either enable_shared or enable_static is yes.
18440 test "$enable_shared" = yes || enable_static=yes
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18442 $as_echo "$enable_static" >&6; }
18448 ac_ext=c
18449 ac_cpp='$CPP $CPPFLAGS'
18450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18454 CC="$lt_save_CC"
18456 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18457 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18458 (test "X$CXX" != "Xg++"))) ; then
18459 ac_ext=cpp
18460 ac_cpp='$CXXCPP $CPPFLAGS'
18461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18465 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18466 if test -z "$CXXCPP"; then
18467 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18468 $as_echo_n "(cached) " >&6
18469 else
18470 # Double quotes because CXXCPP needs to be expanded
18471 for CXXCPP in "$CXX -E" "/lib/cpp"
18473 ac_preproc_ok=false
18474 for ac_cxx_preproc_warn_flag in '' yes
18476 # Use a header file that comes with gcc, so configuring glibc
18477 # with a fresh cross-compiler works.
18478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18479 # <limits.h> exists even on freestanding compilers.
18480 # On the NeXT, cc -E runs the code through the compiler's parser,
18481 # not just through cpp. "Syntax error" is here to catch this case.
18482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18484 #ifdef __STDC__
18485 # include <limits.h>
18486 #else
18487 # include <assert.h>
18488 #endif
18489 Syntax error
18490 _ACEOF
18491 if ac_fn_cxx_try_cpp "$LINENO"; then :
18493 else
18494 # Broken: fails on valid input.
18495 continue
18497 rm -f conftest.err conftest.$ac_ext
18499 # OK, works on sane cases. Now check whether nonexistent headers
18500 # can be detected and how.
18501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18502 /* end confdefs.h. */
18503 #include <ac_nonexistent.h>
18504 _ACEOF
18505 if ac_fn_cxx_try_cpp "$LINENO"; then :
18506 # Broken: success on invalid input.
18507 continue
18508 else
18509 # Passes both tests.
18510 ac_preproc_ok=:
18511 break
18513 rm -f conftest.err conftest.$ac_ext
18515 done
18516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18517 rm -f conftest.err conftest.$ac_ext
18518 if $ac_preproc_ok; then :
18519 break
18522 done
18523 ac_cv_prog_CXXCPP=$CXXCPP
18526 CXXCPP=$ac_cv_prog_CXXCPP
18527 else
18528 ac_cv_prog_CXXCPP=$CXXCPP
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18531 $as_echo "$CXXCPP" >&6; }
18532 ac_preproc_ok=false
18533 for ac_cxx_preproc_warn_flag in '' yes
18535 # Use a header file that comes with gcc, so configuring glibc
18536 # with a fresh cross-compiler works.
18537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18538 # <limits.h> exists even on freestanding compilers.
18539 # On the NeXT, cc -E runs the code through the compiler's parser,
18540 # not just through cpp. "Syntax error" is here to catch this case.
18541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542 /* end confdefs.h. */
18543 #ifdef __STDC__
18544 # include <limits.h>
18545 #else
18546 # include <assert.h>
18547 #endif
18548 Syntax error
18549 _ACEOF
18550 if ac_fn_cxx_try_cpp "$LINENO"; then :
18552 else
18553 # Broken: fails on valid input.
18554 continue
18556 rm -f conftest.err conftest.$ac_ext
18558 # OK, works on sane cases. Now check whether nonexistent headers
18559 # can be detected and how.
18560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18561 /* end confdefs.h. */
18562 #include <ac_nonexistent.h>
18563 _ACEOF
18564 if ac_fn_cxx_try_cpp "$LINENO"; then :
18565 # Broken: success on invalid input.
18566 continue
18567 else
18568 # Passes both tests.
18569 ac_preproc_ok=:
18570 break
18572 rm -f conftest.err conftest.$ac_ext
18574 done
18575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18576 rm -f conftest.err conftest.$ac_ext
18577 if $ac_preproc_ok; then :
18579 else
18580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18582 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18583 See \`config.log' for more details." "$LINENO" 5; }
18586 ac_ext=c
18587 ac_cpp='$CPP $CPPFLAGS'
18588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18592 else
18593 _lt_caught_CXX_error=yes
18596 ac_ext=cpp
18597 ac_cpp='$CXXCPP $CPPFLAGS'
18598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18602 archive_cmds_need_lc_CXX=no
18603 allow_undefined_flag_CXX=
18604 always_export_symbols_CXX=no
18605 archive_expsym_cmds_CXX=
18606 compiler_needs_object_CXX=no
18607 export_dynamic_flag_spec_CXX=
18608 hardcode_direct_CXX=no
18609 hardcode_direct_absolute_CXX=no
18610 hardcode_libdir_flag_spec_CXX=
18611 hardcode_libdir_flag_spec_ld_CXX=
18612 hardcode_libdir_separator_CXX=
18613 hardcode_minus_L_CXX=no
18614 hardcode_shlibpath_var_CXX=unsupported
18615 hardcode_automatic_CXX=no
18616 inherit_rpath_CXX=no
18617 module_cmds_CXX=
18618 module_expsym_cmds_CXX=
18619 link_all_deplibs_CXX=unknown
18620 old_archive_cmds_CXX=$old_archive_cmds
18621 reload_flag_CXX=$reload_flag
18622 reload_cmds_CXX=$reload_cmds
18623 no_undefined_flag_CXX=
18624 whole_archive_flag_spec_CXX=
18625 enable_shared_with_static_runtimes_CXX=no
18627 # Source file extension for C++ test sources.
18628 ac_ext=cpp
18630 # Object file extension for compiled C++ test sources.
18631 objext=o
18632 objext_CXX=$objext
18634 # No sense in running all these tests if we already determined that
18635 # the CXX compiler isn't working. Some variables (like enable_shared)
18636 # are currently assumed to apply to all compilers on this platform,
18637 # and will be corrupted by setting them based on a non-working compiler.
18638 if test "$_lt_caught_CXX_error" != yes; then
18639 # Code to be used in simple compile tests
18640 lt_simple_compile_test_code="int some_variable = 0;"
18642 # Code to be used in simple link tests
18643 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18652 # If no C compiler was specified, use CC.
18653 LTCC=${LTCC-"$CC"}
18655 # If no C compiler flags were specified, use CFLAGS.
18656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18658 # Allow CC to be a program name with arguments.
18659 compiler=$CC
18662 # save warnings/boilerplate of simple test code
18663 ac_outfile=conftest.$ac_objext
18664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18666 _lt_compiler_boilerplate=`cat conftest.err`
18667 $RM conftest*
18669 ac_outfile=conftest.$ac_objext
18670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18672 _lt_linker_boilerplate=`cat conftest.err`
18673 $RM -r conftest*
18676 # Allow CC to be a program name with arguments.
18677 lt_save_CC=$CC
18678 lt_save_LD=$LD
18679 lt_save_GCC=$GCC
18680 GCC=$GXX
18681 lt_save_with_gnu_ld=$with_gnu_ld
18682 lt_save_path_LD=$lt_cv_path_LD
18683 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18684 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18685 else
18686 $as_unset lt_cv_prog_gnu_ld
18688 if test -n "${lt_cv_path_LDCXX+set}"; then
18689 lt_cv_path_LD=$lt_cv_path_LDCXX
18690 else
18691 $as_unset lt_cv_path_LD
18693 test -z "${LDCXX+set}" || LD=$LDCXX
18694 CC=${CXX-"c++"}
18695 compiler=$CC
18696 compiler_CXX=$CC
18697 for cc_temp in $compiler""; do
18698 case $cc_temp in
18699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18701 \-*) ;;
18702 *) break;;
18703 esac
18704 done
18705 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18708 if test -n "$compiler"; then
18709 # We don't want -fno-exception when compiling C++ code, so set the
18710 # no_builtin_flag separately
18711 if test "$GXX" = yes; then
18712 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18713 else
18714 lt_prog_compiler_no_builtin_flag_CXX=
18717 if test "$GXX" = yes; then
18718 # Set up default GNU C++ configuration
18722 # Check whether --with-gnu-ld was given.
18723 if test "${with_gnu_ld+set}" = set; then :
18724 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18725 else
18726 with_gnu_ld=no
18729 ac_prog=ld
18730 if test "$GCC" = yes; then
18731 # Check if gcc -print-prog-name=ld gives a path.
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18733 $as_echo_n "checking for ld used by $CC... " >&6; }
18734 case $host in
18735 *-*-mingw*)
18736 # gcc leaves a trailing carriage return which upsets mingw
18737 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18739 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18740 esac
18741 case $ac_prog in
18742 # Accept absolute paths.
18743 [\\/]* | ?:[\\/]*)
18744 re_direlt='/[^/][^/]*/\.\./'
18745 # Canonicalize the pathname of ld
18746 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18747 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18748 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18749 done
18750 test -z "$LD" && LD="$ac_prog"
18753 # If it fails, then pretend we aren't using GCC.
18754 ac_prog=ld
18757 # If it is relative, then search for the first ld in PATH.
18758 with_gnu_ld=unknown
18760 esac
18761 elif test "$with_gnu_ld" = yes; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18763 $as_echo_n "checking for GNU ld... " >&6; }
18764 else
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18766 $as_echo_n "checking for non-GNU ld... " >&6; }
18768 if test "${lt_cv_path_LD+set}" = set; then :
18769 $as_echo_n "(cached) " >&6
18770 else
18771 if test -z "$LD"; then
18772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18773 for ac_dir in $PATH; do
18774 IFS="$lt_save_ifs"
18775 test -z "$ac_dir" && ac_dir=.
18776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18777 lt_cv_path_LD="$ac_dir/$ac_prog"
18778 # Check to see if the program is GNU ld. I'd rather use --version,
18779 # but apparently some variants of GNU ld only accept -v.
18780 # Break only if it was the GNU/non-GNU ld that we prefer.
18781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18782 *GNU* | *'with BFD'*)
18783 test "$with_gnu_ld" != no && break
18786 test "$with_gnu_ld" != yes && break
18788 esac
18790 done
18791 IFS="$lt_save_ifs"
18792 else
18793 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18797 LD="$lt_cv_path_LD"
18798 if test -n "$LD"; then
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18800 $as_echo "$LD" >&6; }
18801 else
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18803 $as_echo "no" >&6; }
18805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18809 $as_echo_n "(cached) " >&6
18810 else
18811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18812 case `$LD -v 2>&1 </dev/null` in
18813 *GNU* | *'with BFD'*)
18814 lt_cv_prog_gnu_ld=yes
18817 lt_cv_prog_gnu_ld=no
18819 esac
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18823 with_gnu_ld=$lt_cv_prog_gnu_ld
18831 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18832 # archiving commands below assume that GNU ld is being used.
18833 if test "$with_gnu_ld" = yes; then
18834 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18835 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'
18837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18838 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18840 # If archive_cmds runs LD, not CC, wlarc should be empty
18841 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18842 # investigate it a little bit more. (MM)
18843 wlarc='${wl}'
18845 # ancient GNU ld didn't support --whole-archive et. al.
18846 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18847 $GREP 'no-whole-archive' > /dev/null; then
18848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18849 else
18850 whole_archive_flag_spec_CXX=
18852 else
18853 with_gnu_ld=no
18854 wlarc=
18856 # A generic and very simple default shared library creation
18857 # command for GNU C++ for the case where it uses the native
18858 # linker, instead of GNU ld. If possible, this setting should
18859 # overridden to take advantage of the native linker features on
18860 # the platform it is being used on.
18861 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18864 # Commands to make compiler produce verbose output that lists
18865 # what "hidden" libraries, object files and flags are used when
18866 # linking a shared library.
18867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18869 else
18870 GXX=no
18871 with_gnu_ld=no
18872 wlarc=
18875 # PORTME: fill in a description of your system's C++ link characteristics
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18877 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18878 ld_shlibs_CXX=yes
18879 case $host_os in
18880 aix3*)
18881 # FIXME: insert proper C++ library support
18882 ld_shlibs_CXX=no
18884 aix[4-9]*)
18885 if test "$host_cpu" = ia64; then
18886 # On IA64, the linker does run time linking by default, so we don't
18887 # have to do anything special.
18888 aix_use_runtimelinking=no
18889 exp_sym_flag='-Bexport'
18890 no_entry_flag=""
18891 else
18892 aix_use_runtimelinking=no
18894 # Test if we are trying to use run time linking or normal
18895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18896 # need to do runtime linking.
18897 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18898 for ld_flag in $LDFLAGS; do
18899 case $ld_flag in
18900 *-brtl*)
18901 aix_use_runtimelinking=yes
18902 break
18904 esac
18905 done
18907 esac
18909 exp_sym_flag='-bexport'
18910 no_entry_flag='-bnoentry'
18913 # When large executables or shared objects are built, AIX ld can
18914 # have problems creating the table of contents. If linking a library
18915 # or program results in "error TOC overflow" add -mminimal-toc to
18916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18919 archive_cmds_CXX=''
18920 hardcode_direct_CXX=yes
18921 hardcode_direct_absolute_CXX=yes
18922 hardcode_libdir_separator_CXX=':'
18923 link_all_deplibs_CXX=yes
18924 file_list_spec_CXX='${wl}-f,'
18926 if test "$GXX" = yes; then
18927 case $host_os in aix4.[012]|aix4.[012].*)
18928 # We only want to do this on AIX 4.2 and lower, the check
18929 # below for broken collect2 doesn't work under 4.3+
18930 collect2name=`${CC} -print-prog-name=collect2`
18931 if test -f "$collect2name" &&
18932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18933 then
18934 # We have reworked collect2
18936 else
18937 # We have old collect2
18938 hardcode_direct_CXX=unsupported
18939 # It fails to find uninstalled libraries when the uninstalled
18940 # path is not listed in the libpath. Setting hardcode_minus_L
18941 # to unsupported forces relinking
18942 hardcode_minus_L_CXX=yes
18943 hardcode_libdir_flag_spec_CXX='-L$libdir'
18944 hardcode_libdir_separator_CXX=
18946 esac
18947 shared_flag='-shared'
18948 if test "$aix_use_runtimelinking" = yes; then
18949 shared_flag="$shared_flag "'${wl}-G'
18951 else
18952 # not using gcc
18953 if test "$host_cpu" = ia64; then
18954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18955 # chokes on -Wl,-G. The following line is correct:
18956 shared_flag='-G'
18957 else
18958 if test "$aix_use_runtimelinking" = yes; then
18959 shared_flag='${wl}-G'
18960 else
18961 shared_flag='${wl}-bM:SRE'
18966 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18967 # It seems that -bexpall does not export symbols beginning with
18968 # underscore (_), so it is better to generate a list of symbols to
18969 # export.
18970 always_export_symbols_CXX=yes
18971 if test "$aix_use_runtimelinking" = yes; then
18972 # Warning - without using the other runtime loading flags (-brtl),
18973 # -berok will link without error, but may produce a broken library.
18974 allow_undefined_flag_CXX='-berok'
18975 # Determine the default libpath from the value encoded in an empty
18976 # executable.
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18981 main ()
18985 return 0;
18987 _ACEOF
18988 if ac_fn_cxx_try_link "$LINENO"; then :
18990 lt_aix_libpath_sed='
18991 /Import File Strings/,/^$/ {
18992 /^0/ {
18993 s/^0 *\(.*\)$/\1/
18997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18998 # Check for a 64-bit object if we didn't find anything.
18999 if test -z "$aix_libpath"; then
19000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19003 rm -f core conftest.err conftest.$ac_objext \
19004 conftest$ac_exeext conftest.$ac_ext
19005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19007 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19009 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"
19010 else
19011 if test "$host_cpu" = ia64; then
19012 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19013 allow_undefined_flag_CXX="-z nodefs"
19014 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"
19015 else
19016 # Determine the default libpath from the value encoded in an
19017 # empty executable.
19018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19019 /* end confdefs.h. */
19022 main ()
19026 return 0;
19028 _ACEOF
19029 if ac_fn_cxx_try_link "$LINENO"; then :
19031 lt_aix_libpath_sed='
19032 /Import File Strings/,/^$/ {
19033 /^0/ {
19034 s/^0 *\(.*\)$/\1/
19038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19039 # Check for a 64-bit object if we didn't find anything.
19040 if test -z "$aix_libpath"; then
19041 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19044 rm -f core conftest.err conftest.$ac_objext \
19045 conftest$ac_exeext conftest.$ac_ext
19046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19048 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19049 # Warning - without using the other run time loading flags,
19050 # -berok will link without error, but may produce a broken library.
19051 no_undefined_flag_CXX=' ${wl}-bernotok'
19052 allow_undefined_flag_CXX=' ${wl}-berok'
19053 if test "$with_gnu_ld" = yes; then
19054 # We only use this code for GNU lds that support --whole-archive.
19055 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19056 else
19057 # Exported symbols can be pulled into shared objects from archives
19058 whole_archive_flag_spec_CXX='$convenience'
19060 archive_cmds_need_lc_CXX=yes
19061 # This is similar to how AIX traditionally builds its shared
19062 # libraries.
19063 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'
19068 beos*)
19069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19070 allow_undefined_flag_CXX=unsupported
19071 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19072 # support --undefined. This deserves some investigation. FIXME
19073 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19074 else
19075 ld_shlibs_CXX=no
19079 chorus*)
19080 case $cc_basename in
19082 # FIXME: insert proper C++ library support
19083 ld_shlibs_CXX=no
19085 esac
19088 cygwin* | mingw* | pw32* | cegcc*)
19089 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19090 # as there is no search path for DLLs.
19091 hardcode_libdir_flag_spec_CXX='-L$libdir'
19092 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19093 allow_undefined_flag_CXX=unsupported
19094 always_export_symbols_CXX=no
19095 enable_shared_with_static_runtimes_CXX=yes
19097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19098 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'
19099 # If the export-symbols file already is a .def file (1st line
19100 # is EXPORTS), use it as is; otherwise, prepend...
19101 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19102 cp $export_symbols $output_objdir/$soname.def;
19103 else
19104 echo EXPORTS > $output_objdir/$soname.def;
19105 cat $export_symbols >> $output_objdir/$soname.def;
19107 $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'
19108 else
19109 ld_shlibs_CXX=no
19112 darwin* | rhapsody*)
19115 archive_cmds_need_lc_CXX=no
19116 hardcode_direct_CXX=no
19117 hardcode_automatic_CXX=yes
19118 hardcode_shlibpath_var_CXX=unsupported
19119 if test "$lt_cv_ld_force_load" = "yes"; then
19120 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\"`'
19121 else
19122 whole_archive_flag_spec_CXX=''
19124 link_all_deplibs_CXX=yes
19125 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19126 case $cc_basename in
19127 ifort*) _lt_dar_can_shared=yes ;;
19128 *) _lt_dar_can_shared=$GCC ;;
19129 esac
19130 if test "$_lt_dar_can_shared" = "yes"; then
19131 output_verbose_link_cmd=func_echo_all
19132 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}"
19133 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19134 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}"
19135 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}"
19136 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19137 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}"
19138 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}"
19141 else
19142 ld_shlibs_CXX=no
19147 dgux*)
19148 case $cc_basename in
19149 ec++*)
19150 # FIXME: insert proper C++ library support
19151 ld_shlibs_CXX=no
19153 ghcx*)
19154 # Green Hills C++ Compiler
19155 # FIXME: insert proper C++ library support
19156 ld_shlibs_CXX=no
19159 # FIXME: insert proper C++ library support
19160 ld_shlibs_CXX=no
19162 esac
19165 freebsd2.*)
19166 # C++ shared libraries reported to be fairly broken before
19167 # switch to ELF
19168 ld_shlibs_CXX=no
19171 freebsd-elf*)
19172 archive_cmds_need_lc_CXX=no
19175 freebsd* | dragonfly*)
19176 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19177 # conventions
19178 ld_shlibs_CXX=yes
19181 gnu*)
19184 haiku*)
19185 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19186 link_all_deplibs_CXX=yes
19189 hpux9*)
19190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19191 hardcode_libdir_separator_CXX=:
19192 export_dynamic_flag_spec_CXX='${wl}-E'
19193 hardcode_direct_CXX=yes
19194 hardcode_minus_L_CXX=yes # Not in the search PATH,
19195 # but as the default
19196 # location of the library.
19198 case $cc_basename in
19199 CC*)
19200 # FIXME: insert proper C++ library support
19201 ld_shlibs_CXX=no
19203 aCC*)
19204 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'
19205 # Commands to make compiler produce verbose output that lists
19206 # what "hidden" libraries, object files and flags are used when
19207 # linking a shared library.
19209 # There doesn't appear to be a way to prevent this compiler from
19210 # explicitly linking system object files so we need to strip them
19211 # from the output so that they don't get included in the library
19212 # dependencies.
19213 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"'
19216 if test "$GXX" = yes; then
19217 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'
19218 else
19219 # FIXME: insert proper C++ library support
19220 ld_shlibs_CXX=no
19223 esac
19226 hpux10*|hpux11*)
19227 if test $with_gnu_ld = no; then
19228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19229 hardcode_libdir_separator_CXX=:
19231 case $host_cpu in
19232 hppa*64*|ia64*)
19235 export_dynamic_flag_spec_CXX='${wl}-E'
19237 esac
19239 case $host_cpu in
19240 hppa*64*|ia64*)
19241 hardcode_direct_CXX=no
19242 hardcode_shlibpath_var_CXX=no
19245 hardcode_direct_CXX=yes
19246 hardcode_direct_absolute_CXX=yes
19247 hardcode_minus_L_CXX=yes # Not in the search PATH,
19248 # but as the default
19249 # location of the library.
19251 esac
19253 case $cc_basename in
19254 CC*)
19255 # FIXME: insert proper C++ library support
19256 ld_shlibs_CXX=no
19258 aCC*)
19259 case $host_cpu in
19260 hppa*64*)
19261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19263 ia64*)
19264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19267 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19269 esac
19270 # Commands to make compiler produce verbose output that lists
19271 # what "hidden" libraries, object files and flags are used when
19272 # linking a shared library.
19274 # There doesn't appear to be a way to prevent this compiler from
19275 # explicitly linking system object files so we need to strip them
19276 # from the output so that they don't get included in the library
19277 # dependencies.
19278 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"'
19281 if test "$GXX" = yes; then
19282 if test $with_gnu_ld = no; then
19283 case $host_cpu in
19284 hppa*64*)
19285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19287 ia64*)
19288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19291 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'
19293 esac
19295 else
19296 # FIXME: insert proper C++ library support
19297 ld_shlibs_CXX=no
19300 esac
19303 interix[3-9]*)
19304 hardcode_direct_CXX=no
19305 hardcode_shlibpath_var_CXX=no
19306 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19307 export_dynamic_flag_spec_CXX='${wl}-E'
19308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19309 # Instead, shared libraries are loaded at an image base (0x10000000 by
19310 # default) and relocated if they conflict, which is a slow very memory
19311 # consuming and fragmenting process. To avoid this, we pick a random,
19312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19314 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'
19315 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'
19317 irix5* | irix6*)
19318 case $cc_basename in
19319 CC*)
19320 # SGI C++
19321 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'
19323 # Archives containing C++ object files must be created using
19324 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19325 # necessary to make sure instantiated templates are included
19326 # in the archive.
19327 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19330 if test "$GXX" = yes; then
19331 if test "$with_gnu_ld" = no; then
19332 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'
19333 else
19334 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'
19337 link_all_deplibs_CXX=yes
19339 esac
19340 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19341 hardcode_libdir_separator_CXX=:
19342 inherit_rpath_CXX=yes
19345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19346 case $cc_basename in
19347 KCC*)
19348 # Kuck and Associates, Inc. (KAI) C++ Compiler
19350 # KCC will only create a shared library if the output file
19351 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19352 # to its proper name (with version) after linking.
19353 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'
19354 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'
19355 # Commands to make compiler produce verbose output that lists
19356 # what "hidden" libraries, object files and flags are used when
19357 # linking a shared library.
19359 # There doesn't appear to be a way to prevent this compiler from
19360 # explicitly linking system object files so we need to strip them
19361 # from the output so that they don't get included in the library
19362 # dependencies.
19363 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"'
19365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19366 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19368 # Archives containing C++ object files must be created using
19369 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19372 icpc* | ecpc* )
19373 # Intel C++
19374 with_gnu_ld=yes
19375 # version 8.0 and above of icpc choke on multiply defined symbols
19376 # if we add $predep_objects and $postdep_objects, however 7.1 and
19377 # earlier do not add the objects themselves.
19378 case `$CC -V 2>&1` in
19379 *"Version 7."*)
19380 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381 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'
19383 *) # Version 8.0 or newer
19384 tmp_idyn=
19385 case $host_cpu in
19386 ia64*) tmp_idyn=' -i_dynamic';;
19387 esac
19388 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19389 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'
19391 esac
19392 archive_cmds_need_lc_CXX=no
19393 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19397 pgCC* | pgcpp*)
19398 # Portland Group C++ compiler
19399 case `$CC -V` in
19400 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19401 prelink_cmds_CXX='tpldir=Template.dir~
19402 rm -rf $tpldir~
19403 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19404 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19405 old_archive_cmds_CXX='tpldir=Template.dir~
19406 rm -rf $tpldir~
19407 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19408 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19409 $RANLIB $oldlib'
19410 archive_cmds_CXX='tpldir=Template.dir~
19411 rm -rf $tpldir~
19412 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19413 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19414 archive_expsym_cmds_CXX='tpldir=Template.dir~
19415 rm -rf $tpldir~
19416 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19417 $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'
19419 *) # Version 6 and above use weak symbols
19420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19421 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'
19423 esac
19425 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19426 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19427 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'
19429 cxx*)
19430 # Compaq C++
19431 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19432 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'
19434 runpath_var=LD_RUN_PATH
19435 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19436 hardcode_libdir_separator_CXX=:
19438 # Commands to make compiler produce verbose output that lists
19439 # what "hidden" libraries, object files and flags are used when
19440 # linking a shared library.
19442 # There doesn't appear to be a way to prevent this compiler from
19443 # explicitly linking system object files so we need to strip them
19444 # from the output so that they don't get included in the library
19445 # dependencies.
19446 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'
19448 xl* | mpixl* | bgxl*)
19449 # IBM XL 8.0 on PPC, with GNU ld
19450 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19451 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19452 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19453 if test "x$supports_anon_versioning" = xyes; then
19454 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19456 echo "local: *; };" >> $output_objdir/$libname.ver~
19457 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19461 case `$CC -V 2>&1 | sed 5q` in
19462 *Sun\ C*)
19463 # Sun C++ 5.9
19464 no_undefined_flag_CXX=' -zdefs'
19465 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19466 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'
19467 hardcode_libdir_flag_spec_CXX='-R$libdir'
19468 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'
19469 compiler_needs_object_CXX=yes
19471 # Not sure whether something based on
19472 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19473 # would be better.
19474 output_verbose_link_cmd='func_echo_all'
19476 # Archives containing C++ object files must be created using
19477 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19478 # necessary to make sure instantiated templates are included
19479 # in the archive.
19480 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19482 esac
19484 esac
19487 lynxos*)
19488 # FIXME: insert proper C++ library support
19489 ld_shlibs_CXX=no
19492 m88k*)
19493 # FIXME: insert proper C++ library support
19494 ld_shlibs_CXX=no
19497 mvs*)
19498 case $cc_basename in
19499 cxx*)
19500 # FIXME: insert proper C++ library support
19501 ld_shlibs_CXX=no
19504 # FIXME: insert proper C++ library support
19505 ld_shlibs_CXX=no
19507 esac
19510 netbsd*)
19511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19512 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19513 wlarc=
19514 hardcode_libdir_flag_spec_CXX='-R$libdir'
19515 hardcode_direct_CXX=yes
19516 hardcode_shlibpath_var_CXX=no
19518 # Workaround some broken pre-1.5 toolchains
19519 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19522 *nto* | *qnx*)
19523 ld_shlibs_CXX=yes
19526 openbsd2*)
19527 # C++ shared libraries are fairly broken
19528 ld_shlibs_CXX=no
19531 openbsd*)
19532 if test -f /usr/libexec/ld.so; then
19533 hardcode_direct_CXX=yes
19534 hardcode_shlibpath_var_CXX=no
19535 hardcode_direct_absolute_CXX=yes
19536 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19539 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19540 export_dynamic_flag_spec_CXX='${wl}-E'
19541 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19543 output_verbose_link_cmd=func_echo_all
19544 else
19545 ld_shlibs_CXX=no
19549 osf3* | osf4* | osf5*)
19550 case $cc_basename in
19551 KCC*)
19552 # Kuck and Associates, Inc. (KAI) C++ Compiler
19554 # KCC will only create a shared library if the output file
19555 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19556 # to its proper name (with version) after linking.
19557 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'
19559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19560 hardcode_libdir_separator_CXX=:
19562 # Archives containing C++ object files must be created using
19563 # the KAI C++ compiler.
19564 case $host in
19565 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19566 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19567 esac
19569 RCC*)
19570 # Rational C++ 2.4.1
19571 # FIXME: insert proper C++ library support
19572 ld_shlibs_CXX=no
19574 cxx*)
19575 case $host in
19576 osf3*)
19577 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19578 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'
19579 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19582 allow_undefined_flag_CXX=' -expect_unresolved \*'
19583 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'
19584 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19585 echo "-hidden">> $lib.exp~
19586 $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~
19587 $RM $lib.exp'
19588 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19590 esac
19592 hardcode_libdir_separator_CXX=:
19594 # Commands to make compiler produce verbose output that lists
19595 # what "hidden" libraries, object files and flags are used when
19596 # linking a shared library.
19598 # There doesn't appear to be a way to prevent this compiler from
19599 # explicitly linking system object files so we need to strip them
19600 # from the output so that they don't get included in the library
19601 # dependencies.
19602 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"'
19605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19606 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19607 case $host in
19608 osf3*)
19609 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'
19612 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'
19614 esac
19616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19617 hardcode_libdir_separator_CXX=:
19619 # Commands to make compiler produce verbose output that lists
19620 # what "hidden" libraries, object files and flags are used when
19621 # linking a shared library.
19622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19624 else
19625 # FIXME: insert proper C++ library support
19626 ld_shlibs_CXX=no
19629 esac
19632 psos*)
19633 # FIXME: insert proper C++ library support
19634 ld_shlibs_CXX=no
19637 sunos4*)
19638 case $cc_basename in
19639 CC*)
19640 # Sun C++ 4.x
19641 # FIXME: insert proper C++ library support
19642 ld_shlibs_CXX=no
19644 lcc*)
19645 # Lucid
19646 # FIXME: insert proper C++ library support
19647 ld_shlibs_CXX=no
19650 # FIXME: insert proper C++ library support
19651 ld_shlibs_CXX=no
19653 esac
19656 solaris*)
19657 case $cc_basename in
19658 CC*)
19659 # Sun C++ 4.2, 5.x and Centerline C++
19660 archive_cmds_need_lc_CXX=yes
19661 no_undefined_flag_CXX=' -zdefs'
19662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19663 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19664 $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'
19666 hardcode_libdir_flag_spec_CXX='-R$libdir'
19667 hardcode_shlibpath_var_CXX=no
19668 case $host_os in
19669 solaris2.[0-5] | solaris2.[0-5].*) ;;
19671 # The compiler driver will combine and reorder linker options,
19672 # but understands `-z linker_flag'.
19673 # Supported since Solaris 2.6 (maybe 2.5.1?)
19674 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19676 esac
19677 link_all_deplibs_CXX=yes
19679 output_verbose_link_cmd='func_echo_all'
19681 # Archives containing C++ object files must be created using
19682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19683 # necessary to make sure instantiated templates are included
19684 # in the archive.
19685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19687 gcx*)
19688 # Green Hills C++ Compiler
19689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19691 # The C++ compiler must be used to create the archive.
19692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19695 # GNU C++ compiler with Solaris linker
19696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19698 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19699 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19700 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19703 # Commands to make compiler produce verbose output that lists
19704 # what "hidden" libraries, object files and flags are used when
19705 # linking a shared library.
19706 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19707 else
19708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19709 # platform.
19710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19711 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19714 # Commands to make compiler produce verbose output that lists
19715 # what "hidden" libraries, object files and flags are used when
19716 # linking a shared library.
19717 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19721 case $host_os in
19722 solaris2.[0-5] | solaris2.[0-5].*) ;;
19724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19726 esac
19729 esac
19732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19733 no_undefined_flag_CXX='${wl}-z,text'
19734 archive_cmds_need_lc_CXX=no
19735 hardcode_shlibpath_var_CXX=no
19736 runpath_var='LD_RUN_PATH'
19738 case $cc_basename in
19739 CC*)
19740 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19741 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19744 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19745 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19747 esac
19750 sysv5* | sco3.2v5* | sco5v6*)
19751 # Note: We can NOT use -z defs as we might desire, because we do not
19752 # link with -lc, and that would cause any symbols used from libc to
19753 # always be unresolved, which means just about no library would
19754 # ever link correctly. If we're not using GNU ld we use -z text
19755 # though, which does catch some bad symbols but isn't as heavy-handed
19756 # as -z defs.
19757 no_undefined_flag_CXX='${wl}-z,text'
19758 allow_undefined_flag_CXX='${wl}-z,nodefs'
19759 archive_cmds_need_lc_CXX=no
19760 hardcode_shlibpath_var_CXX=no
19761 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19762 hardcode_libdir_separator_CXX=':'
19763 link_all_deplibs_CXX=yes
19764 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19765 runpath_var='LD_RUN_PATH'
19767 case $cc_basename in
19768 CC*)
19769 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19770 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19771 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19772 '"$old_archive_cmds_CXX"
19773 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19774 '"$reload_cmds_CXX"
19777 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19778 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19780 esac
19783 tandem*)
19784 case $cc_basename in
19785 NCC*)
19786 # NonStop-UX NCC 3.20
19787 # FIXME: insert proper C++ library support
19788 ld_shlibs_CXX=no
19791 # FIXME: insert proper C++ library support
19792 ld_shlibs_CXX=no
19794 esac
19797 vxworks*)
19798 # FIXME: insert proper C++ library support
19799 ld_shlibs_CXX=no
19803 # FIXME: insert proper C++ library support
19804 ld_shlibs_CXX=no
19806 esac
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19809 $as_echo "$ld_shlibs_CXX" >&6; }
19810 test "$ld_shlibs_CXX" = no && can_build_shared=no
19812 GCC_CXX="$GXX"
19813 LD_CXX="$LD"
19815 ## CAVEAT EMPTOR:
19816 ## There is no encapsulation within the following macros, do not change
19817 ## the running order or otherwise move them around unless you know exactly
19818 ## what you are doing...
19819 # Dependencies to place before and after the object being linked:
19820 predep_objects_CXX=
19821 postdep_objects_CXX=
19822 predeps_CXX=
19823 postdeps_CXX=
19824 compiler_lib_search_path_CXX=
19826 cat > conftest.$ac_ext <<_LT_EOF
19827 class Foo
19829 public:
19830 Foo (void) { a = 0; }
19831 private:
19832 int a;
19834 _LT_EOF
19836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19837 (eval $ac_compile) 2>&5
19838 ac_status=$?
19839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19840 test $ac_status = 0; }; then
19841 # Parse the compiler output and extract the necessary
19842 # objects, libraries and library flags.
19844 # Sentinel used to keep track of whether or not we are before
19845 # the conftest object file.
19846 pre_test_object_deps_done=no
19848 for p in `eval "$output_verbose_link_cmd"`; do
19849 case $p in
19851 -L* | -R* | -l*)
19852 # Some compilers place space between "-{L,R}" and the path.
19853 # Remove the space.
19854 if test $p = "-L" ||
19855 test $p = "-R"; then
19856 prev=$p
19857 continue
19858 else
19859 prev=
19862 if test "$pre_test_object_deps_done" = no; then
19863 case $p in
19864 -L* | -R*)
19865 # Internal compiler library paths should come after those
19866 # provided the user. The postdeps already come after the
19867 # user supplied libs so there is no need to process them.
19868 if test -z "$compiler_lib_search_path_CXX"; then
19869 compiler_lib_search_path_CXX="${prev}${p}"
19870 else
19871 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19874 # The "-l" case would never come before the object being
19875 # linked, so don't bother handling this case.
19876 esac
19877 else
19878 if test -z "$postdeps_CXX"; then
19879 postdeps_CXX="${prev}${p}"
19880 else
19881 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19886 *.$objext)
19887 # This assumes that the test object file only shows up
19888 # once in the compiler output.
19889 if test "$p" = "conftest.$objext"; then
19890 pre_test_object_deps_done=yes
19891 continue
19894 if test "$pre_test_object_deps_done" = no; then
19895 if test -z "$predep_objects_CXX"; then
19896 predep_objects_CXX="$p"
19897 else
19898 predep_objects_CXX="$predep_objects_CXX $p"
19900 else
19901 if test -z "$postdep_objects_CXX"; then
19902 postdep_objects_CXX="$p"
19903 else
19904 postdep_objects_CXX="$postdep_objects_CXX $p"
19909 *) ;; # Ignore the rest.
19911 esac
19912 done
19914 # Clean up.
19915 rm -f a.out a.exe
19916 else
19917 echo "libtool.m4: error: problem compiling CXX test program"
19920 $RM -f confest.$objext
19922 # PORTME: override above test on systems where it is broken
19923 case $host_os in
19924 interix[3-9]*)
19925 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19926 # hack all around it, let's just trust "g++" to DTRT.
19927 predep_objects_CXX=
19928 postdep_objects_CXX=
19929 postdeps_CXX=
19932 linux*)
19933 case `$CC -V 2>&1 | sed 5q` in
19934 *Sun\ C*)
19935 # Sun C++ 5.9
19937 # The more standards-conforming stlport4 library is
19938 # incompatible with the Cstd library. Avoid specifying
19939 # it if it's in CXXFLAGS. Ignore libCrun as
19940 # -library=stlport4 depends on it.
19941 case " $CXX $CXXFLAGS " in
19942 *" -library=stlport4 "*)
19943 solaris_use_stlport4=yes
19945 esac
19947 if test "$solaris_use_stlport4" != yes; then
19948 postdeps_CXX='-library=Cstd -library=Crun'
19951 esac
19954 solaris*)
19955 case $cc_basename in
19956 CC*)
19957 # The more standards-conforming stlport4 library is
19958 # incompatible with the Cstd library. Avoid specifying
19959 # it if it's in CXXFLAGS. Ignore libCrun as
19960 # -library=stlport4 depends on it.
19961 case " $CXX $CXXFLAGS " in
19962 *" -library=stlport4 "*)
19963 solaris_use_stlport4=yes
19965 esac
19967 # Adding this requires a known-good setup of shared libraries for
19968 # Sun compiler versions before 5.6, else PIC objects from an old
19969 # archive will be linked into the output, leading to subtle bugs.
19970 if test "$solaris_use_stlport4" != yes; then
19971 postdeps_CXX='-library=Cstd -library=Crun'
19974 esac
19976 esac
19979 case " $postdeps_CXX " in
19980 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19981 esac
19982 compiler_lib_search_dirs_CXX=
19983 if test -n "${compiler_lib_search_path_CXX}"; then
19984 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20017 lt_prog_compiler_wl_CXX=
20018 lt_prog_compiler_pic_CXX=
20019 lt_prog_compiler_static_CXX=
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20022 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20024 # C++ specific cases for pic, static, wl, etc.
20025 if test "$GXX" = yes; then
20026 lt_prog_compiler_wl_CXX='-Wl,'
20027 lt_prog_compiler_static_CXX='-static'
20029 case $host_os in
20030 aix*)
20031 # All AIX code is PIC.
20032 if test "$host_cpu" = ia64; then
20033 # AIX 5 now supports IA64 processor
20034 lt_prog_compiler_static_CXX='-Bstatic'
20036 lt_prog_compiler_pic_CXX='-fPIC'
20039 amigaos*)
20040 case $host_cpu in
20041 powerpc)
20042 # see comment about AmigaOS4 .so support
20043 lt_prog_compiler_pic_CXX='-fPIC'
20045 m68k)
20046 # FIXME: we need at least 68020 code to build shared libraries, but
20047 # adding the `-m68020' flag to GCC prevents building anything better,
20048 # like `-m68040'.
20049 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20051 esac
20054 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20055 # PIC is the default for these OSes.
20057 mingw* | cygwin* | os2* | pw32* | cegcc*)
20058 # This hack is so that the source file can tell whether it is being
20059 # built for inclusion in a dll (and should export symbols for example).
20060 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20061 # (--disable-auto-import) libraries
20062 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20064 darwin* | rhapsody*)
20065 # PIC is the default on this platform
20066 # Common symbols not allowed in MH_DYLIB files
20067 lt_prog_compiler_pic_CXX='-fno-common'
20069 *djgpp*)
20070 # DJGPP does not support shared libraries at all
20071 lt_prog_compiler_pic_CXX=
20073 haiku*)
20074 # PIC is the default for Haiku.
20075 # The "-static" flag exists, but is broken.
20076 lt_prog_compiler_static_CXX=
20078 interix[3-9]*)
20079 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20080 # Instead, we relocate shared libraries at runtime.
20082 sysv4*MP*)
20083 if test -d /usr/nec; then
20084 lt_prog_compiler_pic_CXX=-Kconform_pic
20087 hpux*)
20088 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20089 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20090 # sets the default TLS model and affects inlining.
20091 case $host_cpu in
20092 hppa*64*)
20095 lt_prog_compiler_pic_CXX='-fPIC'
20097 esac
20099 *qnx* | *nto*)
20100 # QNX uses GNU C++, but need to define -shared option too, otherwise
20101 # it will coredump.
20102 lt_prog_compiler_pic_CXX='-fPIC -shared'
20105 lt_prog_compiler_pic_CXX='-fPIC'
20107 esac
20108 else
20109 case $host_os in
20110 aix[4-9]*)
20111 # All AIX code is PIC.
20112 if test "$host_cpu" = ia64; then
20113 # AIX 5 now supports IA64 processor
20114 lt_prog_compiler_static_CXX='-Bstatic'
20115 else
20116 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20119 chorus*)
20120 case $cc_basename in
20121 cxch68*)
20122 # Green Hills C++ Compiler
20123 # _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"
20125 esac
20127 dgux*)
20128 case $cc_basename in
20129 ec++*)
20130 lt_prog_compiler_pic_CXX='-KPIC'
20132 ghcx*)
20133 # Green Hills C++ Compiler
20134 lt_prog_compiler_pic_CXX='-pic'
20138 esac
20140 freebsd* | dragonfly*)
20141 # FreeBSD uses GNU C++
20143 hpux9* | hpux10* | hpux11*)
20144 case $cc_basename in
20145 CC*)
20146 lt_prog_compiler_wl_CXX='-Wl,'
20147 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20148 if test "$host_cpu" != ia64; then
20149 lt_prog_compiler_pic_CXX='+Z'
20152 aCC*)
20153 lt_prog_compiler_wl_CXX='-Wl,'
20154 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20155 case $host_cpu in
20156 hppa*64*|ia64*)
20157 # +Z the default
20160 lt_prog_compiler_pic_CXX='+Z'
20162 esac
20166 esac
20168 interix*)
20169 # This is c89, which is MS Visual C++ (no shared libs)
20170 # Anyone wants to do a port?
20172 irix5* | irix6* | nonstopux*)
20173 case $cc_basename in
20174 CC*)
20175 lt_prog_compiler_wl_CXX='-Wl,'
20176 lt_prog_compiler_static_CXX='-non_shared'
20177 # CC pic flag -KPIC is the default.
20181 esac
20183 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20184 case $cc_basename in
20185 KCC*)
20186 # KAI C++ Compiler
20187 lt_prog_compiler_wl_CXX='--backend -Wl,'
20188 lt_prog_compiler_pic_CXX='-fPIC'
20190 ecpc* )
20191 # old Intel C++ for x86_64 which still supported -KPIC.
20192 lt_prog_compiler_wl_CXX='-Wl,'
20193 lt_prog_compiler_pic_CXX='-KPIC'
20194 lt_prog_compiler_static_CXX='-static'
20196 icpc* )
20197 # Intel C++, used to be incompatible with GCC.
20198 # ICC 10 doesn't accept -KPIC any more.
20199 lt_prog_compiler_wl_CXX='-Wl,'
20200 lt_prog_compiler_pic_CXX='-fPIC'
20201 lt_prog_compiler_static_CXX='-static'
20203 pgCC* | pgcpp*)
20204 # Portland Group C++ compiler
20205 lt_prog_compiler_wl_CXX='-Wl,'
20206 lt_prog_compiler_pic_CXX='-fpic'
20207 lt_prog_compiler_static_CXX='-Bstatic'
20209 cxx*)
20210 # Compaq C++
20211 # Make sure the PIC flag is empty. It appears that all Alpha
20212 # Linux and Compaq Tru64 Unix objects are PIC.
20213 lt_prog_compiler_pic_CXX=
20214 lt_prog_compiler_static_CXX='-non_shared'
20216 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20217 # IBM XL 8.0, 9.0 on PPC and BlueGene
20218 lt_prog_compiler_wl_CXX='-Wl,'
20219 lt_prog_compiler_pic_CXX='-qpic'
20220 lt_prog_compiler_static_CXX='-qstaticlink'
20223 case `$CC -V 2>&1 | sed 5q` in
20224 *Sun\ C*)
20225 # Sun C++ 5.9
20226 lt_prog_compiler_pic_CXX='-KPIC'
20227 lt_prog_compiler_static_CXX='-Bstatic'
20228 lt_prog_compiler_wl_CXX='-Qoption ld '
20230 esac
20232 esac
20234 lynxos*)
20236 m88k*)
20238 mvs*)
20239 case $cc_basename in
20240 cxx*)
20241 lt_prog_compiler_pic_CXX='-W c,exportall'
20245 esac
20247 netbsd*)
20249 *qnx* | *nto*)
20250 # QNX uses GNU C++, but need to define -shared option too, otherwise
20251 # it will coredump.
20252 lt_prog_compiler_pic_CXX='-fPIC -shared'
20254 osf3* | osf4* | osf5*)
20255 case $cc_basename in
20256 KCC*)
20257 lt_prog_compiler_wl_CXX='--backend -Wl,'
20259 RCC*)
20260 # Rational C++ 2.4.1
20261 lt_prog_compiler_pic_CXX='-pic'
20263 cxx*)
20264 # Digital/Compaq C++
20265 lt_prog_compiler_wl_CXX='-Wl,'
20266 # Make sure the PIC flag is empty. It appears that all Alpha
20267 # Linux and Compaq Tru64 Unix objects are PIC.
20268 lt_prog_compiler_pic_CXX=
20269 lt_prog_compiler_static_CXX='-non_shared'
20273 esac
20275 psos*)
20277 solaris*)
20278 case $cc_basename in
20279 CC*)
20280 # Sun C++ 4.2, 5.x and Centerline C++
20281 lt_prog_compiler_pic_CXX='-KPIC'
20282 lt_prog_compiler_static_CXX='-Bstatic'
20283 lt_prog_compiler_wl_CXX='-Qoption ld '
20285 gcx*)
20286 # Green Hills C++ Compiler
20287 lt_prog_compiler_pic_CXX='-PIC'
20291 esac
20293 sunos4*)
20294 case $cc_basename in
20295 CC*)
20296 # Sun C++ 4.x
20297 lt_prog_compiler_pic_CXX='-pic'
20298 lt_prog_compiler_static_CXX='-Bstatic'
20300 lcc*)
20301 # Lucid
20302 lt_prog_compiler_pic_CXX='-pic'
20306 esac
20308 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20309 case $cc_basename in
20310 CC*)
20311 lt_prog_compiler_wl_CXX='-Wl,'
20312 lt_prog_compiler_pic_CXX='-KPIC'
20313 lt_prog_compiler_static_CXX='-Bstatic'
20315 esac
20317 tandem*)
20318 case $cc_basename in
20319 NCC*)
20320 # NonStop-UX NCC 3.20
20321 lt_prog_compiler_pic_CXX='-KPIC'
20325 esac
20327 vxworks*)
20330 lt_prog_compiler_can_build_shared_CXX=no
20332 esac
20335 case $host_os in
20336 # For platforms which do not support PIC, -DPIC is meaningless:
20337 *djgpp*)
20338 lt_prog_compiler_pic_CXX=
20341 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20343 esac
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20345 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20350 # Check to make sure the PIC flag actually works.
20352 if test -n "$lt_prog_compiler_pic_CXX"; then
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20354 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20355 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20356 $as_echo_n "(cached) " >&6
20357 else
20358 lt_cv_prog_compiler_pic_works_CXX=no
20359 ac_outfile=conftest.$ac_objext
20360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20361 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20362 # Insert the option either (1) after the last *FLAGS variable, or
20363 # (2) before a word containing "conftest.", or (3) at the end.
20364 # Note that $ac_compile itself does not contain backslashes and begins
20365 # with a dollar sign (not a hyphen), so the echo should work correctly.
20366 # The option is referenced via a variable to avoid confusing sed.
20367 lt_compile=`echo "$ac_compile" | $SED \
20368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20370 -e 's:$: $lt_compiler_flag:'`
20371 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20372 (eval "$lt_compile" 2>conftest.err)
20373 ac_status=$?
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 if (exit $ac_status) && test -s "$ac_outfile"; then
20377 # The compiler can only warn and ignore the option if not recognized
20378 # So say no if there are warnings other than the usual output.
20379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20381 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20382 lt_cv_prog_compiler_pic_works_CXX=yes
20385 $RM conftest*
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20389 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20391 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20392 case $lt_prog_compiler_pic_CXX in
20393 "" | " "*) ;;
20394 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20395 esac
20396 else
20397 lt_prog_compiler_pic_CXX=
20398 lt_prog_compiler_can_build_shared_CXX=no
20406 # Check to make sure the static flag actually works.
20408 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20410 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20411 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20412 $as_echo_n "(cached) " >&6
20413 else
20414 lt_cv_prog_compiler_static_works_CXX=no
20415 save_LDFLAGS="$LDFLAGS"
20416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20417 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20419 # The linker can only warn and ignore the option if not recognized
20420 # So say no if there are warnings
20421 if test -s conftest.err; then
20422 # Append any errors to the config.log.
20423 cat conftest.err 1>&5
20424 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20426 if diff conftest.exp conftest.er2 >/dev/null; then
20427 lt_cv_prog_compiler_static_works_CXX=yes
20429 else
20430 lt_cv_prog_compiler_static_works_CXX=yes
20433 $RM -r conftest*
20434 LDFLAGS="$save_LDFLAGS"
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20438 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20440 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20442 else
20443 lt_prog_compiler_static_CXX=
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20450 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20451 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20452 $as_echo_n "(cached) " >&6
20453 else
20454 lt_cv_prog_compiler_c_o_CXX=no
20455 $RM -r conftest 2>/dev/null
20456 mkdir conftest
20457 cd conftest
20458 mkdir out
20459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20461 lt_compiler_flag="-o out/conftest2.$ac_objext"
20462 # Insert the option either (1) after the last *FLAGS variable, or
20463 # (2) before a word containing "conftest.", or (3) at the end.
20464 # Note that $ac_compile itself does not contain backslashes and begins
20465 # with a dollar sign (not a hyphen), so the echo should work correctly.
20466 lt_compile=`echo "$ac_compile" | $SED \
20467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20469 -e 's:$: $lt_compiler_flag:'`
20470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20471 (eval "$lt_compile" 2>out/conftest.err)
20472 ac_status=$?
20473 cat out/conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20476 then
20477 # The compiler can only warn and ignore the option if not recognized
20478 # So say no if there are warnings
20479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20482 lt_cv_prog_compiler_c_o_CXX=yes
20485 chmod u+w . 2>&5
20486 $RM conftest*
20487 # SGI C++ compiler will create directory out/ii_files/ for
20488 # template instantiation
20489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20490 $RM out/* && rmdir out
20491 cd ..
20492 $RM -r conftest
20493 $RM conftest*
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20497 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20503 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20504 $as_echo_n "(cached) " >&6
20505 else
20506 lt_cv_prog_compiler_c_o_CXX=no
20507 $RM -r conftest 2>/dev/null
20508 mkdir conftest
20509 cd conftest
20510 mkdir out
20511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20513 lt_compiler_flag="-o out/conftest2.$ac_objext"
20514 # Insert the option either (1) after the last *FLAGS variable, or
20515 # (2) before a word containing "conftest.", or (3) at the end.
20516 # Note that $ac_compile itself does not contain backslashes and begins
20517 # with a dollar sign (not a hyphen), so the echo should work correctly.
20518 lt_compile=`echo "$ac_compile" | $SED \
20519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20521 -e 's:$: $lt_compiler_flag:'`
20522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20523 (eval "$lt_compile" 2>out/conftest.err)
20524 ac_status=$?
20525 cat out/conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20528 then
20529 # The compiler can only warn and ignore the option if not recognized
20530 # So say no if there are warnings
20531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20534 lt_cv_prog_compiler_c_o_CXX=yes
20537 chmod u+w . 2>&5
20538 $RM conftest*
20539 # SGI C++ compiler will create directory out/ii_files/ for
20540 # template instantiation
20541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20542 $RM out/* && rmdir out
20543 cd ..
20544 $RM -r conftest
20545 $RM conftest*
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20549 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20554 hard_links="nottested"
20555 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20556 # do not overwrite the value of need_locks provided by the user
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20558 $as_echo_n "checking if we can lock with hard links... " >&6; }
20559 hard_links=yes
20560 $RM conftest*
20561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20562 touch conftest.a
20563 ln conftest.a conftest.b 2>&5 || hard_links=no
20564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20566 $as_echo "$hard_links" >&6; }
20567 if test "$hard_links" = no; then
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20569 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20570 need_locks=warn
20572 else
20573 need_locks=no
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20579 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20581 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20582 case $host_os in
20583 aix[4-9]*)
20584 # If we're using GNU nm, then we don't want the "-C" option.
20585 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20586 # Also, AIX nm treats weak defined symbols like other global defined
20587 # symbols, whereas GNU nm marks them as "W".
20588 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20589 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'
20590 else
20591 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'
20594 pw32*)
20595 export_symbols_cmds_CXX="$ltdll_cmds"
20597 cygwin* | mingw* | cegcc*)
20598 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'
20601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20603 esac
20604 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20607 $as_echo "$ld_shlibs_CXX" >&6; }
20608 test "$ld_shlibs_CXX" = no && can_build_shared=no
20610 with_gnu_ld_CXX=$with_gnu_ld
20618 # Do we need to explicitly link libc?
20620 case "x$archive_cmds_need_lc_CXX" in
20621 x|xyes)
20622 # Assume -lc should be added
20623 archive_cmds_need_lc_CXX=yes
20625 if test "$enable_shared" = yes && test "$GCC" = yes; then
20626 case $archive_cmds_CXX in
20627 *'~'*)
20628 # FIXME: we may have to deal with multi-command sequences.
20630 '$CC '*)
20631 # Test whether the compiler implicitly links with -lc since on some
20632 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20633 # to ld, don't add -lc before -lgcc.
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20635 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20636 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20637 $as_echo_n "(cached) " >&6
20638 else
20639 $RM conftest*
20640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20643 (eval $ac_compile) 2>&5
20644 ac_status=$?
20645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20646 test $ac_status = 0; } 2>conftest.err; then
20647 soname=conftest
20648 lib=conftest
20649 libobjs=conftest.$ac_objext
20650 deplibs=
20651 wl=$lt_prog_compiler_wl_CXX
20652 pic_flag=$lt_prog_compiler_pic_CXX
20653 compiler_flags=-v
20654 linker_flags=-v
20655 verstring=
20656 output_objdir=.
20657 libname=conftest
20658 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20659 allow_undefined_flag_CXX=
20660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20661 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20662 ac_status=$?
20663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20664 test $ac_status = 0; }
20665 then
20666 lt_cv_archive_cmds_need_lc_CXX=no
20667 else
20668 lt_cv_archive_cmds_need_lc_CXX=yes
20670 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20671 else
20672 cat conftest.err 1>&5
20674 $RM conftest*
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20678 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20679 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20681 esac
20684 esac
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20750 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20752 library_names_spec=
20753 libname_spec='lib$name'
20754 soname_spec=
20755 shrext_cmds=".so"
20756 postinstall_cmds=
20757 postuninstall_cmds=
20758 finish_cmds=
20759 finish_eval=
20760 shlibpath_var=
20761 shlibpath_overrides_runpath=unknown
20762 version_type=none
20763 dynamic_linker="$host_os ld.so"
20764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20765 need_lib_prefix=unknown
20766 hardcode_into_libs=no
20768 # when you set need_version to no, make sure it does not cause -set_version
20769 # flags to be left without arguments
20770 need_version=unknown
20772 case $host_os in
20773 aix3*)
20774 version_type=linux
20775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20776 shlibpath_var=LIBPATH
20778 # AIX 3 has no versioning support, so we append a major version to the name.
20779 soname_spec='${libname}${release}${shared_ext}$major'
20782 aix[4-9]*)
20783 version_type=linux
20784 need_lib_prefix=no
20785 need_version=no
20786 hardcode_into_libs=yes
20787 if test "$host_cpu" = ia64; then
20788 # AIX 5 supports IA64
20789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20790 shlibpath_var=LD_LIBRARY_PATH
20791 else
20792 # With GCC up to 2.95.x, collect2 would create an import file
20793 # for dependence libraries. The import file would start with
20794 # the line `#! .'. This would cause the generated library to
20795 # depend on `.', always an invalid library. This was fixed in
20796 # development snapshots of GCC prior to 3.0.
20797 case $host_os in
20798 aix4 | aix4.[01] | aix4.[01].*)
20799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20800 echo ' yes '
20801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20803 else
20804 can_build_shared=no
20807 esac
20808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20809 # soname into executable. Probably we can add versioning support to
20810 # collect2, so additional links can be useful in future.
20811 if test "$aix_use_runtimelinking" = yes; then
20812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20813 # instead of lib<name>.a to let people know that these are not
20814 # typical AIX shared libraries.
20815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20816 else
20817 # We preserve .a as extension for shared libraries through AIX4.2
20818 # and later when we are not doing run time linking.
20819 library_names_spec='${libname}${release}.a $libname.a'
20820 soname_spec='${libname}${release}${shared_ext}$major'
20822 shlibpath_var=LIBPATH
20826 amigaos*)
20827 case $host_cpu in
20828 powerpc)
20829 # Since July 2007 AmigaOS4 officially supports .so libraries.
20830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20833 m68k)
20834 library_names_spec='$libname.ixlibrary $libname.a'
20835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20836 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'
20838 esac
20841 beos*)
20842 library_names_spec='${libname}${shared_ext}'
20843 dynamic_linker="$host_os ld.so"
20844 shlibpath_var=LIBRARY_PATH
20847 bsdi[45]*)
20848 version_type=linux
20849 need_version=no
20850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20851 soname_spec='${libname}${release}${shared_ext}$major'
20852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20853 shlibpath_var=LD_LIBRARY_PATH
20854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20856 # the default ld.so.conf also contains /usr/contrib/lib and
20857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20858 # libtool to hard-code these into programs
20861 cygwin* | mingw* | pw32* | cegcc*)
20862 version_type=windows
20863 shrext_cmds=".dll"
20864 need_version=no
20865 need_lib_prefix=no
20867 case $GCC,$host_os in
20868 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20869 library_names_spec='$libname.dll.a'
20870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20871 postinstall_cmds='base_file=`basename \${file}`~
20872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20873 dldir=$destdir/`dirname \$dlpath`~
20874 test -d \$dldir || mkdir -p \$dldir~
20875 $install_prog $dir/$dlname \$dldir/$dlname~
20876 chmod a+x \$dldir/$dlname~
20877 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20878 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20881 dlpath=$dir/\$dldll~
20882 $RM \$dlpath'
20883 shlibpath_overrides_runpath=yes
20885 case $host_os in
20886 cygwin*)
20887 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20888 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20891 mingw* | cegcc*)
20892 # MinGW DLLs use traditional 'lib' prefix
20893 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20895 pw32*)
20896 # pw32 DLLs use 'pw' prefix rather than 'lib'
20897 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20899 esac
20903 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20905 esac
20906 dynamic_linker='Win32 ld.exe'
20907 # FIXME: first we should search . and the directory the executable is in
20908 shlibpath_var=PATH
20911 darwin* | rhapsody*)
20912 dynamic_linker="$host_os dyld"
20913 version_type=darwin
20914 need_lib_prefix=no
20915 need_version=no
20916 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20917 soname_spec='${libname}${release}${major}$shared_ext'
20918 shlibpath_overrides_runpath=yes
20919 shlibpath_var=DYLD_LIBRARY_PATH
20920 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20925 dgux*)
20926 version_type=linux
20927 need_lib_prefix=no
20928 need_version=no
20929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20930 soname_spec='${libname}${release}${shared_ext}$major'
20931 shlibpath_var=LD_LIBRARY_PATH
20934 freebsd* | dragonfly*)
20935 # DragonFly does not have aout. When/if they implement a new
20936 # versioning mechanism, adjust this.
20937 if test -x /usr/bin/objformat; then
20938 objformat=`/usr/bin/objformat`
20939 else
20940 case $host_os in
20941 freebsd[23].*) objformat=aout ;;
20942 *) objformat=elf ;;
20943 esac
20945 version_type=freebsd-$objformat
20946 case $version_type in
20947 freebsd-elf*)
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20949 need_version=no
20950 need_lib_prefix=no
20952 freebsd-*)
20953 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20954 need_version=yes
20956 esac
20957 shlibpath_var=LD_LIBRARY_PATH
20958 case $host_os in
20959 freebsd2.*)
20960 shlibpath_overrides_runpath=yes
20962 freebsd3.[01]* | freebsdelf3.[01]*)
20963 shlibpath_overrides_runpath=yes
20964 hardcode_into_libs=yes
20966 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20967 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20968 shlibpath_overrides_runpath=no
20969 hardcode_into_libs=yes
20971 *) # from 4.6 on, and DragonFly
20972 shlibpath_overrides_runpath=yes
20973 hardcode_into_libs=yes
20975 esac
20978 gnu*)
20979 version_type=linux
20980 need_lib_prefix=no
20981 need_version=no
20982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20983 soname_spec='${libname}${release}${shared_ext}$major'
20984 shlibpath_var=LD_LIBRARY_PATH
20985 hardcode_into_libs=yes
20988 haiku*)
20989 version_type=linux
20990 need_lib_prefix=no
20991 need_version=no
20992 dynamic_linker="$host_os runtime_loader"
20993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20994 soname_spec='${libname}${release}${shared_ext}$major'
20995 shlibpath_var=LIBRARY_PATH
20996 shlibpath_overrides_runpath=yes
20997 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20998 hardcode_into_libs=yes
21001 hpux9* | hpux10* | hpux11*)
21002 # Give a soname corresponding to the major version so that dld.sl refuses to
21003 # link against other versions.
21004 version_type=sunos
21005 need_lib_prefix=no
21006 need_version=no
21007 case $host_cpu in
21008 ia64*)
21009 shrext_cmds='.so'
21010 hardcode_into_libs=yes
21011 dynamic_linker="$host_os dld.so"
21012 shlibpath_var=LD_LIBRARY_PATH
21013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21015 soname_spec='${libname}${release}${shared_ext}$major'
21016 if test "X$HPUX_IA64_MODE" = X32; then
21017 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21018 else
21019 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21023 hppa*64*)
21024 shrext_cmds='.sl'
21025 hardcode_into_libs=yes
21026 dynamic_linker="$host_os dld.sl"
21027 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21030 soname_spec='${libname}${release}${shared_ext}$major'
21031 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21035 shrext_cmds='.sl'
21036 dynamic_linker="$host_os dld.sl"
21037 shlibpath_var=SHLIB_PATH
21038 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21040 soname_spec='${libname}${release}${shared_ext}$major'
21042 esac
21043 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21044 postinstall_cmds='chmod 555 $lib'
21045 # or fails outright, so override atomically:
21046 install_override_mode=555
21049 interix[3-9]*)
21050 version_type=linux
21051 need_lib_prefix=no
21052 need_version=no
21053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21054 soname_spec='${libname}${release}${shared_ext}$major'
21055 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21056 shlibpath_var=LD_LIBRARY_PATH
21057 shlibpath_overrides_runpath=no
21058 hardcode_into_libs=yes
21061 irix5* | irix6* | nonstopux*)
21062 case $host_os in
21063 nonstopux*) version_type=nonstopux ;;
21065 if test "$lt_cv_prog_gnu_ld" = yes; then
21066 version_type=linux
21067 else
21068 version_type=irix
21069 fi ;;
21070 esac
21071 need_lib_prefix=no
21072 need_version=no
21073 soname_spec='${libname}${release}${shared_ext}$major'
21074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21075 case $host_os in
21076 irix5* | nonstopux*)
21077 libsuff= shlibsuff=
21080 case $LD in # libtool.m4 will add one of these switches to LD
21081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21082 libsuff= shlibsuff= libmagic=32-bit;;
21083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21084 libsuff=32 shlibsuff=N32 libmagic=N32;;
21085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21087 *) libsuff= shlibsuff= libmagic=never-match;;
21088 esac
21090 esac
21091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21092 shlibpath_overrides_runpath=no
21093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21095 hardcode_into_libs=yes
21098 # No shared lib support for Linux oldld, aout, or coff.
21099 linux*oldld* | linux*aout* | linux*coff*)
21100 dynamic_linker=no
21103 # This must be Linux ELF.
21104 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21105 version_type=linux
21106 need_lib_prefix=no
21107 need_version=no
21108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21109 soname_spec='${libname}${release}${shared_ext}$major'
21110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21111 shlibpath_var=LD_LIBRARY_PATH
21112 shlibpath_overrides_runpath=no
21114 # Some binutils ld are patched to set DT_RUNPATH
21115 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21116 $as_echo_n "(cached) " >&6
21117 else
21118 lt_cv_shlibpath_overrides_runpath=no
21119 save_LDFLAGS=$LDFLAGS
21120 save_libdir=$libdir
21121 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21122 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21124 /* end confdefs.h. */
21127 main ()
21131 return 0;
21133 _ACEOF
21134 if ac_fn_cxx_try_link "$LINENO"; then :
21135 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21136 lt_cv_shlibpath_overrides_runpath=yes
21139 rm -f core conftest.err conftest.$ac_objext \
21140 conftest$ac_exeext conftest.$ac_ext
21141 LDFLAGS=$save_LDFLAGS
21142 libdir=$save_libdir
21146 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21148 # This implies no fast_install, which is unacceptable.
21149 # Some rework will be needed to allow for fast_install
21150 # before this can be enabled.
21151 hardcode_into_libs=yes
21153 # Append ld.so.conf contents to the search path
21154 if test -f /etc/ld.so.conf; then
21155 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' ' '`
21156 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21159 # We used to test for /lib/ld.so.1 and disable shared libraries on
21160 # powerpc, because MkLinux only supported shared libraries with the
21161 # GNU dynamic linker. Since this was broken with cross compilers,
21162 # most powerpc-linux boxes support dynamic linking these days and
21163 # people can always --disable-shared, the test was removed, and we
21164 # assume the GNU/Linux dynamic linker is in use.
21165 dynamic_linker='GNU/Linux ld.so'
21168 netbsd*)
21169 version_type=sunos
21170 need_lib_prefix=no
21171 need_version=no
21172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21175 dynamic_linker='NetBSD (a.out) ld.so'
21176 else
21177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21178 soname_spec='${libname}${release}${shared_ext}$major'
21179 dynamic_linker='NetBSD ld.elf_so'
21181 shlibpath_var=LD_LIBRARY_PATH
21182 shlibpath_overrides_runpath=yes
21183 hardcode_into_libs=yes
21186 newsos6)
21187 version_type=linux
21188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21189 shlibpath_var=LD_LIBRARY_PATH
21190 shlibpath_overrides_runpath=yes
21193 *nto* | *qnx*)
21194 version_type=qnx
21195 need_lib_prefix=no
21196 need_version=no
21197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21198 soname_spec='${libname}${release}${shared_ext}$major'
21199 shlibpath_var=LD_LIBRARY_PATH
21200 shlibpath_overrides_runpath=no
21201 hardcode_into_libs=yes
21202 dynamic_linker='ldqnx.so'
21205 openbsd*)
21206 version_type=sunos
21207 sys_lib_dlsearch_path_spec="/usr/lib"
21208 need_lib_prefix=no
21209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21210 case $host_os in
21211 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21212 *) need_version=no ;;
21213 esac
21214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21216 shlibpath_var=LD_LIBRARY_PATH
21217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21218 case $host_os in
21219 openbsd2.[89] | openbsd2.[89].*)
21220 shlibpath_overrides_runpath=no
21223 shlibpath_overrides_runpath=yes
21225 esac
21226 else
21227 shlibpath_overrides_runpath=yes
21231 os2*)
21232 libname_spec='$name'
21233 shrext_cmds=".dll"
21234 need_lib_prefix=no
21235 library_names_spec='$libname${shared_ext} $libname.a'
21236 dynamic_linker='OS/2 ld.exe'
21237 shlibpath_var=LIBPATH
21240 osf3* | osf4* | osf5*)
21241 version_type=osf
21242 need_lib_prefix=no
21243 need_version=no
21244 soname_spec='${libname}${release}${shared_ext}$major'
21245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21246 shlibpath_var=LD_LIBRARY_PATH
21247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21251 rdos*)
21252 dynamic_linker=no
21255 solaris*)
21256 version_type=linux
21257 need_lib_prefix=no
21258 need_version=no
21259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21260 soname_spec='${libname}${release}${shared_ext}$major'
21261 shlibpath_var=LD_LIBRARY_PATH
21262 shlibpath_overrides_runpath=yes
21263 hardcode_into_libs=yes
21264 # ldd complains unless libraries are executable
21265 postinstall_cmds='chmod +x $lib'
21268 sunos4*)
21269 version_type=sunos
21270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21272 shlibpath_var=LD_LIBRARY_PATH
21273 shlibpath_overrides_runpath=yes
21274 if test "$with_gnu_ld" = yes; then
21275 need_lib_prefix=no
21277 need_version=yes
21280 sysv4 | sysv4.3*)
21281 version_type=linux
21282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21283 soname_spec='${libname}${release}${shared_ext}$major'
21284 shlibpath_var=LD_LIBRARY_PATH
21285 case $host_vendor in
21286 sni)
21287 shlibpath_overrides_runpath=no
21288 need_lib_prefix=no
21289 runpath_var=LD_RUN_PATH
21291 siemens)
21292 need_lib_prefix=no
21294 motorola)
21295 need_lib_prefix=no
21296 need_version=no
21297 shlibpath_overrides_runpath=no
21298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21300 esac
21303 sysv4*MP*)
21304 if test -d /usr/nec ;then
21305 version_type=linux
21306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21307 soname_spec='$libname${shared_ext}.$major'
21308 shlibpath_var=LD_LIBRARY_PATH
21312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21313 version_type=freebsd-elf
21314 need_lib_prefix=no
21315 need_version=no
21316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21317 soname_spec='${libname}${release}${shared_ext}$major'
21318 shlibpath_var=LD_LIBRARY_PATH
21319 shlibpath_overrides_runpath=yes
21320 hardcode_into_libs=yes
21321 if test "$with_gnu_ld" = yes; then
21322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21323 else
21324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21325 case $host_os in
21326 sco3.2v5*)
21327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21329 esac
21331 sys_lib_dlsearch_path_spec='/usr/lib'
21334 tpf*)
21335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21336 version_type=linux
21337 need_lib_prefix=no
21338 need_version=no
21339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21340 shlibpath_var=LD_LIBRARY_PATH
21341 shlibpath_overrides_runpath=no
21342 hardcode_into_libs=yes
21345 uts4*)
21346 version_type=linux
21347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21348 soname_spec='${libname}${release}${shared_ext}$major'
21349 shlibpath_var=LD_LIBRARY_PATH
21353 dynamic_linker=no
21355 esac
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21357 $as_echo "$dynamic_linker" >&6; }
21358 test "$dynamic_linker" = no && can_build_shared=no
21360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21361 if test "$GCC" = yes; then
21362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21365 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21366 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21368 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21369 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21410 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21411 hardcode_action_CXX=
21412 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21413 test -n "$runpath_var_CXX" ||
21414 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21416 # We can hardcode non-existent directories.
21417 if test "$hardcode_direct_CXX" != no &&
21418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21419 # have to relink, otherwise we might link with an installed library
21420 # when we should be linking with a yet-to-be-installed one
21421 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21422 test "$hardcode_minus_L_CXX" != no; then
21423 # Linking always hardcodes the temporary library directory.
21424 hardcode_action_CXX=relink
21425 else
21426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21427 hardcode_action_CXX=immediate
21429 else
21430 # We cannot hardcode anything, or else we can only hardcode existing
21431 # directories.
21432 hardcode_action_CXX=unsupported
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21435 $as_echo "$hardcode_action_CXX" >&6; }
21437 if test "$hardcode_action_CXX" = relink ||
21438 test "$inherit_rpath_CXX" = yes; then
21439 # Fast installation is not supported
21440 enable_fast_install=no
21441 elif test "$shlibpath_overrides_runpath" = yes ||
21442 test "$enable_shared" = no; then
21443 # Fast installation is not necessary
21444 enable_fast_install=needless
21453 fi # test -n "$compiler"
21455 CC=$lt_save_CC
21456 LDCXX=$LD
21457 LD=$lt_save_LD
21458 GCC=$lt_save_GCC
21459 with_gnu_ld=$lt_save_with_gnu_ld
21460 lt_cv_path_LDCXX=$lt_cv_path_LD
21461 lt_cv_path_LD=$lt_save_path_LD
21462 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21463 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21464 fi # test "$_lt_caught_CXX_error" != yes
21466 ac_ext=c
21467 ac_cpp='$CPP $CPPFLAGS'
21468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21487 # Only expand once:
21493 # Identify the assembler which will work hand-in-glove with the newly
21494 # built GCC, so that we can examine its features. This is the assembler
21495 # which will be driven by the driver program.
21497 # If build != host, and we aren't building gas in-tree, we identify a
21498 # build->target assembler and hope that it will have the same features
21499 # as the host->target assembler we'll be using.
21500 gcc_cv_gas_major_version=
21501 gcc_cv_gas_minor_version=
21502 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21504 if test "${gcc_cv_as+set}" = set; then :
21506 else
21508 if test -x "$DEFAULT_ASSEMBLER"; then
21509 gcc_cv_as="$DEFAULT_ASSEMBLER"
21510 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21511 && test -f ../gas/Makefile \
21512 && test x$build = x$host; then
21513 gcc_cv_as=../gas/as-new$build_exeext
21514 elif test -x as$build_exeext; then
21515 # Build using assembler in the current directory.
21516 gcc_cv_as=./as$build_exeext
21517 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21518 gcc_cv_as="$AS_FOR_TARGET"
21519 else
21520 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21521 set dummy $AS_FOR_TARGET; ac_word=$2
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21523 $as_echo_n "checking for $ac_word... " >&6; }
21524 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21525 $as_echo_n "(cached) " >&6
21526 else
21527 case $gcc_cv_as in
21528 [\\/]* | ?:[\\/]*)
21529 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21533 for as_dir in $PATH
21535 IFS=$as_save_IFS
21536 test -z "$as_dir" && as_dir=.
21537 for ac_exec_ext in '' $ac_executable_extensions; do
21538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21539 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21541 break 2
21543 done
21544 done
21545 IFS=$as_save_IFS
21548 esac
21550 gcc_cv_as=$ac_cv_path_gcc_cv_as
21551 if test -n "$gcc_cv_as"; then
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21553 $as_echo "$gcc_cv_as" >&6; }
21554 else
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21556 $as_echo "no" >&6; }
21563 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21565 case "$ORIGINAL_AS_FOR_TARGET" in
21566 ./as | ./as$build_exeext) ;;
21567 *) ac_config_files="$ac_config_files as:exec-tool.in"
21569 esac
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21572 $as_echo_n "checking what assembler to use... " >&6; }
21573 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21574 # Single tree build which includes gas. We want to prefer it
21575 # over whatever linker top-level may have detected, since
21576 # we'll use what we're building after installation anyway.
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21578 $as_echo "newly built gas" >&6; }
21579 in_tree_gas=yes
21580 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21581 for f in $gcc_cv_as_bfd_srcdir/configure \
21582 $gcc_cv_as_gas_srcdir/configure \
21583 $gcc_cv_as_gas_srcdir/configure.in \
21584 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21585 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21586 if test x$gcc_cv_gas_version != x; then
21587 break
21589 done
21590 case $gcc_cv_gas_version in
21591 VERSION=[0-9]*) ;;
21592 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21593 esac
21594 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21595 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21596 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21597 case $gcc_cv_gas_patch_version in
21598 "") gcc_cv_gas_patch_version="0" ;;
21599 esac
21600 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21601 + $gcc_cv_gas_minor_version \) \* 1000 \
21602 + $gcc_cv_gas_patch_version`
21604 in_tree_gas_is_elf=no
21605 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21606 || (grep 'obj_format = multi' ../gas/Makefile \
21607 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21608 then
21609 in_tree_gas_is_elf=yes
21611 else
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21613 $as_echo "$gcc_cv_as" >&6; }
21614 in_tree_gas=no
21617 default_ld=
21618 # Check whether --enable-ld was given.
21619 if test "${enable_ld+set}" = set; then :
21620 enableval=$enable_ld; case "${enableval}" in
21622 default_ld=ld.gold
21624 esac
21628 # Check whether --enable-gold was given.
21629 if test "${enable_gold+set}" = set; then :
21630 enableval=$enable_gold; case "${enableval}" in
21631 default)
21632 install_gold_as_default=yes
21634 yes)
21635 if test x${default_ld} != x; then
21636 install_gold_as_default=yes
21642 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
21644 esac
21645 else
21646 install_gold_as_default=no
21650 # Identify the linker which will work hand-in-glove with the newly
21651 # built GCC, so that we can examine its features. This is the linker
21652 # which will be driven by the driver program.
21654 # If build != host, and we aren't building gas in-tree, we identify a
21655 # build->target linker and hope that it will have the same features
21656 # as the host->target linker we'll be using.
21657 gcc_cv_gld_major_version=
21658 gcc_cv_gld_minor_version=
21659 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21660 gcc_cv_ld_gold_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21661 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21663 if test "${gcc_cv_ld+set}" = set; then :
21665 else
21667 if test -x "$DEFAULT_LINKER"; then
21668 gcc_cv_ld="$DEFAULT_LINKER"
21669 elif test $install_gold_as_default = yes \
21670 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21671 && test -f ../gold/Makefile \
21672 && test x$build = x$host; then
21673 gcc_cv_ld=../gold/ld-new$build_exeext
21674 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21675 && test -f ../ld/Makefile \
21676 && test x$build = x$host; then
21677 gcc_cv_ld=../ld/ld-new$build_exeext
21678 elif test -x collect-ld$build_exeext; then
21679 # Build using linker in the current directory.
21680 gcc_cv_ld=./collect-ld$build_exeext
21681 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21682 gcc_cv_ld="$LD_FOR_TARGET"
21683 else
21684 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21685 set dummy $LD_FOR_TARGET; ac_word=$2
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21687 $as_echo_n "checking for $ac_word... " >&6; }
21688 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21689 $as_echo_n "(cached) " >&6
21690 else
21691 case $gcc_cv_ld in
21692 [\\/]* | ?:[\\/]*)
21693 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21697 for as_dir in $PATH
21699 IFS=$as_save_IFS
21700 test -z "$as_dir" && as_dir=.
21701 for ac_exec_ext in '' $ac_executable_extensions; do
21702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21703 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21705 break 2
21707 done
21708 done
21709 IFS=$as_save_IFS
21712 esac
21714 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21715 if test -n "$gcc_cv_ld"; then
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21717 $as_echo "$gcc_cv_ld" >&6; }
21718 else
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21720 $as_echo "no" >&6; }
21727 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21728 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21729 # if the PLUGIN_LD is set ld-new, just have it as ld
21730 # as that is the installed named.
21731 if test x$PLUGIN_LD_SUFFIX = xld-new \
21732 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21733 PLUGIN_LD_SUFFIX=ld
21736 # Check whether --with-plugin-ld was given.
21737 if test "${with_plugin_ld+set}" = set; then :
21738 withval=$with_plugin_ld; if test x"$withval" != x; then
21739 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21740 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21746 cat >>confdefs.h <<_ACEOF
21747 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21748 _ACEOF
21751 # Check to see if we are using gold instead of ld
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21753 $as_echo_n "checking whether we are using gold... " >&6; }
21754 ld_is_gold=no
21755 if test x$gcc_cv_ld != x; then
21756 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21757 | grep "GNU gold" > /dev/null; then
21758 ld_is_gold=yes
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21762 $as_echo "$ld_is_gold" >&6; }
21764 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21766 case "$ORIGINAL_LD_FOR_TARGET" in
21767 ./collect-ld | ./collect-ld$build_exeext) ;;
21768 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21770 esac
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21773 $as_echo_n "checking what linker to use... " >&6; }
21774 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21775 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21776 # Single tree build which includes ld. We want to prefer it
21777 # over whatever linker top-level may have detected, since
21778 # we'll use what we're building after installation anyway.
21779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21780 $as_echo "newly built ld" >&6; }
21781 in_tree_ld=yes
21782 in_tree_ld_is_elf=no
21783 if (grep 'EMUL = .*elf' ../ld/Makefile \
21784 || grep 'EMUL = .*linux' ../ld/Makefile \
21785 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21786 in_tree_ld_is_elf=yes
21787 elif test "$ld_is_gold" = yes; then
21788 in_tree_ld_is_elf=yes
21790 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
21792 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21793 if test x$gcc_cv_gld_version != x; then
21794 break
21796 done
21797 case $gcc_cv_gld_version in
21798 VERSION=[0-9]*) ;;
21799 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21800 esac
21801 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21802 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21803 ORIGINAL_LD_BFD_FOR_TARGET=../ld/ld-new$build_exeext
21804 ORIGINAL_LD_GOLD_FOR_TARGET=../gold/ld-new$build_exeext
21805 else
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21807 $as_echo "$gcc_cv_ld" >&6; }
21808 in_tree_ld=no
21809 gcc_cvs_ld_program=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21810 ORIGINAL_LD_BFD_FOR_TARGET=${gcc_cvs_ld_program}.bfd$host_exeext
21811 ORIGINAL_LD_GOLD_FOR_TARGET=${gcc_cvs_ld_program}.gold$host_exeext
21817 # Figure out what nm we will be using.
21818 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21819 if test "${gcc_cv_nm+set}" = set; then :
21821 else
21823 if test -f $gcc_cv_binutils_srcdir/configure.in \
21824 && test -f ../binutils/Makefile \
21825 && test x$build = x$host; then
21826 gcc_cv_nm=../binutils/nm-new$build_exeext
21827 elif test -x nm$build_exeext; then
21828 gcc_cv_nm=./nm$build_exeext
21829 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21830 gcc_cv_nm="$NM_FOR_TARGET"
21831 else
21832 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21833 set dummy $NM_FOR_TARGET; ac_word=$2
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21835 $as_echo_n "checking for $ac_word... " >&6; }
21836 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21837 $as_echo_n "(cached) " >&6
21838 else
21839 case $gcc_cv_nm in
21840 [\\/]* | ?:[\\/]*)
21841 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21845 for as_dir in $PATH
21847 IFS=$as_save_IFS
21848 test -z "$as_dir" && as_dir=.
21849 for ac_exec_ext in '' $ac_executable_extensions; do
21850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21851 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21853 break 2
21855 done
21856 done
21857 IFS=$as_save_IFS
21860 esac
21862 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21863 if test -n "$gcc_cv_nm"; then
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21865 $as_echo "$gcc_cv_nm" >&6; }
21866 else
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21868 $as_echo "no" >&6; }
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21876 $as_echo_n "checking what nm to use... " >&6; }
21877 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21878 # Single tree build which includes binutils.
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21880 $as_echo "newly built nm" >&6; }
21881 in_tree_nm=yes
21882 else
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21884 $as_echo "$gcc_cv_nm" >&6; }
21885 in_tree_nm=no
21888 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21890 case "$ORIGINAL_NM_FOR_TARGET" in
21891 ./nm | ./nm$build_exeext) ;;
21892 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21894 esac
21897 # Figure out what objdump we will be using.
21898 if test "${gcc_cv_objdump+set}" = set; then :
21900 else
21902 if test -f $gcc_cv_binutils_srcdir/configure.in \
21903 && test -f ../binutils/Makefile \
21904 && test x$build = x$host; then
21905 # Single tree build which includes binutils.
21906 gcc_cv_objdump=../binutils/objdump$build_exeext
21907 elif test -x objdump$build_exeext; then
21908 gcc_cv_objdump=./objdump$build_exeext
21909 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21910 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21911 else
21912 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21913 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21915 $as_echo_n "checking for $ac_word... " >&6; }
21916 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21917 $as_echo_n "(cached) " >&6
21918 else
21919 case $gcc_cv_objdump in
21920 [\\/]* | ?:[\\/]*)
21921 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21925 for as_dir in $PATH
21927 IFS=$as_save_IFS
21928 test -z "$as_dir" && as_dir=.
21929 for ac_exec_ext in '' $ac_executable_extensions; do
21930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21931 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21933 break 2
21935 done
21936 done
21937 IFS=$as_save_IFS
21940 esac
21942 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21943 if test -n "$gcc_cv_objdump"; then
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21945 $as_echo "$gcc_cv_objdump" >&6; }
21946 else
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21948 $as_echo "no" >&6; }
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21956 $as_echo_n "checking what objdump to use... " >&6; }
21957 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21958 # Single tree build which includes binutils.
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21960 $as_echo "newly built objdump" >&6; }
21961 elif test x$gcc_cv_objdump = x; then
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21963 $as_echo "not found" >&6; }
21964 else
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21966 $as_echo "$gcc_cv_objdump" >&6; }
21969 # Figure out what readelf we will be using.
21970 if test "${gcc_cv_readelf+set}" = set; then :
21972 else
21974 if test -f $gcc_cv_binutils_srcdir/configure.in \
21975 && test -f ../binutils/Makefile \
21976 && test x$build = x$host; then
21977 # Single tree build which includes binutils.
21978 gcc_cv_readelf=../binutils/readelf$build_exeext
21979 elif test -x readelf$build_exeext; then
21980 gcc_cv_readelf=./readelf$build_exeext
21981 else
21982 # Extract the first word of "readelf", so it can be a program name with args.
21983 set dummy readelf; ac_word=$2
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21985 $as_echo_n "checking for $ac_word... " >&6; }
21986 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21987 $as_echo_n "(cached) " >&6
21988 else
21989 case $gcc_cv_readelf in
21990 [\\/]* | ?:[\\/]*)
21991 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21995 for as_dir in $PATH
21997 IFS=$as_save_IFS
21998 test -z "$as_dir" && as_dir=.
21999 for ac_exec_ext in '' $ac_executable_extensions; do
22000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22001 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
22002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22003 break 2
22005 done
22006 done
22007 IFS=$as_save_IFS
22010 esac
22012 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
22013 if test -n "$gcc_cv_readelf"; then
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22015 $as_echo "$gcc_cv_readelf" >&6; }
22016 else
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22026 $as_echo_n "checking what readelf to use... " >&6; }
22027 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
22028 # Single tree build which includes binutils.
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22030 $as_echo "newly built readelf" >&6; }
22031 elif test x$gcc_cv_readelf = x; then
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22033 $as_echo "not found" >&6; }
22034 else
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22036 $as_echo "$gcc_cv_readelf" >&6; }
22039 # Figure out what assembler alignment features are present.
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22041 $as_echo_n "checking assembler flags... " >&6; }
22042 if test "${gcc_cv_as_flags+set}" = set; then :
22043 $as_echo_n "(cached) " >&6
22044 else
22045 case "$target" in
22046 i[34567]86-*-linux*)
22047 gcc_cv_as_flags=--32
22049 x86_64-*-linux-gnux32)
22050 gcc_cv_as_flags=--x32
22052 x86_64-*-linux*)
22053 gcc_cv_as_flags=--64
22055 powerpc*-*-darwin*)
22056 gcc_cv_as_flags="-arch ppc"
22059 gcc_cv_as_flags=" "
22061 esac
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22064 $as_echo "$gcc_cv_as_flags" >&6; }
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22067 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22068 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22069 $as_echo_n "(cached) " >&6
22070 else
22071 gcc_cv_as_balign_and_p2align=no
22072 if test $in_tree_gas = yes; then
22073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22074 then gcc_cv_as_balign_and_p2align=yes
22076 elif test x$gcc_cv_as != x; then
22077 $as_echo '.balign 4
22078 .p2align 2' > conftest.s
22079 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22081 (eval $ac_try) 2>&5
22082 ac_status=$?
22083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22084 test $ac_status = 0; }; }
22085 then
22086 gcc_cv_as_balign_and_p2align=yes
22087 else
22088 echo "configure: failed program was" >&5
22089 cat conftest.s >&5
22091 rm -f conftest.o conftest.s
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22095 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22096 if test $gcc_cv_as_balign_and_p2align = yes; then
22098 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22103 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22104 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22105 $as_echo_n "(cached) " >&6
22106 else
22107 gcc_cv_as_max_skip_p2align=no
22108 if test $in_tree_gas = yes; then
22109 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22110 then gcc_cv_as_max_skip_p2align=yes
22112 elif test x$gcc_cv_as != x; then
22113 $as_echo '.p2align 4,,7' > conftest.s
22114 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22119 test $ac_status = 0; }; }
22120 then
22121 gcc_cv_as_max_skip_p2align=yes
22122 else
22123 echo "configure: failed program was" >&5
22124 cat conftest.s >&5
22126 rm -f conftest.o conftest.s
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22130 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22131 if test $gcc_cv_as_max_skip_p2align = yes; then
22133 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22138 $as_echo_n "checking assembler for .literal16... " >&6; }
22139 if test "${gcc_cv_as_literal16+set}" = set; then :
22140 $as_echo_n "(cached) " >&6
22141 else
22142 gcc_cv_as_literal16=no
22143 if test $in_tree_gas = yes; then
22144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22145 then gcc_cv_as_literal16=yes
22147 elif test x$gcc_cv_as != x; then
22148 $as_echo '.literal16' > conftest.s
22149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22151 (eval $ac_try) 2>&5
22152 ac_status=$?
22153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22154 test $ac_status = 0; }; }
22155 then
22156 gcc_cv_as_literal16=yes
22157 else
22158 echo "configure: failed program was" >&5
22159 cat conftest.s >&5
22161 rm -f conftest.o conftest.s
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22165 $as_echo "$gcc_cv_as_literal16" >&6; }
22166 if test $gcc_cv_as_literal16 = yes; then
22168 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22173 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22174 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22175 $as_echo_n "(cached) " >&6
22176 else
22177 gcc_cv_as_subsection_m1=no
22178 if test $in_tree_gas = yes; then
22179 if test $in_tree_gas_is_elf = yes \
22180 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22181 then gcc_cv_as_subsection_m1=yes
22183 elif test x$gcc_cv_as != x; then
22184 $as_echo 'conftest_label1: .word 0
22185 .subsection -1
22186 conftest_label2: .word 0
22187 .previous' > conftest.s
22188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22190 (eval $ac_try) 2>&5
22191 ac_status=$?
22192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22193 test $ac_status = 0; }; }
22194 then
22195 if test x$gcc_cv_nm != x; then
22196 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22197 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22198 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22199 then :
22200 else gcc_cv_as_subsection_m1=yes
22202 rm -f conftest.nm1 conftest.nm2
22204 else
22205 echo "configure: failed program was" >&5
22206 cat conftest.s >&5
22208 rm -f conftest.o conftest.s
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22212 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22213 if test $gcc_cv_as_subsection_m1 = yes; then
22215 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22220 $as_echo_n "checking assembler for .weak... " >&6; }
22221 if test "${gcc_cv_as_weak+set}" = set; then :
22222 $as_echo_n "(cached) " >&6
22223 else
22224 gcc_cv_as_weak=no
22225 if test $in_tree_gas = yes; then
22226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22227 then gcc_cv_as_weak=yes
22229 elif test x$gcc_cv_as != x; then
22230 $as_echo ' .weak foobar' > conftest.s
22231 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22233 (eval $ac_try) 2>&5
22234 ac_status=$?
22235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22236 test $ac_status = 0; }; }
22237 then
22238 gcc_cv_as_weak=yes
22239 else
22240 echo "configure: failed program was" >&5
22241 cat conftest.s >&5
22243 rm -f conftest.o conftest.s
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22247 $as_echo "$gcc_cv_as_weak" >&6; }
22248 if test $gcc_cv_as_weak = yes; then
22250 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22255 $as_echo_n "checking assembler for .weakref... " >&6; }
22256 if test "${gcc_cv_as_weakref+set}" = set; then :
22257 $as_echo_n "(cached) " >&6
22258 else
22259 gcc_cv_as_weakref=no
22260 if test $in_tree_gas = yes; then
22261 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22262 then gcc_cv_as_weakref=yes
22264 elif test x$gcc_cv_as != x; then
22265 $as_echo ' .weakref foobar, barfnot' > conftest.s
22266 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22271 test $ac_status = 0; }; }
22272 then
22273 gcc_cv_as_weakref=yes
22274 else
22275 echo "configure: failed program was" >&5
22276 cat conftest.s >&5
22278 rm -f conftest.o conftest.s
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22282 $as_echo "$gcc_cv_as_weakref" >&6; }
22283 if test $gcc_cv_as_weakref = yes; then
22285 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22290 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22291 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22292 $as_echo_n "(cached) " >&6
22293 else
22294 gcc_cv_as_nsubspa_comdat=no
22295 if test $in_tree_gas = yes; then
22296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22297 then gcc_cv_as_nsubspa_comdat=yes
22299 elif test x$gcc_cv_as != x; then
22300 $as_echo ' .SPACE $TEXT$
22301 .NSUBSPA $CODE$,COMDAT' > conftest.s
22302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22307 test $ac_status = 0; }; }
22308 then
22309 gcc_cv_as_nsubspa_comdat=yes
22310 else
22311 echo "configure: failed program was" >&5
22312 cat conftest.s >&5
22314 rm -f conftest.o conftest.s
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22318 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22319 if test $gcc_cv_as_nsubspa_comdat = yes; then
22321 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22325 # .hidden needs to be supported in both the assembler and the linker,
22326 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22327 # This is irritatingly difficult to feature test for; we have to check the
22328 # date string after the version number. If we've got an in-tree
22329 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22330 # to be safe.
22331 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22333 $as_echo_n "checking assembler for .hidden... " >&6; }
22334 if test "${gcc_cv_as_hidden+set}" = set; then :
22335 $as_echo_n "(cached) " >&6
22336 else
22337 gcc_cv_as_hidden=no
22338 if test $in_tree_gas = yes; then
22339 if test $in_tree_gas_is_elf = yes \
22340 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22341 then gcc_cv_as_hidden=yes
22343 elif test x$gcc_cv_as != x; then
22344 $as_echo ' .hidden foobar
22345 foobar:' > conftest.s
22346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22348 (eval $ac_try) 2>&5
22349 ac_status=$?
22350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22351 test $ac_status = 0; }; }
22352 then
22354 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22355 # STV_HIDDEN, so disable .hidden support if so.
22356 case "${target}" in
22357 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22358 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22359 cat > conftest.s <<EOF
22360 .globl hidden
22361 .hidden hidden
22362 hidden:
22363 .globl default
22364 .set default,hidden
22366 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22367 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22368 grep '\.hidden default' > /dev/null; then
22369 gcc_cv_as_hidden=no
22370 else
22371 gcc_cv_as_hidden=yes
22373 else
22374 # Assume bug is present if objdump is missing.
22375 gcc_cv_as_hidden=no
22379 gcc_cv_as_hidden=yes
22381 esac
22382 else
22383 echo "configure: failed program was" >&5
22384 cat conftest.s >&5
22386 rm -f conftest.o conftest.s
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22390 $as_echo "$gcc_cv_as_hidden" >&6; }
22392 case "${target}" in
22393 *-*-darwin*)
22394 # Darwin as has some visibility support, though with a different syntax.
22395 gcc_cv_as_hidden=yes
22397 esac
22399 # gnu_indirect_function type is an extension proposed at
22400 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22401 # selection of function implementation
22402 # Check whether --enable-gnu-indirect-function was given.
22403 if test "${enable_gnu_indirect_function+set}" = set; then :
22404 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22405 yes | no) ;;
22406 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22407 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22408 esac
22409 else
22410 enable_gnu_indirect_function="$default_gnu_indirect_function"
22414 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22416 cat >>confdefs.h <<_ACEOF
22417 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22418 _ACEOF
22422 if test $in_tree_ld != yes ; then
22423 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22424 if echo "$ld_ver" | grep GNU > /dev/null; then
22425 if test x"$ld_is_gold" = xyes; then
22426 # GNU gold --version looks like this:
22428 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22430 # We extract the binutils version which is more familiar and specific
22431 # than the gold version.
22432 ld_vers=`echo $ld_ver | sed -n \
22433 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22434 else
22435 # GNU ld --version looks like this:
22437 # GNU ld (GNU Binutils) 2.21.51.20110225
22438 ld_vers=`echo $ld_ver | sed -n \
22439 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22441 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'`
22442 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22443 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22444 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22445 else
22446 case "${target}" in
22447 *-*-solaris2*)
22448 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22449 # format.
22451 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22452 # /usr/ccs/bin/ld has been configured.
22453 ld_ver=`$gcc_cv_ld -V 2>&1`
22454 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22455 ld_vers=`echo $ld_ver | sed -n \
22456 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22457 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22458 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22461 esac
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22466 $as_echo_n "checking linker for .hidden support... " >&6; }
22467 if test "${gcc_cv_ld_hidden+set}" = set; then :
22468 $as_echo_n "(cached) " >&6
22469 else
22470 if test $in_tree_ld = yes ; then
22471 gcc_cv_ld_hidden=no
22472 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 \
22473 && test $in_tree_ld_is_elf = yes; then
22474 gcc_cv_ld_hidden=yes
22476 else
22477 gcc_cv_ld_hidden=yes
22478 if test x"$ld_is_gold" = xyes; then
22480 elif echo "$ld_ver" | grep GNU > /dev/null; then
22481 case "${target}" in
22482 mmix-knuth-mmixware)
22483 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22484 gcc_cv_ld_hidden=no
22486 esac
22487 if test 0"$ld_date" -lt 20020404; then
22488 if test -n "$ld_date"; then
22489 # If there was date string, but was earlier than 2002-04-04, fail
22490 gcc_cv_ld_hidden=no
22491 elif test -z "$ld_vers"; then
22492 # If there was no date string nor ld version number, something is wrong
22493 gcc_cv_ld_hidden=no
22494 else
22495 test -z "$ld_vers_patch" && ld_vers_patch=0
22496 if test "$ld_vers_major" -lt 2; then
22497 gcc_cv_ld_hidden=no
22498 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22499 gcc_cv_ld_hidden="no"
22500 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22501 gcc_cv_ld_hidden=no
22505 else
22506 case "${target}" in
22507 *-*-darwin*)
22508 # Darwin ld has some visibility support.
22509 gcc_cv_ld_hidden=yes
22511 hppa64*-*-hpux* | ia64*-*-hpux*)
22512 gcc_cv_ld_hidden=yes
22514 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22515 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22516 # .symbolic was only added in Solaris 9 12/02.
22517 gcc_cv_ld_hidden=yes
22520 gcc_cv_ld_hidden=no
22522 esac
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22527 $as_echo "$gcc_cv_ld_hidden" >&6; }
22528 libgcc_visibility=no
22531 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22532 libgcc_visibility=yes
22534 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22539 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22540 gcc_cv_ld_ro_rw_mix=unknown
22541 if test $in_tree_ld = yes ; then
22542 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 \
22543 && test $in_tree_ld_is_elf = yes; then
22544 gcc_cv_ld_ro_rw_mix=read-write
22546 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22547 echo '.section myfoosect, "a"' > conftest1.s
22548 echo '.section myfoosect, "aw"' > conftest2.s
22549 echo '.byte 1' >> conftest2.s
22550 echo '.section myfoosect, "a"' > conftest3.s
22551 echo '.byte 0' >> conftest3.s
22552 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22553 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22554 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22555 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22556 conftest2.o conftest3.o > /dev/null 2>&1; then
22557 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22558 | sed -e '/myfoosect/!d' -e N`
22559 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22560 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22561 gcc_cv_ld_ro_rw_mix=read-only
22562 else
22563 gcc_cv_ld_ro_rw_mix=read-write
22567 rm -f conftest.* conftest[123].*
22569 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22571 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22575 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22577 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22578 case "${target}" in
22579 *-*-solaris2*)
22581 # Solaris 2 ld -V output looks like this for a regular version:
22583 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22585 # but test versions add stuff at the end:
22587 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22589 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22590 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22591 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22592 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22593 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22594 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22597 esac
22600 # Check whether --enable-initfini-array was given.
22601 if test "${enable_initfini_array+set}" = set; then :
22602 enableval=$enable_initfini_array;
22603 else
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22606 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22607 if test "${gcc_cv_initfini_array+set}" = set; then :
22608 $as_echo_n "(cached) " >&6
22609 else
22610 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22611 case "${target}" in
22612 ia64-*)
22613 if test "$cross_compiling" = yes; then :
22614 gcc_cv_initfini_array=no
22615 else
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22619 #ifndef __ELF__
22620 #error Not an ELF OS
22621 #endif
22622 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22623 if it can be used. */
22624 static int x = -1;
22625 int main (void) { return x; }
22626 int foo (void) { x = 0; }
22627 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22629 _ACEOF
22630 if ac_fn_c_try_run "$LINENO"; then :
22631 gcc_cv_initfini_array=yes
22632 else
22633 gcc_cv_initfini_array=no
22635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22636 conftest.$ac_objext conftest.beam conftest.$ac_ext
22640 gcc_cv_initfini_array=no
22641 if test $in_tree_ld = yes ; then
22642 if test "$gcc_cv_gld_major_version" -eq 2 \
22643 -a "$gcc_cv_gld_minor_version" -ge 22 \
22644 -o "$gcc_cv_gld_major_version" -gt 2 \
22645 && test $in_tree_ld_is_elf = yes; then
22646 gcc_cv_initfini_array=yes
22648 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22649 cat > conftest.s <<\EOF
22650 .section .dtors,"a",%progbits
22651 .balign 4
22652 .byte 'A', 'A', 'A', 'A'
22653 .section .ctors,"a",%progbits
22654 .balign 4
22655 .byte 'B', 'B', 'B', 'B'
22656 .section .fini_array.65530,"a",%progbits
22657 .balign 4
22658 .byte 'C', 'C', 'C', 'C'
22659 .section .init_array.65530,"a",%progbits
22660 .balign 4
22661 .byte 'D', 'D', 'D', 'D'
22662 .section .dtors.64528,"a",%progbits
22663 .balign 4
22664 .byte 'E', 'E', 'E', 'E'
22665 .section .ctors.64528,"a",%progbits
22666 .balign 4
22667 .byte 'F', 'F', 'F', 'F'
22668 .section .fini_array.01005,"a",%progbits
22669 .balign 4
22670 .byte 'G', 'G', 'G', 'G'
22671 .section .init_array.01005,"a",%progbits
22672 .balign 4
22673 .byte 'H', 'H', 'H', 'H'
22674 .text
22675 .globl _start
22676 _start:
22678 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22679 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22680 && $gcc_cv_objdump -s -j .init_array conftest \
22681 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22682 && $gcc_cv_objdump -s -j .fini_array conftest \
22683 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22684 gcc_cv_initfini_array=yes
22686 rm -f conftest conftest.*
22688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689 /* end confdefs.h. */
22691 #ifndef __ELF__
22692 # error Not an ELF OS
22693 #endif
22694 #include <stdlib.h>
22695 #if defined __GLIBC_PREREQ
22696 # if __GLIBC_PREREQ (2, 4)
22697 # else
22698 # error GLIBC 2.4 required
22699 # endif
22700 #else
22701 # if defined __sun__ && defined __svr4__
22702 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22703 # else
22704 # error The C library not known to support .init_array/.fini_array
22705 # endif
22706 #endif
22708 _ACEOF
22709 if ac_fn_c_try_cpp "$LINENO"; then :
22711 else
22712 gcc_cv_initfini_array=no
22714 rm -f conftest.err conftest.$ac_ext;;
22715 esac
22716 else
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22718 $as_echo_n "checking cross compile... guessing... " >&6; }
22719 gcc_cv_initfini_array=no
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22723 $as_echo "$gcc_cv_initfini_array" >&6; }
22724 enable_initfini_array=$gcc_cv_initfini_array
22728 if test $enable_initfini_array = yes; then
22730 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22734 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22736 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22737 if test "${gcc_cv_as_leb128+set}" = set; then :
22738 $as_echo_n "(cached) " >&6
22739 else
22740 gcc_cv_as_leb128=no
22741 if test $in_tree_gas = yes; then
22742 if test $in_tree_gas_is_elf = yes \
22743 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22744 then gcc_cv_as_leb128=yes
22746 elif test x$gcc_cv_as != x; then
22747 $as_echo ' .data
22748 .uleb128 L2 - L1
22750 .uleb128 1280
22751 .sleb128 -1010
22752 L2:' > conftest.s
22753 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22758 test $ac_status = 0; }; }
22759 then
22760 # GAS versions before 2.11 do not support uleb128,
22761 # despite appearing to.
22762 # ??? There exists an elf-specific test that will crash
22763 # the assembler. Perhaps it's better to figure out whether
22764 # arbitrary sections are supported and try the test.
22765 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22766 if echo "$as_ver" | grep GNU > /dev/null; then
22767 as_vers=`echo $as_ver | sed -n \
22768 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22769 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22770 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22771 if test $as_major -eq 2 && test $as_minor -lt 11
22772 then :
22773 else gcc_cv_as_leb128=yes
22776 else
22777 echo "configure: failed program was" >&5
22778 cat conftest.s >&5
22780 rm -f conftest.o conftest.s
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22784 $as_echo "$gcc_cv_as_leb128" >&6; }
22785 if test $gcc_cv_as_leb128 = yes; then
22787 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22791 # Check if we have assembler support for unwind directives.
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22793 $as_echo_n "checking assembler for cfi directives... " >&6; }
22794 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22795 $as_echo_n "(cached) " >&6
22796 else
22797 gcc_cv_as_cfi_directive=no
22798 if test x$gcc_cv_as != x; then
22799 $as_echo ' .text
22800 .cfi_startproc
22801 .cfi_offset 0, 0
22802 .cfi_same_value 1
22803 .cfi_def_cfa 1, 2
22804 .cfi_escape 1, 2, 3, 4, 5
22805 .cfi_endproc' > conftest.s
22806 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22808 (eval $ac_try) 2>&5
22809 ac_status=$?
22810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22811 test $ac_status = 0; }; }
22812 then
22813 case "$target" in
22814 *-*-solaris*)
22815 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22816 # read-only and read-write sections, we need to make sure that the
22817 # assembler used emits read-write .eh_frame sections.
22818 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22819 if test "x$gcc_cv_objdump" != x; then
22820 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22821 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22822 gcc_cv_as_cfi_directive=no
22823 else
22824 case "$target" in
22825 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22826 # On Solaris/x86, make sure that GCC and gas agree on using
22827 # read-only .eh_frame sections for 64-bit.
22828 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22829 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22830 sed -e /.eh_frame/!d -e N | \
22831 grep READONLY > /dev/null; then
22832 gcc_cv_as_cfi_directive=yes
22833 else
22834 gcc_cv_as_cfi_directive=no
22838 gcc_cv_as_cfi_directive=yes
22840 esac
22842 else
22843 # no objdump, err on the side of caution
22844 gcc_cv_as_cfi_directive=no
22846 else
22847 gcc_cv_as_cfi_directive=yes
22850 *-*-*)
22851 gcc_cv_as_cfi_directive=yes
22853 esac
22854 else
22855 echo "configure: failed program was" >&5
22856 cat conftest.s >&5
22858 rm -f conftest.o conftest.s
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22862 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22864 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22866 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22867 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22868 $as_echo_n "(cached) " >&6
22869 else
22870 gcc_cv_as_cfi_advance_working=no
22871 if test x$gcc_cv_as != x; then
22872 $as_echo ' .text
22873 .cfi_startproc
22874 .cfi_adjust_cfa_offset 64
22875 .skip 75040, 0
22876 .cfi_adjust_cfa_offset 128
22877 .cfi_endproc' > conftest.s
22878 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22880 (eval $ac_try) 2>&5
22881 ac_status=$?
22882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22883 test $ac_status = 0; }; }
22884 then
22886 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22887 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22888 gcc_cv_as_cfi_advance_working=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_advance_working" >&5
22899 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22901 else
22902 # no objdump, err on the side of caution
22903 gcc_cv_as_cfi_advance_working=no
22907 cat >>confdefs.h <<_ACEOF
22908 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22909 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22910 _ACEOF
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22915 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22916 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22917 $as_echo_n "(cached) " >&6
22918 else
22919 gcc_cv_as_cfi_personality_directive=no
22920 if test x$gcc_cv_as != x; then
22921 $as_echo ' .text
22922 .cfi_startproc
22923 .cfi_personality 0, symbol
22924 .cfi_endproc' > conftest.s
22925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22930 test $ac_status = 0; }; }
22931 then
22932 gcc_cv_as_cfi_personality_directive=yes
22933 else
22934 echo "configure: failed program was" >&5
22935 cat conftest.s >&5
22937 rm -f conftest.o conftest.s
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22941 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22944 cat >>confdefs.h <<_ACEOF
22945 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22946 then echo 1; else echo 0; fi`
22947 _ACEOF
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22951 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22952 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22953 $as_echo_n "(cached) " >&6
22954 else
22955 gcc_cv_as_cfi_sections_directive=no
22956 if test x$gcc_cv_as != x; then
22957 $as_echo ' .text
22958 .cfi_sections .debug_frame, .eh_frame
22959 .cfi_startproc
22960 .cfi_endproc' > conftest.s
22961 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22963 (eval $ac_try) 2>&5
22964 ac_status=$?
22965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22966 test $ac_status = 0; }; }
22967 then
22968 case $target_os in
22969 win32 | pe | cygwin* | mingw32* | uwin*)
22970 # Need to check that we generated the correct relocation for the
22971 # .debug_frame section. This was fixed for binutils 2.21.
22972 gcc_cv_as_cfi_sections_directive=no
22973 if test "x$gcc_cv_objdump" != x; then
22974 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22975 grep secrel > /dev/null; then
22976 gcc_cv_as_cfi_sections_directive=yes
22981 gcc_cv_as_cfi_sections_directive=yes
22983 esac
22984 else
22985 echo "configure: failed program was" >&5
22986 cat conftest.s >&5
22988 rm -f conftest.o conftest.s
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22992 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22996 cat >>confdefs.h <<_ACEOF
22997 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22998 then echo 1; else echo 0; fi`
22999 _ACEOF
23002 # GAS versions up to and including 2.11.0 may mis-optimize
23003 # .eh_frame data.
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23005 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23006 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23007 $as_echo_n "(cached) " >&6
23008 else
23009 gcc_cv_as_eh_frame=no
23010 if test $in_tree_gas = yes; then
23011 if test $in_tree_gas_is_elf = yes \
23012 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23013 then gcc_cv_as_eh_frame=yes
23015 elif test x$gcc_cv_as != x; then
23016 $as_echo ' .text
23017 .LFB1:
23018 .4byte 0
23019 .L1:
23020 .4byte 0
23021 .LFE1:
23022 .section .eh_frame,"aw",@progbits
23023 __FRAME_BEGIN__:
23024 .4byte .LECIE1-.LSCIE1
23025 .LSCIE1:
23026 .4byte 0x0
23027 .byte 0x1
23028 .ascii "z\0"
23029 .byte 0x1
23030 .byte 0x78
23031 .byte 0x1a
23032 .byte 0x0
23033 .byte 0x4
23034 .4byte 1
23035 .p2align 1
23036 .LECIE1:
23037 .LSFDE1:
23038 .4byte .LEFDE1-.LASFDE1
23039 .LASFDE1:
23040 .4byte .LASFDE1-__FRAME_BEGIN__
23041 .4byte .LFB1
23042 .4byte .LFE1-.LFB1
23043 .byte 0x4
23044 .4byte .LFE1-.LFB1
23045 .byte 0x4
23046 .4byte .L1-.LFB1
23047 .LEFDE1:' > conftest.s
23048 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23050 (eval $ac_try) 2>&5
23051 ac_status=$?
23052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23053 test $ac_status = 0; }; }
23054 then
23055 cat > conftest.lit <<EOF
23056 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23057 0010 01000000 12000000 18000000 00000000 ................
23058 0020 08000000 04080000 0044 .........D
23060 cat > conftest.big <<EOF
23061 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23062 0010 00000001 00000012 00000018 00000000 ................
23063 0020 00000008 04000000 0844 .........D
23065 # If the assembler didn't choke, and we can objdump,
23066 # and we got the correct data, then succeed.
23067 # The text in the here-document typically retains its unix-style line
23068 # endings, while the output of objdump will use host line endings.
23069 # Therefore, use diff -b for the comparisons.
23070 if test x$gcc_cv_objdump != x \
23071 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
23072 | tail -3 > conftest.got \
23073 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
23074 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
23075 then
23076 gcc_cv_as_eh_frame=yes
23077 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23079 (eval $ac_try) 2>&5
23080 ac_status=$?
23081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23082 test $ac_status = 0; }; }; then
23083 gcc_cv_as_eh_frame=buggy
23084 else
23085 # Uh oh, what do we do now?
23086 gcc_cv_as_eh_frame=no
23088 else
23089 echo "configure: failed program was" >&5
23090 cat conftest.s >&5
23092 rm -f conftest.o conftest.s
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23096 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23099 if test $gcc_cv_as_eh_frame = buggy; then
23101 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23106 $as_echo_n "checking assembler for section merging support... " >&6; }
23107 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23108 $as_echo_n "(cached) " >&6
23109 else
23110 gcc_cv_as_shf_merge=no
23111 if test $in_tree_gas = yes; then
23112 if test $in_tree_gas_is_elf = yes \
23113 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23114 then gcc_cv_as_shf_merge=yes
23116 elif test x$gcc_cv_as != x; then
23117 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23118 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23123 test $ac_status = 0; }; }
23124 then
23125 gcc_cv_as_shf_merge=yes
23126 else
23127 echo "configure: failed program was" >&5
23128 cat conftest.s >&5
23130 rm -f conftest.o conftest.s
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23134 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23136 if test $gcc_cv_as_shf_merge = no; then
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23138 $as_echo_n "checking assembler for section merging support... " >&6; }
23139 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23141 else
23142 gcc_cv_as_shf_merge=no
23143 if test $in_tree_gas = yes; then
23144 if test $in_tree_gas_is_elf = yes \
23145 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23146 then gcc_cv_as_shf_merge=yes
23148 elif test x$gcc_cv_as != x; then
23149 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23153 ac_status=$?
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }
23156 then
23157 gcc_cv_as_shf_merge=yes
23158 else
23159 echo "configure: failed program was" >&5
23160 cat conftest.s >&5
23162 rm -f conftest.o conftest.s
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23166 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23170 cat >>confdefs.h <<_ACEOF
23171 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23172 _ACEOF
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23176 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23177 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23178 $as_echo_n "(cached) " >&6
23179 else
23180 gcc_cv_as_comdat_group=no
23181 if test $in_tree_gas = yes; then
23182 if test $in_tree_gas_is_elf = yes \
23183 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23184 then gcc_cv_as_comdat_group=yes
23186 elif test x$gcc_cv_as != x; then
23187 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23188 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23193 test $ac_status = 0; }; }
23194 then
23195 gcc_cv_as_comdat_group=yes
23196 else
23197 echo "configure: failed program was" >&5
23198 cat conftest.s >&5
23200 rm -f conftest.o conftest.s
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23204 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23206 if test $gcc_cv_as_comdat_group = yes; then
23207 gcc_cv_as_comdat_group_percent=no
23208 gcc_cv_as_comdat_group_group=no
23209 else
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23211 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23212 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23213 $as_echo_n "(cached) " >&6
23214 else
23215 gcc_cv_as_comdat_group_percent=no
23216 if test $in_tree_gas = yes; then
23217 if test $in_tree_gas_is_elf = yes \
23218 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23219 then gcc_cv_as_comdat_group_percent=yes
23221 elif test x$gcc_cv_as != x; then
23222 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23228 test $ac_status = 0; }; }
23229 then
23230 gcc_cv_as_comdat_group_percent=yes
23231 else
23232 echo "configure: failed program was" >&5
23233 cat conftest.s >&5
23235 rm -f conftest.o conftest.s
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23239 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23241 if test $gcc_cv_as_comdat_group_percent = yes; then
23242 gcc_cv_as_comdat_group_group=no
23243 else
23244 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23245 gcc_cv_as_comdat_group_group=no
23247 case "${target}" in
23248 # Sun as uses a completely different syntax.
23249 *-*-solaris2*)
23250 case "${target}" in
23251 sparc*-*-solaris2*)
23252 conftest_s='
23253 .group foo,".text%foo",#comdat
23254 .section ".text%foo", #alloc,#execinstr,#progbits
23255 .globl foo
23256 foo:
23259 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
23260 conftest_s='
23261 .group foo,.text%foo,#comdat
23262 .section .text%foo, "ax", @progbits
23263 .globl foo
23264 foo:
23267 esac
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23269 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23270 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23272 else
23273 gcc_cv_as_comdat_group_group=no
23274 if test x$gcc_cv_as != x; then
23275 $as_echo "$conftest_s" > conftest.s
23276 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23278 (eval $ac_try) 2>&5
23279 ac_status=$?
23280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23281 test $ac_status = 0; }; }
23282 then
23283 gcc_cv_as_comdat_group_group=yes
23284 else
23285 echo "configure: failed program was" >&5
23286 cat conftest.s >&5
23288 rm -f conftest.o conftest.s
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23292 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23295 esac
23298 if test x"$ld_is_gold" = xyes; then
23299 comdat_group=yes
23300 elif test $in_tree_ld = yes ; then
23301 comdat_group=no
23302 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 \
23303 && test $in_tree_ld_is_elf = yes; then
23304 comdat_group=yes
23306 elif echo "$ld_ver" | grep GNU > /dev/null; then
23307 comdat_group=yes
23308 if test 0"$ld_date" -lt 20050308; then
23309 if test -n "$ld_date"; then
23310 # If there was date string, but was earlier than 2005-03-08, fail
23311 comdat_group=no
23312 elif test "$ld_vers_major" -lt 2; then
23313 comdat_group=no
23314 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23315 comdat_group=no
23318 else
23319 case "${target}" in
23320 *-*-solaris2.1[1-9]*)
23321 comdat_group=no
23322 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23323 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23324 # version 1.688.
23326 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23327 # least ld version 1.2267.
23328 if test "$ld_vers_major" -gt 1; then
23329 comdat_group=yes
23330 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23331 comdat_group=yes
23332 elif test "$ld_vers_minor" -ge 2267; then
23333 comdat_group=yes
23337 # Assume linkers other than GNU ld don't support COMDAT group.
23338 comdat_group=no
23340 esac
23342 # Allow overriding the automatic COMDAT group tests above.
23343 # Check whether --enable-comdat was given.
23344 if test "${enable_comdat+set}" = set; then :
23345 enableval=$enable_comdat; comdat_group="$enable_comdat"
23348 if test $comdat_group = no; then
23349 gcc_cv_as_comdat_group=no
23350 gcc_cv_as_comdat_group_percent=no
23351 gcc_cv_as_comdat_group_group=no
23354 cat >>confdefs.h <<_ACEOF
23355 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23356 || test $gcc_cv_as_comdat_group_percent = yes \
23357 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23358 _ACEOF
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23362 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23363 if test "${gcc_cv_as_discriminator+set}" = set; then :
23364 $as_echo_n "(cached) " >&6
23365 else
23366 gcc_cv_as_discriminator=no
23367 if test $in_tree_gas = yes; then
23368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23369 then gcc_cv_as_discriminator=yes
23371 elif test x$gcc_cv_as != x; then
23372 $as_echo ' .text
23373 .file 1 "conf.c"
23374 .loc 1 1 0 discriminator 1' > conftest.s
23375 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23377 (eval $ac_try) 2>&5
23378 ac_status=$?
23379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380 test $ac_status = 0; }; }
23381 then
23382 gcc_cv_as_discriminator=yes
23383 else
23384 echo "configure: failed program was" >&5
23385 cat conftest.s >&5
23387 rm -f conftest.o conftest.s
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23391 $as_echo "$gcc_cv_as_discriminator" >&6; }
23392 if test $gcc_cv_as_discriminator = yes; then
23394 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23398 # Thread-local storage - the check is heavily parameterized.
23399 conftest_s=
23400 tls_first_major=
23401 tls_first_minor=
23402 tls_as_opt=
23403 case "$target" in
23404 alpha*-*-*)
23405 conftest_s='
23406 .section ".tdata","awT",@progbits
23407 foo: .long 25
23408 .text
23409 ldq $27,__tls_get_addr($29) !literal!1
23410 lda $16,foo($29) !tlsgd!1
23411 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23412 ldq $27,__tls_get_addr($29) !literal!2
23413 lda $16,foo($29) !tlsldm!2
23414 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23415 ldq $1,foo($29) !gotdtprel
23416 ldah $2,foo($29) !dtprelhi
23417 lda $3,foo($2) !dtprello
23418 lda $4,foo($29) !dtprel
23419 ldq $1,foo($29) !gottprel
23420 ldah $2,foo($29) !tprelhi
23421 lda $3,foo($2) !tprello
23422 lda $4,foo($29) !tprel'
23423 tls_first_major=2
23424 tls_first_minor=13
23425 tls_as_opt=--fatal-warnings
23427 cris-*-*|crisv32-*-*)
23428 conftest_s='
23429 .section ".tdata","awT",@progbits
23430 x: .long 25
23431 .text
23432 move.d x:IE,$r10
23433 nop'
23434 tls_first_major=2
23435 tls_first_minor=20
23436 tls_as_opt=--fatal-warnings
23438 frv*-*-*)
23439 conftest_s='
23440 .section ".tdata","awT",@progbits
23441 x: .long 25
23442 .text
23443 call #gettlsoff(x)'
23444 tls_first_major=2
23445 tls_first_minor=14
23447 hppa*-*-linux*)
23448 conftest_s='
23449 t1: .reg %r20
23450 t2: .reg %r21
23451 gp: .reg %r19
23452 .section ".tdata","awT",@progbits
23453 foo: .long 25
23454 .text
23455 .align 4
23456 addil LT%foo-$tls_gdidx$,gp
23457 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23458 b __tls_get_addr
23460 addil LT%foo-$tls_ldidx$,gp
23461 b __tls_get_addr
23462 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23463 addil LR%foo-$tls_dtpoff$,%ret0
23464 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23465 mfctl %cr27,%t1
23466 addil LT%foo-$tls_ieoff$,gp
23467 ldw RT%foo-$tls_ieoff$(%r1),%t2
23468 add %t1,%t2,%t3
23469 mfctl %cr27,%t1
23470 addil LR%foo-$tls_leoff$,%t1
23471 ldo RR%foo-$tls_leoff$(%r1),%t2'
23472 tls_first_major=2
23473 tls_first_minor=15
23474 tls_as_opt=--fatal-warnings
23476 arm*-*-*)
23477 conftest_s='
23478 .section ".tdata","awT",%progbits
23479 foo: .long 25
23480 .text
23481 .word foo(gottpoff)
23482 .word foo(tpoff)
23483 .word foo(tlsgd)
23484 .word foo(tlsldm)
23485 .word foo(tlsldo)'
23486 tls_first_major=2
23487 tls_first_minor=17
23489 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23490 case "$target" in
23491 i[34567]86-*-solaris2.*)
23492 on_solaris=yes
23493 tga_func=___tls_get_addr
23495 x86_64-*-solaris2.1[0-9]*)
23496 on_solaris=yes
23497 tga_func=__tls_get_addr
23500 on_solaris=no
23502 esac
23503 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23504 conftest_s='
23505 .section .tdata,"awt",@progbits'
23506 tls_first_major=0
23507 tls_first_minor=0
23508 tls_section_flag=t
23510 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23512 else
23513 conftest_s='
23514 .section ".tdata","awT",@progbits'
23515 tls_first_major=2
23516 tls_first_minor=14
23517 tls_section_flag=T
23518 tls_as_opt="--fatal-warnings"
23520 conftest_s="$conftest_s
23521 foo: .long 25
23522 .text
23523 movl %gs:0, %eax
23524 leal foo@tlsgd(,%ebx,1), %eax
23525 leal foo@tlsldm(%ebx), %eax
23526 leal foo@dtpoff(%eax), %edx
23527 movl foo@gottpoff(%ebx), %eax
23528 subl foo@gottpoff(%ebx), %eax
23529 addl foo@gotntpoff(%ebx), %eax
23530 movl foo@indntpoff, %eax
23531 movl \$foo@tpoff, %eax
23532 subl \$foo@tpoff, %eax
23533 leal foo@ntpoff(%ecx), %eax"
23535 x86_64-*-*)
23536 conftest_s='
23537 .section ".tdata","awT",@progbits
23538 foo: .long 25
23539 .text
23540 movq %fs:0, %rax
23541 leaq foo@TLSGD(%rip), %rdi
23542 leaq foo@TLSLD(%rip), %rdi
23543 leaq foo@DTPOFF(%rax), %rdx
23544 movq foo@GOTTPOFF(%rip), %rax
23545 movq $foo@TPOFF, %rax'
23546 tls_first_major=2
23547 tls_first_minor=14
23548 tls_section_flag=T
23549 tls_as_opt=--fatal-warnings
23551 ia64-*-*)
23552 conftest_s='
23553 .section ".tdata","awT",@progbits
23554 foo: data8 25
23555 .text
23556 addl r16 = @ltoff(@dtpmod(foo#)), gp
23557 addl r17 = @ltoff(@dtprel(foo#)), gp
23558 addl r18 = @ltoff(@tprel(foo#)), gp
23559 addl r19 = @dtprel(foo#), gp
23560 adds r21 = @dtprel(foo#), r13
23561 movl r23 = @dtprel(foo#)
23562 addl r20 = @tprel(foo#), gp
23563 adds r22 = @tprel(foo#), r13
23564 movl r24 = @tprel(foo#)'
23565 tls_first_major=2
23566 tls_first_minor=13
23567 tls_as_opt=--fatal-warnings
23569 microblaze*-*-*)
23570 conftest_s='
23571 .section .tdata,"awT",@progbits
23573 .word 2
23574 .text
23575 addik r5,r20,x@TLSGD
23576 addik r5,r20,x@TLSLDM'
23577 tls_first_major=2
23578 tls_first_minor=20
23579 tls_as_opt='--fatal-warnings'
23581 mips*-*-*)
23582 conftest_s='
23583 .section .tdata,"awT",@progbits
23585 .word 2
23586 .text
23587 addiu $4, $28, %tlsgd(x)
23588 addiu $4, $28, %tlsldm(x)
23589 lui $4, %dtprel_hi(x)
23590 addiu $4, $4, %dtprel_lo(x)
23591 lw $4, %gottprel(x)($28)
23592 lui $4, %tprel_hi(x)
23593 addiu $4, $4, %tprel_lo(x)'
23594 tls_first_major=2
23595 tls_first_minor=16
23596 tls_as_opt='-32 --fatal-warnings'
23598 m68k-*-*)
23599 conftest_s='
23600 .section .tdata,"awT",@progbits
23602 .word 2
23603 .text
23604 foo:
23605 move.l x@TLSGD(%a5),%a0
23606 move.l x@TLSLDM(%a5),%a0
23607 move.l x@TLSLDO(%a5),%a0
23608 move.l x@TLSIE(%a5),%a0
23609 move.l x@TLSLE(%a5),%a0'
23610 tls_first_major=2
23611 tls_first_minor=19
23612 tls_as_opt='--fatal-warnings'
23614 nios2-*-*)
23615 conftest_s='
23616 .section ".tdata","awT",@progbits'
23617 tls_first_major=2
23618 tls_first_minor=23
23619 tls_as_opt="--fatal-warnings"
23621 aarch64*-*-*)
23622 conftest_s='
23623 .section ".tdata","awT",%progbits
23624 foo: .long 25
23625 .text
23626 adrp x0, :tlsgd:x
23627 add x0, x0, #:tlsgd_lo12:x
23628 bl __tls_get_addr
23629 nop'
23630 tls_first_major=2
23631 tls_first_minor=20
23632 tls_as_opt='--fatal-warnings'
23634 powerpc-ibm-aix*)
23635 conftest_s='
23636 .extern __get_tpointer
23637 .toc
23638 LC..1:
23639 .tc a[TC],a[TL]@le
23640 .csect .text[PR]
23641 .tlstest:
23642 lwz 9,LC..1(2)
23643 bla __get_tpointer
23644 lwzx 3,9,3
23645 .globl a
23646 .csect a[TL],4
23648 .space 4'
23649 tls_first_major=0
23650 tls_first_minor=0
23652 powerpc64*-*-*)
23653 conftest_s='
23654 .section ".tdata","awT",@progbits
23655 .align 3
23656 ld0: .space 8
23657 ld1: .space 8
23658 x1: .space 8
23659 x2: .space 8
23660 x3: .space 8
23661 .text
23662 addi 3,2,ld0@got@tlsgd
23663 bl .__tls_get_addr
23665 addi 3,2,ld1@toc
23666 bl .__tls_get_addr
23668 addi 3,2,x1@got@tlsld
23669 bl .__tls_get_addr
23671 addi 9,3,x1@dtprel
23672 bl .__tls_get_addr
23674 addis 9,3,x2@dtprel@ha
23675 addi 9,9,x2@dtprel@l
23676 bl .__tls_get_addr
23678 ld 9,x3@got@dtprel(2)
23679 add 9,9,3
23680 bl .__tls_get_addr
23681 nop'
23682 tls_first_major=2
23683 tls_first_minor=14
23684 tls_as_opt="-a64 --fatal-warnings"
23686 powerpc*-*-*)
23687 conftest_s='
23688 .section ".tdata","awT",@progbits
23689 .align 2
23690 ld0: .space 4
23691 ld1: .space 4
23692 x1: .space 4
23693 x2: .space 4
23694 x3: .space 4
23695 .text
23696 addi 3,31,ld0@got@tlsgd
23697 bl __tls_get_addr
23698 addi 3,31,x1@got@tlsld
23699 bl __tls_get_addr
23700 addi 9,3,x1@dtprel
23701 addis 9,3,x2@dtprel@ha
23702 addi 9,9,x2@dtprel@l
23703 lwz 9,x3@got@tprel(31)
23704 add 9,9,x@tls
23705 addi 9,2,x1@tprel
23706 addis 9,2,x2@tprel@ha
23707 addi 9,9,x2@tprel@l'
23708 tls_first_major=2
23709 tls_first_minor=14
23710 tls_as_opt="-a32 --fatal-warnings"
23712 s390-*-*)
23713 conftest_s='
23714 .section ".tdata","awT",@progbits
23715 foo: .long 25
23716 .text
23717 .long foo@TLSGD
23718 .long foo@TLSLDM
23719 .long foo@DTPOFF
23720 .long foo@NTPOFF
23721 .long foo@GOTNTPOFF
23722 .long foo@INDNTPOFF
23723 l %r1,foo@GOTNTPOFF(%r12)
23724 l %r1,0(%r1):tls_load:foo
23725 bas %r14,0(%r1,%r13):tls_gdcall:foo
23726 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23727 tls_first_major=2
23728 tls_first_minor=14
23729 tls_as_opt="-m31 --fatal-warnings"
23731 s390x-*-*)
23732 conftest_s='
23733 .section ".tdata","awT",@progbits
23734 foo: .long 25
23735 .text
23736 .quad foo@TLSGD
23737 .quad foo@TLSLDM
23738 .quad foo@DTPOFF
23739 .quad foo@NTPOFF
23740 .quad foo@GOTNTPOFF
23741 lg %r1,foo@GOTNTPOFF(%r12)
23742 larl %r1,foo@INDNTPOFF
23743 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23744 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23745 tls_first_major=2
23746 tls_first_minor=14
23747 tls_as_opt="-m64 -Aesame --fatal-warnings"
23749 sh-*-* | sh[34]-*-*)
23750 conftest_s='
23751 .section ".tdata","awT",@progbits
23752 foo: .long 25
23753 .text
23754 .long foo@TLSGD
23755 .long foo@TLSLDM
23756 .long foo@DTPOFF
23757 .long foo@GOTTPOFF
23758 .long foo@TPOFF'
23759 tls_first_major=2
23760 tls_first_minor=13
23761 tls_as_opt=--fatal-warnings
23763 sparc*-*-*)
23764 case "$target" in
23765 sparc*-sun-solaris2.*)
23766 on_solaris=yes
23767 tga_func=__tls_get_addr
23770 on_solaris=no
23772 esac
23773 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23774 conftest_s='
23775 .section ".tdata",#alloc,#write,#tls'
23776 tls_first_major=0
23777 tls_first_minor=0
23778 else
23779 conftest_s='
23780 .section ".tdata","awT",@progbits'
23781 tls_first_major=2
23782 tls_first_minor=14
23783 tls_as_opt="-32 --fatal-warnings"
23785 conftest_s="$conftest_s
23786 foo: .long 25
23787 .text
23788 sethi %tgd_hi22(foo), %o0
23789 add %o0, %tgd_lo10(foo), %o1
23790 add %l7, %o1, %o0, %tgd_add(foo)
23791 call __tls_get_addr, %tgd_call(foo)
23792 sethi %tldm_hi22(foo), %l1
23793 add %l1, %tldm_lo10(foo), %l2
23794 add %l7, %l2, %o0, %tldm_add(foo)
23795 call __tls_get_addr, %tldm_call(foo)
23796 sethi %tldo_hix22(foo), %l3
23797 xor %l3, %tldo_lox10(foo), %l4
23798 add %o0, %l4, %l5, %tldo_add(foo)
23799 sethi %tie_hi22(foo), %o3
23800 add %o3, %tie_lo10(foo), %o3
23801 ld [%l7 + %o3], %o2, %tie_ld(foo)
23802 add %g7, %o2, %o4, %tie_add(foo)
23803 sethi %tle_hix22(foo), %l1
23804 xor %l1, %tle_lox10(foo), %o5
23805 ld [%g7 + %o5], %o1"
23807 tilepro*-*-*)
23808 conftest_s='
23809 .section ".tdata","awT",@progbits
23810 foo: .long 25
23811 .text
23812 addli r0, zero, tls_gd(foo)
23813 auli r0, zero, tls_gd_ha16(foo)
23814 addli r0, r0, tls_gd_lo16(foo)
23815 jal __tls_get_addr
23816 addli r0, zero, tls_ie(foo)
23817 auli r0, r0, tls_ie_ha16(foo)
23818 addli r0, r0, tls_ie_lo16(foo)'
23819 tls_first_major=2
23820 tls_first_minor=22
23821 tls_as_opt="--fatal-warnings"
23823 tilegx*-*-*)
23824 conftest_s='
23825 .section ".tdata","awT",@progbits
23826 foo: .long 25
23827 .text
23828 shl16insli r0, zero, hw0_last_tls_gd(foo)
23829 shl16insli r0, zero, hw1_last_tls_gd(foo)
23830 shl16insli r0, r0, hw0_tls_gd(foo)
23831 jal __tls_get_addr
23832 shl16insli r0, zero, hw1_last_tls_ie(foo)
23833 shl16insli r0, r0, hw0_tls_ie(foo)'
23834 tls_first_major=2
23835 tls_first_minor=22
23836 tls_as_opt="--fatal-warnings"
23838 xtensa*-*-*)
23839 conftest_s='
23840 .section ".tdata","awT",@progbits
23841 foo: .long 25
23842 .text
23843 movi a8, foo@TLSFUNC
23844 movi a10, foo@TLSARG
23845 callx8.tls a8, foo@TLSCALL'
23846 tls_first_major=2
23847 tls_first_minor=19
23849 esac
23850 set_have_as_tls=no
23851 if test "x$enable_tls" = xno ; then
23852 : # TLS explicitly disabled.
23853 elif test "x$enable_tls" = xyes ; then
23854 set_have_as_tls=yes # TLS explicitly enabled.
23855 elif test -z "$tls_first_major"; then
23856 : # If we don't have a check, assume no support.
23857 else
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23859 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23860 if test "${gcc_cv_as_tls+set}" = set; then :
23861 $as_echo_n "(cached) " >&6
23862 else
23863 gcc_cv_as_tls=no
23864 if test $in_tree_gas = yes; then
23865 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23866 then gcc_cv_as_tls=yes
23868 elif test x$gcc_cv_as != x; then
23869 $as_echo "$conftest_s" > conftest.s
23870 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23872 (eval $ac_try) 2>&5
23873 ac_status=$?
23874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23875 test $ac_status = 0; }; }
23876 then
23877 gcc_cv_as_tls=yes
23878 else
23879 echo "configure: failed program was" >&5
23880 cat conftest.s >&5
23882 rm -f conftest.o conftest.s
23885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23886 $as_echo "$gcc_cv_as_tls" >&6; }
23887 if test $gcc_cv_as_tls = yes; then
23888 set_have_as_tls=yes
23891 case "$target" in
23892 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23893 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23894 # Sun style that Sun ld and GCC don't support any longer.
23895 *-*-solaris2.*)
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23897 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23898 ld_tls_support=no
23899 # Check ld and ld.so.1 TLS support.
23900 if echo "$ld_ver" | grep GNU > /dev/null; then
23901 # Assume all interesting versions of GNU ld have TLS support.
23902 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23903 ld_tls_support=yes
23904 else
23905 case "$target" in
23906 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23907 i?86-*-solaris2.9)
23908 min_tls_ld_vers_minor=374
23910 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23911 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23912 min_tls_ld_vers_minor=343
23914 esac
23915 if test "$ld_vers_major" -gt 1 || \
23916 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23917 ld_tls_support=yes
23918 else
23919 set_have_as_tls=no
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23923 $as_echo "$ld_tls_support" >&6; }
23925 save_LIBS="$LIBS"
23926 save_LDFLAGS="$LDFLAGS"
23927 LIBS=
23928 LDFLAGS=
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23931 $as_echo_n "checking library containing $tga_func... " >&6; }
23932 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23933 # (32-bit x86) only lived in libthread, so check for that. Keep
23934 # set_have_as_tls if found, disable if not.
23935 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23937 $as_echo_n "checking for library containing $tga_func... " >&6; }
23938 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23939 $as_echo_n "(cached) " >&6
23940 else
23941 ac_func_search_save_LIBS=$LIBS
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h. */
23945 /* Override any GCC internal prototype to avoid an error.
23946 Use char because int might match the return type of a GCC
23947 builtin and then its argument prototype would still apply. */
23948 #ifdef __cplusplus
23949 extern "C"
23950 #endif
23951 char $tga_func ();
23953 main ()
23955 return $tga_func ();
23957 return 0;
23959 _ACEOF
23960 for ac_lib in '' thread; do
23961 if test -z "$ac_lib"; then
23962 ac_res="none required"
23963 else
23964 ac_res=-l$ac_lib
23965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23967 if ac_fn_c_try_link "$LINENO"; then :
23968 eval "$as_ac_Search=\$ac_res"
23970 rm -f core conftest.err conftest.$ac_objext \
23971 conftest$ac_exeext
23972 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23973 break
23975 done
23976 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23978 else
23979 eval "$as_ac_Search=no"
23981 rm conftest.$ac_ext
23982 LIBS=$ac_func_search_save_LIBS
23984 eval ac_res=\$$as_ac_Search
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23986 $as_echo "$ac_res" >&6; }
23987 eval ac_res=\$$as_ac_Search
23988 if test "$ac_res" != no; then :
23989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23991 else
23992 set_have_as_tls=no
23995 ld_tls_libs="$LIBS"
23996 # Clear LIBS if we cannot support TLS.
23997 if test $set_have_as_tls = no; then
23998 LIBS=
24000 # Always define LIB_TLS_SPEC, even without TLS support.
24002 cat >>confdefs.h <<_ACEOF
24003 #define LIB_TLS_SPEC "$LIBS"
24004 _ACEOF
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
24007 $as_echo "$LIBS" >&6; }
24009 LIBS="$save_LIBS"
24010 LDFLAGS="$save_LDFLAGS"
24012 esac
24013 if test $set_have_as_tls = yes ; then
24015 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24019 # Target-specific assembler checks.
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24022 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24023 gcc_cv_ld_static_dynamic=no
24024 gcc_cv_ld_static_option='-Bstatic'
24025 gcc_cv_ld_dynamic_option='-Bdynamic'
24026 if test $in_tree_ld = yes ; then
24027 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
24028 gcc_cv_ld_static_dynamic=yes
24030 elif test x$gcc_cv_ld != x; then
24031 # Check if linker supports -Bstatic/-Bdynamic option
24032 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
24033 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
24034 gcc_cv_ld_static_dynamic=yes
24035 else
24036 case "$target" in
24037 # AIX ld uses -b flags
24038 *-*-aix4.[23]* | *-*-aix[5-9]*)
24039 gcc_cv_ld_static_dynamic=yes
24040 gcc_cv_ld_static_option="-bstatic"
24041 gcc_cv_ld_dynamic_option="-bdynamic"
24043 # HP-UX ld uses -a flags to select between shared and archive.
24044 *-*-hpux*)
24045 if test x"$gnu_ld" = xno; then
24046 gcc_cv_ld_static_dynamic=yes
24047 gcc_cv_ld_static_option="-aarchive_shared"
24048 gcc_cv_ld_dynamic_option="-adefault"
24051 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24052 *-*-solaris2*)
24053 gcc_cv_ld_static_dynamic=yes
24055 esac
24058 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
24060 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24063 cat >>confdefs.h <<_ACEOF
24064 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24065 _ACEOF
24068 cat >>confdefs.h <<_ACEOF
24069 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24070 _ACEOF
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24074 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24076 if test x"$demangler_in_ld" = xyes; then
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24078 $as_echo_n "checking linker --demangle support... " >&6; }
24079 gcc_cv_ld_demangle=no
24080 if test $in_tree_ld = yes; then
24081 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 \
24082 gcc_cv_ld_demangle=yes
24084 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
24085 # Check if the GNU linker supports --demangle option
24086 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
24087 gcc_cv_ld_demangle=yes
24090 if test x"$gcc_cv_ld_demangle" = xyes; then
24092 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24096 $as_echo "$gcc_cv_ld_demangle" >&6; }
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24100 $as_echo_n "checking linker plugin support... " >&6; }
24101 gcc_cv_lto_plugin=0
24102 if test -f liblto_plugin.la; then
24103 save_ld_ver="$ld_ver"
24104 save_ld_vers_major="$ld_vers_major"
24105 save_ld_vers_minor="$ld_vers_minor"
24106 save_ld_is_gold="$ld_is_gold"
24108 ld_is_gold=no
24110 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
24111 ld_ver="GNU ld"
24112 # FIXME: ld_is_gold?
24113 ld_vers_major="$gcc_cv_gld_major_version"
24114 ld_vers_minor="$gcc_cv_gld_minor_version"
24115 else
24116 # Determine plugin linker version.
24117 # FIXME: Partial duplicate from above, generalize.
24118 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24119 if echo "$ld_ver" | grep GNU > /dev/null; then
24120 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
24121 ld_is_gold=yes
24122 ld_vers=`echo $ld_ver | sed -n \
24123 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24124 else
24125 ld_vers=`echo $ld_ver | sed -n \
24126 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24128 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
24129 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24133 # Determine plugin support.
24134 if echo "$ld_ver" | grep GNU > /dev/null; then
24135 # Require GNU ld or gold 2.21+ for plugin support by default.
24136 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24137 gcc_cv_lto_plugin=2
24138 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24139 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24140 gcc_cv_lto_plugin=1
24144 ld_ver="$save_ld_ver"
24145 ld_vers_major="$save_ld_vers_major"
24146 ld_vers_minor="$save_ld_vers_minor"
24147 ld_is_gold="$save_ld_is_gold"
24150 cat >>confdefs.h <<_ACEOF
24151 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24152 _ACEOF
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24155 $as_echo "$gcc_cv_lto_plugin" >&6; }
24157 case "$target" in
24158 aarch64*-*-*)
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24160 $as_echo_n "checking assembler for -mabi option... " >&6; }
24161 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24162 $as_echo_n "(cached) " >&6
24163 else
24164 gcc_cv_as_aarch64_mabi=no
24165 if test x$gcc_cv_as != x; then
24166 $as_echo '.text' > conftest.s
24167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169 (eval $ac_try) 2>&5
24170 ac_status=$?
24171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172 test $ac_status = 0; }; }
24173 then
24174 gcc_cv_as_aarch64_mabi=yes
24175 else
24176 echo "configure: failed program was" >&5
24177 cat conftest.s >&5
24179 rm -f conftest.o conftest.s
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24183 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24185 if test x$gcc_cv_as_aarch64_mabi = xyes; then
24187 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24189 else
24190 if test x$with_abi = xilp32; then
24191 as_fn_error "Assembler does not support -mabi=ilp32.\
24192 Upgrade the Assembler." "$LINENO" 5
24194 if test x"$with_multilib_list" = xdefault; then
24195 TM_MULTILIB_CONFIG=lp64
24196 else
24197 aarch64_multilibs=`echo $with_multilib_list | sed -e 's/,/ /g'`
24198 for aarch64_multilib in ${aarch64_multilibs}; do
24199 case ${aarch64_multilib} in
24200 ilp32)
24201 as_fn_error "Assembler does not support -mabi=ilp32.\
24202 Upgrade the Assembler." "$LINENO" 5
24206 esac
24207 done
24212 # All TARGET_ABI_OSF targets.
24213 alpha*-*-linux* | alpha*-*-*bsd*)
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24215 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24216 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24217 $as_echo_n "(cached) " >&6
24218 else
24219 gcc_cv_as_alpha_explicit_relocs=no
24220 if test $in_tree_gas = yes; then
24221 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24222 then gcc_cv_as_alpha_explicit_relocs=yes
24224 elif test x$gcc_cv_as != x; then
24225 $as_echo ' .set nomacro
24226 .text
24227 extbl $3, $2, $3 !lituse_bytoff!1
24228 ldq $2, a($29) !literal!1
24229 ldq $4, b($29) !literal!2
24230 ldq_u $3, 0($2) !lituse_base!1
24231 ldq $27, f($29) !literal!5
24232 jsr $26, ($27), f !lituse_jsr!5
24233 ldah $29, 0($26) !gpdisp!3
24234 lda $0, c($29) !gprel
24235 ldah $1, d($29) !gprelhigh
24236 lda $1, d($1) !gprellow
24237 lda $29, 0($29) !gpdisp!3' > conftest.s
24238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24240 (eval $ac_try) 2>&5
24241 ac_status=$?
24242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24243 test $ac_status = 0; }; }
24244 then
24245 gcc_cv_as_alpha_explicit_relocs=yes
24246 else
24247 echo "configure: failed program was" >&5
24248 cat conftest.s >&5
24250 rm -f conftest.o conftest.s
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24254 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24255 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24257 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24261 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24262 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24263 $as_echo_n "(cached) " >&6
24264 else
24265 gcc_cv_as_alpha_jsrdirect_relocs=no
24266 if test $in_tree_gas = yes; then
24267 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24268 then gcc_cv_as_alpha_jsrdirect_relocs=yes
24270 elif test x$gcc_cv_as != x; then
24271 $as_echo ' .set nomacro
24272 .text
24273 ldq $27, a($29) !literal!1
24274 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24275 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24277 (eval $ac_try) 2>&5
24278 ac_status=$?
24279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24280 test $ac_status = 0; }; }
24281 then
24282 gcc_cv_as_alpha_jsrdirect_relocs=yes
24283 else
24284 echo "configure: failed program was" >&5
24285 cat conftest.s >&5
24287 rm -f conftest.o conftest.s
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24291 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24292 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24294 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24299 cris-*-*)
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24301 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24302 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24303 $as_echo_n "(cached) " >&6
24304 else
24305 gcc_cv_as_cris_no_mul_bug=no
24306 if test $in_tree_gas = yes; then
24307 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24308 then gcc_cv_as_cris_no_mul_bug=yes
24310 elif test x$gcc_cv_as != x; then
24311 $as_echo '.text' > conftest.s
24312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24314 (eval $ac_try) 2>&5
24315 ac_status=$?
24316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24317 test $ac_status = 0; }; }
24318 then
24319 gcc_cv_as_cris_no_mul_bug=yes
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_cris_no_mul_bug" >&5
24328 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24329 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24331 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24336 sparc*-*-*)
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24338 $as_echo_n "checking assembler for .register... " >&6; }
24339 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24341 else
24342 gcc_cv_as_sparc_register_op=no
24343 if test x$gcc_cv_as != x; then
24344 $as_echo '.register %g2, #scratch' > conftest.s
24345 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24347 (eval $ac_try) 2>&5
24348 ac_status=$?
24349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24350 test $ac_status = 0; }; }
24351 then
24352 gcc_cv_as_sparc_register_op=yes
24353 else
24354 echo "configure: failed program was" >&5
24355 cat conftest.s >&5
24357 rm -f conftest.o conftest.s
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24361 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24362 if test $gcc_cv_as_sparc_register_op = yes; then
24364 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24369 $as_echo_n "checking assembler for #nobits... " >&6; }
24370 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24371 $as_echo_n "(cached) " >&6
24372 else
24373 gcc_cv_as_sparc_nobits=no
24374 if test x$gcc_cv_as != x; then
24375 $as_echo '.section "nobits",#alloc,#write,#nobits
24376 .section "progbits",#alloc,#write,#progbits' > conftest.s
24377 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382 test $ac_status = 0; }; }
24383 then
24384 gcc_cv_as_sparc_nobits=yes
24385 else
24386 echo "configure: failed program was" >&5
24387 cat conftest.s >&5
24389 rm -f conftest.o conftest.s
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24393 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24396 cat >>confdefs.h <<_ACEOF
24397 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24398 _ACEOF
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24402 $as_echo_n "checking assembler for -relax option... " >&6; }
24403 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24404 $as_echo_n "(cached) " >&6
24405 else
24406 gcc_cv_as_sparc_relax=no
24407 if test x$gcc_cv_as != x; then
24408 $as_echo '.text' > conftest.s
24409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24411 (eval $ac_try) 2>&5
24412 ac_status=$?
24413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24414 test $ac_status = 0; }; }
24415 then
24416 gcc_cv_as_sparc_relax=yes
24417 else
24418 echo "configure: failed program was" >&5
24419 cat conftest.s >&5
24421 rm -f conftest.o conftest.s
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24425 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24426 if test $gcc_cv_as_sparc_relax = yes; then
24428 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24433 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24434 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 gcc_cv_as_sparc_gotdata_op=no
24438 if test x$gcc_cv_as != x; then
24439 $as_echo '.text
24440 .align 4
24441 foo:
24443 bar:
24444 sethi %gdop_hix22(foo), %g1
24445 xor %g1, %gdop_lox10(foo), %g1
24446 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24449 (eval $ac_try) 2>&5
24450 ac_status=$?
24451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24452 test $ac_status = 0; }; }
24453 then
24454 if test x$gcc_cv_ld != x \
24455 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24456 if test x$gcc_cv_objdump != x; then
24457 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24458 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24459 gcc_cv_as_sparc_gotdata_op=no
24460 else
24461 gcc_cv_as_sparc_gotdata_op=yes
24465 rm -f conftest
24466 else
24467 echo "configure: failed program was" >&5
24468 cat conftest.s >&5
24470 rm -f conftest.o conftest.s
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24474 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24475 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24477 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24482 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24483 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24484 $as_echo_n "(cached) " >&6
24485 else
24486 gcc_cv_as_sparc_ua_pcrel=no
24487 if test x$gcc_cv_as != x; then
24488 $as_echo '.text
24489 foo:
24491 .data
24492 .align 4
24493 .byte 0
24494 .uaword %r_disp32(foo)' > conftest.s
24495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24500 test $ac_status = 0; }; }
24501 then
24502 if test x$gcc_cv_ld != x \
24503 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24504 gcc_cv_as_sparc_ua_pcrel=yes
24506 rm -f conftest
24507 else
24508 echo "configure: failed program was" >&5
24509 cat conftest.s >&5
24511 rm -f conftest.o conftest.s
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24515 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24516 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24518 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24522 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24523 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24525 else
24526 gcc_cv_as_sparc_ua_pcrel_hidden=no
24527 if test x$gcc_cv_as != x; then
24528 $as_echo '.data
24529 .align 4
24530 .byte 0x31
24531 .uaword %r_disp32(foo)
24532 .byte 0x32, 0x33, 0x34
24533 .global foo
24534 .hidden foo
24535 foo:
24536 .skip 4' > conftest.s
24537 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24539 (eval $ac_try) 2>&5
24540 ac_status=$?
24541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24542 test $ac_status = 0; }; }
24543 then
24544 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24545 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24546 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24547 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24548 if $gcc_cv_objdump -R conftest 2> /dev/null \
24549 | grep 'DISP32' > /dev/null 2>&1; then
24551 else
24552 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24555 rm -f conftest
24556 else
24557 echo "configure: failed program was" >&5
24558 cat conftest.s >&5
24560 rm -f conftest.o conftest.s
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24564 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24565 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24567 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24571 fi # unaligned pcrel relocs
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24574 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24575 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24576 $as_echo_n "(cached) " >&6
24577 else
24578 gcc_cv_as_sparc_offsetable_lo10=no
24579 if test x$gcc_cv_as != x; then
24580 $as_echo '.text
24581 or %g1, %lo(ab) + 12, %g1
24582 or %g1, %lo(ab + 12), %g1' > conftest.s
24583 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24585 (eval $ac_try) 2>&5
24586 ac_status=$?
24587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24588 test $ac_status = 0; }; }
24589 then
24590 if test x$gcc_cv_objdump != x \
24591 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24592 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24593 gcc_cv_as_sparc_offsetable_lo10=yes
24595 else
24596 echo "configure: failed program was" >&5
24597 cat conftest.s >&5
24599 rm -f conftest.o conftest.s
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24603 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24604 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24606 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24611 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24612 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24613 $as_echo_n "(cached) " >&6
24614 else
24615 gcc_cv_as_sparc_fmaf=no
24616 if test x$gcc_cv_as != x; then
24617 $as_echo '.text
24618 .register %g2, #scratch
24619 .register %g3, #scratch
24620 .align 4
24621 fmaddd %f0, %f2, %f4, %f6
24622 addxccc %g1, %g2, %g3
24623 fsrl32 %f2, %f4, %f8
24624 fnaddd %f10, %f12, %f14' > conftest.s
24625 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24630 test $ac_status = 0; }; }
24631 then
24632 gcc_cv_as_sparc_fmaf=yes
24633 else
24634 echo "configure: failed program was" >&5
24635 cat conftest.s >&5
24637 rm -f conftest.o conftest.s
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24641 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24642 if test $gcc_cv_as_sparc_fmaf = yes; then
24644 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24649 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24650 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24651 $as_echo_n "(cached) " >&6
24652 else
24653 gcc_cv_as_sparc_sparc4=no
24654 if test x$gcc_cv_as != x; then
24655 $as_echo '.text
24656 .register %g2, #scratch
24657 .register %g3, #scratch
24658 .align 4
24659 cxbe %g2, %g3, 1f
24660 1: cwbneg %g2, %g3, 1f
24661 1: sha1
24663 aes_kexpand0 %f4, %f6, %f8
24664 des_round %f38, %f40, %f42, %f44
24665 camellia_f %f54, %f56, %f58, %f60
24666 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672 test $ac_status = 0; }; }
24673 then
24674 gcc_cv_as_sparc_sparc4=yes
24675 else
24676 echo "configure: failed program was" >&5
24677 cat conftest.s >&5
24679 rm -f conftest.o conftest.s
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24683 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24684 if test $gcc_cv_as_sparc_sparc4 = yes; then
24686 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24691 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24692 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24693 $as_echo_n "(cached) " >&6
24694 else
24695 gcc_cv_as_sparc_leon=no
24696 if test x$gcc_cv_as != x; then
24697 $as_echo '.text
24698 .register %g2, #scratch
24699 .register %g3, #scratch
24700 .align 4
24701 smac %g2, %g3, %g1
24702 umac %g2, %g3, %g1
24703 cas [%g2], %g3, %g1' > conftest.s
24704 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24706 (eval $ac_try) 2>&5
24707 ac_status=$?
24708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24709 test $ac_status = 0; }; }
24710 then
24711 gcc_cv_as_sparc_leon=yes
24712 else
24713 echo "configure: failed program was" >&5
24714 cat conftest.s >&5
24716 rm -f conftest.o conftest.s
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24720 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24721 if test $gcc_cv_as_sparc_leon = yes; then
24723 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24728 i[34567]86-*-* | x86_64-*-*)
24729 case $target_os in
24730 cygwin*)
24731 # Full C++ conformance when using a shared libstdc++-v3 requires some
24732 # support from the Cygwin DLL, which in more recent versions exports
24733 # wrappers to aid in interposing and redirecting operators new, delete,
24734 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24735 # are configuring for a version of Cygwin that exports the wrappers.
24736 if test x$host = x$target && test x$host_cpu = xi686; then
24737 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24738 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24739 gcc_ac_cygwin_dll_wrappers=yes
24740 else
24741 gcc_ac_cygwin_dll_wrappers=no
24744 else
24745 # Can't check presence of libc functions during cross-compile, so
24746 # we just have to assume we're building for an up-to-date target.
24747 gcc_ac_cygwin_dll_wrappers=yes
24750 cat >>confdefs.h <<_ACEOF
24751 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24752 _ACEOF
24754 esac
24755 case $target_os in
24756 cygwin* | pe | mingw32* | interix*)
24757 # Recent binutils allows the three-operand form of ".comm" on PE. This
24758 # definition is used unconditionally to initialise the default state of
24759 # the target option variable that governs usage of the feature.
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24761 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24762 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24763 $as_echo_n "(cached) " >&6
24764 else
24765 gcc_cv_as_comm_has_align=no
24766 if test $in_tree_gas = yes; then
24767 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24768 then gcc_cv_as_comm_has_align=yes
24770 elif test x$gcc_cv_as != x; then
24771 $as_echo '.comm foo,1,32' > conftest.s
24772 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24774 (eval $ac_try) 2>&5
24775 ac_status=$?
24776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24777 test $ac_status = 0; }; }
24778 then
24779 gcc_cv_as_comm_has_align=yes
24780 else
24781 echo "configure: failed program was" >&5
24782 cat conftest.s >&5
24784 rm -f conftest.o conftest.s
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24788 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24791 cat >>confdefs.h <<_ACEOF
24792 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24793 _ACEOF
24795 # Used for DWARF 2 in PE
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24797 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24798 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24799 $as_echo_n "(cached) " >&6
24800 else
24801 gcc_cv_as_ix86_pe_secrel32=no
24802 if test $in_tree_gas = yes; then
24803 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24804 then gcc_cv_as_ix86_pe_secrel32=yes
24806 elif test x$gcc_cv_as != x; then
24807 $as_echo '.text
24808 foo: nop
24809 .data
24810 .secrel32 foo' > conftest.s
24811 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24813 (eval $ac_try) 2>&5
24814 ac_status=$?
24815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24816 test $ac_status = 0; }; }
24817 then
24818 if test x$gcc_cv_ld != x \
24819 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24820 gcc_cv_as_ix86_pe_secrel32=yes
24822 rm -f conftest
24823 else
24824 echo "configure: failed program was" >&5
24825 cat conftest.s >&5
24827 rm -f conftest.o conftest.s
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24831 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24832 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24834 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24837 # Test if the assembler supports the extended form of the .section
24838 # directive that specifies section alignment. LTO support uses this,
24839 # but normally only after installation, so we warn but don't fail the
24840 # configure if LTO is enabled but the assembler does not support it.
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24842 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24843 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24844 $as_echo_n "(cached) " >&6
24845 else
24846 gcc_cv_as_section_has_align=no
24847 if test $in_tree_gas = yes; then
24848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24849 then gcc_cv_as_section_has_align=yes
24851 elif test x$gcc_cv_as != x; then
24852 $as_echo '.section lto_test,"dr0"' > conftest.s
24853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24858 test $ac_status = 0; }; }
24859 then
24860 gcc_cv_as_section_has_align=yes
24861 else
24862 echo "configure: failed program was" >&5
24863 cat conftest.s >&5
24865 rm -f conftest.o conftest.s
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24869 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24871 if test x$gcc_cv_as_section_has_align != xyes; then
24872 case ",$enable_languages," in
24873 *,lto,*)
24874 { $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
24875 $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;}
24877 esac
24879 # Test if the assembler supports the section flag 'e' for specifying
24880 # an excluded section.
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24882 $as_echo_n "checking assembler for .section with e... " >&6; }
24883 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24884 $as_echo_n "(cached) " >&6
24885 else
24886 gcc_cv_as_section_has_e=no
24887 if test $in_tree_gas = yes; then
24888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24889 then gcc_cv_as_section_has_e=yes
24891 elif test x$gcc_cv_as != x; then
24892 $as_echo '.section foo1,"e"
24893 .byte 0,0,0,0' > conftest.s
24894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24896 (eval $ac_try) 2>&5
24897 ac_status=$?
24898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24899 test $ac_status = 0; }; }
24900 then
24901 gcc_cv_as_section_has_e=yes
24902 else
24903 echo "configure: failed program was" >&5
24904 cat conftest.s >&5
24906 rm -f conftest.o conftest.s
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24910 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24913 cat >>confdefs.h <<_ACEOF
24914 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24915 _ACEOF
24918 esac
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24921 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24922 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24923 $as_echo_n "(cached) " >&6
24924 else
24925 gcc_cv_as_ix86_filds=no
24926 if test x$gcc_cv_as != x; then
24927 $as_echo 'filds mem; fists mem' > conftest.s
24928 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24933 test $ac_status = 0; }; }
24934 then
24935 gcc_cv_as_ix86_filds=yes
24936 else
24937 echo "configure: failed program was" >&5
24938 cat conftest.s >&5
24940 rm -f conftest.o conftest.s
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24944 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24945 if test $gcc_cv_as_ix86_filds = yes; then
24947 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24952 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24953 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24954 $as_echo_n "(cached) " >&6
24955 else
24956 gcc_cv_as_ix86_fildq=no
24957 if test x$gcc_cv_as != x; then
24958 $as_echo 'fildq mem; fistpq mem' > conftest.s
24959 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24961 (eval $ac_try) 2>&5
24962 ac_status=$?
24963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24964 test $ac_status = 0; }; }
24965 then
24966 gcc_cv_as_ix86_fildq=yes
24967 else
24968 echo "configure: failed program was" >&5
24969 cat conftest.s >&5
24971 rm -f conftest.o conftest.s
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24975 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24976 if test $gcc_cv_as_ix86_fildq = yes; then
24978 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24983 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24984 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24985 $as_echo_n "(cached) " >&6
24986 else
24987 gcc_cv_as_ix86_cmov_sun_syntax=no
24988 if test x$gcc_cv_as != x; then
24989 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24992 (eval $ac_try) 2>&5
24993 ac_status=$?
24994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24995 test $ac_status = 0; }; }
24996 then
24997 gcc_cv_as_ix86_cmov_sun_syntax=yes
24998 else
24999 echo "configure: failed program was" >&5
25000 cat conftest.s >&5
25002 rm -f conftest.o conftest.s
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25006 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25007 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25009 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25014 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25015 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25016 $as_echo_n "(cached) " >&6
25017 else
25018 gcc_cv_as_ix86_ffreep=no
25019 if test x$gcc_cv_as != x; then
25020 $as_echo 'ffreep %st(1)' > conftest.s
25021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25023 (eval $ac_try) 2>&5
25024 ac_status=$?
25025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25026 test $ac_status = 0; }; }
25027 then
25028 gcc_cv_as_ix86_ffreep=yes
25029 else
25030 echo "configure: failed program was" >&5
25031 cat conftest.s >&5
25033 rm -f conftest.o conftest.s
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25037 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25038 if test $gcc_cv_as_ix86_ffreep = yes; then
25040 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25045 $as_echo_n "checking assembler for .quad directive... " >&6; }
25046 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25048 else
25049 gcc_cv_as_ix86_quad=no
25050 if test x$gcc_cv_as != x; then
25051 $as_echo '.quad 0' > conftest.s
25052 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25054 (eval $ac_try) 2>&5
25055 ac_status=$?
25056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25057 test $ac_status = 0; }; }
25058 then
25059 gcc_cv_as_ix86_quad=yes
25060 else
25061 echo "configure: failed program was" >&5
25062 cat conftest.s >&5
25064 rm -f conftest.o conftest.s
25067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25068 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25069 if test $gcc_cv_as_ix86_quad = yes; then
25071 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25076 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25077 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25078 $as_echo_n "(cached) " >&6
25079 else
25080 gcc_cv_as_ix86_sahf=no
25081 if test x$gcc_cv_as != x; then
25082 $as_echo '.code64
25083 sahf' > conftest.s
25084 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25086 (eval $ac_try) 2>&5
25087 ac_status=$?
25088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25089 test $ac_status = 0; }; }
25090 then
25091 gcc_cv_as_ix86_sahf=yes
25092 else
25093 echo "configure: failed program was" >&5
25094 cat conftest.s >&5
25096 rm -f conftest.o conftest.s
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25100 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25101 if test $gcc_cv_as_ix86_sahf = yes; then
25103 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25108 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25109 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25110 $as_echo_n "(cached) " >&6
25111 else
25112 gcc_cv_as_ix86_interunit_movq=no
25113 if test x$gcc_cv_as != x; then
25114 $as_echo '.code64
25115 movq %mm0, %rax
25116 movq %rax, %xmm0' > conftest.s
25117 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_interunit_movq=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_interunit_movq" >&5
25133 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25136 cat >>confdefs.h <<_ACEOF
25137 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25138 _ACEOF
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25142 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25143 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25144 $as_echo_n "(cached) " >&6
25145 else
25146 gcc_cv_as_ix86_hle=no
25147 if test x$gcc_cv_as != x; then
25148 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25149 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25151 (eval $ac_try) 2>&5
25152 ac_status=$?
25153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25154 test $ac_status = 0; }; }
25155 then
25156 gcc_cv_as_ix86_hle=yes
25157 else
25158 echo "configure: failed program was" >&5
25159 cat conftest.s >&5
25161 rm -f conftest.o conftest.s
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25165 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25166 if test $gcc_cv_as_ix86_hle = yes; then
25168 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25173 $as_echo_n "checking assembler for swap suffix... " >&6; }
25174 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25175 $as_echo_n "(cached) " >&6
25176 else
25177 gcc_cv_as_ix86_swap=no
25178 if test x$gcc_cv_as != x; then
25179 $as_echo 'movl.s %esp, %ebp' > conftest.s
25180 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25182 (eval $ac_try) 2>&5
25183 ac_status=$?
25184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25185 test $ac_status = 0; }; }
25186 then
25187 gcc_cv_as_ix86_swap=yes
25188 else
25189 echo "configure: failed program was" >&5
25190 cat conftest.s >&5
25192 rm -f conftest.o conftest.s
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25196 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25197 if test $gcc_cv_as_ix86_swap = yes; then
25199 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25204 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25205 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25206 $as_echo_n "(cached) " >&6
25207 else
25208 gcc_cv_as_ix86_diff_sect_delta=no
25209 if test x$gcc_cv_as != x; then
25210 $as_echo '.section .rodata
25211 .L1:
25212 .long .L2-.L1
25213 .long .L3-.L1
25214 .text
25215 .L3: nop
25216 .L2: nop' > 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 gcc_cv_as_ix86_diff_sect_delta=yes
25225 else
25226 echo "configure: failed program was" >&5
25227 cat conftest.s >&5
25229 rm -f conftest.o conftest.s
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25233 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25234 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25236 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25240 # These two are used unconditionally by i386.[ch]; it is to be defined
25241 # to 1 if the feature is present, 0 otherwise.
25242 as_ix86_gotoff_in_data_opt=
25243 if test x$gas = xyes; then
25244 as_ix86_gotoff_in_data_opt="--32"
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25247 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25248 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25249 $as_echo_n "(cached) " >&6
25250 else
25251 gcc_cv_as_ix86_gotoff_in_data=no
25252 if test $in_tree_gas = yes; then
25253 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25254 then gcc_cv_as_ix86_gotoff_in_data=yes
25256 elif test x$gcc_cv_as != x; then
25257 $as_echo ' .text
25258 .L0:
25260 .data
25261 .long .L0@GOTOFF' > conftest.s
25262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25264 (eval $ac_try) 2>&5
25265 ac_status=$?
25266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25267 test $ac_status = 0; }; }
25268 then
25269 gcc_cv_as_ix86_gotoff_in_data=yes
25270 else
25271 echo "configure: failed program was" >&5
25272 cat conftest.s >&5
25274 rm -f conftest.o conftest.s
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25278 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25281 cat >>confdefs.h <<_ACEOF
25282 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25283 _ACEOF
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25287 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25288 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25290 else
25291 gcc_cv_as_ix86_rep_lock_prefix=no
25292 if test x$gcc_cv_as != x; then
25293 $as_echo 'rep movsl
25294 rep ret
25295 rep nop
25296 rep bsf %ecx, %eax
25297 rep bsr %ecx, %eax
25298 lock addl %edi, (%eax,%esi)
25299 lock orl $0, (%esp)' > conftest.s
25300 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25305 test $ac_status = 0; }; }
25306 then
25307 gcc_cv_as_ix86_rep_lock_prefix=yes
25308 else
25309 echo "configure: failed program was" >&5
25310 cat conftest.s >&5
25312 rm -f conftest.o conftest.s
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25316 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25317 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25319 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25324 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25325 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25326 $as_echo_n "(cached) " >&6
25327 else
25328 gcc_cv_as_ix86_ud2=no
25329 if test x$gcc_cv_as != x; then
25330 $as_echo 'ud2' > conftest.s
25331 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336 test $ac_status = 0; }; }
25337 then
25338 gcc_cv_as_ix86_ud2=yes
25339 else
25340 echo "configure: failed program was" >&5
25341 cat conftest.s >&5
25343 rm -f conftest.o conftest.s
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25347 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25348 if test $gcc_cv_as_ix86_ud2 = yes; then
25350 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25355 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25356 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25357 $as_echo_n "(cached) " >&6
25358 else
25359 gcc_cv_as_ix86_tlsgdplt=no
25360 if test x$gcc_cv_as != x; then
25361 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25364 (eval $ac_try) 2>&5
25365 ac_status=$?
25366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25367 test $ac_status = 0; }; }
25368 then
25369 if test x$gcc_cv_ld != x \
25370 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25371 gcc_cv_as_ix86_tlsgdplt=yes
25373 rm -f conftest
25374 else
25375 echo "configure: failed program was" >&5
25376 cat conftest.s >&5
25378 rm -f conftest.o conftest.s
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25382 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25383 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25385 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25389 conftest_s='
25390 .section .tdata,"aw'$tls_section_flag'",@progbits
25391 tls_ld:
25392 .section .text,"ax",@progbits
25393 call tls_ld@tlsldmplt'
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25395 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25396 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25397 $as_echo_n "(cached) " >&6
25398 else
25399 gcc_cv_as_ix86_tlsldmplt=no
25400 if test x$gcc_cv_as != x; then
25401 $as_echo "$conftest_s" > conftest.s
25402 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25404 (eval $ac_try) 2>&5
25405 ac_status=$?
25406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25407 test $ac_status = 0; }; }
25408 then
25409 if test x$gcc_cv_ld != x \
25410 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25411 gcc_cv_as_ix86_tlsldmplt=yes
25413 rm -f conftest
25414 else
25415 echo "configure: failed program was" >&5
25416 cat conftest.s >&5
25418 rm -f conftest.o conftest.s
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25422 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25425 cat >>confdefs.h <<_ACEOF
25426 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25427 _ACEOF
25430 # Enforce 32-bit output with gas and gld.
25431 if test x$gas = xyes; then
25432 as_ix86_tls_ldm_opt="--32"
25434 if echo "$ld_ver" | grep GNU > /dev/null; then
25435 if $gcc_cv_ld -V 2>/dev/null | grep elf_i386_sol2 > /dev/null; then
25436 ld_ix86_tls_ldm_opt="-melf_i386_sol2"
25437 else
25438 ld_ix86_tls_ldm_opt="-melf_i386"
25441 conftest_s='
25442 .section .text,"ax",@progbits
25443 .globl _start
25444 .type _start, @function
25445 _start:
25446 leal value@tlsldm(%ebx), %eax
25447 call ___tls_get_addr@plt
25449 .section .tdata,"aw'$tls_section_flag'",@progbits
25450 .type value, @object
25451 value:'
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25453 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25454 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25455 $as_echo_n "(cached) " >&6
25456 else
25457 gcc_cv_as_ix86_tlsldm=no
25458 if test x$gcc_cv_as != x; then
25459 $as_echo "$conftest_s" > conftest.s
25460 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25462 (eval $ac_try) 2>&5
25463 ac_status=$?
25464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25465 test $ac_status = 0; }; }
25466 then
25467 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
25468 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o $ld_tls_libs -lc > /dev/null 2>&1; then
25469 if $gcc_cv_objdump -d conftest 2>/dev/null | grep nop > /dev/null \
25470 || dis conftest 2>/dev/null | grep nop > /dev/null; then
25471 gcc_cv_as_ix86_tlsldm=yes
25474 rm -f conftest
25475 else
25476 echo "configure: failed program was" >&5
25477 cat conftest.s >&5
25479 rm -f conftest.o conftest.s
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25483 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25486 cat >>confdefs.h <<_ACEOF
25487 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25488 _ACEOF
25493 ia64*-*-*)
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25495 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25496 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25497 $as_echo_n "(cached) " >&6
25498 else
25499 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25500 if test $in_tree_gas = yes; then
25501 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25502 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25504 elif test x$gcc_cv_as != x; then
25505 $as_echo ' .text
25506 addl r15 = @ltoffx(x#), gp
25508 ld8.mov r16 = [r15], x#' > conftest.s
25509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; }
25515 then
25516 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25517 else
25518 echo "configure: failed program was" >&5
25519 cat conftest.s >&5
25521 rm -f conftest.o conftest.s
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25525 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25526 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25528 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25534 powerpc*-*-*)
25535 case $target in
25536 *-*-aix*) conftest_s=' .machine "pwr5"
25537 .csect .text[PR]
25538 mfcr 3,128';;
25539 *-*-darwin*)
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25541 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25542 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25543 $as_echo_n "(cached) " >&6
25544 else
25545 gcc_cv_as_machine_directive=no
25546 if test x$gcc_cv_as != x; then
25547 $as_echo ' .machine ppc7400' > conftest.s
25548 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25550 (eval $ac_try) 2>&5
25551 ac_status=$?
25552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25553 test $ac_status = 0; }; }
25554 then
25555 gcc_cv_as_machine_directive=yes
25556 else
25557 echo "configure: failed program was" >&5
25558 cat conftest.s >&5
25560 rm -f conftest.o conftest.s
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25564 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25566 if test x$gcc_cv_as_machine_directive != xyes; then
25567 echo "*** This target requires an assembler supporting \".machine\"" >&2
25568 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25569 test x$build = x$target && exit 1
25571 conftest_s=' .text
25572 mfcr r3,128';;
25573 *) conftest_s=' .machine power4
25574 .text
25575 mfcr 3,128';;
25576 esac
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25579 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25580 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25582 else
25583 gcc_cv_as_powerpc_mfcrf=no
25584 if test $in_tree_gas = yes; then
25585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25586 then gcc_cv_as_powerpc_mfcrf=yes
25588 elif test x$gcc_cv_as != x; then
25589 $as_echo "$conftest_s" > conftest.s
25590 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25595 test $ac_status = 0; }; }
25596 then
25597 gcc_cv_as_powerpc_mfcrf=yes
25598 else
25599 echo "configure: failed program was" >&5
25600 cat conftest.s >&5
25602 rm -f conftest.o conftest.s
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25606 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25607 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25609 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25613 case $target in
25614 *-*-aix*) conftest_s=' .machine "pwr5"
25615 .csect .text[PR]
25616 popcntb 3,3';;
25617 *) conftest_s=' .machine power5
25618 .text
25619 popcntb 3,3';;
25620 esac
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25623 $as_echo_n "checking assembler for popcntb support... " >&6; }
25624 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25625 $as_echo_n "(cached) " >&6
25626 else
25627 gcc_cv_as_powerpc_popcntb=no
25628 if test $in_tree_gas = yes; then
25629 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25630 then gcc_cv_as_powerpc_popcntb=yes
25632 elif test x$gcc_cv_as != x; then
25633 $as_echo "$conftest_s" > conftest.s
25634 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25636 (eval $ac_try) 2>&5
25637 ac_status=$?
25638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25639 test $ac_status = 0; }; }
25640 then
25641 gcc_cv_as_powerpc_popcntb=yes
25642 else
25643 echo "configure: failed program was" >&5
25644 cat conftest.s >&5
25646 rm -f conftest.o conftest.s
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25650 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25651 if test $gcc_cv_as_powerpc_popcntb = yes; then
25653 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25657 case $target in
25658 *-*-aix*) conftest_s=' .machine "pwr5x"
25659 .csect .text[PR]
25660 frin 1,1';;
25661 *) conftest_s=' .machine power5
25662 .text
25663 frin 1,1';;
25664 esac
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25667 $as_echo_n "checking assembler for fp round support... " >&6; }
25668 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25669 $as_echo_n "(cached) " >&6
25670 else
25671 gcc_cv_as_powerpc_fprnd=no
25672 if test $in_tree_gas = yes; then
25673 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25674 then gcc_cv_as_powerpc_fprnd=yes
25676 elif test x$gcc_cv_as != x; then
25677 $as_echo "$conftest_s" > conftest.s
25678 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25683 test $ac_status = 0; }; }
25684 then
25685 gcc_cv_as_powerpc_fprnd=yes
25686 else
25687 echo "configure: failed program was" >&5
25688 cat conftest.s >&5
25690 rm -f conftest.o conftest.s
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25694 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25695 if test $gcc_cv_as_powerpc_fprnd = yes; then
25697 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25701 case $target in
25702 *-*-aix*) conftest_s=' .machine "pwr6"
25703 .csect .text[PR]
25704 mffgpr 1,3';;
25705 *) conftest_s=' .machine power6
25706 .text
25707 mffgpr 1,3';;
25708 esac
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25711 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25712 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25713 $as_echo_n "(cached) " >&6
25714 else
25715 gcc_cv_as_powerpc_mfpgpr=no
25716 if test $in_tree_gas = yes; then
25717 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25718 then gcc_cv_as_powerpc_mfpgpr=yes
25720 elif test x$gcc_cv_as != x; then
25721 $as_echo "$conftest_s" > conftest.s
25722 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25724 (eval $ac_try) 2>&5
25725 ac_status=$?
25726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25727 test $ac_status = 0; }; }
25728 then
25729 gcc_cv_as_powerpc_mfpgpr=yes
25730 else
25731 echo "configure: failed program was" >&5
25732 cat conftest.s >&5
25734 rm -f conftest.o conftest.s
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25738 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25739 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25741 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25745 case $target in
25746 *-*-aix*) conftest_s=' .csect .text[PR]
25747 LCF..0:
25748 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25749 *-*-darwin*)
25750 conftest_s=' .text
25751 LCF0:
25752 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25753 *) conftest_s=' .text
25754 .LCF0:
25755 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25756 esac
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25759 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25760 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25761 $as_echo_n "(cached) " >&6
25762 else
25763 gcc_cv_as_powerpc_rel16=no
25764 if test $in_tree_gas = yes; then
25765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25766 then gcc_cv_as_powerpc_rel16=yes
25768 elif test x$gcc_cv_as != x; then
25769 $as_echo "$conftest_s" > conftest.s
25770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25775 test $ac_status = 0; }; }
25776 then
25777 gcc_cv_as_powerpc_rel16=yes
25778 else
25779 echo "configure: failed program was" >&5
25780 cat conftest.s >&5
25782 rm -f conftest.o conftest.s
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25786 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25787 if test $gcc_cv_as_powerpc_rel16 = yes; then
25789 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25793 case $target in
25794 *-*-aix*) conftest_s=' .machine "pwr6"
25795 .csect .text[PR]
25796 cmpb 3,4,5';;
25797 *) conftest_s=' .machine power6
25798 .text
25799 cmpb 3,4,5';;
25800 esac
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25803 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25804 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25805 $as_echo_n "(cached) " >&6
25806 else
25807 gcc_cv_as_powerpc_cmpb=no
25808 if test $in_tree_gas = yes; then
25809 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25810 then gcc_cv_as_powerpc_cmpb=yes
25812 elif test x$gcc_cv_as != x; then
25813 $as_echo "$conftest_s" > conftest.s
25814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25816 (eval $ac_try) 2>&5
25817 ac_status=$?
25818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25819 test $ac_status = 0; }; }
25820 then
25821 gcc_cv_as_powerpc_cmpb=yes
25822 else
25823 echo "configure: failed program was" >&5
25824 cat conftest.s >&5
25826 rm -f conftest.o conftest.s
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25830 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25831 if test $gcc_cv_as_powerpc_cmpb = yes; then
25833 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25837 case $target in
25838 *-*-aix*) conftest_s=' .machine "pwr6"
25839 .csect .text[PR]
25840 dadd 1,2,3';;
25841 *) conftest_s=' .machine power6
25842 .text
25843 dadd 1,2,3';;
25844 esac
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25847 $as_echo_n "checking assembler for decimal float support... " >&6; }
25848 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25849 $as_echo_n "(cached) " >&6
25850 else
25851 gcc_cv_as_powerpc_dfp=no
25852 if test $in_tree_gas = yes; then
25853 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25854 then gcc_cv_as_powerpc_dfp=yes
25856 elif test x$gcc_cv_as != x; then
25857 $as_echo "$conftest_s" > conftest.s
25858 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25860 (eval $ac_try) 2>&5
25861 ac_status=$?
25862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25863 test $ac_status = 0; }; }
25864 then
25865 gcc_cv_as_powerpc_dfp=yes
25866 else
25867 echo "configure: failed program was" >&5
25868 cat conftest.s >&5
25870 rm -f conftest.o conftest.s
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25874 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25875 if test $gcc_cv_as_powerpc_dfp = yes; then
25877 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25881 case $target in
25882 *-*-aix*) conftest_s=' .machine "pwr7"
25883 .csect .text[PR]
25884 lxvd2x 1,2,3';;
25885 *) conftest_s=' .machine power7
25886 .text
25887 lxvd2x 1,2,3';;
25888 esac
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25891 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25892 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25893 $as_echo_n "(cached) " >&6
25894 else
25895 gcc_cv_as_powerpc_vsx=no
25896 if test $in_tree_gas = yes; then
25897 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25898 then gcc_cv_as_powerpc_vsx=yes
25900 elif test x$gcc_cv_as != x; then
25901 $as_echo "$conftest_s" > conftest.s
25902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25904 (eval $ac_try) 2>&5
25905 ac_status=$?
25906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25907 test $ac_status = 0; }; }
25908 then
25909 gcc_cv_as_powerpc_vsx=yes
25910 else
25911 echo "configure: failed program was" >&5
25912 cat conftest.s >&5
25914 rm -f conftest.o conftest.s
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25918 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25919 if test $gcc_cv_as_powerpc_vsx = yes; then
25921 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25925 case $target in
25926 *-*-aix*) conftest_s=' .machine "pwr7"
25927 .csect .text[PR]
25928 popcntd 3,3';;
25929 *) conftest_s=' .machine power7
25930 .text
25931 popcntd 3,3';;
25932 esac
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25935 $as_echo_n "checking assembler for popcntd support... " >&6; }
25936 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25937 $as_echo_n "(cached) " >&6
25938 else
25939 gcc_cv_as_powerpc_popcntd=no
25940 if test $in_tree_gas = yes; then
25941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25942 then gcc_cv_as_powerpc_popcntd=yes
25944 elif test x$gcc_cv_as != x; then
25945 $as_echo "$conftest_s" > conftest.s
25946 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25948 (eval $ac_try) 2>&5
25949 ac_status=$?
25950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25951 test $ac_status = 0; }; }
25952 then
25953 gcc_cv_as_powerpc_popcntd=yes
25954 else
25955 echo "configure: failed program was" >&5
25956 cat conftest.s >&5
25958 rm -f conftest.o conftest.s
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25962 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25963 if test $gcc_cv_as_powerpc_popcntd = yes; then
25965 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25969 case $target in
25970 *-*-aix*) conftest_s=' .machine "pwr8"
25971 .csect .text[PR]';;
25972 *) conftest_s=' .machine power8
25973 .text';;
25974 esac
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25977 $as_echo_n "checking assembler for power8 support... " >&6; }
25978 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25979 $as_echo_n "(cached) " >&6
25980 else
25981 gcc_cv_as_powerpc_power8=no
25982 if test $in_tree_gas = yes; then
25983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25984 then gcc_cv_as_powerpc_power8=yes
25986 elif test x$gcc_cv_as != x; then
25987 $as_echo "$conftest_s" > conftest.s
25988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25990 (eval $ac_try) 2>&5
25991 ac_status=$?
25992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25993 test $ac_status = 0; }; }
25994 then
25995 gcc_cv_as_powerpc_power8=yes
25996 else
25997 echo "configure: failed program was" >&5
25998 cat conftest.s >&5
26000 rm -f conftest.o conftest.s
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26004 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26005 if test $gcc_cv_as_powerpc_power8 = yes; then
26007 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26011 case $target in
26012 *-*-aix*) conftest_s=' .csect .text[PR]
26013 lwsync';;
26014 *) conftest_s=' .text
26015 lwsync';;
26016 esac
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26019 $as_echo_n "checking assembler for lwsync support... " >&6; }
26020 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26023 gcc_cv_as_powerpc_lwsync=no
26024 if test $in_tree_gas = yes; then
26025 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26026 then gcc_cv_as_powerpc_lwsync=yes
26028 elif test x$gcc_cv_as != x; then
26029 $as_echo "$conftest_s" > conftest.s
26030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26032 (eval $ac_try) 2>&5
26033 ac_status=$?
26034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26035 test $ac_status = 0; }; }
26036 then
26037 gcc_cv_as_powerpc_lwsync=yes
26038 else
26039 echo "configure: failed program was" >&5
26040 cat conftest.s >&5
26042 rm -f conftest.o conftest.s
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26046 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26047 if test $gcc_cv_as_powerpc_lwsync = yes; then
26049 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26053 case $target in
26054 *-*-aix*) conftest_s=' .machine "476"
26055 .csect .text[PR]
26056 dci 0';;
26057 *) conftest_s=' .machine "476"
26058 .text
26059 dci 0';;
26060 esac
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26063 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26064 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26065 $as_echo_n "(cached) " >&6
26066 else
26067 gcc_cv_as_powerpc_dci=no
26068 if test $in_tree_gas = yes; then
26069 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26070 then gcc_cv_as_powerpc_dci=yes
26072 elif test x$gcc_cv_as != x; then
26073 $as_echo "$conftest_s" > conftest.s
26074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26076 (eval $ac_try) 2>&5
26077 ac_status=$?
26078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079 test $ac_status = 0; }; }
26080 then
26081 gcc_cv_as_powerpc_dci=yes
26082 else
26083 echo "configure: failed program was" >&5
26084 cat conftest.s >&5
26086 rm -f conftest.o conftest.s
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26090 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26091 if test $gcc_cv_as_powerpc_dci = yes; then
26093 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26098 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26099 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26100 $as_echo_n "(cached) " >&6
26101 else
26102 gcc_cv_as_powerpc_gnu_attribute=no
26103 if test $in_tree_gas = yes; then
26104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26105 then gcc_cv_as_powerpc_gnu_attribute=yes
26107 elif test x$gcc_cv_as != x; then
26108 $as_echo '.gnu_attribute 4,1' > conftest.s
26109 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26111 (eval $ac_try) 2>&5
26112 ac_status=$?
26113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26114 test $ac_status = 0; }; }
26115 then
26116 gcc_cv_as_powerpc_gnu_attribute=yes
26117 else
26118 echo "configure: failed program was" >&5
26119 cat conftest.s >&5
26121 rm -f conftest.o conftest.s
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26125 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26126 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26128 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26133 $as_echo_n "checking assembler for tls marker support... " >&6; }
26134 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26135 $as_echo_n "(cached) " >&6
26136 else
26137 gcc_cv_as_powerpc_tls_markers=no
26138 if test $in_tree_gas = yes; then
26139 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26140 then gcc_cv_as_powerpc_tls_markers=yes
26142 elif test x$gcc_cv_as != x; then
26143 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26144 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26146 (eval $ac_try) 2>&5
26147 ac_status=$?
26148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26149 test $ac_status = 0; }; }
26150 then
26151 gcc_cv_as_powerpc_tls_markers=yes
26152 else
26153 echo "configure: failed program was" >&5
26154 cat conftest.s >&5
26156 rm -f conftest.o conftest.s
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26160 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26161 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26163 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26167 case $target in
26168 *-*-aix*)
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26170 $as_echo_n "checking assembler for .ref support... " >&6; }
26171 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26172 $as_echo_n "(cached) " >&6
26173 else
26174 gcc_cv_as_aix_ref=no
26175 if test $in_tree_gas = yes; then
26176 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26177 then gcc_cv_as_aix_ref=yes
26179 elif test x$gcc_cv_as != x; then
26180 $as_echo ' .csect stuff[rw]
26181 stuff:
26182 .long 1
26183 .extern sym
26184 .ref sym
26185 ' > conftest.s
26186 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26191 test $ac_status = 0; }; }
26192 then
26193 gcc_cv_as_aix_ref=yes
26194 else
26195 echo "configure: failed program was" >&5
26196 cat conftest.s >&5
26198 rm -f conftest.o conftest.s
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26202 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26203 if test $gcc_cv_as_aix_ref = yes; then
26205 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26209 esac
26212 mips*-*-*)
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26214 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26215 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26218 gcc_cv_as_mips_explicit_relocs=no
26219 if test $in_tree_gas = yes; then
26220 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26221 then gcc_cv_as_mips_explicit_relocs=yes
26223 elif test x$gcc_cv_as != x; then
26224 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26227 (eval $ac_try) 2>&5
26228 ac_status=$?
26229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26230 test $ac_status = 0; }; }
26231 then
26232 gcc_cv_as_mips_explicit_relocs=yes
26233 else
26234 echo "configure: failed program was" >&5
26235 cat conftest.s >&5
26237 rm -f conftest.o conftest.s
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26241 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26242 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26243 if test x$target_cpu_default = x
26244 then target_cpu_default=MASK_EXPLICIT_RELOCS
26245 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26249 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26250 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26251 $as_echo_n "(cached) " >&6
26252 else
26253 gcc_cv_as_mips_no_shared=no
26254 if test $in_tree_gas = yes; then
26255 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26256 then gcc_cv_as_mips_no_shared=yes
26258 elif test x$gcc_cv_as != x; then
26259 $as_echo 'nop' > conftest.s
26260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26262 (eval $ac_try) 2>&5
26263 ac_status=$?
26264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26265 test $ac_status = 0; }; }
26266 then
26267 gcc_cv_as_mips_no_shared=yes
26268 else
26269 echo "configure: failed program was" >&5
26270 cat conftest.s >&5
26272 rm -f conftest.o conftest.s
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26276 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26277 if test $gcc_cv_as_mips_no_shared = yes; then
26279 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26284 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26285 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26286 $as_echo_n "(cached) " >&6
26287 else
26288 gcc_cv_as_mips_gnu_attribute=no
26289 if test $in_tree_gas = yes; then
26290 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26291 then gcc_cv_as_mips_gnu_attribute=yes
26293 elif test x$gcc_cv_as != x; then
26294 $as_echo '.gnu_attribute 4,1' > conftest.s
26295 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26297 (eval $ac_try) 2>&5
26298 ac_status=$?
26299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26300 test $ac_status = 0; }; }
26301 then
26302 gcc_cv_as_mips_gnu_attribute=yes
26303 else
26304 echo "configure: failed program was" >&5
26305 cat conftest.s >&5
26307 rm -f conftest.o conftest.s
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26311 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26312 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26314 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26319 $as_echo_n "checking assembler for .micromips support... " >&6; }
26320 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26321 $as_echo_n "(cached) " >&6
26322 else
26323 gcc_cv_as_micromips_support=no
26324 if test x$gcc_cv_as != x; then
26325 $as_echo '.set micromips' > conftest.s
26326 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26328 (eval $ac_try) 2>&5
26329 ac_status=$?
26330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26331 test $ac_status = 0; }; }
26332 then
26333 gcc_cv_as_micromips_support=yes
26334 else
26335 echo "configure: failed program was" >&5
26336 cat conftest.s >&5
26338 rm -f conftest.o conftest.s
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26342 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26343 if test $gcc_cv_as_micromips_support = yes; then
26345 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26350 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26351 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26352 $as_echo_n "(cached) " >&6
26353 else
26354 gcc_cv_as_mips_dtprelword=no
26355 if test $in_tree_gas = yes; then
26356 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26357 then gcc_cv_as_mips_dtprelword=yes
26359 elif test x$gcc_cv_as != x; then
26360 $as_echo '.section .tdata,"awT",@progbits
26362 .word 2
26363 .text
26364 .dtprelword x+0x8000' > conftest.s
26365 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26367 (eval $ac_try) 2>&5
26368 ac_status=$?
26369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26370 test $ac_status = 0; }; }
26371 then
26372 gcc_cv_as_mips_dtprelword=yes
26373 else
26374 echo "configure: failed program was" >&5
26375 cat conftest.s >&5
26377 rm -f conftest.o conftest.s
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26381 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26382 if test $gcc_cv_as_mips_dtprelword = yes; then
26384 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26389 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26390 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26391 $as_echo_n "(cached) " >&6
26392 else
26393 gcc_cv_as_mips_dspr1_mult=no
26394 if test x$gcc_cv_as != x; then
26395 $as_echo ' .set mips32r2
26396 .set nodspr2
26397 .set dsp
26398 madd $ac3,$4,$5
26399 maddu $ac3,$4,$5
26400 msub $ac3,$4,$5
26401 msubu $ac3,$4,$5
26402 mult $ac3,$4,$5
26403 multu $ac3,$4,$5' > conftest.s
26404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26409 test $ac_status = 0; }; }
26410 then
26411 gcc_cv_as_mips_dspr1_mult=yes
26412 else
26413 echo "configure: failed program was" >&5
26414 cat conftest.s >&5
26416 rm -f conftest.o conftest.s
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26420 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26421 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26423 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26428 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26429 gcc_cv_as_ld_jalr_reloc=no
26430 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26431 if test $in_tree_ld = yes ; then
26432 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 \
26433 && test $in_tree_ld_is_elf = yes; then
26434 gcc_cv_as_ld_jalr_reloc=yes
26436 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
26437 echo ' .ent x' > conftest.s
26438 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
26439 echo ' ld $25,%call16(y)($28)' >> conftest.s
26440 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26441 echo '1: jalr $25' >> conftest.s
26442 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26443 echo '1: jalr $25' >> conftest.s
26444 echo ' .end x' >> conftest.s
26445 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
26446 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
26447 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
26448 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
26449 gcc_cv_as_ld_jalr_reloc=yes
26452 rm -f conftest.*
26455 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26456 if test x$target_cpu_default = x; then
26457 target_cpu_default=MASK_RELAX_PIC_CALLS
26458 else
26459 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26463 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26466 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26467 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26468 $as_echo_n "(cached) " >&6
26469 else
26470 gcc_cv_ld_mips_personality_relaxation=no
26471 if test $in_tree_ld = yes ; then
26472 if test "$gcc_cv_gld_major_version" -eq 2 \
26473 -a "$gcc_cv_gld_minor_version" -ge 21 \
26474 -o "$gcc_cv_gld_major_version" -gt 2; then
26475 gcc_cv_ld_mips_personality_relaxation=yes
26477 elif test x$gcc_cv_as != x \
26478 -a x$gcc_cv_ld != x \
26479 -a x$gcc_cv_readelf != x ; then
26480 cat > conftest.s <<EOF
26481 .cfi_startproc
26482 .cfi_personality 0x80,indirect_ptr
26483 .ent test
26484 test:
26486 .end test
26487 .cfi_endproc
26489 .section .data,"aw",@progbits
26490 indirect_ptr:
26491 .dc.a personality
26493 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26494 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26495 if $gcc_cv_readelf -d conftest 2>&1 \
26496 | grep TEXTREL > /dev/null 2>&1; then
26498 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26499 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26501 else
26502 gcc_cv_ld_mips_personality_relaxation=yes
26506 rm -f conftest.s conftest.o conftest
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26509 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26510 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26512 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26517 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26518 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26519 $as_echo_n "(cached) " >&6
26520 else
26521 gcc_cv_as_mips_nan=no
26522 if test x$gcc_cv_as != x; then
26523 $as_echo '' > conftest.s
26524 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26526 (eval $ac_try) 2>&5
26527 ac_status=$?
26528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26529 test $ac_status = 0; }; }
26530 then
26531 gcc_cv_as_mips_nan=yes
26532 else
26533 echo "configure: failed program was" >&5
26534 cat conftest.s >&5
26536 rm -f conftest.o conftest.s
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26540 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26541 if test $gcc_cv_as_mips_nan = yes; then
26543 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26546 if test x$gcc_cv_as_mips_nan = xno \
26547 && test x$with_nan != x; then
26548 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26551 esac
26553 # Mips and HP-UX need the GNU assembler.
26554 # Linux on IA64 might be able to use the Intel assembler.
26556 case "$target" in
26557 mips*-*-* | *-*-hpux* )
26558 if test x$gas_flag = xyes \
26559 || test x"$host" != x"$build" \
26560 || test ! -x "$gcc_cv_as" \
26561 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26563 else
26564 echo "*** This configuration requires the GNU assembler" >&2
26565 exit 1
26568 esac
26570 # ??? Not all targets support dwarf2 debug_line, even within a version
26571 # of gas. Moreover, we need to emit a valid instruction to trigger any
26572 # info to the output file. So, as supported targets are added to gas 2.11,
26573 # add some instruction here to (also) show we expect this might work.
26574 # ??? Once 2.11 is released, probably need to add first known working
26575 # version to the per-target configury.
26576 case "$cpu_type" in
26577 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26578 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26579 | xstormy16 | xtensa)
26580 insn="nop"
26582 ia64 | s390)
26583 insn="nop 0"
26585 mmix)
26586 insn="swym 0"
26588 esac
26589 if test x"$insn" != x; then
26590 conftest_s="\
26591 .file 1 \"conftest.s\"
26592 .loc 1 3 0
26593 $insn"
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26595 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26596 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26597 $as_echo_n "(cached) " >&6
26598 else
26599 gcc_cv_as_dwarf2_debug_line=no
26600 if test $in_tree_gas = yes; then
26601 if test $in_tree_gas_is_elf = yes \
26602 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26603 then gcc_cv_as_dwarf2_debug_line=yes
26605 elif test x$gcc_cv_as != x; then
26606 $as_echo "$conftest_s" > conftest.s
26607 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26613 then
26614 if test x$gcc_cv_objdump != x \
26615 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26616 | grep debug_line > /dev/null 2>&1; then
26617 gcc_cv_as_dwarf2_debug_line=yes
26619 else
26620 echo "configure: failed program was" >&5
26621 cat conftest.s >&5
26623 rm -f conftest.o conftest.s
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26627 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26630 # The .debug_line file table must be in the exact order that
26631 # we specified the files, since these indices are also used
26632 # by DW_AT_decl_file. Approximate this test by testing if
26633 # the assembler bitches if the same index is assigned twice.
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26635 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26636 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26637 $as_echo_n "(cached) " >&6
26638 else
26639 gcc_cv_as_dwarf2_file_buggy=no
26640 if test x$gcc_cv_as != x; then
26641 $as_echo ' .file 1 "foo.s"
26642 .file 1 "bar.s"' > conftest.s
26643 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26645 (eval $ac_try) 2>&5
26646 ac_status=$?
26647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26648 test $ac_status = 0; }; }
26649 then
26650 gcc_cv_as_dwarf2_file_buggy=yes
26651 else
26652 echo "configure: failed program was" >&5
26653 cat conftest.s >&5
26655 rm -f conftest.o conftest.s
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26659 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26662 if test $gcc_cv_as_dwarf2_debug_line = yes \
26663 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26665 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26670 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26671 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26672 $as_echo_n "(cached) " >&6
26673 else
26674 gcc_cv_as_gdwarf2_flag=no
26675 if test $in_tree_gas = yes; then
26676 if test $in_tree_gas_is_elf = yes \
26677 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26678 then gcc_cv_as_gdwarf2_flag=yes
26680 elif test x$gcc_cv_as != x; then
26681 $as_echo "$insn" > conftest.s
26682 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26684 (eval $ac_try) 2>&5
26685 ac_status=$?
26686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26687 test $ac_status = 0; }; }
26688 then
26689 gcc_cv_as_gdwarf2_flag=yes
26690 else
26691 echo "configure: failed program was" >&5
26692 cat conftest.s >&5
26694 rm -f conftest.o conftest.s
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26698 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26699 if test $gcc_cv_as_gdwarf2_flag = yes; then
26701 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26706 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26707 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26708 $as_echo_n "(cached) " >&6
26709 else
26710 gcc_cv_as_gstabs_flag=no
26711 if test $in_tree_gas = yes; then
26712 if test $in_tree_gas_is_elf = yes \
26713 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26714 then gcc_cv_as_gstabs_flag=yes
26716 elif test x$gcc_cv_as != x; then
26717 $as_echo "$insn" > conftest.s
26718 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26720 (eval $ac_try) 2>&5
26721 ac_status=$?
26722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26723 test $ac_status = 0; }; }
26724 then
26725 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26726 # and warns about it, but still exits successfully. So check for
26727 # this.
26728 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26730 (eval $ac_try) 2>&5
26731 ac_status=$?
26732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26733 test $ac_status = 0; }; }
26734 then :
26735 else gcc_cv_as_gstabs_flag=yes
26737 else
26738 echo "configure: failed program was" >&5
26739 cat conftest.s >&5
26741 rm -f conftest.o conftest.s
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26745 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26746 if test $gcc_cv_as_gstabs_flag = yes; then
26748 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26753 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26754 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26755 $as_echo_n "(cached) " >&6
26756 else
26757 gcc_cv_as_debug_prefix_map_flag=no
26758 if test $in_tree_gas = yes; then
26759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26760 then gcc_cv_as_debug_prefix_map_flag=yes
26762 elif test x$gcc_cv_as != x; then
26763 $as_echo "$insn" > conftest.s
26764 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26770 then
26771 gcc_cv_as_debug_prefix_map_flag=yes
26772 else
26773 echo "configure: failed program was" >&5
26774 cat conftest.s >&5
26776 rm -f conftest.o conftest.s
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26780 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26781 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26783 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26789 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26790 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26791 $as_echo_n "(cached) " >&6
26792 else
26793 gcc_cv_as_lcomm_with_alignment=no
26794 if test x$gcc_cv_as != x; then
26795 $as_echo '.lcomm bar,4,16' > conftest.s
26796 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26798 (eval $ac_try) 2>&5
26799 ac_status=$?
26800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26801 test $ac_status = 0; }; }
26802 then
26803 gcc_cv_as_lcomm_with_alignment=yes
26804 else
26805 echo "configure: failed program was" >&5
26806 cat conftest.s >&5
26808 rm -f conftest.o conftest.s
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26812 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26813 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26815 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26819 if test x$with_sysroot = x && test x$host = x$target \
26820 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26821 && test "$prefix" != "NONE"; then
26823 cat >>confdefs.h <<_ACEOF
26824 #define PREFIX_INCLUDE_DIR "$prefix/include"
26825 _ACEOF
26829 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26830 if test "x$with_headers" != x; then
26831 target_header_dir=$with_headers
26832 elif test "x$with_sysroot" = x; then
26833 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
26834 elif test "x$with_build_sysroot" != "x"; then
26835 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26836 elif test "x$with_sysroot" = xyes; then
26837 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26838 else
26839 target_header_dir="${with_sysroot}${native_system_header_dir}"
26841 else
26842 target_header_dir=${native_system_header_dir}
26845 # Determine the version of glibc, if any, used on the target.
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26847 $as_echo_n "checking for target glibc version... " >&6; }
26849 # Check whether --with-glibc-version was given.
26850 if test "${with_glibc_version+set}" = set; then :
26851 withval=$with_glibc_version;
26852 if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26853 glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26854 glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26855 else
26856 as_fn_error "option --with-glibc-version requires a version number M.N" "$LINENO" 5
26858 else
26860 glibc_version_major=0
26861 glibc_version_minor=0
26862 if test -f $target_header_dir/features.h \
26863 && glibc_version_major_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26864 && glibc_version_minor_define=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26865 glibc_version_major=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26866 glibc_version_minor=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26871 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26873 # Check whether --enable-gnu-unique-object was given.
26874 if test "${enable_gnu_unique_object+set}" = set; then :
26875 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26876 yes | no) ;;
26877 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26878 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26879 esac
26880 else
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26882 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26883 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26884 $as_echo_n "(cached) " >&6
26885 else
26886 gcc_cv_as_gnu_unique_object=no
26887 if test $in_tree_gas = yes; then
26888 if test $in_tree_gas_is_elf = yes \
26889 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26890 then gcc_cv_as_gnu_unique_object=yes
26892 elif test x$gcc_cv_as != x; then
26893 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26894 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26896 (eval $ac_try) 2>&5
26897 ac_status=$?
26898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26899 test $ac_status = 0; }; }
26900 then
26901 gcc_cv_as_gnu_unique_object=yes
26902 else
26903 echo "configure: failed program was" >&5
26904 cat conftest.s >&5
26906 rm -f conftest.o conftest.s
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26910 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26911 if test $gcc_cv_as_gnu_unique_object = yes; then
26912 # We need to unquote above to to use the definition from config.gcc.
26913 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26915 if test $glibc_version_major -gt 2 \
26916 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26917 enable_gnu_unique_object=yes
26923 if test x$enable_gnu_unique_object = xyes; then
26925 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26930 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26931 if test "${gcc_cv_as_line_zero+set}" = set; then :
26932 $as_echo_n "(cached) " >&6
26933 else
26934 gcc_cv_as_line_zero=no
26935 if test $in_tree_gas = yes; then
26936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26937 then gcc_cv_as_line_zero=yes
26939 elif test "x$gcc_cv_as" != x; then
26940 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26941 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26943 (eval $ac_try) 2>&5
26944 ac_status=$?
26945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26946 test $ac_status = 0; }; } &&
26947 test "x`cat conftest.out`" = x
26948 then
26949 gcc_cv_as_line_zero=yes
26950 else
26951 echo "configure: failed program was" >&5
26952 cat conftest.s >&5
26953 echo "configure: error output was" >&5
26954 cat conftest.out >&5
26956 rm -f conftest.o conftest.s conftest.out
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26960 $as_echo "$gcc_cv_as_line_zero" >&6; }
26961 if test "x$gcc_cv_as_line_zero" = xyes; then
26963 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26968 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26969 gcc_cv_ld_eh_frame_hdr=no
26970 if test $in_tree_ld = yes ; then
26971 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 \
26972 && test $in_tree_ld_is_elf = yes; then
26973 gcc_cv_ld_eh_frame_hdr=yes
26975 elif test x$gcc_cv_ld != x; then
26976 if echo "$ld_ver" | grep GNU > /dev/null; then
26977 # Check if linker supports --eh-frame-hdr option
26978 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26979 gcc_cv_ld_eh_frame_hdr=yes
26981 else
26982 case "$target" in
26983 *-*-solaris2*)
26984 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26985 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26986 gcc_cv_ld_eh_frame_hdr=yes
26989 esac
26993 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26995 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26999 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27002 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27003 gcc_cv_ld_eh_frame_ciev3=no
27004 if test $in_tree_ld = yes ; then
27005 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 \
27006 && test $in_tree_ld_is_elf = yes; then
27007 gcc_cv_ld_eh_frame_ciev3=yes
27009 elif test x$gcc_cv_ld != x; then
27010 if echo "$ld_ver" | grep GNU > /dev/null; then
27011 gcc_cv_ld_eh_frame_ciev3=yes
27012 if test 0"$ld_date" -lt 20040513; then
27013 if test -n "$ld_date"; then
27014 # If there was date string, but was earlier than 2004-05-13, fail
27015 gcc_cv_ld_eh_frame_ciev3=no
27016 elif test "$ld_vers_major" -lt 2; then
27017 gcc_cv_ld_eh_frame_ciev3=no
27018 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27019 gcc_cv_ld_eh_frame_ciev3=no
27022 else
27023 case "$target" in
27024 *-*-solaris2*)
27025 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27026 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
27027 gcc_cv_ld_eh_frame_ciev3=yes
27030 esac
27034 cat >>confdefs.h <<_ACEOF
27035 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27036 _ACEOF
27038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27039 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27042 $as_echo_n "checking linker position independent executable support... " >&6; }
27043 gcc_cv_ld_pie=no
27044 if test $in_tree_ld = yes ; then
27045 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 \
27046 && test $in_tree_ld_is_elf = yes; then
27047 gcc_cv_ld_pie=yes
27049 elif test x$gcc_cv_ld != x; then
27050 # Check if linker supports -pie option
27051 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
27052 gcc_cv_ld_pie=yes
27055 if test x"$gcc_cv_ld_pie" = xyes; then
27057 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27061 $as_echo "$gcc_cv_ld_pie" >&6; }
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27064 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27065 gcc_cv_ld_eh_gc_sections=no
27066 if test $in_tree_ld = yes ; then
27067 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
27068 && test $in_tree_ld_is_elf = yes; then
27069 gcc_cv_ld_eh_gc_sections=yes
27071 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
27072 cat > conftest.s <<EOF
27073 .section .text
27074 .globl _start
27075 .type _start, @function
27076 _start:
27077 .long foo
27078 .size _start, .-_start
27079 .section .text.foo,"ax",@progbits
27080 .type foo, @function
27081 foo:
27082 .long 0
27083 .size foo, .-foo
27084 .section .gcc_except_table.foo,"a",@progbits
27085 .L0:
27086 .long 0
27087 .section .eh_frame,"a",@progbits
27088 .long .L0
27090 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27091 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27092 | grep "gc-sections option ignored" > /dev/null; then
27093 gcc_cv_ld_eh_gc_sections=no
27094 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27095 | grep gcc_except_table > /dev/null; then
27096 gcc_cv_ld_eh_gc_sections=yes
27097 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27098 if test x$gcc_cv_as_comdat_group != xyes; then
27099 gcc_cv_ld_eh_gc_sections=no
27100 cat > conftest.s <<EOF
27101 .section .text
27102 .globl _start
27103 .type _start, @function
27104 _start:
27105 .long foo
27106 .size _start, .-_start
27107 .section .gnu.linkonce.t.foo,"ax",@progbits
27108 .type foo, @function
27109 foo:
27110 .long 0
27111 .size foo, .-foo
27112 .section .gcc_except_table.foo,"a",@progbits
27113 .L0:
27114 .long 0
27115 .section .eh_frame,"a",@progbits
27116 .long .L0
27118 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27119 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27120 | grep "gc-sections option ignored" > /dev/null; then
27121 gcc_cv_ld_eh_gc_sections=no
27122 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27123 | grep gcc_except_table > /dev/null; then
27124 gcc_cv_ld_eh_gc_sections=yes
27130 rm -f conftest.s conftest.o conftest
27132 case "$target" in
27133 hppa*-*-linux*)
27134 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27135 gcc_cv_ld_eh_gc_sections=no
27137 esac
27138 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
27140 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27144 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27147 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27148 gcc_cv_ld_eh_gc_sections_bug=no
27149 if test $in_tree_ld = yes ; then
27150 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 \
27151 && test $in_tree_ld_is_elf = yes; then
27152 gcc_cv_ld_eh_gc_sections_bug=yes
27154 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
27155 gcc_cv_ld_eh_gc_sections_bug=yes
27156 cat > conftest.s <<EOF
27157 .section .text
27158 .globl _start
27159 .type _start, @function
27160 _start:
27161 .long foo
27162 .size _start, .-_start
27163 .section .text.startup.foo,"ax",@progbits
27164 .type foo, @function
27165 foo:
27166 .long 0
27167 .size foo, .-foo
27168 .section .gcc_except_table.foo,"a",@progbits
27169 .L0:
27170 .long 0
27171 .section .eh_frame,"a",@progbits
27172 .long .L0
27174 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
27175 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
27176 | grep "gc-sections option ignored" > /dev/null; then
27178 elif $gcc_cv_objdump -h conftest 2> /dev/null \
27179 | grep gcc_except_table > /dev/null; then
27180 gcc_cv_ld_eh_gc_sections_bug=no
27183 rm -f conftest.s conftest.o conftest
27185 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
27187 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27191 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27193 # --------
27194 # UNSORTED
27195 # --------
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27198 $as_echo_n "checking linker --as-needed support... " >&6; }
27199 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27200 $as_echo_n "(cached) " >&6
27201 else
27202 gcc_cv_ld_as_needed=no
27203 gcc_cv_ld_as_needed_option='--as-needed'
27204 gcc_cv_ld_no_as_needed_option='--no-as-needed'
27205 if test $in_tree_ld = yes ; then
27206 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 \
27207 && test $in_tree_ld_is_elf = yes; then
27208 gcc_cv_ld_as_needed=yes
27210 elif test x$gcc_cv_ld != x; then
27211 # Check if linker supports --as-needed and --no-as-needed options
27212 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
27213 gcc_cv_ld_as_needed=yes
27214 else
27215 case "$target" in
27216 # Solaris 2 ld always supports -z ignore/-z record.
27217 *-*-solaris2*)
27218 gcc_cv_ld_as_needed=yes
27219 gcc_cv_ld_as_needed_option="-z ignore"
27220 gcc_cv_ld_no_as_needed_option="-z record"
27222 esac
27225 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27226 # dl_iterate_phdr, i.e. since Solaris 11.
27227 case "$target" in
27228 *-*-solaris2.1[1-9]*)
27229 case "$target" in
27230 i?86-*-* | x86_64-*-*)
27231 if echo "$ld_ver" | grep GNU > /dev/null; then
27232 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27233 gcc_cv_ld_as_needed=no
27236 esac
27238 *-*-solaris2*)
27239 gcc_cv_ld_as_needed=no
27241 esac
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27245 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27246 if test x"$gcc_cv_ld_as_needed" = xyes; then
27248 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27251 cat >>confdefs.h <<_ACEOF
27252 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27253 _ACEOF
27256 cat >>confdefs.h <<_ACEOF
27257 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27258 _ACEOF
27262 case "$target:$tm_file" in
27263 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
27264 case "$target" in
27265 *le-*-linux*)
27266 emul_name="-melf64lppc"
27268 *-*-linux*)
27269 emul_name="-melf64ppc"
27271 *-*-freebsd*)
27272 emul_name="-melf64ppc_fbsd"
27274 esac
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27276 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27277 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27278 $as_echo_n "(cached) " >&6
27279 else
27280 gcc_cv_ld_no_dot_syms=no
27281 if test x"$ld_is_gold" = xyes; then
27282 gcc_cv_ld_no_dot_syms=yes
27283 elif test $in_tree_ld = yes ; then
27284 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
27285 gcc_cv_ld_no_dot_syms=yes
27287 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27288 cat > conftest1.s <<EOF
27289 .text
27290 bl .foo
27292 cat > conftest2.s <<EOF
27293 .section ".opd","aw"
27294 .align 3
27295 .globl foo
27296 .type foo,@function
27297 foo:
27298 .quad .LEfoo,.TOC.@tocbase,0
27299 .text
27300 .LEfoo:
27302 .size foo,.-.LEfoo
27304 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
27305 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
27306 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
27307 gcc_cv_ld_no_dot_syms=yes
27309 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27314 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27315 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
27317 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27322 $as_echo_n "checking linker large toc support... " >&6; }
27323 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27324 $as_echo_n "(cached) " >&6
27325 else
27326 gcc_cv_ld_large_toc=no
27327 if test x"$ld_is_gold" = xyes; then
27328 gcc_cv_ld_large_toc=yes
27329 elif test $in_tree_ld = yes ; then
27330 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
27331 gcc_cv_ld_large_toc=yes
27333 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
27334 cat > conftest.s <<EOF
27335 .section ".tbss","awT",@nobits
27336 .align 3
27337 ie0: .space 8
27338 .global _start
27339 .text
27340 _start:
27341 addis 9,13,ie0@got@tprel@ha
27342 ld 9,ie0@got@tprel@l(9)
27344 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
27345 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
27346 gcc_cv_ld_large_toc=yes
27348 rm -f conftest conftest.o conftest.s
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27353 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27354 if test x"$gcc_cv_ld_large_toc" = xyes; then
27356 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27360 esac
27362 case "$target" in
27363 *-*-aix*)
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27365 $as_echo_n "checking linker large toc support... " >&6; }
27366 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27367 $as_echo_n "(cached) " >&6
27368 else
27369 gcc_cv_ld_large_toc=no
27370 if test x$gcc_cv_as != x ; then
27371 cat > conftest.s <<EOF
27372 .toc
27373 LC..1:
27374 .tc a[TC],a[RW]
27375 .extern a[RW]
27376 .csect .text[PR]
27377 .largetoctest:
27378 addis 9,LC..1@u(2)
27379 ld 3,LC..1@l(9)
27381 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
27382 gcc_cv_ld_large_toc=yes
27384 rm -f conftest conftest.o conftest.s
27388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27389 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27390 if test x"$gcc_cv_ld_large_toc" = xyes; then
27392 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27396 esac
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27399 $as_echo_n "checking linker --build-id support... " >&6; }
27400 if test "${gcc_cv_ld_buildid+set}" = set; then :
27401 $as_echo_n "(cached) " >&6
27402 else
27403 gcc_cv_ld_buildid=no
27404 if test $in_tree_ld = yes ; then
27405 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27406 "$gcc_cv_gld_minor_version" -ge 18 -o \
27407 "$gcc_cv_gld_major_version" -gt 2 \
27408 && test $in_tree_ld_is_elf = yes; then
27409 gcc_cv_ld_buildid=yes
27411 elif test x$gcc_cv_ld != x; then
27412 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
27413 gcc_cv_ld_buildid=yes
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27418 $as_echo "$gcc_cv_ld_buildid" >&6; }
27419 if test x"$gcc_cv_ld_buildid" = xyes; then
27421 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27425 # Check whether --enable-linker-build-id was given.
27426 if test "${enable_linker_build_id+set}" = set; then :
27427 enableval=$enable_linker_build_id;
27428 else
27429 enable_linker_build_id=no
27433 if test x"$enable_linker_build_id" = xyes; then
27434 if test x"$gcc_cv_ld_buildid" = xyes; then
27436 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27438 else
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27440 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27444 # In binutils 2.21, GNU ld gained support for new emulations fully
27445 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27447 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27448 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27449 $as_echo_n "(cached) " >&6
27450 else
27451 gcc_cv_ld_sol2_emulation=no
27452 if test $in_tree_ld = yes ; then
27453 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27454 "$gcc_cv_gld_minor_version" -ge 21 -o \
27455 "$gcc_cv_gld_major_version" -gt 2 \
27456 && test $in_tree_ld_is_elf = yes; then
27457 gcc_cv_ld_sol2_emulation=yes
27459 elif test x$gcc_cv_ld != x; then
27460 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
27461 grep _sol2 > /dev/null; then
27462 gcc_cv_ld_sol2_emulation=yes
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27467 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27468 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
27470 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27475 $as_echo_n "checking linker --sysroot support... " >&6; }
27476 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27477 $as_echo_n "(cached) " >&6
27478 else
27479 gcc_cv_ld_sysroot=no
27480 if test $in_tree_ld = yes ; then
27481 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
27482 gcc_cv_ld_sysroot=yes
27484 elif test x$gcc_cv_ld != x; then
27485 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
27486 gcc_cv_ld_sysroot=yes
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27491 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27492 if test x"$gcc_cv_ld_sysroot" = xyes; then
27494 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27498 # Test for stack protector support in target C library.
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27500 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27501 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27502 $as_echo_n "(cached) " >&6
27503 else
27504 gcc_cv_libc_provides_ssp=no
27505 case "$target" in
27506 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27507 # glibc 2.4 and later provides __stack_chk_fail and
27508 # either __stack_chk_guard, or TLS access to stack guard canary.
27510 if test $glibc_version_major -gt 2 \
27511 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27512 gcc_cv_libc_provides_ssp=yes
27513 else
27515 if test -f $target_header_dir/features.h \
27516 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27517 $target_header_dir/features.h > /dev/null; then
27518 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27519 $target_header_dir/features.h > /dev/null && \
27520 test -f $target_header_dir/bits/uClibc_config.h && \
27521 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27522 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27523 gcc_cv_libc_provides_ssp=yes
27525 # all versions of Bionic support stack protector
27526 elif test -f $target_header_dir/sys/cdefs.h \
27527 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27528 $target_header_dir/sys/cdefs.h > /dev/null; then
27529 gcc_cv_libc_provides_ssp=yes
27533 *-*-gnu*)
27534 # Avoid complicated tests (see
27535 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27536 # simply assert that glibc does provide this, which is true for all
27537 # realistically usable GNU/Hurd configurations.
27538 gcc_cv_libc_provides_ssp=yes;;
27539 *-*-darwin* | *-*-freebsd*)
27540 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27541 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27542 gcc_cv_libc_provides_ssp=yes
27543 else
27544 echo "no __stack_chk_fail on this target"
27548 *) gcc_cv_libc_provides_ssp=no ;;
27549 esac
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27552 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27554 if test x$gcc_cv_libc_provides_ssp = xyes; then
27556 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27560 # Test for <sys/sdt.h> on the target.
27562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27563 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27564 have_sys_sdt_h=no
27565 if test -f $target_header_dir/sys/sdt.h; then
27566 have_sys_sdt_h=yes
27568 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27572 $as_echo "$have_sys_sdt_h" >&6; }
27574 # Check if TFmode long double should be used by default or not.
27575 # Some glibc targets used DFmode long double, but with glibc 2.4
27576 # and later they can use TFmode.
27577 case "$target" in
27578 powerpc*-*-linux* | \
27579 sparc*-*-linux* | \
27580 s390*-*-linux* | \
27581 alpha*-*-linux*)
27583 # Check whether --with-long-double-128 was given.
27584 if test "${with_long_double_128+set}" = set; then :
27585 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27586 else
27588 if test $glibc_version_major -gt 2 \
27589 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27590 gcc_cv_target_ldbl128=yes
27591 else
27593 gcc_cv_target_ldbl128=no
27594 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27595 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27596 && gcc_cv_target_ldbl128=yes
27602 esac
27603 if test x$gcc_cv_target_ldbl128 = xyes; then
27605 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27610 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27611 gcc_cv_target_dl_iterate_phdr=unknown
27612 case "$target" in
27613 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27614 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27615 # libdl there, both complicating its use and breaking compatibility
27616 # between Solaris 10 updates.
27617 *-*-solaris2.1[1-9]*)
27618 # <link.h> needs both a dl_iterate_phdr declaration and support for
27619 # compilation with largefile support.
27620 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27621 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27622 gcc_cv_target_dl_iterate_phdr=yes
27623 else
27624 gcc_cv_target_dl_iterate_phdr=no
27627 esac
27629 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27631 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27635 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27637 # We no longer support different GC mechanisms. Emit an error if
27638 # the user configures with --with-gc.
27640 # Check whether --with-gc was given.
27641 if test "${with_gc+set}" = set; then :
27642 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27646 # Libraries to use on the host. This will normally be set by the top
27647 # level Makefile. Here we simply capture the value for our Makefile.
27648 if test -z "${HOST_LIBS+set}"; then
27649 HOST_LIBS=
27653 # Use the system's zlib library.
27654 zlibdir=-L../zlib
27655 zlibinc="-I\$(srcdir)/../zlib"
27657 # Check whether --with-system-zlib was given.
27658 if test "${with_system_zlib+set}" = set; then :
27659 withval=$with_system_zlib; zlibdir=
27660 zlibinc=
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27669 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27670 # Check whether --enable-maintainer-mode was given.
27671 if test "${enable_maintainer_mode+set}" = set; then :
27672 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27673 else
27674 maintainer_mode=no
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27679 $as_echo "$maintainer_mode" >&6; }
27681 if test "$maintainer_mode" = "yes"; then
27682 MAINT=''
27683 else
27684 MAINT='#'
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27689 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27690 # Check whether --enable-link-mutex was given.
27691 if test "${enable_link_mutex+set}" = set; then :
27692 enableval=$enable_link_mutex; do_link_mutex=$enableval
27693 else
27694 do_link_mutex=no
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27698 $as_echo "$do_link_mutex" >&6; }
27700 if test "$do_link_mutex" = "yes"; then
27701 DO_LINK_MUTEX=true
27702 else
27703 DO_LINK_MUTEX=false
27707 # --------------
27708 # Language hooks
27709 # --------------
27711 # Make empty files to contain the specs and options for each language.
27712 # Then add #include lines to for a compiler that has specs and/or options.
27714 subdirs=
27715 lang_opt_files=
27716 lang_specs_files=
27717 lang_tree_files=
27718 # These (without "all_") are set in each config-lang.in.
27719 # `language' must be a single word so is spelled singularly.
27720 all_languages=
27721 all_compilers=
27722 all_outputs='Makefile'
27723 # List of language makefile fragments.
27724 all_lang_makefrags=
27725 # Additional files for gengtype
27726 all_gtfiles="$target_gtfiles"
27728 # These are the languages that are set in --enable-languages,
27729 # and are available in the GCC tree.
27730 all_selected_languages=
27732 # Add the language fragments.
27733 # Languages are added via two mechanisms. Some information must be
27734 # recorded in makefile variables, these are defined in config-lang.in.
27735 # We accumulate them and plug them into the main Makefile.
27736 # The other mechanism is a set of hooks for each of the main targets
27737 # like `clean', `install', etc.
27739 language_hooks="Make-hooks"
27741 for lang in ${srcdir}/*/config-lang.in
27743 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27745 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27746 if test "x$lang_alias" = x
27747 then
27748 echo "$lang doesn't set \$language." 1>&2
27749 exit 1
27751 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27752 subdirs="$subdirs $subdir"
27754 # $gcc_subdir is where the gcc integration files are to be found
27755 # for a language, both for internal compiler purposes (compiler
27756 # sources implementing front-end to GCC tree converters), and for
27757 # build infrastructure purposes (Make-lang.in, etc.)
27759 # This will be <subdir> (relative to $srcdir) if a line like
27760 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27761 # is found in <langdir>/config-lang.in, and will remain <langdir>
27762 # otherwise.
27764 # Except for the language alias (fetched above), the regular
27765 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27766 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27767 # only this and the language alias.
27769 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27770 if [ "$gcc_subdir" = "" ]; then
27771 gcc_subdir="$subdir"
27774 case ",$enable_languages," in
27775 *,$lang_alias,*)
27776 all_selected_languages="$all_selected_languages $lang_alias"
27777 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27778 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27781 esac
27783 language=
27784 boot_language=
27785 compilers=
27786 outputs=
27787 gtfiles=
27788 subdir_requires=
27789 . ${srcdir}/$gcc_subdir/config-lang.in
27790 if test "x$language" = x
27791 then
27792 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27793 exit 1
27796 ok=:
27797 case ",$enable_languages," in
27798 *,$lang_alias,*) ;;
27800 for i in $subdir_requires; do
27801 test -f "${srcdir}/$i/config-lang.in" && continue
27802 ok=false
27803 break
27804 done
27806 esac
27807 $ok || continue
27809 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27810 if test -f $srcdir/$gcc_subdir/lang.opt; then
27811 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27812 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27814 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27815 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27817 all_languages="$all_languages $language"
27818 all_compilers="$all_compilers $compilers"
27819 all_outputs="$all_outputs $outputs"
27820 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27821 case ",$enable_languages," in
27822 *,lto,*)
27824 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27826 enable_lto=yes
27829 *) ;;
27830 esac
27831 done
27833 check_languages=
27834 for language in $all_selected_languages
27836 check_languages="$check_languages check-$language"
27837 done
27839 # We link each language in with a set of hooks, reached indirectly via
27840 # lang.${target}. Only do so for selected languages.
27842 rm -f Make-hooks
27843 touch Make-hooks
27844 target_list="all.cross start.encap rest.encap tags \
27845 install-common install-man install-info install-pdf install-html dvi \
27846 pdf html uninstall info man srcextra srcman srcinfo \
27847 mostlyclean clean distclean maintainer-clean install-plugin"
27849 for t in $target_list
27852 for lang in $all_selected_languages
27854 x="$x $lang.$t"
27855 done
27856 echo "lang.$t: $x" >> Make-hooks
27857 done
27859 # --------
27860 # Option include files
27861 # --------
27863 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27864 option_includes="option-includes.mk"
27867 # --------
27868 # UNSORTED
27869 # --------
27871 # Create .gdbinit.
27873 echo "dir ." > .gdbinit
27874 echo "dir ${srcdir}" >> .gdbinit
27875 if test x$gdb_needs_out_file_path = xyes
27876 then
27877 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27879 if test "x$subdirs" != x; then
27880 for s in $subdirs
27882 echo "dir ${srcdir}/$s" >> .gdbinit
27883 done
27885 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27886 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27888 # Put a breakpoint on __asan_report_error to help with debugging buffer
27889 # overflow.
27890 case "$CFLAGS" in
27891 *-fsanitize=address*)
27892 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27894 esac
27896 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27900 # Find a directory in which to install a shared libgcc.
27902 # Check whether --enable-version-specific-runtime-libs was given.
27903 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27904 enableval=$enable_version_specific_runtime_libs;
27908 # Substitute configuration variables
27971 # Echo link setup.
27972 if test x${build} = x${host} ; then
27973 if test x${host} = x${target} ; then
27974 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27975 else
27976 echo "Links are now set up to build a cross-compiler" 1>&2
27977 echo " from ${host} to ${target}." 1>&2
27979 else
27980 if test x${host} = x${target} ; then
27981 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27982 echo " for ${target}." 1>&2
27983 else
27984 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27985 echo " from ${host} to ${target}." 1>&2
27997 if test "x${CLOOGLIBS}" != "x" ; then
27999 $as_echo "#define HAVE_cloog 1" >>confdefs.h
28003 # Check for plugin support
28004 # Check whether --enable-plugin was given.
28005 if test "${enable_plugin+set}" = set; then :
28006 enableval=$enable_plugin; enable_plugin=$enableval
28007 else
28008 enable_plugin=yes; default_plugin=yes
28012 pluginlibs=
28014 case "${host}" in
28015 *-*-darwin*)
28016 if test x$build = x$host; then
28017 export_sym_check="nm${exeext} -g"
28018 elif test x$host = x$target; then
28019 export_sym_check="$gcc_cv_nm -g"
28020 else
28021 export_sym_check=
28025 if test x$build = x$host; then
28026 export_sym_check="objdump${exeext} -T"
28027 elif test x$host = x$target; then
28028 export_sym_check="$gcc_cv_objdump -T"
28029 else
28030 export_sym_check=
28033 esac
28035 if test x"$enable_plugin" = x"yes"; then
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28038 $as_echo_n "checking for exported symbols... " >&6; }
28039 if test "x$export_sym_check" != x; then
28040 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28041 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28042 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28043 : # No need to use a flag
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28045 $as_echo "yes" >&6; }
28046 else
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28048 $as_echo "yes" >&6; }
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28050 $as_echo_n "checking for -rdynamic... " >&6; }
28051 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest$ac_exeext > /dev/null 2>&1
28052 if $export_sym_check conftest$ac_exeext | grep -q foobar > /dev/null; then
28053 plugin_rdynamic=yes
28054 pluginlibs="-rdynamic"
28055 else
28056 plugin_rdynamic=no
28057 enable_plugin=no
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28060 $as_echo "$plugin_rdynamic" >&6; }
28062 else
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28064 $as_echo "unable to check" >&6; }
28067 # Check -ldl
28068 saved_LIBS="$LIBS"
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28070 $as_echo_n "checking for library containing dlopen... " >&6; }
28071 if test "${ac_cv_search_dlopen+set}" = set; then :
28072 $as_echo_n "(cached) " >&6
28073 else
28074 ac_func_search_save_LIBS=$LIBS
28075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28076 /* end confdefs.h. */
28078 /* Override any GCC internal prototype to avoid an error.
28079 Use char because int might match the return type of a GCC
28080 builtin and then its argument prototype would still apply. */
28081 #ifdef __cplusplus
28082 extern "C"
28083 #endif
28084 char dlopen ();
28086 main ()
28088 return dlopen ();
28090 return 0;
28092 _ACEOF
28093 for ac_lib in '' dl; do
28094 if test -z "$ac_lib"; then
28095 ac_res="none required"
28096 else
28097 ac_res=-l$ac_lib
28098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28100 if ac_fn_c_try_link "$LINENO"; then :
28101 ac_cv_search_dlopen=$ac_res
28103 rm -f core conftest.err conftest.$ac_objext \
28104 conftest$ac_exeext
28105 if test "${ac_cv_search_dlopen+set}" = set; then :
28106 break
28108 done
28109 if test "${ac_cv_search_dlopen+set}" = set; then :
28111 else
28112 ac_cv_search_dlopen=no
28114 rm conftest.$ac_ext
28115 LIBS=$ac_func_search_save_LIBS
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28118 $as_echo "$ac_cv_search_dlopen" >&6; }
28119 ac_res=$ac_cv_search_dlopen
28120 if test "$ac_res" != no; then :
28121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28125 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
28126 pluginlibs="$pluginlibs -ldl"
28128 LIBS="$saved_LIBS"
28130 # Check that we can build shared objects with -fPIC -shared
28131 saved_LDFLAGS="$LDFLAGS"
28132 saved_CFLAGS="$CFLAGS"
28133 case "${host}" in
28134 *-*-darwin*)
28135 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28136 CFLAGS="$CFLAGS -fPIC"
28137 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
28140 CFLAGS="$CFLAGS -fPIC"
28141 LDFLAGS="$LDFLAGS -fPIC -shared"
28143 esac
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28145 $as_echo_n "checking for -fPIC -shared... " >&6; }
28146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28147 /* end confdefs.h. */
28148 extern int X;
28150 main ()
28152 return X == 0;
28154 return 0;
28156 _ACEOF
28157 if ac_fn_c_try_link "$LINENO"; then :
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28159 $as_echo "yes" >&6; }; have_pic_shared=yes
28160 else
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28162 $as_echo "no" >&6; }; have_pic_shared=no
28164 rm -f core conftest.err conftest.$ac_objext \
28165 conftest$ac_exeext conftest.$ac_ext
28166 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
28167 pluginlibs=
28168 enable_plugin=no
28170 LDFLAGS="$saved_LDFLAGS"
28171 CFLAGS="$saved_CFLAGS"
28173 # If plugin support had been requested but not available, fail.
28174 if test x"$enable_plugin" = x"no" ; then
28175 if test x"$default_plugin" != x"yes"; then
28176 as_fn_error "
28177 Building GCC with plugin support requires a host that supports
28178 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28185 if test x"$enable_plugin" = x"yes"; then
28187 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28192 # Enable --enable-host-shared
28193 # Check whether --enable-host-shared was given.
28194 if test "${enable_host_shared+set}" = set; then :
28195 enableval=$enable_host_shared; PICFLAG=-fPIC
28196 else
28197 PICFLAG=
28204 # Check whether --enable-libquadmath-support was given.
28205 if test "${enable_libquadmath_support+set}" = set; then :
28206 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
28207 else
28208 ENABLE_LIBQUADMATH_SUPPORT=yes
28211 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28213 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28218 # Specify what hash style to use by default.
28220 # Check whether --with-linker-hash-style was given.
28221 if test "${with_linker_hash_style+set}" = set; then :
28222 withval=$with_linker_hash_style; case x"$withval" in
28223 xsysv)
28224 LINKER_HASH_STYLE=sysv
28226 xgnu)
28227 LINKER_HASH_STYLE=gnu
28229 xboth)
28230 LINKER_HASH_STYLE=both
28233 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28235 esac
28236 else
28237 LINKER_HASH_STYLE=''
28240 if test x"${LINKER_HASH_STYLE}" != x; then
28242 cat >>confdefs.h <<_ACEOF
28243 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28244 _ACEOF
28248 # Configure the subdirectories
28249 # AC_CONFIG_SUBDIRS($subdirs)
28251 # Create the Makefile
28252 # and configure language subdirectories
28253 ac_config_files="$ac_config_files $all_outputs"
28256 ac_config_commands="$ac_config_commands default"
28258 cat >confcache <<\_ACEOF
28259 # This file is a shell script that caches the results of configure
28260 # tests run on this system so they can be shared between configure
28261 # scripts and configure runs, see configure's option --config-cache.
28262 # It is not useful on other systems. If it contains results you don't
28263 # want to keep, you may remove or edit it.
28265 # config.status only pays attention to the cache file if you give it
28266 # the --recheck option to rerun configure.
28268 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28270 # following values.
28272 _ACEOF
28274 # The following way of writing the cache mishandles newlines in values,
28275 # but we know of no workaround that is simple, portable, and efficient.
28276 # So, we kill variables containing newlines.
28277 # Ultrix sh set writes to stderr and can't be redirected directly,
28278 # and sets the high bit in the cache file unless we assign to the vars.
28280 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28281 eval ac_val=\$$ac_var
28282 case $ac_val in #(
28283 *${as_nl}*)
28284 case $ac_var in #(
28285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28287 esac
28288 case $ac_var in #(
28289 _ | IFS | as_nl) ;; #(
28290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28291 *) { eval $ac_var=; unset $ac_var;} ;;
28292 esac ;;
28293 esac
28294 done
28296 (set) 2>&1 |
28297 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28298 *${as_nl}ac_space=\ *)
28299 # `set' does not quote correctly, so add quotes: double-quote
28300 # substitution turns \\\\ into \\, and sed turns \\ into \.
28301 sed -n \
28302 "s/'/'\\\\''/g;
28303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28304 ;; #(
28306 # `set' quotes correctly as required by POSIX, so do not add quotes.
28307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28309 esac |
28310 sort
28312 sed '
28313 /^ac_cv_env_/b end
28314 t clear
28315 :clear
28316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28317 t end
28318 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28319 :end' >>confcache
28320 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28321 if test -w "$cache_file"; then
28322 test "x$cache_file" != "x/dev/null" &&
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28324 $as_echo "$as_me: updating cache $cache_file" >&6;}
28325 cat confcache >$cache_file
28326 else
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28331 rm -f confcache
28333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28334 # Let make expand exec_prefix.
28335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28337 DEFS=-DHAVE_CONFIG_H
28339 ac_libobjs=
28340 ac_ltlibobjs=
28341 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28342 # 1. Remove the extension, and $U if already installed.
28343 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28344 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28345 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28346 # will be set to the directory where LIBOBJS objects are built.
28347 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28348 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28349 done
28350 LIBOBJS=$ac_libobjs
28352 LTLIBOBJS=$ac_ltlibobjs
28357 : ${CONFIG_STATUS=./config.status}
28358 ac_write_fail=0
28359 ac_clean_files_save=$ac_clean_files
28360 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28362 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28363 as_write_fail=0
28364 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28365 #! $SHELL
28366 # Generated by $as_me.
28367 # Run this file to recreate the current configuration.
28368 # Compiler output produced by configure, useful for debugging
28369 # configure, is in config.log if it exists.
28371 debug=false
28372 ac_cs_recheck=false
28373 ac_cs_silent=false
28375 SHELL=\${CONFIG_SHELL-$SHELL}
28376 export SHELL
28377 _ASEOF
28378 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28379 ## -------------------- ##
28380 ## M4sh Initialization. ##
28381 ## -------------------- ##
28383 # Be more Bourne compatible
28384 DUALCASE=1; export DUALCASE # for MKS sh
28385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28386 emulate sh
28387 NULLCMD=:
28388 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28389 # is contrary to our usage. Disable this feature.
28390 alias -g '${1+"$@"}'='"$@"'
28391 setopt NO_GLOB_SUBST
28392 else
28393 case `(set -o) 2>/dev/null` in #(
28394 *posix*) :
28395 set -o posix ;; #(
28396 *) :
28398 esac
28402 as_nl='
28404 export as_nl
28405 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28406 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28407 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28408 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28409 # Prefer a ksh shell builtin over an external printf program on Solaris,
28410 # but without wasting forks for bash or zsh.
28411 if test -z "$BASH_VERSION$ZSH_VERSION" \
28412 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28413 as_echo='print -r --'
28414 as_echo_n='print -rn --'
28415 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28416 as_echo='printf %s\n'
28417 as_echo_n='printf %s'
28418 else
28419 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28420 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28421 as_echo_n='/usr/ucb/echo -n'
28422 else
28423 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28424 as_echo_n_body='eval
28425 arg=$1;
28426 case $arg in #(
28427 *"$as_nl"*)
28428 expr "X$arg" : "X\\(.*\\)$as_nl";
28429 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28430 esac;
28431 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28433 export as_echo_n_body
28434 as_echo_n='sh -c $as_echo_n_body as_echo'
28436 export as_echo_body
28437 as_echo='sh -c $as_echo_body as_echo'
28440 # The user is always right.
28441 if test "${PATH_SEPARATOR+set}" != set; then
28442 PATH_SEPARATOR=:
28443 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28444 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28445 PATH_SEPARATOR=';'
28450 # IFS
28451 # We need space, tab and new line, in precisely that order. Quoting is
28452 # there to prevent editors from complaining about space-tab.
28453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28454 # splitting by setting IFS to empty value.)
28455 IFS=" "" $as_nl"
28457 # Find who we are. Look in the path if we contain no directory separator.
28458 case $0 in #((
28459 *[\\/]* ) as_myself=$0 ;;
28460 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28461 for as_dir in $PATH
28463 IFS=$as_save_IFS
28464 test -z "$as_dir" && as_dir=.
28465 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28466 done
28467 IFS=$as_save_IFS
28470 esac
28471 # We did not find ourselves, most probably we were run as `sh COMMAND'
28472 # in which case we are not to be found in the path.
28473 if test "x$as_myself" = x; then
28474 as_myself=$0
28476 if test ! -f "$as_myself"; then
28477 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28478 exit 1
28481 # Unset variables that we do not need and which cause bugs (e.g. in
28482 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28483 # suppresses any "Segmentation fault" message there. '((' could
28484 # trigger a bug in pdksh 5.2.14.
28485 for as_var in BASH_ENV ENV MAIL MAILPATH
28486 do eval test x\${$as_var+set} = xset \
28487 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28488 done
28489 PS1='$ '
28490 PS2='> '
28491 PS4='+ '
28493 # NLS nuisances.
28494 LC_ALL=C
28495 export LC_ALL
28496 LANGUAGE=C
28497 export LANGUAGE
28499 # CDPATH.
28500 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28503 # as_fn_error ERROR [LINENO LOG_FD]
28504 # ---------------------------------
28505 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28506 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28507 # script with status $?, using 1 if that was 0.
28508 as_fn_error ()
28510 as_status=$?; test $as_status -eq 0 && as_status=1
28511 if test "$3"; then
28512 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28513 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28515 $as_echo "$as_me: error: $1" >&2
28516 as_fn_exit $as_status
28517 } # as_fn_error
28520 # as_fn_set_status STATUS
28521 # -----------------------
28522 # Set $? to STATUS, without forking.
28523 as_fn_set_status ()
28525 return $1
28526 } # as_fn_set_status
28528 # as_fn_exit STATUS
28529 # -----------------
28530 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28531 as_fn_exit ()
28533 set +e
28534 as_fn_set_status $1
28535 exit $1
28536 } # as_fn_exit
28538 # as_fn_unset VAR
28539 # ---------------
28540 # Portably unset VAR.
28541 as_fn_unset ()
28543 { eval $1=; unset $1;}
28545 as_unset=as_fn_unset
28546 # as_fn_append VAR VALUE
28547 # ----------------------
28548 # Append the text in VALUE to the end of the definition contained in VAR. Take
28549 # advantage of any shell optimizations that allow amortized linear growth over
28550 # repeated appends, instead of the typical quadratic growth present in naive
28551 # implementations.
28552 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28553 eval 'as_fn_append ()
28555 eval $1+=\$2
28557 else
28558 as_fn_append ()
28560 eval $1=\$$1\$2
28562 fi # as_fn_append
28564 # as_fn_arith ARG...
28565 # ------------------
28566 # Perform arithmetic evaluation on the ARGs, and store the result in the
28567 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28568 # must be portable across $(()) and expr.
28569 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28570 eval 'as_fn_arith ()
28572 as_val=$(( $* ))
28574 else
28575 as_fn_arith ()
28577 as_val=`expr "$@" || test $? -eq 1`
28579 fi # as_fn_arith
28582 if expr a : '\(a\)' >/dev/null 2>&1 &&
28583 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28584 as_expr=expr
28585 else
28586 as_expr=false
28589 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28590 as_basename=basename
28591 else
28592 as_basename=false
28595 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28596 as_dirname=dirname
28597 else
28598 as_dirname=false
28601 as_me=`$as_basename -- "$0" ||
28602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28603 X"$0" : 'X\(//\)$' \| \
28604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28605 $as_echo X/"$0" |
28606 sed '/^.*\/\([^/][^/]*\)\/*$/{
28607 s//\1/
28610 /^X\/\(\/\/\)$/{
28611 s//\1/
28614 /^X\/\(\/\).*/{
28615 s//\1/
28618 s/.*/./; q'`
28620 # Avoid depending upon Character Ranges.
28621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28624 as_cr_digits='0123456789'
28625 as_cr_alnum=$as_cr_Letters$as_cr_digits
28627 ECHO_C= ECHO_N= ECHO_T=
28628 case `echo -n x` in #(((((
28629 -n*)
28630 case `echo 'xy\c'` in
28631 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28632 xy) ECHO_C='\c';;
28633 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28634 ECHO_T=' ';;
28635 esac;;
28637 ECHO_N='-n';;
28638 esac
28640 rm -f conf$$ conf$$.exe conf$$.file
28641 if test -d conf$$.dir; then
28642 rm -f conf$$.dir/conf$$.file
28643 else
28644 rm -f conf$$.dir
28645 mkdir conf$$.dir 2>/dev/null
28647 if (echo >conf$$.file) 2>/dev/null; then
28648 if ln -s conf$$.file conf$$ 2>/dev/null; then
28649 as_ln_s='ln -s'
28650 # ... but there are two gotchas:
28651 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28652 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28653 # In both cases, we have to default to `cp -p'.
28654 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28655 as_ln_s='cp -p'
28656 elif ln conf$$.file conf$$ 2>/dev/null; then
28657 as_ln_s=ln
28658 else
28659 as_ln_s='cp -p'
28661 else
28662 as_ln_s='cp -p'
28664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28665 rmdir conf$$.dir 2>/dev/null
28668 # as_fn_mkdir_p
28669 # -------------
28670 # Create "$as_dir" as a directory, including parents if necessary.
28671 as_fn_mkdir_p ()
28674 case $as_dir in #(
28675 -*) as_dir=./$as_dir;;
28676 esac
28677 test -d "$as_dir" || eval $as_mkdir_p || {
28678 as_dirs=
28679 while :; do
28680 case $as_dir in #(
28681 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28682 *) as_qdir=$as_dir;;
28683 esac
28684 as_dirs="'$as_qdir' $as_dirs"
28685 as_dir=`$as_dirname -- "$as_dir" ||
28686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28687 X"$as_dir" : 'X\(//\)[^/]' \| \
28688 X"$as_dir" : 'X\(//\)$' \| \
28689 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28690 $as_echo X"$as_dir" |
28691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28692 s//\1/
28695 /^X\(\/\/\)[^/].*/{
28696 s//\1/
28699 /^X\(\/\/\)$/{
28700 s//\1/
28703 /^X\(\/\).*/{
28704 s//\1/
28707 s/.*/./; q'`
28708 test -d "$as_dir" && break
28709 done
28710 test -z "$as_dirs" || eval "mkdir $as_dirs"
28711 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28714 } # as_fn_mkdir_p
28715 if mkdir -p . 2>/dev/null; then
28716 as_mkdir_p='mkdir -p "$as_dir"'
28717 else
28718 test -d ./-p && rmdir ./-p
28719 as_mkdir_p=false
28722 if test -x / >/dev/null 2>&1; then
28723 as_test_x='test -x'
28724 else
28725 if ls -dL / >/dev/null 2>&1; then
28726 as_ls_L_option=L
28727 else
28728 as_ls_L_option=
28730 as_test_x='
28731 eval sh -c '\''
28732 if test -d "$1"; then
28733 test -d "$1/.";
28734 else
28735 case $1 in #(
28736 -*)set "./$1";;
28737 esac;
28738 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28739 ???[sx]*):;;*)false;;esac;fi
28740 '\'' sh
28743 as_executable_p=$as_test_x
28745 # Sed expression to map a string onto a valid CPP name.
28746 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28748 # Sed expression to map a string onto a valid variable name.
28749 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28752 exec 6>&1
28753 ## ----------------------------------- ##
28754 ## Main body of $CONFIG_STATUS script. ##
28755 ## ----------------------------------- ##
28756 _ASEOF
28757 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28760 # Save the log message, to keep $0 and so on meaningful, and to
28761 # report actual input values of CONFIG_FILES etc. instead of their
28762 # values after options handling.
28763 ac_log="
28764 This file was extended by $as_me, which was
28765 generated by GNU Autoconf 2.64. Invocation command line was
28767 CONFIG_FILES = $CONFIG_FILES
28768 CONFIG_HEADERS = $CONFIG_HEADERS
28769 CONFIG_LINKS = $CONFIG_LINKS
28770 CONFIG_COMMANDS = $CONFIG_COMMANDS
28771 $ $0 $@
28773 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28776 _ACEOF
28778 case $ac_config_files in *"
28779 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28780 esac
28782 case $ac_config_headers in *"
28783 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28784 esac
28787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28788 # Files that config.status was made for.
28789 config_files="$ac_config_files"
28790 config_headers="$ac_config_headers"
28791 config_commands="$ac_config_commands"
28793 _ACEOF
28795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28796 ac_cs_usage="\
28797 \`$as_me' instantiates files and other configuration actions
28798 from templates according to the current configuration. Unless the files
28799 and actions are specified as TAGs, all are instantiated by default.
28801 Usage: $0 [OPTION]... [TAG]...
28803 -h, --help print this help, then exit
28804 -V, --version print version number and configuration settings, then exit
28805 -q, --quiet, --silent
28806 do not print progress messages
28807 -d, --debug don't remove temporary files
28808 --recheck update $as_me by reconfiguring in the same conditions
28809 --file=FILE[:TEMPLATE]
28810 instantiate the configuration file FILE
28811 --header=FILE[:TEMPLATE]
28812 instantiate the configuration header FILE
28814 Configuration files:
28815 $config_files
28817 Configuration headers:
28818 $config_headers
28820 Configuration commands:
28821 $config_commands
28823 Report bugs to the package provider."
28825 _ACEOF
28826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28827 ac_cs_version="\\
28828 config.status
28829 configured by $0, generated by GNU Autoconf 2.64,
28830 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28832 Copyright (C) 2009 Free Software Foundation, Inc.
28833 This config.status script is free software; the Free Software Foundation
28834 gives unlimited permission to copy, distribute and modify it."
28836 ac_pwd='$ac_pwd'
28837 srcdir='$srcdir'
28838 AWK='$AWK'
28839 test -n "\$AWK" || AWK=awk
28840 _ACEOF
28842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28843 # The default lists apply if the user does not specify any file.
28844 ac_need_defaults=:
28845 while test $# != 0
28847 case $1 in
28848 --*=*)
28849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28851 ac_shift=:
28854 ac_option=$1
28855 ac_optarg=$2
28856 ac_shift=shift
28858 esac
28860 case $ac_option in
28861 # Handling of the options.
28862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28863 ac_cs_recheck=: ;;
28864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28865 $as_echo "$ac_cs_version"; exit ;;
28866 --debug | --debu | --deb | --de | --d | -d )
28867 debug=: ;;
28868 --file | --fil | --fi | --f )
28869 $ac_shift
28870 case $ac_optarg in
28871 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28872 esac
28873 as_fn_append CONFIG_FILES " '$ac_optarg'"
28874 ac_need_defaults=false;;
28875 --header | --heade | --head | --hea )
28876 $ac_shift
28877 case $ac_optarg in
28878 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28879 esac
28880 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28881 ac_need_defaults=false;;
28882 --he | --h)
28883 # Conflict between --help and --header
28884 as_fn_error "ambiguous option: \`$1'
28885 Try \`$0 --help' for more information.";;
28886 --help | --hel | -h )
28887 $as_echo "$ac_cs_usage"; exit ;;
28888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28889 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28890 ac_cs_silent=: ;;
28892 # This is an error.
28893 -*) as_fn_error "unrecognized option: \`$1'
28894 Try \`$0 --help' for more information." ;;
28896 *) as_fn_append ac_config_targets " $1"
28897 ac_need_defaults=false ;;
28899 esac
28900 shift
28901 done
28903 ac_configure_extra_args=
28905 if $ac_cs_silent; then
28906 exec 6>/dev/null
28907 ac_configure_extra_args="$ac_configure_extra_args --silent"
28910 _ACEOF
28911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28912 if \$ac_cs_recheck; then
28913 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28914 shift
28915 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28916 CONFIG_SHELL='$SHELL'
28917 export CONFIG_SHELL
28918 exec "\$@"
28921 _ACEOF
28922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28923 exec 5>>config.log
28925 echo
28926 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28927 ## Running $as_me. ##
28928 _ASBOX
28929 $as_echo "$ac_log"
28930 } >&5
28932 _ACEOF
28933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28935 # INIT-COMMANDS
28937 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28938 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28939 subdirs='$subdirs'
28941 _ACEOF
28943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28945 # Handling of arguments.
28946 for ac_config_target in $ac_config_targets
28948 case $ac_config_target in
28949 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28950 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28951 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28952 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28953 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28954 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28955 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28956 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28958 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28959 esac
28960 done
28963 # If the user did not use the arguments to specify the items to instantiate,
28964 # then the envvar interface is used. Set only those that are not.
28965 # We use the long form for the default assignment because of an extremely
28966 # bizarre bug on SunOS 4.1.3.
28967 if $ac_need_defaults; then
28968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28973 # Have a temporary directory for convenience. Make it in the build tree
28974 # simply because there is no reason against having it here, and in addition,
28975 # creating and moving files from /tmp can sometimes cause problems.
28976 # Hook for its removal unless debugging.
28977 # Note that there is a small window in which the directory will not be cleaned:
28978 # after its creation but before its name has been assigned to `$tmp'.
28979 $debug ||
28981 tmp=
28982 trap 'exit_status=$?
28983 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28985 trap 'as_fn_exit 1' 1 2 13 15
28987 # Create a (secure) tmp directory for tmp files.
28990 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28991 test -n "$tmp" && test -d "$tmp"
28992 } ||
28994 tmp=./conf$$-$RANDOM
28995 (umask 077 && mkdir "$tmp")
28996 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28998 # Set up the scripts for CONFIG_FILES section.
28999 # No need to generate them if there are no CONFIG_FILES.
29000 # This happens for instance with `./config.status config.h'.
29001 if test -n "$CONFIG_FILES"; then
29003 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
29004 ac_cs_awk_getline=:
29005 ac_cs_awk_pipe_init=
29006 ac_cs_awk_read_file='
29007 while ((getline aline < (F[key])) > 0)
29008 print(aline)
29009 close(F[key])'
29010 ac_cs_awk_pipe_fini=
29011 else
29012 ac_cs_awk_getline=false
29013 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
29014 ac_cs_awk_read_file='
29015 print "|#_!!_#|"
29016 print "cat " F[key] " &&"
29017 '$ac_cs_awk_pipe_init
29018 # The final `:' finishes the AND list.
29019 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
29021 ac_cr=`echo X | tr X '\015'`
29022 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29023 # But we know of no other shell where ac_cr would be empty at this
29024 # point, so we can use a bashism as a fallback.
29025 if test "x$ac_cr" = x; then
29026 eval ac_cr=\$\'\\r\'
29028 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29029 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29030 ac_cs_awk_cr='\r'
29031 else
29032 ac_cs_awk_cr=$ac_cr
29035 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29036 _ACEOF
29038 # Create commands to substitute file output variables.
29040 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29041 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29042 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
29043 echo "_ACAWK" &&
29044 echo "_ACEOF"
29045 } >conf$$files.sh &&
29046 . ./conf$$files.sh ||
29047 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29048 rm -f conf$$files.sh
29051 echo "cat >conf$$subs.awk <<_ACEOF" &&
29052 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29053 echo "_ACEOF"
29054 } >conf$$subs.sh ||
29055 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29056 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29057 ac_delim='%!_!# '
29058 for ac_last_try in false false false false false :; do
29059 . ./conf$$subs.sh ||
29060 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29062 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29063 if test $ac_delim_n = $ac_delim_num; then
29064 break
29065 elif $ac_last_try; then
29066 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29067 else
29068 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29070 done
29071 rm -f conf$$subs.sh
29073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29074 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29075 _ACEOF
29076 sed -n '
29078 s/^/S["/; s/!.*/"]=/
29081 s/^[^!]*!//
29082 :repl
29083 t repl
29084 s/'"$ac_delim"'$//
29085 t delim
29088 s/\(.\{148\}\).*/\1/
29089 t more1
29090 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29093 b repl
29094 :more1
29095 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29098 s/.\{148\}//
29099 t nl
29100 :delim
29102 s/\(.\{148\}\).*/\1/
29103 t more2
29104 s/["\\]/\\&/g; s/^/"/; s/$/"/
29107 :more2
29108 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29111 s/.\{148\}//
29112 t delim
29113 ' <conf$$subs.awk | sed '
29114 /^[^""]/{
29116 s/\n//
29118 ' >>$CONFIG_STATUS || ac_write_fail=1
29119 rm -f conf$$subs.awk
29120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29121 _ACAWK
29122 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29123 for (key in S) S_is_set[key] = 1
29124 FS = "\a"
29125 \$ac_cs_awk_pipe_init
29128 line = $ 0
29129 nfields = split(line, field, "@")
29130 substed = 0
29131 len = length(field[1])
29132 for (i = 2; i < nfields; i++) {
29133 key = field[i]
29134 keylen = length(key)
29135 if (S_is_set[key]) {
29136 value = S[key]
29137 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29138 len += length(value) + length(field[++i])
29139 substed = 1
29140 } else
29141 len += 1 + keylen
29143 if (nfields == 3 && !substed) {
29144 key = field[2]
29145 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29146 \$ac_cs_awk_read_file
29147 next
29150 print line
29152 \$ac_cs_awk_pipe_fini
29153 _ACAWK
29154 _ACEOF
29155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29156 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29157 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29158 else
29160 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29161 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29162 _ACEOF
29164 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29165 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29166 # trailing colons and then remove the whole line if VPATH becomes empty
29167 # (actually we leave an empty line to preserve line numbers).
29168 if test "x$srcdir" = x.; then
29169 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29170 s/:*\$(srcdir):*/:/
29171 s/:*\${srcdir}:*/:/
29172 s/:*@srcdir@:*/:/
29173 s/^\([^=]*=[ ]*\):*/\1/
29174 s/:*$//
29175 s/^[^=]*=[ ]*$//
29179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29180 fi # test -n "$CONFIG_FILES"
29182 # Set up the scripts for CONFIG_HEADERS section.
29183 # No need to generate them if there are no CONFIG_HEADERS.
29184 # This happens for instance with `./config.status Makefile'.
29185 if test -n "$CONFIG_HEADERS"; then
29186 cat >"$tmp/defines.awk" <<\_ACAWK ||
29187 BEGIN {
29188 _ACEOF
29190 # Transform confdefs.h into an awk script `defines.awk', embedded as
29191 # here-document in config.status, that substitutes the proper values into
29192 # config.h.in to produce config.h.
29194 # Create a delimiter string that does not exist in confdefs.h, to ease
29195 # handling of long lines.
29196 ac_delim='%!_!# '
29197 for ac_last_try in false false :; do
29198 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29199 if test -z "$ac_t"; then
29200 break
29201 elif $ac_last_try; then
29202 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29203 else
29204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29206 done
29208 # For the awk script, D is an array of macro values keyed by name,
29209 # likewise P contains macro parameters if any. Preserve backslash
29210 # newline sequences.
29212 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29213 sed -n '
29214 s/.\{148\}/&'"$ac_delim"'/g
29215 t rset
29216 :rset
29217 s/^[ ]*#[ ]*define[ ][ ]*/ /
29218 t def
29220 :def
29221 s/\\$//
29222 t bsnl
29223 s/["\\]/\\&/g
29224 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29225 D["\1"]=" \3"/p
29226 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29228 :bsnl
29229 s/["\\]/\\&/g
29230 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29231 D["\1"]=" \3\\\\\\n"\\/p
29232 t cont
29233 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29234 t cont
29236 :cont
29238 s/.\{148\}/&'"$ac_delim"'/g
29239 t clear
29240 :clear
29241 s/\\$//
29242 t bsnlc
29243 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29245 :bsnlc
29246 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29247 b cont
29248 ' <confdefs.h | sed '
29249 s/'"$ac_delim"'/"\\\
29250 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29253 for (key in D) D_is_set[key] = 1
29254 FS = "\a"
29256 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29257 line = \$ 0
29258 split(line, arg, " ")
29259 if (arg[1] == "#") {
29260 defundef = arg[2]
29261 mac1 = arg[3]
29262 } else {
29263 defundef = substr(arg[1], 2)
29264 mac1 = arg[2]
29266 split(mac1, mac2, "(") #)
29267 macro = mac2[1]
29268 prefix = substr(line, 1, index(line, defundef) - 1)
29269 if (D_is_set[macro]) {
29270 # Preserve the white space surrounding the "#".
29271 print prefix "define", macro P[macro] D[macro]
29272 next
29273 } else {
29274 # Replace #undef with comments. This is necessary, for example,
29275 # in the case of _POSIX_SOURCE, which is predefined and required
29276 # on some systems where configure will not decide to define it.
29277 if (defundef == "undef") {
29278 print "/*", prefix defundef, macro, "*/"
29279 next
29283 { print }
29284 _ACAWK
29285 _ACEOF
29286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29287 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29288 fi # test -n "$CONFIG_HEADERS"
29291 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29292 shift
29293 for ac_tag
29295 case $ac_tag in
29296 :[FHLC]) ac_mode=$ac_tag; continue;;
29297 esac
29298 case $ac_mode$ac_tag in
29299 :[FHL]*:*);;
29300 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29301 :[FH]-) ac_tag=-:-;;
29302 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29303 esac
29304 ac_save_IFS=$IFS
29305 IFS=:
29306 set x $ac_tag
29307 IFS=$ac_save_IFS
29308 shift
29309 ac_file=$1
29310 shift
29312 case $ac_mode in
29313 :L) ac_source=$1;;
29314 :[FH])
29315 ac_file_inputs=
29316 for ac_f
29318 case $ac_f in
29319 -) ac_f="$tmp/stdin";;
29320 *) # Look for the file first in the build tree, then in the source tree
29321 # (if the path is not absolute). The absolute path cannot be DOS-style,
29322 # because $ac_f cannot contain `:'.
29323 test -f "$ac_f" ||
29324 case $ac_f in
29325 [\\/$]*) false;;
29326 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29327 esac ||
29328 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29329 esac
29330 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29331 as_fn_append ac_file_inputs " '$ac_f'"
29332 done
29334 # Let's still pretend it is `configure' which instantiates (i.e., don't
29335 # use $as_me), people would be surprised to read:
29336 # /* config.h. Generated by config.status. */
29337 configure_input='Generated from '`
29338 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29339 `' by configure.'
29340 if test x"$ac_file" != x-; then
29341 configure_input="$ac_file. $configure_input"
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29343 $as_echo "$as_me: creating $ac_file" >&6;}
29345 # Neutralize special characters interpreted by sed in replacement strings.
29346 case $configure_input in #(
29347 *\&* | *\|* | *\\* )
29348 ac_sed_conf_input=`$as_echo "$configure_input" |
29349 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29350 *) ac_sed_conf_input=$configure_input;;
29351 esac
29353 case $ac_tag in
29354 *:-:* | *:-) cat >"$tmp/stdin" \
29355 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
29356 esac
29358 esac
29360 ac_dir=`$as_dirname -- "$ac_file" ||
29361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29362 X"$ac_file" : 'X\(//\)[^/]' \| \
29363 X"$ac_file" : 'X\(//\)$' \| \
29364 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29365 $as_echo X"$ac_file" |
29366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29367 s//\1/
29370 /^X\(\/\/\)[^/].*/{
29371 s//\1/
29374 /^X\(\/\/\)$/{
29375 s//\1/
29378 /^X\(\/\).*/{
29379 s//\1/
29382 s/.*/./; q'`
29383 as_dir="$ac_dir"; as_fn_mkdir_p
29384 ac_builddir=.
29386 case "$ac_dir" in
29387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29390 # A ".." for each directory in $ac_dir_suffix.
29391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29392 case $ac_top_builddir_sub in
29393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29395 esac ;;
29396 esac
29397 ac_abs_top_builddir=$ac_pwd
29398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29399 # for backward compatibility:
29400 ac_top_builddir=$ac_top_build_prefix
29402 case $srcdir in
29403 .) # We are building in place.
29404 ac_srcdir=.
29405 ac_top_srcdir=$ac_top_builddir_sub
29406 ac_abs_top_srcdir=$ac_pwd ;;
29407 [\\/]* | ?:[\\/]* ) # Absolute name.
29408 ac_srcdir=$srcdir$ac_dir_suffix;
29409 ac_top_srcdir=$srcdir
29410 ac_abs_top_srcdir=$srcdir ;;
29411 *) # Relative name.
29412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29413 ac_top_srcdir=$ac_top_build_prefix$srcdir
29414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29415 esac
29416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29419 case $ac_mode in
29422 # CONFIG_FILE
29425 _ACEOF
29427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29428 # If the template does not know about datarootdir, expand it.
29429 # FIXME: This hack should be removed a few years after 2.60.
29430 ac_datarootdir_hack=; ac_datarootdir_seen=
29431 ac_sed_dataroot='
29432 /datarootdir/ {
29436 /@datadir@/p
29437 /@docdir@/p
29438 /@infodir@/p
29439 /@localedir@/p
29440 /@mandir@/p'
29441 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29442 *datarootdir*) ac_datarootdir_seen=yes;;
29443 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29445 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29446 _ACEOF
29447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29448 ac_datarootdir_hack='
29449 s&@datadir@&$datadir&g
29450 s&@docdir@&$docdir&g
29451 s&@infodir@&$infodir&g
29452 s&@localedir@&$localedir&g
29453 s&@mandir@&$mandir&g
29454 s&\\\${datarootdir}&$datarootdir&g' ;;
29455 esac
29456 _ACEOF
29458 # Neutralize VPATH when `$srcdir' = `.'.
29459 # Shell code in configure.ac might set extrasub.
29460 # FIXME: do we really want to maintain this feature?
29461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29462 ac_sed_extra="$ac_vpsub
29463 $extrasub
29464 _ACEOF
29465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29468 s|@configure_input@|$ac_sed_conf_input|;t t
29469 s&@top_builddir@&$ac_top_builddir_sub&;t t
29470 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29471 s&@srcdir@&$ac_srcdir&;t t
29472 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29473 s&@top_srcdir@&$ac_top_srcdir&;t t
29474 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29475 s&@builddir@&$ac_builddir&;t t
29476 s&@abs_builddir@&$ac_abs_builddir&;t t
29477 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29478 $ac_datarootdir_hack
29480 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29481 if $ac_cs_awk_getline; then
29482 $AWK -f "$tmp/subs.awk"
29483 else
29484 $AWK -f "$tmp/subs.awk" | $SHELL
29485 fi >$tmp/out \
29486 || as_fn_error "could not create $ac_file" "$LINENO" 5
29488 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29489 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29490 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29492 which seems to be undefined. Please make sure it is defined." >&5
29493 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29494 which seems to be undefined. Please make sure it is defined." >&2;}
29496 rm -f "$tmp/stdin"
29497 case $ac_file in
29498 -) cat "$tmp/out" && rm -f "$tmp/out";;
29499 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29500 esac \
29501 || as_fn_error "could not create $ac_file" "$LINENO" 5
29505 # CONFIG_HEADER
29507 if test x"$ac_file" != x-; then
29509 $as_echo "/* $configure_input */" \
29510 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29511 } >"$tmp/config.h" \
29512 || as_fn_error "could not create $ac_file" "$LINENO" 5
29513 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29514 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29515 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29516 else
29517 rm -f "$ac_file"
29518 mv "$tmp/config.h" "$ac_file" \
29519 || as_fn_error "could not create $ac_file" "$LINENO" 5
29521 else
29522 $as_echo "/* $configure_input */" \
29523 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29524 || as_fn_error "could not create -" "$LINENO" 5
29528 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29529 $as_echo "$as_me: executing $ac_file commands" >&6;}
29531 esac
29534 case $ac_file$ac_mode in
29535 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29536 "gccdepdir":C)
29537 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29538 for lang in $subdirs c-family common
29540 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29541 done ;;
29542 "as":F) chmod +x as ;;
29543 "collect-ld":F) chmod +x collect-ld ;;
29544 "nm":F) chmod +x nm ;;
29545 "default":C)
29546 case ${CONFIG_HEADERS} in
29547 *auto-host.h:config.in*)
29548 echo > cstamp-h ;;
29549 esac
29550 # Make sure all the subdirs exist.
29551 for d in $subdirs doc build common c-family
29553 test -d $d || mkdir $d
29554 done
29557 esac
29558 done # for ac_tag
29561 as_fn_exit 0
29562 _ACEOF
29563 ac_clean_files=$ac_clean_files_save
29565 test $ac_write_fail = 0 ||
29566 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29569 # configure is writing to config.log, and then calls config.status.
29570 # config.status does its own redirection, appending to config.log.
29571 # Unfortunately, on DOS this fails, as config.log is still kept open
29572 # by configure, so config.status won't be able to write to it; its
29573 # output is simply discarded. So we exec the FD to /dev/null,
29574 # effectively closing config.log, so it can be properly (re)opened and
29575 # appended to by config.status. When coming back to configure, we
29576 # need to make the FD available again.
29577 if test "$no_create" != yes; then
29578 ac_cs_success=:
29579 ac_config_status_args=
29580 test "$silent" = yes &&
29581 ac_config_status_args="$ac_config_status_args --quiet"
29582 exec 5>/dev/null
29583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29584 exec 5>>config.log
29585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29586 # would make configure fail if this is the last instruction.
29587 $ac_cs_success || as_fn_exit $?
29589 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29591 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}