re PR c++/19476 (Missed null checking elimination with new)
[official-gcc.git] / gcc / configure
blob2ac03470bda00a928c501733c82ce215e395a6c8
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 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 ISLINC
608 ISLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir_add_sysroot
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 DO_LINK_MUTEX
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
700 FGREP
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CXXFLAGS
707 BUILD_CFLAGS
708 CXX_FOR_BUILD
709 CC_FOR_BUILD
710 inhibit_libc
711 SYSTEM_HEADER_DIR
713 CROSS
714 CATOBJEXT
715 GENCAT
716 INSTOBJEXT
717 DATADIRNAME
718 CATALOGS
719 POSUB
720 GMSGFMT
721 XGETTEXT
722 INCINTL
723 LIBINTL_DEP
724 LIBINTL
725 USE_NLS
726 extra_opt_files
727 extra_modes_file
728 NATIVE_SYSTEM_HEADER_DIR
729 objext
730 manext
731 LIBICONV_DEP
732 LTLIBICONV
733 LIBICONV
734 LDEXP_LIB
735 EXTRA_GCC_LIBS
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CCDEPMODE
739 DEPDIR
740 am__leading_dot
741 CXXCPP
744 BISON
745 FLEX
746 GENERATED_MANPAGES
747 BUILD_INFO
748 MAKEINFO
749 have_mktemp_command
750 make_compare_target
751 INSTALL_DATA
752 INSTALL_PROGRAM
753 INSTALL
754 ranlib_flags
755 RANLIB
757 LN_S
759 SET_MAKE
760 REPORT_BUGS_TEXI
761 REPORT_BUGS_TO
762 PKGVERSION
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 SYSROOT_CFLAGS_FOR_TARGET
768 enable_shared
769 enable_fixed_point
770 enable_decimal_float
771 with_float
772 with_cpu
773 enable_multiarch
774 enable_multilib
775 coverage_flags
776 valgrind_command
777 valgrind_path_defines
778 valgrind_path
779 TREECHECKING
780 TREEBROWSER
781 nocommon_flag
782 noexception_flags
783 warn_cxxflags
784 warn_cflags
785 c_strict_warn
786 strict_warn
787 c_loose_warn
788 loose_warn
789 EGREP
790 GREP
792 PICFLAG_FOR_TARGET
793 GNATMAKE
794 GNATBIND
795 ac_ct_CXX
796 CXXFLAGS
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
805 GENINSRC
806 target_subdir
807 host_subdir
808 build_subdir
809 build_libsubdir
810 target_noncanonical
811 target_os
812 target_vendor
813 target_cpu
814 target
815 host_os
816 host_vendor
817 host_cpu
818 host
819 build_os
820 build_vendor
821 build_cpu
822 build
823 target_alias
824 host_alias
825 build_alias
826 LIBS
827 ECHO_T
828 ECHO_N
829 ECHO_C
830 DEFS
831 mandir
832 localedir
833 libdir
834 psdir
835 pdfdir
836 dvidir
837 htmldir
838 infodir
839 docdir
840 oldincludedir
841 includedir
842 localstatedir
843 sharedstatedir
844 sysconfdir
845 datadir
846 datarootdir
847 libexecdir
848 sbindir
849 bindir
850 program_transform_name
851 prefix
852 exec_prefix
853 PACKAGE_URL
854 PACKAGE_BUGREPORT
855 PACKAGE_STRING
856 PACKAGE_VERSION
857 PACKAGE_TARNAME
858 PACKAGE_NAME
859 PATH_SEPARATOR
860 SHELL'
861 ac_subst_files='option_includes
862 language_hooks'
863 ac_user_opts='
864 enable_option_checking
865 with_build_libsubdir
866 with_local_prefix
867 with_gxx_include_dir
868 with_cpp_install_dir
869 enable_generated_files_in_srcdir
870 with_gnu_ld
871 with_ld
872 with_demangler_in_ld
873 with_gnu_as
874 with_as
875 enable_largefile
876 enable_werror_always
877 enable_checking
878 enable_coverage
879 enable_gather_detailed_mem_stats
880 with_stabs
881 enable_multilib
882 enable_multiarch
883 enable___cxa_atexit
884 enable_decimal_float
885 enable_fixed_point
886 enable_threads
887 enable_tls
888 enable_objc_gc
889 with_dwarf2
890 enable_shared
891 with_native_system_header_dir
892 with_build_sysroot
893 with_sysroot
894 with_specs
895 with_pkgversion
896 with_bugurl
897 enable_languages
898 with_multilib_list
899 enable_rpath
900 with_libiconv_prefix
901 enable_sjlj_exceptions
902 enable_secureplt
903 enable_leading_mingw64_underscores
904 enable_cld
905 enable_frame_pointer
906 enable_win32_registry
907 enable_static
908 with_pic
909 enable_fast_install
910 enable_libtool_lock
911 with_plugin_ld
912 enable_gnu_indirect_function
913 enable_initfini_array
914 enable_comdat
915 enable_gnu_unique_object
916 enable_linker_build_id
917 with_long_double_128
918 with_gc
919 with_system_zlib
920 enable_maintainer_mode
921 enable_link_mutex
922 enable_version_specific_runtime_libs
923 enable_plugin
924 enable_libquadmath_support
925 with_linker_hash_style
927 ac_precious_vars='build_alias
928 host_alias
929 target_alias
931 CFLAGS
932 LDFLAGS
933 LIBS
934 CPPFLAGS
936 CXXFLAGS
939 CXXCPP
940 GMPLIBS
941 GMPINC
942 ISLLIBS
943 ISLINC
944 CLOOGLIBS
945 CLOOGINC'
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 ac_unrecognized_opts=
952 ac_unrecognized_sep=
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
955 cache_file=/dev/null
956 exec_prefix=NONE
957 no_create=
958 no_recursion=
959 prefix=NONE
960 program_prefix=NONE
961 program_suffix=NONE
962 program_transform_name=s,x,x,
963 silent=
964 site=
965 srcdir=
966 verbose=
967 x_includes=NONE
968 x_libraries=NONE
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir='${exec_prefix}/bin'
977 sbindir='${exec_prefix}/sbin'
978 libexecdir='${exec_prefix}/libexec'
979 datarootdir='${prefix}/share'
980 datadir='${datarootdir}'
981 sysconfdir='${prefix}/etc'
982 sharedstatedir='${prefix}/com'
983 localstatedir='${prefix}/var'
984 includedir='${prefix}/include'
985 oldincludedir='/usr/include'
986 docdir='${datarootdir}/doc/${PACKAGE}'
987 infodir='${datarootdir}/info'
988 htmldir='${docdir}'
989 dvidir='${docdir}'
990 pdfdir='${docdir}'
991 psdir='${docdir}'
992 libdir='${exec_prefix}/lib'
993 localedir='${datarootdir}/locale'
994 mandir='${datarootdir}/man'
996 ac_prev=
997 ac_dashdash=
998 for ac_option
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\$ac_option
1003 ac_prev=
1004 continue
1007 case $ac_option in
1008 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1009 *) ac_optarg=yes ;;
1010 esac
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1016 ac_dashdash=yes ;;
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1280 -with-* | --with-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1330 -*) as_fn_error "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information."
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1340 esac
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1352 esac
1353 done
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error "missing argument to $ac_option"
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1362 no) ;;
1363 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 esac
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1376 case $ac_val in
1377 */ )
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1380 esac
1381 # Be sure to have absolute directory names.
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401 If a cross compiler is detected then cross compile mode will be used." >&2
1402 elif test "x$build_alias" != "x$host_alias"; then
1403 cross_compiling=yes
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410 test "$silent" = yes && exec 6>/dev/null
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error "pwd does not report name of working directory"
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 s//\1/
1435 /^X\(\/\/\)[^/].*/{
1436 s//\1/
1439 /^X\(\/\/\)$/{
1440 s//\1/
1443 /^X\(\/\).*/{
1444 s//\1/
1447 s/.*/./; q'`
1448 srcdir=$ac_confdir
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 srcdir=..
1452 else
1453 ac_srcdir_defaulted=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1462 pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487 \`configure' configures this package to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1496 Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1540 _ACEOF
1542 cat <<\_ACEOF
1544 Program names:
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1549 System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 --target=TARGET configure for building compilers for TARGET [HOST]
1553 _ACEOF
1556 if test -n "$ac_init_help"; then
1558 cat <<\_ACEOF
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-generated-files-in-srcdir
1565 put copies of generated files in source dir intended
1566 for creating source tarballs for users without
1567 texinfo bison or flex
1568 --disable-largefile omit support for large files
1569 --enable-werror-always enable -Werror despite compiler version
1570 --enable-checking[=LIST]
1571 enable expensive run-time checks. With LIST, enable
1572 only specific categories of checks. Categories are:
1573 yes,no,all,none,release. Flags are:
1574 assert,df,fold,gc,gcac,gimple,misc,
1575 rtlflag,rtl,runtime,tree,valgrind,types
1576 --enable-coverage[=LEVEL]
1577 enable compiler's code coverage collection. Use to
1578 measure compiler performance and locate unused parts
1579 of the compiler. With LEVEL, specify optimization.
1580 Values are opt, noopt, default is noopt
1581 --enable-gather-detailed-mem-stats
1582 enable detailed memory allocation stats gathering
1583 --enable-multilib enable library support for multiple ABIs
1584 --enable-multiarch enable support for multiarch paths
1585 --enable-__cxa_atexit enable __cxa_atexit for C++
1586 --enable-decimal-float={no,yes,bid,dpd}
1587 enable decimal float extension to C. Selecting 'bid'
1588 or 'dpd' choses which decimal floating point format
1589 to use
1590 --enable-fixed-point enable fixed-point arithmetic extension to C
1591 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1592 package
1593 --enable-tls enable or disable generation of tls code overriding
1594 the assembler check for tls support
1595 --enable-objc-gc enable the use of Boehm's garbage collector with the
1596 GNU Objective-C runtime
1597 --disable-shared don't provide a shared libgcc
1598 --enable-languages=LIST specify which front-ends to build
1599 --disable-rpath do not hardcode runtime library paths
1600 --enable-sjlj-exceptions
1601 arrange to use setjmp/longjmp exception handling
1602 --enable-secureplt enable -msecure-plt by default for PowerPC
1603 --enable-leading-mingw64-underscores
1604 enable leading underscores on 64 bit mingw targets
1605 --enable-cld enable -mcld by default for 32bit x86
1606 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1608 --disable-win32-registry
1609 disable lookup of installation paths in the Registry
1610 on Windows hosts
1611 --enable-win32-registry enable registry lookup (default)
1612 --enable-win32-registry=KEY
1613 use KEY instead of GCC version as the last portion
1614 of the registry key
1615 --enable-shared[=PKGS] build shared libraries [default=yes]
1616 --enable-static[=PKGS] build static libraries [default=yes]
1617 --enable-fast-install[=PKGS]
1618 optimize for fast installation [default=yes]
1619 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --enable-gnu-indirect-function
1621 enable the use of the @gnu_indirect_function to
1622 glibc systems
1623 --enable-initfini-array use .init_array/.fini_array sections
1624 --enable-comdat enable COMDAT group support
1625 --enable-gnu-unique-object
1626 enable the use of the @gnu_unique_object ELF
1627 extension on glibc systems
1628 --enable-linker-build-id
1629 compiler will always pass --build-id to linker
1630 --enable-maintainer-mode
1631 enable make rules and dependencies not useful (and
1632 sometimes confusing) to the casual installer
1633 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1634 thrashing on the build machine
1635 --enable-version-specific-runtime-libs
1636 specify that runtime libraries should be installed
1637 in a compiler-specific directory
1638 --enable-plugin enable plugin support
1639 --disable-libquadmath-support
1640 disable libquadmath support for Fortran
1642 Optional Packages:
1643 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1644 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1645 --with-build-libsubdir=DIR Directory where to find libraries for build system
1646 --with-local-prefix=DIR specifies directory to put local include
1647 --with-gxx-include-dir=DIR
1648 specifies directory to put g++ header files
1649 --with-cpp-install-dir=DIR
1650 install the user visible C preprocessor in DIR
1651 (relative to PREFIX) as well as PREFIX/bin
1652 --with-gnu-ld arrange to work with GNU ld
1653 --with-ld arrange to use the specified ld (full pathname)
1654 --with-demangler-in-ld try to use demangler in GNU ld
1655 --with-gnu-as arrange to work with GNU as
1656 --with-as arrange to use the specified as (full pathname)
1657 --with-stabs arrange to use stabs instead of host debug format
1658 --with-dwarf2 force the default debug format to be DWARF 2
1659 --with-native-system-header-dir=dir
1660 use dir as the directory to look for standard
1661 system header files in. Defaults to /usr/include.
1662 --with-build-sysroot=sysroot
1663 use sysroot as the system root during the build
1664 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1665 --with-specs=SPECS add SPECS to driver command-line processing
1666 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1667 --with-bugurl=URL Direct users to URL to report a bug
1668 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1669 --with-gnu-ld assume the C compiler uses GNU ld default=no
1670 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1671 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1672 --with-pic try to use only PIC/non-PIC objects [default=use
1673 both]
1674 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1675 --with-plugin-ld=[ARG] specify the plugin linker
1676 --with-long-double-128 use 128-bit long double by default
1677 --with-gc={page,zone} this option is not supported anymore. It used to
1678 choose the garbage collection mechanism to use with
1679 the compiler
1680 --with-system-zlib use installed libz
1681 --with-linker-hash-style={sysv,gnu,both}
1682 specify the linker hash style
1684 Some influential environment variables:
1685 CC C compiler command
1686 CFLAGS C compiler flags
1687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1688 nonstandard directory <lib dir>
1689 LIBS libraries to pass to the linker, e.g. -l<library>
1690 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1691 you have headers in a nonstandard directory <include dir>
1692 CXX C++ compiler command
1693 CXXFLAGS C++ compiler flags
1694 CPP C preprocessor
1695 CXXCPP C++ preprocessor
1696 GMPLIBS How to link GMP
1697 GMPINC How to find GMP include files
1698 ISLLIBS How to link ISL
1699 ISLINC How to find ISL include files
1700 CLOOGLIBS How to link CLOOG
1701 CLOOGINC How to find CLOOG include files
1703 Use these variables to override the choices made by `configure' or to help
1704 it to find libraries and programs with nonstandard names/locations.
1706 Report bugs to the package provider.
1707 _ACEOF
1708 ac_status=$?
1711 if test "$ac_init_help" = "recursive"; then
1712 # If there are subdirs, report their specific --help.
1713 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1714 test -d "$ac_dir" ||
1715 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1716 continue
1717 ac_builddir=.
1719 case "$ac_dir" in
1720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1723 # A ".." for each directory in $ac_dir_suffix.
1724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1725 case $ac_top_builddir_sub in
1726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1728 esac ;;
1729 esac
1730 ac_abs_top_builddir=$ac_pwd
1731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1732 # for backward compatibility:
1733 ac_top_builddir=$ac_top_build_prefix
1735 case $srcdir in
1736 .) # We are building in place.
1737 ac_srcdir=.
1738 ac_top_srcdir=$ac_top_builddir_sub
1739 ac_abs_top_srcdir=$ac_pwd ;;
1740 [\\/]* | ?:[\\/]* ) # Absolute name.
1741 ac_srcdir=$srcdir$ac_dir_suffix;
1742 ac_top_srcdir=$srcdir
1743 ac_abs_top_srcdir=$srcdir ;;
1744 *) # Relative name.
1745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1746 ac_top_srcdir=$ac_top_build_prefix$srcdir
1747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1748 esac
1749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751 cd "$ac_dir" || { ac_status=$?; continue; }
1752 # Check for guested configure.
1753 if test -f "$ac_srcdir/configure.gnu"; then
1754 echo &&
1755 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1756 elif test -f "$ac_srcdir/configure"; then
1757 echo &&
1758 $SHELL "$ac_srcdir/configure" --help=recursive
1759 else
1760 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1761 fi || ac_status=$?
1762 cd "$ac_pwd" || { ac_status=$?; break; }
1763 done
1766 test -n "$ac_init_help" && exit $ac_status
1767 if $ac_init_version; then
1768 cat <<\_ACEOF
1769 configure
1770 generated by GNU Autoconf 2.64
1772 Copyright (C) 2009 Free Software Foundation, Inc.
1773 This configure script is free software; the Free Software Foundation
1774 gives unlimited permission to copy, distribute and modify it.
1775 _ACEOF
1776 exit
1779 ## ------------------------ ##
1780 ## Autoconf initialization. ##
1781 ## ------------------------ ##
1783 # ac_fn_c_try_compile LINENO
1784 # --------------------------
1785 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_compile ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext
1790 if { { ac_try="$ac_compile"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_compile") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest.$ac_objext; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 return $ac_retval
1819 } # ac_fn_c_try_compile
1821 # ac_fn_cxx_try_compile LINENO
1822 # ----------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_cxx_try_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_cxx_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1852 ac_retval=1
1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855 return $ac_retval
1857 } # ac_fn_cxx_try_compile
1859 # ac_fn_c_try_cpp LINENO
1860 # ----------------------
1861 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_cpp ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_cpp conftest.$ac_ext"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } >/dev/null && {
1881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=1
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892 return $ac_retval
1894 } # ac_fn_c_try_cpp
1896 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897 # -------------------------------------------------------
1898 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899 # the include files in INCLUDES and setting the cache variable VAR
1900 # accordingly.
1901 ac_fn_c_check_header_mongrel ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 else
1914 # Is the header compilable?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916 $as_echo_n "checking $2 usability... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_compile "$LINENO"; then :
1923 ac_header_compiler=yes
1924 else
1925 ac_header_compiler=no
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929 $as_echo "$ac_header_compiler" >&6; }
1931 # Is the header present?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933 $as_echo_n "checking $2 presence... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_cpp "$LINENO"; then :
1939 ac_header_preproc=yes
1940 else
1941 ac_header_preproc=no
1943 rm -f conftest.err conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945 $as_echo "$ac_header_preproc" >&6; }
1947 # So? What about this header?
1948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949 yes:no: )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 no:yes:* )
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1959 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1963 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 esac
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 eval "$3=\$ac_header_compiler"
1975 eval ac_res=\$$3
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 } # ac_fn_c_check_header_mongrel
1983 # ac_fn_c_try_run LINENO
1984 # ----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986 # that executables *can* be run.
1987 ac_fn_c_try_run ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { { ac_try="$ac_link"
1991 case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001 { { case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_try") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; }; }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: program exited with status $ac_status" >&5
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 ac_retval=$ac_status
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 return $ac_retval
2023 } # ac_fn_c_try_run
2025 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2026 # -------------------------------------------------------
2027 # Tests whether HEADER exists and can be compiled using the include files in
2028 # INCLUDES, setting the cache variable VAR accordingly.
2029 ac_fn_c_check_header_compile ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2040 #include <$2>
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 eval "$3=yes"
2044 else
2045 eval "$3=no"
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_c_check_header_compile
2056 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2057 # --------------------------------------------
2058 # Tries to find the compile-time value of EXPR in a program that includes
2059 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060 # computed
2061 ac_fn_c_compute_int ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 if test "$cross_compiling" = yes; then
2065 # Depending upon the size, compute the lo and hi bounds.
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 static int test_array [1 - 2 * !(($2) >= 0)];
2073 test_array [0] = 0
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_lo=0 ac_mid=0
2081 while :; do
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2089 test_array [0] = 0
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=$ac_mid; break
2097 else
2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2099 if test $ac_lo -le $ac_mid; then
2100 ac_lo= ac_hi=
2101 break
2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 done
2107 else
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 static int test_array [1 - 2 * !(($2) < 0)];
2115 test_array [0] = 0
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_hi=-1 ac_mid=-1
2123 while :; do
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2128 main ()
2130 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2131 test_array [0] = 0
2134 return 0;
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_lo=$ac_mid; break
2139 else
2140 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2141 if test $ac_mid -le $ac_hi; then
2142 ac_lo= ac_hi=
2143 break
2145 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 done
2149 else
2150 ac_lo= ac_hi=
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 # Binary search between lo and hi bounds.
2156 while test "x$ac_lo" != "x$ac_hi"; do
2157 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
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_hi=$ac_mid
2173 else
2174 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 done
2178 case $ac_lo in #((
2179 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2180 '') ac_retval=1 ;;
2181 esac
2182 else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2186 static long int longval () { return $2; }
2187 static unsigned long int ulongval () { return $2; }
2188 #include <stdio.h>
2189 #include <stdlib.h>
2191 main ()
2194 FILE *f = fopen ("conftest.val", "w");
2195 if (! f)
2196 return 1;
2197 if (($2) < 0)
2199 long int i = longval ();
2200 if (i != ($2))
2201 return 1;
2202 fprintf (f, "%ld", i);
2204 else
2206 unsigned long int i = ulongval ();
2207 if (i != ($2))
2208 return 1;
2209 fprintf (f, "%lu", i);
2211 /* Do not output a trailing newline, as this causes \r\n confusion
2212 on some platforms. */
2213 return ferror (f) || fclose (f) != 0;
2216 return 0;
2218 _ACEOF
2219 if ac_fn_c_try_run "$LINENO"; then :
2220 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2221 else
2222 ac_retval=1
2224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2225 conftest.$ac_objext conftest.beam conftest.$ac_ext
2226 rm -f conftest.val
2229 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2230 return $ac_retval
2232 } # ac_fn_c_compute_int
2234 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2235 # -------------------------------------------
2236 # Tests whether TYPE exists after having included INCLUDES, setting cache
2237 # variable VAR accordingly.
2238 ac_fn_c_check_type ()
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2242 $as_echo_n "checking for $2... " >&6; }
2243 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2244 $as_echo_n "(cached) " >&6
2245 else
2246 eval "$3=no"
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2251 main ()
2253 if (sizeof ($2))
2254 return 0;
2256 return 0;
2258 _ACEOF
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2264 main ()
2266 if (sizeof (($2)))
2267 return 0;
2269 return 0;
2271 _ACEOF
2272 if ac_fn_c_try_compile "$LINENO"; then :
2274 else
2275 eval "$3=yes"
2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 eval ac_res=\$$3
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2283 $as_echo "$ac_res" >&6; }
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2286 } # ac_fn_c_check_type
2288 # ac_fn_c_find_intX_t LINENO BITS VAR
2289 # -----------------------------------
2290 # Finds a signed integer type with width BITS, setting cache variable VAR
2291 # accordingly.
2292 ac_fn_c_find_intX_t ()
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2296 $as_echo_n "checking for int$2_t... " >&6; }
2297 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 eval "$3=no"
2301 for ac_type in int$2_t 'int' 'long int' \
2302 'long long int' 'short int' 'signed char'; do
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2305 $ac_includes_default
2307 main ()
2309 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2310 test_array [0] = 0
2313 return 0;
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $ac_includes_default
2321 main ()
2323 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2324 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2325 test_array [0] = 0
2328 return 0;
2330 _ACEOF
2331 if ac_fn_c_try_compile "$LINENO"; then :
2333 else
2334 case $ac_type in #(
2335 int$2_t) :
2336 eval "$3=yes" ;; #(
2337 *) :
2338 eval "$3=\$ac_type" ;;
2339 esac
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 eval as_val=\$$3
2345 if test "x$as_val" = x""no; then :
2347 else
2348 break
2350 done
2352 eval ac_res=\$$3
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2354 $as_echo "$ac_res" >&6; }
2355 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357 } # ac_fn_c_find_intX_t
2359 # ac_fn_c_try_link LINENO
2360 # -----------------------
2361 # Try to link conftest.$ac_ext, and return whether this succeeded.
2362 ac_fn_c_try_link ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 rm -f conftest.$ac_objext conftest$ac_exeext
2366 if { { ac_try="$ac_link"
2367 case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2370 esac
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_link") 2>conftest.err
2374 ac_status=$?
2375 if test -s conftest.err; then
2376 grep -v '^ *+' conftest.err >conftest.er1
2377 cat conftest.er1 >&5
2378 mv -f conftest.er1 conftest.err
2380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381 test $ac_status = 0; } && {
2382 test -z "$ac_c_werror_flag" ||
2383 test ! -s conftest.err
2384 } && test -s conftest$ac_exeext && {
2385 test "$cross_compiling" = yes ||
2386 $as_test_x conftest$ac_exeext
2387 }; then :
2388 ac_retval=0
2389 else
2390 $as_echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2393 ac_retval=1
2395 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2396 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2397 # interfere with the next link command; also delete a directory that is
2398 # left behind by Apple's compiler. We do this before executing the actions.
2399 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 return $ac_retval
2403 } # ac_fn_c_try_link
2405 # ac_fn_c_find_uintX_t LINENO BITS VAR
2406 # ------------------------------------
2407 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2408 # accordingly.
2409 ac_fn_c_find_uintX_t ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2413 $as_echo_n "checking for uint$2_t... " >&6; }
2414 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 eval "$3=no"
2418 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2419 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2422 $ac_includes_default
2424 main ()
2426 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2427 test_array [0] = 0
2430 return 0;
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 case $ac_type in #(
2435 uint$2_t) :
2436 eval "$3=yes" ;; #(
2437 *) :
2438 eval "$3=\$ac_type" ;;
2439 esac
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 eval as_val=\$$3
2443 if test "x$as_val" = x""no; then :
2445 else
2446 break
2448 done
2450 eval ac_res=\$$3
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2455 } # ac_fn_c_find_uintX_t
2457 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2458 # ----------------------------------------------
2459 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2460 ac_fn_c_check_header_preproc ()
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2464 $as_echo_n "checking for $2... " >&6; }
2465 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2470 #include <$2>
2471 _ACEOF
2472 if ac_fn_c_try_cpp "$LINENO"; then :
2473 eval "$3=yes"
2474 else
2475 eval "$3=no"
2477 rm -f conftest.err conftest.$ac_ext
2479 eval ac_res=\$$3
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_check_header_preproc
2486 # ac_fn_cxx_try_cpp LINENO
2487 # ------------------------
2488 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2489 ac_fn_cxx_try_cpp ()
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 if { { ac_try="$ac_cpp conftest.$ac_ext"
2493 case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496 esac
2497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2498 $as_echo "$ac_try_echo"; } >&5
2499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2500 ac_status=$?
2501 if test -s conftest.err; then
2502 grep -v '^ *+' conftest.err >conftest.er1
2503 cat conftest.er1 >&5
2504 mv -f conftest.er1 conftest.err
2506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2507 test $ac_status = 0; } >/dev/null && {
2508 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2509 test ! -s conftest.err
2510 }; then :
2511 ac_retval=0
2512 else
2513 $as_echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2516 ac_retval=1
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519 return $ac_retval
2521 } # ac_fn_cxx_try_cpp
2523 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2524 # ------------------------------------------------
2525 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2526 ac_fn_cxx_check_header_preproc ()
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2530 $as_echo_n "checking for $2... " >&6; }
2531 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2536 #include <$2>
2537 _ACEOF
2538 if ac_fn_cxx_try_cpp "$LINENO"; then :
2539 eval "$3=yes"
2540 else
2541 eval "$3=no"
2543 rm -f conftest.err conftest.$ac_ext
2545 eval ac_res=\$$3
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2547 $as_echo "$ac_res" >&6; }
2548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550 } # ac_fn_cxx_check_header_preproc
2552 # ac_fn_c_check_func LINENO FUNC VAR
2553 # ----------------------------------
2554 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2555 ac_fn_c_check_func ()
2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2559 $as_echo_n "checking for $2... " >&6; }
2560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2565 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2567 #define $2 innocuous_$2
2569 /* System header to define __stub macros and hopefully few prototypes,
2570 which can conflict with char $2 (); below.
2571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2572 <limits.h> exists even on freestanding compilers. */
2574 #ifdef __STDC__
2575 # include <limits.h>
2576 #else
2577 # include <assert.h>
2578 #endif
2580 #undef $2
2582 /* Override any GCC internal prototype to avoid an error.
2583 Use char because int might match the return type of a GCC
2584 builtin and then its argument prototype would still apply. */
2585 #ifdef __cplusplus
2586 extern "C"
2587 #endif
2588 char $2 ();
2589 /* The GNU C library defines this for functions which it implements
2590 to always fail with ENOSYS. Some functions are actually named
2591 something starting with __ and the normal name is an alias. */
2592 #if defined __stub_$2 || defined __stub___$2
2593 choke me
2594 #endif
2597 main ()
2599 return $2 ();
2601 return 0;
2603 _ACEOF
2604 if ac_fn_c_try_link "$LINENO"; then :
2605 eval "$3=yes"
2606 else
2607 eval "$3=no"
2609 rm -f core conftest.err conftest.$ac_objext \
2610 conftest$ac_exeext conftest.$ac_ext
2612 eval ac_res=\$$3
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 $as_echo "$ac_res" >&6; }
2615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2617 } # ac_fn_c_check_func
2619 # ac_fn_cxx_try_link LINENO
2620 # -------------------------
2621 # Try to link conftest.$ac_ext, and return whether this succeeded.
2622 ac_fn_cxx_try_link ()
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 rm -f conftest.$ac_objext conftest$ac_exeext
2626 if { { ac_try="$ac_link"
2627 case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630 esac
2631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 $as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_link") 2>conftest.err
2634 ac_status=$?
2635 if test -s conftest.err; then
2636 grep -v '^ *+' conftest.err >conftest.er1
2637 cat conftest.er1 >&5
2638 mv -f conftest.er1 conftest.err
2640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2641 test $ac_status = 0; } && {
2642 test -z "$ac_cxx_werror_flag" ||
2643 test ! -s conftest.err
2644 } && test -s conftest$ac_exeext && {
2645 test "$cross_compiling" = yes ||
2646 $as_test_x conftest$ac_exeext
2647 }; then :
2648 ac_retval=0
2649 else
2650 $as_echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2653 ac_retval=1
2655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2657 # interfere with the next link command; also delete a directory that is
2658 # left behind by Apple's compiler. We do this before executing the actions.
2659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661 return $ac_retval
2663 } # ac_fn_cxx_try_link
2664 cat >config.log <<_ACEOF
2665 This file contains any messages produced by compilers while
2666 running configure, to aid debugging if configure makes a mistake.
2668 It was created by $as_me, which was
2669 generated by GNU Autoconf 2.64. Invocation command line was
2671 $ $0 $@
2673 _ACEOF
2674 exec 5>>config.log
2676 cat <<_ASUNAME
2677 ## --------- ##
2678 ## Platform. ##
2679 ## --------- ##
2681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2698 _ASUNAME
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 $as_echo "PATH: $as_dir"
2706 done
2707 IFS=$as_save_IFS
2709 } >&5
2711 cat >&5 <<_ACEOF
2714 ## ----------- ##
2715 ## Core tests. ##
2716 ## ----------- ##
2718 _ACEOF
2721 # Keep a trace of the command line.
2722 # Strip out --no-create and --no-recursion so they do not pile up.
2723 # Strip out --silent because we don't want to record it for future runs.
2724 # Also quote any args containing shell meta-characters.
2725 # Make two passes to allow for proper duplicate-argument suppression.
2726 ac_configure_args=
2727 ac_configure_args0=
2728 ac_configure_args1=
2729 ac_must_keep_next=false
2730 for ac_pass in 1 2
2732 for ac_arg
2734 case $ac_arg in
2735 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2736 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2737 | -silent | --silent | --silen | --sile | --sil)
2738 continue ;;
2739 *\'*)
2740 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2741 esac
2742 case $ac_pass in
2743 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2745 as_fn_append ac_configure_args1 " '$ac_arg'"
2746 if test $ac_must_keep_next = true; then
2747 ac_must_keep_next=false # Got value, back to normal.
2748 else
2749 case $ac_arg in
2750 *=* | --config-cache | -C | -disable-* | --disable-* \
2751 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2752 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2753 | -with-* | --with-* | -without-* | --without-* | --x)
2754 case "$ac_configure_args0 " in
2755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2756 esac
2758 -* ) ac_must_keep_next=true ;;
2759 esac
2761 as_fn_append ac_configure_args " '$ac_arg'"
2763 esac
2764 done
2765 done
2766 { ac_configure_args0=; unset ac_configure_args0;}
2767 { ac_configure_args1=; unset ac_configure_args1;}
2769 # When interrupted or exit'd, cleanup temporary files, and complete
2770 # config.log. We remove comments because anyway the quotes in there
2771 # would cause problems or look ugly.
2772 # WARNING: Use '\'' to represent an apostrophe within the trap.
2773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2774 trap 'exit_status=$?
2775 # Save into config.log some information that might help in debugging.
2777 echo
2779 cat <<\_ASBOX
2780 ## ---------------- ##
2781 ## Cache variables. ##
2782 ## ---------------- ##
2783 _ASBOX
2784 echo
2785 # The following way of writing the cache mishandles newlines in values,
2787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2788 eval ac_val=\$$ac_var
2789 case $ac_val in #(
2790 *${as_nl}*)
2791 case $ac_var in #(
2792 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2793 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2794 esac
2795 case $ac_var in #(
2796 _ | IFS | as_nl) ;; #(
2797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2798 *) { eval $ac_var=; unset $ac_var;} ;;
2799 esac ;;
2800 esac
2801 done
2802 (set) 2>&1 |
2803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2804 *${as_nl}ac_space=\ *)
2805 sed -n \
2806 "s/'\''/'\''\\\\'\'''\''/g;
2807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2808 ;; #(
2810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2812 esac |
2813 sort
2815 echo
2817 cat <<\_ASBOX
2818 ## ----------------- ##
2819 ## Output variables. ##
2820 ## ----------------- ##
2821 _ASBOX
2822 echo
2823 for ac_var in $ac_subst_vars
2825 eval ac_val=\$$ac_var
2826 case $ac_val in
2827 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2828 esac
2829 $as_echo "$ac_var='\''$ac_val'\''"
2830 done | sort
2831 echo
2833 if test -n "$ac_subst_files"; then
2834 cat <<\_ASBOX
2835 ## ------------------- ##
2836 ## File substitutions. ##
2837 ## ------------------- ##
2838 _ASBOX
2839 echo
2840 for ac_var in $ac_subst_files
2842 eval ac_val=\$$ac_var
2843 case $ac_val in
2844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2845 esac
2846 $as_echo "$ac_var='\''$ac_val'\''"
2847 done | sort
2848 echo
2851 if test -s confdefs.h; then
2852 cat <<\_ASBOX
2853 ## ----------- ##
2854 ## confdefs.h. ##
2855 ## ----------- ##
2856 _ASBOX
2857 echo
2858 cat confdefs.h
2859 echo
2861 test "$ac_signal" != 0 &&
2862 $as_echo "$as_me: caught signal $ac_signal"
2863 $as_echo "$as_me: exit $exit_status"
2864 } >&5
2865 rm -f core *.core core.conftest.* &&
2866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2867 exit $exit_status
2869 for ac_signal in 1 2 13 15; do
2870 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2871 done
2872 ac_signal=0
2874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2875 rm -f -r conftest* confdefs.h
2877 $as_echo "/* confdefs.h */" > confdefs.h
2879 # Predefined preprocessor variables.
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_NAME "$PACKAGE_NAME"
2883 _ACEOF
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2887 _ACEOF
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2891 _ACEOF
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE_STRING "$PACKAGE_STRING"
2895 _ACEOF
2897 cat >>confdefs.h <<_ACEOF
2898 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2899 _ACEOF
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_URL "$PACKAGE_URL"
2903 _ACEOF
2906 # Let the site file select an alternate cache file if it wants to.
2907 # Prefer an explicitly selected file to automatically selected ones.
2908 ac_site_file1=NONE
2909 ac_site_file2=NONE
2910 if test -n "$CONFIG_SITE"; then
2911 ac_site_file1=$CONFIG_SITE
2912 elif test "x$prefix" != xNONE; then
2913 ac_site_file1=$prefix/share/config.site
2914 ac_site_file2=$prefix/etc/config.site
2915 else
2916 ac_site_file1=$ac_default_prefix/share/config.site
2917 ac_site_file2=$ac_default_prefix/etc/config.site
2919 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2921 test "x$ac_site_file" = xNONE && continue
2922 if test -r "$ac_site_file"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2924 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2925 sed 's/^/| /' "$ac_site_file" >&5
2926 . "$ac_site_file"
2928 done
2930 if test -r "$cache_file"; then
2931 # Some versions of bash will fail to source /dev/null (special
2932 # files actually), so we avoid doing that.
2933 if test -f "$cache_file"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2935 $as_echo "$as_me: loading cache $cache_file" >&6;}
2936 case $cache_file in
2937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2938 *) . "./$cache_file";;
2939 esac
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2943 $as_echo "$as_me: creating cache $cache_file" >&6;}
2944 >$cache_file
2947 # Check that the precious variables saved in the cache have kept the same
2948 # value.
2949 ac_cache_corrupted=false
2950 for ac_var in $ac_precious_vars; do
2951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2952 eval ac_new_set=\$ac_env_${ac_var}_set
2953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2954 eval ac_new_val=\$ac_env_${ac_var}_value
2955 case $ac_old_set,$ac_new_set in
2956 set,)
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2958 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2959 ac_cache_corrupted=: ;;
2960 ,set)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2962 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2963 ac_cache_corrupted=: ;;
2964 ,);;
2966 if test "x$ac_old_val" != "x$ac_new_val"; then
2967 # differences in whitespace do not lead to failure.
2968 ac_old_val_w=`echo x $ac_old_val`
2969 ac_new_val_w=`echo x $ac_new_val`
2970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2973 ac_cache_corrupted=:
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2977 eval $ac_var=\$ac_old_val
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2980 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2982 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2983 fi;;
2984 esac
2985 # Pass precious variables to config.status.
2986 if test "$ac_new_set" = set; then
2987 case $ac_new_val in
2988 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2989 *) ac_arg=$ac_var=$ac_new_val ;;
2990 esac
2991 case " $ac_configure_args " in
2992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2993 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2994 esac
2996 done
2997 if $ac_cache_corrupted; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3001 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3002 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3004 ## -------------------- ##
3005 ## Main body of script. ##
3006 ## -------------------- ##
3008 ac_ext=c
3009 ac_cpp='$CPP $CPPFLAGS'
3010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3022 gcc_version=`cat $srcdir/BASE-VER`
3024 # Determine the host, build, and target systems
3025 ac_aux_dir=
3026 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3027 for ac_t in install-sh install.sh shtool; do
3028 if test -f "$ac_dir/$ac_t"; then
3029 ac_aux_dir=$ac_dir
3030 ac_install_sh="$ac_aux_dir/$ac_t -c"
3031 break 2
3033 done
3034 done
3035 if test -z "$ac_aux_dir"; then
3036 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3039 # These three variables are undocumented and unsupported,
3040 # and are intended to be withdrawn in a future Autoconf release.
3041 # They can cause serious problems if a builder's source tree is in a directory
3042 # whose full name contains unusual characters.
3043 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3044 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3045 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3048 # Make sure we can run config.sub.
3049 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3050 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3053 $as_echo_n "checking build system type... " >&6; }
3054 if test "${ac_cv_build+set}" = set; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 ac_build_alias=$build_alias
3058 test "x$ac_build_alias" = x &&
3059 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3060 test "x$ac_build_alias" = x &&
3061 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3062 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3063 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3067 $as_echo "$ac_cv_build" >&6; }
3068 case $ac_cv_build in
3069 *-*-*) ;;
3070 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3071 esac
3072 build=$ac_cv_build
3073 ac_save_IFS=$IFS; IFS='-'
3074 set x $ac_cv_build
3075 shift
3076 build_cpu=$1
3077 build_vendor=$2
3078 shift; shift
3079 # Remember, the first character of IFS is used to create $*,
3080 # except with old shells:
3081 build_os=$*
3082 IFS=$ac_save_IFS
3083 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3087 $as_echo_n "checking host system type... " >&6; }
3088 if test "${ac_cv_host+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test "x$host_alias" = x; then
3092 ac_cv_host=$ac_cv_build
3093 else
3094 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3095 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3100 $as_echo "$ac_cv_host" >&6; }
3101 case $ac_cv_host in
3102 *-*-*) ;;
3103 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3104 esac
3105 host=$ac_cv_host
3106 ac_save_IFS=$IFS; IFS='-'
3107 set x $ac_cv_host
3108 shift
3109 host_cpu=$1
3110 host_vendor=$2
3111 shift; shift
3112 # Remember, the first character of IFS is used to create $*,
3113 # except with old shells:
3114 host_os=$*
3115 IFS=$ac_save_IFS
3116 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3120 $as_echo_n "checking target system type... " >&6; }
3121 if test "${ac_cv_target+set}" = set; then :
3122 $as_echo_n "(cached) " >&6
3123 else
3124 if test "x$target_alias" = x; then
3125 ac_cv_target=$ac_cv_host
3126 else
3127 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3128 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3133 $as_echo "$ac_cv_target" >&6; }
3134 case $ac_cv_target in
3135 *-*-*) ;;
3136 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3137 esac
3138 target=$ac_cv_target
3139 ac_save_IFS=$IFS; IFS='-'
3140 set x $ac_cv_target
3141 shift
3142 target_cpu=$1
3143 target_vendor=$2
3144 shift; shift
3145 # Remember, the first character of IFS is used to create $*,
3146 # except with old shells:
3147 target_os=$*
3148 IFS=$ac_save_IFS
3149 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3152 # The aliases save the names the user supplied, while $host etc.
3153 # will get canonicalized.
3154 test -n "$target_alias" &&
3155 test "$program_prefix$program_suffix$program_transform_name" = \
3156 NONENONEs,x,x, &&
3157 program_prefix=${target_alias}-
3159 # Determine the noncanonical target name, for directory use.
3160 case ${build_alias} in
3161 "") build_noncanonical=${build} ;;
3162 *) build_noncanonical=${build_alias} ;;
3163 esac
3165 case ${host_alias} in
3166 "") host_noncanonical=${build_noncanonical} ;;
3167 *) host_noncanonical=${host_alias} ;;
3168 esac
3170 case ${target_alias} in
3171 "") target_noncanonical=${host_noncanonical} ;;
3172 *) target_noncanonical=${target_alias} ;;
3173 esac
3178 # Determine the target- and build-specific subdirectories
3180 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3181 # have matching libraries, they should use host libraries: Makefile.tpl
3182 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3183 # However, they still use the build modules, because the corresponding
3184 # host modules (e.g. bison) are only built for the host when bootstrap
3185 # finishes. So:
3186 # - build_subdir is where we find build modules, and never changes.
3187 # - build_libsubdir is where we find build libraries, and can be overridden.
3189 # Prefix 'build-' so this never conflicts with target_subdir.
3190 build_subdir="build-${build_noncanonical}"
3192 # Check whether --with-build-libsubdir was given.
3193 if test "${with_build_libsubdir+set}" = set; then :
3194 withval=$with_build_libsubdir; build_libsubdir="$withval"
3195 else
3196 build_libsubdir="$build_subdir"
3199 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3200 if ( test $srcdir = . && test -d gcc ) \
3201 || test -d $srcdir/../host-${host_noncanonical}; then
3202 host_subdir="host-${host_noncanonical}"
3203 else
3204 host_subdir=.
3206 # No prefix.
3207 target_subdir=${target_noncanonical}
3210 # Set program_transform_name
3211 test "$program_prefix" != NONE &&
3212 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3213 # Use a double $ so make ignores it.
3214 test "$program_suffix" != NONE &&
3215 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3216 # Double any \ or $.
3217 # By default was `s,x,x', remove it if useless.
3218 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3219 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3222 # Check for bogus environment variables.
3223 # Test if LIBRARY_PATH contains the notation for the current directory
3224 # since this would lead to problems installing/building glibc.
3225 # LIBRARY_PATH contains the current directory if one of the following
3226 # is true:
3227 # - one of the terminals (":" and ";") is the first or last sign
3228 # - two terminals occur directly after each other
3229 # - the path contains an element with a dot in it
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3231 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3232 case ${LIBRARY_PATH} in
3233 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3234 library_path_setting="contains current directory"
3237 library_path_setting="ok"
3239 esac
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3241 $as_echo "$library_path_setting" >&6; }
3242 if test "$library_path_setting" != "ok"; then
3243 as_fn_error "
3244 *** LIBRARY_PATH shouldn't contain the current directory when
3245 *** building gcc. Please change the environment variable
3246 *** and run configure again." "$LINENO" 5
3249 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3250 # since this would lead to problems installing/building glibc.
3251 # GCC_EXEC_PREFIX contains the current directory if one of the following
3252 # is true:
3253 # - one of the terminals (":" and ";") is the first or last sign
3254 # - two terminals occur directly after each other
3255 # - the path contains an element with a dot in it
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3257 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3258 case ${GCC_EXEC_PREFIX} in
3259 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3260 gcc_exec_prefix_setting="contains current directory"
3263 gcc_exec_prefix_setting="ok"
3265 esac
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3267 $as_echo "$gcc_exec_prefix_setting" >&6; }
3268 if test "$gcc_exec_prefix_setting" != "ok"; then
3269 as_fn_error "
3270 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3271 *** building gcc. Please change the environment variable
3272 *** and run configure again." "$LINENO" 5
3275 # -----------
3276 # Directories
3277 # -----------
3279 # Specify the local prefix
3280 local_prefix=
3282 # Check whether --with-local-prefix was given.
3283 if test "${with_local_prefix+set}" = set; then :
3284 withval=$with_local_prefix; case "${withval}" in
3285 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3286 no) ;;
3287 *) local_prefix=$with_local_prefix ;;
3288 esac
3292 # Default local prefix if it is empty
3293 if test x$local_prefix = x; then
3294 local_prefix=/usr/local
3297 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3298 # passed in by the toplevel make and thus we'd get different behavior
3299 # depending on where we built the sources.
3300 gcc_gxx_include_dir=
3301 # Specify the g++ header file directory
3303 # Check whether --with-gxx-include-dir was given.
3304 if test "${with_gxx_include_dir+set}" = set; then :
3305 withval=$with_gxx_include_dir; case "${withval}" in
3306 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3307 no) ;;
3308 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3309 esac
3313 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3314 if test x${gcc_gxx_include_dir} = x; then
3315 if test x${enable_version_specific_runtime_libs} = xyes; then
3316 gcc_gxx_include_dir='${libsubdir}/include/c++'
3317 else
3318 libstdcxx_incdir='include/c++/$(version)'
3319 if test x$host != x$target; then
3320 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3322 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3326 gcc_gxx_include_dir_add_sysroot=0
3327 if test "${with_sysroot+set}" = set; then
3328 gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3329 if test "${gcc_gxx_without_sysroot}"; then
3330 gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
3331 gcc_gxx_include_dir_add_sysroot=1
3336 # Check whether --with-cpp_install_dir was given.
3337 if test "${with_cpp_install_dir+set}" = set; then :
3338 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3339 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3340 elif test x$withval != xno; then
3341 cpp_install_dir=$withval
3346 # We would like to our source tree to be readonly. However when releases or
3347 # pre-releases are generated, the flex/bison generated files as well as the
3348 # various formats of manuals need to be included along with the rest of the
3349 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3350 # just that.
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3353 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3354 # Check whether --enable-generated-files-in-srcdir was given.
3355 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3356 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3357 else
3358 generated_files_in_srcdir=no
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3363 $as_echo "$generated_files_in_srcdir" >&6; }
3365 if test "$generated_files_in_srcdir" = "yes"; then
3366 GENINSRC=''
3367 else
3368 GENINSRC='#'
3372 # -------------------
3373 # Find default linker
3374 # -------------------
3376 # With GNU ld
3378 # Check whether --with-gnu-ld was given.
3379 if test "${with_gnu_ld+set}" = set; then :
3380 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3381 else
3382 gnu_ld_flag=no
3386 # With pre-defined ld
3388 # Check whether --with-ld was given.
3389 if test "${with_ld+set}" = set; then :
3390 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3393 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3394 if test ! -x "$DEFAULT_LINKER"; then
3395 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3396 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3397 gnu_ld_flag=yes
3400 cat >>confdefs.h <<_ACEOF
3401 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3402 _ACEOF
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3407 $as_echo_n "checking whether a default linker was specified... " >&6; }
3408 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3409 if test x"$gnu_ld_flag" = x"no"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3411 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3414 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3421 # With demangler in GNU ld
3423 # Check whether --with-demangler-in-ld was given.
3424 if test "${with_demangler_in_ld+set}" = set; then :
3425 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3426 else
3427 demangler_in_ld=yes
3431 # ----------------------
3432 # Find default assembler
3433 # ----------------------
3435 # With GNU as
3437 # Check whether --with-gnu-as was given.
3438 if test "${with_gnu_as+set}" = set; then :
3439 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3440 else
3441 gas_flag=no
3446 # Check whether --with-as was given.
3447 if test "${with_as+set}" = set; then :
3448 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3451 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3452 if test ! -x "$DEFAULT_ASSEMBLER"; then
3453 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3454 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3455 gas_flag=yes
3458 cat >>confdefs.h <<_ACEOF
3459 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3460 _ACEOF
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3465 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3466 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3467 if test x"$gas_flag" = x"no"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3469 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3472 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3479 # ---------------
3480 # Find C compiler
3481 # ---------------
3483 # If a non-executable a.out is present (e.g. created by GNU as above even if
3484 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3485 # file, even when creating an executable, so an execution test fails.
3486 # Remove possible default executable files to avoid this.
3488 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3489 # Autoconf includes it.
3490 rm -f a.out a.exe b.out
3492 # Find the native compiler
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test -n "$ac_tool_prefix"; then
3499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if test "${ac_cv_prog_CC+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if test -n "$CC"; then
3507 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3520 done
3521 done
3522 IFS=$as_save_IFS
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3537 if test -z "$ac_cv_prog_CC"; then
3538 ac_ct_CC=$CC
3539 # Extract the first word of "gcc", so it can be a program name with args.
3540 set dummy gcc; ac_word=$2
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 $as_echo_n "checking for $ac_word... " >&6; }
3543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3545 else
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548 else
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 for as_dir in $PATH
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3556 ac_cv_prog_ac_ct_CC="gcc"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3560 done
3561 done
3562 IFS=$as_save_IFS
3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567 if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569 $as_echo "$ac_ct_CC" >&6; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3575 if test "x$ac_ct_CC" = x; then
3576 CC=""
3577 else
3578 case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584 CC=$ac_ct_CC
3586 else
3587 CC="$ac_cv_prog_CC"
3590 if test -z "$CC"; then
3591 if test -n "$ac_tool_prefix"; then
3592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3593 set dummy ${ac_tool_prefix}cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_CC+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609 ac_cv_prog_CC="${ac_tool_prefix}cc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3615 IFS=$as_save_IFS
3619 CC=$ac_cv_prog_CC
3620 if test -n "$CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3631 if test -z "$CC"; then
3632 # Extract the first word of "cc", so it can be a program name with args.
3633 set dummy cc; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 ac_prog_rejected=no
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3651 ac_prog_rejected=yes
3652 continue
3654 ac_cv_prog_CC="cc"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3658 done
3659 done
3660 IFS=$as_save_IFS
3662 if test $ac_prog_rejected = yes; then
3663 # We found a bogon in the path, so make sure we never use it.
3664 set dummy $ac_cv_prog_CC
3665 shift
3666 if test $# != 0; then
3667 # We chose a different compiler from the bogus one.
3668 # However, it has the same basename, so the bogon will be chosen
3669 # first if we set CC to just the basename; use the full file name.
3670 shift
3671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 $as_echo "$CC" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3687 if test -z "$CC"; then
3688 if test -n "$ac_tool_prefix"; then
3689 for ac_prog in cl.exe
3691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if test "${ac_cv_prog_CC+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 break 2
3712 done
3713 done
3714 IFS=$as_save_IFS
3718 CC=$ac_cv_prog_CC
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3728 test -n "$CC" && break
3729 done
3731 if test -z "$CC"; then
3732 ac_ct_CC=$CC
3733 for ac_prog in cl.exe
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy $ac_prog; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752 ac_cv_prog_ac_ct_CC="$ac_prog"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3756 done
3757 done
3758 IFS=$as_save_IFS
3762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3763 if test -n "$ac_ct_CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3765 $as_echo "$ac_ct_CC" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3772 test -n "$ac_ct_CC" && break
3773 done
3775 if test "x$ac_ct_CC" = x; then
3776 CC=""
3777 else
3778 case $cross_compiling:$ac_tool_warned in
3779 yes:)
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3782 ac_tool_warned=yes ;;
3783 esac
3784 CC=$ac_ct_CC
3791 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error "no acceptable C compiler found in \$PATH
3794 See \`config.log' for more details." "$LINENO" 5; }
3796 # Provide some information about the compiler.
3797 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3798 set X $ac_compile
3799 ac_compiler=$2
3800 for ac_option in --version -v -V -qversion; do
3801 { { ac_try="$ac_compiler $ac_option >&5"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3809 ac_status=$?
3810 if test -s conftest.err; then
3811 sed '10a\
3812 ... rest of stderr output deleted ...
3813 10q' conftest.err >conftest.er1
3814 cat conftest.er1 >&5
3815 rm -f conftest.er1 conftest.err
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }
3819 done
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3825 main ()
3829 return 0;
3831 _ACEOF
3832 ac_clean_files_save=$ac_clean_files
3833 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3834 # Try to create an executable without -o first, disregard a.out.
3835 # It will help us diagnose broken compilers, and finding out an intuition
3836 # of exeext.
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3838 $as_echo_n "checking for C compiler default output file name... " >&6; }
3839 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3841 # The possible output files:
3842 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3844 ac_rmfiles=
3845 for ac_file in $ac_files
3847 case $ac_file in
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3849 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3850 esac
3851 done
3852 rm -f $ac_rmfiles
3854 if { { ac_try="$ac_link_default"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_link_default") 2>&5
3862 ac_status=$?
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; then :
3865 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3866 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3867 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3868 # so that the user can short-circuit this test for compilers unknown to
3869 # Autoconf.
3870 for ac_file in $ac_files ''
3872 test -f "$ac_file" || continue
3873 case $ac_file in
3874 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3876 [ab].out )
3877 # We found the default executable, but exeext='' is most
3878 # certainly right.
3879 break;;
3880 *.* )
3881 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3882 then :; else
3883 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3885 # We set ac_cv_exeext here because the later test for it is not
3886 # safe: cross compilers may not add the suffix if given an `-o'
3887 # argument, so we may need to know it at that point already.
3888 # Even if this section looks crufty: it has the advantage of
3889 # actually working.
3890 break;;
3892 break;;
3893 esac
3894 done
3895 test "$ac_cv_exeext" = no && ac_cv_exeext=
3897 else
3898 ac_file=''
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3901 $as_echo "$ac_file" >&6; }
3902 if test -z "$ac_file"; then :
3903 $as_echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 { as_fn_set_status 77
3909 as_fn_error "C compiler cannot create executables
3910 See \`config.log' for more details." "$LINENO" 5; }; }
3912 ac_exeext=$ac_cv_exeext
3914 # Check that the compiler produces executables we can run. If not, either
3915 # the compiler is broken, or we cross compile.
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3917 $as_echo_n "checking whether the C compiler works... " >&6; }
3918 # If not cross compiling, check that we can run a simple program.
3919 if test "$cross_compiling" != yes; then
3920 if { ac_try='./$ac_file'
3921 { { case "(($ac_try" in
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_try") 2>&5
3928 ac_status=$?
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }; }; then
3931 cross_compiling=no
3932 else
3933 if test "$cross_compiling" = maybe; then
3934 cross_compiling=yes
3935 else
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "cannot run C compiled programs.
3939 If you meant to cross compile, use \`--host'.
3940 See \`config.log' for more details." "$LINENO" 5; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3945 $as_echo "yes" >&6; }
3947 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3948 ac_clean_files=$ac_clean_files_save
3949 # Check that the compiler produces executables we can run. If not, either
3950 # the compiler is broken, or we cross compile.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3952 $as_echo_n "checking whether we are cross compiling... " >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3954 $as_echo "$cross_compiling" >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3957 $as_echo_n "checking for suffix of executables... " >&6; }
3958 if { { ac_try="$ac_link"
3959 case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962 esac
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_link") 2>&5
3966 ac_status=$?
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }; then :
3969 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3970 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3971 # work properly (i.e., refer to `conftest.exe'), while it won't with
3972 # `rm'.
3973 for ac_file in conftest.exe conftest conftest.*; do
3974 test -f "$ac_file" || continue
3975 case $ac_file in
3976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3977 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3978 break;;
3979 * ) break;;
3980 esac
3981 done
3982 else
3983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error "cannot compute suffix of executables: cannot compile and link
3986 See \`config.log' for more details." "$LINENO" 5; }
3988 rm -f conftest$ac_cv_exeext
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3990 $as_echo "$ac_cv_exeext" >&6; }
3992 rm -f conftest.$ac_ext
3993 EXEEXT=$ac_cv_exeext
3994 ac_exeext=$EXEEXT
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3996 $as_echo_n "checking for suffix of object files... " >&6; }
3997 if test "${ac_cv_objext+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4004 main ()
4008 return 0;
4010 _ACEOF
4011 rm -f conftest.o conftest.obj
4012 if { { ac_try="$ac_compile"
4013 case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016 esac
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019 (eval "$ac_compile") 2>&5
4020 ac_status=$?
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }; then :
4023 for ac_file in conftest.o conftest.obj conftest.*; do
4024 test -f "$ac_file" || continue;
4025 case $ac_file in
4026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4027 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4028 break;;
4029 esac
4030 done
4031 else
4032 $as_echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error "cannot compute suffix of object files: cannot compile
4038 See \`config.log' for more details." "$LINENO" 5; }
4040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4043 $as_echo "$ac_cv_objext" >&6; }
4044 OBJEXT=$ac_cv_objext
4045 ac_objext=$OBJEXT
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4047 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4048 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4055 main ()
4057 #ifndef __GNUC__
4058 choke me
4059 #endif
4062 return 0;
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"; then :
4066 ac_compiler_gnu=yes
4067 else
4068 ac_compiler_gnu=no
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4075 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4076 if test $ac_compiler_gnu = yes; then
4077 GCC=yes
4078 else
4079 GCC=
4081 ac_test_CFLAGS=${CFLAGS+set}
4082 ac_save_CFLAGS=$CFLAGS
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4084 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4085 if test "${ac_cv_prog_cc_g+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 ac_save_c_werror_flag=$ac_c_werror_flag
4089 ac_c_werror_flag=yes
4090 ac_cv_prog_cc_g=no
4091 CFLAGS="-g"
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_cv_prog_cc_g=yes
4105 else
4106 CFLAGS=""
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4111 main ()
4115 return 0;
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4120 else
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4122 CFLAGS="-g"
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 main ()
4131 return 0;
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_prog_cc_g=yes
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 ac_c_werror_flag=$ac_save_c_werror_flag
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4145 $as_echo "$ac_cv_prog_cc_g" >&6; }
4146 if test "$ac_test_CFLAGS" = set; then
4147 CFLAGS=$ac_save_CFLAGS
4148 elif test $ac_cv_prog_cc_g = yes; then
4149 if test "$GCC" = yes; then
4150 CFLAGS="-g -O2"
4151 else
4152 CFLAGS="-g"
4154 else
4155 if test "$GCC" = yes; then
4156 CFLAGS="-O2"
4157 else
4158 CFLAGS=
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4162 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4163 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 ac_cv_prog_cc_c89=no
4167 ac_save_CC=$CC
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170 #include <stdarg.h>
4171 #include <stdio.h>
4172 #include <sys/types.h>
4173 #include <sys/stat.h>
4174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4175 struct buf { int x; };
4176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4177 static char *e (p, i)
4178 char **p;
4179 int i;
4181 return p[i];
4183 static char *f (char * (*g) (char **, int), char **p, ...)
4185 char *s;
4186 va_list v;
4187 va_start (v,p);
4188 s = g (p, va_arg (v,int));
4189 va_end (v);
4190 return s;
4193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4194 function prototypes and stuff, but not '\xHH' hex character constants.
4195 These don't provoke an error unfortunately, instead are silently treated
4196 as 'x'. The following induces an error, until -std is added to get
4197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4198 array size at least. It's necessary to write '\x00'==0 to get something
4199 that's true only with -std. */
4200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4203 inside strings and character constants. */
4204 #define FOO(x) 'x'
4205 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4207 int test (int i, double x);
4208 struct s1 {int (*f) (int a);};
4209 struct s2 {int (*f) (double a);};
4210 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4211 int argc;
4212 char **argv;
4214 main ()
4216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4218 return 0;
4220 _ACEOF
4221 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4224 CC="$ac_save_CC $ac_arg"
4225 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_cv_prog_cc_c89=$ac_arg
4228 rm -f core conftest.err conftest.$ac_objext
4229 test "x$ac_cv_prog_cc_c89" != "xno" && break
4230 done
4231 rm -f conftest.$ac_ext
4232 CC=$ac_save_CC
4235 # AC_CACHE_VAL
4236 case "x$ac_cv_prog_cc_c89" in
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4239 $as_echo "none needed" >&6; } ;;
4240 xno)
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4242 $as_echo "unsupported" >&6; } ;;
4244 CC="$CC $ac_cv_prog_cc_c89"
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4246 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4247 esac
4248 if test "x$ac_cv_prog_cc_c89" != xno; then :
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 ac_ext=cpp
4259 ac_cpp='$CXXCPP $CPPFLAGS'
4260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4263 if test -z "$CXX"; then
4264 if test -n "$CCC"; then
4265 CXX=$CCC
4266 else
4267 if test -n "$ac_tool_prefix"; then
4268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if test "${ac_cv_prog_CXX+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4276 else
4277 if test -n "$CXX"; then
4278 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 break 2
4291 done
4292 done
4293 IFS=$as_save_IFS
4297 CXX=$ac_cv_prog_CXX
4298 if test -n "$CXX"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4300 $as_echo "$CXX" >&6; }
4301 else
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4307 test -n "$CXX" && break
4308 done
4310 if test -z "$CXX"; then
4311 ac_ct_CXX=$CXX
4312 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4314 # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$ac_ct_CXX"; then
4322 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_ac_ct_CXX="$ac_prog"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4342 if test -n "$ac_ct_CXX"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4344 $as_echo "$ac_ct_CXX" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4351 test -n "$ac_ct_CXX" && break
4352 done
4354 if test "x$ac_ct_CXX" = x; then
4355 CXX="g++"
4356 else
4357 case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4362 esac
4363 CXX=$ac_ct_CXX
4369 # Provide some information about the compiler.
4370 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4371 set X $ac_compile
4372 ac_compiler=$2
4373 for ac_option in --version -v -V -qversion; do
4374 { { ac_try="$ac_compiler $ac_option >&5"
4375 case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4382 ac_status=$?
4383 if test -s conftest.err; then
4384 sed '10a\
4385 ... rest of stderr output deleted ...
4386 10q' conftest.err >conftest.er1
4387 cat conftest.er1 >&5
4388 rm -f conftest.er1 conftest.err
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }
4392 done
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4395 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4396 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4403 main ()
4405 #ifndef __GNUC__
4406 choke me
4407 #endif
4410 return 0;
4412 _ACEOF
4413 if ac_fn_cxx_try_compile "$LINENO"; then :
4414 ac_compiler_gnu=yes
4415 else
4416 ac_compiler_gnu=no
4418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4423 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4424 if test $ac_compiler_gnu = yes; then
4425 GXX=yes
4426 else
4427 GXX=
4429 ac_test_CXXFLAGS=${CXXFLAGS+set}
4430 ac_save_CXXFLAGS=$CXXFLAGS
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4432 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4433 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4437 ac_cxx_werror_flag=yes
4438 ac_cv_prog_cxx_g=no
4439 CXXFLAGS="-g"
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4444 main ()
4448 return 0;
4450 _ACEOF
4451 if ac_fn_cxx_try_compile "$LINENO"; then :
4452 ac_cv_prog_cxx_g=yes
4453 else
4454 CXXFLAGS=""
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4459 main ()
4463 return 0;
4465 _ACEOF
4466 if ac_fn_cxx_try_compile "$LINENO"; then :
4468 else
4469 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4470 CXXFLAGS="-g"
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4475 main ()
4479 return 0;
4481 _ACEOF
4482 if ac_fn_cxx_try_compile "$LINENO"; then :
4483 ac_cv_prog_cxx_g=yes
4485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4493 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4494 if test "$ac_test_CXXFLAGS" = set; then
4495 CXXFLAGS=$ac_save_CXXFLAGS
4496 elif test $ac_cv_prog_cxx_g = yes; then
4497 if test "$GXX" = yes; then
4498 CXXFLAGS="-g -O2"
4499 else
4500 CXXFLAGS="-g"
4502 else
4503 if test "$GXX" = yes; then
4504 CXXFLAGS="-O2"
4505 else
4506 CXXFLAGS=
4509 ac_ext=c
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4524 $as_echo_n "(cached) " >&6
4525 else
4526 if test -n "$GNATBIND"; then
4527 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4540 done
4541 done
4542 IFS=$as_save_IFS
4546 GNATBIND=$ac_cv_prog_GNATBIND
4547 if test -n "$GNATBIND"; then
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4549 $as_echo "$GNATBIND" >&6; }
4550 else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4552 $as_echo "no" >&6; }
4557 if test -z "$ac_cv_prog_GNATBIND"; then
4558 ac_ct_GNATBIND=$GNATBIND
4559 # Extract the first word of "gnatbind", so it can be a program name with args.
4560 set dummy gnatbind; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -n "$ac_ct_GNATBIND"; then
4567 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4568 else
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4580 done
4581 done
4582 IFS=$as_save_IFS
4586 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4587 if test -n "$ac_ct_GNATBIND"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4589 $as_echo "$ac_ct_GNATBIND" >&6; }
4590 else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4595 if test "x$ac_ct_GNATBIND" = x; then
4596 GNATBIND="no"
4597 else
4598 case $cross_compiling:$ac_tool_warned in
4599 yes:)
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4603 esac
4604 GNATBIND=$ac_ct_GNATBIND
4606 else
4607 GNATBIND="$ac_cv_prog_GNATBIND"
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -n "$GNATMAKE"; then
4619 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4632 done
4633 done
4634 IFS=$as_save_IFS
4638 GNATMAKE=$ac_cv_prog_GNATMAKE
4639 if test -n "$GNATMAKE"; then
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4641 $as_echo "$GNATMAKE" >&6; }
4642 else
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4649 if test -z "$ac_cv_prog_GNATMAKE"; then
4650 ac_ct_GNATMAKE=$GNATMAKE
4651 # Extract the first word of "gnatmake", so it can be a program name with args.
4652 set dummy gnatmake; ac_word=$2
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654 $as_echo_n "checking for $ac_word... " >&6; }
4655 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 if test -n "$ac_ct_GNATMAKE"; then
4659 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4672 done
4673 done
4674 IFS=$as_save_IFS
4678 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4679 if test -n "$ac_ct_GNATMAKE"; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4681 $as_echo "$ac_ct_GNATMAKE" >&6; }
4682 else
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4687 if test "x$ac_ct_GNATMAKE" = x; then
4688 GNATMAKE="no"
4689 else
4690 case $cross_compiling:$ac_tool_warned in
4691 yes:)
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694 ac_tool_warned=yes ;;
4695 esac
4696 GNATMAKE=$ac_ct_GNATMAKE
4698 else
4699 GNATMAKE="$ac_cv_prog_GNATMAKE"
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4703 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4704 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 cat >conftest.adb <<EOF
4708 procedure conftest is begin null; end conftest;
4710 acx_cv_cc_gcc_supports_ada=no
4711 # There is a bug in old released versions of GCC which causes the
4712 # driver to exit successfully when the appropriate language module
4713 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4714 # Therefore we must check for the error message as well as an
4715 # unsuccessful exit.
4716 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4717 # given a .adb file, but produce no object file. So we must check
4718 # if an object file was really produced to guard against this.
4719 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4720 if test x"$errors" = x && test -f conftest.$ac_objext; then
4721 acx_cv_cc_gcc_supports_ada=yes
4723 rm -f conftest.*
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4726 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4728 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4729 have_gnat=yes
4730 else
4731 have_gnat=no
4735 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4736 # optimizations to be activated explicitly by the toplevel.
4737 case "$CC" in
4738 */prev-gcc/xgcc*) ;;
4739 *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4740 CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4741 esac
4745 # Determine PICFLAG for target gnatlib.
4750 case "${target}" in
4751 # PIC is the default on some targets or must not be used.
4752 *-*-darwin*)
4753 # PIC is the default on this platform
4754 # Common symbols not allowed in MH_DYLIB files
4755 PICFLAG_FOR_TARGET=-fno-common
4757 alpha*-dec-osf5*)
4758 # PIC is the default.
4760 hppa*64*-*-hpux*)
4761 # PIC is the default for 64-bit PA HP-UX.
4763 i[34567]86-*-cygwin* | x86_64-*-cygwin*)
4765 i[34567]86-*-mingw* | x86_64-*-mingw*)
4767 i[34567]86-*-interix[3-9]*)
4768 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4769 # Instead, we relocate shared libraries at runtime.
4771 i[34567]86-*-nto-qnx*)
4772 # QNX uses GNU C++, but need to define -shared option too, otherwise
4773 # it will coredump.
4774 PICFLAG_FOR_TARGET='-fPIC -shared'
4776 i[34567]86-pc-msdosdjgpp*)
4777 # DJGPP does not support shared libraries at all.
4779 ia64*-*-hpux*)
4780 # On IA64 HP-UX, PIC is the default but the pic flag
4781 # sets the default TLS model and affects inlining.
4782 PICFLAG_FOR_TARGET=-fPIC
4784 mips-sgi-irix6*)
4785 # PIC is the default.
4787 rs6000-ibm-aix* | powerpc-ibm-aix*)
4788 # All AIX code is PIC.
4791 # Some targets support both -fPIC and -fpic, but prefer the latter.
4792 # FIXME: Why?
4793 i[34567]86-*-* | x86_64-*-*)
4794 PICFLAG_FOR_TARGET=-fpic
4796 m68k-*-*)
4797 PICFLAG_FOR_TARGET=-fpic
4799 # FIXME: Override -fPIC default in libgcc only?
4800 sh-*-linux* | sh[2346lbe]*-*-linux*)
4801 PICFLAG_FOR_TARGET=-fpic
4803 # FIXME: Simplify to sh*-*-netbsd*?
4804 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4805 sh64-*-netbsd* | sh64l*-*-netbsd*)
4806 PICFLAG_FOR_TARGET=-fpic
4808 # Default to -fPIC unless specified otherwise.
4810 PICFLAG_FOR_TARGET=-fPIC
4812 esac
4814 # If the user explicitly uses -fpic/-fPIC, keep that.
4815 case "${CFLAGS_FOR_TARGET}" in
4816 *-fpic*)
4817 PICFLAG_FOR_TARGET=-fpic
4819 *-fPIC*)
4820 PICFLAG_FOR_TARGET=-fPIC
4822 esac
4826 # -------------------------
4827 # Check C compiler features
4828 # -------------------------
4831 ac_ext=c
4832 ac_cpp='$CPP $CPPFLAGS'
4833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4837 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4838 # On Suns, sometimes $CPP names a directory.
4839 if test -n "$CPP" && test -d "$CPP"; then
4840 CPP=
4842 if test -z "$CPP"; then
4843 if test "${ac_cv_prog_CPP+set}" = set; then :
4844 $as_echo_n "(cached) " >&6
4845 else
4846 # Double quotes because CPP needs to be expanded
4847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4849 ac_preproc_ok=false
4850 for ac_c_preproc_warn_flag in '' yes
4852 # Use a header file that comes with gcc, so configuring glibc
4853 # with a fresh cross-compiler works.
4854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4855 # <limits.h> exists even on freestanding compilers.
4856 # On the NeXT, cc -E runs the code through the compiler's parser,
4857 # not just through cpp. "Syntax error" is here to catch this case.
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4860 #ifdef __STDC__
4861 # include <limits.h>
4862 #else
4863 # include <assert.h>
4864 #endif
4865 Syntax error
4866 _ACEOF
4867 if ac_fn_c_try_cpp "$LINENO"; then :
4869 else
4870 # Broken: fails on valid input.
4871 continue
4873 rm -f conftest.err conftest.$ac_ext
4875 # OK, works on sane cases. Now check whether nonexistent headers
4876 # can be detected and how.
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <ac_nonexistent.h>
4880 _ACEOF
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4882 # Broken: success on invalid input.
4883 continue
4884 else
4885 # Passes both tests.
4886 ac_preproc_ok=:
4887 break
4889 rm -f conftest.err conftest.$ac_ext
4891 done
4892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4893 rm -f conftest.err conftest.$ac_ext
4894 if $ac_preproc_ok; then :
4895 break
4898 done
4899 ac_cv_prog_CPP=$CPP
4902 CPP=$ac_cv_prog_CPP
4903 else
4904 ac_cv_prog_CPP=$CPP
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4907 $as_echo "$CPP" >&6; }
4908 ac_preproc_ok=false
4909 for ac_c_preproc_warn_flag in '' yes
4911 # Use a header file that comes with gcc, so configuring glibc
4912 # with a fresh cross-compiler works.
4913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4914 # <limits.h> exists even on freestanding compilers.
4915 # On the NeXT, cc -E runs the code through the compiler's parser,
4916 # not just through cpp. "Syntax error" is here to catch this case.
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #ifdef __STDC__
4920 # include <limits.h>
4921 #else
4922 # include <assert.h>
4923 #endif
4924 Syntax error
4925 _ACEOF
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4928 else
4929 # Broken: fails on valid input.
4930 continue
4932 rm -f conftest.err conftest.$ac_ext
4934 # OK, works on sane cases. Now check whether nonexistent headers
4935 # can be detected and how.
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 #include <ac_nonexistent.h>
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941 # Broken: success on invalid input.
4942 continue
4943 else
4944 # Passes both tests.
4945 ac_preproc_ok=:
4946 break
4948 rm -f conftest.err conftest.$ac_ext
4950 done
4951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952 rm -f conftest.err conftest.$ac_ext
4953 if $ac_preproc_ok; then :
4955 else
4956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4958 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4959 See \`config.log' for more details." "$LINENO" 5; }
4962 ac_ext=c
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4970 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4971 if test "${ac_cv_path_GREP+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -z "$GREP"; then
4975 ac_path_GREP_found=false
4976 # Loop through the user's path and test for each of PROGNAME-LIST
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_prog in grep ggrep; do
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4985 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4986 # Check for GNU ac_path_GREP and select it if it is found.
4987 # Check for GNU $ac_path_GREP
4988 case `"$ac_path_GREP" --version 2>&1` in
4989 *GNU*)
4990 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4992 ac_count=0
4993 $as_echo_n 0123456789 >"conftest.in"
4994 while :
4996 cat "conftest.in" "conftest.in" >"conftest.tmp"
4997 mv "conftest.tmp" "conftest.in"
4998 cp "conftest.in" "conftest.nl"
4999 $as_echo 'GREP' >> "conftest.nl"
5000 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5002 as_fn_arith $ac_count + 1 && ac_count=$as_val
5003 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5004 # Best one so far, save it but keep looking for a better one
5005 ac_cv_path_GREP="$ac_path_GREP"
5006 ac_path_GREP_max=$ac_count
5008 # 10*(2^10) chars as input seems more than enough
5009 test $ac_count -gt 10 && break
5010 done
5011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5012 esac
5014 $ac_path_GREP_found && break 3
5015 done
5016 done
5017 done
5018 IFS=$as_save_IFS
5019 if test -z "$ac_cv_path_GREP"; then
5020 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5022 else
5023 ac_cv_path_GREP=$GREP
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5028 $as_echo "$ac_cv_path_GREP" >&6; }
5029 GREP="$ac_cv_path_GREP"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5033 $as_echo_n "checking for egrep... " >&6; }
5034 if test "${ac_cv_path_EGREP+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5038 then ac_cv_path_EGREP="$GREP -E"
5039 else
5040 if test -z "$EGREP"; then
5041 ac_path_EGREP_found=false
5042 # Loop through the user's path and test for each of PROGNAME-LIST
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_prog in egrep; do
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5051 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5052 # Check for GNU ac_path_EGREP and select it if it is found.
5053 # Check for GNU $ac_path_EGREP
5054 case `"$ac_path_EGREP" --version 2>&1` in
5055 *GNU*)
5056 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5058 ac_count=0
5059 $as_echo_n 0123456789 >"conftest.in"
5060 while :
5062 cat "conftest.in" "conftest.in" >"conftest.tmp"
5063 mv "conftest.tmp" "conftest.in"
5064 cp "conftest.in" "conftest.nl"
5065 $as_echo 'EGREP' >> "conftest.nl"
5066 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5068 as_fn_arith $ac_count + 1 && ac_count=$as_val
5069 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5070 # Best one so far, save it but keep looking for a better one
5071 ac_cv_path_EGREP="$ac_path_EGREP"
5072 ac_path_EGREP_max=$ac_count
5074 # 10*(2^10) chars as input seems more than enough
5075 test $ac_count -gt 10 && break
5076 done
5077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5078 esac
5080 $ac_path_EGREP_found && break 3
5081 done
5082 done
5083 done
5084 IFS=$as_save_IFS
5085 if test -z "$ac_cv_path_EGREP"; then
5086 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088 else
5089 ac_cv_path_EGREP=$EGREP
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5095 $as_echo "$ac_cv_path_EGREP" >&6; }
5096 EGREP="$ac_cv_path_EGREP"
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5100 $as_echo_n "checking for ANSI C header files... " >&6; }
5101 if test "${ac_cv_header_stdc+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 #include <stdlib.h>
5107 #include <stdarg.h>
5108 #include <string.h>
5109 #include <float.h>
5112 main ()
5116 return 0;
5118 _ACEOF
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 ac_cv_header_stdc=yes
5121 else
5122 ac_cv_header_stdc=no
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 if test $ac_cv_header_stdc = yes; then
5127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <string.h>
5132 _ACEOF
5133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5134 $EGREP "memchr" >/dev/null 2>&1; then :
5136 else
5137 ac_cv_header_stdc=no
5139 rm -f conftest*
5143 if test $ac_cv_header_stdc = yes; then
5144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <stdlib.h>
5149 _ACEOF
5150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151 $EGREP "free" >/dev/null 2>&1; then :
5153 else
5154 ac_cv_header_stdc=no
5156 rm -f conftest*
5160 if test $ac_cv_header_stdc = yes; then
5161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5162 if test "$cross_compiling" = yes; then :
5164 else
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5167 #include <ctype.h>
5168 #include <stdlib.h>
5169 #if ((' ' & 0x0FF) == 0x020)
5170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5172 #else
5173 # define ISLOWER(c) \
5174 (('a' <= (c) && (c) <= 'i') \
5175 || ('j' <= (c) && (c) <= 'r') \
5176 || ('s' <= (c) && (c) <= 'z'))
5177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5178 #endif
5180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5182 main ()
5184 int i;
5185 for (i = 0; i < 256; i++)
5186 if (XOR (islower (i), ISLOWER (i))
5187 || toupper (i) != TOUPPER (i))
5188 return 2;
5189 return 0;
5191 _ACEOF
5192 if ac_fn_c_try_run "$LINENO"; then :
5194 else
5195 ac_cv_header_stdc=no
5197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5198 conftest.$ac_objext conftest.beam conftest.$ac_ext
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5204 $as_echo "$ac_cv_header_stdc" >&6; }
5205 if test $ac_cv_header_stdc = yes; then
5207 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5212 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5213 inttypes.h stdint.h unistd.h
5214 do :
5215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5216 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5218 eval as_val=\$$as_ac_Header
5219 if test "x$as_val" = x""yes; then :
5220 cat >>confdefs.h <<_ACEOF
5221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5222 _ACEOF
5226 done
5230 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5231 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5232 MINIX=yes
5233 else
5234 MINIX=
5238 if test "$MINIX" = yes; then
5240 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5243 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5246 $as_echo "#define _MINIX 1" >>confdefs.h
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5252 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5253 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5259 # define __EXTENSIONS__ 1
5260 $ac_includes_default
5262 main ()
5266 return 0;
5268 _ACEOF
5269 if ac_fn_c_try_compile "$LINENO"; then :
5270 ac_cv_safe_to_define___extensions__=yes
5271 else
5272 ac_cv_safe_to_define___extensions__=no
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5277 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5278 test $ac_cv_safe_to_define___extensions__ = yes &&
5279 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5281 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5283 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5285 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5287 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5290 ac_ext=c
5291 ac_cpp='$CPP $CPPFLAGS'
5292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5296 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5297 # On Suns, sometimes $CPP names a directory.
5298 if test -n "$CPP" && test -d "$CPP"; then
5299 CPP=
5301 if test -z "$CPP"; then
5302 if test "${ac_cv_prog_CPP+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 # Double quotes because CPP needs to be expanded
5306 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5308 ac_preproc_ok=false
5309 for ac_c_preproc_warn_flag in '' yes
5311 # Use a header file that comes with gcc, so configuring glibc
5312 # with a fresh cross-compiler works.
5313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5314 # <limits.h> exists even on freestanding compilers.
5315 # On the NeXT, cc -E runs the code through the compiler's parser,
5316 # not just through cpp. "Syntax error" is here to catch this case.
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5319 #ifdef __STDC__
5320 # include <limits.h>
5321 #else
5322 # include <assert.h>
5323 #endif
5324 Syntax error
5325 _ACEOF
5326 if ac_fn_c_try_cpp "$LINENO"; then :
5328 else
5329 # Broken: fails on valid input.
5330 continue
5332 rm -f conftest.err conftest.$ac_ext
5334 # OK, works on sane cases. Now check whether nonexistent headers
5335 # can be detected and how.
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 #include <ac_nonexistent.h>
5339 _ACEOF
5340 if ac_fn_c_try_cpp "$LINENO"; then :
5341 # Broken: success on invalid input.
5342 continue
5343 else
5344 # Passes both tests.
5345 ac_preproc_ok=:
5346 break
5348 rm -f conftest.err conftest.$ac_ext
5350 done
5351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5352 rm -f conftest.err conftest.$ac_ext
5353 if $ac_preproc_ok; then :
5354 break
5357 done
5358 ac_cv_prog_CPP=$CPP
5361 CPP=$ac_cv_prog_CPP
5362 else
5363 ac_cv_prog_CPP=$CPP
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5366 $as_echo "$CPP" >&6; }
5367 ac_preproc_ok=false
5368 for ac_c_preproc_warn_flag in '' yes
5370 # Use a header file that comes with gcc, so configuring glibc
5371 # with a fresh cross-compiler works.
5372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5373 # <limits.h> exists even on freestanding compilers.
5374 # On the NeXT, cc -E runs the code through the compiler's parser,
5375 # not just through cpp. "Syntax error" is here to catch this case.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #ifdef __STDC__
5379 # include <limits.h>
5380 #else
5381 # include <assert.h>
5382 #endif
5383 Syntax error
5384 _ACEOF
5385 if ac_fn_c_try_cpp "$LINENO"; then :
5387 else
5388 # Broken: fails on valid input.
5389 continue
5391 rm -f conftest.err conftest.$ac_ext
5393 # OK, works on sane cases. Now check whether nonexistent headers
5394 # can be detected and how.
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5397 #include <ac_nonexistent.h>
5398 _ACEOF
5399 if ac_fn_c_try_cpp "$LINENO"; then :
5400 # Broken: success on invalid input.
5401 continue
5402 else
5403 # Passes both tests.
5404 ac_preproc_ok=:
5405 break
5407 rm -f conftest.err conftest.$ac_ext
5409 done
5410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5411 rm -f conftest.err conftest.$ac_ext
5412 if $ac_preproc_ok; then :
5414 else
5415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5417 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5418 See \`config.log' for more details." "$LINENO" 5; }
5421 ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5428 $as_echo_n "checking for inline... " >&6; }
5429 if test "${ac_cv_c_inline+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 ac_cv_c_inline=no
5433 for ac_kw in inline __inline__ __inline; do
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #ifndef __cplusplus
5437 typedef int foo_t;
5438 static $ac_kw foo_t static_foo () {return 0; }
5439 $ac_kw foo_t foo () {return 0; }
5440 #endif
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 ac_cv_c_inline=$ac_kw
5446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 test "$ac_cv_c_inline" != no && break
5448 done
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5452 $as_echo "$ac_cv_c_inline" >&6; }
5454 case $ac_cv_c_inline in
5455 inline | yes) ;;
5457 case $ac_cv_c_inline in
5458 no) ac_val=;;
5459 *) ac_val=$ac_cv_c_inline;;
5460 esac
5461 cat >>confdefs.h <<_ACEOF
5462 #ifndef __cplusplus
5463 #define inline $ac_val
5464 #endif
5465 _ACEOF
5467 esac
5470 # Check whether --enable-largefile was given.
5471 if test "${enable_largefile+set}" = set; then :
5472 enableval=$enable_largefile;
5475 if test "$enable_largefile" != no; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5478 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5479 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 ac_cv_sys_largefile_CC=no
5483 if test "$GCC" != yes; then
5484 ac_save_CC=$CC
5485 while :; do
5486 # IRIX 6.2 and later do not support large files by default,
5487 # so use the C compiler's -n32 option if that helps.
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <sys/types.h>
5491 /* Check that off_t can represent 2**63 - 1 correctly.
5492 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5493 since some C++ compilers masquerading as C compilers
5494 incorrectly reject 9223372036854775807. */
5495 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5496 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5497 && LARGE_OFF_T % 2147483647 == 1)
5498 ? 1 : -1];
5500 main ()
5504 return 0;
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508 break
5510 rm -f core conftest.err conftest.$ac_objext
5511 CC="$CC -n32"
5512 if ac_fn_c_try_compile "$LINENO"; then :
5513 ac_cv_sys_largefile_CC=' -n32'; break
5515 rm -f core conftest.err conftest.$ac_objext
5516 break
5517 done
5518 CC=$ac_save_CC
5519 rm -f conftest.$ac_ext
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5523 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5524 if test "$ac_cv_sys_largefile_CC" != no; then
5525 CC=$CC$ac_cv_sys_largefile_CC
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5529 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5530 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 while :; do
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 /* Check that off_t can represent 2**63 - 1 correctly.
5538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5539 since some C++ compilers masquerading as C compilers
5540 incorrectly reject 9223372036854775807. */
5541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5543 && LARGE_OFF_T % 2147483647 == 1)
5544 ? 1 : -1];
5546 main ()
5550 return 0;
5552 _ACEOF
5553 if ac_fn_c_try_compile "$LINENO"; then :
5554 ac_cv_sys_file_offset_bits=no; break
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 #define _FILE_OFFSET_BITS 64
5560 #include <sys/types.h>
5561 /* Check that off_t can represent 2**63 - 1 correctly.
5562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5563 since some C++ compilers masquerading as C compilers
5564 incorrectly reject 9223372036854775807. */
5565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5567 && LARGE_OFF_T % 2147483647 == 1)
5568 ? 1 : -1];
5570 main ()
5574 return 0;
5576 _ACEOF
5577 if ac_fn_c_try_compile "$LINENO"; then :
5578 ac_cv_sys_file_offset_bits=64; break
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581 ac_cv_sys_file_offset_bits=unknown
5582 break
5583 done
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5586 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5587 case $ac_cv_sys_file_offset_bits in #(
5588 no | unknown) ;;
5590 cat >>confdefs.h <<_ACEOF
5591 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5592 _ACEOF
5594 esac
5595 rm -rf conftest*
5596 if test $ac_cv_sys_file_offset_bits = unknown; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5598 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5599 if test "${ac_cv_sys_large_files+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 while :; do
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 #include <sys/types.h>
5606 /* Check that off_t can represent 2**63 - 1 correctly.
5607 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5608 since some C++ compilers masquerading as C compilers
5609 incorrectly reject 9223372036854775807. */
5610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5611 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5612 && LARGE_OFF_T % 2147483647 == 1)
5613 ? 1 : -1];
5615 main ()
5619 return 0;
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623 ac_cv_sys_large_files=no; break
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #define _LARGE_FILES 1
5629 #include <sys/types.h>
5630 /* Check that off_t can represent 2**63 - 1 correctly.
5631 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5632 since some C++ compilers masquerading as C compilers
5633 incorrectly reject 9223372036854775807. */
5634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5635 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5636 && LARGE_OFF_T % 2147483647 == 1)
5637 ? 1 : -1];
5639 main ()
5643 return 0;
5645 _ACEOF
5646 if ac_fn_c_try_compile "$LINENO"; then :
5647 ac_cv_sys_large_files=1; break
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 ac_cv_sys_large_files=unknown
5651 break
5652 done
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5655 $as_echo "$ac_cv_sys_large_files" >&6; }
5656 case $ac_cv_sys_large_files in #(
5657 no | unknown) ;;
5659 cat >>confdefs.h <<_ACEOF
5660 #define _LARGE_FILES $ac_cv_sys_large_files
5661 _ACEOF
5663 esac
5664 rm -rf conftest*
5669 # sizeof(char) is 1 by definition.
5670 # The cast to long int works around a bug in the HP C Compiler
5671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5673 # This bug is HP SR number 8606223364.
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5675 $as_echo_n "checking size of void *... " >&6; }
5676 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5681 else
5682 if test "$ac_cv_type_void_p" = yes; then
5683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5685 { as_fn_set_status 77
5686 as_fn_error "cannot compute sizeof (void *)
5687 See \`config.log' for more details." "$LINENO" 5; }; }
5688 else
5689 ac_cv_sizeof_void_p=0
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5695 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5699 cat >>confdefs.h <<_ACEOF
5700 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5701 _ACEOF
5704 # The cast to long int works around a bug in the HP C Compiler
5705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5707 # This bug is HP SR number 8606223364.
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5709 $as_echo_n "checking size of short... " >&6; }
5710 if test "${ac_cv_sizeof_short+set}" = set; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5715 else
5716 if test "$ac_cv_type_short" = yes; then
5717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5719 { as_fn_set_status 77
5720 as_fn_error "cannot compute sizeof (short)
5721 See \`config.log' for more details." "$LINENO" 5; }; }
5722 else
5723 ac_cv_sizeof_short=0
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5729 $as_echo "$ac_cv_sizeof_short" >&6; }
5733 cat >>confdefs.h <<_ACEOF
5734 #define SIZEOF_SHORT $ac_cv_sizeof_short
5735 _ACEOF
5738 # The cast to long int works around a bug in the HP C Compiler
5739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5741 # This bug is HP SR number 8606223364.
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5743 $as_echo_n "checking size of int... " >&6; }
5744 if test "${ac_cv_sizeof_int+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5749 else
5750 if test "$ac_cv_type_int" = yes; then
5751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5753 { as_fn_set_status 77
5754 as_fn_error "cannot compute sizeof (int)
5755 See \`config.log' for more details." "$LINENO" 5; }; }
5756 else
5757 ac_cv_sizeof_int=0
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5763 $as_echo "$ac_cv_sizeof_int" >&6; }
5767 cat >>confdefs.h <<_ACEOF
5768 #define SIZEOF_INT $ac_cv_sizeof_int
5769 _ACEOF
5772 # The cast to long int works around a bug in the HP C Compiler
5773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5775 # This bug is HP SR number 8606223364.
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5777 $as_echo_n "checking size of long... " >&6; }
5778 if test "${ac_cv_sizeof_long+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5783 else
5784 if test "$ac_cv_type_long" = yes; then
5785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5787 { as_fn_set_status 77
5788 as_fn_error "cannot compute sizeof (long)
5789 See \`config.log' for more details." "$LINENO" 5; }; }
5790 else
5791 ac_cv_sizeof_long=0
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5797 $as_echo "$ac_cv_sizeof_long" >&6; }
5801 cat >>confdefs.h <<_ACEOF
5802 #define SIZEOF_LONG $ac_cv_sizeof_long
5803 _ACEOF
5806 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5807 if test "x$ac_cv_type_long_long" = x""yes; then :
5809 cat >>confdefs.h <<_ACEOF
5810 #define HAVE_LONG_LONG 1
5811 _ACEOF
5813 # The cast to long int works around a bug in the HP C Compiler
5814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5816 # This bug is HP SR number 8606223364.
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5818 $as_echo_n "checking size of long long... " >&6; }
5819 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5824 else
5825 if test "$ac_cv_type_long_long" = yes; then
5826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5828 { as_fn_set_status 77
5829 as_fn_error "cannot compute sizeof (long long)
5830 See \`config.log' for more details." "$LINENO" 5; }; }
5831 else
5832 ac_cv_sizeof_long_long=0
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5838 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5842 cat >>confdefs.h <<_ACEOF
5843 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5844 _ACEOF
5849 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5850 if test "x$ac_cv_type___int64" = x""yes; then :
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE___INT64 1
5854 _ACEOF
5856 # The cast to long int works around a bug in the HP C Compiler
5857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5859 # This bug is HP SR number 8606223364.
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5861 $as_echo_n "checking size of __int64... " >&6; }
5862 if test "${ac_cv_sizeof___int64+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5867 else
5868 if test "$ac_cv_type___int64" = yes; then
5869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5871 { as_fn_set_status 77
5872 as_fn_error "cannot compute sizeof (__int64)
5873 See \`config.log' for more details." "$LINENO" 5; }; }
5874 else
5875 ac_cv_sizeof___int64=0
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5881 $as_echo "$ac_cv_sizeof___int64" >&6; }
5885 cat >>confdefs.h <<_ACEOF
5886 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5887 _ACEOF
5892 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5893 case $ac_cv_c_int8_t in #(
5894 no|yes) ;; #(
5897 cat >>confdefs.h <<_ACEOF
5898 #define int8_t $ac_cv_c_int8_t
5899 _ACEOF
5901 esac
5903 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5904 case $ac_cv_c_int16_t in #(
5905 no|yes) ;; #(
5908 cat >>confdefs.h <<_ACEOF
5909 #define int16_t $ac_cv_c_int16_t
5910 _ACEOF
5912 esac
5914 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5915 case $ac_cv_c_int32_t in #(
5916 no|yes) ;; #(
5919 cat >>confdefs.h <<_ACEOF
5920 #define int32_t $ac_cv_c_int32_t
5921 _ACEOF
5923 esac
5925 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5926 case $ac_cv_c_int64_t in #(
5927 no|yes) ;; #(
5930 cat >>confdefs.h <<_ACEOF
5931 #define int64_t $ac_cv_c_int64_t
5932 _ACEOF
5934 esac
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5938 $as_echo_n "checking for long long int... " >&6; }
5939 if test "${ac_cv_type_long_long_int+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5945 /* For now, do not test the preprocessor; as of 2007 there are too many
5946 implementations with broken preprocessors. Perhaps this can
5947 be revisited in 2012. In the meantime, code should not expect
5948 #if to work with literals wider than 32 bits. */
5949 /* Test literals. */
5950 long long int ll = 9223372036854775807ll;
5951 long long int nll = -9223372036854775807LL;
5952 unsigned long long int ull = 18446744073709551615ULL;
5953 /* Test constant expressions. */
5954 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5955 ? 1 : -1)];
5956 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5957 ? 1 : -1)];
5958 int i = 63;
5960 main ()
5962 /* Test availability of runtime routines for shift and division. */
5963 long long int llmax = 9223372036854775807ll;
5964 unsigned long long int ullmax = 18446744073709551615ull;
5965 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5966 | (llmax / ll) | (llmax % ll)
5967 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5968 | (ullmax / ull) | (ullmax % ull));
5970 return 0;
5973 _ACEOF
5974 if ac_fn_c_try_link "$LINENO"; then :
5975 if test "$cross_compiling" = yes; then :
5976 ac_cv_type_long_long_int=yes
5977 else
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 #include <limits.h>
5981 #ifndef LLONG_MAX
5982 # define HALF \
5983 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5984 # define LLONG_MAX (HALF - 1 + HALF)
5985 #endif
5987 main ()
5989 long long int n = 1;
5990 int i;
5991 for (i = 0; ; i++)
5993 long long int m = n << i;
5994 if (m >> i != n)
5995 return 1;
5996 if (LLONG_MAX / 2 < m)
5997 break;
5999 return 0;
6001 return 0;
6003 _ACEOF
6004 if ac_fn_c_try_run "$LINENO"; then :
6005 ac_cv_type_long_long_int=yes
6006 else
6007 ac_cv_type_long_long_int=no
6009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6010 conftest.$ac_objext conftest.beam conftest.$ac_ext
6013 else
6014 ac_cv_type_long_long_int=no
6016 rm -f core conftest.err conftest.$ac_objext \
6017 conftest$ac_exeext conftest.$ac_ext
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6020 $as_echo "$ac_cv_type_long_long_int" >&6; }
6021 if test $ac_cv_type_long_long_int = yes; then
6023 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6029 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6030 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6032 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6034 else
6035 test $ac_cv_type_long_long_int = yes \
6036 && ac_type='long long int' \
6037 || ac_type='long int'
6039 cat >>confdefs.h <<_ACEOF
6040 #define intmax_t $ac_type
6041 _ACEOF
6047 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6048 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6050 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6052 else
6053 for ac_type in 'int' 'long int' 'long long int'; do
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 $ac_includes_default
6058 main ()
6060 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6061 test_array [0] = 0
6064 return 0;
6066 _ACEOF
6067 if ac_fn_c_try_compile "$LINENO"; then :
6069 cat >>confdefs.h <<_ACEOF
6070 #define intptr_t $ac_type
6071 _ACEOF
6073 ac_type=
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 test -z "$ac_type" && break
6077 done
6081 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6082 case $ac_cv_c_uint8_t in #(
6083 no|yes) ;; #(
6086 $as_echo "#define _UINT8_T 1" >>confdefs.h
6089 cat >>confdefs.h <<_ACEOF
6090 #define uint8_t $ac_cv_c_uint8_t
6091 _ACEOF
6093 esac
6095 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6096 case $ac_cv_c_uint16_t in #(
6097 no|yes) ;; #(
6101 cat >>confdefs.h <<_ACEOF
6102 #define uint16_t $ac_cv_c_uint16_t
6103 _ACEOF
6105 esac
6107 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6108 case $ac_cv_c_uint32_t in #(
6109 no|yes) ;; #(
6112 $as_echo "#define _UINT32_T 1" >>confdefs.h
6115 cat >>confdefs.h <<_ACEOF
6116 #define uint32_t $ac_cv_c_uint32_t
6117 _ACEOF
6119 esac
6121 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6122 case $ac_cv_c_uint64_t in #(
6123 no|yes) ;; #(
6126 $as_echo "#define _UINT64_T 1" >>confdefs.h
6129 cat >>confdefs.h <<_ACEOF
6130 #define uint64_t $ac_cv_c_uint64_t
6131 _ACEOF
6133 esac
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6137 $as_echo_n "checking for unsigned long long int... " >&6; }
6138 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142 /* end confdefs.h. */
6144 /* For now, do not test the preprocessor; as of 2007 there are too many
6145 implementations with broken preprocessors. Perhaps this can
6146 be revisited in 2012. In the meantime, code should not expect
6147 #if to work with literals wider than 32 bits. */
6148 /* Test literals. */
6149 long long int ll = 9223372036854775807ll;
6150 long long int nll = -9223372036854775807LL;
6151 unsigned long long int ull = 18446744073709551615ULL;
6152 /* Test constant expressions. */
6153 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6154 ? 1 : -1)];
6155 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6156 ? 1 : -1)];
6157 int i = 63;
6159 main ()
6161 /* Test availability of runtime routines for shift and division. */
6162 long long int llmax = 9223372036854775807ll;
6163 unsigned long long int ullmax = 18446744073709551615ull;
6164 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6165 | (llmax / ll) | (llmax % ll)
6166 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6167 | (ullmax / ull) | (ullmax % ull));
6169 return 0;
6172 _ACEOF
6173 if ac_fn_c_try_link "$LINENO"; then :
6174 ac_cv_type_unsigned_long_long_int=yes
6175 else
6176 ac_cv_type_unsigned_long_long_int=no
6178 rm -f core conftest.err conftest.$ac_objext \
6179 conftest$ac_exeext conftest.$ac_ext
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6182 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6183 if test $ac_cv_type_unsigned_long_long_int = yes; then
6185 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6191 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6192 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6194 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6196 else
6197 test $ac_cv_type_unsigned_long_long_int = yes \
6198 && ac_type='unsigned long long int' \
6199 || ac_type='unsigned long int'
6201 cat >>confdefs.h <<_ACEOF
6202 #define uintmax_t $ac_type
6203 _ACEOF
6209 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6210 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6212 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6214 else
6215 for ac_type in 'unsigned int' 'unsigned long int' \
6216 'unsigned long long int'; do
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218 /* end confdefs.h. */
6219 $ac_includes_default
6221 main ()
6223 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6224 test_array [0] = 0
6227 return 0;
6229 _ACEOF
6230 if ac_fn_c_try_compile "$LINENO"; then :
6232 cat >>confdefs.h <<_ACEOF
6233 #define uintptr_t $ac_type
6234 _ACEOF
6236 ac_type=
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239 test -z "$ac_type" && break
6240 done
6257 # ---------------------
6258 # Warnings and checking
6259 # ---------------------
6261 # Check $CC warning features (if it's GCC).
6262 # We want to use -pedantic, but we don't want warnings about
6263 # * 'long long'
6264 # * variadic macros
6265 # * overlong strings
6266 # * C++11 narrowing conversions in { }
6267 # So, we only use -pedantic if we can disable those warnings.
6269 loose_warn=
6270 save_CFLAGS="$CFLAGS"
6271 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6272 # Do the check with the no- prefix removed since gcc silently
6273 # accepts any -Wno-* option on purpose
6274 case $real_option in
6275 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6276 *) option=$real_option ;;
6277 esac
6278 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6281 $as_echo_n "checking whether $CC supports $option... " >&6; }
6282 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 CFLAGS="$option"
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6290 main ()
6294 return 0;
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 eval "$as_acx_Woption=yes"
6299 else
6300 eval "$as_acx_Woption=no"
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6305 eval ac_res=\$$as_acx_Woption
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6307 $as_echo "$ac_res" >&6; }
6308 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6309 loose_warn="$loose_warn${loose_warn:+ }$real_option"
6311 done
6312 CFLAGS="$save_CFLAGS"
6314 c_loose_warn=
6315 save_CFLAGS="$CFLAGS"
6316 for real_option in -Wstrict-prototypes -Wmissing-prototypes; do
6317 # Do the check with the no- prefix removed since gcc silently
6318 # accepts any -Wno-* option on purpose
6319 case $real_option in
6320 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6321 *) option=$real_option ;;
6322 esac
6323 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6326 $as_echo_n "checking whether $CC supports $option... " >&6; }
6327 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 CFLAGS="$option"
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6335 main ()
6339 return 0;
6341 _ACEOF
6342 if ac_fn_c_try_compile "$LINENO"; then :
6343 eval "$as_acx_Woption=yes"
6344 else
6345 eval "$as_acx_Woption=no"
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6350 eval ac_res=\$$as_acx_Woption
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6352 $as_echo "$ac_res" >&6; }
6353 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6354 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$real_option"
6356 done
6357 CFLAGS="$save_CFLAGS"
6359 strict_warn=
6360 save_CFLAGS="$CFLAGS"
6361 for real_option in -Wmissing-format-attribute; do
6362 # Do the check with the no- prefix removed since gcc silently
6363 # accepts any -Wno-* option on purpose
6364 case $real_option in
6365 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6366 *) option=$real_option ;;
6367 esac
6368 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6371 $as_echo_n "checking whether $CC supports $option... " >&6; }
6372 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 CFLAGS="$option"
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6380 main ()
6384 return 0;
6386 _ACEOF
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388 eval "$as_acx_Woption=yes"
6389 else
6390 eval "$as_acx_Woption=no"
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 eval ac_res=\$$as_acx_Woption
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6397 $as_echo "$ac_res" >&6; }
6398 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6399 strict_warn="$strict_warn${strict_warn:+ }$real_option"
6401 done
6402 CFLAGS="$save_CFLAGS"
6404 c_strict_warn=
6405 save_CFLAGS="$CFLAGS"
6406 for real_option in -Wold-style-definition -Wc++-compat; do
6407 # Do the check with the no- prefix removed since gcc silently
6408 # accepts any -Wno-* option on purpose
6409 case $real_option in
6410 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6411 *) option=$real_option ;;
6412 esac
6413 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6416 $as_echo_n "checking whether $CC supports $option... " >&6; }
6417 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 CFLAGS="$option"
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6425 main ()
6429 return 0;
6431 _ACEOF
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433 eval "$as_acx_Woption=yes"
6434 else
6435 eval "$as_acx_Woption=no"
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 eval ac_res=\$$as_acx_Woption
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6442 $as_echo "$ac_res" >&6; }
6443 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6444 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$real_option"
6446 done
6447 CFLAGS="$save_CFLAGS"
6449 # Do the check with the no- prefix removed from the warning options
6450 # since gcc silently accepts any -Wno-* option on purpose
6451 if test "$GCC" = yes; then :
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6453 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6454 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6456 else
6457 save_CFLAGS="$CFLAGS"
6458 CFLAGS="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6463 main ()
6467 return 0;
6469 _ACEOF
6470 if ac_fn_c_try_compile "$LINENO"; then :
6471 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=yes
6472 else
6473 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings=no
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 CFLAGS="$save_CFLAGS"
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6479 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6480 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6481 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6486 # Check whether --enable-werror-always was given.
6487 if test "${enable_werror_always+set}" = set; then :
6488 enableval=$enable_werror_always;
6489 else
6490 enable_werror_always=no
6493 if test $enable_werror_always = yes; then :
6494 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6499 # The above macros do nothing if the compiler is not GCC. However, the
6500 # Makefile has more goo to add other flags, so these variables are used
6501 # to enable warnings only for GCC.
6502 warn_cflags=
6503 warn_cxxflags=
6504 if test "x$GCC" = "xyes"; then
6505 warn_cflags='$(GCC_WARN_CFLAGS)'
6506 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6511 # Disable exceptions and RTTI if building with g++
6512 noexception_flags=
6513 save_CFLAGS="$CFLAGS"
6514 for real_option in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6515 # Do the check with the no- prefix removed since gcc silently
6516 # accepts any -Wno-* option on purpose
6517 case $real_option in
6518 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6519 *) option=$real_option ;;
6520 esac
6521 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 CFLAGS="$option"
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6533 main ()
6537 return 0;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541 eval "$as_acx_Woption=yes"
6542 else
6543 eval "$as_acx_Woption=no"
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548 eval ac_res=\$$as_acx_Woption
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
6554 done
6555 CFLAGS="$save_CFLAGS"
6558 # Enable expensive internal checks
6559 is_release=
6560 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6561 is_release=yes
6564 # Check whether --enable-checking was given.
6565 if test "${enable_checking+set}" = set; then :
6566 enableval=$enable_checking; ac_checking_flags="${enableval}"
6567 else
6569 # Determine the default checks.
6570 if test x$is_release = x ; then
6571 ac_checking_flags=yes
6572 else
6573 ac_checking_flags=release
6577 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6578 for check in release $ac_checking_flags
6580 case $check in
6581 # these set all the flags to specific states
6582 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6583 ac_fold_checking= ; ac_gc_checking=1 ;
6584 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6585 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6586 ac_tree_checking=1 ; ac_valgrind_checking= ;
6587 ac_types_checking=1 ;;
6588 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6589 ac_fold_checking= ; ac_gc_checking= ;
6590 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6591 ac_rtlflag_checking= ; ac_runtime_checking= ;
6592 ac_tree_checking= ; ac_valgrind_checking= ;
6593 ac_types_checking= ;;
6594 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6595 ac_fold_checking=1 ; ac_gc_checking=1 ;
6596 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6597 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6598 ac_tree_checking=1 ; ac_valgrind_checking= ;
6599 ac_types_checking=1 ;;
6600 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6601 ac_fold_checking= ; ac_gc_checking= ;
6602 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6603 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6604 ac_tree_checking= ; ac_valgrind_checking= ;
6605 ac_types_checking= ;;
6606 # these enable particular checks
6607 assert) ac_assert_checking=1 ;;
6608 df) ac_df_checking=1 ;;
6609 fold) ac_fold_checking=1 ;;
6610 gc) ac_gc_checking=1 ;;
6611 gcac) ac_gc_always_collect=1 ;;
6612 gimple) ac_gimple_checking=1 ;;
6613 misc) ac_checking=1 ;;
6614 rtl) ac_rtl_checking=1 ;;
6615 rtlflag) ac_rtlflag_checking=1 ;;
6616 runtime) ac_runtime_checking=1 ;;
6617 tree) ac_tree_checking=1 ;;
6618 types) ac_types_checking=1 ;;
6619 valgrind) ac_valgrind_checking=1 ;;
6620 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6621 esac
6622 done
6623 IFS="$ac_save_IFS"
6625 nocommon_flag=""
6626 if test x$ac_checking != x ; then
6628 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6630 nocommon_flag=-fno-common
6633 if test x$ac_df_checking != x ; then
6635 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6638 if test x$ac_assert_checking != x ; then
6640 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6643 if test x$ac_gimple_checking != x ; then
6645 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6649 if test x$ac_runtime_checking != x ; then
6651 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6654 if test x$ac_tree_checking != x ; then
6656 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6658 TREEBROWSER=tree-browser.o
6659 TREECHECKING=yes
6661 if test x$ac_types_checking != x ; then
6663 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6668 if test x$ac_rtl_checking != x ; then
6670 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6673 if test x$ac_rtlflag_checking != x ; then
6675 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6678 if test x$ac_gc_checking != x ; then
6680 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6683 if test x$ac_gc_always_collect != x ; then
6685 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6688 if test x$ac_fold_checking != x ; then
6690 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6693 valgrind_path_defines=
6694 valgrind_command=
6696 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6697 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6698 have_valgrind_h=yes
6699 else
6700 have_valgrind_h=no
6705 if test x$ac_valgrind_checking != x ; then
6706 # It is certainly possible that there's valgrind but no valgrind.h.
6707 # GCC relies on making annotations so we must have both.
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6709 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6711 /* end confdefs.h. */
6712 #include <valgrind/memcheck.h>
6713 #ifndef VALGRIND_DISCARD
6714 #error VALGRIND_DISCARD not defined
6715 #endif
6716 _ACEOF
6717 if ac_fn_c_try_cpp "$LINENO"; then :
6718 gcc_cv_header_valgrind_memcheck_h=yes
6719 else
6720 gcc_cv_header_valgrind_memcheck_h=no
6722 rm -f conftest.err conftest.$ac_ext
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6724 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6726 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6729 #include <memcheck.h>
6730 #ifndef VALGRIND_DISCARD
6731 #error VALGRIND_DISCARD not defined
6732 #endif
6733 _ACEOF
6734 if ac_fn_c_try_cpp "$LINENO"; then :
6735 gcc_cv_header_memcheck_h=yes
6736 else
6737 gcc_cv_header_memcheck_h=no
6739 rm -f conftest.err conftest.$ac_ext
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6741 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6743 # Prepare PATH_SEPARATOR.
6744 # The user is always right.
6745 if test "${PATH_SEPARATOR+set}" != set; then
6746 echo "#! /bin/sh" >conf$$.sh
6747 echo "exit 0" >>conf$$.sh
6748 chmod +x conf$$.sh
6749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6750 PATH_SEPARATOR=';'
6751 else
6752 PATH_SEPARATOR=:
6754 rm -f conf$$.sh
6757 # Find out how to test for executable files. Don't use a zero-byte file,
6758 # as systems may use methods other than mode bits to determine executability.
6759 cat >conf$$.file <<_ASEOF
6760 #! /bin/sh
6761 exit 0
6762 _ASEOF
6763 chmod +x conf$$.file
6764 if test -x conf$$.file >/dev/null 2>&1; then
6765 ac_executable_p="test -x"
6766 else
6767 ac_executable_p="test -f"
6769 rm -f conf$$.file
6771 # Extract the first word of "valgrind", so it can be a program name with args.
6772 set dummy valgrind; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6776 $as_echo_n "(cached) " >&6
6777 else
6778 case "$valgrind_path" in
6779 [\\/]* | ?:[\\/]*)
6780 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6783 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6784 for ac_dir in $PATH; do
6785 IFS="$ac_save_IFS"
6786 test -z "$ac_dir" && ac_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6789 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6790 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6791 break 2
6794 done
6795 done
6796 IFS="$ac_save_IFS"
6798 esac
6800 valgrind_path="$ac_cv_path_valgrind_path"
6801 if test -n "$valgrind_path"; then
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6803 $as_echo "$valgrind_path" >&6; }
6804 else
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6809 if test "x$valgrind_path" = "x" \
6810 || (test $have_valgrind_h = no \
6811 && test $gcc_cv_header_memcheck_h = no \
6812 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6813 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6815 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6816 valgrind_command="$valgrind_path -q"
6818 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6820 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6822 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6825 if test $gcc_cv_header_memcheck_h = yes; then
6827 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6834 # Enable code coverage collection
6835 # Check whether --enable-coverage was given.
6836 if test "${enable_coverage+set}" = set; then :
6837 enableval=$enable_coverage; case "${enableval}" in
6838 yes|noopt)
6839 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6841 opt)
6842 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6845 # a.k.a. --disable-coverage
6846 coverage_flags=""
6849 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6851 esac
6852 else
6853 coverage_flags=""
6858 # Check whether --enable-gather-detailed-mem-stats was given.
6859 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6860 enableval=$enable_gather_detailed_mem_stats;
6861 else
6862 enable_gather_detailed_mem_stats=no
6865 gather_stats=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6867 cat >>confdefs.h <<_ACEOF
6868 #define GATHER_STATISTICS $gather_stats
6869 _ACEOF
6872 # -------------------------------
6873 # Miscenalleous configure options
6874 # -------------------------------
6876 # With stabs
6878 # Check whether --with-stabs was given.
6879 if test "${with_stabs+set}" = set; then :
6880 withval=$with_stabs; stabs="$with_stabs"
6881 else
6882 stabs=no
6886 # Determine whether or not multilibs are enabled.
6887 # Check whether --enable-multilib was given.
6888 if test "${enable_multilib+set}" = set; then :
6889 enableval=$enable_multilib;
6890 else
6891 enable_multilib=yes
6896 # Determine whether or not multiarch is enabled.
6897 # Check whether --enable-multiarch was given.
6898 if test "${enable_multiarch+set}" = set; then :
6899 enableval=$enable_multiarch; case "${enableval}" in
6900 yes|no|auto) enable_multiarch=$enableval;;
6901 *) as_fn_error "bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
6902 esac
6903 else
6904 enable_multiarch=auto
6907 if test x${enable_multiarch} = xauto; then
6908 if test x${with_native_system_header_dir} != x; then
6909 ma_msg_suffix=", disabled auto check (configured with --native-system-header-dir)"
6910 enable_multiarch=no
6912 if test x$host != x$target && test "x$with_sysroot" = x; then
6913 ma_msg_suffix=", disabled auto check (cross build configured without --with-sysroot)"
6914 enable_multiarch=no
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
6918 $as_echo_n "checking for multiarch configuration... " >&6; }
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
6921 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
6923 # needed for setting the multiarch name for soft-float/hard-float ABIs
6927 # Enable __cxa_atexit for C++.
6928 # Check whether --enable-__cxa_atexit was given.
6929 if test "${enable___cxa_atexit+set}" = set; then :
6930 enableval=$enable___cxa_atexit;
6934 # Enable C extension for decimal float if target supports it.
6936 # Check whether --enable-decimal-float was given.
6937 if test "${enable_decimal_float+set}" = set; then :
6938 enableval=$enable_decimal_float;
6939 case $enable_decimal_float in
6940 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6941 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6942 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6943 esac
6945 else
6947 case $target in
6948 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6949 i?86*-*-gnu* | \
6950 i?86*-*-mingw* | x86_64*-*-mingw* | \
6951 i?86*-*-cygwin* | x86_64*-*-cygwin*)
6952 enable_decimal_float=yes
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6956 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6957 enable_decimal_float=no
6959 esac
6964 # x86's use BID format instead of DPD
6965 case x$enable_decimal_float in
6966 xyes)
6967 case $target in
6968 i?86*-*-* | x86_64*-*-*)
6969 enable_decimal_float=bid
6972 enable_decimal_float=dpd
6974 esac
6975 default_decimal_float=$enable_decimal_float
6977 xno)
6978 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6979 # dependency on libdecnumber.
6980 default_decimal_float=dpd
6982 esac
6987 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6989 cat >>confdefs.h <<_ACEOF
6990 #define ENABLE_DECIMAL_FLOAT $dfp
6991 _ACEOF
6994 # Use default_decimal_float for dependency.
6995 enable_decimal_float=$default_decimal_float
6997 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6999 cat >>confdefs.h <<_ACEOF
7000 #define ENABLE_DECIMAL_BID_FORMAT $bid
7001 _ACEOF
7004 # Enable C extension for fixed-point arithmetic.
7005 # Check whether --enable-fixed-point was given.
7006 if test "${enable_fixed_point+set}" = set; then :
7007 enableval=$enable_fixed_point;
7008 else
7010 case $target in
7011 arm*)
7012 enable_fixed_point=yes
7015 mips*-*-*)
7016 enable_fixed_point=yes
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7020 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7021 enable_fixed_point=no
7023 esac
7029 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7031 cat >>confdefs.h <<_ACEOF
7032 #define ENABLE_FIXED_POINT $fixedpoint
7033 _ACEOF
7036 # Enable threads
7037 # Pass with no value to take the default
7038 # Pass with a value to specify a thread package
7039 # Check whether --enable-threads was given.
7040 if test "${enable_threads+set}" = set; then :
7041 enableval=$enable_threads;
7042 else
7043 enable_threads=''
7047 # Check whether --enable-tls was given.
7048 if test "${enable_tls+set}" = set; then :
7049 enableval=$enable_tls;
7050 case $enable_tls in
7051 yes | no) ;;
7052 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7053 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7054 esac
7056 else
7057 enable_tls=''
7061 # Check whether --enable-objc-gc was given.
7062 if test "${enable_objc_gc+set}" = set; then :
7063 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7064 objc_boehm_gc=''
7065 else
7066 objc_boehm_gc=1
7068 else
7069 objc_boehm_gc=''
7074 # Check whether --with-dwarf2 was given.
7075 if test "${with_dwarf2+set}" = set; then :
7076 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7077 else
7078 dwarf2=no
7082 # Check whether --enable-shared was given.
7083 if test "${enable_shared+set}" = set; then :
7084 enableval=$enable_shared;
7085 case $enable_shared in
7086 yes | no) ;;
7088 enable_shared=no
7089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7090 for pkg in $enableval; do
7091 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7092 enable_shared=yes
7094 done
7095 IFS="$ac_save_ifs"
7097 esac
7099 else
7100 enable_shared=yes
7106 # Check whether --with-native-system-header-dir was given.
7107 if test "${with_native_system_header_dir+set}" = set; then :
7108 withval=$with_native_system_header_dir;
7109 case ${with_native_system_header_dir} in
7110 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7111 /* | [A-Za-z]:[\\/]*) ;;
7112 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7113 esac
7114 configured_native_system_header_dir="${withval}"
7116 else
7117 configured_native_system_header_dir=
7122 # Check whether --with-build-sysroot was given.
7123 if test "${with_build_sysroot+set}" = set; then :
7124 withval=$with_build_sysroot; if test x"$withval" != x ; then
7125 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7127 else
7128 SYSROOT_CFLAGS_FOR_TARGET=
7133 if test "x$prefix" = xNONE; then
7134 test_prefix=/usr/local
7135 else
7136 test_prefix=$prefix
7138 if test "x$exec_prefix" = xNONE; then
7139 test_exec_prefix=$test_prefix
7140 else
7141 test_exec_prefix=$exec_prefix
7145 # Check whether --with-sysroot was given.
7146 if test "${with_sysroot+set}" = set; then :
7147 withval=$with_sysroot;
7148 case ${with_sysroot} in
7149 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7150 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7151 esac
7153 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7154 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7156 case ${TARGET_SYSTEM_ROOT} in
7157 "${test_prefix}"|"${test_prefix}/"*|\
7158 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7159 '${prefix}'|'${prefix}/'*|\
7160 '${exec_prefix}'|'${exec_prefix}/'*)
7161 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7162 TARGET_SYSTEM_ROOT_DEFINE="$t"
7164 esac
7166 else
7168 TARGET_SYSTEM_ROOT=
7169 TARGET_SYSTEM_ROOT_DEFINE=
7170 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7179 # Check whether --with-specs was given.
7180 if test "${with_specs+set}" = set; then :
7181 withval=$with_specs; CONFIGURE_SPECS=$withval
7182 else
7183 CONFIGURE_SPECS=
7191 # Check whether --with-pkgversion was given.
7192 if test "${with_pkgversion+set}" = set; then :
7193 withval=$with_pkgversion; case "$withval" in
7194 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7195 no) PKGVERSION= ;;
7196 *) PKGVERSION="($withval) " ;;
7197 esac
7198 else
7199 PKGVERSION="(GCC) "
7207 # Check whether --with-bugurl was given.
7208 if test "${with_bugurl+set}" = set; then :
7209 withval=$with_bugurl; case "$withval" in
7210 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7211 no) BUGURL=
7213 *) BUGURL="$withval"
7215 esac
7216 else
7217 BUGURL="http://gcc.gnu.org/bugs.html"
7221 case ${BUGURL} in
7223 REPORT_BUGS_TO=
7224 REPORT_BUGS_TEXI=
7227 REPORT_BUGS_TO="<$BUGURL>"
7228 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7230 esac;
7235 # Sanity check enable_languages in case someone does not run the toplevel
7236 # configure # script.
7237 # Check whether --enable-languages was given.
7238 if test "${enable_languages+set}" = set; then :
7239 enableval=$enable_languages; case ,${enable_languages}, in
7240 ,,|,yes,)
7241 # go safe -- we cannot be much sure without the toplevel
7242 # configure's
7243 # analysis of which target libs are present and usable
7244 enable_languages=c
7246 *,all,*)
7247 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7249 *,c,*)
7252 enable_languages=c,${enable_languages}
7254 esac
7255 else
7256 enable_languages=c
7261 # Check whether --with-multilib-list was given.
7262 if test "${with_multilib_list+set}" = set; then :
7263 withval=$with_multilib_list; :
7264 else
7265 with_multilib_list=default
7269 # -------------------------
7270 # Checks for other programs
7271 # -------------------------
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7275 set x ${MAKE-make}
7276 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7277 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 cat >conftest.make <<\_ACEOF
7281 SHELL = /bin/sh
7282 all:
7283 @echo '@@@%%%=$(MAKE)=@@@%%%'
7284 _ACEOF
7285 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7287 *@@@%%%=?*=@@@%%%*)
7288 eval ac_cv_prog_make_${ac_make}_set=yes;;
7290 eval ac_cv_prog_make_${ac_make}_set=no;;
7291 esac
7292 rm -f conftest.make
7294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7296 $as_echo "yes" >&6; }
7297 SET_MAKE=
7298 else
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7301 SET_MAKE="MAKE=${MAKE-make}"
7305 # Find some useful tools
7306 for ac_prog in gawk mawk nawk awk
7308 # Extract the first word of "$ac_prog", so it can be a program name with args.
7309 set dummy $ac_prog; ac_word=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if test "${ac_cv_prog_AWK+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 if test -n "$AWK"; then
7316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_prog_AWK="$ac_prog"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7329 done
7330 done
7331 IFS=$as_save_IFS
7335 AWK=$ac_cv_prog_AWK
7336 if test -n "$AWK"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7338 $as_echo "$AWK" >&6; }
7339 else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7345 test -n "$AWK" && break
7346 done
7348 # We need awk to create options.c and options.h.
7349 # Bail out if it's missing.
7350 case ${AWK} in
7351 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7352 esac
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7355 $as_echo_n "checking whether ln -s works... " >&6; }
7356 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 rm -f conftestdata_t
7360 echo >conftestdata_f
7361 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7362 then
7363 gcc_cv_prog_LN_S="ln -s"
7364 else
7365 if ln conftestdata_f conftestdata_t 2>/dev/null
7366 then
7367 gcc_cv_prog_LN_S=ln
7368 else
7369 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7370 then
7371 gcc_cv_prog_LN_S="cp -p"
7372 else
7373 gcc_cv_prog_LN_S=cp
7377 rm -f conftestdata_f conftestdata_t
7380 LN_S="$gcc_cv_prog_LN_S"
7381 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7383 $as_echo "yes" >&6; }
7384 else
7385 if test "$gcc_cv_prog_LN_S" = "ln"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7387 $as_echo "no, using ln" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7390 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7395 $as_echo_n "checking whether ln works... " >&6; }
7396 if test "${acx_cv_prog_LN+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 rm -f conftestdata_t
7400 echo >conftestdata_f
7401 if ln conftestdata_f conftestdata_t 2>/dev/null
7402 then
7403 acx_cv_prog_LN=ln
7404 else
7405 acx_cv_prog_LN=no
7407 rm -f conftestdata_f conftestdata_t
7410 if test $acx_cv_prog_LN = no; then
7411 LN="$LN_S"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7413 $as_echo "no, using $LN" >&6; }
7414 else
7415 LN="$acx_cv_prog_LN"
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7417 $as_echo "yes" >&6; }
7420 if test -n "$ac_tool_prefix"; then
7421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 if test -n "$RANLIB"; then
7429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7442 done
7443 done
7444 IFS=$as_save_IFS
7448 RANLIB=$ac_cv_prog_RANLIB
7449 if test -n "$RANLIB"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7451 $as_echo "$RANLIB" >&6; }
7452 else
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7459 if test -z "$ac_cv_prog_RANLIB"; then
7460 ac_ct_RANLIB=$RANLIB
7461 # Extract the first word of "ranlib", so it can be a program name with args.
7462 set dummy ranlib; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 if test -n "$ac_ct_RANLIB"; then
7469 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_prog_ac_ct_RANLIB="ranlib"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7482 done
7483 done
7484 IFS=$as_save_IFS
7488 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7489 if test -n "$ac_ct_RANLIB"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7491 $as_echo "$ac_ct_RANLIB" >&6; }
7492 else
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7497 if test "x$ac_ct_RANLIB" = x; then
7498 RANLIB=":"
7499 else
7500 case $cross_compiling:$ac_tool_warned in
7501 yes:)
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7504 ac_tool_warned=yes ;;
7505 esac
7506 RANLIB=$ac_ct_RANLIB
7508 else
7509 RANLIB="$ac_cv_prog_RANLIB"
7512 ranlib_flags=""
7515 # Find a good install program. We prefer a C program (faster),
7516 # so one script is as good as another. But avoid the broken or
7517 # incompatible versions:
7518 # SysV /etc/install, /usr/sbin/install
7519 # SunOS /usr/etc/install
7520 # IRIX /sbin/install
7521 # AIX /bin/install
7522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7524 # ./install, which can be erroneously created by make from ./install.sh.
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7526 $as_echo_n "checking for a BSD compatible install... " >&6; }
7527 if test -z "$INSTALL"; then
7528 if test "${ac_cv_path_install+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7532 for ac_dir in $PATH; do
7533 # Account for people who put trailing slashes in PATH elements.
7534 case "$ac_dir/" in
7535 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7537 # OSF1 and SCO ODT 3.0 have their own names for install.
7538 for ac_prog in ginstall scoinst install; do
7539 if test -f $ac_dir/$ac_prog; then
7540 if test $ac_prog = install &&
7541 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7542 # AIX install. It has an incompatible calling convention.
7543 # OSF/1 installbsd also uses dspmsg, but is usable.
7545 else
7546 ac_cv_path_install="$ac_dir/$ac_prog -c"
7547 break 2
7550 done
7552 esac
7553 done
7554 IFS="$ac_save_IFS"
7557 if test "${ac_cv_path_install+set}" = set; then
7558 INSTALL="$ac_cv_path_install"
7559 else
7560 # As a last resort, use the slow shell script. We don't cache a
7561 # path for INSTALL within a source directory, because that will
7562 # break other packages using the cache if that directory is
7563 # removed, or if the path is relative.
7564 INSTALL="$ac_install_sh"
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7568 $as_echo "$INSTALL" >&6; }
7570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7571 # It thinks the first close brace ends the variable substitution.
7572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7574 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7577 # See if cmp has --ignore-initial.
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7579 $as_echo_n "checking for cmp's capabilities... " >&6; }
7580 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 echo abfoo >t1
7584 echo cdfoo >t2
7585 gcc_cv_prog_cmp_skip=slowcompare
7586 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7587 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7589 else
7590 gcc_cv_prog_cmp_skip=gnucompare
7593 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7594 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7595 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7597 else
7598 gcc_cv_prog_cmp_skip=fastcompare
7602 rm t1 t2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7606 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7607 make_compare_target=$gcc_cv_prog_cmp_skip
7611 # See if we have the mktemp command.
7612 # Extract the first word of "mktemp", so it can be a program name with args.
7613 set dummy mktemp; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 if test -n "$have_mktemp_command"; then
7620 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 ac_cv_prog_have_mktemp_command="yes"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7633 done
7634 done
7635 IFS=$as_save_IFS
7637 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7640 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7641 if test -n "$have_mktemp_command"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7643 $as_echo "$have_mktemp_command" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 # See if makeinfo has been installed and is modern enough
7652 # that we can use it.
7654 # Extract the first word of "makeinfo", so it can be a program name with args.
7655 set dummy makeinfo; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 if test -n "$MAKEINFO"; then
7662 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7667 IFS=$as_save_IFS
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7671 ac_cv_prog_MAKEINFO="makeinfo"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673 break 2
7675 done
7676 done
7677 IFS=$as_save_IFS
7681 MAKEINFO=$ac_cv_prog_MAKEINFO
7682 if test -n "$MAKEINFO"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7684 $as_echo "$MAKEINFO" >&6; }
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7691 if test -n "$MAKEINFO"; then
7692 # Found it, now check the version.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7694 $as_echo_n "checking for modern makeinfo... " >&6; }
7695 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7699 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7701 case $ac_prog_version in
7702 '') gcc_cv_prog_makeinfo_modern=no;;
7703 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7704 *) gcc_cv_prog_makeinfo_modern=no;;
7705 esac
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7709 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7710 else
7711 gcc_cv_prog_makeinfo_modern=no
7713 if test $gcc_cv_prog_makeinfo_modern = no; then
7714 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7717 if test $gcc_cv_prog_makeinfo_modern = no; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7719 *** Makeinfo is missing or too old.
7720 *** Info documentation will not be built." >&5
7721 $as_echo "$as_me: WARNING:
7722 *** Makeinfo is missing or too old.
7723 *** Info documentation will not be built." >&2;}
7724 BUILD_INFO=
7725 else
7726 BUILD_INFO=info
7730 # Is pod2man recent enough to regenerate manpages?
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7732 $as_echo_n "checking for recent Pod::Man... " >&6; }
7733 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7735 $as_echo "yes" >&6; }
7736 GENERATED_MANPAGES=generated-manpages
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 GENERATED_MANPAGES=
7744 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7746 # How about lex?
7747 for ac_prog in flex
7749 # Extract the first word of "$ac_prog", so it can be a program name with args.
7750 set dummy $ac_prog; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if test "${ac_cv_prog_FLEX+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 if test -n "$FLEX"; then
7757 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7766 ac_cv_prog_FLEX="$ac_prog"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 break 2
7770 done
7771 done
7772 IFS=$as_save_IFS
7776 FLEX=$ac_cv_prog_FLEX
7777 if test -n "$FLEX"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7779 $as_echo "$FLEX" >&6; }
7780 else
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7786 test -n "$FLEX" && break
7787 done
7788 test -n "$FLEX" || FLEX="$MISSING flex"
7791 # Bison?
7792 for ac_prog in bison
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_BISON+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$BISON"; then
7802 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_BISON="$ac_prog"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7817 IFS=$as_save_IFS
7821 BISON=$ac_cv_prog_BISON
7822 if test -n "$BISON"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7824 $as_echo "$BISON" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7831 test -n "$BISON" && break
7832 done
7833 test -n "$BISON" || BISON="$MISSING bison"
7836 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7837 # check for build == host before using them.
7839 # NM
7840 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7841 && test -d ../binutils ; then
7842 NM='${objdir}/../binutils/nm-new'
7843 else
7844 # Extract the first word of "nm", so it can be a program name with args.
7845 set dummy nm; ac_word=$2
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847 $as_echo_n "checking for $ac_word... " >&6; }
7848 if test "${ac_cv_prog_NM+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 if test -n "$NM"; then
7852 ac_cv_prog_NM="$NM" # Let the user override the test.
7853 else
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7861 ac_cv_prog_NM="nm"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7865 done
7866 done
7867 IFS=$as_save_IFS
7869 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7872 NM=$ac_cv_prog_NM
7873 if test -n "$NM"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7875 $as_echo "$NM" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7884 # AR
7885 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7886 && test -d ../binutils ; then
7887 AR='${objdir}/../binutils/ar'
7888 else
7889 # Extract the first word of "ar", so it can be a program name with args.
7890 set dummy ar; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if test "${ac_cv_prog_AR+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 if test -n "$AR"; then
7897 ac_cv_prog_AR="$AR" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7906 ac_cv_prog_AR="ar"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7910 done
7911 done
7912 IFS=$as_save_IFS
7914 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7917 AR=$ac_cv_prog_AR
7918 if test -n "$AR"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7920 $as_echo "$AR" >&6; }
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7930 # --------------------
7931 # Checks for C headers
7932 # --------------------
7934 # Need to reject headers which give warnings, so that the -Werror bootstrap
7935 # works later. *sigh* This needs to come before all header checks.
7937 ac_c_preproc_warn_flag=yes
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7940 $as_echo_n "checking for ANSI C header files... " >&6; }
7941 if test "${ac_cv_header_stdc+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 #include <stdlib.h>
7947 #include <stdarg.h>
7948 #include <string.h>
7949 #include <float.h>
7952 main ()
7956 return 0;
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"; then :
7960 ac_cv_header_stdc=yes
7961 else
7962 ac_cv_header_stdc=no
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 if test $ac_cv_header_stdc = yes; then
7967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 #include <string.h>
7972 _ACEOF
7973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7974 $EGREP "memchr" >/dev/null 2>&1; then :
7976 else
7977 ac_cv_header_stdc=no
7979 rm -f conftest*
7983 if test $ac_cv_header_stdc = yes; then
7984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 #include <stdlib.h>
7989 _ACEOF
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "free" >/dev/null 2>&1; then :
7993 else
7994 ac_cv_header_stdc=no
7996 rm -f conftest*
8000 if test $ac_cv_header_stdc = yes; then
8001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8002 if test "$cross_compiling" = yes; then :
8004 else
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <ctype.h>
8008 #include <stdlib.h>
8009 #if ((' ' & 0x0FF) == 0x020)
8010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8012 #else
8013 # define ISLOWER(c) \
8014 (('a' <= (c) && (c) <= 'i') \
8015 || ('j' <= (c) && (c) <= 'r') \
8016 || ('s' <= (c) && (c) <= 'z'))
8017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8018 #endif
8020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8022 main ()
8024 int i;
8025 for (i = 0; i < 256; i++)
8026 if (XOR (islower (i), ISLOWER (i))
8027 || toupper (i) != TOUPPER (i))
8028 return 2;
8029 return 0;
8031 _ACEOF
8032 if ac_fn_c_try_run "$LINENO"; then :
8034 else
8035 ac_cv_header_stdc=no
8037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8038 conftest.$ac_objext conftest.beam conftest.$ac_ext
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8044 $as_echo "$ac_cv_header_stdc" >&6; }
8045 if test $ac_cv_header_stdc = yes; then
8047 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8052 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8053 if test "${ac_cv_header_time+set}" = set; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 #include <sys/types.h>
8059 #include <sys/time.h>
8060 #include <time.h>
8063 main ()
8065 if ((struct tm *) 0)
8066 return 0;
8068 return 0;
8070 _ACEOF
8071 if ac_fn_c_try_compile "$LINENO"; then :
8072 ac_cv_header_time=yes
8073 else
8074 ac_cv_header_time=no
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8079 $as_echo "$ac_cv_header_time" >&6; }
8080 if test $ac_cv_header_time = yes; then
8082 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8087 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8088 if test "${gcc_cv_header_string+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 #include <string.h>
8094 #include <strings.h>
8096 main ()
8100 return 0;
8102 _ACEOF
8103 if ac_fn_c_try_compile "$LINENO"; then :
8104 gcc_cv_header_string=yes
8105 else
8106 gcc_cv_header_string=no
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8111 $as_echo "$gcc_cv_header_string" >&6; }
8112 if test $gcc_cv_header_string = yes; then
8114 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8119 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8120 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 #include <sys/types.h>
8126 #include <sys/wait.h>
8127 #ifndef WEXITSTATUS
8128 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8129 #endif
8130 #ifndef WIFEXITED
8131 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8132 #endif
8135 main ()
8137 int s;
8138 wait (&s);
8139 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8141 return 0;
8143 _ACEOF
8144 if ac_fn_c_try_compile "$LINENO"; then :
8145 ac_cv_header_sys_wait_h=yes
8146 else
8147 ac_cv_header_sys_wait_h=no
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8152 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8153 if test $ac_cv_header_sys_wait_h = yes; then
8155 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8160 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8161 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8162 $as_echo_n "(cached) " >&6
8163 else
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 #include <sys/types.h>
8167 #include <termios.h>
8168 #ifdef TIOCGWINSZ
8170 #endif
8172 _ACEOF
8173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8174 $EGREP "yes" >/dev/null 2>&1; then :
8175 ac_cv_sys_tiocgwinsz_in_termios_h=yes
8176 else
8177 ac_cv_sys_tiocgwinsz_in_termios_h=no
8179 rm -f conftest*
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8183 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8185 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8187 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8188 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 #include <sys/types.h>
8194 #include <sys/ioctl.h>
8195 #ifdef TIOCGWINSZ
8197 #endif
8199 _ACEOF
8200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8201 $EGREP "yes" >/dev/null 2>&1; then :
8202 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
8203 else
8204 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
8206 rm -f conftest*
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8210 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8212 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8214 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8219 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8220 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8221 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8222 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8223 do :
8224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8225 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8226 eval as_val=\$$as_ac_Header
8227 if test "x$as_val" = x""yes; then :
8228 cat >>confdefs.h <<_ACEOF
8229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8230 _ACEOF
8233 done
8236 # Check for thread headers.
8237 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8238 if test "x$ac_cv_header_thread_h" = x""yes; then :
8239 have_thread_h=yes
8240 else
8241 have_thread_h=
8244 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8245 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8246 have_pthread_h=yes
8247 else
8248 have_pthread_h=
8252 # These tests can't be done till we know if we have limits.h.
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8254 $as_echo_n "checking for CHAR_BIT... " >&6; }
8255 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 #ifdef HAVE_LIMITS_H
8261 #include <limits.h>
8262 #endif
8263 #ifdef CHAR_BIT
8264 found
8265 #endif
8266 _ACEOF
8267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8268 $EGREP "found" >/dev/null 2>&1; then :
8269 gcc_cv_decl_char_bit=yes
8270 else
8271 gcc_cv_decl_char_bit=no
8273 rm -f conftest*
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8278 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8279 if test $gcc_cv_decl_char_bit = no; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8281 $as_echo_n "checking number of bits in a byte... " >&6; }
8282 if test "${gcc_cv_c_nbby+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8286 gcc_cv_c_nbby=
8287 while test $i -lt 65; do
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8292 main ()
8294 switch(0) {
8295 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8296 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8299 return 0;
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"; then :
8303 gcc_cv_c_nbby=$i; break
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 i=`expr $i + 1`
8307 done
8308 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8312 $as_echo "$gcc_cv_c_nbby" >&6; }
8313 if test $gcc_cv_c_nbby = failed; then
8314 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8315 else
8317 cat >>confdefs.h <<_ACEOF
8318 #define CHAR_BIT $gcc_cv_c_nbby
8319 _ACEOF
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8324 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8325 if test "${ac_cv_c_bigendian+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 ac_cv_c_bigendian=unknown
8329 # See if we're dealing with a universal compiler.
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332 #ifndef __APPLE_CC__
8333 not a universal capable compiler
8334 #endif
8335 typedef int dummy;
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"; then :
8340 # Check for potential -arch flags. It is not universal unless
8341 # there are at least two -arch flags with different values.
8342 ac_arch=
8343 ac_prev=
8344 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8345 if test -n "$ac_prev"; then
8346 case $ac_word in
8347 i?86 | x86_64 | ppc | ppc64)
8348 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8349 ac_arch=$ac_word
8350 else
8351 ac_cv_c_bigendian=universal
8352 break
8355 esac
8356 ac_prev=
8357 elif test "x$ac_word" = "x-arch"; then
8358 ac_prev=arch
8360 done
8362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363 if test $ac_cv_c_bigendian = unknown; then
8364 # See if sys/param.h defines the BYTE_ORDER macro.
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 #include <sys/types.h>
8368 #include <sys/param.h>
8371 main ()
8373 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8374 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8375 && LITTLE_ENDIAN)
8376 bogus endian macros
8377 #endif
8380 return 0;
8382 _ACEOF
8383 if ac_fn_c_try_compile "$LINENO"; then :
8384 # It does; now see whether it defined to BIG_ENDIAN or not.
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 #include <sys/types.h>
8388 #include <sys/param.h>
8391 main ()
8393 #if BYTE_ORDER != BIG_ENDIAN
8394 not big endian
8395 #endif
8398 return 0;
8400 _ACEOF
8401 if ac_fn_c_try_compile "$LINENO"; then :
8402 ac_cv_c_bigendian=yes
8403 else
8404 ac_cv_c_bigendian=no
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 if test $ac_cv_c_bigendian = unknown; then
8411 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 #include <limits.h>
8417 main ()
8419 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8420 bogus endian macros
8421 #endif
8424 return 0;
8426 _ACEOF
8427 if ac_fn_c_try_compile "$LINENO"; then :
8428 # It does; now see whether it defined to _BIG_ENDIAN or not.
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8431 #include <limits.h>
8434 main ()
8436 #ifndef _BIG_ENDIAN
8437 not big endian
8438 #endif
8441 return 0;
8443 _ACEOF
8444 if ac_fn_c_try_compile "$LINENO"; then :
8445 ac_cv_c_bigendian=yes
8446 else
8447 ac_cv_c_bigendian=no
8449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 if test $ac_cv_c_bigendian = unknown; then
8454 # Compile a test program.
8455 if test "$cross_compiling" = yes; then :
8456 # Try to guess by grepping values from an object file.
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 short int ascii_mm[] =
8460 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8461 short int ascii_ii[] =
8462 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8463 int use_ascii (int i) {
8464 return ascii_mm[i] + ascii_ii[i];
8466 short int ebcdic_ii[] =
8467 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8468 short int ebcdic_mm[] =
8469 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8470 int use_ebcdic (int i) {
8471 return ebcdic_mm[i] + ebcdic_ii[i];
8473 extern int foo;
8476 main ()
8478 return use_ascii (foo) == use_ebcdic (foo);
8480 return 0;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"; then :
8484 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8485 ac_cv_c_bigendian=yes
8487 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8488 if test "$ac_cv_c_bigendian" = unknown; then
8489 ac_cv_c_bigendian=no
8490 else
8491 # finding both strings is unlikely to happen, but who knows?
8492 ac_cv_c_bigendian=unknown
8496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497 else
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 $ac_includes_default
8502 main ()
8505 /* Are we little or big endian? From Harbison&Steele. */
8506 union
8508 long int l;
8509 char c[sizeof (long int)];
8510 } u;
8511 u.l = 1;
8512 return u.c[sizeof (long int) - 1] == 1;
8515 return 0;
8517 _ACEOF
8518 if ac_fn_c_try_run "$LINENO"; then :
8519 ac_cv_c_bigendian=no
8520 else
8521 ac_cv_c_bigendian=yes
8523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8524 conftest.$ac_objext conftest.beam conftest.$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8530 $as_echo "$ac_cv_c_bigendian" >&6; }
8531 case $ac_cv_c_bigendian in #(
8532 yes)
8533 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8534 ;; #(
8536 ;; #(
8537 universal)
8539 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8541 ;; #(
8543 as_fn_error "unknown endianness
8544 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8545 esac
8548 # ----------------------
8549 # Checks for C++ headers
8550 # ----------------------
8552 ac_ext=cpp
8553 ac_cpp='$CXXCPP $CPPFLAGS'
8554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8558 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8559 if test -z "$CXXCPP"; then
8560 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 # Double quotes because CXXCPP needs to be expanded
8564 for CXXCPP in "$CXX -E" "/lib/cpp"
8566 ac_preproc_ok=false
8567 for ac_cxx_preproc_warn_flag in '' yes
8569 # Use a header file that comes with gcc, so configuring glibc
8570 # with a fresh cross-compiler works.
8571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8572 # <limits.h> exists even on freestanding compilers.
8573 # On the NeXT, cc -E runs the code through the compiler's parser,
8574 # not just through cpp. "Syntax error" is here to catch this case.
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8577 #ifdef __STDC__
8578 # include <limits.h>
8579 #else
8580 # include <assert.h>
8581 #endif
8582 Syntax error
8583 _ACEOF
8584 if ac_fn_cxx_try_cpp "$LINENO"; then :
8586 else
8587 # Broken: fails on valid input.
8588 continue
8590 rm -f conftest.err conftest.$ac_ext
8592 # OK, works on sane cases. Now check whether nonexistent headers
8593 # can be detected and how.
8594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8595 /* end confdefs.h. */
8596 #include <ac_nonexistent.h>
8597 _ACEOF
8598 if ac_fn_cxx_try_cpp "$LINENO"; then :
8599 # Broken: success on invalid input.
8600 continue
8601 else
8602 # Passes both tests.
8603 ac_preproc_ok=:
8604 break
8606 rm -f conftest.err conftest.$ac_ext
8608 done
8609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8610 rm -f conftest.err conftest.$ac_ext
8611 if $ac_preproc_ok; then :
8612 break
8615 done
8616 ac_cv_prog_CXXCPP=$CXXCPP
8619 CXXCPP=$ac_cv_prog_CXXCPP
8620 else
8621 ac_cv_prog_CXXCPP=$CXXCPP
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8624 $as_echo "$CXXCPP" >&6; }
8625 ac_preproc_ok=false
8626 for ac_cxx_preproc_warn_flag in '' yes
8628 # Use a header file that comes with gcc, so configuring glibc
8629 # with a fresh cross-compiler works.
8630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631 # <limits.h> exists even on freestanding compilers.
8632 # On the NeXT, cc -E runs the code through the compiler's parser,
8633 # not just through cpp. "Syntax error" is here to catch this case.
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8636 #ifdef __STDC__
8637 # include <limits.h>
8638 #else
8639 # include <assert.h>
8640 #endif
8641 Syntax error
8642 _ACEOF
8643 if ac_fn_cxx_try_cpp "$LINENO"; then :
8645 else
8646 # Broken: fails on valid input.
8647 continue
8649 rm -f conftest.err conftest.$ac_ext
8651 # OK, works on sane cases. Now check whether nonexistent headers
8652 # can be detected and how.
8653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8654 /* end confdefs.h. */
8655 #include <ac_nonexistent.h>
8656 _ACEOF
8657 if ac_fn_cxx_try_cpp "$LINENO"; then :
8658 # Broken: success on invalid input.
8659 continue
8660 else
8661 # Passes both tests.
8662 ac_preproc_ok=:
8663 break
8665 rm -f conftest.err conftest.$ac_ext
8667 done
8668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8669 rm -f conftest.err conftest.$ac_ext
8670 if $ac_preproc_ok; then :
8672 else
8673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8676 See \`config.log' for more details." >&5
8677 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8678 See \`config.log' for more details." >&2;}; }
8681 ac_ext=c
8682 ac_cpp='$CPP $CPPFLAGS'
8683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688 ac_ext=cpp
8689 ac_cpp='$CXXCPP $CPPFLAGS'
8690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8697 for ac_header in unordered_map
8698 do :
8699 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8700 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8701 cat >>confdefs.h <<_ACEOF
8702 #define HAVE_UNORDERED_MAP 1
8703 _ACEOF
8706 done
8708 for ac_header in tr1/unordered_map
8709 do :
8710 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8711 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_TR1_UNORDERED_MAP 1
8714 _ACEOF
8717 done
8719 for ac_header in ext/hash_map
8720 do :
8721 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8722 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8723 cat >>confdefs.h <<_ACEOF
8724 #define HAVE_EXT_HASH_MAP 1
8725 _ACEOF
8728 done
8731 ac_ext=c
8732 ac_cpp='$CPP $CPPFLAGS'
8733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8738 # --------
8739 # Dependency checking.
8740 # --------
8742 ac_ext=cpp
8743 ac_cpp='$CXXCPP $CPPFLAGS'
8744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8748 rm -rf .tst 2>/dev/null
8749 mkdir .tst 2>/dev/null
8750 if test -d .tst; then
8751 am__leading_dot=.
8752 else
8753 am__leading_dot=_
8755 rmdir .tst 2>/dev/null
8757 DEPDIR="${am__leading_dot}deps"
8759 ac_config_commands="$ac_config_commands depdir"
8762 ac_config_commands="$ac_config_commands gccdepdir"
8765 depcc="$CC" am_compiler_list=
8767 am_depcomp=$ac_aux_dir/depcomp
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8769 $as_echo_n "checking dependency style of $depcc... " >&6; }
8770 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
8771 $as_echo_n "(cached) " >&6
8772 else
8773 if test -f "$am_depcomp"; then
8774 # We make a subdir and do the tests there. Otherwise we can end up
8775 # making bogus files that we don't know about and never remove. For
8776 # instance it was reported that on HP-UX the gcc test will end up
8777 # making a dummy file named `D' -- because `-MD' means `put the output
8778 # in D'.
8779 mkdir conftest.dir
8780 # Copy depcomp to subdir because otherwise we won't find it if we're
8781 # using a relative directory.
8782 cp "$am_depcomp" conftest.dir
8783 cd conftest.dir
8784 # We will build objects and dependencies in a subdirectory because
8785 # it helps to detect inapplicable dependency modes. For instance
8786 # both Tru64's cc and ICC support -MD to output dependencies as a
8787 # side effect of compilation, but ICC will put the dependencies in
8788 # the current directory while Tru64 will put them in the object
8789 # directory.
8790 mkdir sub
8792 am_cv_CC_dependencies_compiler_type=none
8793 if test "$am_compiler_list" = ""; then
8794 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8796 for depmode in $am_compiler_list; do
8797 if test $depmode = none; then break; fi
8799 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8800 # Setup a source with many dependencies, because some compilers
8801 # like to wrap large dependency lists on column 80 (with \), and
8802 # we should not choose a depcomp mode which is confused by this.
8804 # We need to recreate these files for each test, as the compiler may
8805 # overwrite some of them when testing with obscure command lines.
8806 # This happens at least with the AIX C compiler.
8807 : > sub/conftest.c
8808 for i in 1 2 3 4 5 6; do
8809 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8810 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8811 # Solaris 8's {/usr,}/bin/sh.
8812 touch sub/conftst$i.h
8813 done
8814 echo "include sub/conftest.Po" > confmf
8816 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8817 # mode. It turns out that the SunPro C++ compiler does not properly
8818 # handle `-M -o', and we need to detect this.
8819 depcmd="depmode=$depmode \
8820 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8821 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8822 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8823 echo "| $depcmd" | sed -e 's/ */ /g' >&5
8824 if env $depcmd > conftest.err 2>&1 &&
8825 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
8826 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
8827 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
8828 # icc doesn't choke on unknown options, it will just issue warnings
8829 # or remarks (even with -Werror). So we grep stderr for any message
8830 # that says an option was ignored or not supported.
8831 # When given -MP, icc 7.0 and 7.1 complain thusly:
8832 # icc: Command line warning: ignoring option '-M'; no argument required
8833 # The diagnosis changed in icc 8.0:
8834 # icc: Command line remark: option '-MP' not supported
8835 if (grep 'ignoring option' conftest.err ||
8836 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8837 am_cv_CC_dependencies_compiler_type=$depmode
8838 $as_echo "$as_me:$LINENO: success" >&5
8839 break
8842 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8843 sed -e 's/^/| /' < conftest.err >&5
8844 done
8846 cd ..
8847 rm -rf conftest.dir
8848 else
8849 am_cv_CC_dependencies_compiler_type=none
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
8854 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8855 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
8856 then as_fn_error "no usable dependency style found" "$LINENO" 5
8857 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
8861 ac_ext=c
8862 ac_cpp='$CPP $CPPFLAGS'
8863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8868 # --------
8869 # UNSORTED
8870 # --------
8873 # These libraries may be used by collect2.
8874 # We may need a special search path to get them linked.
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8876 $as_echo_n "checking for collect2 libraries... " >&6; }
8877 if test "${gcc_cv_collect2_libs+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 save_LIBS="$LIBS"
8881 for libs in '' -lld -lmld \
8882 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8883 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8885 LIBS="$libs"
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8889 /* Override any GCC internal prototype to avoid an error.
8890 Use char because int might match the return type of a GCC
8891 builtin and then its argument prototype would still apply. */
8892 #ifdef __cplusplus
8893 extern "C"
8894 #endif
8895 char ldopen ();
8897 main ()
8899 return ldopen ();
8901 return 0;
8903 _ACEOF
8904 if ac_fn_c_try_link "$LINENO"; then :
8905 gcc_cv_collect2_libs="$libs"; break
8907 rm -f core conftest.err conftest.$ac_objext \
8908 conftest$ac_exeext conftest.$ac_ext
8909 done
8910 LIBS="$save_LIBS"
8911 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8914 $as_echo "$gcc_cv_collect2_libs" >&6; }
8915 case $gcc_cv_collect2_libs in
8916 "none required") ;;
8917 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8918 esac
8921 # When building Ada code on Alpha, we need exc_resume which is usually in
8922 # -lexc. So test for it.
8923 save_LIBS="$LIBS"
8924 LIBS=
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8926 $as_echo_n "checking for library containing exc_resume... " >&6; }
8927 if test "${ac_cv_search_exc_resume+set}" = set; then :
8928 $as_echo_n "(cached) " >&6
8929 else
8930 ac_func_search_save_LIBS=$LIBS
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char exc_resume ();
8942 main ()
8944 return exc_resume ();
8946 return 0;
8948 _ACEOF
8949 for ac_lib in '' exc; do
8950 if test -z "$ac_lib"; then
8951 ac_res="none required"
8952 else
8953 ac_res=-l$ac_lib
8954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8956 if ac_fn_c_try_link "$LINENO"; then :
8957 ac_cv_search_exc_resume=$ac_res
8959 rm -f core conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext
8961 if test "${ac_cv_search_exc_resume+set}" = set; then :
8962 break
8964 done
8965 if test "${ac_cv_search_exc_resume+set}" = set; then :
8967 else
8968 ac_cv_search_exc_resume=no
8970 rm conftest.$ac_ext
8971 LIBS=$ac_func_search_save_LIBS
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8974 $as_echo "$ac_cv_search_exc_resume" >&6; }
8975 ac_res=$ac_cv_search_exc_resume
8976 if test "$ac_res" != no; then :
8977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8981 GNAT_LIBEXC="$LIBS"
8982 LIBS="$save_LIBS"
8985 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8986 save_LIBS="$LIBS"
8987 LIBS=
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8989 $as_echo_n "checking for library containing kstat_open... " >&6; }
8990 if test "${ac_cv_search_kstat_open+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 ac_func_search_save_LIBS=$LIBS
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8997 /* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000 #ifdef __cplusplus
9001 extern "C"
9002 #endif
9003 char kstat_open ();
9005 main ()
9007 return kstat_open ();
9009 return 0;
9011 _ACEOF
9012 for ac_lib in '' kstat; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required"
9015 else
9016 ac_res=-l$ac_lib
9017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9019 if ac_fn_c_try_link "$LINENO"; then :
9020 ac_cv_search_kstat_open=$ac_res
9022 rm -f core conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext
9024 if test "${ac_cv_search_kstat_open+set}" = set; then :
9025 break
9027 done
9028 if test "${ac_cv_search_kstat_open+set}" = set; then :
9030 else
9031 ac_cv_search_kstat_open=no
9033 rm conftest.$ac_ext
9034 LIBS=$ac_func_search_save_LIBS
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9037 $as_echo "$ac_cv_search_kstat_open" >&6; }
9038 ac_res=$ac_cv_search_kstat_open
9039 if test "$ac_res" != no; then :
9040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9044 EXTRA_GCC_LIBS="$LIBS"
9045 LIBS="$save_LIBS"
9048 # Some systems put ldexp and frexp in libm instead of libc; assume
9049 # they're both in the same place. jcf-dump needs them.
9050 save_LIBS="$LIBS"
9051 LIBS=
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9053 $as_echo_n "checking for library containing ldexp... " >&6; }
9054 if test "${ac_cv_search_ldexp+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 ac_func_search_save_LIBS=$LIBS
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9061 /* Override any GCC internal prototype to avoid an error.
9062 Use char because int might match the return type of a GCC
9063 builtin and then its argument prototype would still apply. */
9064 #ifdef __cplusplus
9065 extern "C"
9066 #endif
9067 char ldexp ();
9069 main ()
9071 return ldexp ();
9073 return 0;
9075 _ACEOF
9076 for ac_lib in '' m; do
9077 if test -z "$ac_lib"; then
9078 ac_res="none required"
9079 else
9080 ac_res=-l$ac_lib
9081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9083 if ac_fn_c_try_link "$LINENO"; then :
9084 ac_cv_search_ldexp=$ac_res
9086 rm -f core conftest.err conftest.$ac_objext \
9087 conftest$ac_exeext
9088 if test "${ac_cv_search_ldexp+set}" = set; then :
9089 break
9091 done
9092 if test "${ac_cv_search_ldexp+set}" = set; then :
9094 else
9095 ac_cv_search_ldexp=no
9097 rm conftest.$ac_ext
9098 LIBS=$ac_func_search_save_LIBS
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9101 $as_echo "$ac_cv_search_ldexp" >&6; }
9102 ac_res=$ac_cv_search_ldexp
9103 if test "$ac_res" != no; then :
9104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9108 LDEXP_LIB="$LIBS"
9109 LIBS="$save_LIBS"
9112 # Use <inttypes.h> only if it exists,
9113 # doesn't clash with <sys/types.h>, and declares intmax_t.
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9115 $as_echo_n "checking for inttypes.h... " >&6; }
9116 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
9118 else
9119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h. */
9121 #include <sys/types.h>
9122 #include <inttypes.h>
9124 main ()
9126 intmax_t i = -1;
9128 return 0;
9130 _ACEOF
9131 if ac_fn_c_try_compile "$LINENO"; then :
9132 gcc_cv_header_inttypes_h=yes
9133 else
9134 gcc_cv_header_inttypes_h=no
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9140 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9141 if test $gcc_cv_header_inttypes_h = yes; then
9143 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9149 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9150 sysconf strsignal getrusage nl_langinfo \
9151 gettimeofday mbstowcs wcswidth mmap setlocale \
9152 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
9153 do :
9154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9155 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9156 eval as_val=\$$as_ac_var
9157 if test "x$as_val" = x""yes; then :
9158 cat >>confdefs.h <<_ACEOF
9159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9160 _ACEOF
9163 done
9166 if test x$ac_cv_func_mbstowcs = xyes; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9168 $as_echo_n "checking whether mbstowcs works... " >&6; }
9169 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 if test "$cross_compiling" = yes; then :
9173 gcc_cv_func_mbstowcs_works=yes
9174 else
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9177 #include <stdlib.h>
9178 int main()
9180 mbstowcs(0, "", 0);
9181 return 0;
9183 _ACEOF
9184 if ac_fn_c_try_run "$LINENO"; then :
9185 gcc_cv_func_mbstowcs_works=yes
9186 else
9187 gcc_cv_func_mbstowcs_works=no
9189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9190 conftest.$ac_objext conftest.beam conftest.$ac_ext
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9195 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9196 if test x$gcc_cv_func_mbstowcs_works = xyes; then
9198 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9203 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9204 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9206 else
9208 cat >>confdefs.h <<_ACEOF
9209 #define ssize_t int
9210 _ACEOF
9214 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9215 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9217 else
9219 cat >>confdefs.h <<_ACEOF
9220 #define caddr_t char *
9221 _ACEOF
9227 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9228 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9229 gcc_header_sys_mman_h=yes
9230 else
9231 gcc_header_sys_mman_h=no
9234 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9235 if test "x$ac_cv_func_mmap" = x""yes; then :
9236 gcc_func_mmap=yes
9237 else
9238 gcc_func_mmap=no
9241 if test "$gcc_header_sys_mman_h" != yes \
9242 || test "$gcc_func_mmap" != yes; then
9243 gcc_cv_func_mmap_file=no
9244 gcc_cv_func_mmap_dev_zero=no
9245 gcc_cv_func_mmap_anon=no
9246 else
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9248 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9249 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9251 else
9252 # Add a system to this blacklist if
9253 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9254 # memory area containing the same data that you'd get if you applied
9255 # read() to the same fd. The only system known to have a problem here
9256 # is VMS, where text files have record structure.
9257 case "$host_os" in
9258 *vms* | ultrix*)
9259 gcc_cv_func_mmap_file=no ;;
9261 gcc_cv_func_mmap_file=yes;;
9262 esac
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9265 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9267 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9268 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 # Add a system to this blacklist if it has mmap() but /dev/zero
9272 # does not exist, or if mmapping /dev/zero does not give anonymous
9273 # zeroed pages with both the following properties:
9274 # 1. If you map N consecutive pages in with one call, and then
9275 # unmap any subset of those pages, the pages that were not
9276 # explicitly unmapped remain accessible.
9277 # 2. If you map two adjacent blocks of memory and then unmap them
9278 # both at once, they must both go away.
9279 # Systems known to be in this category are Windows (all variants),
9280 # VMS, and Darwin.
9281 case "$host_os" in
9282 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9283 gcc_cv_func_mmap_dev_zero=no ;;
9285 gcc_cv_func_mmap_dev_zero=yes;;
9286 esac
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9289 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9291 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9293 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9294 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <sys/types.h>
9300 #include <sys/mman.h>
9301 #include <unistd.h>
9303 #ifndef MAP_ANONYMOUS
9304 #define MAP_ANONYMOUS MAP_ANON
9305 #endif
9308 main ()
9310 int n = MAP_ANONYMOUS;
9312 return 0;
9314 _ACEOF
9315 if ac_fn_c_try_compile "$LINENO"; then :
9316 gcc_cv_decl_map_anon=yes
9317 else
9318 gcc_cv_decl_map_anon=no
9320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9323 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9325 if test $gcc_cv_decl_map_anon = no; then
9326 gcc_cv_func_mmap_anon=no
9327 else
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9329 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9330 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332 else
9333 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9334 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9335 # doesn't give anonymous zeroed pages with the same properties listed
9336 # above for use of /dev/zero.
9337 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9338 case "$host_os" in
9339 *vms* | cygwin* | pe | mingw* | sco* | udk* )
9340 gcc_cv_func_mmap_anon=no ;;
9342 gcc_cv_func_mmap_anon=yes;;
9343 esac
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9346 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9350 if test $gcc_cv_func_mmap_file = yes; then
9352 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9355 if test $gcc_cv_func_mmap_dev_zero = yes; then
9357 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9360 if test $gcc_cv_func_mmap_anon = yes; then
9362 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9367 case "${host}" in
9368 *-*-*vms*)
9369 # Under VMS, vfork works very differently than on Unix. The standard test
9370 # won't work, and it isn't easily adaptable. It makes more sense to
9371 # just force it.
9372 ac_cv_func_vfork_works=yes
9374 esac
9375 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9376 if test "x$ac_cv_type_pid_t" = x""yes; then :
9378 else
9380 cat >>confdefs.h <<_ACEOF
9381 #define pid_t int
9382 _ACEOF
9386 for ac_header in vfork.h
9387 do :
9388 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9389 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9390 cat >>confdefs.h <<_ACEOF
9391 #define HAVE_VFORK_H 1
9392 _ACEOF
9395 done
9397 for ac_func in fork vfork
9398 do :
9399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9401 eval as_val=\$$as_ac_var
9402 if test "x$as_val" = x""yes; then :
9403 cat >>confdefs.h <<_ACEOF
9404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9405 _ACEOF
9408 done
9410 if test "x$ac_cv_func_fork" = xyes; then
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9412 $as_echo_n "checking for working fork... " >&6; }
9413 if test "${ac_cv_func_fork_works+set}" = set; then :
9414 $as_echo_n "(cached) " >&6
9415 else
9416 if test "$cross_compiling" = yes; then :
9417 ac_cv_func_fork_works=cross
9418 else
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 $ac_includes_default
9423 main ()
9426 /* By Ruediger Kuhlmann. */
9427 return fork () < 0;
9430 return 0;
9432 _ACEOF
9433 if ac_fn_c_try_run "$LINENO"; then :
9434 ac_cv_func_fork_works=yes
9435 else
9436 ac_cv_func_fork_works=no
9438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9439 conftest.$ac_objext conftest.beam conftest.$ac_ext
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9444 $as_echo "$ac_cv_func_fork_works" >&6; }
9446 else
9447 ac_cv_func_fork_works=$ac_cv_func_fork
9449 if test "x$ac_cv_func_fork_works" = xcross; then
9450 case $host in
9451 *-*-amigaos* | *-*-msdosdjgpp*)
9452 # Override, as these systems have only a dummy fork() stub
9453 ac_cv_func_fork_works=no
9456 ac_cv_func_fork_works=yes
9458 esac
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9460 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9462 ac_cv_func_vfork_works=$ac_cv_func_vfork
9463 if test "x$ac_cv_func_vfork" = xyes; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9465 $as_echo_n "checking for working vfork... " >&6; }
9466 if test "${ac_cv_func_vfork_works+set}" = set; then :
9467 $as_echo_n "(cached) " >&6
9468 else
9469 if test "$cross_compiling" = yes; then :
9470 ac_cv_func_vfork_works=cross
9471 else
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474 /* Thanks to Paul Eggert for this test. */
9475 $ac_includes_default
9476 #include <sys/wait.h>
9477 #ifdef HAVE_VFORK_H
9478 # include <vfork.h>
9479 #endif
9480 /* On some sparc systems, changes by the child to local and incoming
9481 argument registers are propagated back to the parent. The compiler
9482 is told about this with #include <vfork.h>, but some compilers
9483 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9484 static variable whose address is put into a register that is
9485 clobbered by the vfork. */
9486 static void
9487 #ifdef __cplusplus
9488 sparc_address_test (int arg)
9489 # else
9490 sparc_address_test (arg) int arg;
9491 #endif
9493 static pid_t child;
9494 if (!child) {
9495 child = vfork ();
9496 if (child < 0) {
9497 perror ("vfork");
9498 _exit(2);
9500 if (!child) {
9501 arg = getpid();
9502 write(-1, "", 0);
9503 _exit (arg);
9509 main ()
9511 pid_t parent = getpid ();
9512 pid_t child;
9514 sparc_address_test (0);
9516 child = vfork ();
9518 if (child == 0) {
9519 /* Here is another test for sparc vfork register problems. This
9520 test uses lots of local variables, at least as many local
9521 variables as main has allocated so far including compiler
9522 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9523 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9524 reuse the register of parent for one of the local variables,
9525 since it will think that parent can't possibly be used any more
9526 in this routine. Assigning to the local variable will thus
9527 munge parent in the parent process. */
9528 pid_t
9529 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9530 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9531 /* Convince the compiler that p..p7 are live; otherwise, it might
9532 use the same hardware register for all 8 local variables. */
9533 if (p != p1 || p != p2 || p != p3 || p != p4
9534 || p != p5 || p != p6 || p != p7)
9535 _exit(1);
9537 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9538 from child file descriptors. If the child closes a descriptor
9539 before it execs or exits, this munges the parent's descriptor
9540 as well. Test for this by closing stdout in the child. */
9541 _exit(close(fileno(stdout)) != 0);
9542 } else {
9543 int status;
9544 struct stat st;
9546 while (wait(&status) != child)
9548 return (
9549 /* Was there some problem with vforking? */
9550 child < 0
9552 /* Did the child fail? (This shouldn't happen.) */
9553 || status
9555 /* Did the vfork/compiler bug occur? */
9556 || parent != getpid()
9558 /* Did the file descriptor bug occur? */
9559 || fstat(fileno(stdout), &st) != 0
9563 _ACEOF
9564 if ac_fn_c_try_run "$LINENO"; then :
9565 ac_cv_func_vfork_works=yes
9566 else
9567 ac_cv_func_vfork_works=no
9569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9570 conftest.$ac_objext conftest.beam conftest.$ac_ext
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9575 $as_echo "$ac_cv_func_vfork_works" >&6; }
9578 if test "x$ac_cv_func_fork_works" = xcross; then
9579 ac_cv_func_vfork_works=$ac_cv_func_vfork
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9581 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9584 if test "x$ac_cv_func_vfork_works" = xyes; then
9586 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9588 else
9590 $as_echo "#define vfork fork" >>confdefs.h
9593 if test "x$ac_cv_func_fork_works" = xyes; then
9595 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9600 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9601 # iconv() prototype.
9602 ac_ext=cpp
9603 ac_cpp='$CXXCPP $CPPFLAGS'
9604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9609 if test "X$prefix" = "XNONE"; then
9610 acl_final_prefix="$ac_default_prefix"
9611 else
9612 acl_final_prefix="$prefix"
9614 if test "X$exec_prefix" = "XNONE"; then
9615 acl_final_exec_prefix='${prefix}'
9616 else
9617 acl_final_exec_prefix="$exec_prefix"
9619 acl_save_prefix="$prefix"
9620 prefix="$acl_final_prefix"
9621 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9622 prefix="$acl_save_prefix"
9625 # Check whether --with-gnu-ld was given.
9626 if test "${with_gnu_ld+set}" = set; then :
9627 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9628 else
9629 with_gnu_ld=no
9632 # Prepare PATH_SEPARATOR.
9633 # The user is always right.
9634 if test "${PATH_SEPARATOR+set}" != set; then
9635 echo "#! /bin/sh" >conf$$.sh
9636 echo "exit 0" >>conf$$.sh
9637 chmod +x conf$$.sh
9638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9639 PATH_SEPARATOR=';'
9640 else
9641 PATH_SEPARATOR=:
9643 rm -f conf$$.sh
9645 ac_prog=ld
9646 if test "$GCC" = yes; then
9647 # Check if gcc -print-prog-name=ld gives a path.
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9649 $as_echo_n "checking for ld used by GCC... " >&6; }
9650 case $host in
9651 *-*-mingw*)
9652 # gcc leaves a trailing carriage return which upsets mingw
9653 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9655 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9656 esac
9657 case $ac_prog in
9658 # Accept absolute paths.
9659 [\\/]* | [A-Za-z]:[\\/]*)
9660 re_direlt='/[^/][^/]*/\.\./'
9661 # Canonicalize the path of ld
9662 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9663 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9664 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9665 done
9666 test -z "$LD" && LD="$ac_prog"
9669 # If it fails, then pretend we aren't using GCC.
9670 ac_prog=ld
9673 # If it is relative, then search for the first ld in PATH.
9674 with_gnu_ld=unknown
9676 esac
9677 elif test "$with_gnu_ld" = yes; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9679 $as_echo_n "checking for GNU ld... " >&6; }
9680 else
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9682 $as_echo_n "checking for non-GNU ld... " >&6; }
9684 if test "${acl_cv_path_LD+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9686 else
9687 if test -z "$LD"; then
9688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9689 for ac_dir in $PATH; do
9690 test -z "$ac_dir" && ac_dir=.
9691 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9692 acl_cv_path_LD="$ac_dir/$ac_prog"
9693 # Check to see if the program is GNU ld. I'd rather use --version,
9694 # but apparently some GNU ld's only accept -v.
9695 # Break only if it was the GNU/non-GNU ld that we prefer.
9696 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9697 test "$with_gnu_ld" != no && break
9698 else
9699 test "$with_gnu_ld" != yes && break
9702 done
9703 IFS="$ac_save_ifs"
9704 else
9705 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9709 LD="$acl_cv_path_LD"
9710 if test -n "$LD"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9712 $as_echo "$LD" >&6; }
9713 else
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9717 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9719 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9720 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9724 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9725 acl_cv_prog_gnu_ld=yes
9726 else
9727 acl_cv_prog_gnu_ld=no
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9731 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9732 with_gnu_ld=$acl_cv_prog_gnu_ld
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9737 $as_echo_n "checking for shared library run path origin... " >&6; }
9738 if test "${acl_cv_rpath+set}" = set; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9742 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9743 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9744 . ./conftest.sh
9745 rm -f ./conftest.sh
9746 acl_cv_rpath=done
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9750 $as_echo "$acl_cv_rpath" >&6; }
9751 wl="$acl_cv_wl"
9752 libext="$acl_cv_libext"
9753 shlibext="$acl_cv_shlibext"
9754 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9755 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9756 hardcode_direct="$acl_cv_hardcode_direct"
9757 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9758 # Check whether --enable-rpath was given.
9759 if test "${enable_rpath+set}" = set; then :
9760 enableval=$enable_rpath; :
9761 else
9762 enable_rpath=yes
9772 use_additional=yes
9774 acl_save_prefix="$prefix"
9775 prefix="$acl_final_prefix"
9776 acl_save_exec_prefix="$exec_prefix"
9777 exec_prefix="$acl_final_exec_prefix"
9779 eval additional_includedir=\"$includedir\"
9780 eval additional_libdir=\"$libdir\"
9782 exec_prefix="$acl_save_exec_prefix"
9783 prefix="$acl_save_prefix"
9786 # Check whether --with-libiconv-prefix was given.
9787 if test "${with_libiconv_prefix+set}" = set; then :
9788 withval=$with_libiconv_prefix;
9789 if test "X$withval" = "Xno"; then
9790 use_additional=no
9791 else
9792 if test "X$withval" = "X"; then
9794 acl_save_prefix="$prefix"
9795 prefix="$acl_final_prefix"
9796 acl_save_exec_prefix="$exec_prefix"
9797 exec_prefix="$acl_final_exec_prefix"
9799 eval additional_includedir=\"$includedir\"
9800 eval additional_libdir=\"$libdir\"
9802 exec_prefix="$acl_save_exec_prefix"
9803 prefix="$acl_save_prefix"
9805 else
9806 additional_includedir="$withval/include"
9807 additional_libdir="$withval/lib"
9813 LIBICONV=
9814 LTLIBICONV=
9815 INCICONV=
9816 rpathdirs=
9817 ltrpathdirs=
9818 names_already_handled=
9819 names_next_round='iconv '
9820 while test -n "$names_next_round"; do
9821 names_this_round="$names_next_round"
9822 names_next_round=
9823 for name in $names_this_round; do
9824 already_handled=
9825 for n in $names_already_handled; do
9826 if test "$n" = "$name"; then
9827 already_handled=yes
9828 break
9830 done
9831 if test -z "$already_handled"; then
9832 names_already_handled="$names_already_handled $name"
9833 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9834 eval value=\"\$HAVE_LIB$uppername\"
9835 if test -n "$value"; then
9836 if test "$value" = yes; then
9837 eval value=\"\$LIB$uppername\"
9838 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9839 eval value=\"\$LTLIB$uppername\"
9840 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9841 else
9844 else
9845 found_dir=
9846 found_la=
9847 found_so=
9848 found_a=
9849 if test $use_additional = yes; then
9850 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9851 found_dir="$additional_libdir"
9852 found_so="$additional_libdir/lib$name.$shlibext"
9853 if test -f "$additional_libdir/lib$name.la"; then
9854 found_la="$additional_libdir/lib$name.la"
9856 else
9857 if test -f "$additional_libdir/lib$name.$libext"; then
9858 found_dir="$additional_libdir"
9859 found_a="$additional_libdir/lib$name.$libext"
9860 if test -f "$additional_libdir/lib$name.la"; then
9861 found_la="$additional_libdir/lib$name.la"
9866 if test "X$found_dir" = "X"; then
9867 for x in $LDFLAGS $LTLIBICONV; do
9869 acl_save_prefix="$prefix"
9870 prefix="$acl_final_prefix"
9871 acl_save_exec_prefix="$exec_prefix"
9872 exec_prefix="$acl_final_exec_prefix"
9873 eval x=\"$x\"
9874 exec_prefix="$acl_save_exec_prefix"
9875 prefix="$acl_save_prefix"
9877 case "$x" in
9878 -L*)
9879 dir=`echo "X$x" | sed -e 's/^X-L//'`
9880 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9881 found_dir="$dir"
9882 found_so="$dir/lib$name.$shlibext"
9883 if test -f "$dir/lib$name.la"; then
9884 found_la="$dir/lib$name.la"
9886 else
9887 if test -f "$dir/lib$name.$libext"; then
9888 found_dir="$dir"
9889 found_a="$dir/lib$name.$libext"
9890 if test -f "$dir/lib$name.la"; then
9891 found_la="$dir/lib$name.la"
9896 esac
9897 if test "X$found_dir" != "X"; then
9898 break
9900 done
9902 if test "X$found_dir" != "X"; then
9903 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9904 if test "X$found_so" != "X"; then
9905 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9907 else
9908 haveit=
9909 for x in $ltrpathdirs; do
9910 if test "X$x" = "X$found_dir"; then
9911 haveit=yes
9912 break
9914 done
9915 if test -z "$haveit"; then
9916 ltrpathdirs="$ltrpathdirs $found_dir"
9918 if test "$hardcode_direct" = yes; then
9919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9920 else
9921 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9923 haveit=
9924 for x in $rpathdirs; do
9925 if test "X$x" = "X$found_dir"; then
9926 haveit=yes
9927 break
9929 done
9930 if test -z "$haveit"; then
9931 rpathdirs="$rpathdirs $found_dir"
9933 else
9934 haveit=
9935 for x in $LDFLAGS $LIBICONV; do
9937 acl_save_prefix="$prefix"
9938 prefix="$acl_final_prefix"
9939 acl_save_exec_prefix="$exec_prefix"
9940 exec_prefix="$acl_final_exec_prefix"
9941 eval x=\"$x\"
9942 exec_prefix="$acl_save_exec_prefix"
9943 prefix="$acl_save_prefix"
9945 if test "X$x" = "X-L$found_dir"; then
9946 haveit=yes
9947 break
9949 done
9950 if test -z "$haveit"; then
9951 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9953 if test "$hardcode_minus_L" != no; then
9954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9955 else
9956 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9961 else
9962 if test "X$found_a" != "X"; then
9963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9964 else
9965 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9968 additional_includedir=
9969 case "$found_dir" in
9970 */lib | */lib/)
9971 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9972 additional_includedir="$basedir/include"
9974 esac
9975 if test "X$additional_includedir" != "X"; then
9976 if test "X$additional_includedir" != "X/usr/include"; then
9977 haveit=
9978 if test "X$additional_includedir" = "X/usr/local/include"; then
9979 if test -n "$GCC"; then
9980 case $host_os in
9981 linux*) haveit=yes;;
9982 esac
9985 if test -z "$haveit"; then
9986 for x in $CPPFLAGS $INCICONV; do
9988 acl_save_prefix="$prefix"
9989 prefix="$acl_final_prefix"
9990 acl_save_exec_prefix="$exec_prefix"
9991 exec_prefix="$acl_final_exec_prefix"
9992 eval x=\"$x\"
9993 exec_prefix="$acl_save_exec_prefix"
9994 prefix="$acl_save_prefix"
9996 if test "X$x" = "X-I$additional_includedir"; then
9997 haveit=yes
9998 break
10000 done
10001 if test -z "$haveit"; then
10002 if test -d "$additional_includedir"; then
10003 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10009 if test -n "$found_la"; then
10010 save_libdir="$libdir"
10011 case "$found_la" in
10012 */* | *\\*) . "$found_la" ;;
10013 *) . "./$found_la" ;;
10014 esac
10015 libdir="$save_libdir"
10016 for dep in $dependency_libs; do
10017 case "$dep" in
10018 -L*)
10019 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10020 if test "X$additional_libdir" != "X/usr/lib"; then
10021 haveit=
10022 if test "X$additional_libdir" = "X/usr/local/lib"; then
10023 if test -n "$GCC"; then
10024 case $host_os in
10025 linux*) haveit=yes;;
10026 esac
10029 if test -z "$haveit"; then
10030 haveit=
10031 for x in $LDFLAGS $LIBICONV; do
10033 acl_save_prefix="$prefix"
10034 prefix="$acl_final_prefix"
10035 acl_save_exec_prefix="$exec_prefix"
10036 exec_prefix="$acl_final_exec_prefix"
10037 eval x=\"$x\"
10038 exec_prefix="$acl_save_exec_prefix"
10039 prefix="$acl_save_prefix"
10041 if test "X$x" = "X-L$additional_libdir"; then
10042 haveit=yes
10043 break
10045 done
10046 if test -z "$haveit"; then
10047 if test -d "$additional_libdir"; then
10048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10051 haveit=
10052 for x in $LDFLAGS $LTLIBICONV; do
10054 acl_save_prefix="$prefix"
10055 prefix="$acl_final_prefix"
10056 acl_save_exec_prefix="$exec_prefix"
10057 exec_prefix="$acl_final_exec_prefix"
10058 eval x=\"$x\"
10059 exec_prefix="$acl_save_exec_prefix"
10060 prefix="$acl_save_prefix"
10062 if test "X$x" = "X-L$additional_libdir"; then
10063 haveit=yes
10064 break
10066 done
10067 if test -z "$haveit"; then
10068 if test -d "$additional_libdir"; then
10069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10075 -R*)
10076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10077 if test "$enable_rpath" != no; then
10078 haveit=
10079 for x in $rpathdirs; do
10080 if test "X$x" = "X$dir"; then
10081 haveit=yes
10082 break
10084 done
10085 if test -z "$haveit"; then
10086 rpathdirs="$rpathdirs $dir"
10088 haveit=
10089 for x in $ltrpathdirs; do
10090 if test "X$x" = "X$dir"; then
10091 haveit=yes
10092 break
10094 done
10095 if test -z "$haveit"; then
10096 ltrpathdirs="$ltrpathdirs $dir"
10100 -l*)
10101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10103 *.la)
10104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10110 esac
10111 done
10113 else
10114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10119 done
10120 done
10121 if test "X$rpathdirs" != "X"; then
10122 if test -n "$hardcode_libdir_separator"; then
10123 alldirs=
10124 for found_dir in $rpathdirs; do
10125 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10126 done
10127 acl_save_libdir="$libdir"
10128 libdir="$alldirs"
10129 eval flag=\"$hardcode_libdir_flag_spec\"
10130 libdir="$acl_save_libdir"
10131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10132 else
10133 for found_dir in $rpathdirs; do
10134 acl_save_libdir="$libdir"
10135 libdir="$found_dir"
10136 eval flag=\"$hardcode_libdir_flag_spec\"
10137 libdir="$acl_save_libdir"
10138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10139 done
10142 if test "X$ltrpathdirs" != "X"; then
10143 for found_dir in $ltrpathdirs; do
10144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10145 done
10154 am_save_CPPFLAGS="$CPPFLAGS"
10156 for element in $INCICONV; do
10157 haveit=
10158 for x in $CPPFLAGS; do
10160 acl_save_prefix="$prefix"
10161 prefix="$acl_final_prefix"
10162 acl_save_exec_prefix="$exec_prefix"
10163 exec_prefix="$acl_final_exec_prefix"
10164 eval x=\"$x\"
10165 exec_prefix="$acl_save_exec_prefix"
10166 prefix="$acl_save_prefix"
10168 if test "X$x" = "X$element"; then
10169 haveit=yes
10170 break
10172 done
10173 if test -z "$haveit"; then
10174 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10176 done
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10180 $as_echo_n "checking for iconv... " >&6; }
10181 if test "${am_cv_func_iconv+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10185 am_cv_func_iconv="no, consider installing GNU libiconv"
10186 am_cv_lib_iconv=no
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <stdlib.h>
10190 #include <iconv.h>
10192 main ()
10194 iconv_t cd = iconv_open("","");
10195 iconv(cd,NULL,NULL,NULL,NULL);
10196 iconv_close(cd);
10198 return 0;
10200 _ACEOF
10201 if ac_fn_cxx_try_link "$LINENO"; then :
10202 am_cv_func_iconv=yes
10204 rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 if test "$am_cv_func_iconv" != yes; then
10207 am_save_LIBS="$LIBS"
10208 LIBS="$LIBS $LIBICONV"
10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h. */
10211 #include <stdlib.h>
10212 #include <iconv.h>
10214 main ()
10216 iconv_t cd = iconv_open("","");
10217 iconv(cd,NULL,NULL,NULL,NULL);
10218 iconv_close(cd);
10220 return 0;
10222 _ACEOF
10223 if ac_fn_cxx_try_link "$LINENO"; then :
10224 am_cv_lib_iconv=yes
10225 am_cv_func_iconv=yes
10227 rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 LIBS="$am_save_LIBS"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10234 $as_echo "$am_cv_func_iconv" >&6; }
10235 if test "$am_cv_func_iconv" = yes; then
10237 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10240 if test "$am_cv_lib_iconv" = yes; then
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10242 $as_echo_n "checking how to link with libiconv... " >&6; }
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10244 $as_echo "$LIBICONV" >&6; }
10245 else
10246 CPPFLAGS="$am_save_CPPFLAGS"
10247 LIBICONV=
10248 LTLIBICONV=
10253 if test "$am_cv_func_iconv" = yes; then
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10255 $as_echo_n "checking for iconv declaration... " >&6; }
10256 if test "${am_cv_proto_iconv+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
10258 else
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10263 #include <stdlib.h>
10264 #include <iconv.h>
10265 extern
10266 #ifdef __cplusplus
10268 #endif
10269 #if defined(__STDC__) || defined(__cplusplus)
10270 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10271 #else
10272 size_t iconv();
10273 #endif
10276 main ()
10280 return 0;
10282 _ACEOF
10283 if ac_fn_cxx_try_compile "$LINENO"; then :
10284 am_cv_proto_iconv_arg1=""
10285 else
10286 am_cv_proto_iconv_arg1="const"
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289 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);"
10292 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10294 }$am_cv_proto_iconv" >&5
10295 $as_echo "${ac_t:-
10296 }$am_cv_proto_iconv" >&6; }
10298 cat >>confdefs.h <<_ACEOF
10299 #define ICONV_CONST $am_cv_proto_iconv_arg1
10300 _ACEOF
10304 ac_ext=c
10305 ac_cpp='$CPP $CPPFLAGS'
10306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10311 # Until we have in-tree GNU iconv:
10312 LIBICONV_DEP=
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10317 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10318 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h. */
10323 #include <locale.h>
10325 main ()
10327 return LC_MESSAGES
10329 return 0;
10331 _ACEOF
10332 if ac_fn_c_try_link "$LINENO"; then :
10333 am_cv_val_LC_MESSAGES=yes
10334 else
10335 am_cv_val_LC_MESSAGES=no
10337 rm -f core conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10341 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10342 if test $am_cv_val_LC_MESSAGES = yes; then
10344 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10351 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10352 if test "${am_cv_langinfo_codeset+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 #include <langinfo.h>
10359 main ()
10361 char* cs = nl_langinfo(CODESET);
10363 return 0;
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 am_cv_langinfo_codeset=yes
10368 else
10369 am_cv_langinfo_codeset=no
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10376 $as_echo "$am_cv_langinfo_codeset" >&6; }
10377 if test $am_cv_langinfo_codeset = yes; then
10379 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10384 # We will need to find libiberty.h and ansidecl.h
10385 saved_CFLAGS="$CFLAGS"
10386 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10387 saved_CXXFLAGS="$CXXFLAGS"
10388 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10389 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10390 strsignal strstr stpcpy strverscmp \
10391 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10392 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
10394 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10396 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10397 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 #undef $ac_tr_decl
10403 #define $ac_tr_decl 1
10405 #include "ansidecl.h"
10406 #include "system.h"
10409 main ()
10411 #ifndef $ac_func
10412 char *(*pfn) = (char *(*)) $ac_func ;
10413 #endif
10415 return 0;
10417 _ACEOF
10418 if ac_fn_c_try_compile "$LINENO"; then :
10419 eval "gcc_cv_have_decl_$ac_func=yes"
10420 else
10421 eval "gcc_cv_have_decl_$ac_func=no"
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10428 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10429 #define $ac_tr_decl 1
10430 _ACEOF
10432 else
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10435 #define $ac_tr_decl 0
10436 _ACEOF
10440 done
10443 for ac_func in getrlimit setrlimit getrusage
10445 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10447 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10448 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453 #undef $ac_tr_decl
10454 #define $ac_tr_decl 1
10456 #include "ansidecl.h"
10457 #include "system.h"
10458 #ifdef HAVE_SYS_RESOURCE_H
10459 #include <sys/resource.h>
10460 #endif
10464 main ()
10466 #ifndef $ac_func
10467 char *(*pfn) = (char *(*)) $ac_func ;
10468 #endif
10470 return 0;
10472 _ACEOF
10473 if ac_fn_c_try_compile "$LINENO"; then :
10474 eval "gcc_cv_have_decl_$ac_func=yes"
10475 else
10476 eval "gcc_cv_have_decl_$ac_func=no"
10478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10481 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10483 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10484 #define $ac_tr_decl 1
10485 _ACEOF
10487 else
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10490 #define $ac_tr_decl 0
10491 _ACEOF
10495 done
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10501 #include "ansidecl.h"
10502 #include "system.h"
10503 #ifdef HAVE_SYS_RESOURCE_H
10504 #include <sys/resource.h>
10505 #endif
10508 main ()
10510 rlim_t l = 0;
10512 return 0;
10514 _ACEOF
10515 if ac_fn_c_try_compile "$LINENO"; then :
10517 else
10519 $as_echo "#define rlim_t long" >>confdefs.h
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10524 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10525 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10526 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10527 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10528 for ac_func in ldgetname
10530 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10532 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10533 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 #undef $ac_tr_decl
10539 #define $ac_tr_decl 1
10541 #include "ansidecl.h"
10542 #include "system.h"
10543 #ifdef HAVE_LDFCN_H
10544 #undef FREAD
10545 #undef FWRITE
10546 #include <ldfcn.h>
10547 #endif
10551 main ()
10553 #ifndef $ac_func
10554 char *(*pfn) = (char *(*)) $ac_func ;
10555 #endif
10557 return 0;
10559 _ACEOF
10560 if ac_fn_c_try_compile "$LINENO"; then :
10561 eval "gcc_cv_have_decl_$ac_func=yes"
10562 else
10563 eval "gcc_cv_have_decl_$ac_func=no"
10565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10570 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10571 #define $ac_tr_decl 1
10572 _ACEOF
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10577 #define $ac_tr_decl 0
10578 _ACEOF
10582 done
10585 for ac_func in times
10587 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10589 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10590 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10591 $as_echo_n "(cached) " >&6
10592 else
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10595 #undef $ac_tr_decl
10596 #define $ac_tr_decl 1
10598 #include "ansidecl.h"
10599 #include "system.h"
10600 #ifdef HAVE_SYS_TIMES_H
10601 #include <sys/times.h>
10602 #endif
10606 main ()
10608 #ifndef $ac_func
10609 char *(*pfn) = (char *(*)) $ac_func ;
10610 #endif
10612 return 0;
10614 _ACEOF
10615 if ac_fn_c_try_compile "$LINENO"; then :
10616 eval "gcc_cv_have_decl_$ac_func=yes"
10617 else
10618 eval "gcc_cv_have_decl_$ac_func=no"
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10625 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10626 #define $ac_tr_decl 1
10627 _ACEOF
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10632 #define $ac_tr_decl 0
10633 _ACEOF
10637 done
10640 for ac_func in sigaltstack
10642 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10644 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10645 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 #undef $ac_tr_decl
10651 #define $ac_tr_decl 1
10653 #include "ansidecl.h"
10654 #include "system.h"
10655 #include <signal.h>
10659 main ()
10661 #ifndef $ac_func
10662 char *(*pfn) = (char *(*)) $ac_func ;
10663 #endif
10665 return 0;
10667 _ACEOF
10668 if ac_fn_c_try_compile "$LINENO"; then :
10669 eval "gcc_cv_have_decl_$ac_func=yes"
10670 else
10671 eval "gcc_cv_have_decl_$ac_func=no"
10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10679 #define $ac_tr_decl 1
10680 _ACEOF
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10685 #define $ac_tr_decl 0
10686 _ACEOF
10690 done
10693 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10694 # prototype.
10695 ac_ext=cpp
10696 ac_cpp='$CXXCPP $CPPFLAGS'
10697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10701 for ac_func in madvise
10703 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10705 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10706 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10707 $as_echo_n "(cached) " >&6
10708 else
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711 #undef $ac_tr_decl
10712 #define $ac_tr_decl 1
10714 #include "ansidecl.h"
10715 #include "system.h"
10719 main ()
10721 #ifndef $ac_func
10722 char *(*pfn) = (char *(*)) $ac_func ;
10723 #endif
10725 return 0;
10727 _ACEOF
10728 if ac_fn_cxx_try_compile "$LINENO"; then :
10729 eval "gcc_cv_have_decl_$ac_func=yes"
10730 else
10731 eval "gcc_cv_have_decl_$ac_func=no"
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10736 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10738 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10739 #define $ac_tr_decl 1
10740 _ACEOF
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10745 #define $ac_tr_decl 0
10746 _ACEOF
10750 done
10752 ac_ext=c
10753 ac_cpp='$CPP $CPPFLAGS'
10754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10759 # More time-related stuff.
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10761 $as_echo_n "checking for struct tms... " >&6; }
10762 if test "${ac_cv_struct_tms+set}" = set; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10769 #include "ansidecl.h"
10770 #include "system.h"
10771 #ifdef HAVE_SYS_TIMES_H
10772 #include <sys/times.h>
10773 #endif
10776 main ()
10778 struct tms tms;
10780 return 0;
10782 _ACEOF
10783 if ac_fn_c_try_compile "$LINENO"; then :
10784 ac_cv_struct_tms=yes
10785 else
10786 ac_cv_struct_tms=no
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10791 $as_echo "$ac_cv_struct_tms" >&6; }
10792 if test $ac_cv_struct_tms = yes; then
10794 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10798 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10799 # revisit after autoconf 2.50.
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10801 $as_echo_n "checking for clock_t... " >&6; }
10802 if test "${gcc_cv_type_clock_t+set}" = set; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10809 #include "ansidecl.h"
10810 #include "system.h"
10813 main ()
10815 clock_t x;
10817 return 0;
10819 _ACEOF
10820 if ac_fn_c_try_compile "$LINENO"; then :
10821 gcc_cv_type_clock_t=yes
10822 else
10823 gcc_cv_type_clock_t=no
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10828 $as_echo "$gcc_cv_type_clock_t" >&6; }
10829 if test $gcc_cv_type_clock_t = yes; then
10831 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10835 # Check if F_SETLKW is supported by fcntl.
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10837 $as_echo_n "checking for F_SETLKW... " >&6; }
10838 if test "${ac_cv_f_setlkw+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840 else
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10845 #include <fcntl.h>
10847 main ()
10850 struct flock fl;
10851 fl.l_whence = 0;
10852 fl.l_start = 0;
10853 fl.l_len = 0;
10854 fl.l_pid = 0;
10855 return fcntl (1, F_SETLKW, &fl);
10857 return 0;
10859 _ACEOF
10860 if ac_fn_c_try_compile "$LINENO"; then :
10861 ac_cv_f_setlkw=yes
10862 else
10863 ac_cv_f_setlkw=no
10865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
10868 $as_echo "$ac_cv_f_setlkw" >&6; }
10869 if test $ac_cv_f_setlkw = yes; then
10871 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
10875 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10876 CFLAGS="$saved_CFLAGS"
10877 CXXFLAGS="$saved_CXXFLAGS"
10879 # mkdir takes a single argument on some systems.
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10881 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10882 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10888 #include <sys/types.h>
10889 #ifdef HAVE_SYS_STAT_H
10890 # include <sys/stat.h>
10891 #endif
10892 #ifdef HAVE_UNISTD_H
10893 # include <unistd.h>
10894 #endif
10895 #ifdef HAVE_DIRECT_H
10896 # include <direct.h>
10897 #endif
10899 main ()
10901 mkdir ("foo", 0);
10903 return 0;
10905 _ACEOF
10906 if ac_fn_c_try_compile "$LINENO"; then :
10907 gcc_cv_mkdir_takes_one_arg=no
10908 else
10909 gcc_cv_mkdir_takes_one_arg=yes
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10914 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10915 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10917 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10922 # File extensions
10923 manext='.1'
10924 objext='.o'
10928 # With Setjmp/Longjmp based exception handling.
10929 # Check whether --enable-sjlj-exceptions was given.
10930 if test "${enable_sjlj_exceptions+set}" = set; then :
10931 enableval=$enable_sjlj_exceptions; case $target in
10932 *-*-hpux10*)
10933 if test $enableval != yes; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10935 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10936 enableval=yes
10939 esac
10940 force_sjlj_exceptions=yes
10941 else
10942 case $target in
10943 *-*-hpux10*)
10944 force_sjlj_exceptions=yes
10945 enableval=yes
10948 force_sjlj_exceptions=no
10950 esac
10953 if test $force_sjlj_exceptions = yes; then
10954 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10956 cat >>confdefs.h <<_ACEOF
10957 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10958 _ACEOF
10962 # --------------------------------------------------------
10963 # Build, host, and target specific configuration fragments
10964 # --------------------------------------------------------
10966 # Collect build-machine-specific information.
10967 . ${srcdir}/config.build
10969 # Collect host-machine-specific information.
10970 . ${srcdir}/config.host
10972 target_gtfiles=
10974 # Collect target-machine-specific information.
10975 . ${srcdir}/config.gcc
10977 extra_objs="${host_extra_objs} ${extra_objs}"
10978 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10980 # Default the target-machine variables that were not explicitly set.
10981 if test x"$tm_file" = x
10982 then tm_file=$cpu_type/$cpu_type.h; fi
10984 if test x"$extra_headers" = x
10985 then extra_headers=; fi
10987 if test x$md_file = x
10988 then md_file=$cpu_type/$cpu_type.md; fi
10990 if test x$out_file = x
10991 then out_file=$cpu_type/$cpu_type.c; fi
10993 if test x"$tmake_file" = x
10994 then tmake_file=$cpu_type/t-$cpu_type
10997 # Support --enable-initfini-array.
10998 if test x$enable_initfini_array != xno; then
10999 tm_file="${tm_file} initfini-array.h"
11002 if test x"$dwarf2" = xyes
11003 then tm_file="$tm_file tm-dwarf2.h"
11006 # Say what files are being used for the output code and MD file.
11007 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11008 echo "Using \`$srcdir/config/$md_file' as machine description file."
11010 # If any of the xm_file variables contain nonexistent files, warn
11011 # about them and drop them.
11014 for x in $build_xm_file; do
11015 if test -f $srcdir/config/$x
11016 then bx="$bx $x"
11017 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11018 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11020 done
11021 build_xm_file="$bx"
11024 for x in $host_xm_file; do
11025 if test -f $srcdir/config/$x
11026 then hx="$hx $x"
11027 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11028 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11030 done
11031 host_xm_file="$hx"
11034 for x in $xm_file; do
11035 if test -f $srcdir/config/$x
11036 then tx="$tx $x"
11037 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11038 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11040 done
11041 xm_file="$tx"
11043 count=a
11044 for f in $tm_file; do
11045 count=${count}x
11046 done
11047 if test $count = ax; then
11048 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11049 else
11050 echo "Using the following target machine macro files:"
11051 for f in $tm_file; do
11052 echo " $srcdir/config/$f"
11053 done
11056 if test x$need_64bit_hwint = xyes; then
11058 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11062 if test x$use_long_long_for_widest_fast_int = xyes; then
11064 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11068 gnu_ld_bool=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11070 cat >>confdefs.h <<_ACEOF
11071 #define HAVE_GNU_LD $gnu_ld_bool
11072 _ACEOF
11075 gnu_as_bool=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_GNU_AS $gnu_as_bool
11079 _ACEOF
11082 count=a
11083 for f in $host_xm_file; do
11084 count=${count}x
11085 done
11086 if test $count = a; then
11088 elif test $count = ax; then
11089 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11090 else
11091 echo "Using the following host machine macro files:"
11092 for f in $host_xm_file; do
11093 echo " $srcdir/config/$f"
11094 done
11096 echo "Using ${out_host_hook_obj} for host machine hooks."
11098 if test "$host_xm_file" != "$build_xm_file"; then
11099 count=a
11100 for f in $build_xm_file; do
11101 count=${count}x
11102 done
11103 if test $count = a; then
11105 elif test $count = ax; then
11106 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11107 else
11108 echo "Using the following build machine macro files:"
11109 for f in $build_xm_file; do
11110 echo " $srcdir/config/$f"
11111 done
11115 if test -n "$configured_native_system_header_dir"; then
11116 native_system_header_dir=$configured_native_system_header_dir
11118 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11121 case ${host} in
11122 powerpc*-*-darwin*)
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11124 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11125 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
11127 else
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11131 #include <sys/cdefs.h>
11132 #include <sys/signal.h>
11133 #include <ucontext.h>
11134 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11136 _ACEOF
11137 if ac_fn_c_try_compile "$LINENO"; then :
11138 gcc_cv_mcontext_underscores=no
11139 else
11140 gcc_cv_mcontext_underscores=yes
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11145 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11146 if test $gcc_cv_mcontext_underscores = yes; then
11148 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11152 esac
11154 # ---------
11155 # Threading
11156 # ---------
11158 # Check if a valid thread package
11159 case ${enable_threads} in
11160 "" | no)
11161 # No threads
11162 target_thread_file='single'
11164 yes)
11165 # default
11166 target_thread_file='single'
11168 aix | dce | lynx | mipssde | posix | rtems | \
11169 single | tpf | vxworks | win32)
11170 target_thread_file=${enable_threads}
11173 echo "${enable_threads} is an unknown thread package" 1>&2
11174 exit 1
11176 esac
11178 if test x${thread_file} = x; then
11179 # No thread file set by target-specific clauses in config.gcc,
11180 # so use file chosen by default logic above
11181 thread_file=${target_thread_file}
11184 # --------
11185 # UNSORTED
11186 # --------
11188 use_cxa_atexit=no
11189 if test x$enable___cxa_atexit = xyes || \
11190 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11191 if test x$host = x$target; then
11192 case $host in
11193 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11194 # keyed to flag_use_cxa_atexit
11195 *-*-mingw32*)
11196 use_cxa_atexit=yes
11198 powerpc-ibm-aix*)
11199 use_cxa_atexit=yes
11202 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11203 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11204 use_cxa_atexit=yes
11205 else
11206 echo "__cxa_atexit can't be enabled on this target"
11210 esac
11211 else
11212 # We can't check for __cxa_atexit when building a cross, so assume
11213 # it is available
11214 use_cxa_atexit=yes
11216 if test x$use_cxa_atexit = xyes; then
11218 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11223 # Look for a file containing extra machine modes.
11224 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11225 extra_modes_file='$(srcdir)'/config/${extra_modes}
11228 cat >>confdefs.h <<_ACEOF
11229 #define EXTRA_MODES_FILE "config/$extra_modes"
11230 _ACEOF
11234 # Convert extra_options into a form suitable for Makefile use.
11235 extra_opt_files=
11236 all_opt_files=
11237 for f in $extra_options; do
11238 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11239 all_opt_files="$all_opt_files $srcdir/config/$f"
11240 done
11243 # auto-host.h is the file containing items generated by autoconf and is
11244 # the first file included by config.h.
11245 # If host=build, it is correct to have bconfig include auto-host.h
11246 # as well. If host!=build, we are in error and need to do more
11247 # work to find out the build config parameters.
11248 if test x$host = x$build
11249 then
11250 build_auto=auto-host.h
11251 else
11252 # We create a subdir, then run autoconf in the subdir.
11253 # To prevent recursion we set host and build for the new
11254 # invocation of configure to the build for this invocation
11255 # of configure.
11256 tempdir=build.$$
11257 rm -rf $tempdir
11258 mkdir $tempdir
11259 cd $tempdir
11260 case ${srcdir} in
11261 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11262 *) realsrcdir=../${srcdir};;
11263 esac
11264 saved_CFLAGS="${CFLAGS}"
11265 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11266 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11267 ${realsrcdir}/configure \
11268 --enable-languages=${enable_languages-all} \
11269 --target=$target_alias --host=$build_alias --build=$build_alias
11270 CFLAGS="${saved_CFLAGS}"
11272 # We just finished tests for the build machine, so rename
11273 # the file auto-build.h in the gcc directory.
11274 mv auto-host.h ../auto-build.h
11275 cd ..
11276 rm -rf $tempdir
11277 build_auto=auto-build.h
11281 tm_file="${tm_file} defaults.h"
11282 tm_p_file="${tm_p_file} tm-preds.h"
11283 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11284 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11285 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11286 # put this back in temporarily.
11287 xm_file="auto-host.h ansidecl.h ${xm_file}"
11289 # --------
11290 # UNSORTED
11291 # --------
11293 # Compile in configure arguments.
11294 if test -f configargs.h ; then
11295 # Being re-configured.
11296 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11297 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11298 else
11299 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11302 # Double all backslashes and backslash all quotes to turn
11303 # gcc_config_arguments into a C string.
11304 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11305 $gcc_config_arguments
11307 gcc_config_arguments_str=`cat conftest.out`
11308 rm -f conftest.out
11310 cat > configargs.h <<EOF
11311 /* Generated automatically. */
11312 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11313 static const char thread_model[] = "$thread_file";
11315 static const struct {
11316 const char *name, *value;
11317 } configure_default_options[] = $configure_default_options;
11320 gcc_BASEVER=`cat $srcdir/BASE-VER`
11321 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11322 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11323 if test -f $srcdir/REVISION ; then
11324 gcc_REVISION=`cat $srcdir/REVISION`
11325 else
11326 gcc_REVISION=""
11328 cat > plugin-version.h <<EOF
11329 #include "configargs.h"
11331 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11332 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11333 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11334 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11336 static char basever[] = "$gcc_BASEVER";
11337 static char datestamp[] = "$gcc_DATESTAMP";
11338 static char devphase[] = "$gcc_DEVPHASE";
11339 static char revision[] = "$gcc_REVISION";
11341 /* FIXME plugins: We should make the version information more precise.
11342 One way to do is to add a checksum. */
11344 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11345 devphase, revision,
11346 configuration_arguments};
11349 # Internationalization
11350 # If we haven't got the data from the intl directory,
11351 # assume NLS is disabled.
11352 USE_NLS=no
11353 LIBINTL=
11354 LIBINTL_DEP=
11355 INCINTL=
11356 XGETTEXT=
11357 GMSGFMT=
11358 POSUB=
11360 if test -f ../intl/config.intl; then
11361 . ../intl/config.intl
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11364 $as_echo_n "checking whether NLS is requested... " >&6; }
11365 if test x"$USE_NLS" != xyes; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11368 else
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11370 $as_echo "yes" >&6; }
11372 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11376 $as_echo_n "checking for catalogs to be installed... " >&6; }
11377 # Look for .po and .gmo files in the source directory.
11378 CATALOGS=
11379 XLINGUAS=
11380 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11381 # If there aren't any .gmo files the shell will give us the
11382 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11383 # weeded out.
11384 case "$cat" in *\**)
11385 continue;;
11386 esac
11387 # The quadruple backslash is collapsed to a double backslash
11388 # by the backticks, then collapsed again by the double quotes,
11389 # leaving us with one backslash in the sed expression (right
11390 # before the dot that mustn't act as a wildcard).
11391 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11392 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11393 # The user is allowed to set LINGUAS to a list of languages to
11394 # install catalogs for. If it's empty that means "all of them."
11395 if test "x$LINGUAS" = x; then
11396 CATALOGS="$CATALOGS $cat"
11397 XLINGUAS="$XLINGUAS $lang"
11398 else
11399 case "$LINGUAS" in *$lang*)
11400 CATALOGS="$CATALOGS $cat"
11401 XLINGUAS="$XLINGUAS $lang"
11403 esac
11405 done
11406 LINGUAS="$XLINGUAS"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11408 $as_echo "$LINGUAS" >&6; }
11411 DATADIRNAME=share
11413 INSTOBJEXT=.mo
11415 GENCAT=gencat
11417 CATOBJEXT=.gmo
11421 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11422 # -liconv on the link line twice.
11423 case "$LIBINTL" in *$LIBICONV*)
11424 LIBICONV= ;;
11425 esac
11427 # Check whether --enable-secureplt was given.
11428 if test "${enable_secureplt+set}" = set; then :
11429 enableval=$enable_secureplt;
11433 # Check whether --enable-leading-mingw64-underscores was given.
11434 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11435 enableval=$enable_leading_mingw64_underscores;
11438 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11440 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11444 # Check whether --enable-cld was given.
11445 if test "${enable_cld+set}" = set; then :
11446 enableval=$enable_cld;
11447 else
11448 enable_cld=no
11452 # Check whether --enable-frame-pointer was given.
11453 if test "${enable_frame_pointer+set}" = set; then :
11454 enableval=$enable_frame_pointer;
11455 else
11457 case $target_os in
11458 linux* | darwin[8912]*)
11459 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11460 # DWARF2.
11461 enable_frame_pointer=no
11464 enable_frame_pointer=yes
11466 esac
11471 # Windows32 Registry support for specifying GCC installation paths.
11472 # Check whether --enable-win32-registry was given.
11473 if test "${enable_win32_registry+set}" = set; then :
11474 enableval=$enable_win32_registry;
11478 case $host_os in
11479 win32 | pe | cygwin* | mingw32* | uwin*)
11480 if test "x$enable_win32_registry" != xno; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11482 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11483 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_func_search_save_LIBS=$LIBS
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char RegOpenKeyExA ();
11498 main ()
11500 return RegOpenKeyExA ();
11502 return 0;
11504 _ACEOF
11505 for ac_lib in '' advapi32; do
11506 if test -z "$ac_lib"; then
11507 ac_res="none required"
11508 else
11509 ac_res=-l$ac_lib
11510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11512 if ac_fn_c_try_link "$LINENO"; then :
11513 ac_cv_search_RegOpenKeyExA=$ac_res
11515 rm -f core conftest.err conftest.$ac_objext \
11516 conftest$ac_exeext
11517 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11518 break
11520 done
11521 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11523 else
11524 ac_cv_search_RegOpenKeyExA=no
11526 rm conftest.$ac_ext
11527 LIBS=$ac_func_search_save_LIBS
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11530 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11531 ac_res=$ac_cv_search_RegOpenKeyExA
11532 if test "$ac_res" != no; then :
11533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11535 else
11536 enable_win32_registry=no
11541 if test "x$enable_win32_registry" != xno; then
11543 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11546 if test "x$enable_win32_registry" != xyes \
11547 && test "x$enable_win32_registry" != x; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11551 _ACEOF
11556 esac
11558 # Get an absolute path to the GCC top-level source directory
11559 holddir=`${PWDCMD-pwd}`
11560 cd $srcdir
11561 topdir=`${PWDCMD-pwd}`
11562 cd $holddir
11564 # Conditionalize the makefile for this host machine.
11565 xmake_file=
11566 for f in ${host_xmake_file}
11568 if test -f ${srcdir}/config/$f
11569 then
11570 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11572 done
11574 # Conditionalize the makefile for this target machine.
11575 tmake_file_=
11576 for f in ${tmake_file}
11578 if test -f ${srcdir}/config/$f
11579 then
11580 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11582 done
11583 tmake_file="${tmake_file_}"
11585 out_object_file=`basename $out_file .c`.o
11586 common_out_object_file=`basename $common_out_file .c`.o
11588 tm_file_list="options.h"
11589 tm_include_list="options.h insn-constants.h"
11590 for f in $tm_file; do
11591 case $f in
11592 ./* )
11593 f=`echo $f | sed 's/^..//'`
11594 tm_file_list="${tm_file_list} $f"
11595 tm_include_list="${tm_include_list} $f"
11597 defaults.h )
11598 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11599 tm_include_list="${tm_include_list} $f"
11602 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11603 tm_include_list="${tm_include_list} config/$f"
11605 esac
11606 done
11608 tm_p_file_list=
11609 tm_p_include_list=
11610 for f in $tm_p_file; do
11611 case $f in
11612 tm-preds.h )
11613 tm_p_file_list="${tm_p_file_list} $f"
11614 tm_p_include_list="${tm_p_include_list} $f"
11617 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11618 tm_p_include_list="${tm_p_include_list} config/$f"
11619 esac
11620 done
11622 xm_file_list=
11623 xm_include_list=
11624 for f in $xm_file; do
11625 case $f in
11626 ansidecl.h )
11627 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11628 xm_include_list="${xm_include_list} $f"
11630 auto-host.h )
11631 xm_file_list="${xm_file_list} $f"
11632 xm_include_list="${xm_include_list} $f"
11635 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11636 xm_include_list="${xm_include_list} config/$f"
11638 esac
11639 done
11641 host_xm_file_list=
11642 host_xm_include_list=
11643 for f in $host_xm_file; do
11644 case $f in
11645 ansidecl.h )
11646 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11647 host_xm_include_list="${host_xm_include_list} $f"
11649 auto-host.h )
11650 host_xm_file_list="${host_xm_file_list} $f"
11651 host_xm_include_list="${host_xm_include_list} $f"
11654 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11655 host_xm_include_list="${host_xm_include_list} config/$f"
11657 esac
11658 done
11660 build_xm_file_list=
11661 for f in $build_xm_file; do
11662 case $f in
11663 ansidecl.h )
11664 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11665 build_xm_include_list="${build_xm_include_list} $f"
11667 auto-build.h | auto-host.h )
11668 build_xm_file_list="${build_xm_file_list} $f"
11669 build_xm_include_list="${build_xm_include_list} $f"
11672 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11673 build_xm_include_list="${build_xm_include_list} config/$f"
11675 esac
11676 done
11678 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11679 # cross-compiler which does not use the native headers and libraries.
11680 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11681 CROSS=
11682 ALL=all.internal
11683 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11685 if test "x$with_build_sysroot" != x; then
11686 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11687 else
11688 # This value is used, even on a native system, because
11689 # CROSS_SYSTEM_HEADER_DIR is just
11690 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11691 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11694 if test x$host != x$target
11695 then
11696 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11697 ALL=all.cross
11698 SYSTEM_HEADER_DIR=$build_system_header_dir
11699 case "$host","$target" in
11700 # Darwin crosses can use the host system's libraries and headers,
11701 # because of the fat library support. Of course, it must be the
11702 # same version of Darwin on both sides. Allow the user to
11703 # just say --target=foo-darwin without a version number to mean
11704 # "the version on this system".
11705 *-*-darwin*,*-*-darwin*)
11706 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11707 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11708 if test $hostos = $targetos -o $targetos = darwin ; then
11709 CROSS=
11710 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11711 with_headers=yes
11715 i?86-*-*,x86_64-*-* \
11716 | powerpc*-*-*,powerpc64*-*-*)
11717 CROSS="$CROSS -DNATIVE_CROSS" ;;
11718 esac
11720 case $target in
11721 *-*-mingw*)
11722 if test "x$with_headers" = x; then
11723 with_headers=yes
11728 esac
11729 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11730 SYSTEM_HEADER_DIR=$build_system_header_dir
11733 # If this is a cross-compiler that does not
11734 # have its own set of headers then define
11735 # inhibit_libc
11737 # If this is using newlib, without having the headers available now,
11738 # then define inhibit_libc in LIBGCC2_CFLAGS.
11739 # This prevents libgcc2 from containing any code which requires libc
11740 # support.
11741 : ${inhibit_libc=false}
11742 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11743 test x$with_newlib = xyes ; } &&
11744 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11745 inhibit_libc=true
11749 # When building gcc with a cross-compiler, we need to adjust things so
11750 # that the generator programs are still built with the native compiler.
11751 # Also, we cannot run fixincludes.
11753 # These are the normal (build=host) settings:
11754 CC_FOR_BUILD='$(CC)'
11755 CXX_FOR_BUILD='$(CXX)'
11756 BUILD_CFLAGS='$(ALL_CFLAGS)'
11757 BUILD_CXXFLAGS='$(ALL_CXXFLAGS)'
11758 BUILD_LDFLAGS='$(LDFLAGS)'
11759 STMP_FIXINC=stmp-fixinc
11761 # And these apply if build != host, or we are generating coverage data
11762 if test x$build != x$host || test "x$coverage_flags" != x
11763 then
11764 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11765 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11768 # Expand extra_headers to include complete path.
11769 # This substitutes for lots of t-* files.
11770 extra_headers_list=
11771 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11772 for file in ${extra_headers} ; do
11773 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11774 done
11776 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11777 if test x"$use_gcc_tgmath" = xyes
11778 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11781 # Define collect2 in Makefile.
11782 case $host_can_use_collect2 in
11783 no) collect2= ;;
11784 *) collect2='collect2$(exeext)' ;;
11785 esac
11788 # Add a definition of USE_COLLECT2 if system wants one.
11789 case $use_collect2 in
11790 no) use_collect2= ;;
11791 "") ;;
11793 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11794 xm_defines="${xm_defines} USE_COLLECT2"
11795 case $host_can_use_collect2 in
11797 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11799 esac
11801 esac
11804 cat >>confdefs.h <<_ACEOF
11805 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11806 _ACEOF
11809 # ---------------------------
11810 # Assembler & linker features
11811 # ---------------------------
11813 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11814 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11815 # However when ld-new is first executed from the build tree, libtool will
11816 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11817 # to the build tree. While doing this we need to use the previous-stage
11818 # linker, or we have an infinite loop. The presence of a shell script as
11819 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11820 # the gcc/collect-ld script. So we need to know how libtool works, or
11821 # exec-tool will fail.
11824 case `pwd` in
11825 *\ * | *\ *)
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11827 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11828 esac
11832 macro_version='2.2.7a'
11833 macro_revision='1.3134'
11847 ltmain="$ac_aux_dir/ltmain.sh"
11849 # Backslashify metacharacters that are still active within
11850 # double-quoted strings.
11851 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11853 # Same as above, but do not quote variable references.
11854 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11856 # Sed substitution to delay expansion of an escaped shell variable in a
11857 # double_quote_subst'ed string.
11858 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11860 # Sed substitution to delay expansion of an escaped single quote.
11861 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11863 # Sed substitution to avoid accidental globbing in evaled expressions
11864 no_glob_subst='s/\*/\\\*/g'
11866 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11867 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11868 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11871 $as_echo_n "checking how to print strings... " >&6; }
11872 # Test print first, because it will be a builtin if present.
11873 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11874 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11875 ECHO='print -r --'
11876 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11877 ECHO='printf %s\n'
11878 else
11879 # Use this function as a fallback that always works.
11880 func_fallback_echo ()
11882 eval 'cat <<_LTECHO_EOF
11884 _LTECHO_EOF'
11886 ECHO='func_fallback_echo'
11889 # func_echo_all arg...
11890 # Invoke $ECHO with all args, space-separated.
11891 func_echo_all ()
11893 $ECHO ""
11896 case "$ECHO" in
11897 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11898 $as_echo "printf" >&6; } ;;
11899 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11900 $as_echo "print -r" >&6; } ;;
11901 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11902 $as_echo "cat" >&6; } ;;
11903 esac
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11919 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11920 if test "${ac_cv_path_SED+set}" = set; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11924 for ac_i in 1 2 3 4 5 6 7; do
11925 ac_script="$ac_script$as_nl$ac_script"
11926 done
11927 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11928 { ac_script=; unset ac_script;}
11929 if test -z "$SED"; then
11930 ac_path_SED_found=false
11931 # Loop through the user's path and test for each of PROGNAME-LIST
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_prog in sed gsed; do
11938 for ac_exec_ext in '' $ac_executable_extensions; do
11939 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11940 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11941 # Check for GNU ac_path_SED and select it if it is found.
11942 # Check for GNU $ac_path_SED
11943 case `"$ac_path_SED" --version 2>&1` in
11944 *GNU*)
11945 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11947 ac_count=0
11948 $as_echo_n 0123456789 >"conftest.in"
11949 while :
11951 cat "conftest.in" "conftest.in" >"conftest.tmp"
11952 mv "conftest.tmp" "conftest.in"
11953 cp "conftest.in" "conftest.nl"
11954 $as_echo '' >> "conftest.nl"
11955 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11957 as_fn_arith $ac_count + 1 && ac_count=$as_val
11958 if test $ac_count -gt ${ac_path_SED_max-0}; then
11959 # Best one so far, save it but keep looking for a better one
11960 ac_cv_path_SED="$ac_path_SED"
11961 ac_path_SED_max=$ac_count
11963 # 10*(2^10) chars as input seems more than enough
11964 test $ac_count -gt 10 && break
11965 done
11966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11967 esac
11969 $ac_path_SED_found && break 3
11970 done
11971 done
11972 done
11973 IFS=$as_save_IFS
11974 if test -z "$ac_cv_path_SED"; then
11975 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11977 else
11978 ac_cv_path_SED=$SED
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11983 $as_echo "$ac_cv_path_SED" >&6; }
11984 SED="$ac_cv_path_SED"
11985 rm -f conftest.sed
11987 test -z "$SED" && SED=sed
11988 Xsed="$SED -e 1s/^X//"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12001 $as_echo_n "checking for fgrep... " >&6; }
12002 if test "${ac_cv_path_FGREP+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12006 then ac_cv_path_FGREP="$GREP -F"
12007 else
12008 if test -z "$FGREP"; then
12009 ac_path_FGREP_found=false
12010 # Loop through the user's path and test for each of PROGNAME-LIST
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_prog in fgrep; do
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12019 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12020 # Check for GNU ac_path_FGREP and select it if it is found.
12021 # Check for GNU $ac_path_FGREP
12022 case `"$ac_path_FGREP" --version 2>&1` in
12023 *GNU*)
12024 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12026 ac_count=0
12027 $as_echo_n 0123456789 >"conftest.in"
12028 while :
12030 cat "conftest.in" "conftest.in" >"conftest.tmp"
12031 mv "conftest.tmp" "conftest.in"
12032 cp "conftest.in" "conftest.nl"
12033 $as_echo 'FGREP' >> "conftest.nl"
12034 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12036 as_fn_arith $ac_count + 1 && ac_count=$as_val
12037 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12038 # Best one so far, save it but keep looking for a better one
12039 ac_cv_path_FGREP="$ac_path_FGREP"
12040 ac_path_FGREP_max=$ac_count
12042 # 10*(2^10) chars as input seems more than enough
12043 test $ac_count -gt 10 && break
12044 done
12045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12046 esac
12048 $ac_path_FGREP_found && break 3
12049 done
12050 done
12051 done
12052 IFS=$as_save_IFS
12053 if test -z "$ac_cv_path_FGREP"; then
12054 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12056 else
12057 ac_cv_path_FGREP=$FGREP
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12063 $as_echo "$ac_cv_path_FGREP" >&6; }
12064 FGREP="$ac_cv_path_FGREP"
12067 test -z "$GREP" && GREP=grep
12087 # Check whether --with-gnu-ld was given.
12088 if test "${with_gnu_ld+set}" = set; then :
12089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12090 else
12091 with_gnu_ld=no
12094 ac_prog=ld
12095 if test "$GCC" = yes; then
12096 # Check if gcc -print-prog-name=ld gives a path.
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12098 $as_echo_n "checking for ld used by $CC... " >&6; }
12099 case $host in
12100 *-*-mingw*)
12101 # gcc leaves a trailing carriage return which upsets mingw
12102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12105 esac
12106 case $ac_prog in
12107 # Accept absolute paths.
12108 [\\/]* | ?:[\\/]*)
12109 re_direlt='/[^/][^/]*/\.\./'
12110 # Canonicalize the pathname of ld
12111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12114 done
12115 test -z "$LD" && LD="$ac_prog"
12118 # If it fails, then pretend we aren't using GCC.
12119 ac_prog=ld
12122 # If it is relative, then search for the first ld in PATH.
12123 with_gnu_ld=unknown
12125 esac
12126 elif test "$with_gnu_ld" = yes; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12128 $as_echo_n "checking for GNU ld... " >&6; }
12129 else
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12131 $as_echo_n "checking for non-GNU ld... " >&6; }
12133 if test "${lt_cv_path_LD+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 if test -z "$LD"; then
12137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12138 for ac_dir in $PATH; do
12139 IFS="$lt_save_ifs"
12140 test -z "$ac_dir" && ac_dir=.
12141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12142 lt_cv_path_LD="$ac_dir/$ac_prog"
12143 # Check to see if the program is GNU ld. I'd rather use --version,
12144 # but apparently some variants of GNU ld only accept -v.
12145 # Break only if it was the GNU/non-GNU ld that we prefer.
12146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12147 *GNU* | *'with BFD'*)
12148 test "$with_gnu_ld" != no && break
12151 test "$with_gnu_ld" != yes && break
12153 esac
12155 done
12156 IFS="$lt_save_ifs"
12157 else
12158 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12162 LD="$lt_cv_path_LD"
12163 if test -n "$LD"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12165 $as_echo "$LD" >&6; }
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12168 $as_echo "no" >&6; }
12170 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12173 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12177 case `$LD -v 2>&1 </dev/null` in
12178 *GNU* | *'with BFD'*)
12179 lt_cv_prog_gnu_ld=yes
12182 lt_cv_prog_gnu_ld=no
12184 esac
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12188 with_gnu_ld=$lt_cv_prog_gnu_ld
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12200 if test "${lt_cv_path_NM+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 if test -n "$NM"; then
12204 # Let the user override the test.
12205 lt_cv_path_NM="$NM"
12206 else
12207 lt_nm_to_check="${ac_tool_prefix}nm"
12208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12209 lt_nm_to_check="$lt_nm_to_check nm"
12211 for lt_tmp_nm in $lt_nm_to_check; do
12212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12213 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12214 IFS="$lt_save_ifs"
12215 test -z "$ac_dir" && ac_dir=.
12216 tmp_nm="$ac_dir/$lt_tmp_nm"
12217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12218 # Check to see if the nm accepts a BSD-compat flag.
12219 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12220 # nm: unknown option "B" ignored
12221 # Tru64's nm complains that /dev/null is an invalid object file
12222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12223 */dev/null* | *'Invalid file or object type'*)
12224 lt_cv_path_NM="$tmp_nm -B"
12225 break
12228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12229 */dev/null*)
12230 lt_cv_path_NM="$tmp_nm -p"
12231 break
12234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12235 continue # so that we can try to find one that supports BSD flags
12237 esac
12239 esac
12241 done
12242 IFS="$lt_save_ifs"
12243 done
12244 : ${lt_cv_path_NM=no}
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12248 $as_echo "$lt_cv_path_NM" >&6; }
12249 if test "$lt_cv_path_NM" != "no"; then
12250 NM="$lt_cv_path_NM"
12251 else
12252 # Didn't find any BSD compatible name lister, look for dumpbin.
12253 if test -n "$DUMPBIN"; then :
12254 # Let the user override the test.
12255 else
12256 if test -n "$ac_tool_prefix"; then
12257 for ac_prog in dumpbin "link -dump"
12259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test -n "$DUMPBIN"; then
12267 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12280 done
12281 done
12282 IFS=$as_save_IFS
12286 DUMPBIN=$ac_cv_prog_DUMPBIN
12287 if test -n "$DUMPBIN"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12289 $as_echo "$DUMPBIN" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12296 test -n "$DUMPBIN" && break
12297 done
12299 if test -z "$DUMPBIN"; then
12300 ac_ct_DUMPBIN=$DUMPBIN
12301 for ac_prog in dumpbin "link -dump"
12303 # Extract the first word of "$ac_prog", so it can be a program name with args.
12304 set dummy $ac_prog; ac_word=$2
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12306 $as_echo_n "checking for $ac_word... " >&6; }
12307 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12308 $as_echo_n "(cached) " >&6
12309 else
12310 if test -n "$ac_ct_DUMPBIN"; then
12311 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12312 else
12313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12314 for as_dir in $PATH
12316 IFS=$as_save_IFS
12317 test -z "$as_dir" && as_dir=.
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12320 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 break 2
12324 done
12325 done
12326 IFS=$as_save_IFS
12330 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12331 if test -n "$ac_ct_DUMPBIN"; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12333 $as_echo "$ac_ct_DUMPBIN" >&6; }
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336 $as_echo "no" >&6; }
12340 test -n "$ac_ct_DUMPBIN" && break
12341 done
12343 if test "x$ac_ct_DUMPBIN" = x; then
12344 DUMPBIN=":"
12345 else
12346 case $cross_compiling:$ac_tool_warned in
12347 yes:)
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12350 ac_tool_warned=yes ;;
12351 esac
12352 DUMPBIN=$ac_ct_DUMPBIN
12356 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12357 *COFF*)
12358 DUMPBIN="$DUMPBIN -symbols"
12361 DUMPBIN=:
12363 esac
12366 if test "$DUMPBIN" != ":"; then
12367 NM="$DUMPBIN"
12370 test -z "$NM" && NM=nm
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12378 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12379 if test "${lt_cv_nm_interface+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12381 else
12382 lt_cv_nm_interface="BSD nm"
12383 echo "int some_variable = 0;" > conftest.$ac_ext
12384 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12385 (eval "$ac_compile" 2>conftest.err)
12386 cat conftest.err >&5
12387 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12388 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12389 cat conftest.err >&5
12390 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12391 cat conftest.out >&5
12392 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12393 lt_cv_nm_interface="MS dumpbin"
12395 rm -f conftest*
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12398 $as_echo "$lt_cv_nm_interface" >&6; }
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12401 $as_echo_n "checking whether ln -s works... " >&6; }
12402 LN_S=$as_ln_s
12403 if test "$LN_S" = "ln -s"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12405 $as_echo "yes" >&6; }
12406 else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12408 $as_echo "no, using $LN_S" >&6; }
12411 # find the maximum length of command line arguments
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12414 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12418 teststring="ABCD"
12420 case $build_os in
12421 msdosdjgpp*)
12422 # On DJGPP, this test can blow up pretty badly due to problems in libc
12423 # (any single argument exceeding 2000 bytes causes a buffer overrun
12424 # during glob expansion). Even if it were fixed, the result of this
12425 # check would be larger than it should be.
12426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12429 gnu*)
12430 # Under GNU Hurd, this test is not required because there is
12431 # no limit to the length of command line arguments.
12432 # Libtool will interpret -1 as no limit whatsoever
12433 lt_cv_sys_max_cmd_len=-1;
12436 cygwin* | mingw* | cegcc*)
12437 # On Win9x/ME, this test blows up -- it succeeds, but takes
12438 # about 5 minutes as the teststring grows exponentially.
12439 # Worse, since 9x/ME are not pre-emptively multitasking,
12440 # you end up with a "frozen" computer, even though with patience
12441 # the test eventually succeeds (with a max line length of 256k).
12442 # Instead, let's just punt: use the minimum linelength reported by
12443 # all of the supported platforms: 8192 (on NT/2K/XP).
12444 lt_cv_sys_max_cmd_len=8192;
12447 mint*)
12448 # On MiNT this can take a long time and run out of memory.
12449 lt_cv_sys_max_cmd_len=8192;
12452 amigaos*)
12453 # On AmigaOS with pdksh, this test takes hours, literally.
12454 # So we just punt and use a minimum line length of 8192.
12455 lt_cv_sys_max_cmd_len=8192;
12458 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12459 # This has been around since 386BSD, at least. Likely further.
12460 if test -x /sbin/sysctl; then
12461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12462 elif test -x /usr/sbin/sysctl; then
12463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12464 else
12465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12467 # And add a safety zone
12468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12472 interix*)
12473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12474 lt_cv_sys_max_cmd_len=196608
12477 osf*)
12478 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12479 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12480 # nice to cause kernel panics so lets avoid the loop below.
12481 # First set a reasonable default.
12482 lt_cv_sys_max_cmd_len=16384
12484 if test -x /sbin/sysconfig; then
12485 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12486 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12487 esac
12490 sco3.2v5*)
12491 lt_cv_sys_max_cmd_len=102400
12493 sysv5* | sco5v6* | sysv4.2uw2*)
12494 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12495 if test -n "$kargmax"; then
12496 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12497 else
12498 lt_cv_sys_max_cmd_len=32768
12502 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12503 if test -n "$lt_cv_sys_max_cmd_len"; then
12504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12506 else
12507 # Make teststring a little bigger before we do anything with it.
12508 # a 1K string should be a reasonable start.
12509 for i in 1 2 3 4 5 6 7 8 ; do
12510 teststring=$teststring$teststring
12511 done
12512 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12513 # If test is not a shell built-in, we'll probably end up computing a
12514 # maximum length that is only half of the actual maximum length, but
12515 # we can't tell.
12516 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12517 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12518 test $i != 17 # 1/2 MB should be enough
12520 i=`expr $i + 1`
12521 teststring=$teststring$teststring
12522 done
12523 # Only check the string length outside the loop.
12524 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12525 teststring=
12526 # Add a significant safety factor because C++ compilers can tack on
12527 # massive amounts of additional arguments before passing them to the
12528 # linker. It appears as though 1/2 is a usable value.
12529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12532 esac
12536 if test -n $lt_cv_sys_max_cmd_len ; then
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12538 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12539 else
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12541 $as_echo "none" >&6; }
12543 max_cmd_len=$lt_cv_sys_max_cmd_len
12550 : ${CP="cp -f"}
12551 : ${MV="mv -f"}
12552 : ${RM="rm -f"}
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12555 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12556 # Try some XSI features
12557 xsi_shell=no
12558 ( _lt_dummy="a/b/c"
12559 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12560 = c,a/b,, \
12561 && eval 'test $(( 1 + 1 )) -eq 2 \
12562 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12563 && xsi_shell=yes
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12565 $as_echo "$xsi_shell" >&6; }
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12569 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12570 lt_shell_append=no
12571 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12572 >/dev/null 2>&1 \
12573 && lt_shell_append=yes
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12575 $as_echo "$lt_shell_append" >&6; }
12578 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12579 lt_unset=unset
12580 else
12581 lt_unset=false
12588 # test EBCDIC or ASCII
12589 case `echo X|tr X '\101'` in
12590 A) # ASCII based system
12591 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12592 lt_SP2NL='tr \040 \012'
12593 lt_NL2SP='tr \015\012 \040\040'
12595 *) # EBCDIC based system
12596 lt_SP2NL='tr \100 \n'
12597 lt_NL2SP='tr \r\n \100\100'
12599 esac
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12610 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12611 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 lt_cv_ld_reload_flag='-r'
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12617 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12618 reload_flag=$lt_cv_ld_reload_flag
12619 case $reload_flag in
12620 "" | " "*) ;;
12621 *) reload_flag=" $reload_flag" ;;
12622 esac
12623 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12624 case $host_os in
12625 darwin*)
12626 if test "$GCC" = yes; then
12627 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12628 else
12629 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12632 esac
12642 if test -n "$ac_tool_prefix"; then
12643 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12644 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$OBJDUMP"; then
12651 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12664 done
12665 done
12666 IFS=$as_save_IFS
12670 OBJDUMP=$ac_cv_prog_OBJDUMP
12671 if test -n "$OBJDUMP"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12673 $as_echo "$OBJDUMP" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12681 if test -z "$ac_cv_prog_OBJDUMP"; then
12682 ac_ct_OBJDUMP=$OBJDUMP
12683 # Extract the first word of "objdump", so it can be a program name with args.
12684 set dummy objdump; ac_word=$2
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12686 $as_echo_n "checking for $ac_word... " >&6; }
12687 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12688 $as_echo_n "(cached) " >&6
12689 else
12690 if test -n "$ac_ct_OBJDUMP"; then
12691 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12692 else
12693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
12698 for ac_exec_ext in '' $ac_executable_extensions; do
12699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12700 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702 break 2
12704 done
12705 done
12706 IFS=$as_save_IFS
12710 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12711 if test -n "$ac_ct_OBJDUMP"; then
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12713 $as_echo "$ac_ct_OBJDUMP" >&6; }
12714 else
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12719 if test "x$ac_ct_OBJDUMP" = x; then
12720 OBJDUMP="false"
12721 else
12722 case $cross_compiling:$ac_tool_warned in
12723 yes:)
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12726 ac_tool_warned=yes ;;
12727 esac
12728 OBJDUMP=$ac_ct_OBJDUMP
12730 else
12731 OBJDUMP="$ac_cv_prog_OBJDUMP"
12734 test -z "$OBJDUMP" && OBJDUMP=objdump
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12745 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12746 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 lt_cv_file_magic_cmd='$MAGIC_CMD'
12750 lt_cv_file_magic_test_file=
12751 lt_cv_deplibs_check_method='unknown'
12752 # Need to set the preceding variable on all platforms that support
12753 # interlibrary dependencies.
12754 # 'none' -- dependencies not supported.
12755 # `unknown' -- same as none, but documents that we really don't know.
12756 # 'pass_all' -- all dependencies passed with no checks.
12757 # 'test_compile' -- check by making test program.
12758 # 'file_magic [[regex]]' -- check by looking for files in library path
12759 # which responds to the $file_magic_cmd with a given extended regex.
12760 # If you have `file' or equivalent on your system and you're not sure
12761 # whether `pass_all' will *always* work, you probably want this one.
12763 case $host_os in
12764 aix[4-9]*)
12765 lt_cv_deplibs_check_method=pass_all
12768 beos*)
12769 lt_cv_deplibs_check_method=pass_all
12772 bsdi[45]*)
12773 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12774 lt_cv_file_magic_cmd='/usr/bin/file -L'
12775 lt_cv_file_magic_test_file=/shlib/libc.so
12778 cygwin*)
12779 # func_win32_libid is a shell function defined in ltmain.sh
12780 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12781 lt_cv_file_magic_cmd='func_win32_libid'
12784 mingw* | pw32*)
12785 # Base MSYS/MinGW do not provide the 'file' command needed by
12786 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12787 # unless we find 'file', for example because we are cross-compiling.
12788 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12789 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12790 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12791 lt_cv_file_magic_cmd='func_win32_libid'
12792 else
12793 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12794 lt_cv_file_magic_cmd='$OBJDUMP -f'
12798 cegcc*)
12799 # use the weaker test based on 'objdump'. See mingw*.
12800 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12801 lt_cv_file_magic_cmd='$OBJDUMP -f'
12804 darwin* | rhapsody*)
12805 lt_cv_deplibs_check_method=pass_all
12808 freebsd* | dragonfly*)
12809 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12810 case $host_cpu in
12811 i*86 )
12812 # Not sure whether the presence of OpenBSD here was a mistake.
12813 # Let's accept both of them until this is cleared up.
12814 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12815 lt_cv_file_magic_cmd=/usr/bin/file
12816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12818 esac
12819 else
12820 lt_cv_deplibs_check_method=pass_all
12824 gnu*)
12825 lt_cv_deplibs_check_method=pass_all
12828 haiku*)
12829 lt_cv_deplibs_check_method=pass_all
12832 hpux10.20* | hpux11*)
12833 lt_cv_file_magic_cmd=/usr/bin/file
12834 case $host_cpu in
12835 ia64*)
12836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12837 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12839 hppa*64*)
12840 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]'
12841 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12845 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12847 esac
12850 interix[3-9]*)
12851 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12855 irix5* | irix6* | nonstopux*)
12856 case $LD in
12857 *-32|*"-32 ") libmagic=32-bit;;
12858 *-n32|*"-n32 ") libmagic=N32;;
12859 *-64|*"-64 ") libmagic=64-bit;;
12860 *) libmagic=never-match;;
12861 esac
12862 lt_cv_deplibs_check_method=pass_all
12865 # This must be Linux ELF.
12866 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12867 lt_cv_deplibs_check_method=pass_all
12870 netbsd*)
12871 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12873 else
12874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12878 newos6*)
12879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12880 lt_cv_file_magic_cmd=/usr/bin/file
12881 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12884 *nto* | *qnx*)
12885 lt_cv_deplibs_check_method=pass_all
12888 openbsd*)
12889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12891 else
12892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12896 osf3* | osf4* | osf5*)
12897 lt_cv_deplibs_check_method=pass_all
12900 rdos*)
12901 lt_cv_deplibs_check_method=pass_all
12904 solaris*)
12905 lt_cv_deplibs_check_method=pass_all
12908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12909 lt_cv_deplibs_check_method=pass_all
12912 sysv4 | sysv4.3*)
12913 case $host_vendor in
12914 motorola)
12915 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]'
12916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12918 ncr)
12919 lt_cv_deplibs_check_method=pass_all
12921 sequent)
12922 lt_cv_file_magic_cmd='/bin/file'
12923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12925 sni)
12926 lt_cv_file_magic_cmd='/bin/file'
12927 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12928 lt_cv_file_magic_test_file=/lib/libc.so
12930 siemens)
12931 lt_cv_deplibs_check_method=pass_all
12934 lt_cv_deplibs_check_method=pass_all
12936 esac
12939 tpf*)
12940 lt_cv_deplibs_check_method=pass_all
12942 esac
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12946 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12947 file_magic_cmd=$lt_cv_file_magic_cmd
12948 deplibs_check_method=$lt_cv_deplibs_check_method
12949 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12962 if test -n "$ac_tool_prefix"; then
12963 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12964 set dummy ${ac_tool_prefix}ar; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12966 $as_echo_n "checking for $ac_word... " >&6; }
12967 if test "${ac_cv_prog_AR+set}" = set; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 if test -n "$AR"; then
12971 ac_cv_prog_AR="$AR" # Let the user override the test.
12972 else
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12976 IFS=$as_save_IFS
12977 test -z "$as_dir" && as_dir=.
12978 for ac_exec_ext in '' $ac_executable_extensions; do
12979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12980 ac_cv_prog_AR="${ac_tool_prefix}ar"
12981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12982 break 2
12984 done
12985 done
12986 IFS=$as_save_IFS
12990 AR=$ac_cv_prog_AR
12991 if test -n "$AR"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12993 $as_echo "$AR" >&6; }
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
13001 if test -z "$ac_cv_prog_AR"; then
13002 ac_ct_AR=$AR
13003 # Extract the first word of "ar", so it can be a program name with args.
13004 set dummy ar; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13008 $as_echo_n "(cached) " >&6
13009 else
13010 if test -n "$ac_ct_AR"; then
13011 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13012 else
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_ac_ct_AR="ar"
13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 break 2
13024 done
13025 done
13026 IFS=$as_save_IFS
13030 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13031 if test -n "$ac_ct_AR"; then
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13033 $as_echo "$ac_ct_AR" >&6; }
13034 else
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13039 if test "x$ac_ct_AR" = x; then
13040 AR="false"
13041 else
13042 case $cross_compiling:$ac_tool_warned in
13043 yes:)
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13046 ac_tool_warned=yes ;;
13047 esac
13048 AR=$ac_ct_AR
13050 else
13051 AR="$ac_cv_prog_AR"
13054 test -z "$AR" && AR=ar
13055 test -z "$AR_FLAGS" && AR_FLAGS=cru
13067 if test -n "$ac_tool_prefix"; then
13068 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13069 set dummy ${ac_tool_prefix}strip; ac_word=$2
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13071 $as_echo_n "checking for $ac_word... " >&6; }
13072 if test "${ac_cv_prog_STRIP+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
13074 else
13075 if test -n "$STRIP"; then
13076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13077 else
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079 for as_dir in $PATH
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
13083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13085 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 break 2
13089 done
13090 done
13091 IFS=$as_save_IFS
13095 STRIP=$ac_cv_prog_STRIP
13096 if test -n "$STRIP"; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13098 $as_echo "$STRIP" >&6; }
13099 else
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101 $as_echo "no" >&6; }
13106 if test -z "$ac_cv_prog_STRIP"; then
13107 ac_ct_STRIP=$STRIP
13108 # Extract the first word of "strip", so it can be a program name with args.
13109 set dummy strip; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111 $as_echo_n "checking for $ac_word... " >&6; }
13112 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 if test -n "$ac_ct_STRIP"; then
13116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13117 else
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_prog_ac_ct_STRIP="strip"
13126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13129 done
13130 done
13131 IFS=$as_save_IFS
13135 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13136 if test -n "$ac_ct_STRIP"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13138 $as_echo "$ac_ct_STRIP" >&6; }
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13144 if test "x$ac_ct_STRIP" = x; then
13145 STRIP=":"
13146 else
13147 case $cross_compiling:$ac_tool_warned in
13148 yes:)
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13151 ac_tool_warned=yes ;;
13152 esac
13153 STRIP=$ac_ct_STRIP
13155 else
13156 STRIP="$ac_cv_prog_STRIP"
13159 test -z "$STRIP" && STRIP=:
13166 if test -n "$ac_tool_prefix"; then
13167 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13168 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13170 $as_echo_n "checking for $ac_word... " >&6; }
13171 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13172 $as_echo_n "(cached) " >&6
13173 else
13174 if test -n "$RANLIB"; then
13175 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13176 else
13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13178 for as_dir in $PATH
13180 IFS=$as_save_IFS
13181 test -z "$as_dir" && as_dir=.
13182 for ac_exec_ext in '' $ac_executable_extensions; do
13183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13186 break 2
13188 done
13189 done
13190 IFS=$as_save_IFS
13194 RANLIB=$ac_cv_prog_RANLIB
13195 if test -n "$RANLIB"; then
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13197 $as_echo "$RANLIB" >&6; }
13198 else
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13200 $as_echo "no" >&6; }
13205 if test -z "$ac_cv_prog_RANLIB"; then
13206 ac_ct_RANLIB=$RANLIB
13207 # Extract the first word of "ranlib", so it can be a program name with args.
13208 set dummy ranlib; ac_word=$2
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210 $as_echo_n "checking for $ac_word... " >&6; }
13211 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 if test -n "$ac_ct_RANLIB"; then
13215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13216 else
13217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13218 for as_dir in $PATH
13220 IFS=$as_save_IFS
13221 test -z "$as_dir" && as_dir=.
13222 for ac_exec_ext in '' $ac_executable_extensions; do
13223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13224 ac_cv_prog_ac_ct_RANLIB="ranlib"
13225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13226 break 2
13228 done
13229 done
13230 IFS=$as_save_IFS
13234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13235 if test -n "$ac_ct_RANLIB"; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13237 $as_echo "$ac_ct_RANLIB" >&6; }
13238 else
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13240 $as_echo "no" >&6; }
13243 if test "x$ac_ct_RANLIB" = x; then
13244 RANLIB=":"
13245 else
13246 case $cross_compiling:$ac_tool_warned in
13247 yes:)
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13250 ac_tool_warned=yes ;;
13251 esac
13252 RANLIB=$ac_ct_RANLIB
13254 else
13255 RANLIB="$ac_cv_prog_RANLIB"
13258 test -z "$RANLIB" && RANLIB=:
13265 # Determine commands to create old-style static archives.
13266 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13267 old_postinstall_cmds='chmod 644 $oldlib'
13268 old_postuninstall_cmds=
13270 if test -n "$RANLIB"; then
13271 case $host_os in
13272 openbsd*)
13273 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13278 esac
13279 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13282 case $host_os in
13283 darwin*)
13284 lock_old_archive_extraction=yes ;;
13286 lock_old_archive_extraction=no ;;
13287 esac
13327 # If no C compiler was specified, use CC.
13328 LTCC=${LTCC-"$CC"}
13330 # If no C compiler flags were specified, use CFLAGS.
13331 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13333 # Allow CC to be a program name with arguments.
13334 compiler=$CC
13337 # Check for command to grab the raw symbol name followed by C symbol from nm.
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13339 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13340 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13341 $as_echo_n "(cached) " >&6
13342 else
13344 # These are sane defaults that work on at least a few old systems.
13345 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13347 # Character class describing NM global symbol codes.
13348 symcode='[BCDEGRST]'
13350 # Regexp to match symbols that can be accessed directly from C.
13351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13353 # Define system-specific variables.
13354 case $host_os in
13355 aix*)
13356 symcode='[BCDT]'
13358 cygwin* | mingw* | pw32* | cegcc*)
13359 symcode='[ABCDGISTW]'
13361 hpux*)
13362 if test "$host_cpu" = ia64; then
13363 symcode='[ABCDEGRST]'
13366 irix* | nonstopux*)
13367 symcode='[BCDEGRST]'
13369 osf*)
13370 symcode='[BCDEGQRST]'
13372 solaris*)
13373 symcode='[BDRT]'
13375 sco3.2v5*)
13376 symcode='[DT]'
13378 sysv4.2uw2*)
13379 symcode='[DT]'
13381 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13382 symcode='[ABDT]'
13384 sysv4)
13385 symcode='[DFNSTU]'
13387 esac
13389 # If we're using GNU nm, then use its standard symbol codes.
13390 case `$NM -V 2>&1` in
13391 *GNU* | *'with BFD'*)
13392 symcode='[ABCDGIRSTW]' ;;
13393 esac
13395 # Transform an extracted symbol line into a proper C declaration.
13396 # Some systems (esp. on ia64) link data and code symbols differently,
13397 # so use this general approach.
13398 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13400 # Transform an extracted symbol line into symbol name and symbol address
13401 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13402 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'"
13404 # Handle CRLF in mingw tool chain
13405 opt_cr=
13406 case $build_os in
13407 mingw*)
13408 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13410 esac
13412 # Try without a prefix underscore, then with it.
13413 for ac_symprfx in "" "_"; do
13415 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13416 symxfrm="\\1 $ac_symprfx\\2 \\2"
13418 # Write the raw and C identifiers.
13419 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13420 # Fake it for dumpbin and say T for any non-static function
13421 # and D for any global variable.
13422 # Also find C++ and __fastcall symbols from MSVC++,
13423 # which start with @ or ?.
13424 lt_cv_sys_global_symbol_pipe="$AWK '"\
13425 " {last_section=section; section=\$ 3};"\
13426 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13427 " \$ 0!~/External *\|/{next};"\
13428 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13429 " {if(hide[section]) next};"\
13430 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13431 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13432 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13433 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13434 " ' prfx=^$ac_symprfx"
13435 else
13436 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13439 # Check to see that the pipe works correctly.
13440 pipe_works=no
13442 rm -f conftest*
13443 cat > conftest.$ac_ext <<_LT_EOF
13444 #ifdef __cplusplus
13445 extern "C" {
13446 #endif
13447 char nm_test_var;
13448 void nm_test_func(void);
13449 void nm_test_func(void){}
13450 #ifdef __cplusplus
13452 #endif
13453 int main(){nm_test_var='a';nm_test_func();return(0);}
13454 _LT_EOF
13456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13457 (eval $ac_compile) 2>&5
13458 ac_status=$?
13459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13460 test $ac_status = 0; }; then
13461 # Now try to grab the symbols.
13462 nlist=conftest.nm
13463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13464 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13465 ac_status=$?
13466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13467 test $ac_status = 0; } && test -s "$nlist"; then
13468 # Try sorting and uniquifying the output.
13469 if sort "$nlist" | uniq > "$nlist"T; then
13470 mv -f "$nlist"T "$nlist"
13471 else
13472 rm -f "$nlist"T
13475 # Make sure that we snagged all the symbols we need.
13476 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13477 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13478 cat <<_LT_EOF > conftest.$ac_ext
13479 #ifdef __cplusplus
13480 extern "C" {
13481 #endif
13483 _LT_EOF
13484 # Now generate the symbol file.
13485 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13487 cat <<_LT_EOF >> conftest.$ac_ext
13489 /* The mapping between symbol names and symbols. */
13490 const struct {
13491 const char *name;
13492 void *address;
13494 lt__PROGRAM__LTX_preloaded_symbols[] =
13496 { "@PROGRAM@", (void *) 0 },
13497 _LT_EOF
13498 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13499 cat <<\_LT_EOF >> conftest.$ac_ext
13500 {0, (void *) 0}
13503 /* This works around a problem in FreeBSD linker */
13504 #ifdef FREEBSD_WORKAROUND
13505 static const void *lt_preloaded_setup() {
13506 return lt__PROGRAM__LTX_preloaded_symbols;
13508 #endif
13510 #ifdef __cplusplus
13512 #endif
13513 _LT_EOF
13514 # Now try linking the two files.
13515 mv conftest.$ac_objext conftstm.$ac_objext
13516 lt_save_LIBS="$LIBS"
13517 lt_save_CFLAGS="$CFLAGS"
13518 LIBS="conftstm.$ac_objext"
13519 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13521 (eval $ac_link) 2>&5
13522 ac_status=$?
13523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13524 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13525 pipe_works=yes
13527 LIBS="$lt_save_LIBS"
13528 CFLAGS="$lt_save_CFLAGS"
13529 else
13530 echo "cannot find nm_test_func in $nlist" >&5
13532 else
13533 echo "cannot find nm_test_var in $nlist" >&5
13535 else
13536 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13538 else
13539 echo "$progname: failed program was:" >&5
13540 cat conftest.$ac_ext >&5
13542 rm -rf conftest* conftst*
13544 # Do not use the global_symbol_pipe unless it works.
13545 if test "$pipe_works" = yes; then
13546 break
13547 else
13548 lt_cv_sys_global_symbol_pipe=
13550 done
13554 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13555 lt_cv_sys_global_symbol_to_cdecl=
13557 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13559 $as_echo "failed" >&6; }
13560 else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13562 $as_echo "ok" >&6; }
13586 # Check whether --enable-libtool-lock was given.
13587 if test "${enable_libtool_lock+set}" = set; then :
13588 enableval=$enable_libtool_lock;
13591 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13593 # Some flags need to be propagated to the compiler or linker for good
13594 # libtool support.
13595 case $host in
13596 ia64-*-hpux*)
13597 # Find out which ABI we are using.
13598 echo 'int i;' > conftest.$ac_ext
13599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13600 (eval $ac_compile) 2>&5
13601 ac_status=$?
13602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13603 test $ac_status = 0; }; then
13604 case `/usr/bin/file conftest.$ac_objext` in
13605 *ELF-32*)
13606 HPUX_IA64_MODE="32"
13608 *ELF-64*)
13609 HPUX_IA64_MODE="64"
13611 esac
13613 rm -rf conftest*
13615 *-*-irix6*)
13616 # Find out which ABI we are using.
13617 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13619 (eval $ac_compile) 2>&5
13620 ac_status=$?
13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13622 test $ac_status = 0; }; then
13623 if test "$lt_cv_prog_gnu_ld" = yes; then
13624 case `/usr/bin/file conftest.$ac_objext` in
13625 *32-bit*)
13626 LD="${LD-ld} -melf32bsmip"
13628 *N32*)
13629 LD="${LD-ld} -melf32bmipn32"
13631 *64-bit*)
13632 LD="${LD-ld} -melf64bmip"
13634 esac
13635 else
13636 case `/usr/bin/file conftest.$ac_objext` in
13637 *32-bit*)
13638 LD="${LD-ld} -32"
13640 *N32*)
13641 LD="${LD-ld} -n32"
13643 *64-bit*)
13644 LD="${LD-ld} -64"
13646 esac
13649 rm -rf conftest*
13652 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13653 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13654 # Find out which ABI we are using.
13655 echo 'int i;' > conftest.$ac_ext
13656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13657 (eval $ac_compile) 2>&5
13658 ac_status=$?
13659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13660 test $ac_status = 0; }; then
13661 case `/usr/bin/file conftest.o` in
13662 *32-bit*)
13663 case $host in
13664 x86_64-*kfreebsd*-gnu)
13665 LD="${LD-ld} -m elf_i386_fbsd"
13667 x86_64-*linux*)
13668 case `/usr/bin/file conftest.o` in
13669 *x86-64*)
13670 LD="${LD-ld} -m elf32_x86_64"
13673 LD="${LD-ld} -m elf_i386"
13675 esac
13677 powerpc64le-*linux*)
13678 LD="${LD-ld} -m elf32lppclinux"
13680 powerpc64-*linux*)
13681 LD="${LD-ld} -m elf32ppclinux"
13683 s390x-*linux*)
13684 LD="${LD-ld} -m elf_s390"
13686 sparc64-*linux*)
13687 LD="${LD-ld} -m elf32_sparc"
13689 esac
13691 *64-bit*)
13692 case $host in
13693 x86_64-*kfreebsd*-gnu)
13694 LD="${LD-ld} -m elf_x86_64_fbsd"
13696 x86_64-*linux*)
13697 LD="${LD-ld} -m elf_x86_64"
13699 powerpcle-*linux*)
13700 LD="${LD-ld} -m elf64lppc"
13702 powerpc-*linux*)
13703 LD="${LD-ld} -m elf64ppc"
13705 s390*-*linux*|s390*-*tpf*)
13706 LD="${LD-ld} -m elf64_s390"
13708 sparc*-*linux*)
13709 LD="${LD-ld} -m elf64_sparc"
13711 esac
13713 esac
13715 rm -rf conftest*
13718 *-*-sco3.2v5*)
13719 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13720 SAVE_CFLAGS="$CFLAGS"
13721 CFLAGS="$CFLAGS -belf"
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13723 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13724 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
13726 else
13727 ac_ext=c
13728 ac_cpp='$CPP $CPPFLAGS'
13729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h. */
13737 main ()
13741 return 0;
13743 _ACEOF
13744 if ac_fn_c_try_link "$LINENO"; then :
13745 lt_cv_cc_needs_belf=yes
13746 else
13747 lt_cv_cc_needs_belf=no
13749 rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751 ac_ext=c
13752 ac_cpp='$CPP $CPPFLAGS'
13753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13759 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13760 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13761 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13762 CFLAGS="$SAVE_CFLAGS"
13765 sparc*-*solaris*)
13766 # Find out which ABI we are using.
13767 echo 'int i;' > conftest.$ac_ext
13768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13769 (eval $ac_compile) 2>&5
13770 ac_status=$?
13771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13772 test $ac_status = 0; }; then
13773 case `/usr/bin/file conftest.o` in
13774 *64-bit*)
13775 case $lt_cv_prog_gnu_ld in
13776 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13778 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13779 LD="${LD-ld} -64"
13782 esac
13784 esac
13786 rm -rf conftest*
13788 esac
13790 need_locks="$enable_libtool_lock"
13793 case $host_os in
13794 rhapsody* | darwin*)
13795 if test -n "$ac_tool_prefix"; then
13796 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13797 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13799 $as_echo_n "checking for $ac_word... " >&6; }
13800 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13801 $as_echo_n "(cached) " >&6
13802 else
13803 if test -n "$DSYMUTIL"; then
13804 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13805 else
13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807 for as_dir in $PATH
13809 IFS=$as_save_IFS
13810 test -z "$as_dir" && as_dir=.
13811 for ac_exec_ext in '' $ac_executable_extensions; do
13812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13813 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13815 break 2
13817 done
13818 done
13819 IFS=$as_save_IFS
13823 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13824 if test -n "$DSYMUTIL"; then
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13826 $as_echo "$DSYMUTIL" >&6; }
13827 else
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13834 if test -z "$ac_cv_prog_DSYMUTIL"; then
13835 ac_ct_DSYMUTIL=$DSYMUTIL
13836 # Extract the first word of "dsymutil", so it can be a program name with args.
13837 set dummy dsymutil; ac_word=$2
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13839 $as_echo_n "checking for $ac_word... " >&6; }
13840 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 if test -n "$ac_ct_DSYMUTIL"; then
13844 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13845 else
13846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13849 IFS=$as_save_IFS
13850 test -z "$as_dir" && as_dir=.
13851 for ac_exec_ext in '' $ac_executable_extensions; do
13852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13853 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13855 break 2
13857 done
13858 done
13859 IFS=$as_save_IFS
13863 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13864 if test -n "$ac_ct_DSYMUTIL"; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13866 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13867 else
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13872 if test "x$ac_ct_DSYMUTIL" = x; then
13873 DSYMUTIL=":"
13874 else
13875 case $cross_compiling:$ac_tool_warned in
13876 yes:)
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13879 ac_tool_warned=yes ;;
13880 esac
13881 DSYMUTIL=$ac_ct_DSYMUTIL
13883 else
13884 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13887 if test -n "$ac_tool_prefix"; then
13888 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13889 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13891 $as_echo_n "checking for $ac_word... " >&6; }
13892 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13894 else
13895 if test -n "$NMEDIT"; then
13896 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13897 else
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13901 IFS=$as_save_IFS
13902 test -z "$as_dir" && as_dir=.
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13905 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13907 break 2
13909 done
13910 done
13911 IFS=$as_save_IFS
13915 NMEDIT=$ac_cv_prog_NMEDIT
13916 if test -n "$NMEDIT"; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13918 $as_echo "$NMEDIT" >&6; }
13919 else
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921 $as_echo "no" >&6; }
13926 if test -z "$ac_cv_prog_NMEDIT"; then
13927 ac_ct_NMEDIT=$NMEDIT
13928 # Extract the first word of "nmedit", so it can be a program name with args.
13929 set dummy nmedit; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13933 $as_echo_n "(cached) " >&6
13934 else
13935 if test -n "$ac_ct_NMEDIT"; then
13936 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13937 else
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13945 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13949 done
13950 done
13951 IFS=$as_save_IFS
13955 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13956 if test -n "$ac_ct_NMEDIT"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13958 $as_echo "$ac_ct_NMEDIT" >&6; }
13959 else
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13964 if test "x$ac_ct_NMEDIT" = x; then
13965 NMEDIT=":"
13966 else
13967 case $cross_compiling:$ac_tool_warned in
13968 yes:)
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13971 ac_tool_warned=yes ;;
13972 esac
13973 NMEDIT=$ac_ct_NMEDIT
13975 else
13976 NMEDIT="$ac_cv_prog_NMEDIT"
13979 if test -n "$ac_tool_prefix"; then
13980 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13981 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13983 $as_echo_n "checking for $ac_word... " >&6; }
13984 if test "${ac_cv_prog_LIPO+set}" = set; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 if test -n "$LIPO"; then
13988 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13989 else
13990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991 for as_dir in $PATH
13993 IFS=$as_save_IFS
13994 test -z "$as_dir" && as_dir=.
13995 for ac_exec_ext in '' $ac_executable_extensions; do
13996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13997 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 break 2
14001 done
14002 done
14003 IFS=$as_save_IFS
14007 LIPO=$ac_cv_prog_LIPO
14008 if test -n "$LIPO"; then
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14010 $as_echo "$LIPO" >&6; }
14011 else
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14018 if test -z "$ac_cv_prog_LIPO"; then
14019 ac_ct_LIPO=$LIPO
14020 # Extract the first word of "lipo", so it can be a program name with args.
14021 set dummy lipo; ac_word=$2
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14023 $as_echo_n "checking for $ac_word... " >&6; }
14024 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 if test -n "$ac_ct_LIPO"; then
14028 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14029 else
14030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031 for as_dir in $PATH
14033 IFS=$as_save_IFS
14034 test -z "$as_dir" && as_dir=.
14035 for ac_exec_ext in '' $ac_executable_extensions; do
14036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14037 ac_cv_prog_ac_ct_LIPO="lipo"
14038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14039 break 2
14041 done
14042 done
14043 IFS=$as_save_IFS
14047 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14048 if test -n "$ac_ct_LIPO"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14050 $as_echo "$ac_ct_LIPO" >&6; }
14051 else
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14056 if test "x$ac_ct_LIPO" = x; then
14057 LIPO=":"
14058 else
14059 case $cross_compiling:$ac_tool_warned in
14060 yes:)
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14063 ac_tool_warned=yes ;;
14064 esac
14065 LIPO=$ac_ct_LIPO
14067 else
14068 LIPO="$ac_cv_prog_LIPO"
14071 if test -n "$ac_tool_prefix"; then
14072 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14073 set dummy ${ac_tool_prefix}otool; ac_word=$2
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14075 $as_echo_n "checking for $ac_word... " >&6; }
14076 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 if test -n "$OTOOL"; then
14080 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14081 else
14082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14083 for as_dir in $PATH
14085 IFS=$as_save_IFS
14086 test -z "$as_dir" && as_dir=.
14087 for ac_exec_ext in '' $ac_executable_extensions; do
14088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14089 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14091 break 2
14093 done
14094 done
14095 IFS=$as_save_IFS
14099 OTOOL=$ac_cv_prog_OTOOL
14100 if test -n "$OTOOL"; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14102 $as_echo "$OTOOL" >&6; }
14103 else
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105 $as_echo "no" >&6; }
14110 if test -z "$ac_cv_prog_OTOOL"; then
14111 ac_ct_OTOOL=$OTOOL
14112 # Extract the first word of "otool", so it can be a program name with args.
14113 set dummy otool; ac_word=$2
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14115 $as_echo_n "checking for $ac_word... " >&6; }
14116 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14117 $as_echo_n "(cached) " >&6
14118 else
14119 if test -n "$ac_ct_OTOOL"; then
14120 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14121 else
14122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14123 for as_dir in $PATH
14125 IFS=$as_save_IFS
14126 test -z "$as_dir" && as_dir=.
14127 for ac_exec_ext in '' $ac_executable_extensions; do
14128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14129 ac_cv_prog_ac_ct_OTOOL="otool"
14130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14131 break 2
14133 done
14134 done
14135 IFS=$as_save_IFS
14139 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14140 if test -n "$ac_ct_OTOOL"; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14142 $as_echo "$ac_ct_OTOOL" >&6; }
14143 else
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14145 $as_echo "no" >&6; }
14148 if test "x$ac_ct_OTOOL" = x; then
14149 OTOOL=":"
14150 else
14151 case $cross_compiling:$ac_tool_warned in
14152 yes:)
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14155 ac_tool_warned=yes ;;
14156 esac
14157 OTOOL=$ac_ct_OTOOL
14159 else
14160 OTOOL="$ac_cv_prog_OTOOL"
14163 if test -n "$ac_tool_prefix"; then
14164 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14165 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14167 $as_echo_n "checking for $ac_word... " >&6; }
14168 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 if test -n "$OTOOL64"; then
14172 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14173 else
14174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14175 for as_dir in $PATH
14177 IFS=$as_save_IFS
14178 test -z "$as_dir" && as_dir=.
14179 for ac_exec_ext in '' $ac_executable_extensions; do
14180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14181 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14183 break 2
14185 done
14186 done
14187 IFS=$as_save_IFS
14191 OTOOL64=$ac_cv_prog_OTOOL64
14192 if test -n "$OTOOL64"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14194 $as_echo "$OTOOL64" >&6; }
14195 else
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197 $as_echo "no" >&6; }
14202 if test -z "$ac_cv_prog_OTOOL64"; then
14203 ac_ct_OTOOL64=$OTOOL64
14204 # Extract the first word of "otool64", so it can be a program name with args.
14205 set dummy otool64; ac_word=$2
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14207 $as_echo_n "checking for $ac_word... " >&6; }
14208 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14209 $as_echo_n "(cached) " >&6
14210 else
14211 if test -n "$ac_ct_OTOOL64"; then
14212 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14213 else
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14217 IFS=$as_save_IFS
14218 test -z "$as_dir" && as_dir=.
14219 for ac_exec_ext in '' $ac_executable_extensions; do
14220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14221 ac_cv_prog_ac_ct_OTOOL64="otool64"
14222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14223 break 2
14225 done
14226 done
14227 IFS=$as_save_IFS
14231 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14232 if test -n "$ac_ct_OTOOL64"; then
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14234 $as_echo "$ac_ct_OTOOL64" >&6; }
14235 else
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14237 $as_echo "no" >&6; }
14240 if test "x$ac_ct_OTOOL64" = x; then
14241 OTOOL64=":"
14242 else
14243 case $cross_compiling:$ac_tool_warned in
14244 yes:)
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14247 ac_tool_warned=yes ;;
14248 esac
14249 OTOOL64=$ac_ct_OTOOL64
14251 else
14252 OTOOL64="$ac_cv_prog_OTOOL64"
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14282 $as_echo_n "checking for -single_module linker flag... " >&6; }
14283 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 lt_cv_apple_cc_single_mod=no
14287 if test -z "${LT_MULTI_MODULE}"; then
14288 # By default we will add the -single_module flag. You can override
14289 # by either setting the environment variable LT_MULTI_MODULE
14290 # non-empty at configure time, or by adding -multi_module to the
14291 # link flags.
14292 rm -rf libconftest.dylib*
14293 echo "int foo(void){return 1;}" > conftest.c
14294 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14295 -dynamiclib -Wl,-single_module conftest.c" >&5
14296 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14297 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14298 _lt_result=$?
14299 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14300 lt_cv_apple_cc_single_mod=yes
14301 else
14302 cat conftest.err >&5
14304 rm -rf libconftest.dylib*
14305 rm -f conftest.*
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14309 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14311 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14312 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14313 $as_echo_n "(cached) " >&6
14314 else
14315 lt_cv_ld_exported_symbols_list=no
14316 save_LDFLAGS=$LDFLAGS
14317 echo "_main" > conftest.sym
14318 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14323 main ()
14327 return 0;
14329 _ACEOF
14330 if ac_fn_c_try_link "$LINENO"; then :
14331 lt_cv_ld_exported_symbols_list=yes
14332 else
14333 lt_cv_ld_exported_symbols_list=no
14335 rm -f core conftest.err conftest.$ac_objext \
14336 conftest$ac_exeext conftest.$ac_ext
14337 LDFLAGS="$save_LDFLAGS"
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14341 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14343 $as_echo_n "checking for -force_load linker flag... " >&6; }
14344 if test "${lt_cv_ld_force_load+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 lt_cv_ld_force_load=no
14348 cat > conftest.c << _LT_EOF
14349 int forced_loaded() { return 2;}
14350 _LT_EOF
14351 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14352 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14353 echo "$AR cru libconftest.a conftest.o" >&5
14354 $AR cru libconftest.a conftest.o 2>&5
14355 cat > conftest.c << _LT_EOF
14356 int main() { return 0;}
14357 _LT_EOF
14358 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14359 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14360 _lt_result=$?
14361 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14362 lt_cv_ld_force_load=yes
14363 else
14364 cat conftest.err >&5
14366 rm -f conftest.err libconftest.a conftest conftest.c
14367 rm -rf conftest.dSYM
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14371 $as_echo "$lt_cv_ld_force_load" >&6; }
14372 case $host_os in
14373 rhapsody* | darwin1.[012])
14374 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14375 darwin1.*)
14376 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14377 darwin*) # darwin 5.x on
14378 # if running on 10.5 or later, the deployment target defaults
14379 # to the OS version, if on x86, and 10.4, the deployment
14380 # target defaults to 10.4. Don't you love it?
14381 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14382 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14383 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14384 10.[012]*)
14385 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14386 10.*)
14387 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14388 esac
14390 esac
14391 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14392 _lt_dar_single_mod='$single_module'
14394 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14395 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14396 else
14397 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14399 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14400 _lt_dsymutil='~$DSYMUTIL $lib || :'
14401 else
14402 _lt_dsymutil=
14405 esac
14407 for ac_header in dlfcn.h
14408 do :
14409 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14410 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14411 cat >>confdefs.h <<_ACEOF
14412 #define HAVE_DLFCN_H 1
14413 _ACEOF
14416 done
14422 # Set options
14426 enable_dlopen=no
14429 enable_win32_dll=no
14432 # Check whether --enable-shared was given.
14433 if test "${enable_shared+set}" = set; then :
14434 enableval=$enable_shared; p=${PACKAGE-default}
14435 case $enableval in
14436 yes) enable_shared=yes ;;
14437 no) enable_shared=no ;;
14439 enable_shared=no
14440 # Look at the argument we got. We use all the common list separators.
14441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14442 for pkg in $enableval; do
14443 IFS="$lt_save_ifs"
14444 if test "X$pkg" = "X$p"; then
14445 enable_shared=yes
14447 done
14448 IFS="$lt_save_ifs"
14450 esac
14451 else
14452 enable_shared=yes
14463 # Check whether --enable-static was given.
14464 if test "${enable_static+set}" = set; then :
14465 enableval=$enable_static; p=${PACKAGE-default}
14466 case $enableval in
14467 yes) enable_static=yes ;;
14468 no) enable_static=no ;;
14470 enable_static=no
14471 # Look at the argument we got. We use all the common list separators.
14472 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14473 for pkg in $enableval; do
14474 IFS="$lt_save_ifs"
14475 if test "X$pkg" = "X$p"; then
14476 enable_static=yes
14478 done
14479 IFS="$lt_save_ifs"
14481 esac
14482 else
14483 enable_static=yes
14495 # Check whether --with-pic was given.
14496 if test "${with_pic+set}" = set; then :
14497 withval=$with_pic; pic_mode="$withval"
14498 else
14499 pic_mode=default
14503 test -z "$pic_mode" && pic_mode=default
14511 # Check whether --enable-fast-install was given.
14512 if test "${enable_fast_install+set}" = set; then :
14513 enableval=$enable_fast_install; p=${PACKAGE-default}
14514 case $enableval in
14515 yes) enable_fast_install=yes ;;
14516 no) enable_fast_install=no ;;
14518 enable_fast_install=no
14519 # Look at the argument we got. We use all the common list separators.
14520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14521 for pkg in $enableval; do
14522 IFS="$lt_save_ifs"
14523 if test "X$pkg" = "X$p"; then
14524 enable_fast_install=yes
14526 done
14527 IFS="$lt_save_ifs"
14529 esac
14530 else
14531 enable_fast_install=yes
14544 # This can be used to rebuild libtool when needed
14545 LIBTOOL_DEPS="$ltmain"
14547 # Always use our own libtool.
14548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14575 test -z "$LN_S" && LN_S="ln -s"
14590 if test -n "${ZSH_VERSION+set}" ; then
14591 setopt NO_GLOB_SUBST
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14595 $as_echo_n "checking for objdir... " >&6; }
14596 if test "${lt_cv_objdir+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 rm -f .libs 2>/dev/null
14600 mkdir .libs 2>/dev/null
14601 if test -d .libs; then
14602 lt_cv_objdir=.libs
14603 else
14604 # MS-DOS does not allow filenames that begin with a dot.
14605 lt_cv_objdir=_libs
14607 rmdir .libs 2>/dev/null
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14610 $as_echo "$lt_cv_objdir" >&6; }
14611 objdir=$lt_cv_objdir
14617 cat >>confdefs.h <<_ACEOF
14618 #define LT_OBJDIR "$lt_cv_objdir/"
14619 _ACEOF
14624 case $host_os in
14625 aix3*)
14626 # AIX sometimes has problems with the GCC collect2 program. For some
14627 # reason, if we set the COLLECT_NAMES environment variable, the problems
14628 # vanish in a puff of smoke.
14629 if test "X${COLLECT_NAMES+set}" != Xset; then
14630 COLLECT_NAMES=
14631 export COLLECT_NAMES
14634 esac
14636 # Global variables:
14637 ofile=libtool
14638 can_build_shared=yes
14640 # All known linkers require a `.a' archive for static linking (except MSVC,
14641 # which needs '.lib').
14642 libext=a
14644 with_gnu_ld="$lt_cv_prog_gnu_ld"
14646 old_CC="$CC"
14647 old_CFLAGS="$CFLAGS"
14649 # Set sane defaults for various variables
14650 test -z "$CC" && CC=cc
14651 test -z "$LTCC" && LTCC=$CC
14652 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14653 test -z "$LD" && LD=ld
14654 test -z "$ac_objext" && ac_objext=o
14656 for cc_temp in $compiler""; do
14657 case $cc_temp in
14658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14660 \-*) ;;
14661 *) break;;
14662 esac
14663 done
14664 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14667 # Only perform the check for file, if the check method requires it
14668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14669 case $deplibs_check_method in
14670 file_magic*)
14671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14673 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14674 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 case $MAGIC_CMD in
14678 [\\/*] | ?:[\\/]*)
14679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14682 lt_save_MAGIC_CMD="$MAGIC_CMD"
14683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14685 for ac_dir in $ac_dummy; do
14686 IFS="$lt_save_ifs"
14687 test -z "$ac_dir" && ac_dir=.
14688 if test -f $ac_dir/${ac_tool_prefix}file; then
14689 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14690 if test -n "$file_magic_test_file"; then
14691 case $deplibs_check_method in
14692 "file_magic "*)
14693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14696 $EGREP "$file_magic_regex" > /dev/null; then
14698 else
14699 cat <<_LT_EOF 1>&2
14701 *** Warning: the command libtool uses to detect shared libraries,
14702 *** $file_magic_cmd, produces output that libtool cannot recognize.
14703 *** The result is that libtool may fail to recognize shared libraries
14704 *** as such. This will affect the creation of libtool libraries that
14705 *** depend on shared libraries, but programs linked with such libtool
14706 *** libraries will work regardless of this problem. Nevertheless, you
14707 *** may want to report the problem to your system manager and/or to
14708 *** bug-libtool@gnu.org
14710 _LT_EOF
14711 fi ;;
14712 esac
14714 break
14716 done
14717 IFS="$lt_save_ifs"
14718 MAGIC_CMD="$lt_save_MAGIC_CMD"
14720 esac
14723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14724 if test -n "$MAGIC_CMD"; then
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14726 $as_echo "$MAGIC_CMD" >&6; }
14727 else
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14729 $as_echo "no" >&6; }
14736 if test -z "$lt_cv_path_MAGIC_CMD"; then
14737 if test -n "$ac_tool_prefix"; then
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14739 $as_echo_n "checking for file... " >&6; }
14740 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 case $MAGIC_CMD in
14744 [\\/*] | ?:[\\/]*)
14745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14748 lt_save_MAGIC_CMD="$MAGIC_CMD"
14749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14751 for ac_dir in $ac_dummy; do
14752 IFS="$lt_save_ifs"
14753 test -z "$ac_dir" && ac_dir=.
14754 if test -f $ac_dir/file; then
14755 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14756 if test -n "$file_magic_test_file"; then
14757 case $deplibs_check_method in
14758 "file_magic "*)
14759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14762 $EGREP "$file_magic_regex" > /dev/null; then
14764 else
14765 cat <<_LT_EOF 1>&2
14767 *** Warning: the command libtool uses to detect shared libraries,
14768 *** $file_magic_cmd, produces output that libtool cannot recognize.
14769 *** The result is that libtool may fail to recognize shared libraries
14770 *** as such. This will affect the creation of libtool libraries that
14771 *** depend on shared libraries, but programs linked with such libtool
14772 *** libraries will work regardless of this problem. Nevertheless, you
14773 *** may want to report the problem to your system manager and/or to
14774 *** bug-libtool@gnu.org
14776 _LT_EOF
14777 fi ;;
14778 esac
14780 break
14782 done
14783 IFS="$lt_save_ifs"
14784 MAGIC_CMD="$lt_save_MAGIC_CMD"
14786 esac
14789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14790 if test -n "$MAGIC_CMD"; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14792 $as_echo "$MAGIC_CMD" >&6; }
14793 else
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14795 $as_echo "no" >&6; }
14799 else
14800 MAGIC_CMD=:
14806 esac
14808 # Use C for the default configuration in the libtool script
14810 lt_save_CC="$CC"
14811 ac_ext=c
14812 ac_cpp='$CPP $CPPFLAGS'
14813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14818 # Source file extension for C test sources.
14819 ac_ext=c
14821 # Object file extension for compiled C test sources.
14822 objext=o
14823 objext=$objext
14825 # Code to be used in simple compile tests
14826 lt_simple_compile_test_code="int some_variable = 0;"
14828 # Code to be used in simple link tests
14829 lt_simple_link_test_code='int main(){return(0);}'
14837 # If no C compiler was specified, use CC.
14838 LTCC=${LTCC-"$CC"}
14840 # If no C compiler flags were specified, use CFLAGS.
14841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14843 # Allow CC to be a program name with arguments.
14844 compiler=$CC
14846 # Save the default compiler, since it gets overwritten when the other
14847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14848 compiler_DEFAULT=$CC
14850 # save warnings/boilerplate of simple test code
14851 ac_outfile=conftest.$ac_objext
14852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14854 _lt_compiler_boilerplate=`cat conftest.err`
14855 $RM conftest*
14857 ac_outfile=conftest.$ac_objext
14858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14860 _lt_linker_boilerplate=`cat conftest.err`
14861 $RM -r conftest*
14864 ## CAVEAT EMPTOR:
14865 ## There is no encapsulation within the following macros, do not change
14866 ## the running order or otherwise move them around unless you know exactly
14867 ## what you are doing...
14868 if test -n "$compiler"; then
14870 lt_prog_compiler_no_builtin_flag=
14872 if test "$GCC" = yes; then
14873 case $cc_basename in
14874 nvcc*)
14875 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14877 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14878 esac
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14881 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14882 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14883 $as_echo_n "(cached) " >&6
14884 else
14885 lt_cv_prog_compiler_rtti_exceptions=no
14886 ac_outfile=conftest.$ac_objext
14887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14888 lt_compiler_flag="-fno-rtti -fno-exceptions"
14889 # Insert the option either (1) after the last *FLAGS variable, or
14890 # (2) before a word containing "conftest.", or (3) at the end.
14891 # Note that $ac_compile itself does not contain backslashes and begins
14892 # with a dollar sign (not a hyphen), so the echo should work correctly.
14893 # The option is referenced via a variable to avoid confusing sed.
14894 lt_compile=`echo "$ac_compile" | $SED \
14895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14897 -e 's:$: $lt_compiler_flag:'`
14898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14899 (eval "$lt_compile" 2>conftest.err)
14900 ac_status=$?
14901 cat conftest.err >&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 if (exit $ac_status) && test -s "$ac_outfile"; then
14904 # The compiler can only warn and ignore the option if not recognized
14905 # So say no if there are warnings other than the usual output.
14906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14909 lt_cv_prog_compiler_rtti_exceptions=yes
14912 $RM conftest*
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14916 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14919 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14920 else
14931 lt_prog_compiler_wl=
14932 lt_prog_compiler_pic=
14933 lt_prog_compiler_static=
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14936 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14938 if test "$GCC" = yes; then
14939 lt_prog_compiler_wl='-Wl,'
14940 lt_prog_compiler_static='-static'
14942 case $host_os in
14943 aix*)
14944 # All AIX code is PIC.
14945 if test "$host_cpu" = ia64; then
14946 # AIX 5 now supports IA64 processor
14947 lt_prog_compiler_static='-Bstatic'
14949 lt_prog_compiler_pic='-fPIC'
14952 amigaos*)
14953 case $host_cpu in
14954 powerpc)
14955 # see comment about AmigaOS4 .so support
14956 lt_prog_compiler_pic='-fPIC'
14958 m68k)
14959 # FIXME: we need at least 68020 code to build shared libraries, but
14960 # adding the `-m68020' flag to GCC prevents building anything better,
14961 # like `-m68040'.
14962 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14964 esac
14967 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14968 # PIC is the default for these OSes.
14971 mingw* | cygwin* | pw32* | os2* | cegcc*)
14972 # This hack is so that the source file can tell whether it is being
14973 # built for inclusion in a dll (and should export symbols for example).
14974 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14975 # (--disable-auto-import) libraries
14976 lt_prog_compiler_pic='-DDLL_EXPORT'
14979 darwin* | rhapsody*)
14980 # PIC is the default on this platform
14981 # Common symbols not allowed in MH_DYLIB files
14982 lt_prog_compiler_pic='-fno-common'
14985 haiku*)
14986 # PIC is the default for Haiku.
14987 # The "-static" flag exists, but is broken.
14988 lt_prog_compiler_static=
14991 hpux*)
14992 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14993 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14994 # sets the default TLS model and affects inlining.
14995 case $host_cpu in
14996 hppa*64*)
14997 # +Z the default
15000 lt_prog_compiler_pic='-fPIC'
15002 esac
15005 interix[3-9]*)
15006 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15007 # Instead, we relocate shared libraries at runtime.
15010 msdosdjgpp*)
15011 # Just because we use GCC doesn't mean we suddenly get shared libraries
15012 # on systems that don't support them.
15013 lt_prog_compiler_can_build_shared=no
15014 enable_shared=no
15017 *nto* | *qnx*)
15018 # QNX uses GNU C++, but need to define -shared option too, otherwise
15019 # it will coredump.
15020 lt_prog_compiler_pic='-fPIC -shared'
15023 sysv4*MP*)
15024 if test -d /usr/nec; then
15025 lt_prog_compiler_pic=-Kconform_pic
15030 lt_prog_compiler_pic='-fPIC'
15032 esac
15034 case $cc_basename in
15035 nvcc*) # Cuda Compiler Driver 2.2
15036 lt_prog_compiler_wl='-Xlinker '
15037 lt_prog_compiler_pic='-Xcompiler -fPIC'
15039 esac
15040 else
15041 # PORTME Check for flag to pass linker flags through the system compiler.
15042 case $host_os in
15043 aix*)
15044 lt_prog_compiler_wl='-Wl,'
15045 if test "$host_cpu" = ia64; then
15046 # AIX 5 now supports IA64 processor
15047 lt_prog_compiler_static='-Bstatic'
15048 else
15049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15053 mingw* | cygwin* | pw32* | os2* | cegcc*)
15054 # This hack is so that the source file can tell whether it is being
15055 # built for inclusion in a dll (and should export symbols for example).
15056 lt_prog_compiler_pic='-DDLL_EXPORT'
15059 hpux9* | hpux10* | hpux11*)
15060 lt_prog_compiler_wl='-Wl,'
15061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15062 # not for PA HP-UX.
15063 case $host_cpu in
15064 hppa*64*|ia64*)
15065 # +Z the default
15068 lt_prog_compiler_pic='+Z'
15070 esac
15071 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15072 lt_prog_compiler_static='${wl}-a ${wl}archive'
15075 irix5* | irix6* | nonstopux*)
15076 lt_prog_compiler_wl='-Wl,'
15077 # PIC (with -KPIC) is the default.
15078 lt_prog_compiler_static='-non_shared'
15081 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15082 case $cc_basename in
15083 # old Intel for x86_64 which still supported -KPIC.
15084 ecc*)
15085 lt_prog_compiler_wl='-Wl,'
15086 lt_prog_compiler_pic='-KPIC'
15087 lt_prog_compiler_static='-static'
15089 # icc used to be incompatible with GCC.
15090 # ICC 10 doesn't accept -KPIC any more.
15091 icc* | ifort*)
15092 lt_prog_compiler_wl='-Wl,'
15093 lt_prog_compiler_pic='-fPIC'
15094 lt_prog_compiler_static='-static'
15096 # Lahey Fortran 8.1.
15097 lf95*)
15098 lt_prog_compiler_wl='-Wl,'
15099 lt_prog_compiler_pic='--shared'
15100 lt_prog_compiler_static='--static'
15102 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15103 # Portland Group compilers (*not* the Pentium gcc compiler,
15104 # which looks to be a dead project)
15105 lt_prog_compiler_wl='-Wl,'
15106 lt_prog_compiler_pic='-fpic'
15107 lt_prog_compiler_static='-Bstatic'
15109 ccc*)
15110 lt_prog_compiler_wl='-Wl,'
15111 # All Alpha code is PIC.
15112 lt_prog_compiler_static='-non_shared'
15114 xl* | bgxl* | bgf* | mpixl*)
15115 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15116 lt_prog_compiler_wl='-Wl,'
15117 lt_prog_compiler_pic='-qpic'
15118 lt_prog_compiler_static='-qstaticlink'
15121 case `$CC -V 2>&1 | sed 5q` in
15122 *Sun\ F* | *Sun*Fortran*)
15123 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15124 lt_prog_compiler_pic='-KPIC'
15125 lt_prog_compiler_static='-Bstatic'
15126 lt_prog_compiler_wl=''
15128 *Sun\ C*)
15129 # Sun C 5.9
15130 lt_prog_compiler_pic='-KPIC'
15131 lt_prog_compiler_static='-Bstatic'
15132 lt_prog_compiler_wl='-Wl,'
15134 esac
15136 esac
15139 newsos6)
15140 lt_prog_compiler_pic='-KPIC'
15141 lt_prog_compiler_static='-Bstatic'
15144 *nto* | *qnx*)
15145 # QNX uses GNU C++, but need to define -shared option too, otherwise
15146 # it will coredump.
15147 lt_prog_compiler_pic='-fPIC -shared'
15150 osf3* | osf4* | osf5*)
15151 lt_prog_compiler_wl='-Wl,'
15152 # All OSF/1 code is PIC.
15153 lt_prog_compiler_static='-non_shared'
15156 rdos*)
15157 lt_prog_compiler_static='-non_shared'
15160 solaris*)
15161 lt_prog_compiler_pic='-KPIC'
15162 lt_prog_compiler_static='-Bstatic'
15163 case $cc_basename in
15164 f77* | f90* | f95*)
15165 lt_prog_compiler_wl='-Qoption ld ';;
15167 lt_prog_compiler_wl='-Wl,';;
15168 esac
15171 sunos4*)
15172 lt_prog_compiler_wl='-Qoption ld '
15173 lt_prog_compiler_pic='-PIC'
15174 lt_prog_compiler_static='-Bstatic'
15177 sysv4 | sysv4.2uw2* | sysv4.3*)
15178 lt_prog_compiler_wl='-Wl,'
15179 lt_prog_compiler_pic='-KPIC'
15180 lt_prog_compiler_static='-Bstatic'
15183 sysv4*MP*)
15184 if test -d /usr/nec ;then
15185 lt_prog_compiler_pic='-Kconform_pic'
15186 lt_prog_compiler_static='-Bstatic'
15190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15191 lt_prog_compiler_wl='-Wl,'
15192 lt_prog_compiler_pic='-KPIC'
15193 lt_prog_compiler_static='-Bstatic'
15196 unicos*)
15197 lt_prog_compiler_wl='-Wl,'
15198 lt_prog_compiler_can_build_shared=no
15201 uts4*)
15202 lt_prog_compiler_pic='-pic'
15203 lt_prog_compiler_static='-Bstatic'
15207 lt_prog_compiler_can_build_shared=no
15209 esac
15212 case $host_os in
15213 # For platforms which do not support PIC, -DPIC is meaningless:
15214 *djgpp*)
15215 lt_prog_compiler_pic=
15218 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15220 esac
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15222 $as_echo "$lt_prog_compiler_pic" >&6; }
15230 # Check to make sure the PIC flag actually works.
15232 if test -n "$lt_prog_compiler_pic"; then
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15235 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 lt_cv_prog_compiler_pic_works=no
15239 ac_outfile=conftest.$ac_objext
15240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15242 # Insert the option either (1) after the last *FLAGS variable, or
15243 # (2) before a word containing "conftest.", or (3) at the end.
15244 # Note that $ac_compile itself does not contain backslashes and begins
15245 # with a dollar sign (not a hyphen), so the echo should work correctly.
15246 # The option is referenced via a variable to avoid confusing sed.
15247 lt_compile=`echo "$ac_compile" | $SED \
15248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15250 -e 's:$: $lt_compiler_flag:'`
15251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15252 (eval "$lt_compile" 2>conftest.err)
15253 ac_status=$?
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 if (exit $ac_status) && test -s "$ac_outfile"; then
15257 # The compiler can only warn and ignore the option if not recognized
15258 # So say no if there are warnings other than the usual output.
15259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15262 lt_cv_prog_compiler_pic_works=yes
15265 $RM conftest*
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15271 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15272 case $lt_prog_compiler_pic in
15273 "" | " "*) ;;
15274 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15275 esac
15276 else
15277 lt_prog_compiler_pic=
15278 lt_prog_compiler_can_build_shared=no
15289 # Check to make sure the static flag actually works.
15291 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15293 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15294 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15296 else
15297 lt_cv_prog_compiler_static_works=no
15298 save_LDFLAGS="$LDFLAGS"
15299 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15302 # The linker can only warn and ignore the option if not recognized
15303 # So say no if there are warnings
15304 if test -s conftest.err; then
15305 # Append any errors to the config.log.
15306 cat conftest.err 1>&5
15307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15309 if diff conftest.exp conftest.er2 >/dev/null; then
15310 lt_cv_prog_compiler_static_works=yes
15312 else
15313 lt_cv_prog_compiler_static_works=yes
15316 $RM -r conftest*
15317 LDFLAGS="$save_LDFLAGS"
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15321 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15323 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15325 else
15326 lt_prog_compiler_static=
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15336 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15337 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15338 $as_echo_n "(cached) " >&6
15339 else
15340 lt_cv_prog_compiler_c_o=no
15341 $RM -r conftest 2>/dev/null
15342 mkdir conftest
15343 cd conftest
15344 mkdir out
15345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15347 lt_compiler_flag="-o out/conftest2.$ac_objext"
15348 # Insert the option either (1) after the last *FLAGS variable, or
15349 # (2) before a word containing "conftest.", or (3) at the end.
15350 # Note that $ac_compile itself does not contain backslashes and begins
15351 # with a dollar sign (not a hyphen), so the echo should work correctly.
15352 lt_compile=`echo "$ac_compile" | $SED \
15353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15355 -e 's:$: $lt_compiler_flag:'`
15356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15357 (eval "$lt_compile" 2>out/conftest.err)
15358 ac_status=$?
15359 cat out/conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15362 then
15363 # The compiler can only warn and ignore the option if not recognized
15364 # So say no if there are warnings
15365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15368 lt_cv_prog_compiler_c_o=yes
15371 chmod u+w . 2>&5
15372 $RM conftest*
15373 # SGI C++ compiler will create directory out/ii_files/ for
15374 # template instantiation
15375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15376 $RM out/* && rmdir out
15377 cd ..
15378 $RM -r conftest
15379 $RM conftest*
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15393 $as_echo_n "(cached) " >&6
15394 else
15395 lt_cv_prog_compiler_c_o=no
15396 $RM -r conftest 2>/dev/null
15397 mkdir conftest
15398 cd conftest
15399 mkdir out
15400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15402 lt_compiler_flag="-o out/conftest2.$ac_objext"
15403 # Insert the option either (1) after the last *FLAGS variable, or
15404 # (2) before a word containing "conftest.", or (3) at the end.
15405 # Note that $ac_compile itself does not contain backslashes and begins
15406 # with a dollar sign (not a hyphen), so the echo should work correctly.
15407 lt_compile=`echo "$ac_compile" | $SED \
15408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15410 -e 's:$: $lt_compiler_flag:'`
15411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15412 (eval "$lt_compile" 2>out/conftest.err)
15413 ac_status=$?
15414 cat out/conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15417 then
15418 # The compiler can only warn and ignore the option if not recognized
15419 # So say no if there are warnings
15420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15423 lt_cv_prog_compiler_c_o=yes
15426 chmod u+w . 2>&5
15427 $RM conftest*
15428 # SGI C++ compiler will create directory out/ii_files/ for
15429 # template instantiation
15430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15431 $RM out/* && rmdir out
15432 cd ..
15433 $RM -r conftest
15434 $RM conftest*
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15443 hard_links="nottested"
15444 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15445 # do not overwrite the value of need_locks provided by the user
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15447 $as_echo_n "checking if we can lock with hard links... " >&6; }
15448 hard_links=yes
15449 $RM conftest*
15450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15451 touch conftest.a
15452 ln conftest.a conftest.b 2>&5 || hard_links=no
15453 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15455 $as_echo "$hard_links" >&6; }
15456 if test "$hard_links" = no; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15458 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15459 need_locks=warn
15461 else
15462 need_locks=no
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15473 runpath_var=
15474 allow_undefined_flag=
15475 always_export_symbols=no
15476 archive_cmds=
15477 archive_expsym_cmds=
15478 compiler_needs_object=no
15479 enable_shared_with_static_runtimes=no
15480 export_dynamic_flag_spec=
15481 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15482 hardcode_automatic=no
15483 hardcode_direct=no
15484 hardcode_direct_absolute=no
15485 hardcode_libdir_flag_spec=
15486 hardcode_libdir_flag_spec_ld=
15487 hardcode_libdir_separator=
15488 hardcode_minus_L=no
15489 hardcode_shlibpath_var=unsupported
15490 inherit_rpath=no
15491 link_all_deplibs=unknown
15492 module_cmds=
15493 module_expsym_cmds=
15494 old_archive_from_new_cmds=
15495 old_archive_from_expsyms_cmds=
15496 thread_safe_flag_spec=
15497 whole_archive_flag_spec=
15498 # include_expsyms should be a list of space-separated symbols to be *always*
15499 # included in the symbol list
15500 include_expsyms=
15501 # exclude_expsyms can be an extended regexp of symbols to exclude
15502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15504 # as well as any symbol that contains `d'.
15505 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15507 # platforms (ab)use it in PIC code, but their linkers get confused if
15508 # the symbol is explicitly referenced. Since portable code cannot
15509 # rely on this symbol name, it's probably fine to never include it in
15510 # preloaded symbol tables.
15511 # Exclude shared library initialization/finalization symbols.
15512 extract_expsyms_cmds=
15514 case $host_os in
15515 cygwin* | mingw* | pw32* | cegcc*)
15516 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15517 # When not using gcc, we currently assume that we are using
15518 # Microsoft Visual C++.
15519 if test "$GCC" != yes; then
15520 with_gnu_ld=no
15523 interix*)
15524 # we just hope/assume this is gcc and not c89 (= MSVC++)
15525 with_gnu_ld=yes
15527 openbsd*)
15528 with_gnu_ld=no
15530 esac
15532 ld_shlibs=yes
15534 # On some targets, GNU ld is compatible enough with the native linker
15535 # that we're better off using the native interface for both.
15536 lt_use_gnu_ld_interface=no
15537 if test "$with_gnu_ld" = yes; then
15538 case $host_os in
15539 aix*)
15540 # The AIX port of GNU ld has always aspired to compatibility
15541 # with the native linker. However, as the warning in the GNU ld
15542 # block says, versions before 2.19.5* couldn't really create working
15543 # shared libraries, regardless of the interface used.
15544 case `$LD -v 2>&1` in
15545 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15546 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15547 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15549 lt_use_gnu_ld_interface=yes
15551 esac
15554 lt_use_gnu_ld_interface=yes
15556 esac
15559 if test "$lt_use_gnu_ld_interface" = yes; then
15560 # If archive_cmds runs LD, not CC, wlarc should be empty
15561 wlarc='${wl}'
15563 # Set some defaults for GNU ld with shared library support. These
15564 # are reset later if shared libraries are not supported. Putting them
15565 # here allows them to be overridden if necessary.
15566 runpath_var=LD_RUN_PATH
15567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15568 export_dynamic_flag_spec='${wl}--export-dynamic'
15569 # ancient GNU ld didn't support --whole-archive et. al.
15570 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15571 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15572 else
15573 whole_archive_flag_spec=
15575 supports_anon_versioning=no
15576 case `$LD -v 2>&1` in
15577 *GNU\ gold*) supports_anon_versioning=yes ;;
15578 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15579 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15580 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15581 *\ 2.11.*) ;; # other 2.11 versions
15582 *) supports_anon_versioning=yes ;;
15583 esac
15585 # See if GNU ld supports shared libraries.
15586 case $host_os in
15587 aix[3-9]*)
15588 # On AIX/PPC, the GNU linker is very broken
15589 if test "$host_cpu" != ia64; then
15590 ld_shlibs=no
15591 cat <<_LT_EOF 1>&2
15593 *** Warning: the GNU linker, at least up to release 2.19, is reported
15594 *** to be unable to reliably create shared libraries on AIX.
15595 *** Therefore, libtool is disabling shared libraries support. If you
15596 *** really care for shared libraries, you may want to install binutils
15597 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15598 *** You will then need to restart the configuration process.
15600 _LT_EOF
15604 amigaos*)
15605 case $host_cpu in
15606 powerpc)
15607 # see comment about AmigaOS4 .so support
15608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15609 archive_expsym_cmds=''
15611 m68k)
15612 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)'
15613 hardcode_libdir_flag_spec='-L$libdir'
15614 hardcode_minus_L=yes
15616 esac
15619 beos*)
15620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15621 allow_undefined_flag=unsupported
15622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15623 # support --undefined. This deserves some investigation. FIXME
15624 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15625 else
15626 ld_shlibs=no
15630 cygwin* | mingw* | pw32* | cegcc*)
15631 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15632 # as there is no search path for DLLs.
15633 hardcode_libdir_flag_spec='-L$libdir'
15634 export_dynamic_flag_spec='${wl}--export-all-symbols'
15635 allow_undefined_flag=unsupported
15636 always_export_symbols=no
15637 enable_shared_with_static_runtimes=yes
15638 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15640 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15642 # If the export-symbols file already is a .def file (1st line
15643 # is EXPORTS), use it as is; otherwise, prepend...
15644 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15645 cp $export_symbols $output_objdir/$soname.def;
15646 else
15647 echo EXPORTS > $output_objdir/$soname.def;
15648 cat $export_symbols >> $output_objdir/$soname.def;
15650 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15651 else
15652 ld_shlibs=no
15656 haiku*)
15657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658 link_all_deplibs=yes
15661 interix[3-9]*)
15662 hardcode_direct=no
15663 hardcode_shlibpath_var=no
15664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15665 export_dynamic_flag_spec='${wl}-E'
15666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15667 # Instead, shared libraries are loaded at an image base (0x10000000 by
15668 # default) and relocated if they conflict, which is a slow very memory
15669 # consuming and fragmenting process. To avoid this, we pick a random,
15670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15671 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15673 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'
15676 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15677 tmp_diet=no
15678 if test "$host_os" = linux-dietlibc; then
15679 case $cc_basename in
15680 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15681 esac
15683 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15684 && test "$tmp_diet" = no
15685 then
15686 tmp_addflag=
15687 tmp_sharedflag='-shared'
15688 case $cc_basename,$host_cpu in
15689 pgcc*) # Portland Group C compiler
15690 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'
15691 tmp_addflag=' $pic_flag'
15693 pgf77* | pgf90* | pgf95* | pgfortran*)
15694 # Portland Group f77 and f90 compilers
15695 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'
15696 tmp_addflag=' $pic_flag -Mnomain' ;;
15697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15698 tmp_addflag=' -i_dynamic' ;;
15699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15700 tmp_addflag=' -i_dynamic -nofor_main' ;;
15701 ifc* | ifort*) # Intel Fortran compiler
15702 tmp_addflag=' -nofor_main' ;;
15703 lf95*) # Lahey Fortran 8.1
15704 whole_archive_flag_spec=
15705 tmp_sharedflag='--shared' ;;
15706 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15707 tmp_sharedflag='-qmkshrobj'
15708 tmp_addflag= ;;
15709 nvcc*) # Cuda Compiler Driver 2.2
15710 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'
15711 compiler_needs_object=yes
15713 esac
15714 case `$CC -V 2>&1 | sed 5q` in
15715 *Sun\ C*) # Sun C 5.9
15716 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'
15717 compiler_needs_object=yes
15718 tmp_sharedflag='-G' ;;
15719 *Sun\ F*) # Sun Fortran 8.3
15720 tmp_sharedflag='-G' ;;
15721 esac
15722 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15724 if test "x$supports_anon_versioning" = xyes; then
15725 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15727 echo "local: *; };" >> $output_objdir/$libname.ver~
15728 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15731 case $cc_basename in
15732 xlf* | bgf* | bgxlf* | mpixlf*)
15733 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15734 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15735 hardcode_libdir_flag_spec=
15736 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15737 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15738 if test "x$supports_anon_versioning" = xyes; then
15739 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15741 echo "local: *; };" >> $output_objdir/$libname.ver~
15742 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15745 esac
15746 else
15747 ld_shlibs=no
15751 netbsd*)
15752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15753 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15754 wlarc=
15755 else
15756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15761 solaris*)
15762 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15763 ld_shlibs=no
15764 cat <<_LT_EOF 1>&2
15766 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15767 *** create shared libraries on Solaris systems. Therefore, libtool
15768 *** is disabling shared libraries support. We urge you to upgrade GNU
15769 *** binutils to release 2.9.1 or newer. Another option is to modify
15770 *** your PATH or compiler configuration so that the native linker is
15771 *** used, and then restart.
15773 _LT_EOF
15774 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15775 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15776 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15777 else
15778 ld_shlibs=no
15782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15783 case `$LD -v 2>&1` in
15784 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15785 ld_shlibs=no
15786 cat <<_LT_EOF 1>&2
15788 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15789 *** reliably create shared libraries on SCO systems. Therefore, libtool
15790 *** is disabling shared libraries support. We urge you to upgrade GNU
15791 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15792 *** your PATH or compiler configuration so that the native linker is
15793 *** used, and then restart.
15795 _LT_EOF
15798 # For security reasons, it is highly recommended that you always
15799 # use absolute paths for naming shared libraries, and exclude the
15800 # DT_RUNPATH tag from executables and libraries. But doing so
15801 # requires that you compile everything twice, which is a pain.
15802 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15806 else
15807 ld_shlibs=no
15810 esac
15813 sunos4*)
15814 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15815 wlarc=
15816 hardcode_direct=yes
15817 hardcode_shlibpath_var=no
15821 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15823 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15824 else
15825 ld_shlibs=no
15828 esac
15830 if test "$ld_shlibs" = no; then
15831 runpath_var=
15832 hardcode_libdir_flag_spec=
15833 export_dynamic_flag_spec=
15834 whole_archive_flag_spec=
15836 else
15837 # PORTME fill in a description of your system's linker (not GNU ld)
15838 case $host_os in
15839 aix3*)
15840 allow_undefined_flag=unsupported
15841 always_export_symbols=yes
15842 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'
15843 # Note: this linker hardcodes the directories in LIBPATH if there
15844 # are no directories specified by -L.
15845 hardcode_minus_L=yes
15846 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15847 # Neither direct hardcoding nor static linking is supported with a
15848 # broken collect2.
15849 hardcode_direct=unsupported
15853 aix[4-9]*)
15854 if test "$host_cpu" = ia64; then
15855 # On IA64, the linker does run time linking by default, so we don't
15856 # have to do anything special.
15857 aix_use_runtimelinking=no
15858 exp_sym_flag='-Bexport'
15859 no_entry_flag=""
15860 else
15861 # If we're using GNU nm, then we don't want the "-C" option.
15862 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15863 # Also, AIX nm treats weak defined symbols like other global
15864 # defined symbols, whereas GNU nm marks them as "W".
15865 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15866 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'
15867 else
15868 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'
15870 aix_use_runtimelinking=no
15872 # Test if we are trying to use run time linking or normal
15873 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15874 # need to do runtime linking.
15875 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15876 for ld_flag in $LDFLAGS; do
15877 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15878 aix_use_runtimelinking=yes
15879 break
15881 done
15883 esac
15885 exp_sym_flag='-bexport'
15886 no_entry_flag='-bnoentry'
15889 # When large executables or shared objects are built, AIX ld can
15890 # have problems creating the table of contents. If linking a library
15891 # or program results in "error TOC overflow" add -mminimal-toc to
15892 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15893 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15895 archive_cmds=''
15896 hardcode_direct=yes
15897 hardcode_direct_absolute=yes
15898 hardcode_libdir_separator=':'
15899 link_all_deplibs=yes
15900 file_list_spec='${wl}-f,'
15902 if test "$GCC" = yes; then
15903 case $host_os in aix4.[012]|aix4.[012].*)
15904 # We only want to do this on AIX 4.2 and lower, the check
15905 # below for broken collect2 doesn't work under 4.3+
15906 collect2name=`${CC} -print-prog-name=collect2`
15907 if test -f "$collect2name" &&
15908 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15909 then
15910 # We have reworked collect2
15912 else
15913 # We have old collect2
15914 hardcode_direct=unsupported
15915 # It fails to find uninstalled libraries when the uninstalled
15916 # path is not listed in the libpath. Setting hardcode_minus_L
15917 # to unsupported forces relinking
15918 hardcode_minus_L=yes
15919 hardcode_libdir_flag_spec='-L$libdir'
15920 hardcode_libdir_separator=
15923 esac
15924 shared_flag='-shared'
15925 if test "$aix_use_runtimelinking" = yes; then
15926 shared_flag="$shared_flag "'${wl}-G'
15928 else
15929 # not using gcc
15930 if test "$host_cpu" = ia64; then
15931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15932 # chokes on -Wl,-G. The following line is correct:
15933 shared_flag='-G'
15934 else
15935 if test "$aix_use_runtimelinking" = yes; then
15936 shared_flag='${wl}-G'
15937 else
15938 shared_flag='${wl}-bM:SRE'
15943 export_dynamic_flag_spec='${wl}-bexpall'
15944 # It seems that -bexpall does not export symbols beginning with
15945 # underscore (_), so it is better to generate a list of symbols to export.
15946 always_export_symbols=yes
15947 if test "$aix_use_runtimelinking" = yes; then
15948 # Warning - without using the other runtime loading flags (-brtl),
15949 # -berok will link without error, but may produce a broken library.
15950 allow_undefined_flag='-berok'
15951 # Determine the default libpath from the value encoded in an
15952 # empty executable.
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15957 main ()
15961 return 0;
15963 _ACEOF
15964 if ac_fn_c_try_link "$LINENO"; then :
15966 lt_aix_libpath_sed='
15967 /Import File Strings/,/^$/ {
15968 /^0/ {
15969 s/^0 *\(.*\)$/\1/
15973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15974 # Check for a 64-bit object if we didn't find anything.
15975 if test -z "$aix_libpath"; then
15976 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15979 rm -f core conftest.err conftest.$ac_objext \
15980 conftest$ac_exeext conftest.$ac_ext
15981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15984 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"
15985 else
15986 if test "$host_cpu" = ia64; then
15987 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15988 allow_undefined_flag="-z nodefs"
15989 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"
15990 else
15991 # Determine the default libpath from the value encoded in an
15992 # empty executable.
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15997 main ()
16001 return 0;
16003 _ACEOF
16004 if ac_fn_c_try_link "$LINENO"; then :
16006 lt_aix_libpath_sed='
16007 /Import File Strings/,/^$/ {
16008 /^0/ {
16009 s/^0 *\(.*\)$/\1/
16013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16014 # Check for a 64-bit object if we didn't find anything.
16015 if test -z "$aix_libpath"; then
16016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16019 rm -f core conftest.err conftest.$ac_objext \
16020 conftest$ac_exeext conftest.$ac_ext
16021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16024 # Warning - without using the other run time loading flags,
16025 # -berok will link without error, but may produce a broken library.
16026 no_undefined_flag=' ${wl}-bernotok'
16027 allow_undefined_flag=' ${wl}-berok'
16028 if test "$with_gnu_ld" = yes; then
16029 # We only use this code for GNU lds that support --whole-archive.
16030 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16031 else
16032 # Exported symbols can be pulled into shared objects from archives
16033 whole_archive_flag_spec='$convenience'
16035 archive_cmds_need_lc=yes
16036 # This is similar to how AIX traditionally builds its shared libraries.
16037 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'
16042 amigaos*)
16043 case $host_cpu in
16044 powerpc)
16045 # see comment about AmigaOS4 .so support
16046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16047 archive_expsym_cmds=''
16049 m68k)
16050 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)'
16051 hardcode_libdir_flag_spec='-L$libdir'
16052 hardcode_minus_L=yes
16054 esac
16057 bsdi[45]*)
16058 export_dynamic_flag_spec=-rdynamic
16061 cygwin* | mingw* | pw32* | cegcc*)
16062 # When not using gcc, we currently assume that we are using
16063 # Microsoft Visual C++.
16064 # hardcode_libdir_flag_spec is actually meaningless, as there is
16065 # no search path for DLLs.
16066 hardcode_libdir_flag_spec=' '
16067 allow_undefined_flag=unsupported
16068 # Tell ltmain to make .lib files, not .a files.
16069 libext=lib
16070 # Tell ltmain to make .dll files, not .so files.
16071 shrext_cmds=".dll"
16072 # FIXME: Setting linknames here is a bad hack.
16073 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16074 # The linker will automatically build a .lib file if we build a DLL.
16075 old_archive_from_new_cmds='true'
16076 # FIXME: Should let the user specify the lib program.
16077 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16078 fix_srcfile_path='`cygpath -w "$srcfile"`'
16079 enable_shared_with_static_runtimes=yes
16082 darwin* | rhapsody*)
16085 archive_cmds_need_lc=no
16086 hardcode_direct=no
16087 hardcode_automatic=yes
16088 hardcode_shlibpath_var=unsupported
16089 if test "$lt_cv_ld_force_load" = "yes"; then
16090 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\"`'
16091 else
16092 whole_archive_flag_spec=''
16094 link_all_deplibs=yes
16095 allow_undefined_flag="$_lt_dar_allow_undefined"
16096 case $cc_basename in
16097 ifort*) _lt_dar_can_shared=yes ;;
16098 *) _lt_dar_can_shared=$GCC ;;
16099 esac
16100 if test "$_lt_dar_can_shared" = "yes"; then
16101 output_verbose_link_cmd=func_echo_all
16102 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16103 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16104 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}"
16105 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}"
16107 else
16108 ld_shlibs=no
16113 dgux*)
16114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 hardcode_libdir_flag_spec='-L$libdir'
16116 hardcode_shlibpath_var=no
16119 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16120 # support. Future versions do this automatically, but an explicit c++rt0.o
16121 # does not break anything, and helps significantly (at the cost of a little
16122 # extra space).
16123 freebsd2.2*)
16124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16125 hardcode_libdir_flag_spec='-R$libdir'
16126 hardcode_direct=yes
16127 hardcode_shlibpath_var=no
16130 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16131 freebsd2.*)
16132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16133 hardcode_direct=yes
16134 hardcode_minus_L=yes
16135 hardcode_shlibpath_var=no
16138 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16139 freebsd* | dragonfly*)
16140 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16141 hardcode_libdir_flag_spec='-R$libdir'
16142 hardcode_direct=yes
16143 hardcode_shlibpath_var=no
16146 hpux9*)
16147 if test "$GCC" = yes; then
16148 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'
16149 else
16150 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'
16152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16153 hardcode_libdir_separator=:
16154 hardcode_direct=yes
16156 # hardcode_minus_L: Not really in the search PATH,
16157 # but as the default location of the library.
16158 hardcode_minus_L=yes
16159 export_dynamic_flag_spec='${wl}-E'
16162 hpux10*)
16163 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16164 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16165 else
16166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16168 if test "$with_gnu_ld" = no; then
16169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16170 hardcode_libdir_flag_spec_ld='+b $libdir'
16171 hardcode_libdir_separator=:
16172 hardcode_direct=yes
16173 hardcode_direct_absolute=yes
16174 export_dynamic_flag_spec='${wl}-E'
16175 # hardcode_minus_L: Not really in the search PATH,
16176 # but as the default location of the library.
16177 hardcode_minus_L=yes
16181 hpux11*)
16182 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16183 case $host_cpu in
16184 hppa*64*)
16185 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16187 ia64*)
16188 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16191 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16193 esac
16194 else
16195 case $host_cpu in
16196 hppa*64*)
16197 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16199 ia64*)
16200 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16204 # Older versions of the 11.00 compiler do not understand -b yet
16205 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16207 $as_echo_n "checking if $CC understands -b... " >&6; }
16208 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16209 $as_echo_n "(cached) " >&6
16210 else
16211 lt_cv_prog_compiler__b=no
16212 save_LDFLAGS="$LDFLAGS"
16213 LDFLAGS="$LDFLAGS -b"
16214 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16216 # The linker can only warn and ignore the option if not recognized
16217 # So say no if there are warnings
16218 if test -s conftest.err; then
16219 # Append any errors to the config.log.
16220 cat conftest.err 1>&5
16221 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16223 if diff conftest.exp conftest.er2 >/dev/null; then
16224 lt_cv_prog_compiler__b=yes
16226 else
16227 lt_cv_prog_compiler__b=yes
16230 $RM -r conftest*
16231 LDFLAGS="$save_LDFLAGS"
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16235 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16237 if test x"$lt_cv_prog_compiler__b" = xyes; then
16238 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16239 else
16240 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16244 esac
16246 if test "$with_gnu_ld" = no; then
16247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16248 hardcode_libdir_separator=:
16250 case $host_cpu in
16251 hppa*64*|ia64*)
16252 hardcode_direct=no
16253 hardcode_shlibpath_var=no
16256 hardcode_direct=yes
16257 hardcode_direct_absolute=yes
16258 export_dynamic_flag_spec='${wl}-E'
16260 # hardcode_minus_L: Not really in the search PATH,
16261 # but as the default location of the library.
16262 hardcode_minus_L=yes
16264 esac
16268 irix5* | irix6* | nonstopux*)
16269 if test "$GCC" = yes; then
16270 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'
16271 # Try to use the -exported_symbol ld option, if it does not
16272 # work, assume that -exports_file does not work either and
16273 # implicitly export all symbols.
16274 save_LDFLAGS="$LDFLAGS"
16275 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277 /* end confdefs.h. */
16278 int foo(void) {}
16279 _ACEOF
16280 if ac_fn_c_try_link "$LINENO"; then :
16281 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'
16284 rm -f core conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
16286 LDFLAGS="$save_LDFLAGS"
16287 else
16288 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'
16289 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'
16291 archive_cmds_need_lc='no'
16292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16293 hardcode_libdir_separator=:
16294 inherit_rpath=yes
16295 link_all_deplibs=yes
16298 netbsd*)
16299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16301 else
16302 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16304 hardcode_libdir_flag_spec='-R$libdir'
16305 hardcode_direct=yes
16306 hardcode_shlibpath_var=no
16309 newsos6)
16310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16311 hardcode_direct=yes
16312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16313 hardcode_libdir_separator=:
16314 hardcode_shlibpath_var=no
16317 *nto* | *qnx*)
16320 openbsd*)
16321 if test -f /usr/libexec/ld.so; then
16322 hardcode_direct=yes
16323 hardcode_shlibpath_var=no
16324 hardcode_direct_absolute=yes
16325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16327 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16328 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16329 export_dynamic_flag_spec='${wl}-E'
16330 else
16331 case $host_os in
16332 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16334 hardcode_libdir_flag_spec='-R$libdir'
16337 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16338 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16340 esac
16342 else
16343 ld_shlibs=no
16347 os2*)
16348 hardcode_libdir_flag_spec='-L$libdir'
16349 hardcode_minus_L=yes
16350 allow_undefined_flag=unsupported
16351 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'
16352 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16355 osf3*)
16356 if test "$GCC" = yes; then
16357 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16358 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'
16359 else
16360 allow_undefined_flag=' -expect_unresolved \*'
16361 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'
16363 archive_cmds_need_lc='no'
16364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16365 hardcode_libdir_separator=:
16368 osf4* | osf5*) # as osf3* with the addition of -msym flag
16369 if test "$GCC" = yes; then
16370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16371 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'
16372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16373 else
16374 allow_undefined_flag=' -expect_unresolved \*'
16375 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'
16376 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~
16377 $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'
16379 # Both c and cxx compiler support -rpath directly
16380 hardcode_libdir_flag_spec='-rpath $libdir'
16382 archive_cmds_need_lc='no'
16383 hardcode_libdir_separator=:
16386 solaris*)
16387 no_undefined_flag=' -z defs'
16388 if test "$GCC" = yes; then
16389 wlarc='${wl}'
16390 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16392 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16393 else
16394 case `$CC -V 2>&1` in
16395 *"Compilers 5.0"*)
16396 wlarc=''
16397 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16399 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16402 wlarc='${wl}'
16403 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16405 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16407 esac
16409 hardcode_libdir_flag_spec='-R$libdir'
16410 hardcode_shlibpath_var=no
16411 case $host_os in
16412 solaris2.[0-5] | solaris2.[0-5].*) ;;
16414 # The compiler driver will combine and reorder linker options,
16415 # but understands `-z linker_flag'. GCC discards it without `$wl',
16416 # but is careful enough not to reorder.
16417 # Supported since Solaris 2.6 (maybe 2.5.1?)
16418 if test "$GCC" = yes; then
16419 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16420 else
16421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16424 esac
16425 link_all_deplibs=yes
16428 sunos4*)
16429 if test "x$host_vendor" = xsequent; then
16430 # Use $CC to link under sequent, because it throws in some extra .o
16431 # files that make .init and .fini sections work.
16432 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16433 else
16434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16436 hardcode_libdir_flag_spec='-L$libdir'
16437 hardcode_direct=yes
16438 hardcode_minus_L=yes
16439 hardcode_shlibpath_var=no
16442 sysv4)
16443 case $host_vendor in
16444 sni)
16445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16446 hardcode_direct=yes # is this really true???
16448 siemens)
16449 ## LD is ld it makes a PLAMLIB
16450 ## CC just makes a GrossModule.
16451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16452 reload_cmds='$CC -r -o $output$reload_objs'
16453 hardcode_direct=no
16455 motorola)
16456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16459 esac
16460 runpath_var='LD_RUN_PATH'
16461 hardcode_shlibpath_var=no
16464 sysv4.3*)
16465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_shlibpath_var=no
16467 export_dynamic_flag_spec='-Bexport'
16470 sysv4*MP*)
16471 if test -d /usr/nec; then
16472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16473 hardcode_shlibpath_var=no
16474 runpath_var=LD_RUN_PATH
16475 hardcode_runpath_var=yes
16476 ld_shlibs=yes
16480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16481 no_undefined_flag='${wl}-z,text'
16482 archive_cmds_need_lc=no
16483 hardcode_shlibpath_var=no
16484 runpath_var='LD_RUN_PATH'
16486 if test "$GCC" = yes; then
16487 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16489 else
16490 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16491 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16495 sysv5* | sco3.2v5* | sco5v6*)
16496 # Note: We can NOT use -z defs as we might desire, because we do not
16497 # link with -lc, and that would cause any symbols used from libc to
16498 # always be unresolved, which means just about no library would
16499 # ever link correctly. If we're not using GNU ld we use -z text
16500 # though, which does catch some bad symbols but isn't as heavy-handed
16501 # as -z defs.
16502 no_undefined_flag='${wl}-z,text'
16503 allow_undefined_flag='${wl}-z,nodefs'
16504 archive_cmds_need_lc=no
16505 hardcode_shlibpath_var=no
16506 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16507 hardcode_libdir_separator=':'
16508 link_all_deplibs=yes
16509 export_dynamic_flag_spec='${wl}-Bexport'
16510 runpath_var='LD_RUN_PATH'
16512 if test "$GCC" = yes; then
16513 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16514 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16515 else
16516 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16517 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521 uts4*)
16522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523 hardcode_libdir_flag_spec='-L$libdir'
16524 hardcode_shlibpath_var=no
16528 ld_shlibs=no
16530 esac
16532 if test x$host_vendor = xsni; then
16533 case $host in
16534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16535 export_dynamic_flag_spec='${wl}-Blargedynsym'
16537 esac
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16542 $as_echo "$ld_shlibs" >&6; }
16543 test "$ld_shlibs" = no && can_build_shared=no
16545 with_gnu_ld=$with_gnu_ld
16562 # Do we need to explicitly link libc?
16564 case "x$archive_cmds_need_lc" in
16565 x|xyes)
16566 # Assume -lc should be added
16567 archive_cmds_need_lc=yes
16569 if test "$enable_shared" = yes && test "$GCC" = yes; then
16570 case $archive_cmds in
16571 *'~'*)
16572 # FIXME: we may have to deal with multi-command sequences.
16574 '$CC '*)
16575 # Test whether the compiler implicitly links with -lc since on some
16576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16577 # to ld, don't add -lc before -lgcc.
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16579 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16580 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 $RM conftest*
16584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16587 (eval $ac_compile) 2>&5
16588 ac_status=$?
16589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16590 test $ac_status = 0; } 2>conftest.err; then
16591 soname=conftest
16592 lib=conftest
16593 libobjs=conftest.$ac_objext
16594 deplibs=
16595 wl=$lt_prog_compiler_wl
16596 pic_flag=$lt_prog_compiler_pic
16597 compiler_flags=-v
16598 linker_flags=-v
16599 verstring=
16600 output_objdir=.
16601 libname=conftest
16602 lt_save_allow_undefined_flag=$allow_undefined_flag
16603 allow_undefined_flag=
16604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16605 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16606 ac_status=$?
16607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16608 test $ac_status = 0; }
16609 then
16610 lt_cv_archive_cmds_need_lc=no
16611 else
16612 lt_cv_archive_cmds_need_lc=yes
16614 allow_undefined_flag=$lt_save_allow_undefined_flag
16615 else
16616 cat conftest.err 1>&5
16618 $RM conftest*
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16622 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16623 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16625 esac
16628 esac
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16787 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16789 if test "$GCC" = yes; then
16790 case $host_os in
16791 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16792 *) lt_awk_arg="/^libraries:/" ;;
16793 esac
16794 case $host_os in
16795 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16796 *) lt_sed_strip_eq="s,=/,/,g" ;;
16797 esac
16798 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16799 case $lt_search_path_spec in
16800 *\;*)
16801 # if the path contains ";" then we assume it to be the separator
16802 # otherwise default to the standard path separator (i.e. ":") - it is
16803 # assumed that no part of a normal pathname contains ";" but that should
16804 # okay in the real world where ";" in dirpaths is itself problematic.
16805 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16808 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16810 esac
16811 # Ok, now we have the path, separated by spaces, we can step through it
16812 # and add multilib dir if necessary.
16813 lt_tmp_lt_search_path_spec=
16814 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16815 for lt_sys_path in $lt_search_path_spec; do
16816 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16817 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16818 else
16819 test -d "$lt_sys_path" && \
16820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16822 done
16823 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16824 BEGIN {RS=" "; FS="/|\n";} {
16825 lt_foo="";
16826 lt_count=0;
16827 for (lt_i = NF; lt_i > 0; lt_i--) {
16828 if ($lt_i != "" && $lt_i != ".") {
16829 if ($lt_i == "..") {
16830 lt_count++;
16831 } else {
16832 if (lt_count == 0) {
16833 lt_foo="/" $lt_i lt_foo;
16834 } else {
16835 lt_count--;
16840 if (lt_foo != "") { lt_freq[lt_foo]++; }
16841 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16843 # AWK program above erroneously prepends '/' to C:/dos/paths
16844 # for these hosts.
16845 case $host_os in
16846 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16847 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16848 esac
16849 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16850 else
16851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16853 library_names_spec=
16854 libname_spec='lib$name'
16855 soname_spec=
16856 shrext_cmds=".so"
16857 postinstall_cmds=
16858 postuninstall_cmds=
16859 finish_cmds=
16860 finish_eval=
16861 shlibpath_var=
16862 shlibpath_overrides_runpath=unknown
16863 version_type=none
16864 dynamic_linker="$host_os ld.so"
16865 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16866 need_lib_prefix=unknown
16867 hardcode_into_libs=no
16869 # when you set need_version to no, make sure it does not cause -set_version
16870 # flags to be left without arguments
16871 need_version=unknown
16873 case $host_os in
16874 aix3*)
16875 version_type=linux
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16877 shlibpath_var=LIBPATH
16879 # AIX 3 has no versioning support, so we append a major version to the name.
16880 soname_spec='${libname}${release}${shared_ext}$major'
16883 aix[4-9]*)
16884 version_type=linux
16885 need_lib_prefix=no
16886 need_version=no
16887 hardcode_into_libs=yes
16888 if test "$host_cpu" = ia64; then
16889 # AIX 5 supports IA64
16890 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 else
16893 # With GCC up to 2.95.x, collect2 would create an import file
16894 # for dependence libraries. The import file would start with
16895 # the line `#! .'. This would cause the generated library to
16896 # depend on `.', always an invalid library. This was fixed in
16897 # development snapshots of GCC prior to 3.0.
16898 case $host_os in
16899 aix4 | aix4.[01] | aix4.[01].*)
16900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16901 echo ' yes '
16902 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16904 else
16905 can_build_shared=no
16908 esac
16909 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16910 # soname into executable. Probably we can add versioning support to
16911 # collect2, so additional links can be useful in future.
16912 if test "$aix_use_runtimelinking" = yes; then
16913 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16914 # instead of lib<name>.a to let people know that these are not
16915 # typical AIX shared libraries.
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 else
16918 # We preserve .a as extension for shared libraries through AIX4.2
16919 # and later when we are not doing run time linking.
16920 library_names_spec='${libname}${release}.a $libname.a'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16923 shlibpath_var=LIBPATH
16927 amigaos*)
16928 case $host_cpu in
16929 powerpc)
16930 # Since July 2007 AmigaOS4 officially supports .so libraries.
16931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16934 m68k)
16935 library_names_spec='$libname.ixlibrary $libname.a'
16936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16937 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'
16939 esac
16942 beos*)
16943 library_names_spec='${libname}${shared_ext}'
16944 dynamic_linker="$host_os ld.so"
16945 shlibpath_var=LIBRARY_PATH
16948 bsdi[45]*)
16949 version_type=linux
16950 need_version=no
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16952 soname_spec='${libname}${release}${shared_ext}$major'
16953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16954 shlibpath_var=LD_LIBRARY_PATH
16955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16957 # the default ld.so.conf also contains /usr/contrib/lib and
16958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16959 # libtool to hard-code these into programs
16962 cygwin* | mingw* | pw32* | cegcc*)
16963 version_type=windows
16964 shrext_cmds=".dll"
16965 need_version=no
16966 need_lib_prefix=no
16968 case $GCC,$host_os in
16969 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16970 library_names_spec='$libname.dll.a'
16971 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16972 postinstall_cmds='base_file=`basename \${file}`~
16973 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16974 dldir=$destdir/`dirname \$dlpath`~
16975 test -d \$dldir || mkdir -p \$dldir~
16976 $install_prog $dir/$dlname \$dldir/$dlname~
16977 chmod a+x \$dldir/$dlname~
16978 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16979 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16982 dlpath=$dir/\$dldll~
16983 $RM \$dlpath'
16984 shlibpath_overrides_runpath=yes
16986 case $host_os in
16987 cygwin*)
16988 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16989 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16991 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16993 mingw* | cegcc*)
16994 # MinGW DLLs use traditional 'lib' prefix
16995 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16997 pw32*)
16998 # pw32 DLLs use 'pw' prefix rather than 'lib'
16999 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17001 esac
17005 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17007 esac
17008 dynamic_linker='Win32 ld.exe'
17009 # FIXME: first we should search . and the directory the executable is in
17010 shlibpath_var=PATH
17013 darwin* | rhapsody*)
17014 dynamic_linker="$host_os dyld"
17015 version_type=darwin
17016 need_lib_prefix=no
17017 need_version=no
17018 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17019 soname_spec='${libname}${release}${major}$shared_ext'
17020 shlibpath_overrides_runpath=yes
17021 shlibpath_var=DYLD_LIBRARY_PATH
17022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17028 dgux*)
17029 version_type=linux
17030 need_lib_prefix=no
17031 need_version=no
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 shlibpath_var=LD_LIBRARY_PATH
17037 freebsd* | dragonfly*)
17038 # DragonFly does not have aout. When/if they implement a new
17039 # versioning mechanism, adjust this.
17040 if test -x /usr/bin/objformat; then
17041 objformat=`/usr/bin/objformat`
17042 else
17043 case $host_os in
17044 freebsd[23].*) objformat=aout ;;
17045 *) objformat=elf ;;
17046 esac
17048 version_type=freebsd-$objformat
17049 case $version_type in
17050 freebsd-elf*)
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17052 need_version=no
17053 need_lib_prefix=no
17055 freebsd-*)
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17057 need_version=yes
17059 esac
17060 shlibpath_var=LD_LIBRARY_PATH
17061 case $host_os in
17062 freebsd2.*)
17063 shlibpath_overrides_runpath=yes
17065 freebsd3.[01]* | freebsdelf3.[01]*)
17066 shlibpath_overrides_runpath=yes
17067 hardcode_into_libs=yes
17069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17071 shlibpath_overrides_runpath=no
17072 hardcode_into_libs=yes
17074 *) # from 4.6 on, and DragonFly
17075 shlibpath_overrides_runpath=yes
17076 hardcode_into_libs=yes
17078 esac
17081 gnu*)
17082 version_type=linux
17083 need_lib_prefix=no
17084 need_version=no
17085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17086 soname_spec='${libname}${release}${shared_ext}$major'
17087 shlibpath_var=LD_LIBRARY_PATH
17088 hardcode_into_libs=yes
17091 haiku*)
17092 version_type=linux
17093 need_lib_prefix=no
17094 need_version=no
17095 dynamic_linker="$host_os runtime_loader"
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LIBRARY_PATH
17099 shlibpath_overrides_runpath=yes
17100 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17101 hardcode_into_libs=yes
17104 hpux9* | hpux10* | hpux11*)
17105 # Give a soname corresponding to the major version so that dld.sl refuses to
17106 # link against other versions.
17107 version_type=sunos
17108 need_lib_prefix=no
17109 need_version=no
17110 case $host_cpu in
17111 ia64*)
17112 shrext_cmds='.so'
17113 hardcode_into_libs=yes
17114 dynamic_linker="$host_os dld.so"
17115 shlibpath_var=LD_LIBRARY_PATH
17116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 if test "X$HPUX_IA64_MODE" = X32; then
17120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17121 else
17122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17126 hppa*64*)
17127 shrext_cmds='.sl'
17128 hardcode_into_libs=yes
17129 dynamic_linker="$host_os dld.sl"
17130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17138 shrext_cmds='.sl'
17139 dynamic_linker="$host_os dld.sl"
17140 shlibpath_var=SHLIB_PATH
17141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 soname_spec='${libname}${release}${shared_ext}$major'
17145 esac
17146 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17147 postinstall_cmds='chmod 555 $lib'
17148 # or fails outright, so override atomically:
17149 install_override_mode=555
17152 interix[3-9]*)
17153 version_type=linux
17154 need_lib_prefix=no
17155 need_version=no
17156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17157 soname_spec='${libname}${release}${shared_ext}$major'
17158 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 shlibpath_overrides_runpath=no
17161 hardcode_into_libs=yes
17164 irix5* | irix6* | nonstopux*)
17165 case $host_os in
17166 nonstopux*) version_type=nonstopux ;;
17168 if test "$lt_cv_prog_gnu_ld" = yes; then
17169 version_type=linux
17170 else
17171 version_type=irix
17172 fi ;;
17173 esac
17174 need_lib_prefix=no
17175 need_version=no
17176 soname_spec='${libname}${release}${shared_ext}$major'
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17178 case $host_os in
17179 irix5* | nonstopux*)
17180 libsuff= shlibsuff=
17183 case $LD in # libtool.m4 will add one of these switches to LD
17184 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17185 libsuff= shlibsuff= libmagic=32-bit;;
17186 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17187 libsuff=32 shlibsuff=N32 libmagic=N32;;
17188 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17189 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17190 *) libsuff= shlibsuff= libmagic=never-match;;
17191 esac
17193 esac
17194 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17195 shlibpath_overrides_runpath=no
17196 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17197 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17198 hardcode_into_libs=yes
17201 # No shared lib support for Linux oldld, aout, or coff.
17202 linux*oldld* | linux*aout* | linux*coff*)
17203 dynamic_linker=no
17206 # This must be Linux ELF.
17207 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17208 version_type=linux
17209 need_lib_prefix=no
17210 need_version=no
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 soname_spec='${libname}${release}${shared_ext}$major'
17213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 shlibpath_overrides_runpath=no
17217 # Some binutils ld are patched to set DT_RUNPATH
17218 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17219 $as_echo_n "(cached) " >&6
17220 else
17221 lt_cv_shlibpath_overrides_runpath=no
17222 save_LDFLAGS=$LDFLAGS
17223 save_libdir=$libdir
17224 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17225 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17230 main ()
17234 return 0;
17236 _ACEOF
17237 if ac_fn_c_try_link "$LINENO"; then :
17238 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17239 lt_cv_shlibpath_overrides_runpath=yes
17242 rm -f core conftest.err conftest.$ac_objext \
17243 conftest$ac_exeext conftest.$ac_ext
17244 LDFLAGS=$save_LDFLAGS
17245 libdir=$save_libdir
17249 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17251 # This implies no fast_install, which is unacceptable.
17252 # Some rework will be needed to allow for fast_install
17253 # before this can be enabled.
17254 hardcode_into_libs=yes
17256 # Append ld.so.conf contents to the search path
17257 if test -f /etc/ld.so.conf; then
17258 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' ' '`
17259 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17262 # We used to test for /lib/ld.so.1 and disable shared libraries on
17263 # powerpc, because MkLinux only supported shared libraries with the
17264 # GNU dynamic linker. Since this was broken with cross compilers,
17265 # most powerpc-linux boxes support dynamic linking these days and
17266 # people can always --disable-shared, the test was removed, and we
17267 # assume the GNU/Linux dynamic linker is in use.
17268 dynamic_linker='GNU/Linux ld.so'
17271 netbsd*)
17272 version_type=sunos
17273 need_lib_prefix=no
17274 need_version=no
17275 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17278 dynamic_linker='NetBSD (a.out) ld.so'
17279 else
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17281 soname_spec='${libname}${release}${shared_ext}$major'
17282 dynamic_linker='NetBSD ld.elf_so'
17284 shlibpath_var=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath=yes
17286 hardcode_into_libs=yes
17289 newsos6)
17290 version_type=linux
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 shlibpath_var=LD_LIBRARY_PATH
17293 shlibpath_overrides_runpath=yes
17296 *nto* | *qnx*)
17297 version_type=qnx
17298 need_lib_prefix=no
17299 need_version=no
17300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17301 soname_spec='${libname}${release}${shared_ext}$major'
17302 shlibpath_var=LD_LIBRARY_PATH
17303 shlibpath_overrides_runpath=no
17304 hardcode_into_libs=yes
17305 dynamic_linker='ldqnx.so'
17308 openbsd*)
17309 version_type=sunos
17310 sys_lib_dlsearch_path_spec="/usr/lib"
17311 need_lib_prefix=no
17312 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17313 case $host_os in
17314 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17315 *) need_version=no ;;
17316 esac
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17319 shlibpath_var=LD_LIBRARY_PATH
17320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17321 case $host_os in
17322 openbsd2.[89] | openbsd2.[89].*)
17323 shlibpath_overrides_runpath=no
17326 shlibpath_overrides_runpath=yes
17328 esac
17329 else
17330 shlibpath_overrides_runpath=yes
17334 os2*)
17335 libname_spec='$name'
17336 shrext_cmds=".dll"
17337 need_lib_prefix=no
17338 library_names_spec='$libname${shared_ext} $libname.a'
17339 dynamic_linker='OS/2 ld.exe'
17340 shlibpath_var=LIBPATH
17343 osf3* | osf4* | osf5*)
17344 version_type=osf
17345 need_lib_prefix=no
17346 need_version=no
17347 soname_spec='${libname}${release}${shared_ext}$major'
17348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17349 shlibpath_var=LD_LIBRARY_PATH
17350 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17351 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17354 rdos*)
17355 dynamic_linker=no
17358 solaris*)
17359 version_type=linux
17360 need_lib_prefix=no
17361 need_version=no
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 shlibpath_overrides_runpath=yes
17366 hardcode_into_libs=yes
17367 # ldd complains unless libraries are executable
17368 postinstall_cmds='chmod +x $lib'
17371 sunos4*)
17372 version_type=sunos
17373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17374 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=yes
17377 if test "$with_gnu_ld" = yes; then
17378 need_lib_prefix=no
17380 need_version=yes
17383 sysv4 | sysv4.3*)
17384 version_type=linux
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 shlibpath_var=LD_LIBRARY_PATH
17388 case $host_vendor in
17389 sni)
17390 shlibpath_overrides_runpath=no
17391 need_lib_prefix=no
17392 runpath_var=LD_RUN_PATH
17394 siemens)
17395 need_lib_prefix=no
17397 motorola)
17398 need_lib_prefix=no
17399 need_version=no
17400 shlibpath_overrides_runpath=no
17401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17403 esac
17406 sysv4*MP*)
17407 if test -d /usr/nec ;then
17408 version_type=linux
17409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17410 soname_spec='$libname${shared_ext}.$major'
17411 shlibpath_var=LD_LIBRARY_PATH
17415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17416 version_type=freebsd-elf
17417 need_lib_prefix=no
17418 need_version=no
17419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17420 soname_spec='${libname}${release}${shared_ext}$major'
17421 shlibpath_var=LD_LIBRARY_PATH
17422 shlibpath_overrides_runpath=yes
17423 hardcode_into_libs=yes
17424 if test "$with_gnu_ld" = yes; then
17425 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17426 else
17427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17428 case $host_os in
17429 sco3.2v5*)
17430 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17432 esac
17434 sys_lib_dlsearch_path_spec='/usr/lib'
17437 tpf*)
17438 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17439 version_type=linux
17440 need_lib_prefix=no
17441 need_version=no
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 shlibpath_var=LD_LIBRARY_PATH
17444 shlibpath_overrides_runpath=no
17445 hardcode_into_libs=yes
17448 uts4*)
17449 version_type=linux
17450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451 soname_spec='${libname}${release}${shared_ext}$major'
17452 shlibpath_var=LD_LIBRARY_PATH
17456 dynamic_linker=no
17458 esac
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17460 $as_echo "$dynamic_linker" >&6; }
17461 test "$dynamic_linker" = no && can_build_shared=no
17463 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17464 if test "$GCC" = yes; then
17465 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17468 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17469 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17471 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17472 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17567 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17568 hardcode_action=
17569 if test -n "$hardcode_libdir_flag_spec" ||
17570 test -n "$runpath_var" ||
17571 test "X$hardcode_automatic" = "Xyes" ; then
17573 # We can hardcode non-existent directories.
17574 if test "$hardcode_direct" != no &&
17575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17576 # have to relink, otherwise we might link with an installed library
17577 # when we should be linking with a yet-to-be-installed one
17578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17579 test "$hardcode_minus_L" != no; then
17580 # Linking always hardcodes the temporary library directory.
17581 hardcode_action=relink
17582 else
17583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17584 hardcode_action=immediate
17586 else
17587 # We cannot hardcode anything, or else we can only hardcode existing
17588 # directories.
17589 hardcode_action=unsupported
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17592 $as_echo "$hardcode_action" >&6; }
17594 if test "$hardcode_action" = relink ||
17595 test "$inherit_rpath" = yes; then
17596 # Fast installation is not supported
17597 enable_fast_install=no
17598 elif test "$shlibpath_overrides_runpath" = yes ||
17599 test "$enable_shared" = no; then
17600 # Fast installation is not necessary
17601 enable_fast_install=needless
17609 if test "x$enable_dlopen" != xyes; then
17610 enable_dlopen=unknown
17611 enable_dlopen_self=unknown
17612 enable_dlopen_self_static=unknown
17613 else
17614 lt_cv_dlopen=no
17615 lt_cv_dlopen_libs=
17617 case $host_os in
17618 beos*)
17619 lt_cv_dlopen="load_add_on"
17620 lt_cv_dlopen_libs=
17621 lt_cv_dlopen_self=yes
17624 mingw* | pw32* | cegcc*)
17625 lt_cv_dlopen="LoadLibrary"
17626 lt_cv_dlopen_libs=
17629 cygwin*)
17630 lt_cv_dlopen="dlopen"
17631 lt_cv_dlopen_libs=
17634 darwin*)
17635 # if libdl is installed we need to link against it
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17639 $as_echo_n "(cached) " >&6
17640 else
17641 ac_check_lib_save_LIBS=$LIBS
17642 LIBS="-ldl $LIBS"
17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17644 /* end confdefs.h. */
17646 /* Override any GCC internal prototype to avoid an error.
17647 Use char because int might match the return type of a GCC
17648 builtin and then its argument prototype would still apply. */
17649 #ifdef __cplusplus
17650 extern "C"
17651 #endif
17652 char dlopen ();
17654 main ()
17656 return dlopen ();
17658 return 0;
17660 _ACEOF
17661 if ac_fn_c_try_link "$LINENO"; then :
17662 ac_cv_lib_dl_dlopen=yes
17663 else
17664 ac_cv_lib_dl_dlopen=no
17666 rm -f core conftest.err conftest.$ac_objext \
17667 conftest$ac_exeext conftest.$ac_ext
17668 LIBS=$ac_check_lib_save_LIBS
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17672 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17674 else
17676 lt_cv_dlopen="dyld"
17677 lt_cv_dlopen_libs=
17678 lt_cv_dlopen_self=yes
17685 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17686 if test "x$ac_cv_func_shl_load" = x""yes; then :
17687 lt_cv_dlopen="shl_load"
17688 else
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17690 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17691 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17692 $as_echo_n "(cached) " >&6
17693 else
17694 ac_check_lib_save_LIBS=$LIBS
17695 LIBS="-ldld $LIBS"
17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17697 /* end confdefs.h. */
17699 /* Override any GCC internal prototype to avoid an error.
17700 Use char because int might match the return type of a GCC
17701 builtin and then its argument prototype would still apply. */
17702 #ifdef __cplusplus
17703 extern "C"
17704 #endif
17705 char shl_load ();
17707 main ()
17709 return shl_load ();
17711 return 0;
17713 _ACEOF
17714 if ac_fn_c_try_link "$LINENO"; then :
17715 ac_cv_lib_dld_shl_load=yes
17716 else
17717 ac_cv_lib_dld_shl_load=no
17719 rm -f core conftest.err conftest.$ac_objext \
17720 conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17724 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17725 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17726 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17727 else
17728 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17729 if test "x$ac_cv_func_dlopen" = x""yes; then :
17730 lt_cv_dlopen="dlopen"
17731 else
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17733 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17734 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17735 $as_echo_n "(cached) " >&6
17736 else
17737 ac_check_lib_save_LIBS=$LIBS
17738 LIBS="-ldl $LIBS"
17739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17740 /* end confdefs.h. */
17742 /* Override any GCC internal prototype to avoid an error.
17743 Use char because int might match the return type of a GCC
17744 builtin and then its argument prototype would still apply. */
17745 #ifdef __cplusplus
17746 extern "C"
17747 #endif
17748 char dlopen ();
17750 main ()
17752 return dlopen ();
17754 return 0;
17756 _ACEOF
17757 if ac_fn_c_try_link "$LINENO"; then :
17758 ac_cv_lib_dl_dlopen=yes
17759 else
17760 ac_cv_lib_dl_dlopen=no
17762 rm -f core conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
17764 LIBS=$ac_check_lib_save_LIBS
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17767 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17768 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17770 else
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17772 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17773 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17774 $as_echo_n "(cached) " >&6
17775 else
17776 ac_check_lib_save_LIBS=$LIBS
17777 LIBS="-lsvld $LIBS"
17778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17779 /* end confdefs.h. */
17781 /* Override any GCC internal prototype to avoid an error.
17782 Use char because int might match the return type of a GCC
17783 builtin and then its argument prototype would still apply. */
17784 #ifdef __cplusplus
17785 extern "C"
17786 #endif
17787 char dlopen ();
17789 main ()
17791 return dlopen ();
17793 return 0;
17795 _ACEOF
17796 if ac_fn_c_try_link "$LINENO"; then :
17797 ac_cv_lib_svld_dlopen=yes
17798 else
17799 ac_cv_lib_svld_dlopen=no
17801 rm -f core conftest.err conftest.$ac_objext \
17802 conftest$ac_exeext conftest.$ac_ext
17803 LIBS=$ac_check_lib_save_LIBS
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17806 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17807 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17809 else
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17811 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17812 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17813 $as_echo_n "(cached) " >&6
17814 else
17815 ac_check_lib_save_LIBS=$LIBS
17816 LIBS="-ldld $LIBS"
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17820 /* Override any GCC internal prototype to avoid an error.
17821 Use char because int might match the return type of a GCC
17822 builtin and then its argument prototype would still apply. */
17823 #ifdef __cplusplus
17824 extern "C"
17825 #endif
17826 char dld_link ();
17828 main ()
17830 return dld_link ();
17832 return 0;
17834 _ACEOF
17835 if ac_fn_c_try_link "$LINENO"; then :
17836 ac_cv_lib_dld_dld_link=yes
17837 else
17838 ac_cv_lib_dld_dld_link=no
17840 rm -f core conftest.err conftest.$ac_objext \
17841 conftest$ac_exeext conftest.$ac_ext
17842 LIBS=$ac_check_lib_save_LIBS
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17845 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17846 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17847 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17866 esac
17868 if test "x$lt_cv_dlopen" != xno; then
17869 enable_dlopen=yes
17870 else
17871 enable_dlopen=no
17874 case $lt_cv_dlopen in
17875 dlopen)
17876 save_CPPFLAGS="$CPPFLAGS"
17877 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17879 save_LDFLAGS="$LDFLAGS"
17880 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17882 save_LIBS="$LIBS"
17883 LIBS="$lt_cv_dlopen_libs $LIBS"
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17886 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17887 if test "${lt_cv_dlopen_self+set}" = set; then :
17888 $as_echo_n "(cached) " >&6
17889 else
17890 if test "$cross_compiling" = yes; then :
17891 lt_cv_dlopen_self=cross
17892 else
17893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17894 lt_status=$lt_dlunknown
17895 cat > conftest.$ac_ext <<_LT_EOF
17896 #line 17896 "configure"
17897 #include "confdefs.h"
17899 #if HAVE_DLFCN_H
17900 #include <dlfcn.h>
17901 #endif
17903 #include <stdio.h>
17905 #ifdef RTLD_GLOBAL
17906 # define LT_DLGLOBAL RTLD_GLOBAL
17907 #else
17908 # ifdef DL_GLOBAL
17909 # define LT_DLGLOBAL DL_GLOBAL
17910 # else
17911 # define LT_DLGLOBAL 0
17912 # endif
17913 #endif
17915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17916 find out it does not work in some platform. */
17917 #ifndef LT_DLLAZY_OR_NOW
17918 # ifdef RTLD_LAZY
17919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17920 # else
17921 # ifdef DL_LAZY
17922 # define LT_DLLAZY_OR_NOW DL_LAZY
17923 # else
17924 # ifdef RTLD_NOW
17925 # define LT_DLLAZY_OR_NOW RTLD_NOW
17926 # else
17927 # ifdef DL_NOW
17928 # define LT_DLLAZY_OR_NOW DL_NOW
17929 # else
17930 # define LT_DLLAZY_OR_NOW 0
17931 # endif
17932 # endif
17933 # endif
17934 # endif
17935 #endif
17937 /* When -fvisbility=hidden is used, assume the code has been annotated
17938 correspondingly for the symbols needed. */
17939 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17940 void fnord () __attribute__((visibility("default")));
17941 #endif
17943 void fnord () { int i=42; }
17944 int main ()
17946 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17947 int status = $lt_dlunknown;
17949 if (self)
17951 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17952 else
17954 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17955 else puts (dlerror ());
17957 /* dlclose (self); */
17959 else
17960 puts (dlerror ());
17962 return status;
17964 _LT_EOF
17965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17966 (eval $ac_link) 2>&5
17967 ac_status=$?
17968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17969 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17970 (./conftest; exit; ) >&5 2>/dev/null
17971 lt_status=$?
17972 case x$lt_status in
17973 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17974 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17975 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17976 esac
17977 else :
17978 # compilation failed
17979 lt_cv_dlopen_self=no
17982 rm -fr conftest*
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17987 $as_echo "$lt_cv_dlopen_self" >&6; }
17989 if test "x$lt_cv_dlopen_self" = xyes; then
17990 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17992 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17993 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17994 $as_echo_n "(cached) " >&6
17995 else
17996 if test "$cross_compiling" = yes; then :
17997 lt_cv_dlopen_self_static=cross
17998 else
17999 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18000 lt_status=$lt_dlunknown
18001 cat > conftest.$ac_ext <<_LT_EOF
18002 #line 18002 "configure"
18003 #include "confdefs.h"
18005 #if HAVE_DLFCN_H
18006 #include <dlfcn.h>
18007 #endif
18009 #include <stdio.h>
18011 #ifdef RTLD_GLOBAL
18012 # define LT_DLGLOBAL RTLD_GLOBAL
18013 #else
18014 # ifdef DL_GLOBAL
18015 # define LT_DLGLOBAL DL_GLOBAL
18016 # else
18017 # define LT_DLGLOBAL 0
18018 # endif
18019 #endif
18021 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18022 find out it does not work in some platform. */
18023 #ifndef LT_DLLAZY_OR_NOW
18024 # ifdef RTLD_LAZY
18025 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18026 # else
18027 # ifdef DL_LAZY
18028 # define LT_DLLAZY_OR_NOW DL_LAZY
18029 # else
18030 # ifdef RTLD_NOW
18031 # define LT_DLLAZY_OR_NOW RTLD_NOW
18032 # else
18033 # ifdef DL_NOW
18034 # define LT_DLLAZY_OR_NOW DL_NOW
18035 # else
18036 # define LT_DLLAZY_OR_NOW 0
18037 # endif
18038 # endif
18039 # endif
18040 # endif
18041 #endif
18043 /* When -fvisbility=hidden is used, assume the code has been annotated
18044 correspondingly for the symbols needed. */
18045 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18046 void fnord () __attribute__((visibility("default")));
18047 #endif
18049 void fnord () { int i=42; }
18050 int main ()
18052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18053 int status = $lt_dlunknown;
18055 if (self)
18057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18058 else
18060 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18061 else puts (dlerror ());
18063 /* dlclose (self); */
18065 else
18066 puts (dlerror ());
18068 return status;
18070 _LT_EOF
18071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18072 (eval $ac_link) 2>&5
18073 ac_status=$?
18074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18075 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18076 (./conftest; exit; ) >&5 2>/dev/null
18077 lt_status=$?
18078 case x$lt_status in
18079 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18080 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18081 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18082 esac
18083 else :
18084 # compilation failed
18085 lt_cv_dlopen_self_static=no
18088 rm -fr conftest*
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18093 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18096 CPPFLAGS="$save_CPPFLAGS"
18097 LDFLAGS="$save_LDFLAGS"
18098 LIBS="$save_LIBS"
18100 esac
18102 case $lt_cv_dlopen_self in
18103 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18104 *) enable_dlopen_self=unknown ;;
18105 esac
18107 case $lt_cv_dlopen_self_static in
18108 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18109 *) enable_dlopen_self_static=unknown ;;
18110 esac
18129 striplib=
18130 old_striplib=
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18132 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18133 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18134 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18135 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18138 else
18139 # FIXME - insert some real tests, host_os isn't really good enough
18140 case $host_os in
18141 darwin*)
18142 if test -n "$STRIP" ; then
18143 striplib="$STRIP -x"
18144 old_striplib="$STRIP -S"
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18146 $as_echo "yes" >&6; }
18147 else
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18149 $as_echo "no" >&6; }
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154 $as_echo "no" >&6; }
18156 esac
18170 # Report which library types will actually be built
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18172 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18174 $as_echo "$can_build_shared" >&6; }
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18177 $as_echo_n "checking whether to build shared libraries... " >&6; }
18178 test "$can_build_shared" = "no" && enable_shared=no
18180 # On AIX, shared libraries and static libraries use the same namespace, and
18181 # are all built from PIC.
18182 case $host_os in
18183 aix3*)
18184 test "$enable_shared" = yes && enable_static=no
18185 if test -n "$RANLIB"; then
18186 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18187 postinstall_cmds='$RANLIB $lib'
18191 aix[4-9]*)
18192 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18193 test "$enable_shared" = yes && enable_static=no
18196 esac
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18198 $as_echo "$enable_shared" >&6; }
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18201 $as_echo_n "checking whether to build static libraries... " >&6; }
18202 # Make sure either enable_shared or enable_static is yes.
18203 test "$enable_shared" = yes || enable_static=yes
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18205 $as_echo "$enable_static" >&6; }
18211 ac_ext=c
18212 ac_cpp='$CPP $CPPFLAGS'
18213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18217 CC="$lt_save_CC"
18219 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18220 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18221 (test "X$CXX" != "Xg++"))) ; then
18222 ac_ext=cpp
18223 ac_cpp='$CXXCPP $CPPFLAGS'
18224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18228 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18229 if test -z "$CXXCPP"; then
18230 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18231 $as_echo_n "(cached) " >&6
18232 else
18233 # Double quotes because CXXCPP needs to be expanded
18234 for CXXCPP in "$CXX -E" "/lib/cpp"
18236 ac_preproc_ok=false
18237 for ac_cxx_preproc_warn_flag in '' yes
18239 # Use a header file that comes with gcc, so configuring glibc
18240 # with a fresh cross-compiler works.
18241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18242 # <limits.h> exists even on freestanding compilers.
18243 # On the NeXT, cc -E runs the code through the compiler's parser,
18244 # not just through cpp. "Syntax error" is here to catch this case.
18245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h. */
18247 #ifdef __STDC__
18248 # include <limits.h>
18249 #else
18250 # include <assert.h>
18251 #endif
18252 Syntax error
18253 _ACEOF
18254 if ac_fn_cxx_try_cpp "$LINENO"; then :
18256 else
18257 # Broken: fails on valid input.
18258 continue
18260 rm -f conftest.err conftest.$ac_ext
18262 # OK, works on sane cases. Now check whether nonexistent headers
18263 # can be detected and how.
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266 #include <ac_nonexistent.h>
18267 _ACEOF
18268 if ac_fn_cxx_try_cpp "$LINENO"; then :
18269 # Broken: success on invalid input.
18270 continue
18271 else
18272 # Passes both tests.
18273 ac_preproc_ok=:
18274 break
18276 rm -f conftest.err conftest.$ac_ext
18278 done
18279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18280 rm -f conftest.err conftest.$ac_ext
18281 if $ac_preproc_ok; then :
18282 break
18285 done
18286 ac_cv_prog_CXXCPP=$CXXCPP
18289 CXXCPP=$ac_cv_prog_CXXCPP
18290 else
18291 ac_cv_prog_CXXCPP=$CXXCPP
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18294 $as_echo "$CXXCPP" >&6; }
18295 ac_preproc_ok=false
18296 for ac_cxx_preproc_warn_flag in '' yes
18298 # Use a header file that comes with gcc, so configuring glibc
18299 # with a fresh cross-compiler works.
18300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 # <limits.h> exists even on freestanding compilers.
18302 # On the NeXT, cc -E runs the code through the compiler's parser,
18303 # not just through cpp. "Syntax error" is here to catch this case.
18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18306 #ifdef __STDC__
18307 # include <limits.h>
18308 #else
18309 # include <assert.h>
18310 #endif
18311 Syntax error
18312 _ACEOF
18313 if ac_fn_cxx_try_cpp "$LINENO"; then :
18315 else
18316 # Broken: fails on valid input.
18317 continue
18319 rm -f conftest.err conftest.$ac_ext
18321 # OK, works on sane cases. Now check whether nonexistent headers
18322 # can be detected and how.
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325 #include <ac_nonexistent.h>
18326 _ACEOF
18327 if ac_fn_cxx_try_cpp "$LINENO"; then :
18328 # Broken: success on invalid input.
18329 continue
18330 else
18331 # Passes both tests.
18332 ac_preproc_ok=:
18333 break
18335 rm -f conftest.err conftest.$ac_ext
18337 done
18338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18339 rm -f conftest.err conftest.$ac_ext
18340 if $ac_preproc_ok; then :
18342 else
18343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18345 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18346 See \`config.log' for more details." "$LINENO" 5; }
18349 ac_ext=c
18350 ac_cpp='$CPP $CPPFLAGS'
18351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18355 else
18356 _lt_caught_CXX_error=yes
18359 ac_ext=cpp
18360 ac_cpp='$CXXCPP $CPPFLAGS'
18361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18365 archive_cmds_need_lc_CXX=no
18366 allow_undefined_flag_CXX=
18367 always_export_symbols_CXX=no
18368 archive_expsym_cmds_CXX=
18369 compiler_needs_object_CXX=no
18370 export_dynamic_flag_spec_CXX=
18371 hardcode_direct_CXX=no
18372 hardcode_direct_absolute_CXX=no
18373 hardcode_libdir_flag_spec_CXX=
18374 hardcode_libdir_flag_spec_ld_CXX=
18375 hardcode_libdir_separator_CXX=
18376 hardcode_minus_L_CXX=no
18377 hardcode_shlibpath_var_CXX=unsupported
18378 hardcode_automatic_CXX=no
18379 inherit_rpath_CXX=no
18380 module_cmds_CXX=
18381 module_expsym_cmds_CXX=
18382 link_all_deplibs_CXX=unknown
18383 old_archive_cmds_CXX=$old_archive_cmds
18384 reload_flag_CXX=$reload_flag
18385 reload_cmds_CXX=$reload_cmds
18386 no_undefined_flag_CXX=
18387 whole_archive_flag_spec_CXX=
18388 enable_shared_with_static_runtimes_CXX=no
18390 # Source file extension for C++ test sources.
18391 ac_ext=cpp
18393 # Object file extension for compiled C++ test sources.
18394 objext=o
18395 objext_CXX=$objext
18397 # No sense in running all these tests if we already determined that
18398 # the CXX compiler isn't working. Some variables (like enable_shared)
18399 # are currently assumed to apply to all compilers on this platform,
18400 # and will be corrupted by setting them based on a non-working compiler.
18401 if test "$_lt_caught_CXX_error" != yes; then
18402 # Code to be used in simple compile tests
18403 lt_simple_compile_test_code="int some_variable = 0;"
18405 # Code to be used in simple link tests
18406 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18408 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18415 # If no C compiler was specified, use CC.
18416 LTCC=${LTCC-"$CC"}
18418 # If no C compiler flags were specified, use CFLAGS.
18419 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18421 # Allow CC to be a program name with arguments.
18422 compiler=$CC
18425 # save warnings/boilerplate of simple test code
18426 ac_outfile=conftest.$ac_objext
18427 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18428 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18429 _lt_compiler_boilerplate=`cat conftest.err`
18430 $RM conftest*
18432 ac_outfile=conftest.$ac_objext
18433 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18434 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18435 _lt_linker_boilerplate=`cat conftest.err`
18436 $RM -r conftest*
18439 # Allow CC to be a program name with arguments.
18440 lt_save_CC=$CC
18441 lt_save_LD=$LD
18442 lt_save_GCC=$GCC
18443 GCC=$GXX
18444 lt_save_with_gnu_ld=$with_gnu_ld
18445 lt_save_path_LD=$lt_cv_path_LD
18446 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18447 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18448 else
18449 $as_unset lt_cv_prog_gnu_ld
18451 if test -n "${lt_cv_path_LDCXX+set}"; then
18452 lt_cv_path_LD=$lt_cv_path_LDCXX
18453 else
18454 $as_unset lt_cv_path_LD
18456 test -z "${LDCXX+set}" || LD=$LDCXX
18457 CC=${CXX-"c++"}
18458 compiler=$CC
18459 compiler_CXX=$CC
18460 for cc_temp in $compiler""; do
18461 case $cc_temp in
18462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18464 \-*) ;;
18465 *) break;;
18466 esac
18467 done
18468 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18471 if test -n "$compiler"; then
18472 # We don't want -fno-exception when compiling C++ code, so set the
18473 # no_builtin_flag separately
18474 if test "$GXX" = yes; then
18475 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18476 else
18477 lt_prog_compiler_no_builtin_flag_CXX=
18480 if test "$GXX" = yes; then
18481 # Set up default GNU C++ configuration
18485 # Check whether --with-gnu-ld was given.
18486 if test "${with_gnu_ld+set}" = set; then :
18487 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18488 else
18489 with_gnu_ld=no
18492 ac_prog=ld
18493 if test "$GCC" = yes; then
18494 # Check if gcc -print-prog-name=ld gives a path.
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18496 $as_echo_n "checking for ld used by $CC... " >&6; }
18497 case $host in
18498 *-*-mingw*)
18499 # gcc leaves a trailing carriage return which upsets mingw
18500 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18502 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18503 esac
18504 case $ac_prog in
18505 # Accept absolute paths.
18506 [\\/]* | ?:[\\/]*)
18507 re_direlt='/[^/][^/]*/\.\./'
18508 # Canonicalize the pathname of ld
18509 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18510 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18511 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18512 done
18513 test -z "$LD" && LD="$ac_prog"
18516 # If it fails, then pretend we aren't using GCC.
18517 ac_prog=ld
18520 # If it is relative, then search for the first ld in PATH.
18521 with_gnu_ld=unknown
18523 esac
18524 elif test "$with_gnu_ld" = yes; then
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18526 $as_echo_n "checking for GNU ld... " >&6; }
18527 else
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18529 $as_echo_n "checking for non-GNU ld... " >&6; }
18531 if test "${lt_cv_path_LD+set}" = set; then :
18532 $as_echo_n "(cached) " >&6
18533 else
18534 if test -z "$LD"; then
18535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18536 for ac_dir in $PATH; do
18537 IFS="$lt_save_ifs"
18538 test -z "$ac_dir" && ac_dir=.
18539 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18540 lt_cv_path_LD="$ac_dir/$ac_prog"
18541 # Check to see if the program is GNU ld. I'd rather use --version,
18542 # but apparently some variants of GNU ld only accept -v.
18543 # Break only if it was the GNU/non-GNU ld that we prefer.
18544 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18545 *GNU* | *'with BFD'*)
18546 test "$with_gnu_ld" != no && break
18549 test "$with_gnu_ld" != yes && break
18551 esac
18553 done
18554 IFS="$lt_save_ifs"
18555 else
18556 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18560 LD="$lt_cv_path_LD"
18561 if test -n "$LD"; then
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18563 $as_echo "$LD" >&6; }
18564 else
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18566 $as_echo "no" >&6; }
18568 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18570 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18571 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18572 $as_echo_n "(cached) " >&6
18573 else
18574 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18575 case `$LD -v 2>&1 </dev/null` in
18576 *GNU* | *'with BFD'*)
18577 lt_cv_prog_gnu_ld=yes
18580 lt_cv_prog_gnu_ld=no
18582 esac
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18585 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18586 with_gnu_ld=$lt_cv_prog_gnu_ld
18594 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18595 # archiving commands below assume that GNU ld is being used.
18596 if test "$with_gnu_ld" = yes; then
18597 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18598 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'
18600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18603 # If archive_cmds runs LD, not CC, wlarc should be empty
18604 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18605 # investigate it a little bit more. (MM)
18606 wlarc='${wl}'
18608 # ancient GNU ld didn't support --whole-archive et. al.
18609 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18610 $GREP 'no-whole-archive' > /dev/null; then
18611 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18612 else
18613 whole_archive_flag_spec_CXX=
18615 else
18616 with_gnu_ld=no
18617 wlarc=
18619 # A generic and very simple default shared library creation
18620 # command for GNU C++ for the case where it uses the native
18621 # linker, instead of GNU ld. If possible, this setting should
18622 # overridden to take advantage of the native linker features on
18623 # the platform it is being used on.
18624 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18627 # Commands to make compiler produce verbose output that lists
18628 # what "hidden" libraries, object files and flags are used when
18629 # linking a shared library.
18630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18632 else
18633 GXX=no
18634 with_gnu_ld=no
18635 wlarc=
18638 # PORTME: fill in a description of your system's C++ link characteristics
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18640 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18641 ld_shlibs_CXX=yes
18642 case $host_os in
18643 aix3*)
18644 # FIXME: insert proper C++ library support
18645 ld_shlibs_CXX=no
18647 aix[4-9]*)
18648 if test "$host_cpu" = ia64; then
18649 # On IA64, the linker does run time linking by default, so we don't
18650 # have to do anything special.
18651 aix_use_runtimelinking=no
18652 exp_sym_flag='-Bexport'
18653 no_entry_flag=""
18654 else
18655 aix_use_runtimelinking=no
18657 # Test if we are trying to use run time linking or normal
18658 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18659 # need to do runtime linking.
18660 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18661 for ld_flag in $LDFLAGS; do
18662 case $ld_flag in
18663 *-brtl*)
18664 aix_use_runtimelinking=yes
18665 break
18667 esac
18668 done
18670 esac
18672 exp_sym_flag='-bexport'
18673 no_entry_flag='-bnoentry'
18676 # When large executables or shared objects are built, AIX ld can
18677 # have problems creating the table of contents. If linking a library
18678 # or program results in "error TOC overflow" add -mminimal-toc to
18679 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18680 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18682 archive_cmds_CXX=''
18683 hardcode_direct_CXX=yes
18684 hardcode_direct_absolute_CXX=yes
18685 hardcode_libdir_separator_CXX=':'
18686 link_all_deplibs_CXX=yes
18687 file_list_spec_CXX='${wl}-f,'
18689 if test "$GXX" = yes; then
18690 case $host_os in aix4.[012]|aix4.[012].*)
18691 # We only want to do this on AIX 4.2 and lower, the check
18692 # below for broken collect2 doesn't work under 4.3+
18693 collect2name=`${CC} -print-prog-name=collect2`
18694 if test -f "$collect2name" &&
18695 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18696 then
18697 # We have reworked collect2
18699 else
18700 # We have old collect2
18701 hardcode_direct_CXX=unsupported
18702 # It fails to find uninstalled libraries when the uninstalled
18703 # path is not listed in the libpath. Setting hardcode_minus_L
18704 # to unsupported forces relinking
18705 hardcode_minus_L_CXX=yes
18706 hardcode_libdir_flag_spec_CXX='-L$libdir'
18707 hardcode_libdir_separator_CXX=
18709 esac
18710 shared_flag='-shared'
18711 if test "$aix_use_runtimelinking" = yes; then
18712 shared_flag="$shared_flag "'${wl}-G'
18714 else
18715 # not using gcc
18716 if test "$host_cpu" = ia64; then
18717 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18718 # chokes on -Wl,-G. The following line is correct:
18719 shared_flag='-G'
18720 else
18721 if test "$aix_use_runtimelinking" = yes; then
18722 shared_flag='${wl}-G'
18723 else
18724 shared_flag='${wl}-bM:SRE'
18729 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18730 # It seems that -bexpall does not export symbols beginning with
18731 # underscore (_), so it is better to generate a list of symbols to
18732 # export.
18733 always_export_symbols_CXX=yes
18734 if test "$aix_use_runtimelinking" = yes; then
18735 # Warning - without using the other runtime loading flags (-brtl),
18736 # -berok will link without error, but may produce a broken library.
18737 allow_undefined_flag_CXX='-berok'
18738 # Determine the default libpath from the value encoded in an empty
18739 # executable.
18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h. */
18744 main ()
18748 return 0;
18750 _ACEOF
18751 if ac_fn_cxx_try_link "$LINENO"; then :
18753 lt_aix_libpath_sed='
18754 /Import File Strings/,/^$/ {
18755 /^0/ {
18756 s/^0 *\(.*\)$/\1/
18760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18761 # Check for a 64-bit object if we didn't find anything.
18762 if test -z "$aix_libpath"; then
18763 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18766 rm -f core conftest.err conftest.$ac_objext \
18767 conftest$ac_exeext conftest.$ac_ext
18768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18770 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18772 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"
18773 else
18774 if test "$host_cpu" = ia64; then
18775 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18776 allow_undefined_flag_CXX="-z nodefs"
18777 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"
18778 else
18779 # Determine the default libpath from the value encoded in an
18780 # empty executable.
18781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782 /* end confdefs.h. */
18785 main ()
18789 return 0;
18791 _ACEOF
18792 if ac_fn_cxx_try_link "$LINENO"; then :
18794 lt_aix_libpath_sed='
18795 /Import File Strings/,/^$/ {
18796 /^0/ {
18797 s/^0 *\(.*\)$/\1/
18801 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18802 # Check for a 64-bit object if we didn't find anything.
18803 if test -z "$aix_libpath"; then
18804 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18807 rm -f core conftest.err conftest.$ac_objext \
18808 conftest$ac_exeext conftest.$ac_ext
18809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18811 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18812 # Warning - without using the other run time loading flags,
18813 # -berok will link without error, but may produce a broken library.
18814 no_undefined_flag_CXX=' ${wl}-bernotok'
18815 allow_undefined_flag_CXX=' ${wl}-berok'
18816 if test "$with_gnu_ld" = yes; then
18817 # We only use this code for GNU lds that support --whole-archive.
18818 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18819 else
18820 # Exported symbols can be pulled into shared objects from archives
18821 whole_archive_flag_spec_CXX='$convenience'
18823 archive_cmds_need_lc_CXX=yes
18824 # This is similar to how AIX traditionally builds its shared
18825 # libraries.
18826 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'
18831 beos*)
18832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18833 allow_undefined_flag_CXX=unsupported
18834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18835 # support --undefined. This deserves some investigation. FIXME
18836 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 else
18838 ld_shlibs_CXX=no
18842 chorus*)
18843 case $cc_basename in
18845 # FIXME: insert proper C++ library support
18846 ld_shlibs_CXX=no
18848 esac
18851 cygwin* | mingw* | pw32* | cegcc*)
18852 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18853 # as there is no search path for DLLs.
18854 hardcode_libdir_flag_spec_CXX='-L$libdir'
18855 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18856 allow_undefined_flag_CXX=unsupported
18857 always_export_symbols_CXX=no
18858 enable_shared_with_static_runtimes_CXX=yes
18860 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18861 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'
18862 # If the export-symbols file already is a .def file (1st line
18863 # is EXPORTS), use it as is; otherwise, prepend...
18864 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18865 cp $export_symbols $output_objdir/$soname.def;
18866 else
18867 echo EXPORTS > $output_objdir/$soname.def;
18868 cat $export_symbols >> $output_objdir/$soname.def;
18870 $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'
18871 else
18872 ld_shlibs_CXX=no
18875 darwin* | rhapsody*)
18878 archive_cmds_need_lc_CXX=no
18879 hardcode_direct_CXX=no
18880 hardcode_automatic_CXX=yes
18881 hardcode_shlibpath_var_CXX=unsupported
18882 if test "$lt_cv_ld_force_load" = "yes"; then
18883 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\"`'
18884 else
18885 whole_archive_flag_spec_CXX=''
18887 link_all_deplibs_CXX=yes
18888 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18889 case $cc_basename in
18890 ifort*) _lt_dar_can_shared=yes ;;
18891 *) _lt_dar_can_shared=$GCC ;;
18892 esac
18893 if test "$_lt_dar_can_shared" = "yes"; then
18894 output_verbose_link_cmd=func_echo_all
18895 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}"
18896 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18897 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}"
18898 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}"
18899 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18900 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}"
18901 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}"
18904 else
18905 ld_shlibs_CXX=no
18910 dgux*)
18911 case $cc_basename in
18912 ec++*)
18913 # FIXME: insert proper C++ library support
18914 ld_shlibs_CXX=no
18916 ghcx*)
18917 # Green Hills C++ Compiler
18918 # FIXME: insert proper C++ library support
18919 ld_shlibs_CXX=no
18922 # FIXME: insert proper C++ library support
18923 ld_shlibs_CXX=no
18925 esac
18928 freebsd2.*)
18929 # C++ shared libraries reported to be fairly broken before
18930 # switch to ELF
18931 ld_shlibs_CXX=no
18934 freebsd-elf*)
18935 archive_cmds_need_lc_CXX=no
18938 freebsd* | dragonfly*)
18939 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18940 # conventions
18941 ld_shlibs_CXX=yes
18944 gnu*)
18947 haiku*)
18948 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18949 link_all_deplibs_CXX=yes
18952 hpux9*)
18953 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18954 hardcode_libdir_separator_CXX=:
18955 export_dynamic_flag_spec_CXX='${wl}-E'
18956 hardcode_direct_CXX=yes
18957 hardcode_minus_L_CXX=yes # Not in the search PATH,
18958 # but as the default
18959 # location of the library.
18961 case $cc_basename in
18962 CC*)
18963 # FIXME: insert proper C++ library support
18964 ld_shlibs_CXX=no
18966 aCC*)
18967 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'
18968 # Commands to make compiler produce verbose output that lists
18969 # what "hidden" libraries, object files and flags are used when
18970 # linking a shared library.
18972 # There doesn't appear to be a way to prevent this compiler from
18973 # explicitly linking system object files so we need to strip them
18974 # from the output so that they don't get included in the library
18975 # dependencies.
18976 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"'
18979 if test "$GXX" = yes; then
18980 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'
18981 else
18982 # FIXME: insert proper C++ library support
18983 ld_shlibs_CXX=no
18986 esac
18989 hpux10*|hpux11*)
18990 if test $with_gnu_ld = no; then
18991 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18992 hardcode_libdir_separator_CXX=:
18994 case $host_cpu in
18995 hppa*64*|ia64*)
18998 export_dynamic_flag_spec_CXX='${wl}-E'
19000 esac
19002 case $host_cpu in
19003 hppa*64*|ia64*)
19004 hardcode_direct_CXX=no
19005 hardcode_shlibpath_var_CXX=no
19008 hardcode_direct_CXX=yes
19009 hardcode_direct_absolute_CXX=yes
19010 hardcode_minus_L_CXX=yes # Not in the search PATH,
19011 # but as the default
19012 # location of the library.
19014 esac
19016 case $cc_basename in
19017 CC*)
19018 # FIXME: insert proper C++ library support
19019 ld_shlibs_CXX=no
19021 aCC*)
19022 case $host_cpu in
19023 hppa*64*)
19024 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19026 ia64*)
19027 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19030 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19032 esac
19033 # Commands to make compiler produce verbose output that lists
19034 # what "hidden" libraries, object files and flags are used when
19035 # linking a shared library.
19037 # There doesn't appear to be a way to prevent this compiler from
19038 # explicitly linking system object files so we need to strip them
19039 # from the output so that they don't get included in the library
19040 # dependencies.
19041 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"'
19044 if test "$GXX" = yes; then
19045 if test $with_gnu_ld = no; then
19046 case $host_cpu in
19047 hppa*64*)
19048 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050 ia64*)
19051 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19054 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'
19056 esac
19058 else
19059 # FIXME: insert proper C++ library support
19060 ld_shlibs_CXX=no
19063 esac
19066 interix[3-9]*)
19067 hardcode_direct_CXX=no
19068 hardcode_shlibpath_var_CXX=no
19069 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19070 export_dynamic_flag_spec_CXX='${wl}-E'
19071 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19072 # Instead, shared libraries are loaded at an image base (0x10000000 by
19073 # default) and relocated if they conflict, which is a slow very memory
19074 # consuming and fragmenting process. To avoid this, we pick a random,
19075 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19076 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19077 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'
19078 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'
19080 irix5* | irix6*)
19081 case $cc_basename in
19082 CC*)
19083 # SGI C++
19084 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'
19086 # Archives containing C++ object files must be created using
19087 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19088 # necessary to make sure instantiated templates are included
19089 # in the archive.
19090 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19093 if test "$GXX" = yes; then
19094 if test "$with_gnu_ld" = no; then
19095 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'
19096 else
19097 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'
19100 link_all_deplibs_CXX=yes
19102 esac
19103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19104 hardcode_libdir_separator_CXX=:
19105 inherit_rpath_CXX=yes
19108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19109 case $cc_basename in
19110 KCC*)
19111 # Kuck and Associates, Inc. (KAI) C++ Compiler
19113 # KCC will only create a shared library if the output file
19114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19115 # to its proper name (with version) after linking.
19116 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'
19117 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'
19118 # Commands to make compiler produce verbose output that lists
19119 # what "hidden" libraries, object files and flags are used when
19120 # linking a shared library.
19122 # There doesn't appear to be a way to prevent this compiler from
19123 # explicitly linking system object files so we need to strip them
19124 # from the output so that they don't get included in the library
19125 # dependencies.
19126 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"'
19128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19129 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19131 # Archives containing C++ object files must be created using
19132 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19133 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19135 icpc* | ecpc* )
19136 # Intel C++
19137 with_gnu_ld=yes
19138 # version 8.0 and above of icpc choke on multiply defined symbols
19139 # if we add $predep_objects and $postdep_objects, however 7.1 and
19140 # earlier do not add the objects themselves.
19141 case `$CC -V 2>&1` in
19142 *"Version 7."*)
19143 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19144 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'
19146 *) # Version 8.0 or newer
19147 tmp_idyn=
19148 case $host_cpu in
19149 ia64*) tmp_idyn=' -i_dynamic';;
19150 esac
19151 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19152 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'
19154 esac
19155 archive_cmds_need_lc_CXX=no
19156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19158 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19160 pgCC* | pgcpp*)
19161 # Portland Group C++ compiler
19162 case `$CC -V` in
19163 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19164 prelink_cmds_CXX='tpldir=Template.dir~
19165 rm -rf $tpldir~
19166 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19167 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19168 old_archive_cmds_CXX='tpldir=Template.dir~
19169 rm -rf $tpldir~
19170 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19171 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19172 $RANLIB $oldlib'
19173 archive_cmds_CXX='tpldir=Template.dir~
19174 rm -rf $tpldir~
19175 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19176 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19177 archive_expsym_cmds_CXX='tpldir=Template.dir~
19178 rm -rf $tpldir~
19179 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19180 $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'
19182 *) # Version 6 and above use weak symbols
19183 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19184 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'
19186 esac
19188 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19189 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19190 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'
19192 cxx*)
19193 # Compaq C++
19194 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19195 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'
19197 runpath_var=LD_RUN_PATH
19198 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19199 hardcode_libdir_separator_CXX=:
19201 # Commands to make compiler produce verbose output that lists
19202 # what "hidden" libraries, object files and flags are used when
19203 # linking a shared library.
19205 # There doesn't appear to be a way to prevent this compiler from
19206 # explicitly linking system object files so we need to strip them
19207 # from the output so that they don't get included in the library
19208 # dependencies.
19209 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'
19211 xl* | mpixl* | bgxl*)
19212 # IBM XL 8.0 on PPC, with GNU ld
19213 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19215 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19216 if test "x$supports_anon_versioning" = xyes; then
19217 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19218 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19219 echo "local: *; };" >> $output_objdir/$libname.ver~
19220 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19224 case `$CC -V 2>&1 | sed 5q` in
19225 *Sun\ C*)
19226 # Sun C++ 5.9
19227 no_undefined_flag_CXX=' -zdefs'
19228 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19229 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'
19230 hardcode_libdir_flag_spec_CXX='-R$libdir'
19231 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'
19232 compiler_needs_object_CXX=yes
19234 # Not sure whether something based on
19235 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19236 # would be better.
19237 output_verbose_link_cmd='func_echo_all'
19239 # Archives containing C++ object files must be created using
19240 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19241 # necessary to make sure instantiated templates are included
19242 # in the archive.
19243 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19245 esac
19247 esac
19250 lynxos*)
19251 # FIXME: insert proper C++ library support
19252 ld_shlibs_CXX=no
19255 m88k*)
19256 # FIXME: insert proper C++ library support
19257 ld_shlibs_CXX=no
19260 mvs*)
19261 case $cc_basename in
19262 cxx*)
19263 # FIXME: insert proper C++ library support
19264 ld_shlibs_CXX=no
19267 # FIXME: insert proper C++ library support
19268 ld_shlibs_CXX=no
19270 esac
19273 netbsd*)
19274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19275 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19276 wlarc=
19277 hardcode_libdir_flag_spec_CXX='-R$libdir'
19278 hardcode_direct_CXX=yes
19279 hardcode_shlibpath_var_CXX=no
19281 # Workaround some broken pre-1.5 toolchains
19282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19285 *nto* | *qnx*)
19286 ld_shlibs_CXX=yes
19289 openbsd2*)
19290 # C++ shared libraries are fairly broken
19291 ld_shlibs_CXX=no
19294 openbsd*)
19295 if test -f /usr/libexec/ld.so; then
19296 hardcode_direct_CXX=yes
19297 hardcode_shlibpath_var_CXX=no
19298 hardcode_direct_absolute_CXX=yes
19299 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19300 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19301 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19302 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19303 export_dynamic_flag_spec_CXX='${wl}-E'
19304 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19306 output_verbose_link_cmd=func_echo_all
19307 else
19308 ld_shlibs_CXX=no
19312 osf3* | osf4* | osf5*)
19313 case $cc_basename in
19314 KCC*)
19315 # Kuck and Associates, Inc. (KAI) C++ Compiler
19317 # KCC will only create a shared library if the output file
19318 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19319 # to its proper name (with version) after linking.
19320 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'
19322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19323 hardcode_libdir_separator_CXX=:
19325 # Archives containing C++ object files must be created using
19326 # the KAI C++ compiler.
19327 case $host in
19328 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19329 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19330 esac
19332 RCC*)
19333 # Rational C++ 2.4.1
19334 # FIXME: insert proper C++ library support
19335 ld_shlibs_CXX=no
19337 cxx*)
19338 case $host in
19339 osf3*)
19340 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19341 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'
19342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19345 allow_undefined_flag_CXX=' -expect_unresolved \*'
19346 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'
19347 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19348 echo "-hidden">> $lib.exp~
19349 $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~
19350 $RM $lib.exp'
19351 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19353 esac
19355 hardcode_libdir_separator_CXX=:
19357 # Commands to make compiler produce verbose output that lists
19358 # what "hidden" libraries, object files and flags are used when
19359 # linking a shared library.
19361 # There doesn't appear to be a way to prevent this compiler from
19362 # explicitly linking system object files so we need to strip them
19363 # from the output so that they don't get included in the library
19364 # dependencies.
19365 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"'
19368 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19369 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19370 case $host in
19371 osf3*)
19372 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'
19375 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'
19377 esac
19379 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19380 hardcode_libdir_separator_CXX=:
19382 # Commands to make compiler produce verbose output that lists
19383 # what "hidden" libraries, object files and flags are used when
19384 # linking a shared library.
19385 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19387 else
19388 # FIXME: insert proper C++ library support
19389 ld_shlibs_CXX=no
19392 esac
19395 psos*)
19396 # FIXME: insert proper C++ library support
19397 ld_shlibs_CXX=no
19400 sunos4*)
19401 case $cc_basename in
19402 CC*)
19403 # Sun C++ 4.x
19404 # FIXME: insert proper C++ library support
19405 ld_shlibs_CXX=no
19407 lcc*)
19408 # Lucid
19409 # FIXME: insert proper C++ library support
19410 ld_shlibs_CXX=no
19413 # FIXME: insert proper C++ library support
19414 ld_shlibs_CXX=no
19416 esac
19419 solaris*)
19420 case $cc_basename in
19421 CC*)
19422 # Sun C++ 4.2, 5.x and Centerline C++
19423 archive_cmds_need_lc_CXX=yes
19424 no_undefined_flag_CXX=' -zdefs'
19425 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19426 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19427 $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'
19429 hardcode_libdir_flag_spec_CXX='-R$libdir'
19430 hardcode_shlibpath_var_CXX=no
19431 case $host_os in
19432 solaris2.[0-5] | solaris2.[0-5].*) ;;
19434 # The compiler driver will combine and reorder linker options,
19435 # but understands `-z linker_flag'.
19436 # Supported since Solaris 2.6 (maybe 2.5.1?)
19437 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19439 esac
19440 link_all_deplibs_CXX=yes
19442 output_verbose_link_cmd='func_echo_all'
19444 # Archives containing C++ object files must be created using
19445 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19446 # necessary to make sure instantiated templates are included
19447 # in the archive.
19448 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19450 gcx*)
19451 # Green Hills C++ Compiler
19452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19454 # The C++ compiler must be used to create the archive.
19455 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19458 # GNU C++ compiler with Solaris linker
19459 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19460 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19461 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19462 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19463 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19464 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19466 # Commands to make compiler produce verbose output that lists
19467 # what "hidden" libraries, object files and flags are used when
19468 # linking a shared library.
19469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19470 else
19471 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19472 # platform.
19473 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19474 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19475 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19477 # Commands to make compiler produce verbose output that lists
19478 # what "hidden" libraries, object files and flags are used when
19479 # linking a shared library.
19480 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19483 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19484 case $host_os in
19485 solaris2.[0-5] | solaris2.[0-5].*) ;;
19487 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19489 esac
19492 esac
19495 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19496 no_undefined_flag_CXX='${wl}-z,text'
19497 archive_cmds_need_lc_CXX=no
19498 hardcode_shlibpath_var_CXX=no
19499 runpath_var='LD_RUN_PATH'
19501 case $cc_basename in
19502 CC*)
19503 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19504 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19507 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19508 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19510 esac
19513 sysv5* | sco3.2v5* | sco5v6*)
19514 # Note: We can NOT use -z defs as we might desire, because we do not
19515 # link with -lc, and that would cause any symbols used from libc to
19516 # always be unresolved, which means just about no library would
19517 # ever link correctly. If we're not using GNU ld we use -z text
19518 # though, which does catch some bad symbols but isn't as heavy-handed
19519 # as -z defs.
19520 no_undefined_flag_CXX='${wl}-z,text'
19521 allow_undefined_flag_CXX='${wl}-z,nodefs'
19522 archive_cmds_need_lc_CXX=no
19523 hardcode_shlibpath_var_CXX=no
19524 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19525 hardcode_libdir_separator_CXX=':'
19526 link_all_deplibs_CXX=yes
19527 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19528 runpath_var='LD_RUN_PATH'
19530 case $cc_basename in
19531 CC*)
19532 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19533 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19534 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19535 '"$old_archive_cmds_CXX"
19536 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19537 '"$reload_cmds_CXX"
19540 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19541 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19543 esac
19546 tandem*)
19547 case $cc_basename in
19548 NCC*)
19549 # NonStop-UX NCC 3.20
19550 # FIXME: insert proper C++ library support
19551 ld_shlibs_CXX=no
19554 # FIXME: insert proper C++ library support
19555 ld_shlibs_CXX=no
19557 esac
19560 vxworks*)
19561 # FIXME: insert proper C++ library support
19562 ld_shlibs_CXX=no
19566 # FIXME: insert proper C++ library support
19567 ld_shlibs_CXX=no
19569 esac
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19572 $as_echo "$ld_shlibs_CXX" >&6; }
19573 test "$ld_shlibs_CXX" = no && can_build_shared=no
19575 GCC_CXX="$GXX"
19576 LD_CXX="$LD"
19578 ## CAVEAT EMPTOR:
19579 ## There is no encapsulation within the following macros, do not change
19580 ## the running order or otherwise move them around unless you know exactly
19581 ## what you are doing...
19582 # Dependencies to place before and after the object being linked:
19583 predep_objects_CXX=
19584 postdep_objects_CXX=
19585 predeps_CXX=
19586 postdeps_CXX=
19587 compiler_lib_search_path_CXX=
19589 cat > conftest.$ac_ext <<_LT_EOF
19590 class Foo
19592 public:
19593 Foo (void) { a = 0; }
19594 private:
19595 int a;
19597 _LT_EOF
19599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19600 (eval $ac_compile) 2>&5
19601 ac_status=$?
19602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19603 test $ac_status = 0; }; then
19604 # Parse the compiler output and extract the necessary
19605 # objects, libraries and library flags.
19607 # Sentinel used to keep track of whether or not we are before
19608 # the conftest object file.
19609 pre_test_object_deps_done=no
19611 for p in `eval "$output_verbose_link_cmd"`; do
19612 case $p in
19614 -L* | -R* | -l*)
19615 # Some compilers place space between "-{L,R}" and the path.
19616 # Remove the space.
19617 if test $p = "-L" ||
19618 test $p = "-R"; then
19619 prev=$p
19620 continue
19621 else
19622 prev=
19625 if test "$pre_test_object_deps_done" = no; then
19626 case $p in
19627 -L* | -R*)
19628 # Internal compiler library paths should come after those
19629 # provided the user. The postdeps already come after the
19630 # user supplied libs so there is no need to process them.
19631 if test -z "$compiler_lib_search_path_CXX"; then
19632 compiler_lib_search_path_CXX="${prev}${p}"
19633 else
19634 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19637 # The "-l" case would never come before the object being
19638 # linked, so don't bother handling this case.
19639 esac
19640 else
19641 if test -z "$postdeps_CXX"; then
19642 postdeps_CXX="${prev}${p}"
19643 else
19644 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19649 *.$objext)
19650 # This assumes that the test object file only shows up
19651 # once in the compiler output.
19652 if test "$p" = "conftest.$objext"; then
19653 pre_test_object_deps_done=yes
19654 continue
19657 if test "$pre_test_object_deps_done" = no; then
19658 if test -z "$predep_objects_CXX"; then
19659 predep_objects_CXX="$p"
19660 else
19661 predep_objects_CXX="$predep_objects_CXX $p"
19663 else
19664 if test -z "$postdep_objects_CXX"; then
19665 postdep_objects_CXX="$p"
19666 else
19667 postdep_objects_CXX="$postdep_objects_CXX $p"
19672 *) ;; # Ignore the rest.
19674 esac
19675 done
19677 # Clean up.
19678 rm -f a.out a.exe
19679 else
19680 echo "libtool.m4: error: problem compiling CXX test program"
19683 $RM -f confest.$objext
19685 # PORTME: override above test on systems where it is broken
19686 case $host_os in
19687 interix[3-9]*)
19688 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19689 # hack all around it, let's just trust "g++" to DTRT.
19690 predep_objects_CXX=
19691 postdep_objects_CXX=
19692 postdeps_CXX=
19695 linux*)
19696 case `$CC -V 2>&1 | sed 5q` in
19697 *Sun\ C*)
19698 # Sun C++ 5.9
19700 # The more standards-conforming stlport4 library is
19701 # incompatible with the Cstd library. Avoid specifying
19702 # it if it's in CXXFLAGS. Ignore libCrun as
19703 # -library=stlport4 depends on it.
19704 case " $CXX $CXXFLAGS " in
19705 *" -library=stlport4 "*)
19706 solaris_use_stlport4=yes
19708 esac
19710 if test "$solaris_use_stlport4" != yes; then
19711 postdeps_CXX='-library=Cstd -library=Crun'
19714 esac
19717 solaris*)
19718 case $cc_basename in
19719 CC*)
19720 # The more standards-conforming stlport4 library is
19721 # incompatible with the Cstd library. Avoid specifying
19722 # it if it's in CXXFLAGS. Ignore libCrun as
19723 # -library=stlport4 depends on it.
19724 case " $CXX $CXXFLAGS " in
19725 *" -library=stlport4 "*)
19726 solaris_use_stlport4=yes
19728 esac
19730 # Adding this requires a known-good setup of shared libraries for
19731 # Sun compiler versions before 5.6, else PIC objects from an old
19732 # archive will be linked into the output, leading to subtle bugs.
19733 if test "$solaris_use_stlport4" != yes; then
19734 postdeps_CXX='-library=Cstd -library=Crun'
19737 esac
19739 esac
19742 case " $postdeps_CXX " in
19743 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19744 esac
19745 compiler_lib_search_dirs_CXX=
19746 if test -n "${compiler_lib_search_path_CXX}"; then
19747 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19780 lt_prog_compiler_wl_CXX=
19781 lt_prog_compiler_pic_CXX=
19782 lt_prog_compiler_static_CXX=
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19785 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19787 # C++ specific cases for pic, static, wl, etc.
19788 if test "$GXX" = yes; then
19789 lt_prog_compiler_wl_CXX='-Wl,'
19790 lt_prog_compiler_static_CXX='-static'
19792 case $host_os in
19793 aix*)
19794 # All AIX code is PIC.
19795 if test "$host_cpu" = ia64; then
19796 # AIX 5 now supports IA64 processor
19797 lt_prog_compiler_static_CXX='-Bstatic'
19799 lt_prog_compiler_pic_CXX='-fPIC'
19802 amigaos*)
19803 case $host_cpu in
19804 powerpc)
19805 # see comment about AmigaOS4 .so support
19806 lt_prog_compiler_pic_CXX='-fPIC'
19808 m68k)
19809 # FIXME: we need at least 68020 code to build shared libraries, but
19810 # adding the `-m68020' flag to GCC prevents building anything better,
19811 # like `-m68040'.
19812 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19814 esac
19817 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19818 # PIC is the default for these OSes.
19820 mingw* | cygwin* | os2* | pw32* | cegcc*)
19821 # This hack is so that the source file can tell whether it is being
19822 # built for inclusion in a dll (and should export symbols for example).
19823 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19824 # (--disable-auto-import) libraries
19825 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19827 darwin* | rhapsody*)
19828 # PIC is the default on this platform
19829 # Common symbols not allowed in MH_DYLIB files
19830 lt_prog_compiler_pic_CXX='-fno-common'
19832 *djgpp*)
19833 # DJGPP does not support shared libraries at all
19834 lt_prog_compiler_pic_CXX=
19836 haiku*)
19837 # PIC is the default for Haiku.
19838 # The "-static" flag exists, but is broken.
19839 lt_prog_compiler_static_CXX=
19841 interix[3-9]*)
19842 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19843 # Instead, we relocate shared libraries at runtime.
19845 sysv4*MP*)
19846 if test -d /usr/nec; then
19847 lt_prog_compiler_pic_CXX=-Kconform_pic
19850 hpux*)
19851 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19852 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19853 # sets the default TLS model and affects inlining.
19854 case $host_cpu in
19855 hppa*64*)
19858 lt_prog_compiler_pic_CXX='-fPIC'
19860 esac
19862 *qnx* | *nto*)
19863 # QNX uses GNU C++, but need to define -shared option too, otherwise
19864 # it will coredump.
19865 lt_prog_compiler_pic_CXX='-fPIC -shared'
19868 lt_prog_compiler_pic_CXX='-fPIC'
19870 esac
19871 else
19872 case $host_os in
19873 aix[4-9]*)
19874 # All AIX code is PIC.
19875 if test "$host_cpu" = ia64; then
19876 # AIX 5 now supports IA64 processor
19877 lt_prog_compiler_static_CXX='-Bstatic'
19878 else
19879 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19882 chorus*)
19883 case $cc_basename in
19884 cxch68*)
19885 # Green Hills C++ Compiler
19886 # _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"
19888 esac
19890 dgux*)
19891 case $cc_basename in
19892 ec++*)
19893 lt_prog_compiler_pic_CXX='-KPIC'
19895 ghcx*)
19896 # Green Hills C++ Compiler
19897 lt_prog_compiler_pic_CXX='-pic'
19901 esac
19903 freebsd* | dragonfly*)
19904 # FreeBSD uses GNU C++
19906 hpux9* | hpux10* | hpux11*)
19907 case $cc_basename in
19908 CC*)
19909 lt_prog_compiler_wl_CXX='-Wl,'
19910 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19911 if test "$host_cpu" != ia64; then
19912 lt_prog_compiler_pic_CXX='+Z'
19915 aCC*)
19916 lt_prog_compiler_wl_CXX='-Wl,'
19917 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19918 case $host_cpu in
19919 hppa*64*|ia64*)
19920 # +Z the default
19923 lt_prog_compiler_pic_CXX='+Z'
19925 esac
19929 esac
19931 interix*)
19932 # This is c89, which is MS Visual C++ (no shared libs)
19933 # Anyone wants to do a port?
19935 irix5* | irix6* | nonstopux*)
19936 case $cc_basename in
19937 CC*)
19938 lt_prog_compiler_wl_CXX='-Wl,'
19939 lt_prog_compiler_static_CXX='-non_shared'
19940 # CC pic flag -KPIC is the default.
19944 esac
19946 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19947 case $cc_basename in
19948 KCC*)
19949 # KAI C++ Compiler
19950 lt_prog_compiler_wl_CXX='--backend -Wl,'
19951 lt_prog_compiler_pic_CXX='-fPIC'
19953 ecpc* )
19954 # old Intel C++ for x86_64 which still supported -KPIC.
19955 lt_prog_compiler_wl_CXX='-Wl,'
19956 lt_prog_compiler_pic_CXX='-KPIC'
19957 lt_prog_compiler_static_CXX='-static'
19959 icpc* )
19960 # Intel C++, used to be incompatible with GCC.
19961 # ICC 10 doesn't accept -KPIC any more.
19962 lt_prog_compiler_wl_CXX='-Wl,'
19963 lt_prog_compiler_pic_CXX='-fPIC'
19964 lt_prog_compiler_static_CXX='-static'
19966 pgCC* | pgcpp*)
19967 # Portland Group C++ compiler
19968 lt_prog_compiler_wl_CXX='-Wl,'
19969 lt_prog_compiler_pic_CXX='-fpic'
19970 lt_prog_compiler_static_CXX='-Bstatic'
19972 cxx*)
19973 # Compaq C++
19974 # Make sure the PIC flag is empty. It appears that all Alpha
19975 # Linux and Compaq Tru64 Unix objects are PIC.
19976 lt_prog_compiler_pic_CXX=
19977 lt_prog_compiler_static_CXX='-non_shared'
19979 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19980 # IBM XL 8.0, 9.0 on PPC and BlueGene
19981 lt_prog_compiler_wl_CXX='-Wl,'
19982 lt_prog_compiler_pic_CXX='-qpic'
19983 lt_prog_compiler_static_CXX='-qstaticlink'
19986 case `$CC -V 2>&1 | sed 5q` in
19987 *Sun\ C*)
19988 # Sun C++ 5.9
19989 lt_prog_compiler_pic_CXX='-KPIC'
19990 lt_prog_compiler_static_CXX='-Bstatic'
19991 lt_prog_compiler_wl_CXX='-Qoption ld '
19993 esac
19995 esac
19997 lynxos*)
19999 m88k*)
20001 mvs*)
20002 case $cc_basename in
20003 cxx*)
20004 lt_prog_compiler_pic_CXX='-W c,exportall'
20008 esac
20010 netbsd*)
20012 *qnx* | *nto*)
20013 # QNX uses GNU C++, but need to define -shared option too, otherwise
20014 # it will coredump.
20015 lt_prog_compiler_pic_CXX='-fPIC -shared'
20017 osf3* | osf4* | osf5*)
20018 case $cc_basename in
20019 KCC*)
20020 lt_prog_compiler_wl_CXX='--backend -Wl,'
20022 RCC*)
20023 # Rational C++ 2.4.1
20024 lt_prog_compiler_pic_CXX='-pic'
20026 cxx*)
20027 # Digital/Compaq C++
20028 lt_prog_compiler_wl_CXX='-Wl,'
20029 # Make sure the PIC flag is empty. It appears that all Alpha
20030 # Linux and Compaq Tru64 Unix objects are PIC.
20031 lt_prog_compiler_pic_CXX=
20032 lt_prog_compiler_static_CXX='-non_shared'
20036 esac
20038 psos*)
20040 solaris*)
20041 case $cc_basename in
20042 CC*)
20043 # Sun C++ 4.2, 5.x and Centerline C++
20044 lt_prog_compiler_pic_CXX='-KPIC'
20045 lt_prog_compiler_static_CXX='-Bstatic'
20046 lt_prog_compiler_wl_CXX='-Qoption ld '
20048 gcx*)
20049 # Green Hills C++ Compiler
20050 lt_prog_compiler_pic_CXX='-PIC'
20054 esac
20056 sunos4*)
20057 case $cc_basename in
20058 CC*)
20059 # Sun C++ 4.x
20060 lt_prog_compiler_pic_CXX='-pic'
20061 lt_prog_compiler_static_CXX='-Bstatic'
20063 lcc*)
20064 # Lucid
20065 lt_prog_compiler_pic_CXX='-pic'
20069 esac
20071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20072 case $cc_basename in
20073 CC*)
20074 lt_prog_compiler_wl_CXX='-Wl,'
20075 lt_prog_compiler_pic_CXX='-KPIC'
20076 lt_prog_compiler_static_CXX='-Bstatic'
20078 esac
20080 tandem*)
20081 case $cc_basename in
20082 NCC*)
20083 # NonStop-UX NCC 3.20
20084 lt_prog_compiler_pic_CXX='-KPIC'
20088 esac
20090 vxworks*)
20093 lt_prog_compiler_can_build_shared_CXX=no
20095 esac
20098 case $host_os in
20099 # For platforms which do not support PIC, -DPIC is meaningless:
20100 *djgpp*)
20101 lt_prog_compiler_pic_CXX=
20104 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20106 esac
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20108 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20113 # Check to make sure the PIC flag actually works.
20115 if test -n "$lt_prog_compiler_pic_CXX"; then
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20117 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20118 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20119 $as_echo_n "(cached) " >&6
20120 else
20121 lt_cv_prog_compiler_pic_works_CXX=no
20122 ac_outfile=conftest.$ac_objext
20123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20124 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20125 # Insert the option either (1) after the last *FLAGS variable, or
20126 # (2) before a word containing "conftest.", or (3) at the end.
20127 # Note that $ac_compile itself does not contain backslashes and begins
20128 # with a dollar sign (not a hyphen), so the echo should work correctly.
20129 # The option is referenced via a variable to avoid confusing sed.
20130 lt_compile=`echo "$ac_compile" | $SED \
20131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20133 -e 's:$: $lt_compiler_flag:'`
20134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20135 (eval "$lt_compile" 2>conftest.err)
20136 ac_status=$?
20137 cat conftest.err >&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 if (exit $ac_status) && test -s "$ac_outfile"; then
20140 # The compiler can only warn and ignore the option if not recognized
20141 # So say no if there are warnings other than the usual output.
20142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20145 lt_cv_prog_compiler_pic_works_CXX=yes
20148 $RM conftest*
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20152 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20154 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20155 case $lt_prog_compiler_pic_CXX in
20156 "" | " "*) ;;
20157 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20158 esac
20159 else
20160 lt_prog_compiler_pic_CXX=
20161 lt_prog_compiler_can_build_shared_CXX=no
20169 # Check to make sure the static flag actually works.
20171 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20173 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20174 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20175 $as_echo_n "(cached) " >&6
20176 else
20177 lt_cv_prog_compiler_static_works_CXX=no
20178 save_LDFLAGS="$LDFLAGS"
20179 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20180 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20181 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20182 # The linker can only warn and ignore the option if not recognized
20183 # So say no if there are warnings
20184 if test -s conftest.err; then
20185 # Append any errors to the config.log.
20186 cat conftest.err 1>&5
20187 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20189 if diff conftest.exp conftest.er2 >/dev/null; then
20190 lt_cv_prog_compiler_static_works_CXX=yes
20192 else
20193 lt_cv_prog_compiler_static_works_CXX=yes
20196 $RM -r conftest*
20197 LDFLAGS="$save_LDFLAGS"
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20201 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20203 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20205 else
20206 lt_prog_compiler_static_CXX=
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20213 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20214 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20215 $as_echo_n "(cached) " >&6
20216 else
20217 lt_cv_prog_compiler_c_o_CXX=no
20218 $RM -r conftest 2>/dev/null
20219 mkdir conftest
20220 cd conftest
20221 mkdir out
20222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20224 lt_compiler_flag="-o out/conftest2.$ac_objext"
20225 # Insert the option either (1) after the last *FLAGS variable, or
20226 # (2) before a word containing "conftest.", or (3) at the end.
20227 # Note that $ac_compile itself does not contain backslashes and begins
20228 # with a dollar sign (not a hyphen), so the echo should work correctly.
20229 lt_compile=`echo "$ac_compile" | $SED \
20230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20232 -e 's:$: $lt_compiler_flag:'`
20233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20234 (eval "$lt_compile" 2>out/conftest.err)
20235 ac_status=$?
20236 cat out/conftest.err >&5
20237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20239 then
20240 # The compiler can only warn and ignore the option if not recognized
20241 # So say no if there are warnings
20242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20245 lt_cv_prog_compiler_c_o_CXX=yes
20248 chmod u+w . 2>&5
20249 $RM conftest*
20250 # SGI C++ compiler will create directory out/ii_files/ for
20251 # template instantiation
20252 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20253 $RM out/* && rmdir out
20254 cd ..
20255 $RM -r conftest
20256 $RM conftest*
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20260 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20265 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20266 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20267 $as_echo_n "(cached) " >&6
20268 else
20269 lt_cv_prog_compiler_c_o_CXX=no
20270 $RM -r conftest 2>/dev/null
20271 mkdir conftest
20272 cd conftest
20273 mkdir out
20274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20276 lt_compiler_flag="-o out/conftest2.$ac_objext"
20277 # Insert the option either (1) after the last *FLAGS variable, or
20278 # (2) before a word containing "conftest.", or (3) at the end.
20279 # Note that $ac_compile itself does not contain backslashes and begins
20280 # with a dollar sign (not a hyphen), so the echo should work correctly.
20281 lt_compile=`echo "$ac_compile" | $SED \
20282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20284 -e 's:$: $lt_compiler_flag:'`
20285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20286 (eval "$lt_compile" 2>out/conftest.err)
20287 ac_status=$?
20288 cat out/conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20291 then
20292 # The compiler can only warn and ignore the option if not recognized
20293 # So say no if there are warnings
20294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20297 lt_cv_prog_compiler_c_o_CXX=yes
20300 chmod u+w . 2>&5
20301 $RM conftest*
20302 # SGI C++ compiler will create directory out/ii_files/ for
20303 # template instantiation
20304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20305 $RM out/* && rmdir out
20306 cd ..
20307 $RM -r conftest
20308 $RM conftest*
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20312 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20317 hard_links="nottested"
20318 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20319 # do not overwrite the value of need_locks provided by the user
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20321 $as_echo_n "checking if we can lock with hard links... " >&6; }
20322 hard_links=yes
20323 $RM conftest*
20324 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20325 touch conftest.a
20326 ln conftest.a conftest.b 2>&5 || hard_links=no
20327 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20329 $as_echo "$hard_links" >&6; }
20330 if test "$hard_links" = no; then
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20332 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20333 need_locks=warn
20335 else
20336 need_locks=no
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20342 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20344 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20345 case $host_os in
20346 aix[4-9]*)
20347 # If we're using GNU nm, then we don't want the "-C" option.
20348 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20349 # Also, AIX nm treats weak defined symbols like other global defined
20350 # symbols, whereas GNU nm marks them as "W".
20351 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20352 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'
20353 else
20354 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'
20357 pw32*)
20358 export_symbols_cmds_CXX="$ltdll_cmds"
20360 cygwin* | mingw* | cegcc*)
20361 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'
20364 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20366 esac
20367 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20370 $as_echo "$ld_shlibs_CXX" >&6; }
20371 test "$ld_shlibs_CXX" = no && can_build_shared=no
20373 with_gnu_ld_CXX=$with_gnu_ld
20381 # Do we need to explicitly link libc?
20383 case "x$archive_cmds_need_lc_CXX" in
20384 x|xyes)
20385 # Assume -lc should be added
20386 archive_cmds_need_lc_CXX=yes
20388 if test "$enable_shared" = yes && test "$GCC" = yes; then
20389 case $archive_cmds_CXX in
20390 *'~'*)
20391 # FIXME: we may have to deal with multi-command sequences.
20393 '$CC '*)
20394 # Test whether the compiler implicitly links with -lc since on some
20395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20396 # to ld, don't add -lc before -lgcc.
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20398 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20399 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20400 $as_echo_n "(cached) " >&6
20401 else
20402 $RM conftest*
20403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20406 (eval $ac_compile) 2>&5
20407 ac_status=$?
20408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20409 test $ac_status = 0; } 2>conftest.err; then
20410 soname=conftest
20411 lib=conftest
20412 libobjs=conftest.$ac_objext
20413 deplibs=
20414 wl=$lt_prog_compiler_wl_CXX
20415 pic_flag=$lt_prog_compiler_pic_CXX
20416 compiler_flags=-v
20417 linker_flags=-v
20418 verstring=
20419 output_objdir=.
20420 libname=conftest
20421 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20422 allow_undefined_flag_CXX=
20423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20424 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20425 ac_status=$?
20426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20427 test $ac_status = 0; }
20428 then
20429 lt_cv_archive_cmds_need_lc_CXX=no
20430 else
20431 lt_cv_archive_cmds_need_lc_CXX=yes
20433 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20434 else
20435 cat conftest.err 1>&5
20437 $RM conftest*
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20441 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20442 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20444 esac
20447 esac
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20513 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20515 library_names_spec=
20516 libname_spec='lib$name'
20517 soname_spec=
20518 shrext_cmds=".so"
20519 postinstall_cmds=
20520 postuninstall_cmds=
20521 finish_cmds=
20522 finish_eval=
20523 shlibpath_var=
20524 shlibpath_overrides_runpath=unknown
20525 version_type=none
20526 dynamic_linker="$host_os ld.so"
20527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20528 need_lib_prefix=unknown
20529 hardcode_into_libs=no
20531 # when you set need_version to no, make sure it does not cause -set_version
20532 # flags to be left without arguments
20533 need_version=unknown
20535 case $host_os in
20536 aix3*)
20537 version_type=linux
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20539 shlibpath_var=LIBPATH
20541 # AIX 3 has no versioning support, so we append a major version to the name.
20542 soname_spec='${libname}${release}${shared_ext}$major'
20545 aix[4-9]*)
20546 version_type=linux
20547 need_lib_prefix=no
20548 need_version=no
20549 hardcode_into_libs=yes
20550 if test "$host_cpu" = ia64; then
20551 # AIX 5 supports IA64
20552 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20553 shlibpath_var=LD_LIBRARY_PATH
20554 else
20555 # With GCC up to 2.95.x, collect2 would create an import file
20556 # for dependence libraries. The import file would start with
20557 # the line `#! .'. This would cause the generated library to
20558 # depend on `.', always an invalid library. This was fixed in
20559 # development snapshots of GCC prior to 3.0.
20560 case $host_os in
20561 aix4 | aix4.[01] | aix4.[01].*)
20562 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20563 echo ' yes '
20564 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20566 else
20567 can_build_shared=no
20570 esac
20571 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20572 # soname into executable. Probably we can add versioning support to
20573 # collect2, so additional links can be useful in future.
20574 if test "$aix_use_runtimelinking" = yes; then
20575 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20576 # instead of lib<name>.a to let people know that these are not
20577 # typical AIX shared libraries.
20578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 else
20580 # We preserve .a as extension for shared libraries through AIX4.2
20581 # and later when we are not doing run time linking.
20582 library_names_spec='${libname}${release}.a $libname.a'
20583 soname_spec='${libname}${release}${shared_ext}$major'
20585 shlibpath_var=LIBPATH
20589 amigaos*)
20590 case $host_cpu in
20591 powerpc)
20592 # Since July 2007 AmigaOS4 officially supports .so libraries.
20593 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20596 m68k)
20597 library_names_spec='$libname.ixlibrary $libname.a'
20598 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20599 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'
20601 esac
20604 beos*)
20605 library_names_spec='${libname}${shared_ext}'
20606 dynamic_linker="$host_os ld.so"
20607 shlibpath_var=LIBRARY_PATH
20610 bsdi[45]*)
20611 version_type=linux
20612 need_version=no
20613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614 soname_spec='${libname}${release}${shared_ext}$major'
20615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20616 shlibpath_var=LD_LIBRARY_PATH
20617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20619 # the default ld.so.conf also contains /usr/contrib/lib and
20620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20621 # libtool to hard-code these into programs
20624 cygwin* | mingw* | pw32* | cegcc*)
20625 version_type=windows
20626 shrext_cmds=".dll"
20627 need_version=no
20628 need_lib_prefix=no
20630 case $GCC,$host_os in
20631 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20632 library_names_spec='$libname.dll.a'
20633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20634 postinstall_cmds='base_file=`basename \${file}`~
20635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20636 dldir=$destdir/`dirname \$dlpath`~
20637 test -d \$dldir || mkdir -p \$dldir~
20638 $install_prog $dir/$dlname \$dldir/$dlname~
20639 chmod a+x \$dldir/$dlname~
20640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20644 dlpath=$dir/\$dldll~
20645 $RM \$dlpath'
20646 shlibpath_overrides_runpath=yes
20648 case $host_os in
20649 cygwin*)
20650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20651 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20654 mingw* | cegcc*)
20655 # MinGW DLLs use traditional 'lib' prefix
20656 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20658 pw32*)
20659 # pw32 DLLs use 'pw' prefix rather than 'lib'
20660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20662 esac
20666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20668 esac
20669 dynamic_linker='Win32 ld.exe'
20670 # FIXME: first we should search . and the directory the executable is in
20671 shlibpath_var=PATH
20674 darwin* | rhapsody*)
20675 dynamic_linker="$host_os dyld"
20676 version_type=darwin
20677 need_lib_prefix=no
20678 need_version=no
20679 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20680 soname_spec='${libname}${release}${major}$shared_ext'
20681 shlibpath_overrides_runpath=yes
20682 shlibpath_var=DYLD_LIBRARY_PATH
20683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20685 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20688 dgux*)
20689 version_type=linux
20690 need_lib_prefix=no
20691 need_version=no
20692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20693 soname_spec='${libname}${release}${shared_ext}$major'
20694 shlibpath_var=LD_LIBRARY_PATH
20697 freebsd* | dragonfly*)
20698 # DragonFly does not have aout. When/if they implement a new
20699 # versioning mechanism, adjust this.
20700 if test -x /usr/bin/objformat; then
20701 objformat=`/usr/bin/objformat`
20702 else
20703 case $host_os in
20704 freebsd[23].*) objformat=aout ;;
20705 *) objformat=elf ;;
20706 esac
20708 version_type=freebsd-$objformat
20709 case $version_type in
20710 freebsd-elf*)
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20712 need_version=no
20713 need_lib_prefix=no
20715 freebsd-*)
20716 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20717 need_version=yes
20719 esac
20720 shlibpath_var=LD_LIBRARY_PATH
20721 case $host_os in
20722 freebsd2.*)
20723 shlibpath_overrides_runpath=yes
20725 freebsd3.[01]* | freebsdelf3.[01]*)
20726 shlibpath_overrides_runpath=yes
20727 hardcode_into_libs=yes
20729 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20730 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20731 shlibpath_overrides_runpath=no
20732 hardcode_into_libs=yes
20734 *) # from 4.6 on, and DragonFly
20735 shlibpath_overrides_runpath=yes
20736 hardcode_into_libs=yes
20738 esac
20741 gnu*)
20742 version_type=linux
20743 need_lib_prefix=no
20744 need_version=no
20745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20746 soname_spec='${libname}${release}${shared_ext}$major'
20747 shlibpath_var=LD_LIBRARY_PATH
20748 hardcode_into_libs=yes
20751 haiku*)
20752 version_type=linux
20753 need_lib_prefix=no
20754 need_version=no
20755 dynamic_linker="$host_os runtime_loader"
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20757 soname_spec='${libname}${release}${shared_ext}$major'
20758 shlibpath_var=LIBRARY_PATH
20759 shlibpath_overrides_runpath=yes
20760 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20761 hardcode_into_libs=yes
20764 hpux9* | hpux10* | hpux11*)
20765 # Give a soname corresponding to the major version so that dld.sl refuses to
20766 # link against other versions.
20767 version_type=sunos
20768 need_lib_prefix=no
20769 need_version=no
20770 case $host_cpu in
20771 ia64*)
20772 shrext_cmds='.so'
20773 hardcode_into_libs=yes
20774 dynamic_linker="$host_os dld.so"
20775 shlibpath_var=LD_LIBRARY_PATH
20776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778 soname_spec='${libname}${release}${shared_ext}$major'
20779 if test "X$HPUX_IA64_MODE" = X32; then
20780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20781 else
20782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20786 hppa*64*)
20787 shrext_cmds='.sl'
20788 hardcode_into_libs=yes
20789 dynamic_linker="$host_os dld.sl"
20790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20793 soname_spec='${libname}${release}${shared_ext}$major'
20794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20798 shrext_cmds='.sl'
20799 dynamic_linker="$host_os dld.sl"
20800 shlibpath_var=SHLIB_PATH
20801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20803 soname_spec='${libname}${release}${shared_ext}$major'
20805 esac
20806 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20807 postinstall_cmds='chmod 555 $lib'
20808 # or fails outright, so override atomically:
20809 install_override_mode=555
20812 interix[3-9]*)
20813 version_type=linux
20814 need_lib_prefix=no
20815 need_version=no
20816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20817 soname_spec='${libname}${release}${shared_ext}$major'
20818 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20819 shlibpath_var=LD_LIBRARY_PATH
20820 shlibpath_overrides_runpath=no
20821 hardcode_into_libs=yes
20824 irix5* | irix6* | nonstopux*)
20825 case $host_os in
20826 nonstopux*) version_type=nonstopux ;;
20828 if test "$lt_cv_prog_gnu_ld" = yes; then
20829 version_type=linux
20830 else
20831 version_type=irix
20832 fi ;;
20833 esac
20834 need_lib_prefix=no
20835 need_version=no
20836 soname_spec='${libname}${release}${shared_ext}$major'
20837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20838 case $host_os in
20839 irix5* | nonstopux*)
20840 libsuff= shlibsuff=
20843 case $LD in # libtool.m4 will add one of these switches to LD
20844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20845 libsuff= shlibsuff= libmagic=32-bit;;
20846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20847 libsuff=32 shlibsuff=N32 libmagic=N32;;
20848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20849 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20850 *) libsuff= shlibsuff= libmagic=never-match;;
20851 esac
20853 esac
20854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20855 shlibpath_overrides_runpath=no
20856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20858 hardcode_into_libs=yes
20861 # No shared lib support for Linux oldld, aout, or coff.
20862 linux*oldld* | linux*aout* | linux*coff*)
20863 dynamic_linker=no
20866 # This must be Linux ELF.
20867 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20868 version_type=linux
20869 need_lib_prefix=no
20870 need_version=no
20871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20872 soname_spec='${libname}${release}${shared_ext}$major'
20873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20874 shlibpath_var=LD_LIBRARY_PATH
20875 shlibpath_overrides_runpath=no
20877 # Some binutils ld are patched to set DT_RUNPATH
20878 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20879 $as_echo_n "(cached) " >&6
20880 else
20881 lt_cv_shlibpath_overrides_runpath=no
20882 save_LDFLAGS=$LDFLAGS
20883 save_libdir=$libdir
20884 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20885 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20887 /* end confdefs.h. */
20890 main ()
20894 return 0;
20896 _ACEOF
20897 if ac_fn_cxx_try_link "$LINENO"; then :
20898 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20899 lt_cv_shlibpath_overrides_runpath=yes
20902 rm -f core conftest.err conftest.$ac_objext \
20903 conftest$ac_exeext conftest.$ac_ext
20904 LDFLAGS=$save_LDFLAGS
20905 libdir=$save_libdir
20909 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20911 # This implies no fast_install, which is unacceptable.
20912 # Some rework will be needed to allow for fast_install
20913 # before this can be enabled.
20914 hardcode_into_libs=yes
20916 # Append ld.so.conf contents to the search path
20917 if test -f /etc/ld.so.conf; then
20918 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' ' '`
20919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20922 # We used to test for /lib/ld.so.1 and disable shared libraries on
20923 # powerpc, because MkLinux only supported shared libraries with the
20924 # GNU dynamic linker. Since this was broken with cross compilers,
20925 # most powerpc-linux boxes support dynamic linking these days and
20926 # people can always --disable-shared, the test was removed, and we
20927 # assume the GNU/Linux dynamic linker is in use.
20928 dynamic_linker='GNU/Linux ld.so'
20931 netbsd*)
20932 version_type=sunos
20933 need_lib_prefix=no
20934 need_version=no
20935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20938 dynamic_linker='NetBSD (a.out) ld.so'
20939 else
20940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20941 soname_spec='${libname}${release}${shared_ext}$major'
20942 dynamic_linker='NetBSD ld.elf_so'
20944 shlibpath_var=LD_LIBRARY_PATH
20945 shlibpath_overrides_runpath=yes
20946 hardcode_into_libs=yes
20949 newsos6)
20950 version_type=linux
20951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20952 shlibpath_var=LD_LIBRARY_PATH
20953 shlibpath_overrides_runpath=yes
20956 *nto* | *qnx*)
20957 version_type=qnx
20958 need_lib_prefix=no
20959 need_version=no
20960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961 soname_spec='${libname}${release}${shared_ext}$major'
20962 shlibpath_var=LD_LIBRARY_PATH
20963 shlibpath_overrides_runpath=no
20964 hardcode_into_libs=yes
20965 dynamic_linker='ldqnx.so'
20968 openbsd*)
20969 version_type=sunos
20970 sys_lib_dlsearch_path_spec="/usr/lib"
20971 need_lib_prefix=no
20972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20973 case $host_os in
20974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20975 *) need_version=no ;;
20976 esac
20977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20979 shlibpath_var=LD_LIBRARY_PATH
20980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20981 case $host_os in
20982 openbsd2.[89] | openbsd2.[89].*)
20983 shlibpath_overrides_runpath=no
20986 shlibpath_overrides_runpath=yes
20988 esac
20989 else
20990 shlibpath_overrides_runpath=yes
20994 os2*)
20995 libname_spec='$name'
20996 shrext_cmds=".dll"
20997 need_lib_prefix=no
20998 library_names_spec='$libname${shared_ext} $libname.a'
20999 dynamic_linker='OS/2 ld.exe'
21000 shlibpath_var=LIBPATH
21003 osf3* | osf4* | osf5*)
21004 version_type=osf
21005 need_lib_prefix=no
21006 need_version=no
21007 soname_spec='${libname}${release}${shared_ext}$major'
21008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21009 shlibpath_var=LD_LIBRARY_PATH
21010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21014 rdos*)
21015 dynamic_linker=no
21018 solaris*)
21019 version_type=linux
21020 need_lib_prefix=no
21021 need_version=no
21022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21023 soname_spec='${libname}${release}${shared_ext}$major'
21024 shlibpath_var=LD_LIBRARY_PATH
21025 shlibpath_overrides_runpath=yes
21026 hardcode_into_libs=yes
21027 # ldd complains unless libraries are executable
21028 postinstall_cmds='chmod +x $lib'
21031 sunos4*)
21032 version_type=sunos
21033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21035 shlibpath_var=LD_LIBRARY_PATH
21036 shlibpath_overrides_runpath=yes
21037 if test "$with_gnu_ld" = yes; then
21038 need_lib_prefix=no
21040 need_version=yes
21043 sysv4 | sysv4.3*)
21044 version_type=linux
21045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21046 soname_spec='${libname}${release}${shared_ext}$major'
21047 shlibpath_var=LD_LIBRARY_PATH
21048 case $host_vendor in
21049 sni)
21050 shlibpath_overrides_runpath=no
21051 need_lib_prefix=no
21052 runpath_var=LD_RUN_PATH
21054 siemens)
21055 need_lib_prefix=no
21057 motorola)
21058 need_lib_prefix=no
21059 need_version=no
21060 shlibpath_overrides_runpath=no
21061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21063 esac
21066 sysv4*MP*)
21067 if test -d /usr/nec ;then
21068 version_type=linux
21069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21070 soname_spec='$libname${shared_ext}.$major'
21071 shlibpath_var=LD_LIBRARY_PATH
21075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21076 version_type=freebsd-elf
21077 need_lib_prefix=no
21078 need_version=no
21079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21080 soname_spec='${libname}${release}${shared_ext}$major'
21081 shlibpath_var=LD_LIBRARY_PATH
21082 shlibpath_overrides_runpath=yes
21083 hardcode_into_libs=yes
21084 if test "$with_gnu_ld" = yes; then
21085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21086 else
21087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21088 case $host_os in
21089 sco3.2v5*)
21090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21092 esac
21094 sys_lib_dlsearch_path_spec='/usr/lib'
21097 tpf*)
21098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21099 version_type=linux
21100 need_lib_prefix=no
21101 need_version=no
21102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21103 shlibpath_var=LD_LIBRARY_PATH
21104 shlibpath_overrides_runpath=no
21105 hardcode_into_libs=yes
21108 uts4*)
21109 version_type=linux
21110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21111 soname_spec='${libname}${release}${shared_ext}$major'
21112 shlibpath_var=LD_LIBRARY_PATH
21116 dynamic_linker=no
21118 esac
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21120 $as_echo "$dynamic_linker" >&6; }
21121 test "$dynamic_linker" = no && can_build_shared=no
21123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21124 if test "$GCC" = yes; then
21125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21173 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21174 hardcode_action_CXX=
21175 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21176 test -n "$runpath_var_CXX" ||
21177 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21179 # We can hardcode non-existent directories.
21180 if test "$hardcode_direct_CXX" != no &&
21181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21182 # have to relink, otherwise we might link with an installed library
21183 # when we should be linking with a yet-to-be-installed one
21184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21185 test "$hardcode_minus_L_CXX" != no; then
21186 # Linking always hardcodes the temporary library directory.
21187 hardcode_action_CXX=relink
21188 else
21189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21190 hardcode_action_CXX=immediate
21192 else
21193 # We cannot hardcode anything, or else we can only hardcode existing
21194 # directories.
21195 hardcode_action_CXX=unsupported
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21198 $as_echo "$hardcode_action_CXX" >&6; }
21200 if test "$hardcode_action_CXX" = relink ||
21201 test "$inherit_rpath_CXX" = yes; then
21202 # Fast installation is not supported
21203 enable_fast_install=no
21204 elif test "$shlibpath_overrides_runpath" = yes ||
21205 test "$enable_shared" = no; then
21206 # Fast installation is not necessary
21207 enable_fast_install=needless
21216 fi # test -n "$compiler"
21218 CC=$lt_save_CC
21219 LDCXX=$LD
21220 LD=$lt_save_LD
21221 GCC=$lt_save_GCC
21222 with_gnu_ld=$lt_save_with_gnu_ld
21223 lt_cv_path_LDCXX=$lt_cv_path_LD
21224 lt_cv_path_LD=$lt_save_path_LD
21225 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21226 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21227 fi # test "$_lt_caught_CXX_error" != yes
21229 ac_ext=c
21230 ac_cpp='$CPP $CPPFLAGS'
21231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21250 # Only expand once:
21256 # Identify the assembler which will work hand-in-glove with the newly
21257 # built GCC, so that we can examine its features. This is the assembler
21258 # which will be driven by the driver program.
21260 # If build != host, and we aren't building gas in-tree, we identify a
21261 # build->target assembler and hope that it will have the same features
21262 # as the host->target assembler we'll be using.
21263 gcc_cv_gas_major_version=
21264 gcc_cv_gas_minor_version=
21265 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21267 if test "${gcc_cv_as+set}" = set; then :
21269 else
21271 if test -x "$DEFAULT_ASSEMBLER"; then
21272 gcc_cv_as="$DEFAULT_ASSEMBLER"
21273 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21274 && test -f ../gas/Makefile \
21275 && test x$build = x$host; then
21276 gcc_cv_as=../gas/as-new$build_exeext
21277 elif test -x as$build_exeext; then
21278 # Build using assembler in the current directory.
21279 gcc_cv_as=./as$build_exeext
21280 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21281 gcc_cv_as="$AS_FOR_TARGET"
21282 else
21283 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21284 set dummy $AS_FOR_TARGET; ac_word=$2
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21286 $as_echo_n "checking for $ac_word... " >&6; }
21287 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21288 $as_echo_n "(cached) " >&6
21289 else
21290 case $gcc_cv_as in
21291 [\\/]* | ?:[\\/]*)
21292 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21296 for as_dir in $PATH
21298 IFS=$as_save_IFS
21299 test -z "$as_dir" && as_dir=.
21300 for ac_exec_ext in '' $ac_executable_extensions; do
21301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21302 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21304 break 2
21306 done
21307 done
21308 IFS=$as_save_IFS
21311 esac
21313 gcc_cv_as=$ac_cv_path_gcc_cv_as
21314 if test -n "$gcc_cv_as"; then
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21316 $as_echo "$gcc_cv_as" >&6; }
21317 else
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21319 $as_echo "no" >&6; }
21326 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21328 case "$ORIGINAL_AS_FOR_TARGET" in
21329 ./as | ./as$build_exeext) ;;
21330 *) ac_config_files="$ac_config_files as:exec-tool.in"
21332 esac
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21335 $as_echo_n "checking what assembler to use... " >&6; }
21336 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21337 # Single tree build which includes gas. We want to prefer it
21338 # over whatever linker top-level may have detected, since
21339 # we'll use what we're building after installation anyway.
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21341 $as_echo "newly built gas" >&6; }
21342 in_tree_gas=yes
21343 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21344 for f in $gcc_cv_as_bfd_srcdir/configure \
21345 $gcc_cv_as_gas_srcdir/configure \
21346 $gcc_cv_as_gas_srcdir/configure.in \
21347 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21348 gcc_cv_gas_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21349 if test x$gcc_cv_gas_version != x; then
21350 break
21352 done
21353 case $gcc_cv_gas_version in
21354 VERSION=[0-9]*) ;;
21355 *) as_fn_error "cannot find version of in-tree assembler" "$LINENO" 5;;
21356 esac
21357 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21358 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21359 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21360 case $gcc_cv_gas_patch_version in
21361 "") gcc_cv_gas_patch_version="0" ;;
21362 esac
21363 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21364 + $gcc_cv_gas_minor_version \) \* 1000 \
21365 + $gcc_cv_gas_patch_version`
21367 in_tree_gas_is_elf=no
21368 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21369 || (grep 'obj_format = multi' ../gas/Makefile \
21370 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21371 then
21372 in_tree_gas_is_elf=yes
21374 else
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21376 $as_echo "$gcc_cv_as" >&6; }
21377 in_tree_gas=no
21380 # Identify the linker which will work hand-in-glove with the newly
21381 # built GCC, so that we can examine its features. This is the linker
21382 # which will be driven by the driver program.
21384 # If build != host, and we aren't building gas in-tree, we identify a
21385 # build->target linker and hope that it will have the same features
21386 # as the host->target linker we'll be using.
21387 gcc_cv_gld_major_version=
21388 gcc_cv_gld_minor_version=
21389 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21390 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21392 if test "${gcc_cv_ld+set}" = set; then :
21394 else
21396 if test -x "$DEFAULT_LINKER"; then
21397 gcc_cv_ld="$DEFAULT_LINKER"
21398 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21399 && test -f ../ld/Makefile \
21400 && test x$build = x$host; then
21401 gcc_cv_ld=../ld/ld-new$build_exeext
21402 elif test -x collect-ld$build_exeext; then
21403 # Build using linker in the current directory.
21404 gcc_cv_ld=./collect-ld$build_exeext
21405 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21406 gcc_cv_ld="$LD_FOR_TARGET"
21407 else
21408 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21409 set dummy $LD_FOR_TARGET; ac_word=$2
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21411 $as_echo_n "checking for $ac_word... " >&6; }
21412 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21413 $as_echo_n "(cached) " >&6
21414 else
21415 case $gcc_cv_ld in
21416 [\\/]* | ?:[\\/]*)
21417 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21421 for as_dir in $PATH
21423 IFS=$as_save_IFS
21424 test -z "$as_dir" && as_dir=.
21425 for ac_exec_ext in '' $ac_executable_extensions; do
21426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21427 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21429 break 2
21431 done
21432 done
21433 IFS=$as_save_IFS
21436 esac
21438 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21439 if test -n "$gcc_cv_ld"; then
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21441 $as_echo "$gcc_cv_ld" >&6; }
21442 else
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21444 $as_echo "no" >&6; }
21451 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21452 PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21453 # if the PLUGIN_LD is set ld-new, just have it as ld
21454 # as that is the installed named.
21455 if test x$PLUGIN_LD_SUFFIX = xld-new \
21456 || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
21457 PLUGIN_LD_SUFFIX=ld
21460 # Check whether --with-plugin-ld was given.
21461 if test "${with_plugin_ld+set}" = set; then :
21462 withval=$with_plugin_ld; if test x"$withval" != x; then
21463 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21464 PLUGIN_LD_SUFFIX=`echo $withval | sed -e "s,$target_alias-,,"`
21470 cat >>confdefs.h <<_ACEOF
21471 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21472 _ACEOF
21475 # Check to see if we are using gold instead of ld
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21477 $as_echo_n "checking whether we are using gold... " >&6; }
21478 ld_is_gold=no
21479 if test x$gcc_cv_ld != x; then
21480 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21481 | grep "GNU gold" > /dev/null; then
21482 ld_is_gold=yes
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21486 $as_echo "$ld_is_gold" >&6; }
21488 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21490 case "$ORIGINAL_LD_FOR_TARGET" in
21491 ./collect-ld | ./collect-ld$build_exeext) ;;
21492 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21494 esac
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21497 $as_echo_n "checking what linker to use... " >&6; }
21498 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21499 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21500 # Single tree build which includes ld. We want to prefer it
21501 # over whatever linker top-level may have detected, since
21502 # we'll use what we're building after installation anyway.
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21504 $as_echo "newly built ld" >&6; }
21505 in_tree_ld=yes
21506 in_tree_ld_is_elf=no
21507 if (grep 'EMUL = .*elf' ../ld/Makefile \
21508 || grep 'EMUL = .*linux' ../ld/Makefile \
21509 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21510 in_tree_ld_is_elf=yes
21511 elif test "$ld_is_gold" = yes; then
21512 in_tree_ld_is_elf=yes
21514 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
21516 gcc_cv_gld_version=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21517 if test x$gcc_cv_gld_version != x; then
21518 break
21520 done
21521 case $gcc_cv_gld_version in
21522 VERSION=[0-9]*) ;;
21523 *) as_fn_error "cannot find version of in-tree linker" "$LINENO" 5 ;;
21524 esac
21525 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21526 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21527 else
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21529 $as_echo "$gcc_cv_ld" >&6; }
21530 in_tree_ld=no
21533 # Figure out what nm we will be using.
21534 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21535 if test "${gcc_cv_nm+set}" = set; then :
21537 else
21539 if test -f $gcc_cv_binutils_srcdir/configure.in \
21540 && test -f ../binutils/Makefile \
21541 && test x$build = x$host; then
21542 gcc_cv_nm=../binutils/nm-new$build_exeext
21543 elif test -x nm$build_exeext; then
21544 gcc_cv_nm=./nm$build_exeext
21545 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21546 gcc_cv_nm="$NM_FOR_TARGET"
21547 else
21548 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21549 set dummy $NM_FOR_TARGET; ac_word=$2
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21551 $as_echo_n "checking for $ac_word... " >&6; }
21552 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21553 $as_echo_n "(cached) " >&6
21554 else
21555 case $gcc_cv_nm in
21556 [\\/]* | ?:[\\/]*)
21557 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21561 for as_dir in $PATH
21563 IFS=$as_save_IFS
21564 test -z "$as_dir" && as_dir=.
21565 for ac_exec_ext in '' $ac_executable_extensions; do
21566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21567 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21569 break 2
21571 done
21572 done
21573 IFS=$as_save_IFS
21576 esac
21578 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21579 if test -n "$gcc_cv_nm"; then
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21581 $as_echo "$gcc_cv_nm" >&6; }
21582 else
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21584 $as_echo "no" >&6; }
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21592 $as_echo_n "checking what nm to use... " >&6; }
21593 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21594 # Single tree build which includes binutils.
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21596 $as_echo "newly built nm" >&6; }
21597 in_tree_nm=yes
21598 else
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21600 $as_echo "$gcc_cv_nm" >&6; }
21601 in_tree_nm=no
21604 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21606 case "$ORIGINAL_NM_FOR_TARGET" in
21607 ./nm | ./nm$build_exeext) ;;
21608 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21610 esac
21613 # Figure out what objdump we will be using.
21614 if test "${gcc_cv_objdump+set}" = set; then :
21616 else
21618 if test -f $gcc_cv_binutils_srcdir/configure.in \
21619 && test -f ../binutils/Makefile \
21620 && test x$build = x$host; then
21621 # Single tree build which includes binutils.
21622 gcc_cv_objdump=../binutils/objdump$build_exeext
21623 elif test -x objdump$build_exeext; then
21624 gcc_cv_objdump=./objdump$build_exeext
21625 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21626 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21627 else
21628 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21629 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21631 $as_echo_n "checking for $ac_word... " >&6; }
21632 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21633 $as_echo_n "(cached) " >&6
21634 else
21635 case $gcc_cv_objdump in
21636 [\\/]* | ?:[\\/]*)
21637 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21641 for as_dir in $PATH
21643 IFS=$as_save_IFS
21644 test -z "$as_dir" && as_dir=.
21645 for ac_exec_ext in '' $ac_executable_extensions; do
21646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21647 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21649 break 2
21651 done
21652 done
21653 IFS=$as_save_IFS
21656 esac
21658 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21659 if test -n "$gcc_cv_objdump"; then
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21661 $as_echo "$gcc_cv_objdump" >&6; }
21662 else
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21664 $as_echo "no" >&6; }
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21672 $as_echo_n "checking what objdump to use... " >&6; }
21673 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21674 # Single tree build which includes binutils.
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21676 $as_echo "newly built objdump" >&6; }
21677 elif test x$gcc_cv_objdump = x; then
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21679 $as_echo "not found" >&6; }
21680 else
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21682 $as_echo "$gcc_cv_objdump" >&6; }
21685 # Figure out what readelf we will be using.
21686 if test "${gcc_cv_readelf+set}" = set; then :
21688 else
21690 if test -f $gcc_cv_binutils_srcdir/configure.in \
21691 && test -f ../binutils/Makefile \
21692 && test x$build = x$host; then
21693 # Single tree build which includes binutils.
21694 gcc_cv_readelf=../binutils/readelf$build_exeext
21695 elif test -x readelf$build_exeext; then
21696 gcc_cv_readelf=./readelf$build_exeext
21697 else
21698 # Extract the first word of "readelf", so it can be a program name with args.
21699 set dummy readelf; ac_word=$2
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21701 $as_echo_n "checking for $ac_word... " >&6; }
21702 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21703 $as_echo_n "(cached) " >&6
21704 else
21705 case $gcc_cv_readelf in
21706 [\\/]* | ?:[\\/]*)
21707 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21711 for as_dir in $PATH
21713 IFS=$as_save_IFS
21714 test -z "$as_dir" && as_dir=.
21715 for ac_exec_ext in '' $ac_executable_extensions; do
21716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21717 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21719 break 2
21721 done
21722 done
21723 IFS=$as_save_IFS
21726 esac
21728 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21729 if test -n "$gcc_cv_readelf"; then
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21731 $as_echo "$gcc_cv_readelf" >&6; }
21732 else
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21734 $as_echo "no" >&6; }
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21742 $as_echo_n "checking what readelf to use... " >&6; }
21743 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21744 # Single tree build which includes binutils.
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21746 $as_echo "newly built readelf" >&6; }
21747 elif test x$gcc_cv_readelf = x; then
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21749 $as_echo "not found" >&6; }
21750 else
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21752 $as_echo "$gcc_cv_readelf" >&6; }
21755 # Figure out what assembler alignment features are present.
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21757 $as_echo_n "checking assembler flags... " >&6; }
21758 if test "${gcc_cv_as_flags+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21760 else
21761 case "$target" in
21762 i[34567]86-*-linux*)
21763 gcc_cv_as_flags="--32"
21765 powerpc*-*-darwin*)
21766 gcc_cv_as_flags="-arch ppc"
21769 gcc_cv_as_flags=" "
21771 esac
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21774 $as_echo "$gcc_cv_as_flags" >&6; }
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21777 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21778 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21779 $as_echo_n "(cached) " >&6
21780 else
21781 gcc_cv_as_balign_and_p2align=no
21782 if test $in_tree_gas = yes; then
21783 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21784 then gcc_cv_as_balign_and_p2align=yes
21786 elif test x$gcc_cv_as != x; then
21787 $as_echo '.balign 4
21788 .p2align 2' > conftest.s
21789 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21791 (eval $ac_try) 2>&5
21792 ac_status=$?
21793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21794 test $ac_status = 0; }; }
21795 then
21796 gcc_cv_as_balign_and_p2align=yes
21797 else
21798 echo "configure: failed program was" >&5
21799 cat conftest.s >&5
21801 rm -f conftest.o conftest.s
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21805 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21806 if test $gcc_cv_as_balign_and_p2align = yes; then
21808 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21813 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21814 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21815 $as_echo_n "(cached) " >&6
21816 else
21817 gcc_cv_as_max_skip_p2align=no
21818 if test $in_tree_gas = yes; then
21819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21820 then gcc_cv_as_max_skip_p2align=yes
21822 elif test x$gcc_cv_as != x; then
21823 $as_echo '.p2align 4,,7' > conftest.s
21824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21829 test $ac_status = 0; }; }
21830 then
21831 gcc_cv_as_max_skip_p2align=yes
21832 else
21833 echo "configure: failed program was" >&5
21834 cat conftest.s >&5
21836 rm -f conftest.o conftest.s
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21840 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21841 if test $gcc_cv_as_max_skip_p2align = yes; then
21843 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21848 $as_echo_n "checking assembler for .literal16... " >&6; }
21849 if test "${gcc_cv_as_literal16+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21852 gcc_cv_as_literal16=no
21853 if test $in_tree_gas = yes; then
21854 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21855 then gcc_cv_as_literal16=yes
21857 elif test x$gcc_cv_as != x; then
21858 $as_echo '.literal16' > conftest.s
21859 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21864 test $ac_status = 0; }; }
21865 then
21866 gcc_cv_as_literal16=yes
21867 else
21868 echo "configure: failed program was" >&5
21869 cat conftest.s >&5
21871 rm -f conftest.o conftest.s
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21875 $as_echo "$gcc_cv_as_literal16" >&6; }
21876 if test $gcc_cv_as_literal16 = yes; then
21878 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21883 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21884 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21885 $as_echo_n "(cached) " >&6
21886 else
21887 gcc_cv_as_subsection_m1=no
21888 if test $in_tree_gas = yes; then
21889 if test $in_tree_gas_is_elf = yes \
21890 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21891 then gcc_cv_as_subsection_m1=yes
21893 elif test x$gcc_cv_as != x; then
21894 $as_echo 'conftest_label1: .word 0
21895 .subsection -1
21896 conftest_label2: .word 0
21897 .previous' > conftest.s
21898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21900 (eval $ac_try) 2>&5
21901 ac_status=$?
21902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21903 test $ac_status = 0; }; }
21904 then
21905 if test x$gcc_cv_nm != x; then
21906 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21907 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21908 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21909 then :
21910 else gcc_cv_as_subsection_m1=yes
21912 rm -f conftest.nm1 conftest.nm2
21914 else
21915 echo "configure: failed program was" >&5
21916 cat conftest.s >&5
21918 rm -f conftest.o conftest.s
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21922 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21923 if test $gcc_cv_as_subsection_m1 = yes; then
21925 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21930 $as_echo_n "checking assembler for .weak... " >&6; }
21931 if test "${gcc_cv_as_weak+set}" = set; then :
21932 $as_echo_n "(cached) " >&6
21933 else
21934 gcc_cv_as_weak=no
21935 if test $in_tree_gas = yes; then
21936 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21937 then gcc_cv_as_weak=yes
21939 elif test x$gcc_cv_as != x; then
21940 $as_echo ' .weak foobar' > conftest.s
21941 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21946 test $ac_status = 0; }; }
21947 then
21948 gcc_cv_as_weak=yes
21949 else
21950 echo "configure: failed program was" >&5
21951 cat conftest.s >&5
21953 rm -f conftest.o conftest.s
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21957 $as_echo "$gcc_cv_as_weak" >&6; }
21958 if test $gcc_cv_as_weak = yes; then
21960 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21965 $as_echo_n "checking assembler for .weakref... " >&6; }
21966 if test "${gcc_cv_as_weakref+set}" = set; then :
21967 $as_echo_n "(cached) " >&6
21968 else
21969 gcc_cv_as_weakref=no
21970 if test $in_tree_gas = yes; then
21971 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21972 then gcc_cv_as_weakref=yes
21974 elif test x$gcc_cv_as != x; then
21975 $as_echo ' .weakref foobar, barfnot' > conftest.s
21976 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21978 (eval $ac_try) 2>&5
21979 ac_status=$?
21980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21981 test $ac_status = 0; }; }
21982 then
21983 gcc_cv_as_weakref=yes
21984 else
21985 echo "configure: failed program was" >&5
21986 cat conftest.s >&5
21988 rm -f conftest.o conftest.s
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21992 $as_echo "$gcc_cv_as_weakref" >&6; }
21993 if test $gcc_cv_as_weakref = yes; then
21995 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22000 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22001 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22002 $as_echo_n "(cached) " >&6
22003 else
22004 gcc_cv_as_nsubspa_comdat=no
22005 if test $in_tree_gas = yes; then
22006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22007 then gcc_cv_as_nsubspa_comdat=yes
22009 elif test x$gcc_cv_as != x; then
22010 $as_echo ' .SPACE $TEXT$
22011 .NSUBSPA $CODE$,COMDAT' > conftest.s
22012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22017 test $ac_status = 0; }; }
22018 then
22019 gcc_cv_as_nsubspa_comdat=yes
22020 else
22021 echo "configure: failed program was" >&5
22022 cat conftest.s >&5
22024 rm -f conftest.o conftest.s
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22028 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22029 if test $gcc_cv_as_nsubspa_comdat = yes; then
22031 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22035 # .hidden needs to be supported in both the assembler and the linker,
22036 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22037 # This is irritatingly difficult to feature test for; we have to check the
22038 # date string after the version number. If we've got an in-tree
22039 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22040 # to be safe.
22041 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22043 $as_echo_n "checking assembler for .hidden... " >&6; }
22044 if test "${gcc_cv_as_hidden+set}" = set; then :
22045 $as_echo_n "(cached) " >&6
22046 else
22047 gcc_cv_as_hidden=no
22048 if test $in_tree_gas = yes; then
22049 if test $in_tree_gas_is_elf = yes \
22050 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22051 then gcc_cv_as_hidden=yes
22053 elif test x$gcc_cv_as != x; then
22054 $as_echo ' .hidden foobar
22055 foobar:' > conftest.s
22056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061 test $ac_status = 0; }; }
22062 then
22064 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22065 # STV_HIDDEN, so disable .hidden support if so.
22066 case "${target}" in
22067 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22068 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22069 cat > conftest.s <<EOF
22070 .globl hidden
22071 .hidden hidden
22072 hidden:
22073 .globl default
22074 .set default,hidden
22076 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22077 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22078 grep '\.hidden default' > /dev/null; then
22079 gcc_cv_as_hidden=no
22080 else
22081 gcc_cv_as_hidden=yes
22083 else
22084 # Assume bug is present if objdump is missing.
22085 gcc_cv_as_hidden=no
22089 gcc_cv_as_hidden=yes
22091 esac
22092 else
22093 echo "configure: failed program was" >&5
22094 cat conftest.s >&5
22096 rm -f conftest.o conftest.s
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22100 $as_echo "$gcc_cv_as_hidden" >&6; }
22102 case "${target}" in
22103 *-*-darwin*)
22104 # Darwin as has some visibility support, though with a different syntax.
22105 gcc_cv_as_hidden=yes
22107 esac
22109 # gnu_indirect_function type is an extension proposed at
22110 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22111 # selection of function implementation
22112 # Check whether --enable-gnu-indirect-function was given.
22113 if test "${enable_gnu_indirect_function+set}" = set; then :
22114 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22115 yes | no) ;;
22116 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22117 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22118 esac
22119 else
22120 enable_gnu_indirect_function="$default_gnu_indirect_function"
22124 gif=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22126 cat >>confdefs.h <<_ACEOF
22127 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22128 _ACEOF
22132 if test $in_tree_ld != yes ; then
22133 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22134 if echo "$ld_ver" | grep GNU > /dev/null; then
22135 if test x"$ld_is_gold" = xyes; then
22136 # GNU gold --version looks like this:
22138 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22140 # We extract the binutils version which is more familiar and specific
22141 # than the gold version.
22142 ld_vers=`echo $ld_ver | sed -n \
22143 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22144 else
22145 # GNU ld --version looks like this:
22147 # GNU ld (GNU Binutils) 2.21.51.20110225
22148 ld_vers=`echo $ld_ver | sed -n \
22149 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22151 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'`
22152 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22153 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22154 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22155 else
22156 case "${target}" in
22157 *-*-solaris2*)
22158 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22159 # format.
22161 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22162 # /usr/ccs/bin/ld has been configured.
22163 ld_ver=`$gcc_cv_ld -V 2>&1`
22164 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22165 ld_vers=`echo $ld_ver | sed -n \
22166 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22167 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22168 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22171 esac
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22176 $as_echo_n "checking linker for .hidden support... " >&6; }
22177 if test "${gcc_cv_ld_hidden+set}" = set; then :
22178 $as_echo_n "(cached) " >&6
22179 else
22180 if test $in_tree_ld = yes ; then
22181 gcc_cv_ld_hidden=no
22182 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 \
22183 && test $in_tree_ld_is_elf = yes; then
22184 gcc_cv_ld_hidden=yes
22186 else
22187 gcc_cv_ld_hidden=yes
22188 if test x"$ld_is_gold" = xyes; then
22190 elif echo "$ld_ver" | grep GNU > /dev/null; then
22191 case "${target}" in
22192 mmix-knuth-mmixware)
22193 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22194 gcc_cv_ld_hidden=no
22196 esac
22197 if test 0"$ld_date" -lt 20020404; then
22198 if test -n "$ld_date"; then
22199 # If there was date string, but was earlier than 2002-04-04, fail
22200 gcc_cv_ld_hidden=no
22201 elif test -z "$ld_vers"; then
22202 # If there was no date string nor ld version number, something is wrong
22203 gcc_cv_ld_hidden=no
22204 else
22205 test -z "$ld_vers_patch" && ld_vers_patch=0
22206 if test "$ld_vers_major" -lt 2; then
22207 gcc_cv_ld_hidden=no
22208 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22209 gcc_cv_ld_hidden="no"
22210 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22211 gcc_cv_ld_hidden=no
22215 else
22216 case "${target}" in
22217 *-*-darwin*)
22218 # Darwin ld has some visibility support.
22219 gcc_cv_ld_hidden=yes
22221 hppa64*-*-hpux* | ia64*-*-hpux*)
22222 gcc_cv_ld_hidden=yes
22224 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22225 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22226 # .symbolic was only added in Solaris 9 12/02.
22227 gcc_cv_ld_hidden=yes
22230 gcc_cv_ld_hidden=no
22232 esac
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22237 $as_echo "$gcc_cv_ld_hidden" >&6; }
22238 libgcc_visibility=no
22241 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22242 libgcc_visibility=yes
22244 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22249 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22250 gcc_cv_ld_ro_rw_mix=unknown
22251 if test $in_tree_ld = yes ; then
22252 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 \
22253 && test $in_tree_ld_is_elf = yes; then
22254 gcc_cv_ld_ro_rw_mix=read-write
22256 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22257 echo '.section myfoosect, "a"' > conftest1.s
22258 echo '.section myfoosect, "aw"' > conftest2.s
22259 echo '.byte 1' >> conftest2.s
22260 echo '.section myfoosect, "a"' > conftest3.s
22261 echo '.byte 0' >> conftest3.s
22262 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22263 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22264 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22265 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22266 conftest2.o conftest3.o > /dev/null 2>&1; then
22267 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22268 | sed -e '/myfoosect/!d' -e N`
22269 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22270 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22271 gcc_cv_ld_ro_rw_mix=read-only
22272 else
22273 gcc_cv_ld_ro_rw_mix=read-write
22277 rm -f conftest.* conftest[123].*
22279 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22281 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22285 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22287 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22288 case "${target}" in
22289 *-*-solaris2*)
22291 # Solaris 2 ld -V output looks like this for a regular version:
22293 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22295 # but test versions add stuff at the end:
22297 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22299 gcc_cv_sun_ld_ver=`/usr/ccs/bin/ld -V 2>&1`
22300 if echo "$gcc_cv_sun_ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22301 gcc_cv_sun_ld_vers=`echo $gcc_cv_sun_ld_ver | sed -n \
22302 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22303 gcc_cv_sun_ld_vers_major=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22304 gcc_cv_sun_ld_vers_minor=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22307 esac
22310 # Check whether --enable-initfini-array was given.
22311 if test "${enable_initfini_array+set}" = set; then :
22312 enableval=$enable_initfini_array;
22313 else
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22316 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22317 if test "${gcc_cv_initfini_array+set}" = set; then :
22318 $as_echo_n "(cached) " >&6
22319 else
22320 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22321 case "${target}" in
22322 ia64-*)
22323 if test "$cross_compiling" = yes; then :
22324 gcc_cv_initfini_array=no
22325 else
22326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22327 /* end confdefs.h. */
22329 #ifndef __ELF__
22330 #error Not an ELF OS
22331 #endif
22332 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22333 if it can be used. */
22334 static int x = -1;
22335 int main (void) { return x; }
22336 int foo (void) { x = 0; }
22337 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22339 _ACEOF
22340 if ac_fn_c_try_run "$LINENO"; then :
22341 gcc_cv_initfini_array=yes
22342 else
22343 gcc_cv_initfini_array=no
22345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22346 conftest.$ac_objext conftest.beam conftest.$ac_ext
22350 gcc_cv_initfini_array=no
22351 if test $in_tree_ld = yes ; then
22352 if test "$gcc_cv_gld_major_version" -eq 2 \
22353 -a "$gcc_cv_gld_minor_version" -ge 22 \
22354 -o "$gcc_cv_gld_major_version" -gt 2 \
22355 && test $in_tree_ld_is_elf = yes; then
22356 gcc_cv_initfini_array=yes
22358 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22359 cat > conftest.s <<\EOF
22360 .section .dtors,"a",%progbits
22361 .balign 4
22362 .byte 'A', 'A', 'A', 'A'
22363 .section .ctors,"a",%progbits
22364 .balign 4
22365 .byte 'B', 'B', 'B', 'B'
22366 .section .fini_array.65530,"a",%progbits
22367 .balign 4
22368 .byte 'C', 'C', 'C', 'C'
22369 .section .init_array.65530,"a",%progbits
22370 .balign 4
22371 .byte 'D', 'D', 'D', 'D'
22372 .section .dtors.64528,"a",%progbits
22373 .balign 4
22374 .byte 'E', 'E', 'E', 'E'
22375 .section .ctors.64528,"a",%progbits
22376 .balign 4
22377 .byte 'F', 'F', 'F', 'F'
22378 .section .fini_array.01005,"a",%progbits
22379 .balign 4
22380 .byte 'G', 'G', 'G', 'G'
22381 .section .init_array.01005,"a",%progbits
22382 .balign 4
22383 .byte 'H', 'H', 'H', 'H'
22384 .text
22385 .globl _start
22386 _start:
22388 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22389 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1 \
22390 && $gcc_cv_objdump -s -j .init_array conftest \
22391 | grep HHHHFFFFDDDDBBBB > /dev/null 2>&1 \
22392 && $gcc_cv_objdump -s -j .fini_array conftest \
22393 | grep GGGGEEEECCCCAAAA > /dev/null 2>&1; then
22394 gcc_cv_initfini_array=yes
22396 rm -f conftest conftest.*
22398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22399 /* end confdefs.h. */
22401 #ifndef __ELF__
22402 # error Not an ELF OS
22403 #endif
22404 #include <stdlib.h>
22405 #if defined __GLIBC_PREREQ
22406 # if __GLIBC_PREREQ (2, 4)
22407 # else
22408 # error GLIBC 2.4 required
22409 # endif
22410 #else
22411 # if defined __sun__ && defined __svr4__
22412 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22413 # else
22414 # error The C library not known to support .init_array/.fini_array
22415 # endif
22416 #endif
22418 _ACEOF
22419 if ac_fn_c_try_cpp "$LINENO"; then :
22421 else
22422 gcc_cv_initfini_array=no
22424 rm -f conftest.err conftest.$ac_ext;;
22425 esac
22426 else
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22428 $as_echo_n "checking cross compile... guessing... " >&6; }
22429 gcc_cv_initfini_array=no
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22433 $as_echo "$gcc_cv_initfini_array" >&6; }
22434 enable_initfini_array=$gcc_cv_initfini_array
22438 if test $enable_initfini_array = yes; then
22440 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22444 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22446 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22447 if test "${gcc_cv_as_leb128+set}" = set; then :
22448 $as_echo_n "(cached) " >&6
22449 else
22450 gcc_cv_as_leb128=no
22451 if test $in_tree_gas = yes; then
22452 if test $in_tree_gas_is_elf = yes \
22453 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22454 then gcc_cv_as_leb128=yes
22456 elif test x$gcc_cv_as != x; then
22457 $as_echo ' .data
22458 .uleb128 L2 - L1
22460 .uleb128 1280
22461 .sleb128 -1010
22462 L2:' > conftest.s
22463 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22465 (eval $ac_try) 2>&5
22466 ac_status=$?
22467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22468 test $ac_status = 0; }; }
22469 then
22470 # GAS versions before 2.11 do not support uleb128,
22471 # despite appearing to.
22472 # ??? There exists an elf-specific test that will crash
22473 # the assembler. Perhaps it's better to figure out whether
22474 # arbitrary sections are supported and try the test.
22475 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22476 if echo "$as_ver" | grep GNU > /dev/null; then
22477 as_vers=`echo $as_ver | sed -n \
22478 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22479 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22480 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22481 if test $as_major -eq 2 && test $as_minor -lt 11
22482 then :
22483 else gcc_cv_as_leb128=yes
22486 else
22487 echo "configure: failed program was" >&5
22488 cat conftest.s >&5
22490 rm -f conftest.o conftest.s
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22494 $as_echo "$gcc_cv_as_leb128" >&6; }
22495 if test $gcc_cv_as_leb128 = yes; then
22497 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22501 # Check if we have assembler support for unwind directives.
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22503 $as_echo_n "checking assembler for cfi directives... " >&6; }
22504 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22505 $as_echo_n "(cached) " >&6
22506 else
22507 gcc_cv_as_cfi_directive=no
22508 if test x$gcc_cv_as != x; then
22509 $as_echo ' .text
22510 .cfi_startproc
22511 .cfi_offset 0, 0
22512 .cfi_same_value 1
22513 .cfi_def_cfa 1, 2
22514 .cfi_escape 1, 2, 3, 4, 5
22515 .cfi_endproc' > conftest.s
22516 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22521 test $ac_status = 0; }; }
22522 then
22523 case "$target" in
22524 *-*-solaris*)
22525 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22526 # read-only and read-write sections, we need to make sure that the
22527 # assembler used emits read-write .eh_frame sections.
22528 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22529 if test "x$gcc_cv_objdump" != x; then
22530 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22531 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22532 gcc_cv_as_cfi_directive=no
22533 else
22534 case "$target" in
22535 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22536 # On Solaris/x86, make sure that GCC and gas agree on using
22537 # read-only .eh_frame sections for 64-bit.
22538 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22539 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22540 sed -e /.eh_frame/!d -e N | \
22541 grep READONLY > /dev/null; then
22542 gcc_cv_as_cfi_directive=yes
22543 else
22544 gcc_cv_as_cfi_directive=no
22548 gcc_cv_as_cfi_directive=yes
22550 esac
22552 else
22553 # no objdump, err on the side of caution
22554 gcc_cv_as_cfi_directive=no
22556 else
22557 gcc_cv_as_cfi_directive=yes
22560 *-*-*)
22561 gcc_cv_as_cfi_directive=yes
22563 esac
22564 else
22565 echo "configure: failed program was" >&5
22566 cat conftest.s >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22572 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22574 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22576 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22577 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22578 $as_echo_n "(cached) " >&6
22579 else
22580 gcc_cv_as_cfi_advance_working=no
22581 if test x$gcc_cv_as != x; then
22582 $as_echo ' .text
22583 .cfi_startproc
22584 .cfi_adjust_cfa_offset 64
22585 .skip 75040, 0
22586 .cfi_adjust_cfa_offset 128
22587 .cfi_endproc' > conftest.s
22588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22590 (eval $ac_try) 2>&5
22591 ac_status=$?
22592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22593 test $ac_status = 0; }; }
22594 then
22596 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22597 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22598 gcc_cv_as_cfi_advance_working=yes
22601 else
22602 echo "configure: failed program was" >&5
22603 cat conftest.s >&5
22605 rm -f conftest.o conftest.s
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22609 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22611 else
22612 # no objdump, err on the side of caution
22613 gcc_cv_as_cfi_advance_working=no
22617 cat >>confdefs.h <<_ACEOF
22618 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22619 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22620 _ACEOF
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22625 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22626 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22627 $as_echo_n "(cached) " >&6
22628 else
22629 gcc_cv_as_cfi_personality_directive=no
22630 if test x$gcc_cv_as != x; then
22631 $as_echo ' .text
22632 .cfi_startproc
22633 .cfi_personality 0, symbol
22634 .cfi_endproc' > conftest.s
22635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22637 (eval $ac_try) 2>&5
22638 ac_status=$?
22639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22640 test $ac_status = 0; }; }
22641 then
22642 gcc_cv_as_cfi_personality_directive=yes
22643 else
22644 echo "configure: failed program was" >&5
22645 cat conftest.s >&5
22647 rm -f conftest.o conftest.s
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22651 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22654 cat >>confdefs.h <<_ACEOF
22655 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22656 then echo 1; else echo 0; fi`
22657 _ACEOF
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22661 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22662 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22663 $as_echo_n "(cached) " >&6
22664 else
22665 gcc_cv_as_cfi_sections_directive=no
22666 if test x$gcc_cv_as != x; then
22667 $as_echo ' .text
22668 .cfi_sections .debug_frame, .eh_frame
22669 .cfi_startproc
22670 .cfi_endproc' > conftest.s
22671 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22673 (eval $ac_try) 2>&5
22674 ac_status=$?
22675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22676 test $ac_status = 0; }; }
22677 then
22678 case $target_os in
22679 win32 | pe | cygwin* | mingw32* | uwin*)
22680 # Need to check that we generated the correct relocation for the
22681 # .debug_frame section. This was fixed for binutils 2.21.
22682 gcc_cv_as_cfi_sections_directive=no
22683 if test "x$gcc_cv_objdump" != x; then
22684 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22685 grep secrel > /dev/null; then
22686 gcc_cv_as_cfi_sections_directive=yes
22691 gcc_cv_as_cfi_sections_directive=yes
22693 esac
22694 else
22695 echo "configure: failed program was" >&5
22696 cat conftest.s >&5
22698 rm -f conftest.o conftest.s
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22702 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22706 cat >>confdefs.h <<_ACEOF
22707 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22708 then echo 1; else echo 0; fi`
22709 _ACEOF
22712 # GAS versions up to and including 2.11.0 may mis-optimize
22713 # .eh_frame data.
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22715 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22716 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22718 else
22719 gcc_cv_as_eh_frame=no
22720 if test $in_tree_gas = yes; then
22721 if test $in_tree_gas_is_elf = yes \
22722 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22723 then gcc_cv_as_eh_frame=yes
22725 elif test x$gcc_cv_as != x; then
22726 $as_echo ' .text
22727 .LFB1:
22728 .4byte 0
22729 .L1:
22730 .4byte 0
22731 .LFE1:
22732 .section .eh_frame,"aw",@progbits
22733 __FRAME_BEGIN__:
22734 .4byte .LECIE1-.LSCIE1
22735 .LSCIE1:
22736 .4byte 0x0
22737 .byte 0x1
22738 .ascii "z\0"
22739 .byte 0x1
22740 .byte 0x78
22741 .byte 0x1a
22742 .byte 0x0
22743 .byte 0x4
22744 .4byte 1
22745 .p2align 1
22746 .LECIE1:
22747 .LSFDE1:
22748 .4byte .LEFDE1-.LASFDE1
22749 .LASFDE1:
22750 .4byte .LASFDE1-__FRAME_BEGIN__
22751 .4byte .LFB1
22752 .4byte .LFE1-.LFB1
22753 .byte 0x4
22754 .4byte .LFE1-.LFB1
22755 .byte 0x4
22756 .4byte .L1-.LFB1
22757 .LEFDE1:' > conftest.s
22758 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22760 (eval $ac_try) 2>&5
22761 ac_status=$?
22762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22763 test $ac_status = 0; }; }
22764 then
22765 cat > conftest.lit <<EOF
22766 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22767 0010 01000000 12000000 18000000 00000000 ................
22768 0020 08000000 04080000 0044 .........D
22770 cat > conftest.big <<EOF
22771 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22772 0010 00000001 00000012 00000018 00000000 ................
22773 0020 00000008 04000000 0844 .........D
22775 # If the assembler didn't choke, and we can objdump,
22776 # and we got the correct data, then succeed.
22777 # The text in the here-document typically retains its unix-style line
22778 # endings, while the output of objdump will use host line endings.
22779 # Therefore, use diff -b for the comparisons.
22780 if test x$gcc_cv_objdump != x \
22781 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22782 | tail -3 > conftest.got \
22783 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22784 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22785 then
22786 gcc_cv_as_eh_frame=yes
22787 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22792 test $ac_status = 0; }; }; then
22793 gcc_cv_as_eh_frame=buggy
22794 else
22795 # Uh oh, what do we do now?
22796 gcc_cv_as_eh_frame=no
22798 else
22799 echo "configure: failed program was" >&5
22800 cat conftest.s >&5
22802 rm -f conftest.o conftest.s
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22806 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22809 if test $gcc_cv_as_eh_frame = buggy; then
22811 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22816 $as_echo_n "checking assembler for section merging support... " >&6; }
22817 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22818 $as_echo_n "(cached) " >&6
22819 else
22820 gcc_cv_as_shf_merge=no
22821 if test $in_tree_gas = yes; then
22822 if test $in_tree_gas_is_elf = yes \
22823 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22824 then gcc_cv_as_shf_merge=yes
22826 elif test x$gcc_cv_as != x; then
22827 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22828 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22830 (eval $ac_try) 2>&5
22831 ac_status=$?
22832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22833 test $ac_status = 0; }; }
22834 then
22835 gcc_cv_as_shf_merge=yes
22836 else
22837 echo "configure: failed program was" >&5
22838 cat conftest.s >&5
22840 rm -f conftest.o conftest.s
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22844 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22846 if test $gcc_cv_as_shf_merge = no; then
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22848 $as_echo_n "checking assembler for section merging support... " >&6; }
22849 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22850 $as_echo_n "(cached) " >&6
22851 else
22852 gcc_cv_as_shf_merge=no
22853 if test $in_tree_gas = yes; then
22854 if test $in_tree_gas_is_elf = yes \
22855 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22856 then gcc_cv_as_shf_merge=yes
22858 elif test x$gcc_cv_as != x; then
22859 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22860 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22862 (eval $ac_try) 2>&5
22863 ac_status=$?
22864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22865 test $ac_status = 0; }; }
22866 then
22867 gcc_cv_as_shf_merge=yes
22868 else
22869 echo "configure: failed program was" >&5
22870 cat conftest.s >&5
22872 rm -f conftest.o conftest.s
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22876 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22880 cat >>confdefs.h <<_ACEOF
22881 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22882 _ACEOF
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22886 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22887 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22888 $as_echo_n "(cached) " >&6
22889 else
22890 gcc_cv_as_comdat_group=no
22891 if test $in_tree_gas = yes; then
22892 if test $in_tree_gas_is_elf = yes \
22893 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22894 then gcc_cv_as_comdat_group=yes
22896 elif test x$gcc_cv_as != x; then
22897 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22898 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22900 (eval $ac_try) 2>&5
22901 ac_status=$?
22902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22903 test $ac_status = 0; }; }
22904 then
22905 gcc_cv_as_comdat_group=yes
22906 else
22907 echo "configure: failed program was" >&5
22908 cat conftest.s >&5
22910 rm -f conftest.o conftest.s
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22914 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22916 if test $gcc_cv_as_comdat_group = yes; then
22917 gcc_cv_as_comdat_group_percent=no
22918 gcc_cv_as_comdat_group_group=no
22919 else
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22921 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22922 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22924 else
22925 gcc_cv_as_comdat_group_percent=no
22926 if test $in_tree_gas = yes; then
22927 if test $in_tree_gas_is_elf = yes \
22928 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22929 then gcc_cv_as_comdat_group_percent=yes
22931 elif test x$gcc_cv_as != x; then
22932 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22933 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; }
22939 then
22940 gcc_cv_as_comdat_group_percent=yes
22941 else
22942 echo "configure: failed program was" >&5
22943 cat conftest.s >&5
22945 rm -f conftest.o conftest.s
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22949 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22951 if test $gcc_cv_as_comdat_group_percent = yes; then
22952 gcc_cv_as_comdat_group_group=no
22953 else
22954 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
22955 gcc_cv_as_comdat_group_group=no
22957 case "${target}" in
22958 # Sun as uses a completely different syntax.
22959 *-*-solaris2*)
22960 case "${target}" in
22961 sparc*-*-solaris2*)
22962 conftest_s='
22963 .group foo,".text%foo",#comdat
22964 .section ".text%foo", #alloc,#execinstr,#progbits
22965 .globl foo
22966 foo:
22969 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22970 conftest_s='
22971 .group foo,.text%foo,#comdat
22972 .section .text%foo, "ax", @progbits
22973 .globl foo
22974 foo:
22977 esac
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22979 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22980 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22981 $as_echo_n "(cached) " >&6
22982 else
22983 gcc_cv_as_comdat_group_group=no
22984 if test x$gcc_cv_as != x; then
22985 $as_echo "$conftest_s" > conftest.s
22986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22991 test $ac_status = 0; }; }
22992 then
22993 gcc_cv_as_comdat_group_group=yes
22994 else
22995 echo "configure: failed program was" >&5
22996 cat conftest.s >&5
22998 rm -f conftest.o conftest.s
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23002 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23005 esac
23008 if test x"$ld_is_gold" = xyes; then
23009 comdat_group=yes
23010 elif test $in_tree_ld = yes ; then
23011 comdat_group=no
23012 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 \
23013 && test $in_tree_ld_is_elf = yes; then
23014 comdat_group=yes
23016 elif echo "$ld_ver" | grep GNU > /dev/null; then
23017 comdat_group=yes
23018 if test 0"$ld_date" -lt 20050308; then
23019 if test -n "$ld_date"; then
23020 # If there was date string, but was earlier than 2005-03-08, fail
23021 comdat_group=no
23022 elif test "$ld_vers_major" -lt 2; then
23023 comdat_group=no
23024 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23025 comdat_group=no
23028 else
23029 case "${target}" in
23030 *-*-solaris2.1[1-9]*)
23031 comdat_group=no
23032 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23033 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23034 # version 1.688.
23036 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23037 # least ld version 1.2267.
23038 if test "$ld_vers_major" -gt 1; then
23039 comdat_group=yes
23040 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23041 comdat_group=yes
23042 elif test "$ld_vers_minor" -ge 2267; then
23043 comdat_group=yes
23047 # Assume linkers other than GNU ld don't support COMDAT group.
23048 comdat_group=no
23050 esac
23052 # Allow overriding the automatic COMDAT group tests above.
23053 # Check whether --enable-comdat was given.
23054 if test "${enable_comdat+set}" = set; then :
23055 enableval=$enable_comdat; comdat_group="$enable_comdat"
23058 if test $comdat_group = no; then
23059 gcc_cv_as_comdat_group=no
23060 gcc_cv_as_comdat_group_percent=no
23061 gcc_cv_as_comdat_group_group=no
23064 cat >>confdefs.h <<_ACEOF
23065 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23066 || test $gcc_cv_as_comdat_group_percent = yes \
23067 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23068 _ACEOF
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23072 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23073 if test "${gcc_cv_as_discriminator+set}" = set; then :
23074 $as_echo_n "(cached) " >&6
23075 else
23076 gcc_cv_as_discriminator=no
23077 if test $in_tree_gas = yes; then
23078 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23079 then gcc_cv_as_discriminator=yes
23081 elif test x$gcc_cv_as != x; then
23082 $as_echo ' .text
23083 .file 1 "conf.c"
23084 .loc 1 1 0 discriminator 1' > conftest.s
23085 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23087 (eval $ac_try) 2>&5
23088 ac_status=$?
23089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23090 test $ac_status = 0; }; }
23091 then
23092 gcc_cv_as_discriminator=yes
23093 else
23094 echo "configure: failed program was" >&5
23095 cat conftest.s >&5
23097 rm -f conftest.o conftest.s
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23101 $as_echo "$gcc_cv_as_discriminator" >&6; }
23102 if test $gcc_cv_as_discriminator = yes; then
23104 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23108 # Thread-local storage - the check is heavily parameterized.
23109 conftest_s=
23110 tls_first_major=
23111 tls_first_minor=
23112 tls_as_opt=
23113 case "$target" in
23114 alpha*-*-*)
23115 conftest_s='
23116 .section ".tdata","awT",@progbits
23117 foo: .long 25
23118 .text
23119 ldq $27,__tls_get_addr($29) !literal!1
23120 lda $16,foo($29) !tlsgd!1
23121 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23122 ldq $27,__tls_get_addr($29) !literal!2
23123 lda $16,foo($29) !tlsldm!2
23124 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23125 ldq $1,foo($29) !gotdtprel
23126 ldah $2,foo($29) !dtprelhi
23127 lda $3,foo($2) !dtprello
23128 lda $4,foo($29) !dtprel
23129 ldq $1,foo($29) !gottprel
23130 ldah $2,foo($29) !tprelhi
23131 lda $3,foo($2) !tprello
23132 lda $4,foo($29) !tprel'
23133 tls_first_major=2
23134 tls_first_minor=13
23135 tls_as_opt=--fatal-warnings
23137 cris-*-*|crisv32-*-*)
23138 conftest_s='
23139 .section ".tdata","awT",@progbits
23140 x: .long 25
23141 .text
23142 move.d x:IE,$r10
23143 nop'
23144 tls_first_major=2
23145 tls_first_minor=20
23146 tls_as_opt=--fatal-warnings
23148 frv*-*-*)
23149 conftest_s='
23150 .section ".tdata","awT",@progbits
23151 x: .long 25
23152 .text
23153 call #gettlsoff(x)'
23154 tls_first_major=2
23155 tls_first_minor=14
23157 hppa*-*-linux*)
23158 conftest_s='
23159 t1: .reg %r20
23160 t2: .reg %r21
23161 gp: .reg %r19
23162 .section ".tdata","awT",@progbits
23163 foo: .long 25
23164 .text
23165 .align 4
23166 addil LT%foo-$tls_gdidx$,gp
23167 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23168 b __tls_get_addr
23170 addil LT%foo-$tls_ldidx$,gp
23171 b __tls_get_addr
23172 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23173 addil LR%foo-$tls_dtpoff$,%ret0
23174 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23175 mfctl %cr27,%t1
23176 addil LT%foo-$tls_ieoff$,gp
23177 ldw RT%foo-$tls_ieoff$(%r1),%t2
23178 add %t1,%t2,%t3
23179 mfctl %cr27,%t1
23180 addil LR%foo-$tls_leoff$,%t1
23181 ldo RR%foo-$tls_leoff$(%r1),%t2'
23182 tls_first_major=2
23183 tls_first_minor=15
23184 tls_as_opt=--fatal-warnings
23186 arm*-*-*)
23187 conftest_s='
23188 .section ".tdata","awT",%progbits
23189 foo: .long 25
23190 .text
23191 .word foo(gottpoff)
23192 .word foo(tpoff)
23193 .word foo(tlsgd)
23194 .word foo(tlsldm)
23195 .word foo(tlsldo)'
23196 tls_first_major=2
23197 tls_first_minor=17
23199 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23200 case "$target" in
23201 i[34567]86-*-solaris2.*)
23202 on_solaris=yes
23203 tga_func=___tls_get_addr
23205 x86_64-*-solaris2.1[0-9]*)
23206 on_solaris=yes
23207 tga_func=__tls_get_addr
23210 on_solaris=no
23212 esac
23213 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23214 conftest_s='
23215 .section .tdata,"awt",@progbits'
23216 tls_first_major=0
23217 tls_first_minor=0
23219 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23221 else
23222 conftest_s='
23223 .section ".tdata","awT",@progbits'
23224 tls_first_major=2
23225 tls_first_minor=14
23226 tls_as_opt="--fatal-warnings"
23228 conftest_s="$conftest_s
23229 foo: .long 25
23230 .text
23231 movl %gs:0, %eax
23232 leal foo@tlsgd(,%ebx,1), %eax
23233 leal foo@tlsldm(%ebx), %eax
23234 leal foo@dtpoff(%eax), %edx
23235 movl foo@gottpoff(%ebx), %eax
23236 subl foo@gottpoff(%ebx), %eax
23237 addl foo@gotntpoff(%ebx), %eax
23238 movl foo@indntpoff, %eax
23239 movl \$foo@tpoff, %eax
23240 subl \$foo@tpoff, %eax
23241 leal foo@ntpoff(%ecx), %eax"
23243 x86_64-*-*)
23244 conftest_s='
23245 .section ".tdata","awT",@progbits
23246 foo: .long 25
23247 .text
23248 movq %fs:0, %rax
23249 leaq foo@TLSGD(%rip), %rdi
23250 leaq foo@TLSLD(%rip), %rdi
23251 leaq foo@DTPOFF(%rax), %rdx
23252 movq foo@GOTTPOFF(%rip), %rax
23253 movq $foo@TPOFF, %rax'
23254 tls_first_major=2
23255 tls_first_minor=14
23256 tls_as_opt=--fatal-warnings
23258 ia64-*-*)
23259 conftest_s='
23260 .section ".tdata","awT",@progbits
23261 foo: data8 25
23262 .text
23263 addl r16 = @ltoff(@dtpmod(foo#)), gp
23264 addl r17 = @ltoff(@dtprel(foo#)), gp
23265 addl r18 = @ltoff(@tprel(foo#)), gp
23266 addl r19 = @dtprel(foo#), gp
23267 adds r21 = @dtprel(foo#), r13
23268 movl r23 = @dtprel(foo#)
23269 addl r20 = @tprel(foo#), gp
23270 adds r22 = @tprel(foo#), r13
23271 movl r24 = @tprel(foo#)'
23272 tls_first_major=2
23273 tls_first_minor=13
23274 tls_as_opt=--fatal-warnings
23276 microblaze*-*-*)
23277 conftest_s='
23278 .section .tdata,"awT",@progbits
23280 .word 2
23281 .text
23282 addik r5,r20,x@TLSGD
23283 addik r5,r20,x@TLSLDM'
23284 tls_first_major=2
23285 tls_first_minor=20
23286 tls_as_opt='--fatal-warnings'
23288 mips*-*-*)
23289 conftest_s='
23290 .section .tdata,"awT",@progbits
23292 .word 2
23293 .text
23294 addiu $4, $28, %tlsgd(x)
23295 addiu $4, $28, %tlsldm(x)
23296 lui $4, %dtprel_hi(x)
23297 addiu $4, $4, %dtprel_lo(x)
23298 lw $4, %gottprel(x)($28)
23299 lui $4, %tprel_hi(x)
23300 addiu $4, $4, %tprel_lo(x)'
23301 tls_first_major=2
23302 tls_first_minor=16
23303 tls_as_opt='-32 --fatal-warnings'
23305 m68k-*-*)
23306 conftest_s='
23307 .section .tdata,"awT",@progbits
23309 .word 2
23310 .text
23311 foo:
23312 move.l x@TLSGD(%a5),%a0
23313 move.l x@TLSLDM(%a5),%a0
23314 move.l x@TLSLDO(%a5),%a0
23315 move.l x@TLSIE(%a5),%a0
23316 move.l x@TLSLE(%a5),%a0'
23317 tls_first_major=2
23318 tls_first_minor=19
23319 tls_as_opt='--fatal-warnings'
23321 aarch64*-*-*)
23322 conftest_s='
23323 .section ".tdata","awT",%progbits
23324 foo: .long 25
23325 .text
23326 adrp x0, :tlsgd:x
23327 add x0, x0, #:tlsgd_lo12:x
23328 bl __tls_get_addr
23329 nop'
23330 tls_first_major=2
23331 tls_first_minor=20
23332 tls_as_opt='--fatal-warnings'
23334 powerpc-ibm-aix*)
23335 conftest_s='
23336 .extern __get_tpointer
23337 .toc
23338 LC..1:
23339 .tc a[TC],a[TL]@le
23340 .csect .text[PR]
23341 .tlstest:
23342 lwz 9,LC..1(2)
23343 bla __get_tpointer
23344 lwzx 3,9,3
23345 .globl a
23346 .csect a[TL],4
23348 .space 4'
23349 tls_first_major=0
23350 tls_first_minor=0
23352 powerpc64*-*-*)
23353 conftest_s='
23354 .section ".tdata","awT",@progbits
23355 .align 3
23356 ld0: .space 8
23357 ld1: .space 8
23358 x1: .space 8
23359 x2: .space 8
23360 x3: .space 8
23361 .text
23362 addi 3,2,ld0@got@tlsgd
23363 bl .__tls_get_addr
23365 addi 3,2,ld1@toc
23366 bl .__tls_get_addr
23368 addi 3,2,x1@got@tlsld
23369 bl .__tls_get_addr
23371 addi 9,3,x1@dtprel
23372 bl .__tls_get_addr
23374 addis 9,3,x2@dtprel@ha
23375 addi 9,9,x2@dtprel@l
23376 bl .__tls_get_addr
23378 ld 9,x3@got@dtprel(2)
23379 add 9,9,3
23380 bl .__tls_get_addr
23381 nop'
23382 tls_first_major=2
23383 tls_first_minor=14
23384 tls_as_opt="-a64 --fatal-warnings"
23386 powerpc*-*-*)
23387 conftest_s='
23388 .section ".tdata","awT",@progbits
23389 .align 2
23390 ld0: .space 4
23391 ld1: .space 4
23392 x1: .space 4
23393 x2: .space 4
23394 x3: .space 4
23395 .text
23396 addi 3,31,ld0@got@tlsgd
23397 bl __tls_get_addr
23398 addi 3,31,x1@got@tlsld
23399 bl __tls_get_addr
23400 addi 9,3,x1@dtprel
23401 addis 9,3,x2@dtprel@ha
23402 addi 9,9,x2@dtprel@l
23403 lwz 9,x3@got@tprel(31)
23404 add 9,9,x@tls
23405 addi 9,2,x1@tprel
23406 addis 9,2,x2@tprel@ha
23407 addi 9,9,x2@tprel@l'
23408 tls_first_major=2
23409 tls_first_minor=14
23410 tls_as_opt="-a32 --fatal-warnings"
23412 s390-*-*)
23413 conftest_s='
23414 .section ".tdata","awT",@progbits
23415 foo: .long 25
23416 .text
23417 .long foo@TLSGD
23418 .long foo@TLSLDM
23419 .long foo@DTPOFF
23420 .long foo@NTPOFF
23421 .long foo@GOTNTPOFF
23422 .long foo@INDNTPOFF
23423 l %r1,foo@GOTNTPOFF(%r12)
23424 l %r1,0(%r1):tls_load:foo
23425 bas %r14,0(%r1,%r13):tls_gdcall:foo
23426 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23427 tls_first_major=2
23428 tls_first_minor=14
23429 tls_as_opt="-m31 --fatal-warnings"
23431 s390x-*-*)
23432 conftest_s='
23433 .section ".tdata","awT",@progbits
23434 foo: .long 25
23435 .text
23436 .quad foo@TLSGD
23437 .quad foo@TLSLDM
23438 .quad foo@DTPOFF
23439 .quad foo@NTPOFF
23440 .quad foo@GOTNTPOFF
23441 lg %r1,foo@GOTNTPOFF(%r12)
23442 larl %r1,foo@INDNTPOFF
23443 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23444 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23445 tls_first_major=2
23446 tls_first_minor=14
23447 tls_as_opt="-m64 -Aesame --fatal-warnings"
23449 sh-*-* | sh[34]-*-*)
23450 conftest_s='
23451 .section ".tdata","awT",@progbits
23452 foo: .long 25
23453 .text
23454 .long foo@TLSGD
23455 .long foo@TLSLDM
23456 .long foo@DTPOFF
23457 .long foo@GOTTPOFF
23458 .long foo@TPOFF'
23459 tls_first_major=2
23460 tls_first_minor=13
23461 tls_as_opt=--fatal-warnings
23463 sparc*-*-*)
23464 case "$target" in
23465 sparc*-sun-solaris2.*)
23466 on_solaris=yes
23467 tga_func=__tls_get_addr
23470 on_solaris=no
23472 esac
23473 if test x$on_solaris = xyes && test x$gas_flag = xno; then
23474 conftest_s='
23475 .section ".tdata",#alloc,#write,#tls'
23476 tls_first_major=0
23477 tls_first_minor=0
23478 else
23479 conftest_s='
23480 .section ".tdata","awT",@progbits'
23481 tls_first_major=2
23482 tls_first_minor=14
23483 tls_as_opt="-32 --fatal-warnings"
23485 conftest_s="$conftest_s
23486 foo: .long 25
23487 .text
23488 sethi %tgd_hi22(foo), %o0
23489 add %o0, %tgd_lo10(foo), %o1
23490 add %l7, %o1, %o0, %tgd_add(foo)
23491 call __tls_get_addr, %tgd_call(foo)
23492 sethi %tldm_hi22(foo), %l1
23493 add %l1, %tldm_lo10(foo), %l2
23494 add %l7, %l2, %o0, %tldm_add(foo)
23495 call __tls_get_addr, %tldm_call(foo)
23496 sethi %tldo_hix22(foo), %l3
23497 xor %l3, %tldo_lox10(foo), %l4
23498 add %o0, %l4, %l5, %tldo_add(foo)
23499 sethi %tie_hi22(foo), %o3
23500 add %o3, %tie_lo10(foo), %o3
23501 ld [%l7 + %o3], %o2, %tie_ld(foo)
23502 add %g7, %o2, %o4, %tie_add(foo)
23503 sethi %tle_hix22(foo), %l1
23504 xor %l1, %tle_lox10(foo), %o5
23505 ld [%g7 + %o5], %o1"
23507 tilepro*-*-*)
23508 conftest_s='
23509 .section ".tdata","awT",@progbits
23510 foo: .long 25
23511 .text
23512 addli r0, zero, tls_gd(foo)
23513 auli r0, zero, tls_gd_ha16(foo)
23514 addli r0, r0, tls_gd_lo16(foo)
23515 jal __tls_get_addr
23516 addli r0, zero, tls_ie(foo)
23517 auli r0, r0, tls_ie_ha16(foo)
23518 addli r0, r0, tls_ie_lo16(foo)'
23519 tls_first_major=2
23520 tls_first_minor=22
23521 tls_as_opt="--fatal-warnings"
23523 tilegx*-*-*)
23524 conftest_s='
23525 .section ".tdata","awT",@progbits
23526 foo: .long 25
23527 .text
23528 shl16insli r0, zero, hw0_last_tls_gd(foo)
23529 shl16insli r0, zero, hw1_last_tls_gd(foo)
23530 shl16insli r0, r0, hw0_tls_gd(foo)
23531 jal __tls_get_addr
23532 shl16insli r0, zero, hw1_last_tls_ie(foo)
23533 shl16insli r0, r0, hw0_tls_ie(foo)'
23534 tls_first_major=2
23535 tls_first_minor=22
23536 tls_as_opt="--fatal-warnings"
23538 xtensa*-*-*)
23539 conftest_s='
23540 .section ".tdata","awT",@progbits
23541 foo: .long 25
23542 .text
23543 movi a8, foo@TLSFUNC
23544 movi a10, foo@TLSARG
23545 callx8.tls a8, foo@TLSCALL'
23546 tls_first_major=2
23547 tls_first_minor=19
23549 esac
23550 set_have_as_tls=no
23551 if test "x$enable_tls" = xno ; then
23552 : # TLS explicitly disabled.
23553 elif test "x$enable_tls" = xyes ; then
23554 set_have_as_tls=yes # TLS explicitly enabled.
23555 elif test -z "$tls_first_major"; then
23556 : # If we don't have a check, assume no support.
23557 else
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23559 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23560 if test "${gcc_cv_as_tls+set}" = set; then :
23561 $as_echo_n "(cached) " >&6
23562 else
23563 gcc_cv_as_tls=no
23564 if test $in_tree_gas = yes; then
23565 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23566 then gcc_cv_as_tls=yes
23568 elif test x$gcc_cv_as != x; then
23569 $as_echo "$conftest_s" > conftest.s
23570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23576 then
23577 gcc_cv_as_tls=yes
23578 else
23579 echo "configure: failed program was" >&5
23580 cat conftest.s >&5
23582 rm -f conftest.o conftest.s
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23586 $as_echo "$gcc_cv_as_tls" >&6; }
23587 if test $gcc_cv_as_tls = yes; then
23588 set_have_as_tls=yes
23591 case "$target" in
23592 # TLS was introduced in the Solaris 9 FCS release. Support for GNU-style
23593 # TLS on x86 was only introduced in Solaris 9 4/04, replacing the earlier
23594 # Sun style that Sun ld and GCC don't support any longer.
23595 *-*-solaris2.*)
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23597 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23598 ld_tls_support=no
23599 # Check ld and ld.so.1 TLS support.
23600 if echo "$ld_ver" | grep GNU > /dev/null; then
23601 # Assume all interesting versions of GNU ld have TLS support.
23602 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23603 ld_tls_support=yes
23604 else
23605 case "$target" in
23606 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23607 i?86-*-solaris2.9)
23608 min_tls_ld_vers_minor=374
23610 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23611 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23612 min_tls_ld_vers_minor=343
23614 esac
23615 if test "$ld_vers_major" -gt 1 || \
23616 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23617 ld_tls_support=yes
23618 else
23619 set_have_as_tls=no
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23623 $as_echo "$ld_tls_support" >&6; }
23625 save_LIBS="$LIBS"
23626 save_LDFLAGS="$LDFLAGS"
23627 LIBS=
23628 LDFLAGS=
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23631 $as_echo_n "checking library containing $tga_func... " >&6; }
23632 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23633 # (32-bit x86) only lived in libthread, so check for that. Keep
23634 # set_have_as_tls if found, disable if not.
23635 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23637 $as_echo_n "checking for library containing $tga_func... " >&6; }
23638 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23639 $as_echo_n "(cached) " >&6
23640 else
23641 ac_func_search_save_LIBS=$LIBS
23642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23643 /* end confdefs.h. */
23645 /* Override any GCC internal prototype to avoid an error.
23646 Use char because int might match the return type of a GCC
23647 builtin and then its argument prototype would still apply. */
23648 #ifdef __cplusplus
23649 extern "C"
23650 #endif
23651 char $tga_func ();
23653 main ()
23655 return $tga_func ();
23657 return 0;
23659 _ACEOF
23660 for ac_lib in '' thread; do
23661 if test -z "$ac_lib"; then
23662 ac_res="none required"
23663 else
23664 ac_res=-l$ac_lib
23665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23667 if ac_fn_c_try_link "$LINENO"; then :
23668 eval "$as_ac_Search=\$ac_res"
23670 rm -f core conftest.err conftest.$ac_objext \
23671 conftest$ac_exeext
23672 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23673 break
23675 done
23676 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23678 else
23679 eval "$as_ac_Search=no"
23681 rm conftest.$ac_ext
23682 LIBS=$ac_func_search_save_LIBS
23684 eval ac_res=\$$as_ac_Search
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23686 $as_echo "$ac_res" >&6; }
23687 eval ac_res=\$$as_ac_Search
23688 if test "$ac_res" != no; then :
23689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23691 else
23692 set_have_as_tls=no
23695 # Clear LIBS if we cannot support TLS.
23696 if test $set_have_as_tls = no; then
23697 LIBS=
23699 # Always define LIB_TLS_SPEC, even without TLS support.
23701 cat >>confdefs.h <<_ACEOF
23702 #define LIB_TLS_SPEC "$LIBS"
23703 _ACEOF
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23706 $as_echo "$LIBS" >&6; }
23708 LIBS="$save_LIBS"
23709 LDFLAGS="$save_LDFLAGS"
23711 esac
23712 if test $set_have_as_tls = yes ; then
23714 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23718 # Target-specific assembler checks.
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23721 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23722 gcc_cv_ld_static_dynamic=no
23723 gcc_cv_ld_static_option='-Bstatic'
23724 gcc_cv_ld_dynamic_option='-Bdynamic'
23725 if test $in_tree_ld = yes ; then
23726 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
23727 gcc_cv_ld_static_dynamic=yes
23729 elif test x$gcc_cv_ld != x; then
23730 # Check if linker supports -Bstatic/-Bdynamic option
23731 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23732 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23733 gcc_cv_ld_static_dynamic=yes
23734 else
23735 case "$target" in
23736 # AIX ld uses -b flags
23737 *-*-aix4.[23]* | *-*-aix[5-9]*)
23738 gcc_cv_ld_static_dynamic=yes
23739 gcc_cv_ld_static_option="-bstatic"
23740 gcc_cv_ld_dynamic_option="-bdynamic"
23742 # HP-UX ld uses -a flags to select between shared and archive.
23743 *-*-hpux*)
23744 if test x"$gnu_ld" = xno; then
23745 gcc_cv_ld_static_dynamic=yes
23746 gcc_cv_ld_static_option="-aarchive_shared"
23747 gcc_cv_ld_dynamic_option="-adefault"
23750 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23751 *-*-solaris2*)
23752 gcc_cv_ld_static_dynamic=yes
23754 esac
23757 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23759 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23762 cat >>confdefs.h <<_ACEOF
23763 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23764 _ACEOF
23767 cat >>confdefs.h <<_ACEOF
23768 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23769 _ACEOF
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23773 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23775 if test x"$demangler_in_ld" = xyes; then
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23777 $as_echo_n "checking linker --demangle support... " >&6; }
23778 gcc_cv_ld_demangle=no
23779 if test $in_tree_ld = yes; then
23780 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 \
23781 gcc_cv_ld_demangle=yes
23783 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23784 # Check if the GNU linker supports --demangle option
23785 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23786 gcc_cv_ld_demangle=yes
23789 if test x"$gcc_cv_ld_demangle" = xyes; then
23791 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23795 $as_echo "$gcc_cv_ld_demangle" >&6; }
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23799 $as_echo_n "checking linker plugin support... " >&6; }
23800 gcc_cv_lto_plugin=0
23801 if test -f liblto_plugin.la; then
23802 save_ld_ver="$ld_ver"
23803 save_ld_vers_major="$ld_vers_major"
23804 save_ld_vers_minor="$ld_vers_minor"
23805 save_ld_is_gold="$ld_is_gold"
23807 ld_is_gold=no
23809 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23810 ld_ver="GNU ld"
23811 # FIXME: ld_is_gold?
23812 ld_vers_major="$gcc_cv_gld_major_version"
23813 ld_vers_minor="$gcc_cv_gld_minor_version"
23814 else
23815 # Determine plugin linker version.
23816 # FIXME: Partial duplicate from above, generalize.
23817 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23818 if echo "$ld_ver" | grep GNU > /dev/null; then
23819 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23820 ld_is_gold=yes
23821 ld_vers=`echo $ld_ver | sed -n \
23822 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23823 else
23824 ld_vers=`echo $ld_ver | sed -n \
23825 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23827 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23828 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23832 # Determine plugin support.
23833 if echo "$ld_ver" | grep GNU > /dev/null; then
23834 # Require GNU ld or gold 2.21+ for plugin support by default.
23835 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23836 gcc_cv_lto_plugin=2
23837 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23838 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23839 gcc_cv_lto_plugin=1
23843 ld_ver="$save_ld_ver"
23844 ld_vers_major="$save_ld_vers_major"
23845 ld_vers_minor="$save_ld_vers_minor"
23846 ld_is_gold="$save_ld_is_gold"
23849 cat >>confdefs.h <<_ACEOF
23850 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23851 _ACEOF
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23854 $as_echo "$gcc_cv_lto_plugin" >&6; }
23856 case "$target" in
23857 # All TARGET_ABI_OSF targets.
23858 alpha*-*-linux* | alpha*-*-*bsd*)
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23860 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23861 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23862 $as_echo_n "(cached) " >&6
23863 else
23864 gcc_cv_as_alpha_explicit_relocs=no
23865 if test $in_tree_gas = yes; then
23866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23867 then gcc_cv_as_alpha_explicit_relocs=yes
23869 elif test x$gcc_cv_as != x; then
23870 $as_echo ' .set nomacro
23871 .text
23872 extbl $3, $2, $3 !lituse_bytoff!1
23873 ldq $2, a($29) !literal!1
23874 ldq $4, b($29) !literal!2
23875 ldq_u $3, 0($2) !lituse_base!1
23876 ldq $27, f($29) !literal!5
23877 jsr $26, ($27), f !lituse_jsr!5
23878 ldah $29, 0($26) !gpdisp!3
23879 lda $0, c($29) !gprel
23880 ldah $1, d($29) !gprelhigh
23881 lda $1, d($1) !gprellow
23882 lda $29, 0($29) !gpdisp!3' > conftest.s
23883 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23885 (eval $ac_try) 2>&5
23886 ac_status=$?
23887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23888 test $ac_status = 0; }; }
23889 then
23890 gcc_cv_as_alpha_explicit_relocs=yes
23891 else
23892 echo "configure: failed program was" >&5
23893 cat conftest.s >&5
23895 rm -f conftest.o conftest.s
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23899 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23900 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23902 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23906 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23907 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23908 $as_echo_n "(cached) " >&6
23909 else
23910 gcc_cv_as_alpha_jsrdirect_relocs=no
23911 if test $in_tree_gas = yes; then
23912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23913 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23915 elif test x$gcc_cv_as != x; then
23916 $as_echo ' .set nomacro
23917 .text
23918 ldq $27, a($29) !literal!1
23919 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23920 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23922 (eval $ac_try) 2>&5
23923 ac_status=$?
23924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23925 test $ac_status = 0; }; }
23926 then
23927 gcc_cv_as_alpha_jsrdirect_relocs=yes
23928 else
23929 echo "configure: failed program was" >&5
23930 cat conftest.s >&5
23932 rm -f conftest.o conftest.s
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23936 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23937 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23939 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23944 cris-*-*)
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23946 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23947 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23948 $as_echo_n "(cached) " >&6
23949 else
23950 gcc_cv_as_cris_no_mul_bug=no
23951 if test $in_tree_gas = yes; then
23952 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23953 then gcc_cv_as_cris_no_mul_bug=yes
23955 elif test x$gcc_cv_as != x; then
23956 $as_echo '.text' > conftest.s
23957 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23959 (eval $ac_try) 2>&5
23960 ac_status=$?
23961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23962 test $ac_status = 0; }; }
23963 then
23964 gcc_cv_as_cris_no_mul_bug=yes
23965 else
23966 echo "configure: failed program was" >&5
23967 cat conftest.s >&5
23969 rm -f conftest.o conftest.s
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23973 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23974 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23976 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23981 sparc*-*-*)
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23983 $as_echo_n "checking assembler for .register... " >&6; }
23984 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23985 $as_echo_n "(cached) " >&6
23986 else
23987 gcc_cv_as_sparc_register_op=no
23988 if test x$gcc_cv_as != x; then
23989 $as_echo '.register %g2, #scratch' > conftest.s
23990 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23992 (eval $ac_try) 2>&5
23993 ac_status=$?
23994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23995 test $ac_status = 0; }; }
23996 then
23997 gcc_cv_as_sparc_register_op=yes
23998 else
23999 echo "configure: failed program was" >&5
24000 cat conftest.s >&5
24002 rm -f conftest.o conftest.s
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24006 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24007 if test $gcc_cv_as_sparc_register_op = yes; then
24009 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24014 $as_echo_n "checking assembler for #nobits... " >&6; }
24015 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24016 $as_echo_n "(cached) " >&6
24017 else
24018 gcc_cv_as_sparc_nobits=no
24019 if test x$gcc_cv_as != x; then
24020 $as_echo '.section "nobits",#alloc,#write,#nobits
24021 .section "progbits",#alloc,#write,#progbits' > conftest.s
24022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24024 (eval $ac_try) 2>&5
24025 ac_status=$?
24026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24027 test $ac_status = 0; }; }
24028 then
24029 gcc_cv_as_sparc_nobits=yes
24030 else
24031 echo "configure: failed program was" >&5
24032 cat conftest.s >&5
24034 rm -f conftest.o conftest.s
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24038 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24041 cat >>confdefs.h <<_ACEOF
24042 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24043 _ACEOF
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24047 $as_echo_n "checking assembler for -relax option... " >&6; }
24048 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24049 $as_echo_n "(cached) " >&6
24050 else
24051 gcc_cv_as_sparc_relax=no
24052 if test x$gcc_cv_as != x; then
24053 $as_echo '.text' > conftest.s
24054 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24056 (eval $ac_try) 2>&5
24057 ac_status=$?
24058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24059 test $ac_status = 0; }; }
24060 then
24061 gcc_cv_as_sparc_relax=yes
24062 else
24063 echo "configure: failed program was" >&5
24064 cat conftest.s >&5
24066 rm -f conftest.o conftest.s
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24070 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24071 if test $gcc_cv_as_sparc_relax = yes; then
24073 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24078 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24079 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24080 $as_echo_n "(cached) " >&6
24081 else
24082 gcc_cv_as_sparc_gotdata_op=no
24083 if test x$gcc_cv_as != x; then
24084 $as_echo '.text
24085 .align 4
24086 foo:
24088 bar:
24089 sethi %gdop_hix22(foo), %g1
24090 xor %g1, %gdop_lox10(foo), %g1
24091 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24095 ac_status=$?
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; }
24098 then
24099 if test x$gcc_cv_ld != x \
24100 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24101 if test x$gcc_cv_objdump != x; then
24102 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24103 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24104 gcc_cv_as_sparc_gotdata_op=no
24105 else
24106 gcc_cv_as_sparc_gotdata_op=yes
24110 rm -f conftest
24111 else
24112 echo "configure: failed program was" >&5
24113 cat conftest.s >&5
24115 rm -f conftest.o conftest.s
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24119 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24120 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24122 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24127 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24128 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24129 $as_echo_n "(cached) " >&6
24130 else
24131 gcc_cv_as_sparc_ua_pcrel=no
24132 if test x$gcc_cv_as != x; then
24133 $as_echo '.text
24134 foo:
24136 .data
24137 .align 4
24138 .byte 0
24139 .uaword %r_disp32(foo)' > conftest.s
24140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24142 (eval $ac_try) 2>&5
24143 ac_status=$?
24144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24145 test $ac_status = 0; }; }
24146 then
24147 if test x$gcc_cv_ld != x \
24148 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24149 gcc_cv_as_sparc_ua_pcrel=yes
24151 rm -f conftest
24152 else
24153 echo "configure: failed program was" >&5
24154 cat conftest.s >&5
24156 rm -f conftest.o conftest.s
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24160 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24161 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24163 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24167 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24168 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24169 $as_echo_n "(cached) " >&6
24170 else
24171 gcc_cv_as_sparc_ua_pcrel_hidden=no
24172 if test x$gcc_cv_as != x; then
24173 $as_echo '.data
24174 .align 4
24175 .byte 0x31
24176 .uaword %r_disp32(foo)
24177 .byte 0x32, 0x33, 0x34
24178 .global foo
24179 .hidden foo
24180 foo:
24181 .skip 4' > conftest.s
24182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24184 (eval $ac_try) 2>&5
24185 ac_status=$?
24186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24187 test $ac_status = 0; }; }
24188 then
24189 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24190 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24191 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24192 | grep ' 31000000 07323334' > /dev/null 2>&1; then
24193 if $gcc_cv_objdump -R conftest 2> /dev/null \
24194 | grep 'DISP32' > /dev/null 2>&1; then
24196 else
24197 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24200 rm -f conftest
24201 else
24202 echo "configure: failed program was" >&5
24203 cat conftest.s >&5
24205 rm -f conftest.o conftest.s
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24209 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24210 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24212 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24216 fi # unaligned pcrel relocs
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24219 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24220 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24222 else
24223 gcc_cv_as_sparc_offsetable_lo10=no
24224 if test x$gcc_cv_as != x; then
24225 $as_echo '.text
24226 or %g1, %lo(ab) + 12, %g1
24227 or %g1, %lo(ab + 12), %g1' > conftest.s
24228 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24233 test $ac_status = 0; }; }
24234 then
24235 if test x$gcc_cv_objdump != x \
24236 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24237 | grep ' 82106000 82106000' > /dev/null 2>&1; then
24238 gcc_cv_as_sparc_offsetable_lo10=yes
24240 else
24241 echo "configure: failed program was" >&5
24242 cat conftest.s >&5
24244 rm -f conftest.o conftest.s
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24248 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24249 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24251 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24256 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24257 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24258 $as_echo_n "(cached) " >&6
24259 else
24260 gcc_cv_as_sparc_fmaf=no
24261 if test x$gcc_cv_as != x; then
24262 $as_echo '.text
24263 .register %g2, #scratch
24264 .register %g3, #scratch
24265 .align 4
24266 fmaddd %f0, %f2, %f4, %f6
24267 addxccc %g1, %g2, %g3
24268 fsrl32 %f2, %f4, %f8
24269 fnaddd %f10, %f12, %f14' > conftest.s
24270 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24273 ac_status=$?
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; }
24276 then
24277 gcc_cv_as_sparc_fmaf=yes
24278 else
24279 echo "configure: failed program was" >&5
24280 cat conftest.s >&5
24282 rm -f conftest.o conftest.s
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24286 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24287 if test $gcc_cv_as_sparc_fmaf = yes; then
24289 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24294 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24295 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24296 $as_echo_n "(cached) " >&6
24297 else
24298 gcc_cv_as_sparc_sparc4=no
24299 if test x$gcc_cv_as != x; then
24300 $as_echo '.text
24301 .register %g2, #scratch
24302 .register %g3, #scratch
24303 .align 4
24304 cxbe %g2, %g3, 1f
24305 1: cwbneg %g2, %g3, 1f
24306 1: sha1
24308 aes_kexpand0 %f4, %f6, %f8
24309 des_round %f38, %f40, %f42, %f44
24310 camellia_f %f54, %f56, %f58, %f60
24311 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24312 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -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_sparc_sparc4=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_sparc_sparc4" >&5
24328 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24329 if test $gcc_cv_as_sparc_sparc4 = yes; then
24331 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24336 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24337 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24338 $as_echo_n "(cached) " >&6
24339 else
24340 gcc_cv_as_sparc_leon=no
24341 if test x$gcc_cv_as != x; then
24342 $as_echo '.text
24343 .register %g2, #scratch
24344 .register %g3, #scratch
24345 .align 4
24346 smac %g2, %g3, %g1
24347 umac %g2, %g3, %g1
24348 cas [%g2], %g3, %g1' > conftest.s
24349 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351 (eval $ac_try) 2>&5
24352 ac_status=$?
24353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354 test $ac_status = 0; }; }
24355 then
24356 gcc_cv_as_sparc_leon=yes
24357 else
24358 echo "configure: failed program was" >&5
24359 cat conftest.s >&5
24361 rm -f conftest.o conftest.s
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24365 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24366 if test $gcc_cv_as_sparc_leon = yes; then
24368 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24373 i[34567]86-*-* | x86_64-*-*)
24374 case $target_os in
24375 cygwin*)
24376 # Full C++ conformance when using a shared libstdc++-v3 requires some
24377 # support from the Cygwin DLL, which in more recent versions exports
24378 # wrappers to aid in interposing and redirecting operators new, delete,
24379 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24380 # are configuring for a version of Cygwin that exports the wrappers.
24381 if test x$host = x$target && test x$host_cpu = xi686; then
24382 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24383 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24384 gcc_ac_cygwin_dll_wrappers=yes
24385 else
24386 gcc_ac_cygwin_dll_wrappers=no
24389 else
24390 # Can't check presence of libc functions during cross-compile, so
24391 # we just have to assume we're building for an up-to-date target.
24392 gcc_ac_cygwin_dll_wrappers=yes
24395 cat >>confdefs.h <<_ACEOF
24396 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24397 _ACEOF
24399 esac
24400 case $target_os in
24401 cygwin* | pe | mingw32* | interix*)
24402 # Recent binutils allows the three-operand form of ".comm" on PE. This
24403 # definition is used unconditionally to initialise the default state of
24404 # the target option variable that governs usage of the feature.
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24406 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24407 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24408 $as_echo_n "(cached) " >&6
24409 else
24410 gcc_cv_as_comm_has_align=no
24411 if test $in_tree_gas = yes; then
24412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24413 then gcc_cv_as_comm_has_align=yes
24415 elif test x$gcc_cv_as != x; then
24416 $as_echo '.comm foo,1,32' > conftest.s
24417 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24419 (eval $ac_try) 2>&5
24420 ac_status=$?
24421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24422 test $ac_status = 0; }; }
24423 then
24424 gcc_cv_as_comm_has_align=yes
24425 else
24426 echo "configure: failed program was" >&5
24427 cat conftest.s >&5
24429 rm -f conftest.o conftest.s
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24433 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24436 cat >>confdefs.h <<_ACEOF
24437 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24438 _ACEOF
24440 # Used for DWARF 2 in PE
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24442 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24443 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24444 $as_echo_n "(cached) " >&6
24445 else
24446 gcc_cv_as_ix86_pe_secrel32=no
24447 if test $in_tree_gas = yes; then
24448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24449 then gcc_cv_as_ix86_pe_secrel32=yes
24451 elif test x$gcc_cv_as != x; then
24452 $as_echo '.text
24453 foo: nop
24454 .data
24455 .secrel32 foo' > conftest.s
24456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24458 (eval $ac_try) 2>&5
24459 ac_status=$?
24460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24461 test $ac_status = 0; }; }
24462 then
24463 if test x$gcc_cv_ld != x \
24464 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24465 gcc_cv_as_ix86_pe_secrel32=yes
24467 rm -f conftest
24468 else
24469 echo "configure: failed program was" >&5
24470 cat conftest.s >&5
24472 rm -f conftest.o conftest.s
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24476 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24477 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24479 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24482 # Test if the assembler supports the extended form of the .section
24483 # directive that specifies section alignment. LTO support uses this,
24484 # but normally only after installation, so we warn but don't fail the
24485 # configure if LTO is enabled but the assembler does not support it.
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24487 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24488 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491 gcc_cv_as_section_has_align=no
24492 if test $in_tree_gas = yes; then
24493 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24494 then gcc_cv_as_section_has_align=yes
24496 elif test x$gcc_cv_as != x; then
24497 $as_echo '.section lto_test,"dr0"' > conftest.s
24498 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24503 test $ac_status = 0; }; }
24504 then
24505 gcc_cv_as_section_has_align=yes
24506 else
24507 echo "configure: failed program was" >&5
24508 cat conftest.s >&5
24510 rm -f conftest.o conftest.s
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24514 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24516 if test x$gcc_cv_as_section_has_align != xyes; then
24517 case ",$enable_languages," in
24518 *,lto,*)
24519 { $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
24520 $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;}
24522 esac
24524 # Test if the assembler supports the section flag 'e' for specifying
24525 # an excluded section.
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24527 $as_echo_n "checking assembler for .section with e... " >&6; }
24528 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24529 $as_echo_n "(cached) " >&6
24530 else
24531 gcc_cv_as_section_has_e=no
24532 if test $in_tree_gas = yes; then
24533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24534 then gcc_cv_as_section_has_e=yes
24536 elif test x$gcc_cv_as != x; then
24537 $as_echo '.section foo1,"e"
24538 .byte 0,0,0,0' > conftest.s
24539 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
24543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24544 test $ac_status = 0; }; }
24545 then
24546 gcc_cv_as_section_has_e=yes
24547 else
24548 echo "configure: failed program was" >&5
24549 cat conftest.s >&5
24551 rm -f conftest.o conftest.s
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24555 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24558 cat >>confdefs.h <<_ACEOF
24559 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24560 _ACEOF
24563 esac
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24566 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24567 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24569 else
24570 gcc_cv_as_ix86_filds=no
24571 if test x$gcc_cv_as != x; then
24572 $as_echo 'filds mem; fists mem' > conftest.s
24573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24575 (eval $ac_try) 2>&5
24576 ac_status=$?
24577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24578 test $ac_status = 0; }; }
24579 then
24580 gcc_cv_as_ix86_filds=yes
24581 else
24582 echo "configure: failed program was" >&5
24583 cat conftest.s >&5
24585 rm -f conftest.o conftest.s
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24589 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24590 if test $gcc_cv_as_ix86_filds = yes; then
24592 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24597 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24598 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_as_ix86_fildq=no
24602 if test x$gcc_cv_as != x; then
24603 $as_echo 'fildq mem; fistpq mem' > conftest.s
24604 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24609 test $ac_status = 0; }; }
24610 then
24611 gcc_cv_as_ix86_fildq=yes
24612 else
24613 echo "configure: failed program was" >&5
24614 cat conftest.s >&5
24616 rm -f conftest.o conftest.s
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24620 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24621 if test $gcc_cv_as_ix86_fildq = yes; then
24623 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24628 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24629 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24630 $as_echo_n "(cached) " >&6
24631 else
24632 gcc_cv_as_ix86_cmov_sun_syntax=no
24633 if test x$gcc_cv_as != x; then
24634 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24635 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24637 (eval $ac_try) 2>&5
24638 ac_status=$?
24639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24640 test $ac_status = 0; }; }
24641 then
24642 gcc_cv_as_ix86_cmov_sun_syntax=yes
24643 else
24644 echo "configure: failed program was" >&5
24645 cat conftest.s >&5
24647 rm -f conftest.o conftest.s
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24651 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24652 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24654 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24659 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24660 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24661 $as_echo_n "(cached) " >&6
24662 else
24663 gcc_cv_as_ix86_ffreep=no
24664 if test x$gcc_cv_as != x; then
24665 $as_echo 'ffreep %st(1)' > conftest.s
24666 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24669 ac_status=$?
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; }
24672 then
24673 gcc_cv_as_ix86_ffreep=yes
24674 else
24675 echo "configure: failed program was" >&5
24676 cat conftest.s >&5
24678 rm -f conftest.o conftest.s
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24682 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24683 if test $gcc_cv_as_ix86_ffreep = yes; then
24685 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24690 $as_echo_n "checking assembler for .quad directive... " >&6; }
24691 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24692 $as_echo_n "(cached) " >&6
24693 else
24694 gcc_cv_as_ix86_quad=no
24695 if test x$gcc_cv_as != x; then
24696 $as_echo '.quad 0' > conftest.s
24697 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24703 then
24704 gcc_cv_as_ix86_quad=yes
24705 else
24706 echo "configure: failed program was" >&5
24707 cat conftest.s >&5
24709 rm -f conftest.o conftest.s
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24713 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24714 if test $gcc_cv_as_ix86_quad = yes; then
24716 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24721 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24722 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24724 else
24725 gcc_cv_as_ix86_sahf=no
24726 if test x$gcc_cv_as != x; then
24727 $as_echo '.code64
24728 sahf' > conftest.s
24729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24735 then
24736 gcc_cv_as_ix86_sahf=yes
24737 else
24738 echo "configure: failed program was" >&5
24739 cat conftest.s >&5
24741 rm -f conftest.o conftest.s
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24745 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24746 if test $gcc_cv_as_ix86_sahf = yes; then
24748 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24753 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24754 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24756 else
24757 gcc_cv_as_ix86_interunit_movq=no
24758 if test x$gcc_cv_as != x; then
24759 $as_echo '.code64
24760 movq %mm0, %rax
24761 movq %rax, %xmm0' > conftest.s
24762 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767 test $ac_status = 0; }; }
24768 then
24769 gcc_cv_as_ix86_interunit_movq=yes
24770 else
24771 echo "configure: failed program was" >&5
24772 cat conftest.s >&5
24774 rm -f conftest.o conftest.s
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24778 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24779 if test $gcc_cv_as_ix86_interunit_movq = yes; then
24781 $as_echo "#define HAVE_AS_IX86_INTERUNIT_MOVQ 1" >>confdefs.h
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24786 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24787 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24788 $as_echo_n "(cached) " >&6
24789 else
24790 gcc_cv_as_ix86_hle=no
24791 if test x$gcc_cv_as != x; then
24792 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24793 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24795 (eval $ac_try) 2>&5
24796 ac_status=$?
24797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798 test $ac_status = 0; }; }
24799 then
24800 gcc_cv_as_ix86_hle=yes
24801 else
24802 echo "configure: failed program was" >&5
24803 cat conftest.s >&5
24805 rm -f conftest.o conftest.s
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24809 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24810 if test $gcc_cv_as_ix86_hle = yes; then
24812 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24817 $as_echo_n "checking assembler for swap suffix... " >&6; }
24818 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24819 $as_echo_n "(cached) " >&6
24820 else
24821 gcc_cv_as_ix86_swap=no
24822 if test x$gcc_cv_as != x; then
24823 $as_echo 'movl.s %esp, %ebp' > conftest.s
24824 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24826 (eval $ac_try) 2>&5
24827 ac_status=$?
24828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24829 test $ac_status = 0; }; }
24830 then
24831 gcc_cv_as_ix86_swap=yes
24832 else
24833 echo "configure: failed program was" >&5
24834 cat conftest.s >&5
24836 rm -f conftest.o conftest.s
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24840 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24841 if test $gcc_cv_as_ix86_swap = yes; then
24843 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24848 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24849 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24850 $as_echo_n "(cached) " >&6
24851 else
24852 gcc_cv_as_ix86_diff_sect_delta=no
24853 if test x$gcc_cv_as != x; then
24854 $as_echo '.section .rodata
24855 .L1:
24856 .long .L2-.L1
24857 .long .L3-.L1
24858 .text
24859 .L3: nop
24860 .L2: nop' > conftest.s
24861 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24864 ac_status=$?
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }
24867 then
24868 gcc_cv_as_ix86_diff_sect_delta=yes
24869 else
24870 echo "configure: failed program was" >&5
24871 cat conftest.s >&5
24873 rm -f conftest.o conftest.s
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24877 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24878 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24880 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24884 # These two are used unconditionally by i386.[ch]; it is to be defined
24885 # to 1 if the feature is present, 0 otherwise.
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24887 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24888 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24889 $as_echo_n "(cached) " >&6
24890 else
24891 gcc_cv_as_ix86_gotoff_in_data=no
24892 if test $in_tree_gas = yes; then
24893 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24894 then gcc_cv_as_ix86_gotoff_in_data=yes
24896 elif test x$gcc_cv_as != x; then
24897 $as_echo ' .text
24898 .L0:
24900 .data
24901 .long .L0@GOTOFF' > conftest.s
24902 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24907 test $ac_status = 0; }; }
24908 then
24909 gcc_cv_as_ix86_gotoff_in_data=yes
24910 else
24911 echo "configure: failed program was" >&5
24912 cat conftest.s >&5
24914 rm -f conftest.o conftest.s
24917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24918 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24921 cat >>confdefs.h <<_ACEOF
24922 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24923 _ACEOF
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24927 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24928 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24929 $as_echo_n "(cached) " >&6
24930 else
24931 gcc_cv_as_ix86_rep_lock_prefix=no
24932 if test x$gcc_cv_as != x; then
24933 $as_echo 'rep movsl
24934 rep ret
24935 rep nop
24936 rep bsf %ecx, %eax
24937 rep bsr %ecx, %eax
24938 lock addl %edi, (%eax,%esi)
24939 lock orl $0, (%esp)' > conftest.s
24940 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24942 (eval $ac_try) 2>&5
24943 ac_status=$?
24944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24945 test $ac_status = 0; }; }
24946 then
24947 gcc_cv_as_ix86_rep_lock_prefix=yes
24948 else
24949 echo "configure: failed program was" >&5
24950 cat conftest.s >&5
24952 rm -f conftest.o conftest.s
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24956 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24957 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24959 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24964 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24965 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24966 $as_echo_n "(cached) " >&6
24967 else
24968 gcc_cv_as_ix86_tlsgdplt=no
24969 if test x$gcc_cv_as != x; then
24970 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24971 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24974 ac_status=$?
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24977 then
24978 if test x$gcc_cv_ld != x \
24979 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24980 gcc_cv_as_ix86_tlsgdplt=yes
24982 rm -f conftest
24983 else
24984 echo "configure: failed program was" >&5
24985 cat conftest.s >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24991 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24992 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24994 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24999 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25000 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25001 $as_echo_n "(cached) " >&6
25002 else
25003 gcc_cv_as_ix86_tlsldmplt=no
25004 if test x$gcc_cv_as != x; then
25005 $as_echo 'tls_ld:
25006 call tls_ld@tlsldmplt' > conftest.s
25007 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25009 (eval $ac_try) 2>&5
25010 ac_status=$?
25011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25012 test $ac_status = 0; }; }
25013 then
25014 if test x$gcc_cv_ld != x \
25015 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
25016 gcc_cv_as_ix86_tlsldmplt=yes
25018 rm -f conftest
25019 else
25020 echo "configure: failed program was" >&5
25021 cat conftest.s >&5
25023 rm -f conftest.o conftest.s
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25027 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25028 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
25030 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
25036 ia64*-*-*)
25037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25038 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25039 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25040 $as_echo_n "(cached) " >&6
25041 else
25042 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
25043 if test $in_tree_gas = yes; then
25044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25045 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
25047 elif test x$gcc_cv_as != x; then
25048 $as_echo ' .text
25049 addl r15 = @ltoffx(x#), gp
25051 ld8.mov r16 = [r15], x#' > 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_ia64_ltoffx_ldxmov_relocs=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_ia64_ltoffx_ldxmov_relocs" >&5
25068 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25069 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25071 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25077 powerpc*-*-*)
25078 case $target in
25079 *-*-aix*) conftest_s=' .machine "pwr5"
25080 .csect .text[PR]
25081 mfcr 3,128';;
25082 *-*-darwin*)
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25084 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25085 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25086 $as_echo_n "(cached) " >&6
25087 else
25088 gcc_cv_as_machine_directive=no
25089 if test x$gcc_cv_as != x; then
25090 $as_echo ' .machine ppc7400' > conftest.s
25091 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25096 test $ac_status = 0; }; }
25097 then
25098 gcc_cv_as_machine_directive=yes
25099 else
25100 echo "configure: failed program was" >&5
25101 cat conftest.s >&5
25103 rm -f conftest.o conftest.s
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25107 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25109 if test x$gcc_cv_as_machine_directive != xyes; then
25110 echo "*** This target requires an assembler supporting \".machine\"" >&2
25111 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
25112 test x$build = x$target && exit 1
25114 conftest_s=' .text
25115 mfcr r3,128';;
25116 *) conftest_s=' .machine power4
25117 .text
25118 mfcr 3,128';;
25119 esac
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25122 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25123 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25124 $as_echo_n "(cached) " >&6
25125 else
25126 gcc_cv_as_powerpc_mfcrf=no
25127 if test $in_tree_gas = yes; then
25128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25129 then gcc_cv_as_powerpc_mfcrf=yes
25131 elif test x$gcc_cv_as != x; then
25132 $as_echo "$conftest_s" > conftest.s
25133 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25138 test $ac_status = 0; }; }
25139 then
25140 gcc_cv_as_powerpc_mfcrf=yes
25141 else
25142 echo "configure: failed program was" >&5
25143 cat conftest.s >&5
25145 rm -f conftest.o conftest.s
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25149 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25150 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25152 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25156 case $target in
25157 *-*-aix*) conftest_s=' .machine "pwr5"
25158 .csect .text[PR]
25159 popcntb 3,3';;
25160 *) conftest_s=' .machine power5
25161 .text
25162 popcntb 3,3';;
25163 esac
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25166 $as_echo_n "checking assembler for popcntb support... " >&6; }
25167 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25168 $as_echo_n "(cached) " >&6
25169 else
25170 gcc_cv_as_powerpc_popcntb=no
25171 if test $in_tree_gas = yes; then
25172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25173 then gcc_cv_as_powerpc_popcntb=yes
25175 elif test x$gcc_cv_as != x; then
25176 $as_echo "$conftest_s" > conftest.s
25177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25179 (eval $ac_try) 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25182 test $ac_status = 0; }; }
25183 then
25184 gcc_cv_as_powerpc_popcntb=yes
25185 else
25186 echo "configure: failed program was" >&5
25187 cat conftest.s >&5
25189 rm -f conftest.o conftest.s
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25193 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25194 if test $gcc_cv_as_powerpc_popcntb = yes; then
25196 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25200 case $target in
25201 *-*-aix*) conftest_s=' .machine "pwr5x"
25202 .csect .text[PR]
25203 frin 1,1';;
25204 *) conftest_s=' .machine power5
25205 .text
25206 frin 1,1';;
25207 esac
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25210 $as_echo_n "checking assembler for fp round support... " >&6; }
25211 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25212 $as_echo_n "(cached) " >&6
25213 else
25214 gcc_cv_as_powerpc_fprnd=no
25215 if test $in_tree_gas = yes; then
25216 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25217 then gcc_cv_as_powerpc_fprnd=yes
25219 elif test x$gcc_cv_as != x; then
25220 $as_echo "$conftest_s" > conftest.s
25221 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25223 (eval $ac_try) 2>&5
25224 ac_status=$?
25225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25226 test $ac_status = 0; }; }
25227 then
25228 gcc_cv_as_powerpc_fprnd=yes
25229 else
25230 echo "configure: failed program was" >&5
25231 cat conftest.s >&5
25233 rm -f conftest.o conftest.s
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25237 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25238 if test $gcc_cv_as_powerpc_fprnd = yes; then
25240 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25244 case $target in
25245 *-*-aix*) conftest_s=' .machine "pwr6"
25246 .csect .text[PR]
25247 mffgpr 1,3';;
25248 *) conftest_s=' .machine power6
25249 .text
25250 mffgpr 1,3';;
25251 esac
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25254 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25255 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25257 else
25258 gcc_cv_as_powerpc_mfpgpr=no
25259 if test $in_tree_gas = yes; then
25260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25261 then gcc_cv_as_powerpc_mfpgpr=yes
25263 elif test x$gcc_cv_as != x; then
25264 $as_echo "$conftest_s" > conftest.s
25265 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25270 test $ac_status = 0; }; }
25271 then
25272 gcc_cv_as_powerpc_mfpgpr=yes
25273 else
25274 echo "configure: failed program was" >&5
25275 cat conftest.s >&5
25277 rm -f conftest.o conftest.s
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25281 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25282 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25284 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25288 case $target in
25289 *-*-aix*) conftest_s=' .csect .text[PR]
25290 LCF..0:
25291 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25292 *-*-darwin*)
25293 conftest_s=' .text
25294 LCF0:
25295 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25296 *) conftest_s=' .text
25297 .LCF0:
25298 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25299 esac
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25302 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25303 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25304 $as_echo_n "(cached) " >&6
25305 else
25306 gcc_cv_as_powerpc_rel16=no
25307 if test $in_tree_gas = yes; then
25308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25309 then gcc_cv_as_powerpc_rel16=yes
25311 elif test x$gcc_cv_as != x; then
25312 $as_echo "$conftest_s" > conftest.s
25313 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25318 test $ac_status = 0; }; }
25319 then
25320 gcc_cv_as_powerpc_rel16=yes
25321 else
25322 echo "configure: failed program was" >&5
25323 cat conftest.s >&5
25325 rm -f conftest.o conftest.s
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25329 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25330 if test $gcc_cv_as_powerpc_rel16 = yes; then
25332 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25336 case $target in
25337 *-*-aix*) conftest_s=' .machine "pwr6"
25338 .csect .text[PR]
25339 cmpb 3,4,5';;
25340 *) conftest_s=' .machine power6
25341 .text
25342 cmpb 3,4,5';;
25343 esac
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25346 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25347 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25349 else
25350 gcc_cv_as_powerpc_cmpb=no
25351 if test $in_tree_gas = yes; then
25352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25353 then gcc_cv_as_powerpc_cmpb=yes
25355 elif test x$gcc_cv_as != x; then
25356 $as_echo "$conftest_s" > conftest.s
25357 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362 test $ac_status = 0; }; }
25363 then
25364 gcc_cv_as_powerpc_cmpb=yes
25365 else
25366 echo "configure: failed program was" >&5
25367 cat conftest.s >&5
25369 rm -f conftest.o conftest.s
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25373 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25374 if test $gcc_cv_as_powerpc_cmpb = yes; then
25376 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25380 case $target in
25381 *-*-aix*) conftest_s=' .machine "pwr6"
25382 .csect .text[PR]
25383 dadd 1,2,3';;
25384 *) conftest_s=' .machine power6
25385 .text
25386 dadd 1,2,3';;
25387 esac
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25390 $as_echo_n "checking assembler for decimal float support... " >&6; }
25391 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25392 $as_echo_n "(cached) " >&6
25393 else
25394 gcc_cv_as_powerpc_dfp=no
25395 if test $in_tree_gas = yes; then
25396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25397 then gcc_cv_as_powerpc_dfp=yes
25399 elif test x$gcc_cv_as != x; then
25400 $as_echo "$conftest_s" > conftest.s
25401 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25406 test $ac_status = 0; }; }
25407 then
25408 gcc_cv_as_powerpc_dfp=yes
25409 else
25410 echo "configure: failed program was" >&5
25411 cat conftest.s >&5
25413 rm -f conftest.o conftest.s
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25417 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25418 if test $gcc_cv_as_powerpc_dfp = yes; then
25420 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25424 case $target in
25425 *-*-aix*) conftest_s=' .machine "pwr7"
25426 .csect .text[PR]
25427 lxvd2x 1,2,3';;
25428 *) conftest_s=' .machine power7
25429 .text
25430 lxvd2x 1,2,3';;
25431 esac
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25434 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25435 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25436 $as_echo_n "(cached) " >&6
25437 else
25438 gcc_cv_as_powerpc_vsx=no
25439 if test $in_tree_gas = yes; then
25440 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25441 then gcc_cv_as_powerpc_vsx=yes
25443 elif test x$gcc_cv_as != x; then
25444 $as_echo "$conftest_s" > conftest.s
25445 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450 test $ac_status = 0; }; }
25451 then
25452 gcc_cv_as_powerpc_vsx=yes
25453 else
25454 echo "configure: failed program was" >&5
25455 cat conftest.s >&5
25457 rm -f conftest.o conftest.s
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25461 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25462 if test $gcc_cv_as_powerpc_vsx = yes; then
25464 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25468 case $target in
25469 *-*-aix*) conftest_s=' .machine "pwr7"
25470 .csect .text[PR]
25471 popcntd 3,3';;
25472 *) conftest_s=' .machine power7
25473 .text
25474 popcntd 3,3';;
25475 esac
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25478 $as_echo_n "checking assembler for popcntd support... " >&6; }
25479 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25480 $as_echo_n "(cached) " >&6
25481 else
25482 gcc_cv_as_powerpc_popcntd=no
25483 if test $in_tree_gas = yes; then
25484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25485 then gcc_cv_as_powerpc_popcntd=yes
25487 elif test x$gcc_cv_as != x; then
25488 $as_echo "$conftest_s" > conftest.s
25489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25491 (eval $ac_try) 2>&5
25492 ac_status=$?
25493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25494 test $ac_status = 0; }; }
25495 then
25496 gcc_cv_as_powerpc_popcntd=yes
25497 else
25498 echo "configure: failed program was" >&5
25499 cat conftest.s >&5
25501 rm -f conftest.o conftest.s
25504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25505 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25506 if test $gcc_cv_as_powerpc_popcntd = yes; then
25508 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25512 case $target in
25513 *-*-aix*) conftest_s=' .machine "pwr8"
25514 .csect .text[PR]';;
25515 *) conftest_s=' .machine power8
25516 .text';;
25517 esac
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25520 $as_echo_n "checking assembler for power8 support... " >&6; }
25521 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25522 $as_echo_n "(cached) " >&6
25523 else
25524 gcc_cv_as_powerpc_power8=no
25525 if test $in_tree_gas = yes; then
25526 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25527 then gcc_cv_as_powerpc_power8=yes
25529 elif test x$gcc_cv_as != x; then
25530 $as_echo "$conftest_s" > conftest.s
25531 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25537 then
25538 gcc_cv_as_powerpc_power8=yes
25539 else
25540 echo "configure: failed program was" >&5
25541 cat conftest.s >&5
25543 rm -f conftest.o conftest.s
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25547 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25548 if test $gcc_cv_as_powerpc_power8 = yes; then
25550 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25554 case $target in
25555 *-*-aix*) conftest_s=' .csect .text[PR]
25556 lwsync';;
25557 *) conftest_s=' .text
25558 lwsync';;
25559 esac
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25562 $as_echo_n "checking assembler for lwsync support... " >&6; }
25563 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25564 $as_echo_n "(cached) " >&6
25565 else
25566 gcc_cv_as_powerpc_lwsync=no
25567 if test $in_tree_gas = yes; then
25568 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25569 then gcc_cv_as_powerpc_lwsync=yes
25571 elif test x$gcc_cv_as != x; then
25572 $as_echo "$conftest_s" > conftest.s
25573 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25575 (eval $ac_try) 2>&5
25576 ac_status=$?
25577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578 test $ac_status = 0; }; }
25579 then
25580 gcc_cv_as_powerpc_lwsync=yes
25581 else
25582 echo "configure: failed program was" >&5
25583 cat conftest.s >&5
25585 rm -f conftest.o conftest.s
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25589 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25590 if test $gcc_cv_as_powerpc_lwsync = yes; then
25592 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25596 case $target in
25597 *-*-aix*) conftest_s=' .machine "476"
25598 .csect .text[PR]
25599 dci 0';;
25600 *) conftest_s=' .machine "476"
25601 .text
25602 dci 0';;
25603 esac
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25606 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25607 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25608 $as_echo_n "(cached) " >&6
25609 else
25610 gcc_cv_as_powerpc_dci=no
25611 if test $in_tree_gas = yes; then
25612 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25613 then gcc_cv_as_powerpc_dci=yes
25615 elif test x$gcc_cv_as != x; then
25616 $as_echo "$conftest_s" > conftest.s
25617 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25619 (eval $ac_try) 2>&5
25620 ac_status=$?
25621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25622 test $ac_status = 0; }; }
25623 then
25624 gcc_cv_as_powerpc_dci=yes
25625 else
25626 echo "configure: failed program was" >&5
25627 cat conftest.s >&5
25629 rm -f conftest.o conftest.s
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25633 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25634 if test $gcc_cv_as_powerpc_dci = yes; then
25636 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25641 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25642 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25643 $as_echo_n "(cached) " >&6
25644 else
25645 gcc_cv_as_powerpc_gnu_attribute=no
25646 if test $in_tree_gas = yes; then
25647 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25648 then gcc_cv_as_powerpc_gnu_attribute=yes
25650 elif test x$gcc_cv_as != x; then
25651 $as_echo '.gnu_attribute 4,1' > conftest.s
25652 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25654 (eval $ac_try) 2>&5
25655 ac_status=$?
25656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25657 test $ac_status = 0; }; }
25658 then
25659 gcc_cv_as_powerpc_gnu_attribute=yes
25660 else
25661 echo "configure: failed program was" >&5
25662 cat conftest.s >&5
25664 rm -f conftest.o conftest.s
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25668 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25669 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25671 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25676 $as_echo_n "checking assembler for tls marker support... " >&6; }
25677 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25678 $as_echo_n "(cached) " >&6
25679 else
25680 gcc_cv_as_powerpc_tls_markers=no
25681 if test $in_tree_gas = yes; then
25682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25683 then gcc_cv_as_powerpc_tls_markers=yes
25685 elif test x$gcc_cv_as != x; then
25686 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25687 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25689 (eval $ac_try) 2>&5
25690 ac_status=$?
25691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25692 test $ac_status = 0; }; }
25693 then
25694 gcc_cv_as_powerpc_tls_markers=yes
25695 else
25696 echo "configure: failed program was" >&5
25697 cat conftest.s >&5
25699 rm -f conftest.o conftest.s
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25703 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25704 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25706 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25710 case $target in
25711 *-*-aix*)
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25713 $as_echo_n "checking assembler for .ref support... " >&6; }
25714 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25715 $as_echo_n "(cached) " >&6
25716 else
25717 gcc_cv_as_aix_ref=no
25718 if test $in_tree_gas = yes; then
25719 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25720 then gcc_cv_as_aix_ref=yes
25722 elif test x$gcc_cv_as != x; then
25723 $as_echo ' .csect stuff[rw]
25724 stuff:
25725 .long 1
25726 .extern sym
25727 .ref sym
25728 ' > conftest.s
25729 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25731 (eval $ac_try) 2>&5
25732 ac_status=$?
25733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25734 test $ac_status = 0; }; }
25735 then
25736 gcc_cv_as_aix_ref=yes
25737 else
25738 echo "configure: failed program was" >&5
25739 cat conftest.s >&5
25741 rm -f conftest.o conftest.s
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25745 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25746 if test $gcc_cv_as_aix_ref = yes; then
25748 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25752 esac
25755 mips*-*-*)
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25757 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25758 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25759 $as_echo_n "(cached) " >&6
25760 else
25761 gcc_cv_as_mips_explicit_relocs=no
25762 if test $in_tree_gas = yes; then
25763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25764 then gcc_cv_as_mips_explicit_relocs=yes
25766 elif test x$gcc_cv_as != x; then
25767 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
25768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25770 (eval $ac_try) 2>&5
25771 ac_status=$?
25772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25773 test $ac_status = 0; }; }
25774 then
25775 gcc_cv_as_mips_explicit_relocs=yes
25776 else
25777 echo "configure: failed program was" >&5
25778 cat conftest.s >&5
25780 rm -f conftest.o conftest.s
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25784 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25785 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25786 if test x$target_cpu_default = x
25787 then target_cpu_default=MASK_EXPLICIT_RELOCS
25788 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25792 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25793 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25794 $as_echo_n "(cached) " >&6
25795 else
25796 gcc_cv_as_mips_no_shared=no
25797 if test $in_tree_gas = yes; then
25798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25799 then gcc_cv_as_mips_no_shared=yes
25801 elif test x$gcc_cv_as != x; then
25802 $as_echo 'nop' > conftest.s
25803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25805 (eval $ac_try) 2>&5
25806 ac_status=$?
25807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25808 test $ac_status = 0; }; }
25809 then
25810 gcc_cv_as_mips_no_shared=yes
25811 else
25812 echo "configure: failed program was" >&5
25813 cat conftest.s >&5
25815 rm -f conftest.o conftest.s
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25819 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25820 if test $gcc_cv_as_mips_no_shared = yes; then
25822 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25827 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25828 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25829 $as_echo_n "(cached) " >&6
25830 else
25831 gcc_cv_as_mips_gnu_attribute=no
25832 if test $in_tree_gas = yes; then
25833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25834 then gcc_cv_as_mips_gnu_attribute=yes
25836 elif test x$gcc_cv_as != x; then
25837 $as_echo '.gnu_attribute 4,1' > conftest.s
25838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843 test $ac_status = 0; }; }
25844 then
25845 gcc_cv_as_mips_gnu_attribute=yes
25846 else
25847 echo "configure: failed program was" >&5
25848 cat conftest.s >&5
25850 rm -f conftest.o conftest.s
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25854 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25855 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25857 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
25862 $as_echo_n "checking assembler for .micromips support... " >&6; }
25863 if test "${gcc_cv_as_micromips_support+set}" = set; then :
25864 $as_echo_n "(cached) " >&6
25865 else
25866 gcc_cv_as_micromips_support=no
25867 if test x$gcc_cv_as != x; then
25868 $as_echo '.set micromips' > conftest.s
25869 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25872 ac_status=$?
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }
25875 then
25876 gcc_cv_as_micromips_support=yes
25877 else
25878 echo "configure: failed program was" >&5
25879 cat conftest.s >&5
25881 rm -f conftest.o conftest.s
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
25885 $as_echo "$gcc_cv_as_micromips_support" >&6; }
25886 if test $gcc_cv_as_micromips_support = yes; then
25888 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25893 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25894 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25895 $as_echo_n "(cached) " >&6
25896 else
25897 gcc_cv_as_mips_dtprelword=no
25898 if test $in_tree_gas = yes; then
25899 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25900 then gcc_cv_as_mips_dtprelword=yes
25902 elif test x$gcc_cv_as != x; then
25903 $as_echo '.section .tdata,"awT",@progbits
25905 .word 2
25906 .text
25907 .dtprelword x+0x8000' > conftest.s
25908 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25911 ac_status=$?
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25914 then
25915 gcc_cv_as_mips_dtprelword=yes
25916 else
25917 echo "configure: failed program was" >&5
25918 cat conftest.s >&5
25920 rm -f conftest.o conftest.s
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25924 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25925 if test $gcc_cv_as_mips_dtprelword = yes; then
25927 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25932 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25933 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25934 $as_echo_n "(cached) " >&6
25935 else
25936 gcc_cv_as_mips_dspr1_mult=no
25937 if test x$gcc_cv_as != x; then
25938 $as_echo ' .set mips32r2
25939 .set nodspr2
25940 .set dsp
25941 madd $ac3,$4,$5
25942 maddu $ac3,$4,$5
25943 msub $ac3,$4,$5
25944 msubu $ac3,$4,$5
25945 mult $ac3,$4,$5
25946 multu $ac3,$4,$5' > conftest.s
25947 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25949 (eval $ac_try) 2>&5
25950 ac_status=$?
25951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25952 test $ac_status = 0; }; }
25953 then
25954 gcc_cv_as_mips_dspr1_mult=yes
25955 else
25956 echo "configure: failed program was" >&5
25957 cat conftest.s >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25963 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25964 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25966 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25971 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25972 gcc_cv_as_ld_jalr_reloc=no
25973 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25974 if test $in_tree_ld = yes ; then
25975 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 \
25976 && test $in_tree_ld_is_elf = yes; then
25977 gcc_cv_as_ld_jalr_reloc=yes
25979 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25980 echo ' .ent x' > conftest.s
25981 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25982 echo ' ld $25,%call16(y)($28)' >> conftest.s
25983 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25984 echo '1: jalr $25' >> conftest.s
25985 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25986 echo '1: jalr $25' >> conftest.s
25987 echo ' .end x' >> conftest.s
25988 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25989 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25990 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25991 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25992 gcc_cv_as_ld_jalr_reloc=yes
25995 rm -f conftest.*
25998 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25999 if test x$target_cpu_default = x; then
26000 target_cpu_default=MASK_RELAX_PIC_CALLS
26001 else
26002 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26006 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26009 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26010 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26011 $as_echo_n "(cached) " >&6
26012 else
26013 gcc_cv_ld_mips_personality_relaxation=no
26014 if test $in_tree_ld = yes ; then
26015 if test "$gcc_cv_gld_major_version" -eq 2 \
26016 -a "$gcc_cv_gld_minor_version" -ge 21 \
26017 -o "$gcc_cv_gld_major_version" -gt 2; then
26018 gcc_cv_ld_mips_personality_relaxation=yes
26020 elif test x$gcc_cv_as != x \
26021 -a x$gcc_cv_ld != x \
26022 -a x$gcc_cv_readelf != x ; then
26023 cat > conftest.s <<EOF
26024 .cfi_startproc
26025 .cfi_personality 0x80,indirect_ptr
26026 .ent test
26027 test:
26029 .end test
26030 .cfi_endproc
26032 .section .data,"aw",@progbits
26033 indirect_ptr:
26034 .dc.a personality
26036 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
26037 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
26038 if $gcc_cv_readelf -d conftest 2>&1 \
26039 | grep TEXTREL > /dev/null 2>&1; then
26041 elif $gcc_cv_readelf --relocs conftest 2>&1 \
26042 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
26044 else
26045 gcc_cv_ld_mips_personality_relaxation=yes
26049 rm -f conftest.s conftest.o conftest
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26052 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26053 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
26055 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26060 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26061 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26062 $as_echo_n "(cached) " >&6
26063 else
26064 gcc_cv_as_mips_nan=no
26065 if test x$gcc_cv_as != x; then
26066 $as_echo '' > conftest.s
26067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26072 test $ac_status = 0; }; }
26073 then
26074 gcc_cv_as_mips_nan=yes
26075 else
26076 echo "configure: failed program was" >&5
26077 cat conftest.s >&5
26079 rm -f conftest.o conftest.s
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26083 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26084 if test $gcc_cv_as_mips_nan = yes; then
26086 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26089 if test x$gcc_cv_as_mips_nan = xno \
26090 && test x$with_nan != x; then
26091 as_fn_error "Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26094 esac
26096 # Mips and HP-UX need the GNU assembler.
26097 # Linux on IA64 might be able to use the Intel assembler.
26099 case "$target" in
26100 mips*-*-* | *-*-hpux* )
26101 if test x$gas_flag = xyes \
26102 || test x"$host" != x"$build" \
26103 || test ! -x "$gcc_cv_as" \
26104 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
26106 else
26107 echo "*** This configuration requires the GNU assembler" >&2
26108 exit 1
26111 esac
26113 # ??? Not all targets support dwarf2 debug_line, even within a version
26114 # of gas. Moreover, we need to emit a valid instruction to trigger any
26115 # info to the output file. So, as supported targets are added to gas 2.11,
26116 # add some instruction here to (also) show we expect this might work.
26117 # ??? Once 2.11 is released, probably need to add first known working
26118 # version to the per-target configury.
26119 case "$cpu_type" in
26120 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26121 | mips | pa | rs6000 | score | sparc | spu | tilegx | tilepro | xstormy16 \
26122 | xtensa)
26123 insn="nop"
26125 ia64 | s390)
26126 insn="nop 0"
26128 mmix)
26129 insn="swym 0"
26131 esac
26132 if test x"$insn" != x; then
26133 conftest_s="\
26134 .file 1 \"conftest.s\"
26135 .loc 1 3 0
26136 $insn"
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26138 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26139 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26141 else
26142 gcc_cv_as_dwarf2_debug_line=no
26143 if test $in_tree_gas = yes; then
26144 if test $in_tree_gas_is_elf = yes \
26145 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26146 then gcc_cv_as_dwarf2_debug_line=yes
26148 elif test x$gcc_cv_as != x; then
26149 $as_echo "$conftest_s" > conftest.s
26150 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26155 test $ac_status = 0; }; }
26156 then
26157 if test x$gcc_cv_objdump != x \
26158 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
26159 | grep debug_line > /dev/null 2>&1; then
26160 gcc_cv_as_dwarf2_debug_line=yes
26162 else
26163 echo "configure: failed program was" >&5
26164 cat conftest.s >&5
26166 rm -f conftest.o conftest.s
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26170 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26173 # The .debug_line file table must be in the exact order that
26174 # we specified the files, since these indices are also used
26175 # by DW_AT_decl_file. Approximate this test by testing if
26176 # the assembler bitches if the same index is assigned twice.
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26178 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26179 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26180 $as_echo_n "(cached) " >&6
26181 else
26182 gcc_cv_as_dwarf2_file_buggy=no
26183 if test x$gcc_cv_as != x; then
26184 $as_echo ' .file 1 "foo.s"
26185 .file 1 "bar.s"' > 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_dwarf2_file_buggy=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_dwarf2_file_buggy" >&5
26202 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26205 if test $gcc_cv_as_dwarf2_debug_line = yes \
26206 && test $gcc_cv_as_dwarf2_file_buggy = no; then
26208 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26213 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26214 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26215 $as_echo_n "(cached) " >&6
26216 else
26217 gcc_cv_as_gdwarf2_flag=no
26218 if test $in_tree_gas = yes; then
26219 if test $in_tree_gas_is_elf = yes \
26220 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26221 then gcc_cv_as_gdwarf2_flag=yes
26223 elif test x$gcc_cv_as != x; then
26224 $as_echo "$insn" > conftest.s
26225 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -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_gdwarf2_flag=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_gdwarf2_flag" >&5
26241 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26242 if test $gcc_cv_as_gdwarf2_flag = yes; then
26244 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26249 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26250 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26251 $as_echo_n "(cached) " >&6
26252 else
26253 gcc_cv_as_gstabs_flag=no
26254 if test $in_tree_gas = yes; then
26255 if test $in_tree_gas_is_elf = yes \
26256 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26257 then gcc_cv_as_gstabs_flag=yes
26259 elif test x$gcc_cv_as != x; then
26260 $as_echo "$insn" > conftest.s
26261 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26266 test $ac_status = 0; }; }
26267 then
26268 # The native Solaris 9/Intel assembler doesn't understand --gstabs
26269 # and warns about it, but still exits successfully. So check for
26270 # this.
26271 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
26272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26273 (eval $ac_try) 2>&5
26274 ac_status=$?
26275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26276 test $ac_status = 0; }; }
26277 then :
26278 else gcc_cv_as_gstabs_flag=yes
26280 else
26281 echo "configure: failed program was" >&5
26282 cat conftest.s >&5
26284 rm -f conftest.o conftest.s
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26288 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26289 if test $gcc_cv_as_gstabs_flag = yes; then
26291 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26296 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26297 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26298 $as_echo_n "(cached) " >&6
26299 else
26300 gcc_cv_as_debug_prefix_map_flag=no
26301 if test $in_tree_gas = yes; then
26302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26303 then gcc_cv_as_debug_prefix_map_flag=yes
26305 elif test x$gcc_cv_as != x; then
26306 $as_echo "$insn" > conftest.s
26307 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26309 (eval $ac_try) 2>&5
26310 ac_status=$?
26311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26312 test $ac_status = 0; }; }
26313 then
26314 gcc_cv_as_debug_prefix_map_flag=yes
26315 else
26316 echo "configure: failed program was" >&5
26317 cat conftest.s >&5
26319 rm -f conftest.o conftest.s
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26323 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26324 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26326 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26332 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26333 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26334 $as_echo_n "(cached) " >&6
26335 else
26336 gcc_cv_as_lcomm_with_alignment=no
26337 if test x$gcc_cv_as != x; then
26338 $as_echo '.lcomm bar,4,16' > conftest.s
26339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26341 (eval $ac_try) 2>&5
26342 ac_status=$?
26343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26344 test $ac_status = 0; }; }
26345 then
26346 gcc_cv_as_lcomm_with_alignment=yes
26347 else
26348 echo "configure: failed program was" >&5
26349 cat conftest.s >&5
26351 rm -f conftest.o conftest.s
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26355 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26356 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26358 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26362 # Check whether --enable-gnu-unique-object was given.
26363 if test "${enable_gnu_unique_object+set}" = set; then :
26364 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26365 yes | no) ;;
26366 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26367 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26368 esac
26369 else
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26371 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26372 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26373 $as_echo_n "(cached) " >&6
26374 else
26375 gcc_cv_as_gnu_unique_object=no
26376 if test $in_tree_gas = yes; then
26377 if test $in_tree_gas_is_elf = yes \
26378 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26379 then gcc_cv_as_gnu_unique_object=yes
26381 elif test x$gcc_cv_as != x; then
26382 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26388 test $ac_status = 0; }; }
26389 then
26390 gcc_cv_as_gnu_unique_object=yes
26391 else
26392 echo "configure: failed program was" >&5
26393 cat conftest.s >&5
26395 rm -f conftest.o conftest.s
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26399 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26400 if test $gcc_cv_as_gnu_unique_object = yes; then
26401 # We need to unquote above to to use the definition from config.gcc.
26402 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26403 if test x$host = x$build -a x$host = x$target &&
26404 ldd --version 2>/dev/null &&
26405 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26406 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26407 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26408 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26409 if test "$glibcnum" -ge 2011 ; then
26410 enable_gnu_unique_object=yes
26416 if test x$enable_gnu_unique_object = xyes; then
26418 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26423 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26424 if test "${gcc_cv_as_line_zero+set}" = set; then :
26425 $as_echo_n "(cached) " >&6
26426 else
26427 gcc_cv_as_line_zero=no
26428 if test $in_tree_gas = yes; then
26429 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26430 then gcc_cv_as_line_zero=yes
26432 elif test "x$gcc_cv_as" != x; then
26433 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26434 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26436 (eval $ac_try) 2>&5
26437 ac_status=$?
26438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26439 test $ac_status = 0; }; } &&
26440 test "x`cat conftest.out`" = x
26441 then
26442 gcc_cv_as_line_zero=yes
26443 else
26444 echo "configure: failed program was" >&5
26445 cat conftest.s >&5
26446 echo "configure: error output was" >&5
26447 cat conftest.out >&5
26449 rm -f conftest.o conftest.s conftest.out
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26453 $as_echo "$gcc_cv_as_line_zero" >&6; }
26454 if test "x$gcc_cv_as_line_zero" = xyes; then
26456 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26461 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26462 gcc_cv_ld_eh_frame_hdr=no
26463 if test $in_tree_ld = yes ; then
26464 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 \
26465 && test $in_tree_ld_is_elf = yes; then
26466 gcc_cv_ld_eh_frame_hdr=yes
26468 elif test x$gcc_cv_ld != x; then
26469 if echo "$ld_ver" | grep GNU > /dev/null; then
26470 # Check if linker supports --eh-frame-hdr option
26471 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26472 gcc_cv_ld_eh_frame_hdr=yes
26474 else
26475 case "$target" in
26476 *-*-solaris2*)
26477 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26478 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26479 gcc_cv_ld_eh_frame_hdr=yes
26482 esac
26486 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26488 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26492 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26495 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26496 gcc_cv_ld_eh_frame_ciev3=no
26497 if test $in_tree_ld = yes ; then
26498 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 \
26499 && test $in_tree_ld_is_elf = yes; then
26500 gcc_cv_ld_eh_frame_ciev3=yes
26502 elif test x$gcc_cv_ld != x; then
26503 if echo "$ld_ver" | grep GNU > /dev/null; then
26504 gcc_cv_ld_eh_frame_ciev3=yes
26505 if test 0"$ld_date" -lt 20040513; then
26506 if test -n "$ld_date"; then
26507 # If there was date string, but was earlier than 2004-05-13, fail
26508 gcc_cv_ld_eh_frame_ciev3=no
26509 elif test "$ld_vers_major" -lt 2; then
26510 gcc_cv_ld_eh_frame_ciev3=no
26511 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26512 gcc_cv_ld_eh_frame_ciev3=no
26515 else
26516 case "$target" in
26517 *-*-solaris2*)
26518 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26519 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2324; then
26520 gcc_cv_ld_eh_frame_ciev3=yes
26523 esac
26527 cat >>confdefs.h <<_ACEOF
26528 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26529 _ACEOF
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26532 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26535 $as_echo_n "checking linker position independent executable support... " >&6; }
26536 gcc_cv_ld_pie=no
26537 if test $in_tree_ld = yes ; then
26538 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 \
26539 && test $in_tree_ld_is_elf = yes; then
26540 gcc_cv_ld_pie=yes
26542 elif test x$gcc_cv_ld != x; then
26543 # Check if linker supports -pie option
26544 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26545 gcc_cv_ld_pie=yes
26548 if test x"$gcc_cv_ld_pie" = xyes; then
26550 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26554 $as_echo "$gcc_cv_ld_pie" >&6; }
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26557 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26558 gcc_cv_ld_eh_gc_sections=no
26559 if test $in_tree_ld = yes ; then
26560 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 \
26561 && test $in_tree_ld_is_elf = yes; then
26562 gcc_cv_ld_eh_gc_sections=yes
26564 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26565 cat > conftest.s <<EOF
26566 .section .text
26567 .globl _start
26568 .type _start, @function
26569 _start:
26570 .long foo
26571 .size _start, .-_start
26572 .section .text.foo,"ax",@progbits
26573 .type foo, @function
26574 foo:
26575 .long 0
26576 .size foo, .-foo
26577 .section .gcc_except_table.foo,"a",@progbits
26578 .L0:
26579 .long 0
26580 .section .eh_frame,"a",@progbits
26581 .long .L0
26583 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26584 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26585 | grep "gc-sections option ignored" > /dev/null; then
26586 gcc_cv_ld_eh_gc_sections=no
26587 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26588 | grep gcc_except_table > /dev/null; then
26589 gcc_cv_ld_eh_gc_sections=yes
26590 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26591 if test x$gcc_cv_as_comdat_group != xyes; then
26592 gcc_cv_ld_eh_gc_sections=no
26593 cat > conftest.s <<EOF
26594 .section .text
26595 .globl _start
26596 .type _start, @function
26597 _start:
26598 .long foo
26599 .size _start, .-_start
26600 .section .gnu.linkonce.t.foo,"ax",@progbits
26601 .type foo, @function
26602 foo:
26603 .long 0
26604 .size foo, .-foo
26605 .section .gcc_except_table.foo,"a",@progbits
26606 .L0:
26607 .long 0
26608 .section .eh_frame,"a",@progbits
26609 .long .L0
26611 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26612 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26613 | grep "gc-sections option ignored" > /dev/null; then
26614 gcc_cv_ld_eh_gc_sections=no
26615 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26616 | grep gcc_except_table > /dev/null; then
26617 gcc_cv_ld_eh_gc_sections=yes
26623 rm -f conftest.s conftest.o conftest
26625 case "$target" in
26626 hppa*-*-linux*)
26627 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26628 gcc_cv_ld_eh_gc_sections=no
26630 esac
26631 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26633 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26637 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26640 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26641 gcc_cv_ld_eh_gc_sections_bug=no
26642 if test $in_tree_ld = yes ; then
26643 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 \
26644 && test $in_tree_ld_is_elf = yes; then
26645 gcc_cv_ld_eh_gc_sections_bug=yes
26647 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
26648 gcc_cv_ld_eh_gc_sections_bug=yes
26649 cat > conftest.s <<EOF
26650 .section .text
26651 .globl _start
26652 .type _start, @function
26653 _start:
26654 .long foo
26655 .size _start, .-_start
26656 .section .text.startup.foo,"ax",@progbits
26657 .type foo, @function
26658 foo:
26659 .long 0
26660 .size foo, .-foo
26661 .section .gcc_except_table.foo,"a",@progbits
26662 .L0:
26663 .long 0
26664 .section .eh_frame,"a",@progbits
26665 .long .L0
26667 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26668 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26669 | grep "gc-sections option ignored" > /dev/null; then
26671 elif $gcc_cv_objdump -h conftest 2> /dev/null \
26672 | grep gcc_except_table > /dev/null; then
26673 gcc_cv_ld_eh_gc_sections_bug=no
26676 rm -f conftest.s conftest.o conftest
26678 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26680 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26684 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26686 # --------
26687 # UNSORTED
26688 # --------
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26691 $as_echo_n "checking linker --as-needed support... " >&6; }
26692 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26693 $as_echo_n "(cached) " >&6
26694 else
26695 gcc_cv_ld_as_needed=no
26696 gcc_cv_ld_as_needed_option='--as-needed'
26697 gcc_cv_ld_no_as_needed_option='--no-as-needed'
26698 if test $in_tree_ld = yes ; then
26699 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 \
26700 && test $in_tree_ld_is_elf = yes; then
26701 gcc_cv_ld_as_needed=yes
26703 elif test x$gcc_cv_ld != x; then
26704 # Check if linker supports --as-needed and --no-as-needed options
26705 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26706 gcc_cv_ld_as_needed=yes
26707 else
26708 case "$target" in
26709 # Solaris 2 ld always supports -z ignore/-z record.
26710 *-*-solaris2*)
26711 gcc_cv_ld_as_needed=yes
26712 gcc_cv_ld_as_needed_option="-z ignore"
26713 gcc_cv_ld_no_as_needed_option="-z record"
26715 esac
26718 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
26719 # dl_iterate_phdr, i.e. since Solaris 11.
26720 case "$target" in
26721 *-*-solaris2.1[1-9]*)
26722 case "$target" in
26723 i?86-*-* | x86_64-*-*)
26724 if echo "$ld_ver" | grep GNU > /dev/null; then
26725 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
26726 gcc_cv_ld_as_needed=no
26729 esac
26731 *-*-solaris2*)
26732 gcc_cv_ld_as_needed=no
26734 esac
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26738 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26739 if test x"$gcc_cv_ld_as_needed" = xyes; then
26741 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26744 cat >>confdefs.h <<_ACEOF
26745 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
26746 _ACEOF
26749 cat >>confdefs.h <<_ACEOF
26750 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
26751 _ACEOF
26755 case "$target:$tm_file" in
26756 powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26757 case "$target" in
26758 *le-*-linux*)
26759 emul_name="-melf64lppc"
26761 *-*-linux*)
26762 emul_name="-melf64ppc"
26764 *-*-freebsd*)
26765 emul_name="-melf64ppc_fbsd"
26767 esac
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26769 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26770 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26771 $as_echo_n "(cached) " >&6
26772 else
26773 gcc_cv_ld_no_dot_syms=no
26774 if test x"$ld_is_gold" = xyes; then
26775 gcc_cv_ld_no_dot_syms=yes
26776 elif test $in_tree_ld = yes ; then
26777 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
26778 gcc_cv_ld_no_dot_syms=yes
26780 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26781 cat > conftest1.s <<EOF
26782 .text
26783 bl .foo
26785 cat > conftest2.s <<EOF
26786 .section ".opd","aw"
26787 .align 3
26788 .globl foo
26789 .type foo,@function
26790 foo:
26791 .quad .LEfoo,.TOC.@tocbase,0
26792 .text
26793 .LEfoo:
26795 .size foo,.-.LEfoo
26797 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26798 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26799 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26800 gcc_cv_ld_no_dot_syms=yes
26802 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26807 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26808 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26810 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26815 $as_echo_n "checking linker large toc support... " >&6; }
26816 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26817 $as_echo_n "(cached) " >&6
26818 else
26819 gcc_cv_ld_large_toc=no
26820 if test x"$ld_is_gold" = xyes; then
26821 gcc_cv_ld_large_toc=yes
26822 elif test $in_tree_ld = yes ; then
26823 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
26824 gcc_cv_ld_large_toc=yes
26826 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26827 cat > conftest.s <<EOF
26828 .section ".tbss","awT",@nobits
26829 .align 3
26830 ie0: .space 8
26831 .global _start
26832 .text
26833 _start:
26834 addis 9,13,ie0@got@tprel@ha
26835 ld 9,ie0@got@tprel@l(9)
26837 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26838 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26839 gcc_cv_ld_large_toc=yes
26841 rm -f conftest conftest.o conftest.s
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26846 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26847 if test x"$gcc_cv_ld_large_toc" = xyes; then
26849 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26853 esac
26855 case "$target" in
26856 *-*-aix*)
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26858 $as_echo_n "checking linker large toc support... " >&6; }
26859 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26860 $as_echo_n "(cached) " >&6
26861 else
26862 gcc_cv_ld_large_toc=no
26863 if test x$gcc_cv_as != x ; then
26864 cat > conftest.s <<EOF
26865 .toc
26866 LC..1:
26867 .tc a[TC],a[RW]
26868 .extern a[RW]
26869 .csect .text[PR]
26870 .largetoctest:
26871 addis 9,LC..1@u(2)
26872 ld 3,LC..1@l(9)
26874 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1; then
26875 gcc_cv_ld_large_toc=yes
26877 rm -f conftest conftest.o conftest.s
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26882 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26883 if test x"$gcc_cv_ld_large_toc" = xyes; then
26885 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26889 esac
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26892 $as_echo_n "checking linker --build-id support... " >&6; }
26893 if test "${gcc_cv_ld_buildid+set}" = set; then :
26894 $as_echo_n "(cached) " >&6
26895 else
26896 gcc_cv_ld_buildid=no
26897 if test $in_tree_ld = yes ; then
26898 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26899 "$gcc_cv_gld_minor_version" -ge 18 -o \
26900 "$gcc_cv_gld_major_version" -gt 2 \
26901 && test $in_tree_ld_is_elf = yes; then
26902 gcc_cv_ld_buildid=yes
26904 elif test x$gcc_cv_ld != x; then
26905 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26906 gcc_cv_ld_buildid=yes
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26911 $as_echo "$gcc_cv_ld_buildid" >&6; }
26912 if test x"$gcc_cv_ld_buildid" = xyes; then
26914 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26918 # Check whether --enable-linker-build-id was given.
26919 if test "${enable_linker_build_id+set}" = set; then :
26920 enableval=$enable_linker_build_id;
26921 else
26922 enable_linker_build_id=no
26926 if test x"$enable_linker_build_id" = xyes; then
26927 if test x"$gcc_cv_ld_buildid" = xyes; then
26929 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26931 else
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26933 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26937 # In binutils 2.21, GNU ld gained support for new emulations fully
26938 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26940 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26941 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26942 $as_echo_n "(cached) " >&6
26943 else
26944 gcc_cv_ld_sol2_emulation=no
26945 if test $in_tree_ld = yes ; then
26946 if test "$gcc_cv_gld_major_version" -eq 2 -a \
26947 "$gcc_cv_gld_minor_version" -ge 21 -o \
26948 "$gcc_cv_gld_major_version" -gt 2 \
26949 && test $in_tree_ld_is_elf = yes; then
26950 gcc_cv_ld_sol2_emulation=yes
26952 elif test x$gcc_cv_ld != x; then
26953 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26954 grep _sol2 > /dev/null; then
26955 gcc_cv_ld_sol2_emulation=yes
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26960 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26961 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26963 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26968 $as_echo_n "checking linker --sysroot support... " >&6; }
26969 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26970 $as_echo_n "(cached) " >&6
26971 else
26972 gcc_cv_ld_sysroot=no
26973 if test $in_tree_ld = yes ; then
26974 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
26975 gcc_cv_ld_sysroot=yes
26977 elif test x$gcc_cv_ld != x; then
26978 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26979 gcc_cv_ld_sysroot=yes
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26984 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26985 if test x"$gcc_cv_ld_sysroot" = xyes; then
26987 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26991 if test x$with_sysroot = x && test x$host = x$target \
26992 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26993 && test "$prefix" != "NONE"; then
26995 cat >>confdefs.h <<_ACEOF
26996 #define PREFIX_INCLUDE_DIR "$prefix/include"
26997 _ACEOF
27001 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
27002 if test "x$with_headers" != x; then
27003 target_header_dir=$with_headers
27004 elif test "x$with_sysroot" = x; then
27005 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-include"
27006 elif test "x$with_build_sysroot" != "x"; then
27007 target_header_dir="${with_build_sysroot}${native_system_header_dir}"
27008 elif test "x$with_sysroot" = xyes; then
27009 target_header_dir="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
27010 else
27011 target_header_dir="${with_sysroot}${native_system_header_dir}"
27013 else
27014 target_header_dir=${native_system_header_dir}
27017 # Test for stack protector support in target C library.
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27019 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27020 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27021 $as_echo_n "(cached) " >&6
27022 else
27023 gcc_cv_libc_provides_ssp=no
27024 case "$target" in
27025 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
27026 # glibc 2.4 and later provides __stack_chk_fail and
27027 # either __stack_chk_guard, or TLS access to stack guard canary.
27028 if test -f $target_header_dir/features.h \
27029 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27030 $target_header_dir/features.h > /dev/null; then
27031 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
27032 $target_header_dir/features.h > /dev/null; then
27033 gcc_cv_libc_provides_ssp=yes
27034 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
27035 $target_header_dir/features.h > /dev/null \
27036 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
27037 $target_header_dir/features.h > /dev/null; then
27038 gcc_cv_libc_provides_ssp=yes
27039 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27040 $target_header_dir/features.h > /dev/null && \
27041 test -f $target_header_dir/bits/uClibc_config.h && \
27042 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27043 $target_header_dir/bits/uClibc_config.h > /dev/null; then
27044 gcc_cv_libc_provides_ssp=yes
27046 # all versions of Bionic support stack protector
27047 elif test -f $target_header_dir/sys/cdefs.h \
27048 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27049 $target_header_dir/sys/cdefs.h > /dev/null; then
27050 gcc_cv_libc_provides_ssp=yes
27053 *-*-gnu*)
27054 # Avoid complicated tests (see
27055 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27056 # simply assert that glibc does provide this, which is true for all
27057 # realistically usable GNU/Hurd configurations.
27058 gcc_cv_libc_provides_ssp=yes;;
27059 *-*-darwin* | *-*-freebsd*)
27060 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27061 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
27062 gcc_cv_libc_provides_ssp=yes
27063 else
27064 echo "no __stack_chk_fail on this target"
27068 *) gcc_cv_libc_provides_ssp=no ;;
27069 esac
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27072 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27074 if test x$gcc_cv_libc_provides_ssp = xyes; then
27076 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27080 # Test for <sys/sdt.h> on the target.
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27083 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27084 have_sys_sdt_h=no
27085 if test -f $target_header_dir/sys/sdt.h; then
27086 have_sys_sdt_h=yes
27088 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27092 $as_echo "$have_sys_sdt_h" >&6; }
27094 # Check if TFmode long double should be used by default or not.
27095 # Some glibc targets used DFmode long double, but with glibc 2.4
27096 # and later they can use TFmode.
27097 case "$target" in
27098 powerpc*-*-linux* | \
27099 sparc*-*-linux* | \
27100 s390*-*-linux* | \
27101 alpha*-*-linux*)
27103 # Check whether --with-long-double-128 was given.
27104 if test "${with_long_double_128+set}" = set; then :
27105 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
27106 else
27107 gcc_cv_target_ldbl128=no
27108 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27109 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
27110 && gcc_cv_target_ldbl128=yes
27115 esac
27116 if test x$gcc_cv_target_ldbl128 = xyes; then
27118 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27123 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27124 gcc_cv_target_dl_iterate_phdr=unknown
27125 case "$target" in
27126 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27127 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27128 # libdl there, both complicating its use and breaking compatibility
27129 # between Solaris 10 updates.
27130 *-*-solaris2.1[1-9]*)
27131 # <link.h> needs both a dl_iterate_phdr declaration and support for
27132 # compilation with largefile support.
27133 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
27134 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
27135 gcc_cv_target_dl_iterate_phdr=yes
27136 else
27137 gcc_cv_target_dl_iterate_phdr=no
27140 esac
27142 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
27144 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27148 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27150 # We no longer support different GC mechanisms. Emit an error if
27151 # the user configures with --with-gc.
27153 # Check whether --with-gc was given.
27154 if test "${with_gc+set}" = set; then :
27155 withval=$with_gc; as_fn_error "Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27159 # Libraries to use on the host. This will normally be set by the top
27160 # level Makefile. Here we simply capture the value for our Makefile.
27161 if test -z "${HOST_LIBS+set}"; then
27162 HOST_LIBS=
27166 # Use the system's zlib library.
27167 zlibdir=-L../zlib
27168 zlibinc="-I\$(srcdir)/../zlib"
27170 # Check whether --with-system-zlib was given.
27171 if test "${with_system_zlib+set}" = set; then :
27172 withval=$with_system_zlib; zlibdir=
27173 zlibinc=
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27182 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27183 # Check whether --enable-maintainer-mode was given.
27184 if test "${enable_maintainer_mode+set}" = set; then :
27185 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
27186 else
27187 maintainer_mode=no
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27192 $as_echo "$maintainer_mode" >&6; }
27194 if test "$maintainer_mode" = "yes"; then
27195 MAINT=''
27196 else
27197 MAINT='#'
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27202 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27203 # Check whether --enable-link-mutex was given.
27204 if test "${enable_link_mutex+set}" = set; then :
27205 enableval=$enable_link_mutex; do_link_mutex=$enableval
27206 else
27207 do_link_mutex=no
27210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27211 $as_echo "$do_link_mutex" >&6; }
27213 if test "$do_link_mutex" = "yes"; then
27214 DO_LINK_MUTEX=true
27215 else
27216 DO_LINK_MUTEX=false
27220 # --------------
27221 # Language hooks
27222 # --------------
27224 # Make empty files to contain the specs and options for each language.
27225 # Then add #include lines to for a compiler that has specs and/or options.
27227 subdirs=
27228 lang_opt_files=
27229 lang_specs_files=
27230 lang_tree_files=
27231 # These (without "all_") are set in each config-lang.in.
27232 # `language' must be a single word so is spelled singularly.
27233 all_languages=
27234 all_compilers=
27235 all_outputs='Makefile'
27236 # List of language makefile fragments.
27237 all_lang_makefrags=
27238 # Additional files for gengtype
27239 all_gtfiles="$target_gtfiles"
27241 # These are the languages that are set in --enable-languages,
27242 # and are available in the GCC tree.
27243 all_selected_languages=
27245 # Add the language fragments.
27246 # Languages are added via two mechanisms. Some information must be
27247 # recorded in makefile variables, these are defined in config-lang.in.
27248 # We accumulate them and plug them into the main Makefile.
27249 # The other mechanism is a set of hooks for each of the main targets
27250 # like `clean', `install', etc.
27252 language_hooks="Make-hooks"
27254 for lang in ${srcdir}/*/config-lang.in
27256 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27258 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27259 if test "x$lang_alias" = x
27260 then
27261 echo "$lang doesn't set \$language." 1>&2
27262 exit 1
27264 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27265 subdirs="$subdirs $subdir"
27267 # $gcc_subdir is where the gcc integration files are to be found
27268 # for a language, both for internal compiler purposes (compiler
27269 # sources implementing front-end to GCC tree converters), and for
27270 # build infrastructure purposes (Make-lang.in, etc.)
27272 # This will be <subdir> (relative to $srcdir) if a line like
27273 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27274 # is found in <langdir>/config-lang.in, and will remain <langdir>
27275 # otherwise.
27277 # Except for the language alias (fetched above), the regular
27278 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27279 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27280 # only this and the language alias.
27282 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27283 if [ "$gcc_subdir" = "" ]; then
27284 gcc_subdir="$subdir"
27287 case ",$enable_languages," in
27288 *,$lang_alias,*)
27289 all_selected_languages="$all_selected_languages $lang_alias"
27290 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
27291 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27294 esac
27296 language=
27297 boot_language=
27298 compilers=
27299 outputs=
27300 gtfiles=
27301 subdir_requires=
27302 . ${srcdir}/$gcc_subdir/config-lang.in
27303 if test "x$language" = x
27304 then
27305 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27306 exit 1
27309 ok=:
27310 case ",$enable_languages," in
27311 *,$lang_alias,*) ;;
27313 for i in $subdir_requires; do
27314 test -f "${srcdir}/$i/config-lang.in" && continue
27315 ok=false
27316 break
27317 done
27319 esac
27320 $ok || continue
27322 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27323 if test -f $srcdir/$gcc_subdir/lang.opt; then
27324 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27325 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27327 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
27328 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27330 all_languages="$all_languages $language"
27331 all_compilers="$all_compilers $compilers"
27332 all_outputs="$all_outputs $outputs"
27333 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
27334 case ",$enable_languages," in
27335 *,lto,*)
27337 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27339 enable_lto=yes
27342 *) ;;
27343 esac
27344 done
27346 check_languages=
27347 for language in $all_selected_languages
27349 check_languages="$check_languages check-$language"
27350 done
27352 # We link each language in with a set of hooks, reached indirectly via
27353 # lang.${target}. Only do so for selected languages.
27355 rm -f Make-hooks
27356 touch Make-hooks
27357 target_list="all.cross start.encap rest.encap tags \
27358 install-common install-man install-info install-pdf install-html dvi \
27359 pdf html uninstall info man srcextra srcman srcinfo \
27360 mostlyclean clean distclean maintainer-clean install-plugin"
27362 for t in $target_list
27365 for lang in $all_selected_languages
27367 x="$x $lang.$t"
27368 done
27369 echo "lang.$t: $x" >> Make-hooks
27370 done
27372 # --------
27373 # Option include files
27374 # --------
27376 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
27377 option_includes="option-includes.mk"
27380 # --------
27381 # UNSORTED
27382 # --------
27384 # Create .gdbinit.
27386 echo "dir ." > .gdbinit
27387 echo "dir ${srcdir}" >> .gdbinit
27388 if test x$gdb_needs_out_file_path = xyes
27389 then
27390 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27392 if test "x$subdirs" != x; then
27393 for s in $subdirs
27395 echo "dir ${srcdir}/$s" >> .gdbinit
27396 done
27398 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27399 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27401 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27405 # Find a directory in which to install a shared libgcc.
27407 # Check whether --enable-version-specific-runtime-libs was given.
27408 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27409 enableval=$enable_version_specific_runtime_libs;
27413 # Substitute configuration variables
27476 # Echo link setup.
27477 if test x${build} = x${host} ; then
27478 if test x${host} = x${target} ; then
27479 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27480 else
27481 echo "Links are now set up to build a cross-compiler" 1>&2
27482 echo " from ${host} to ${target}." 1>&2
27484 else
27485 if test x${host} = x${target} ; then
27486 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27487 echo " for ${target}." 1>&2
27488 else
27489 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27490 echo " from ${host} to ${target}." 1>&2
27502 if test "x${CLOOGLIBS}" != "x" ; then
27504 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27508 # Check for plugin support
27509 # Check whether --enable-plugin was given.
27510 if test "${enable_plugin+set}" = set; then :
27511 enableval=$enable_plugin; enable_plugin=$enableval
27512 else
27513 enable_plugin=yes; default_plugin=yes
27517 pluginlibs=
27519 case "${host}" in
27520 *-*-darwin*)
27521 if test x$build = x$host; then
27522 export_sym_check="nm${exeext} -g"
27523 elif test x$host = x$target; then
27524 export_sym_check="$gcc_cv_nm -g"
27525 else
27526 export_sym_check=
27530 if test x$build = x$host; then
27531 export_sym_check="objdump${exeext} -T"
27532 elif test x$host = x$target; then
27533 export_sym_check="$gcc_cv_objdump -T"
27534 else
27535 export_sym_check=
27538 esac
27540 if test x"$enable_plugin" = x"yes"; then
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27543 $as_echo_n "checking for exported symbols... " >&6; }
27544 if test "x$export_sym_check" != x; then
27545 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27546 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27547 if $export_sym_check conftest | grep foobar > /dev/null; then
27548 : # No need to use a flag
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27550 $as_echo "yes" >&6; }
27551 else
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27553 $as_echo "yes" >&6; }
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27555 $as_echo_n "checking for -rdynamic... " >&6; }
27556 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27557 if $export_sym_check conftest | grep foobar > /dev/null; then
27558 plugin_rdynamic=yes
27559 pluginlibs="-rdynamic"
27560 else
27561 plugin_rdynamic=no
27562 enable_plugin=no
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27565 $as_echo "$plugin_rdynamic" >&6; }
27567 else
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27569 $as_echo "unable to check" >&6; }
27572 # Check -ldl
27573 saved_LIBS="$LIBS"
27574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27575 $as_echo_n "checking for library containing dlopen... " >&6; }
27576 if test "${ac_cv_search_dlopen+set}" = set; then :
27577 $as_echo_n "(cached) " >&6
27578 else
27579 ac_func_search_save_LIBS=$LIBS
27580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27581 /* end confdefs.h. */
27583 /* Override any GCC internal prototype to avoid an error.
27584 Use char because int might match the return type of a GCC
27585 builtin and then its argument prototype would still apply. */
27586 #ifdef __cplusplus
27587 extern "C"
27588 #endif
27589 char dlopen ();
27591 main ()
27593 return dlopen ();
27595 return 0;
27597 _ACEOF
27598 for ac_lib in '' dl; do
27599 if test -z "$ac_lib"; then
27600 ac_res="none required"
27601 else
27602 ac_res=-l$ac_lib
27603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27605 if ac_fn_c_try_link "$LINENO"; then :
27606 ac_cv_search_dlopen=$ac_res
27608 rm -f core conftest.err conftest.$ac_objext \
27609 conftest$ac_exeext
27610 if test "${ac_cv_search_dlopen+set}" = set; then :
27611 break
27613 done
27614 if test "${ac_cv_search_dlopen+set}" = set; then :
27616 else
27617 ac_cv_search_dlopen=no
27619 rm conftest.$ac_ext
27620 LIBS=$ac_func_search_save_LIBS
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27623 $as_echo "$ac_cv_search_dlopen" >&6; }
27624 ac_res=$ac_cv_search_dlopen
27625 if test "$ac_res" != no; then :
27626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27630 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27631 pluginlibs="$pluginlibs -ldl"
27633 LIBS="$saved_LIBS"
27635 # Check that we can build shared objects with -fPIC -shared
27636 saved_LDFLAGS="$LDFLAGS"
27637 saved_CFLAGS="$CFLAGS"
27638 case "${host}" in
27639 *-*-darwin*)
27640 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27641 CFLAGS="$CFLAGS -fPIC"
27642 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27645 CFLAGS="$CFLAGS -fPIC"
27646 LDFLAGS="$LDFLAGS -fPIC -shared"
27648 esac
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27650 $as_echo_n "checking for -fPIC -shared... " >&6; }
27651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27652 /* end confdefs.h. */
27653 extern int X;
27655 main ()
27657 return X == 0;
27659 return 0;
27661 _ACEOF
27662 if ac_fn_c_try_link "$LINENO"; then :
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27664 $as_echo "yes" >&6; }; have_pic_shared=yes
27665 else
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27667 $as_echo "no" >&6; }; have_pic_shared=no
27669 rm -f core conftest.err conftest.$ac_objext \
27670 conftest$ac_exeext conftest.$ac_ext
27671 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27672 pluginlibs=
27673 enable_plugin=no
27675 LDFLAGS="$saved_LDFLAGS"
27676 CFLAGS="$saved_CFLAGS"
27678 # If plugin support had been requested but not available, fail.
27679 if test x"$enable_plugin" = x"no" ; then
27680 if test x"$default_plugin" != x"yes"; then
27681 as_fn_error "
27682 Building GCC with plugin support requires a host that supports
27683 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27690 if test x"$enable_plugin" = x"yes"; then
27692 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27697 # Check whether --enable-libquadmath-support was given.
27698 if test "${enable_libquadmath_support+set}" = set; then :
27699 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27700 else
27701 ENABLE_LIBQUADMATH_SUPPORT=yes
27704 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27706 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27711 # Specify what hash style to use by default.
27713 # Check whether --with-linker-hash-style was given.
27714 if test "${with_linker_hash_style+set}" = set; then :
27715 withval=$with_linker_hash_style; case x"$withval" in
27716 xsysv)
27717 LINKER_HASH_STYLE=sysv
27719 xgnu)
27720 LINKER_HASH_STYLE=gnu
27722 xboth)
27723 LINKER_HASH_STYLE=both
27726 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27728 esac
27729 else
27730 LINKER_HASH_STYLE=''
27733 if test x"${LINKER_HASH_STYLE}" != x; then
27735 cat >>confdefs.h <<_ACEOF
27736 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27737 _ACEOF
27741 # Configure the subdirectories
27742 # AC_CONFIG_SUBDIRS($subdirs)
27744 # Create the Makefile
27745 # and configure language subdirectories
27746 ac_config_files="$ac_config_files $all_outputs"
27749 ac_config_commands="$ac_config_commands default"
27751 cat >confcache <<\_ACEOF
27752 # This file is a shell script that caches the results of configure
27753 # tests run on this system so they can be shared between configure
27754 # scripts and configure runs, see configure's option --config-cache.
27755 # It is not useful on other systems. If it contains results you don't
27756 # want to keep, you may remove or edit it.
27758 # config.status only pays attention to the cache file if you give it
27759 # the --recheck option to rerun configure.
27761 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27762 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27763 # following values.
27765 _ACEOF
27767 # The following way of writing the cache mishandles newlines in values,
27768 # but we know of no workaround that is simple, portable, and efficient.
27769 # So, we kill variables containing newlines.
27770 # Ultrix sh set writes to stderr and can't be redirected directly,
27771 # and sets the high bit in the cache file unless we assign to the vars.
27773 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27774 eval ac_val=\$$ac_var
27775 case $ac_val in #(
27776 *${as_nl}*)
27777 case $ac_var in #(
27778 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27780 esac
27781 case $ac_var in #(
27782 _ | IFS | as_nl) ;; #(
27783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27784 *) { eval $ac_var=; unset $ac_var;} ;;
27785 esac ;;
27786 esac
27787 done
27789 (set) 2>&1 |
27790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27791 *${as_nl}ac_space=\ *)
27792 # `set' does not quote correctly, so add quotes: double-quote
27793 # substitution turns \\\\ into \\, and sed turns \\ into \.
27794 sed -n \
27795 "s/'/'\\\\''/g;
27796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27797 ;; #(
27799 # `set' quotes correctly as required by POSIX, so do not add quotes.
27800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27802 esac |
27803 sort
27805 sed '
27806 /^ac_cv_env_/b end
27807 t clear
27808 :clear
27809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27810 t end
27811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27812 :end' >>confcache
27813 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27814 if test -w "$cache_file"; then
27815 test "x$cache_file" != "x/dev/null" &&
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27817 $as_echo "$as_me: updating cache $cache_file" >&6;}
27818 cat confcache >$cache_file
27819 else
27820 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27821 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27824 rm -f confcache
27826 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27827 # Let make expand exec_prefix.
27828 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27830 DEFS=-DHAVE_CONFIG_H
27832 ac_libobjs=
27833 ac_ltlibobjs=
27834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27835 # 1. Remove the extension, and $U if already installed.
27836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27837 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27839 # will be set to the directory where LIBOBJS objects are built.
27840 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27841 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27842 done
27843 LIBOBJS=$ac_libobjs
27845 LTLIBOBJS=$ac_ltlibobjs
27850 : ${CONFIG_STATUS=./config.status}
27851 ac_write_fail=0
27852 ac_clean_files_save=$ac_clean_files
27853 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27855 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27856 as_write_fail=0
27857 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27858 #! $SHELL
27859 # Generated by $as_me.
27860 # Run this file to recreate the current configuration.
27861 # Compiler output produced by configure, useful for debugging
27862 # configure, is in config.log if it exists.
27864 debug=false
27865 ac_cs_recheck=false
27866 ac_cs_silent=false
27868 SHELL=\${CONFIG_SHELL-$SHELL}
27869 export SHELL
27870 _ASEOF
27871 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27872 ## -------------------- ##
27873 ## M4sh Initialization. ##
27874 ## -------------------- ##
27876 # Be more Bourne compatible
27877 DUALCASE=1; export DUALCASE # for MKS sh
27878 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27879 emulate sh
27880 NULLCMD=:
27881 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27882 # is contrary to our usage. Disable this feature.
27883 alias -g '${1+"$@"}'='"$@"'
27884 setopt NO_GLOB_SUBST
27885 else
27886 case `(set -o) 2>/dev/null` in #(
27887 *posix*) :
27888 set -o posix ;; #(
27889 *) :
27891 esac
27895 as_nl='
27897 export as_nl
27898 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27899 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27902 # Prefer a ksh shell builtin over an external printf program on Solaris,
27903 # but without wasting forks for bash or zsh.
27904 if test -z "$BASH_VERSION$ZSH_VERSION" \
27905 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27906 as_echo='print -r --'
27907 as_echo_n='print -rn --'
27908 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27909 as_echo='printf %s\n'
27910 as_echo_n='printf %s'
27911 else
27912 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27913 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27914 as_echo_n='/usr/ucb/echo -n'
27915 else
27916 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27917 as_echo_n_body='eval
27918 arg=$1;
27919 case $arg in #(
27920 *"$as_nl"*)
27921 expr "X$arg" : "X\\(.*\\)$as_nl";
27922 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27923 esac;
27924 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27926 export as_echo_n_body
27927 as_echo_n='sh -c $as_echo_n_body as_echo'
27929 export as_echo_body
27930 as_echo='sh -c $as_echo_body as_echo'
27933 # The user is always right.
27934 if test "${PATH_SEPARATOR+set}" != set; then
27935 PATH_SEPARATOR=:
27936 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27937 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27938 PATH_SEPARATOR=';'
27943 # IFS
27944 # We need space, tab and new line, in precisely that order. Quoting is
27945 # there to prevent editors from complaining about space-tab.
27946 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27947 # splitting by setting IFS to empty value.)
27948 IFS=" "" $as_nl"
27950 # Find who we are. Look in the path if we contain no directory separator.
27951 case $0 in #((
27952 *[\\/]* ) as_myself=$0 ;;
27953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27954 for as_dir in $PATH
27956 IFS=$as_save_IFS
27957 test -z "$as_dir" && as_dir=.
27958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27959 done
27960 IFS=$as_save_IFS
27963 esac
27964 # We did not find ourselves, most probably we were run as `sh COMMAND'
27965 # in which case we are not to be found in the path.
27966 if test "x$as_myself" = x; then
27967 as_myself=$0
27969 if test ! -f "$as_myself"; then
27970 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27971 exit 1
27974 # Unset variables that we do not need and which cause bugs (e.g. in
27975 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27976 # suppresses any "Segmentation fault" message there. '((' could
27977 # trigger a bug in pdksh 5.2.14.
27978 for as_var in BASH_ENV ENV MAIL MAILPATH
27979 do eval test x\${$as_var+set} = xset \
27980 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27981 done
27982 PS1='$ '
27983 PS2='> '
27984 PS4='+ '
27986 # NLS nuisances.
27987 LC_ALL=C
27988 export LC_ALL
27989 LANGUAGE=C
27990 export LANGUAGE
27992 # CDPATH.
27993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27996 # as_fn_error ERROR [LINENO LOG_FD]
27997 # ---------------------------------
27998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28000 # script with status $?, using 1 if that was 0.
28001 as_fn_error ()
28003 as_status=$?; test $as_status -eq 0 && as_status=1
28004 if test "$3"; then
28005 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28006 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28008 $as_echo "$as_me: error: $1" >&2
28009 as_fn_exit $as_status
28010 } # as_fn_error
28013 # as_fn_set_status STATUS
28014 # -----------------------
28015 # Set $? to STATUS, without forking.
28016 as_fn_set_status ()
28018 return $1
28019 } # as_fn_set_status
28021 # as_fn_exit STATUS
28022 # -----------------
28023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28024 as_fn_exit ()
28026 set +e
28027 as_fn_set_status $1
28028 exit $1
28029 } # as_fn_exit
28031 # as_fn_unset VAR
28032 # ---------------
28033 # Portably unset VAR.
28034 as_fn_unset ()
28036 { eval $1=; unset $1;}
28038 as_unset=as_fn_unset
28039 # as_fn_append VAR VALUE
28040 # ----------------------
28041 # Append the text in VALUE to the end of the definition contained in VAR. Take
28042 # advantage of any shell optimizations that allow amortized linear growth over
28043 # repeated appends, instead of the typical quadratic growth present in naive
28044 # implementations.
28045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28046 eval 'as_fn_append ()
28048 eval $1+=\$2
28050 else
28051 as_fn_append ()
28053 eval $1=\$$1\$2
28055 fi # as_fn_append
28057 # as_fn_arith ARG...
28058 # ------------------
28059 # Perform arithmetic evaluation on the ARGs, and store the result in the
28060 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28061 # must be portable across $(()) and expr.
28062 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28063 eval 'as_fn_arith ()
28065 as_val=$(( $* ))
28067 else
28068 as_fn_arith ()
28070 as_val=`expr "$@" || test $? -eq 1`
28072 fi # as_fn_arith
28075 if expr a : '\(a\)' >/dev/null 2>&1 &&
28076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28077 as_expr=expr
28078 else
28079 as_expr=false
28082 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28083 as_basename=basename
28084 else
28085 as_basename=false
28088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28089 as_dirname=dirname
28090 else
28091 as_dirname=false
28094 as_me=`$as_basename -- "$0" ||
28095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28096 X"$0" : 'X\(//\)$' \| \
28097 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28098 $as_echo X/"$0" |
28099 sed '/^.*\/\([^/][^/]*\)\/*$/{
28100 s//\1/
28103 /^X\/\(\/\/\)$/{
28104 s//\1/
28107 /^X\/\(\/\).*/{
28108 s//\1/
28111 s/.*/./; q'`
28113 # Avoid depending upon Character Ranges.
28114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28117 as_cr_digits='0123456789'
28118 as_cr_alnum=$as_cr_Letters$as_cr_digits
28120 ECHO_C= ECHO_N= ECHO_T=
28121 case `echo -n x` in #(((((
28122 -n*)
28123 case `echo 'xy\c'` in
28124 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28125 xy) ECHO_C='\c';;
28126 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28127 ECHO_T=' ';;
28128 esac;;
28130 ECHO_N='-n';;
28131 esac
28133 rm -f conf$$ conf$$.exe conf$$.file
28134 if test -d conf$$.dir; then
28135 rm -f conf$$.dir/conf$$.file
28136 else
28137 rm -f conf$$.dir
28138 mkdir conf$$.dir 2>/dev/null
28140 if (echo >conf$$.file) 2>/dev/null; then
28141 if ln -s conf$$.file conf$$ 2>/dev/null; then
28142 as_ln_s='ln -s'
28143 # ... but there are two gotchas:
28144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28146 # In both cases, we have to default to `cp -p'.
28147 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28148 as_ln_s='cp -p'
28149 elif ln conf$$.file conf$$ 2>/dev/null; then
28150 as_ln_s=ln
28151 else
28152 as_ln_s='cp -p'
28154 else
28155 as_ln_s='cp -p'
28157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28158 rmdir conf$$.dir 2>/dev/null
28161 # as_fn_mkdir_p
28162 # -------------
28163 # Create "$as_dir" as a directory, including parents if necessary.
28164 as_fn_mkdir_p ()
28167 case $as_dir in #(
28168 -*) as_dir=./$as_dir;;
28169 esac
28170 test -d "$as_dir" || eval $as_mkdir_p || {
28171 as_dirs=
28172 while :; do
28173 case $as_dir in #(
28174 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28175 *) as_qdir=$as_dir;;
28176 esac
28177 as_dirs="'$as_qdir' $as_dirs"
28178 as_dir=`$as_dirname -- "$as_dir" ||
28179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28180 X"$as_dir" : 'X\(//\)[^/]' \| \
28181 X"$as_dir" : 'X\(//\)$' \| \
28182 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28183 $as_echo X"$as_dir" |
28184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28185 s//\1/
28188 /^X\(\/\/\)[^/].*/{
28189 s//\1/
28192 /^X\(\/\/\)$/{
28193 s//\1/
28196 /^X\(\/\).*/{
28197 s//\1/
28200 s/.*/./; q'`
28201 test -d "$as_dir" && break
28202 done
28203 test -z "$as_dirs" || eval "mkdir $as_dirs"
28204 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28207 } # as_fn_mkdir_p
28208 if mkdir -p . 2>/dev/null; then
28209 as_mkdir_p='mkdir -p "$as_dir"'
28210 else
28211 test -d ./-p && rmdir ./-p
28212 as_mkdir_p=false
28215 if test -x / >/dev/null 2>&1; then
28216 as_test_x='test -x'
28217 else
28218 if ls -dL / >/dev/null 2>&1; then
28219 as_ls_L_option=L
28220 else
28221 as_ls_L_option=
28223 as_test_x='
28224 eval sh -c '\''
28225 if test -d "$1"; then
28226 test -d "$1/.";
28227 else
28228 case $1 in #(
28229 -*)set "./$1";;
28230 esac;
28231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28232 ???[sx]*):;;*)false;;esac;fi
28233 '\'' sh
28236 as_executable_p=$as_test_x
28238 # Sed expression to map a string onto a valid CPP name.
28239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28241 # Sed expression to map a string onto a valid variable name.
28242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28245 exec 6>&1
28246 ## ----------------------------------- ##
28247 ## Main body of $CONFIG_STATUS script. ##
28248 ## ----------------------------------- ##
28249 _ASEOF
28250 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28253 # Save the log message, to keep $0 and so on meaningful, and to
28254 # report actual input values of CONFIG_FILES etc. instead of their
28255 # values after options handling.
28256 ac_log="
28257 This file was extended by $as_me, which was
28258 generated by GNU Autoconf 2.64. Invocation command line was
28260 CONFIG_FILES = $CONFIG_FILES
28261 CONFIG_HEADERS = $CONFIG_HEADERS
28262 CONFIG_LINKS = $CONFIG_LINKS
28263 CONFIG_COMMANDS = $CONFIG_COMMANDS
28264 $ $0 $@
28266 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28269 _ACEOF
28271 case $ac_config_files in *"
28272 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28273 esac
28275 case $ac_config_headers in *"
28276 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28277 esac
28280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28281 # Files that config.status was made for.
28282 config_files="$ac_config_files"
28283 config_headers="$ac_config_headers"
28284 config_commands="$ac_config_commands"
28286 _ACEOF
28288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28289 ac_cs_usage="\
28290 \`$as_me' instantiates files and other configuration actions
28291 from templates according to the current configuration. Unless the files
28292 and actions are specified as TAGs, all are instantiated by default.
28294 Usage: $0 [OPTION]... [TAG]...
28296 -h, --help print this help, then exit
28297 -V, --version print version number and configuration settings, then exit
28298 -q, --quiet, --silent
28299 do not print progress messages
28300 -d, --debug don't remove temporary files
28301 --recheck update $as_me by reconfiguring in the same conditions
28302 --file=FILE[:TEMPLATE]
28303 instantiate the configuration file FILE
28304 --header=FILE[:TEMPLATE]
28305 instantiate the configuration header FILE
28307 Configuration files:
28308 $config_files
28310 Configuration headers:
28311 $config_headers
28313 Configuration commands:
28314 $config_commands
28316 Report bugs to the package provider."
28318 _ACEOF
28319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28320 ac_cs_version="\\
28321 config.status
28322 configured by $0, generated by GNU Autoconf 2.64,
28323 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28325 Copyright (C) 2009 Free Software Foundation, Inc.
28326 This config.status script is free software; the Free Software Foundation
28327 gives unlimited permission to copy, distribute and modify it."
28329 ac_pwd='$ac_pwd'
28330 srcdir='$srcdir'
28331 AWK='$AWK'
28332 test -n "\$AWK" || AWK=awk
28333 _ACEOF
28335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28336 # The default lists apply if the user does not specify any file.
28337 ac_need_defaults=:
28338 while test $# != 0
28340 case $1 in
28341 --*=*)
28342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28344 ac_shift=:
28347 ac_option=$1
28348 ac_optarg=$2
28349 ac_shift=shift
28351 esac
28353 case $ac_option in
28354 # Handling of the options.
28355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28356 ac_cs_recheck=: ;;
28357 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28358 $as_echo "$ac_cs_version"; exit ;;
28359 --debug | --debu | --deb | --de | --d | -d )
28360 debug=: ;;
28361 --file | --fil | --fi | --f )
28362 $ac_shift
28363 case $ac_optarg in
28364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28365 esac
28366 as_fn_append CONFIG_FILES " '$ac_optarg'"
28367 ac_need_defaults=false;;
28368 --header | --heade | --head | --hea )
28369 $ac_shift
28370 case $ac_optarg in
28371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28372 esac
28373 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28374 ac_need_defaults=false;;
28375 --he | --h)
28376 # Conflict between --help and --header
28377 as_fn_error "ambiguous option: \`$1'
28378 Try \`$0 --help' for more information.";;
28379 --help | --hel | -h )
28380 $as_echo "$ac_cs_usage"; exit ;;
28381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28382 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28383 ac_cs_silent=: ;;
28385 # This is an error.
28386 -*) as_fn_error "unrecognized option: \`$1'
28387 Try \`$0 --help' for more information." ;;
28389 *) as_fn_append ac_config_targets " $1"
28390 ac_need_defaults=false ;;
28392 esac
28393 shift
28394 done
28396 ac_configure_extra_args=
28398 if $ac_cs_silent; then
28399 exec 6>/dev/null
28400 ac_configure_extra_args="$ac_configure_extra_args --silent"
28403 _ACEOF
28404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28405 if \$ac_cs_recheck; then
28406 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28407 shift
28408 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28409 CONFIG_SHELL='$SHELL'
28410 export CONFIG_SHELL
28411 exec "\$@"
28414 _ACEOF
28415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28416 exec 5>>config.log
28418 echo
28419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28420 ## Running $as_me. ##
28421 _ASBOX
28422 $as_echo "$ac_log"
28423 } >&5
28425 _ACEOF
28426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28428 # INIT-COMMANDS
28430 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28431 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28432 subdirs='$subdirs'
28434 _ACEOF
28436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28438 # Handling of arguments.
28439 for ac_config_target in $ac_config_targets
28441 case $ac_config_target in
28442 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
28443 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
28444 "gccdepdir") CONFIG_COMMANDS="$CONFIG_COMMANDS gccdepdir" ;;
28445 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
28446 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28447 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
28448 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
28449 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28451 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28452 esac
28453 done
28456 # If the user did not use the arguments to specify the items to instantiate,
28457 # then the envvar interface is used. Set only those that are not.
28458 # We use the long form for the default assignment because of an extremely
28459 # bizarre bug on SunOS 4.1.3.
28460 if $ac_need_defaults; then
28461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28466 # Have a temporary directory for convenience. Make it in the build tree
28467 # simply because there is no reason against having it here, and in addition,
28468 # creating and moving files from /tmp can sometimes cause problems.
28469 # Hook for its removal unless debugging.
28470 # Note that there is a small window in which the directory will not be cleaned:
28471 # after its creation but before its name has been assigned to `$tmp'.
28472 $debug ||
28474 tmp=
28475 trap 'exit_status=$?
28476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28478 trap 'as_fn_exit 1' 1 2 13 15
28480 # Create a (secure) tmp directory for tmp files.
28483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28484 test -n "$tmp" && test -d "$tmp"
28485 } ||
28487 tmp=./conf$$-$RANDOM
28488 (umask 077 && mkdir "$tmp")
28489 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28491 # Set up the scripts for CONFIG_FILES section.
28492 # No need to generate them if there are no CONFIG_FILES.
28493 # This happens for instance with `./config.status config.h'.
28494 if test -n "$CONFIG_FILES"; then
28496 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28497 ac_cs_awk_getline=:
28498 ac_cs_awk_pipe_init=
28499 ac_cs_awk_read_file='
28500 while ((getline aline < (F[key])) > 0)
28501 print(aline)
28502 close(F[key])'
28503 ac_cs_awk_pipe_fini=
28504 else
28505 ac_cs_awk_getline=false
28506 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28507 ac_cs_awk_read_file='
28508 print "|#_!!_#|"
28509 print "cat " F[key] " &&"
28510 '$ac_cs_awk_pipe_init
28511 # The final `:' finishes the AND list.
28512 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28514 ac_cr=`echo X | tr X '\015'`
28515 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28516 # But we know of no other shell where ac_cr would be empty at this
28517 # point, so we can use a bashism as a fallback.
28518 if test "x$ac_cr" = x; then
28519 eval ac_cr=\$\'\\r\'
28521 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28522 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28523 ac_cs_awk_cr='\r'
28524 else
28525 ac_cs_awk_cr=$ac_cr
28528 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28529 _ACEOF
28531 # Create commands to substitute file output variables.
28533 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28534 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28535 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28536 echo "_ACAWK" &&
28537 echo "_ACEOF"
28538 } >conf$$files.sh &&
28539 . ./conf$$files.sh ||
28540 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28541 rm -f conf$$files.sh
28544 echo "cat >conf$$subs.awk <<_ACEOF" &&
28545 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28546 echo "_ACEOF"
28547 } >conf$$subs.sh ||
28548 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28549 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28550 ac_delim='%!_!# '
28551 for ac_last_try in false false false false false :; do
28552 . ./conf$$subs.sh ||
28553 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28555 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28556 if test $ac_delim_n = $ac_delim_num; then
28557 break
28558 elif $ac_last_try; then
28559 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28560 else
28561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28563 done
28564 rm -f conf$$subs.sh
28566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28567 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28568 _ACEOF
28569 sed -n '
28571 s/^/S["/; s/!.*/"]=/
28574 s/^[^!]*!//
28575 :repl
28576 t repl
28577 s/'"$ac_delim"'$//
28578 t delim
28581 s/\(.\{148\}\).*/\1/
28582 t more1
28583 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28586 b repl
28587 :more1
28588 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28591 s/.\{148\}//
28592 t nl
28593 :delim
28595 s/\(.\{148\}\).*/\1/
28596 t more2
28597 s/["\\]/\\&/g; s/^/"/; s/$/"/
28600 :more2
28601 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28604 s/.\{148\}//
28605 t delim
28606 ' <conf$$subs.awk | sed '
28607 /^[^""]/{
28609 s/\n//
28611 ' >>$CONFIG_STATUS || ac_write_fail=1
28612 rm -f conf$$subs.awk
28613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28614 _ACAWK
28615 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28616 for (key in S) S_is_set[key] = 1
28617 FS = "\a"
28618 \$ac_cs_awk_pipe_init
28621 line = $ 0
28622 nfields = split(line, field, "@")
28623 substed = 0
28624 len = length(field[1])
28625 for (i = 2; i < nfields; i++) {
28626 key = field[i]
28627 keylen = length(key)
28628 if (S_is_set[key]) {
28629 value = S[key]
28630 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28631 len += length(value) + length(field[++i])
28632 substed = 1
28633 } else
28634 len += 1 + keylen
28636 if (nfields == 3 && !substed) {
28637 key = field[2]
28638 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
28639 \$ac_cs_awk_read_file
28640 next
28643 print line
28645 \$ac_cs_awk_pipe_fini
28646 _ACAWK
28647 _ACEOF
28648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28649 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28650 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28651 else
28653 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28654 || as_fn_error "could not setup config files machinery" "$LINENO" 5
28655 _ACEOF
28657 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28658 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28659 # trailing colons and then remove the whole line if VPATH becomes empty
28660 # (actually we leave an empty line to preserve line numbers).
28661 if test "x$srcdir" = x.; then
28662 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28663 s/:*\$(srcdir):*/:/
28664 s/:*\${srcdir}:*/:/
28665 s/:*@srcdir@:*/:/
28666 s/^\([^=]*=[ ]*\):*/\1/
28667 s/:*$//
28668 s/^[^=]*=[ ]*$//
28672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28673 fi # test -n "$CONFIG_FILES"
28675 # Set up the scripts for CONFIG_HEADERS section.
28676 # No need to generate them if there are no CONFIG_HEADERS.
28677 # This happens for instance with `./config.status Makefile'.
28678 if test -n "$CONFIG_HEADERS"; then
28679 cat >"$tmp/defines.awk" <<\_ACAWK ||
28680 BEGIN {
28681 _ACEOF
28683 # Transform confdefs.h into an awk script `defines.awk', embedded as
28684 # here-document in config.status, that substitutes the proper values into
28685 # config.h.in to produce config.h.
28687 # Create a delimiter string that does not exist in confdefs.h, to ease
28688 # handling of long lines.
28689 ac_delim='%!_!# '
28690 for ac_last_try in false false :; do
28691 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28692 if test -z "$ac_t"; then
28693 break
28694 elif $ac_last_try; then
28695 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28696 else
28697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28699 done
28701 # For the awk script, D is an array of macro values keyed by name,
28702 # likewise P contains macro parameters if any. Preserve backslash
28703 # newline sequences.
28705 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28706 sed -n '
28707 s/.\{148\}/&'"$ac_delim"'/g
28708 t rset
28709 :rset
28710 s/^[ ]*#[ ]*define[ ][ ]*/ /
28711 t def
28713 :def
28714 s/\\$//
28715 t bsnl
28716 s/["\\]/\\&/g
28717 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28718 D["\1"]=" \3"/p
28719 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28721 :bsnl
28722 s/["\\]/\\&/g
28723 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28724 D["\1"]=" \3\\\\\\n"\\/p
28725 t cont
28726 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28727 t cont
28729 :cont
28731 s/.\{148\}/&'"$ac_delim"'/g
28732 t clear
28733 :clear
28734 s/\\$//
28735 t bsnlc
28736 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28738 :bsnlc
28739 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28740 b cont
28741 ' <confdefs.h | sed '
28742 s/'"$ac_delim"'/"\\\
28743 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28746 for (key in D) D_is_set[key] = 1
28747 FS = "\a"
28749 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28750 line = \$ 0
28751 split(line, arg, " ")
28752 if (arg[1] == "#") {
28753 defundef = arg[2]
28754 mac1 = arg[3]
28755 } else {
28756 defundef = substr(arg[1], 2)
28757 mac1 = arg[2]
28759 split(mac1, mac2, "(") #)
28760 macro = mac2[1]
28761 prefix = substr(line, 1, index(line, defundef) - 1)
28762 if (D_is_set[macro]) {
28763 # Preserve the white space surrounding the "#".
28764 print prefix "define", macro P[macro] D[macro]
28765 next
28766 } else {
28767 # Replace #undef with comments. This is necessary, for example,
28768 # in the case of _POSIX_SOURCE, which is predefined and required
28769 # on some systems where configure will not decide to define it.
28770 if (defundef == "undef") {
28771 print "/*", prefix defundef, macro, "*/"
28772 next
28776 { print }
28777 _ACAWK
28778 _ACEOF
28779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28780 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28781 fi # test -n "$CONFIG_HEADERS"
28784 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28785 shift
28786 for ac_tag
28788 case $ac_tag in
28789 :[FHLC]) ac_mode=$ac_tag; continue;;
28790 esac
28791 case $ac_mode$ac_tag in
28792 :[FHL]*:*);;
28793 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28794 :[FH]-) ac_tag=-:-;;
28795 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28796 esac
28797 ac_save_IFS=$IFS
28798 IFS=:
28799 set x $ac_tag
28800 IFS=$ac_save_IFS
28801 shift
28802 ac_file=$1
28803 shift
28805 case $ac_mode in
28806 :L) ac_source=$1;;
28807 :[FH])
28808 ac_file_inputs=
28809 for ac_f
28811 case $ac_f in
28812 -) ac_f="$tmp/stdin";;
28813 *) # Look for the file first in the build tree, then in the source tree
28814 # (if the path is not absolute). The absolute path cannot be DOS-style,
28815 # because $ac_f cannot contain `:'.
28816 test -f "$ac_f" ||
28817 case $ac_f in
28818 [\\/$]*) false;;
28819 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28820 esac ||
28821 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28822 esac
28823 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28824 as_fn_append ac_file_inputs " '$ac_f'"
28825 done
28827 # Let's still pretend it is `configure' which instantiates (i.e., don't
28828 # use $as_me), people would be surprised to read:
28829 # /* config.h. Generated by config.status. */
28830 configure_input='Generated from '`
28831 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28832 `' by configure.'
28833 if test x"$ac_file" != x-; then
28834 configure_input="$ac_file. $configure_input"
28835 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28836 $as_echo "$as_me: creating $ac_file" >&6;}
28838 # Neutralize special characters interpreted by sed in replacement strings.
28839 case $configure_input in #(
28840 *\&* | *\|* | *\\* )
28841 ac_sed_conf_input=`$as_echo "$configure_input" |
28842 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28843 *) ac_sed_conf_input=$configure_input;;
28844 esac
28846 case $ac_tag in
28847 *:-:* | *:-) cat >"$tmp/stdin" \
28848 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28849 esac
28851 esac
28853 ac_dir=`$as_dirname -- "$ac_file" ||
28854 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28855 X"$ac_file" : 'X\(//\)[^/]' \| \
28856 X"$ac_file" : 'X\(//\)$' \| \
28857 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28858 $as_echo X"$ac_file" |
28859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28860 s//\1/
28863 /^X\(\/\/\)[^/].*/{
28864 s//\1/
28867 /^X\(\/\/\)$/{
28868 s//\1/
28871 /^X\(\/\).*/{
28872 s//\1/
28875 s/.*/./; q'`
28876 as_dir="$ac_dir"; as_fn_mkdir_p
28877 ac_builddir=.
28879 case "$ac_dir" in
28880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28882 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28883 # A ".." for each directory in $ac_dir_suffix.
28884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28885 case $ac_top_builddir_sub in
28886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28888 esac ;;
28889 esac
28890 ac_abs_top_builddir=$ac_pwd
28891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28892 # for backward compatibility:
28893 ac_top_builddir=$ac_top_build_prefix
28895 case $srcdir in
28896 .) # We are building in place.
28897 ac_srcdir=.
28898 ac_top_srcdir=$ac_top_builddir_sub
28899 ac_abs_top_srcdir=$ac_pwd ;;
28900 [\\/]* | ?:[\\/]* ) # Absolute name.
28901 ac_srcdir=$srcdir$ac_dir_suffix;
28902 ac_top_srcdir=$srcdir
28903 ac_abs_top_srcdir=$srcdir ;;
28904 *) # Relative name.
28905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28906 ac_top_srcdir=$ac_top_build_prefix$srcdir
28907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28908 esac
28909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28912 case $ac_mode in
28915 # CONFIG_FILE
28918 _ACEOF
28920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28921 # If the template does not know about datarootdir, expand it.
28922 # FIXME: This hack should be removed a few years after 2.60.
28923 ac_datarootdir_hack=; ac_datarootdir_seen=
28924 ac_sed_dataroot='
28925 /datarootdir/ {
28929 /@datadir@/p
28930 /@docdir@/p
28931 /@infodir@/p
28932 /@localedir@/p
28933 /@mandir@/p'
28934 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28935 *datarootdir*) ac_datarootdir_seen=yes;;
28936 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28938 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28939 _ACEOF
28940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28941 ac_datarootdir_hack='
28942 s&@datadir@&$datadir&g
28943 s&@docdir@&$docdir&g
28944 s&@infodir@&$infodir&g
28945 s&@localedir@&$localedir&g
28946 s&@mandir@&$mandir&g
28947 s&\\\${datarootdir}&$datarootdir&g' ;;
28948 esac
28949 _ACEOF
28951 # Neutralize VPATH when `$srcdir' = `.'.
28952 # Shell code in configure.ac might set extrasub.
28953 # FIXME: do we really want to maintain this feature?
28954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28955 ac_sed_extra="$ac_vpsub
28956 $extrasub
28957 _ACEOF
28958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28961 s|@configure_input@|$ac_sed_conf_input|;t t
28962 s&@top_builddir@&$ac_top_builddir_sub&;t t
28963 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28964 s&@srcdir@&$ac_srcdir&;t t
28965 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28966 s&@top_srcdir@&$ac_top_srcdir&;t t
28967 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28968 s&@builddir@&$ac_builddir&;t t
28969 s&@abs_builddir@&$ac_abs_builddir&;t t
28970 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28971 $ac_datarootdir_hack
28973 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28974 if $ac_cs_awk_getline; then
28975 $AWK -f "$tmp/subs.awk"
28976 else
28977 $AWK -f "$tmp/subs.awk" | $SHELL
28978 fi >$tmp/out \
28979 || as_fn_error "could not create $ac_file" "$LINENO" 5
28981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28982 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28983 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28985 which seems to be undefined. Please make sure it is defined." >&5
28986 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28987 which seems to be undefined. Please make sure it is defined." >&2;}
28989 rm -f "$tmp/stdin"
28990 case $ac_file in
28991 -) cat "$tmp/out" && rm -f "$tmp/out";;
28992 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28993 esac \
28994 || as_fn_error "could not create $ac_file" "$LINENO" 5
28998 # CONFIG_HEADER
29000 if test x"$ac_file" != x-; then
29002 $as_echo "/* $configure_input */" \
29003 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29004 } >"$tmp/config.h" \
29005 || as_fn_error "could not create $ac_file" "$LINENO" 5
29006 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29007 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29008 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29009 else
29010 rm -f "$ac_file"
29011 mv "$tmp/config.h" "$ac_file" \
29012 || as_fn_error "could not create $ac_file" "$LINENO" 5
29014 else
29015 $as_echo "/* $configure_input */" \
29016 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29017 || as_fn_error "could not create -" "$LINENO" 5
29021 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29022 $as_echo "$as_me: executing $ac_file commands" >&6;}
29024 esac
29027 case $ac_file$ac_mode in
29028 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29029 "gccdepdir":C)
29030 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29031 for lang in $subdirs c-family common
29033 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29034 done ;;
29035 "as":F) chmod +x as ;;
29036 "collect-ld":F) chmod +x collect-ld ;;
29037 "nm":F) chmod +x nm ;;
29038 "default":C)
29039 case ${CONFIG_HEADERS} in
29040 *auto-host.h:config.in*)
29041 echo > cstamp-h ;;
29042 esac
29043 # Make sure all the subdirs exist.
29044 for d in $subdirs doc build common c-family
29046 test -d $d || mkdir $d
29047 done
29050 esac
29051 done # for ac_tag
29054 as_fn_exit 0
29055 _ACEOF
29056 ac_clean_files=$ac_clean_files_save
29058 test $ac_write_fail = 0 ||
29059 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29062 # configure is writing to config.log, and then calls config.status.
29063 # config.status does its own redirection, appending to config.log.
29064 # Unfortunately, on DOS this fails, as config.log is still kept open
29065 # by configure, so config.status won't be able to write to it; its
29066 # output is simply discarded. So we exec the FD to /dev/null,
29067 # effectively closing config.log, so it can be properly (re)opened and
29068 # appended to by config.status. When coming back to configure, we
29069 # need to make the FD available again.
29070 if test "$no_create" != yes; then
29071 ac_cs_success=:
29072 ac_config_status_args=
29073 test "$silent" = yes &&
29074 ac_config_status_args="$ac_config_status_args --quiet"
29075 exec 5>/dev/null
29076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29077 exec 5>>config.log
29078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29079 # would make configure fail if this is the last instruction.
29080 $ac_cs_success || as_fn_exit $?
29082 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29084 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}