2010-07-27 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc/alias-decl.git] / gcc / configure
blobaa61cd6589ce2df937cee791ee856c43d0efa796
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 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 LTO_USE_LIBELF
676 LTO_BINARY_READER
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 CXXCPP
696 OTOOL64
697 OTOOL
698 LIPO
699 NMEDIT
700 DSYMUTIL
701 STRIP
702 OBJDUMP
703 ac_ct_DUMPBIN
704 DUMPBIN
706 FGREP
708 LIBTOOL
709 collect2
710 STMP_FIXINC
711 BUILD_LDFLAGS
712 BUILD_CFLAGS
713 CC_FOR_BUILD
714 inhibit_libc
715 SYSTEM_HEADER_DIR
717 CROSS
718 CATOBJEXT
719 GENCAT
720 INSTOBJEXT
721 DATADIRNAME
722 CATALOGS
723 POSUB
724 GMSGFMT
725 XGETTEXT
726 INCINTL
727 LIBINTL_DEP
728 LIBINTL
729 USE_NLS
730 extra_opt_files
731 extra_modes_file
732 gthread_flags
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 GNAT_LIBEXC
740 COLLECT2_LIBS
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
756 LN_S
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 onestep
763 CONFIGURE_SPECS
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
766 TARGET_SYSTEM_ROOT
767 enable_shared
768 enable_fixed_point
769 enable_decimal_float
770 enable_multilib
771 ENABLE_BUILD_WITH_CXX
772 coverage_flags
773 valgrind_command
774 valgrind_path_defines
775 valgrind_path
776 TREEBROWSER
777 nocommon_flag
778 warn_cxxflags
779 warn_cflags
780 c_strict_warn
781 strict_warn
782 c_loose_warn
783 loose_warn
784 EGREP
785 GREP
787 OUTPUT_OPTION
788 NO_MINUS_C_MINUS_O
789 GNATMAKE
790 GNATBIND
791 ac_ct_CXX
792 CXXFLAGS
794 OBJEXT
795 EXEEXT
796 ac_ct_CC
797 CPPFLAGS
798 LDFLAGS
799 CFLAGS
801 GENINSRC
802 target_subdir
803 host_subdir
804 build_subdir
805 build_libsubdir
806 target_noncanonical
807 target_os
808 target_vendor
809 target_cpu
810 target
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files='language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_build_sysroot
886 with_sysroot
887 with_specs
888 enable_intermodule
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_win32_registry
902 enable_static
903 with_pic
904 enable_fast_install
905 enable_libtool_lock
906 with_plugin_ld
907 enable_comdat
908 enable_gnu_unique_object
909 enable_linker_build_id
910 with_long_double_128
911 with_gc
912 with_system_zlib
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
915 with_slibdir
916 enable_plugin
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
927 CXXFLAGS
930 CXXCPP
931 GMPLIBS
932 GMPINC
933 PPLLIBS
934 PPLINC
935 CLOOGLIBS
936 CLOOGINC
937 LIBELFLIBS
938 LIBELFINC'
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
989 ac_prev=
990 ac_dashdash=
991 for ac_option
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\$ac_option
996 ac_prev=
997 continue
1000 case $ac_option in
1001 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002 *) ac_optarg=yes ;;
1003 esac
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1009 ac_dashdash=yes ;;
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012 ac_prev=bindir ;;
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1031 -datadir | --datadir | --datadi | --datad)
1032 ac_prev=datadir ;;
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1079 "*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1096 with_gas=yes ;;
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111 ac_prev=htmldir ;;
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113 | --ht=*)
1114 htmldir=$ac_optarg ;;
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1124 ac_prev=infodir ;;
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1128 -libdir | --libdir | --libdi | --libd)
1129 ac_prev=libdir ;;
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153 ac_prev=mandir ;;
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1159 with_fp=no ;;
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1163 no_create=yes ;;
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167 no_recursion=yes ;;
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179 ac_prev=prefix ;;
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215 ac_prev=pdfdir ;;
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1219 -psdir | --psdir | --psdi | --psd | --ps)
1220 ac_prev=psdir ;;
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222 psdir=$ac_optarg ;;
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1226 silent=yes ;;
1228 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229 ac_prev=sbindir ;;
1230 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231 | --sbi=* | --sb=*)
1232 sbindir=$ac_optarg ;;
1234 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236 | --sharedst | --shareds | --shared | --share | --shar \
1237 | --sha | --sh)
1238 ac_prev=sharedstatedir ;;
1239 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242 | --sha=* | --sh=*)
1243 sharedstatedir=$ac_optarg ;;
1245 -site | --site | --sit)
1246 ac_prev=site ;;
1247 -site=* | --site=* | --sit=*)
1248 site=$ac_optarg ;;
1250 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251 ac_prev=srcdir ;;
1252 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253 srcdir=$ac_optarg ;;
1255 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256 | --syscon | --sysco | --sysc | --sys | --sy)
1257 ac_prev=sysconfdir ;;
1258 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260 sysconfdir=$ac_optarg ;;
1262 -target | --target | --targe | --targ | --tar | --ta | --t)
1263 ac_prev=target_alias ;;
1264 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265 target_alias=$ac_optarg ;;
1267 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268 verbose=yes ;;
1270 -version | --version | --versio | --versi | --vers | -V)
1271 ac_init_version=: ;;
1273 -with-* | --with-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277 as_fn_error "invalid package name: $ac_useropt"
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1282 "with_$ac_useropt"
1283 "*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval with_$ac_useropt=\$ac_optarg ;;
1289 -without-* | --without-*)
1290 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1323 -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' | [0-9]* | *[!_$as_cr_alnum]* )
1332 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333 esac
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 esac
1346 done
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error "missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358 esac
1361 # Check all directory arguments for consistency.
1362 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val=\$$ac_var
1368 # Remove trailing slashes.
1369 case $ac_val in
1370 */ )
1371 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\$ac_val;;
1373 esac
1374 # Be sure to have absolute directory names.
1375 case $ac_val in
1376 [\\/$]* | ?:[\\/]* ) continue;;
1377 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378 esac
1379 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403 test "$silent" = yes && exec 6>/dev/null
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error "pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 s//\1/
1428 /^X\(\/\/\)[^/].*/{
1429 s//\1/
1432 /^X\(\/\/\)$/{
1433 s//\1/
1436 /^X\(\/\).*/{
1437 s//\1/
1440 s/.*/./; q'`
1441 srcdir=$ac_confdir
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 srcdir=..
1445 else
1446 ac_srcdir_defaulted=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455 pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458 srcdir=.
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_${ac_var}_value=\$${ac_var}
1469 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1479 cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1489 Configuration:
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504 [PREFIX]
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1535 cat <<\_ACEOF
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 --target=TARGET configure for building compilers for TARGET [HOST]
1546 _ACEOF
1549 if test -n "$ac_init_help"; then
1551 cat <<\_ACEOF
1553 Optional Features:
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files in source dir
1559 intended for creating source tarballs for users
1560 without texinfo bison or flex.
1561 --enable-werror-always enable -Werror despite compiler version
1562 --enable-checking=LIST
1563 enable expensive run-time checks. With LIST,
1564 enable only specific categories of checks.
1565 Categories are: yes,no,all,none,release.
1566 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1567 rtlflag,rtl,runtime,tree,valgrind,types.
1568 --enable-coverage=LEVEL
1569 enable compiler's code coverage collection.
1570 Use to measure compiler performance and locate
1571 unused parts of the compiler. With LEVEL, specify
1572 optimization. Values are opt, noopt,
1573 default is noopt
1574 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1575 --enable-build-with-cxx build with C++ compiler instead of C compiler
1576 --enable-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid'
1580 or 'dpd' choses which decimal floating point format
1581 to use
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads enable thread usage for target GCC
1584 --enable-threads=LIB use LIB thread package for target GCC
1585 --enable-tls enable or disable generation of tls code
1586 overriding the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with
1588 the GNU Objective-C runtime
1589 --disable-shared don't provide a shared libgcc
1590 --enable-intermodule build the compiler in one step
1591 --enable-languages=LIST specify which front-ends to build
1592 --disable-rpath do not hardcode runtime library paths
1593 --enable-initfini-array use .init_array/.fini_array sections
1594 --enable-sjlj-exceptions
1595 arrange to use setjmp/longjmp exception handling
1596 --enable-secureplt enable -msecure-plt by default for PowerPC
1597 --enable-leading-mingw64-underscores
1598 Enable leading underscores on 64 bit mingw targets
1599 --enable-cld enable -mcld by default for 32bit x86
1600 --disable-win32-registry
1601 disable lookup of installation paths in the
1602 Registry on Windows hosts
1603 --enable-win32-registry enable registry lookup (default)
1604 --enable-win32-registry=KEY
1605 use KEY instead of GCC version as the last portion
1606 of the registry key
1607 --enable-shared[=PKGS] build shared libraries [default=yes]
1608 --enable-static[=PKGS] build static libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --enable-comdat enable COMDAT group support
1613 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1614 glibc systems
1615 --enable-linker-build-id
1616 compiler will always pass --build-id to linker
1617 --enable-maintainer-mode
1618 enable make rules and dependencies not useful
1619 (and sometimes confusing) to the casual installer
1620 --enable-version-specific-runtime-libs
1621 specify that runtime libraries should be
1622 installed in a compiler-specific directory
1623 --enable-plugin enable plugin support
1625 Optional Packages:
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-build-libsubdir=DIR Directory where to find libraries for build system
1629 --with-local-prefix=DIR specifies directory to put local include
1630 --with-gxx-include-dir=DIR
1631 specifies directory to put g++ header files
1632 --with-cpp-install-dir=DIR
1633 install the user visible C preprocessor in DIR
1634 (relative to PREFIX) as well as PREFIX/bin
1635 --with-gnu-ld arrange to work with GNU ld.
1636 --with-ld arrange to use the specified ld (full pathname)
1637 --with-demangler-in-ld try to use demangler in GNU ld.
1638 --with-gnu-as arrange to work with GNU as
1639 --with-as arrange to use the specified as (full pathname)
1640 --with-stabs arrange to use stabs instead of host debug format
1641 --with-dwarf2 force the default debug format to be DWARF 2
1642 --with-build-sysroot=sysroot
1643 use sysroot as the system root during the build
1644 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1645 --with-specs=SPECS add SPECS to driver command-line processing
1646 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1647 --with-bugurl=URL Direct users to URL to report a bug
1648 --with-multilib-list Select multilibs (SH only)
1649 --with-gnu-ld assume the C compiler uses GNU ld default=no
1650 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1651 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1652 --with-system-libunwind use installed libunwind
1653 --with-pic try to use only PIC/non-PIC objects [default=use
1654 both]
1655 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1656 --with-plugin-ld=[ARG] specify the plugin linker
1657 --with-long-double-128 Use 128-bit long double by default.
1658 --with-gc={page,zone} choose the garbage collection mechanism to use
1659 with the compiler
1660 --with-system-zlib use installed libz
1661 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1663 Some influential environment variables:
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CXX C++ compiler command
1672 CXXFLAGS C++ compiler flags
1673 CPP C preprocessor
1674 CXXCPP C++ preprocessor
1675 GMPLIBS How to link GMP
1676 GMPINC How to find GMP include files
1677 PPLLIBS How to link PPL
1678 PPLINC How to find PPL include files
1679 CLOOGLIBS How to link CLOOG
1680 CLOOGINC How to find CLOOG include files
1681 LIBELFLIBS How to link libelf
1682 LIBELFINC How to find libelf include files
1684 Use these variables to override the choices made by `configure' or to help
1685 it to find libraries and programs with nonstandard names/locations.
1687 Report bugs to the package provider.
1688 _ACEOF
1689 ac_status=$?
1692 if test "$ac_init_help" = "recursive"; then
1693 # If there are subdirs, report their specific --help.
1694 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1695 test -d "$ac_dir" ||
1696 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697 continue
1698 ac_builddir=.
1700 case "$ac_dir" in
1701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1704 # A ".." for each directory in $ac_dir_suffix.
1705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1706 case $ac_top_builddir_sub in
1707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709 esac ;;
1710 esac
1711 ac_abs_top_builddir=$ac_pwd
1712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1713 # for backward compatibility:
1714 ac_top_builddir=$ac_top_build_prefix
1716 case $srcdir in
1717 .) # We are building in place.
1718 ac_srcdir=.
1719 ac_top_srcdir=$ac_top_builddir_sub
1720 ac_abs_top_srcdir=$ac_pwd ;;
1721 [\\/]* | ?:[\\/]* ) # Absolute name.
1722 ac_srcdir=$srcdir$ac_dir_suffix;
1723 ac_top_srcdir=$srcdir
1724 ac_abs_top_srcdir=$srcdir ;;
1725 *) # Relative name.
1726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1727 ac_top_srcdir=$ac_top_build_prefix$srcdir
1728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1729 esac
1730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732 cd "$ac_dir" || { ac_status=$?; continue; }
1733 # Check for guested configure.
1734 if test -f "$ac_srcdir/configure.gnu"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1737 elif test -f "$ac_srcdir/configure"; then
1738 echo &&
1739 $SHELL "$ac_srcdir/configure" --help=recursive
1740 else
1741 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1742 fi || ac_status=$?
1743 cd "$ac_pwd" || { ac_status=$?; break; }
1744 done
1747 test -n "$ac_init_help" && exit $ac_status
1748 if $ac_init_version; then
1749 cat <<\_ACEOF
1750 configure
1751 generated by GNU Autoconf 2.64
1753 Copyright (C) 2009 Free Software Foundation, Inc.
1754 This configure script is free software; the Free Software Foundation
1755 gives unlimited permission to copy, distribute and modify it.
1756 _ACEOF
1757 exit
1760 ## ------------------------ ##
1761 ## Autoconf initialization. ##
1762 ## ------------------------ ##
1764 # ac_fn_c_try_compile LINENO
1765 # --------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1795 ac_retval=1
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 return $ac_retval
1800 } # ac_fn_c_try_compile
1802 # ac_fn_cxx_try_compile LINENO
1803 # ----------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_cxx_try_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_cxx_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1838 } # ac_fn_cxx_try_compile
1840 # ac_fn_c_try_cpp LINENO
1841 # ----------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_cpp ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } >/dev/null && {
1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1870 ac_retval=1
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1873 return $ac_retval
1875 } # ac_fn_c_try_cpp
1877 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1878 # -------------------------------------------------------
1879 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1880 # the include files in INCLUDES and setting the cache variable VAR
1881 # accordingly.
1882 ac_fn_c_check_header_mongrel ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 $as_echo_n "(cached) " >&6
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 else
1895 # Is the header compilable?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1897 $as_echo_n "checking $2 usability... " >&6; }
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 ac_header_compiler=yes
1905 else
1906 ac_header_compiler=no
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1910 $as_echo "$ac_header_compiler" >&6; }
1912 # Is the header present?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1914 $as_echo_n "checking $2 presence... " >&6; }
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_cpp "$LINENO"; then :
1920 ac_header_preproc=yes
1921 else
1922 ac_header_preproc=no
1924 rm -f conftest.err conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1926 $as_echo "$ac_header_preproc" >&6; }
1928 # So? What about this header?
1929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1930 yes:no: )
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1932 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936 no:yes:* )
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1938 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1940 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1942 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1944 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948 esac
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1952 $as_echo_n "(cached) " >&6
1953 else
1954 eval "$3=\$ac_header_compiler"
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 } # ac_fn_c_check_header_mongrel
1964 # ac_fn_c_try_run LINENO
1965 # ----------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1967 # that executables *can* be run.
1968 ac_fn_c_try_run ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if { { ac_try="$ac_link"
1972 case "(($ac_try" in
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1975 esac
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_link") 2>&5
1979 ac_status=$?
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1982 { { case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_try") 2>&5
1989 ac_status=$?
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; }; }; then :
1992 ac_retval=0
1993 else
1994 $as_echo "$as_me: program exited with status $ac_status" >&5
1995 $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1998 ac_retval=$ac_status
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 return $ac_retval
2004 } # ac_fn_c_try_run
2006 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists and can be compiled using the include files in
2009 # INCLUDES, setting the cache variable VAR accordingly.
2010 ac_fn_c_check_header_compile ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$3=yes"
2025 else
2026 eval "$3=no"
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 eval ac_res=\$$3
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2035 } # ac_fn_c_check_header_compile
2037 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2038 # --------------------------------------------
2039 # Tries to find the compile-time value of EXPR in a program that includes
2040 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2041 # computed
2042 ac_fn_c_compute_int ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 if test "$cross_compiling" = yes; then
2046 # Depending upon the size, compute the lo and hi bounds.
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) >= 0)];
2054 test_array [0] = 0
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_lo=0 ac_mid=0
2062 while :; do
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2067 main ()
2069 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2070 test_array [0] = 0
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 ac_hi=$ac_mid; break
2078 else
2079 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2080 if test $ac_lo -le $ac_mid; then
2081 ac_lo= ac_hi=
2082 break
2084 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 done
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) < 0)];
2096 test_array [0] = 0
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=-1 ac_mid=-1
2104 while :; do
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2112 test_array [0] = 0
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 ac_lo=$ac_mid; break
2120 else
2121 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2122 if test $ac_mid -le $ac_hi; then
2123 ac_lo= ac_hi=
2124 break
2126 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 done
2130 else
2131 ac_lo= ac_hi=
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 # Binary search between lo and hi bounds.
2137 while test "x$ac_lo" != "x$ac_hi"; do
2138 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2143 main ()
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2146 test_array [0] = 0
2149 return 0;
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_hi=$ac_mid
2154 else
2155 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 case $ac_lo in #((
2160 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2161 '') ac_retval=1 ;;
2162 esac
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2167 static long int longval () { return $2; }
2168 static unsigned long int ulongval () { return $2; }
2169 #include <stdio.h>
2170 #include <stdlib.h>
2172 main ()
2175 FILE *f = fopen ("conftest.val", "w");
2176 if (! f)
2177 return 1;
2178 if (($2) < 0)
2180 long int i = longval ();
2181 if (i != ($2))
2182 return 1;
2183 fprintf (f, "%ld", i);
2185 else
2187 unsigned long int i = ulongval ();
2188 if (i != ($2))
2189 return 1;
2190 fprintf (f, "%lu", i);
2192 /* Do not output a trailing newline, as this causes \r\n confusion
2193 on some platforms. */
2194 return ferror (f) || fclose (f) != 0;
2197 return 0;
2199 _ACEOF
2200 if ac_fn_c_try_run "$LINENO"; then :
2201 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2202 else
2203 ac_retval=1
2205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2206 conftest.$ac_objext conftest.beam conftest.$ac_ext
2207 rm -f conftest.val
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 return $ac_retval
2213 } # ac_fn_c_compute_int
2215 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2216 # -------------------------------------------
2217 # Tests whether TYPE exists after having included INCLUDES, setting cache
2218 # variable VAR accordingly.
2219 ac_fn_c_check_type ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=no"
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2232 main ()
2234 if (sizeof ($2))
2235 return 0;
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 main ()
2247 if (sizeof (($2)))
2248 return 0;
2250 return 0;
2252 _ACEOF
2253 if ac_fn_c_try_compile "$LINENO"; then :
2255 else
2256 eval "$3=yes"
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 eval ac_res=\$$3
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2267 } # ac_fn_c_check_type
2269 # ac_fn_c_find_intX_t LINENO BITS VAR
2270 # -----------------------------------
2271 # Finds a signed integer type with width BITS, setting cache variable VAR
2272 # accordingly.
2273 ac_fn_c_find_intX_t ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2277 $as_echo_n "checking for int$2_t... " >&6; }
2278 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 eval "$3=no"
2282 for ac_type in int$2_t 'int' 'long int' \
2283 'long long int' 'short int' 'signed char'; do
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2286 $ac_includes_default
2288 main ()
2290 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2291 test_array [0] = 0
2294 return 0;
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 $ac_includes_default
2302 main ()
2304 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2305 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2306 test_array [0] = 0
2309 return 0;
2311 _ACEOF
2312 if ac_fn_c_try_compile "$LINENO"; then :
2314 else
2315 case $ac_type in #(
2316 int$2_t) :
2317 eval "$3=yes" ;; #(
2318 *) :
2319 eval "$3=\$ac_type" ;;
2320 esac
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 eval as_val=\$$3
2326 if test "x$as_val" = x""no; then :
2328 else
2329 break
2331 done
2333 eval ac_res=\$$3
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338 } # ac_fn_c_find_intX_t
2340 # ac_fn_c_try_link LINENO
2341 # -----------------------
2342 # Try to link conftest.$ac_ext, and return whether this succeeded.
2343 ac_fn_c_try_link ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 rm -f conftest.$ac_objext conftest$ac_exeext
2347 if { { ac_try="$ac_link"
2348 case "(($ac_try" in
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2351 esac
2352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2353 $as_echo "$ac_try_echo"; } >&5
2354 (eval "$ac_link") 2>conftest.err
2355 ac_status=$?
2356 if test -s conftest.err; then
2357 grep -v '^ *+' conftest.err >conftest.er1
2358 cat conftest.er1 >&5
2359 mv -f conftest.er1 conftest.err
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; } && {
2363 test -z "$ac_c_werror_flag" ||
2364 test ! -s conftest.err
2365 } && test -s conftest$ac_exeext && {
2366 test "$cross_compiling" = yes ||
2367 $as_test_x conftest$ac_exeext
2368 }; then :
2369 ac_retval=0
2370 else
2371 $as_echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2374 ac_retval=1
2376 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2377 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2378 # interfere with the next link command; also delete a directory that is
2379 # left behind by Apple's compiler. We do this before executing the actions.
2380 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2382 return $ac_retval
2384 } # ac_fn_c_try_link
2386 # ac_fn_c_find_uintX_t LINENO BITS VAR
2387 # ------------------------------------
2388 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2389 # accordingly.
2390 ac_fn_c_find_uintX_t ()
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2394 $as_echo_n "checking for uint$2_t... " >&6; }
2395 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2396 $as_echo_n "(cached) " >&6
2397 else
2398 eval "$3=no"
2399 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2400 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h. */
2403 $ac_includes_default
2405 main ()
2407 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2408 test_array [0] = 0
2411 return 0;
2413 _ACEOF
2414 if ac_fn_c_try_compile "$LINENO"; then :
2415 case $ac_type in #(
2416 uint$2_t) :
2417 eval "$3=yes" ;; #(
2418 *) :
2419 eval "$3=\$ac_type" ;;
2420 esac
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 eval as_val=\$$3
2424 if test "x$as_val" = x""no; then :
2426 else
2427 break
2429 done
2431 eval ac_res=\$$3
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2436 } # ac_fn_c_find_uintX_t
2438 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2439 # ----------------------------------------------
2440 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2441 ac_fn_c_check_header_preproc ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2445 $as_echo_n "checking for $2... " >&6; }
2446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2451 #include <$2>
2452 _ACEOF
2453 if ac_fn_c_try_cpp "$LINENO"; then :
2454 eval "$3=yes"
2455 else
2456 eval "$3=no"
2458 rm -f conftest.err conftest.$ac_ext
2460 eval ac_res=\$$3
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2465 } # ac_fn_c_check_header_preproc
2467 # ac_fn_c_check_func LINENO FUNC VAR
2468 # ----------------------------------
2469 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2470 ac_fn_c_check_func ()
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2480 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2482 #define $2 innocuous_$2
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char $2 (); below.
2486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2487 <limits.h> exists even on freestanding compilers. */
2489 #ifdef __STDC__
2490 # include <limits.h>
2491 #else
2492 # include <assert.h>
2493 #endif
2495 #undef $2
2497 /* Override any GCC internal prototype to avoid an error.
2498 Use char because int might match the return type of a GCC
2499 builtin and then its argument prototype would still apply. */
2500 #ifdef __cplusplus
2501 extern "C"
2502 #endif
2503 char $2 ();
2504 /* The GNU C library defines this for functions which it implements
2505 to always fail with ENOSYS. Some functions are actually named
2506 something starting with __ and the normal name is an alias. */
2507 #if defined __stub_$2 || defined __stub___$2
2508 choke me
2509 #endif
2512 main ()
2514 return $2 ();
2516 return 0;
2518 _ACEOF
2519 if ac_fn_c_try_link "$LINENO"; then :
2520 eval "$3=yes"
2521 else
2522 eval "$3=no"
2524 rm -f core conftest.err conftest.$ac_objext \
2525 conftest$ac_exeext conftest.$ac_ext
2527 eval ac_res=\$$3
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529 $as_echo "$ac_res" >&6; }
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2532 } # ac_fn_c_check_func
2534 # ac_fn_cxx_try_cpp LINENO
2535 # ------------------------
2536 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2537 ac_fn_cxx_try_cpp ()
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 if { { ac_try="$ac_cpp conftest.$ac_ext"
2541 case "(($ac_try" in
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2544 esac
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2548 ac_status=$?
2549 if test -s conftest.err; then
2550 grep -v '^ *+' conftest.err >conftest.er1
2551 cat conftest.er1 >&5
2552 mv -f conftest.er1 conftest.err
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; } >/dev/null && {
2556 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2557 test ! -s conftest.err
2558 }; then :
2559 ac_retval=0
2560 else
2561 $as_echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 ac_retval=1
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 return $ac_retval
2569 } # ac_fn_cxx_try_cpp
2571 # ac_fn_cxx_try_link LINENO
2572 # -------------------------
2573 # Try to link conftest.$ac_ext, and return whether this succeeded.
2574 ac_fn_cxx_try_link ()
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 rm -f conftest.$ac_objext conftest$ac_exeext
2578 if { { ac_try="$ac_link"
2579 case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582 esac
2583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2584 $as_echo "$ac_try_echo"; } >&5
2585 (eval "$ac_link") 2>conftest.err
2586 ac_status=$?
2587 if test -s conftest.err; then
2588 grep -v '^ *+' conftest.err >conftest.er1
2589 cat conftest.er1 >&5
2590 mv -f conftest.er1 conftest.err
2592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2593 test $ac_status = 0; } && {
2594 test -z "$ac_cxx_werror_flag" ||
2595 test ! -s conftest.err
2596 } && test -s conftest$ac_exeext && {
2597 test "$cross_compiling" = yes ||
2598 $as_test_x conftest$ac_exeext
2599 }; then :
2600 ac_retval=0
2601 else
2602 $as_echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 ac_retval=1
2607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2609 # interfere with the next link command; also delete a directory that is
2610 # left behind by Apple's compiler. We do this before executing the actions.
2611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2613 return $ac_retval
2615 } # ac_fn_cxx_try_link
2616 cat >config.log <<_ACEOF
2617 This file contains any messages produced by compilers while
2618 running configure, to aid debugging if configure makes a mistake.
2620 It was created by $as_me, which was
2621 generated by GNU Autoconf 2.64. Invocation command line was
2623 $ $0 $@
2625 _ACEOF
2626 exec 5>>config.log
2628 cat <<_ASUNAME
2629 ## --------- ##
2630 ## Platform. ##
2631 ## --------- ##
2633 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2634 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2635 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2636 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2637 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2639 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2640 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2642 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2643 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2644 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2645 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2646 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2647 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2648 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2650 _ASUNAME
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 $as_echo "PATH: $as_dir"
2658 done
2659 IFS=$as_save_IFS
2661 } >&5
2663 cat >&5 <<_ACEOF
2666 ## ----------- ##
2667 ## Core tests. ##
2668 ## ----------- ##
2670 _ACEOF
2673 # Keep a trace of the command line.
2674 # Strip out --no-create and --no-recursion so they do not pile up.
2675 # Strip out --silent because we don't want to record it for future runs.
2676 # Also quote any args containing shell meta-characters.
2677 # Make two passes to allow for proper duplicate-argument suppression.
2678 ac_configure_args=
2679 ac_configure_args0=
2680 ac_configure_args1=
2681 ac_must_keep_next=false
2682 for ac_pass in 1 2
2684 for ac_arg
2686 case $ac_arg in
2687 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2689 | -silent | --silent | --silen | --sile | --sil)
2690 continue ;;
2691 *\'*)
2692 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2693 esac
2694 case $ac_pass in
2695 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2697 as_fn_append ac_configure_args1 " '$ac_arg'"
2698 if test $ac_must_keep_next = true; then
2699 ac_must_keep_next=false # Got value, back to normal.
2700 else
2701 case $ac_arg in
2702 *=* | --config-cache | -C | -disable-* | --disable-* \
2703 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2704 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2705 | -with-* | --with-* | -without-* | --without-* | --x)
2706 case "$ac_configure_args0 " in
2707 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2708 esac
2710 -* ) ac_must_keep_next=true ;;
2711 esac
2713 as_fn_append ac_configure_args " '$ac_arg'"
2715 esac
2716 done
2717 done
2718 { ac_configure_args0=; unset ac_configure_args0;}
2719 { ac_configure_args1=; unset ac_configure_args1;}
2721 # When interrupted or exit'd, cleanup temporary files, and complete
2722 # config.log. We remove comments because anyway the quotes in there
2723 # would cause problems or look ugly.
2724 # WARNING: Use '\'' to represent an apostrophe within the trap.
2725 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2726 trap 'exit_status=$?
2727 # Save into config.log some information that might help in debugging.
2729 echo
2731 cat <<\_ASBOX
2732 ## ---------------- ##
2733 ## Cache variables. ##
2734 ## ---------------- ##
2735 _ASBOX
2736 echo
2737 # The following way of writing the cache mishandles newlines in values,
2739 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2740 eval ac_val=\$$ac_var
2741 case $ac_val in #(
2742 *${as_nl}*)
2743 case $ac_var in #(
2744 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2745 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2746 esac
2747 case $ac_var in #(
2748 _ | IFS | as_nl) ;; #(
2749 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2750 *) { eval $ac_var=; unset $ac_var;} ;;
2751 esac ;;
2752 esac
2753 done
2754 (set) 2>&1 |
2755 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2756 *${as_nl}ac_space=\ *)
2757 sed -n \
2758 "s/'\''/'\''\\\\'\'''\''/g;
2759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2760 ;; #(
2762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2764 esac |
2765 sort
2767 echo
2769 cat <<\_ASBOX
2770 ## ----------------- ##
2771 ## Output variables. ##
2772 ## ----------------- ##
2773 _ASBOX
2774 echo
2775 for ac_var in $ac_subst_vars
2777 eval ac_val=\$$ac_var
2778 case $ac_val in
2779 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2780 esac
2781 $as_echo "$ac_var='\''$ac_val'\''"
2782 done | sort
2783 echo
2785 if test -n "$ac_subst_files"; then
2786 cat <<\_ASBOX
2787 ## ------------------- ##
2788 ## File substitutions. ##
2789 ## ------------------- ##
2790 _ASBOX
2791 echo
2792 for ac_var in $ac_subst_files
2794 eval ac_val=\$$ac_var
2795 case $ac_val in
2796 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 esac
2798 $as_echo "$ac_var='\''$ac_val'\''"
2799 done | sort
2800 echo
2803 if test -s confdefs.h; then
2804 cat <<\_ASBOX
2805 ## ----------- ##
2806 ## confdefs.h. ##
2807 ## ----------- ##
2808 _ASBOX
2809 echo
2810 cat confdefs.h
2811 echo
2813 test "$ac_signal" != 0 &&
2814 $as_echo "$as_me: caught signal $ac_signal"
2815 $as_echo "$as_me: exit $exit_status"
2816 } >&5
2817 rm -f core *.core core.conftest.* &&
2818 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2819 exit $exit_status
2821 for ac_signal in 1 2 13 15; do
2822 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2823 done
2824 ac_signal=0
2826 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2827 rm -f -r conftest* confdefs.h
2829 $as_echo "/* confdefs.h */" > confdefs.h
2831 # Predefined preprocessor variables.
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_NAME "$PACKAGE_NAME"
2835 _ACEOF
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2839 _ACEOF
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2843 _ACEOF
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_STRING "$PACKAGE_STRING"
2847 _ACEOF
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2851 _ACEOF
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_URL "$PACKAGE_URL"
2855 _ACEOF
2858 # Let the site file select an alternate cache file if it wants to.
2859 # Prefer an explicitly selected file to automatically selected ones.
2860 ac_site_file1=NONE
2861 ac_site_file2=NONE
2862 if test -n "$CONFIG_SITE"; then
2863 ac_site_file1=$CONFIG_SITE
2864 elif test "x$prefix" != xNONE; then
2865 ac_site_file1=$prefix/share/config.site
2866 ac_site_file2=$prefix/etc/config.site
2867 else
2868 ac_site_file1=$ac_default_prefix/share/config.site
2869 ac_site_file2=$ac_default_prefix/etc/config.site
2871 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2873 test "x$ac_site_file" = xNONE && continue
2874 if test -r "$ac_site_file"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2876 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2877 sed 's/^/| /' "$ac_site_file" >&5
2878 . "$ac_site_file"
2880 done
2882 if test -r "$cache_file"; then
2883 # Some versions of bash will fail to source /dev/null (special
2884 # files actually), so we avoid doing that.
2885 if test -f "$cache_file"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2887 $as_echo "$as_me: loading cache $cache_file" >&6;}
2888 case $cache_file in
2889 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2890 *) . "./$cache_file";;
2891 esac
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2895 $as_echo "$as_me: creating cache $cache_file" >&6;}
2896 >$cache_file
2899 # Check that the precious variables saved in the cache have kept the same
2900 # value.
2901 ac_cache_corrupted=false
2902 for ac_var in $ac_precious_vars; do
2903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2904 eval ac_new_set=\$ac_env_${ac_var}_set
2905 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2906 eval ac_new_val=\$ac_env_${ac_var}_value
2907 case $ac_old_set,$ac_new_set in
2908 set,)
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2910 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2912 ,set)
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2914 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2915 ac_cache_corrupted=: ;;
2916 ,);;
2918 if test "x$ac_old_val" != "x$ac_new_val"; then
2919 # differences in whitespace do not lead to failure.
2920 ac_old_val_w=`echo x $ac_old_val`
2921 ac_new_val_w=`echo x $ac_new_val`
2922 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2924 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2925 ac_cache_corrupted=:
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2928 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2929 eval $ac_var=\$ac_old_val
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2932 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2934 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2935 fi;;
2936 esac
2937 # Pass precious variables to config.status.
2938 if test "$ac_new_set" = set; then
2939 case $ac_new_val in
2940 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2941 *) ac_arg=$ac_var=$ac_new_val ;;
2942 esac
2943 case " $ac_configure_args " in
2944 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2945 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2946 esac
2948 done
2949 if $ac_cache_corrupted; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2953 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2954 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2956 ## -------------------- ##
2957 ## Main body of script. ##
2958 ## -------------------- ##
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2974 gcc_version=`cat $srcdir/BASE-VER`
2976 # Determine the host, build, and target systems
2977 ac_aux_dir=
2978 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2979 for ac_t in install-sh install.sh shtool; do
2980 if test -f "$ac_dir/$ac_t"; then
2981 ac_aux_dir=$ac_dir
2982 ac_install_sh="$ac_aux_dir/$ac_t -c"
2983 break 2
2985 done
2986 done
2987 if test -z "$ac_aux_dir"; then
2988 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2991 # These three variables are undocumented and unsupported,
2992 # and are intended to be withdrawn in a future Autoconf release.
2993 # They can cause serious problems if a builder's source tree is in a directory
2994 # whose full name contains unusual characters.
2995 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2996 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2997 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3000 # Make sure we can run config.sub.
3001 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3002 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3005 $as_echo_n "checking build system type... " >&6; }
3006 if test "${ac_cv_build+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 ac_build_alias=$build_alias
3010 test "x$ac_build_alias" = x &&
3011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3012 test "x$ac_build_alias" = x &&
3013 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3015 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3019 $as_echo "$ac_cv_build" >&6; }
3020 case $ac_cv_build in
3021 *-*-*) ;;
3022 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3023 esac
3024 build=$ac_cv_build
3025 ac_save_IFS=$IFS; IFS='-'
3026 set x $ac_cv_build
3027 shift
3028 build_cpu=$1
3029 build_vendor=$2
3030 shift; shift
3031 # Remember, the first character of IFS is used to create $*,
3032 # except with old shells:
3033 build_os=$*
3034 IFS=$ac_save_IFS
3035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3039 $as_echo_n "checking host system type... " >&6; }
3040 if test "${ac_cv_host+set}" = set; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test "x$host_alias" = x; then
3044 ac_cv_host=$ac_cv_build
3045 else
3046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3047 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3052 $as_echo "$ac_cv_host" >&6; }
3053 case $ac_cv_host in
3054 *-*-*) ;;
3055 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3056 esac
3057 host=$ac_cv_host
3058 ac_save_IFS=$IFS; IFS='-'
3059 set x $ac_cv_host
3060 shift
3061 host_cpu=$1
3062 host_vendor=$2
3063 shift; shift
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3066 host_os=$*
3067 IFS=$ac_save_IFS
3068 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3072 $as_echo_n "checking target system type... " >&6; }
3073 if test "${ac_cv_target+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test "x$target_alias" = x; then
3077 ac_cv_target=$ac_cv_host
3078 else
3079 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3080 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3085 $as_echo "$ac_cv_target" >&6; }
3086 case $ac_cv_target in
3087 *-*-*) ;;
3088 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3089 esac
3090 target=$ac_cv_target
3091 ac_save_IFS=$IFS; IFS='-'
3092 set x $ac_cv_target
3093 shift
3094 target_cpu=$1
3095 target_vendor=$2
3096 shift; shift
3097 # Remember, the first character of IFS is used to create $*,
3098 # except with old shells:
3099 target_os=$*
3100 IFS=$ac_save_IFS
3101 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3104 # The aliases save the names the user supplied, while $host etc.
3105 # will get canonicalized.
3106 test -n "$target_alias" &&
3107 test "$program_prefix$program_suffix$program_transform_name" = \
3108 NONENONEs,x,x, &&
3109 program_prefix=${target_alias}-
3111 # Determine the noncanonical target name, for directory use.
3112 case ${build_alias} in
3113 "") build_noncanonical=${build} ;;
3114 *) build_noncanonical=${build_alias} ;;
3115 esac
3117 case ${host_alias} in
3118 "") host_noncanonical=${build_noncanonical} ;;
3119 *) host_noncanonical=${host_alias} ;;
3120 esac
3122 case ${target_alias} in
3123 "") target_noncanonical=${host_noncanonical} ;;
3124 *) target_noncanonical=${target_alias} ;;
3125 esac
3130 # Determine the target- and build-specific subdirectories
3132 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3133 # have matching libraries, they should use host libraries: Makefile.tpl
3134 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3135 # However, they still use the build modules, because the corresponding
3136 # host modules (e.g. bison) are only built for the host when bootstrap
3137 # finishes. So:
3138 # - build_subdir is where we find build modules, and never changes.
3139 # - build_libsubdir is where we find build libraries, and can be overridden.
3141 # Prefix 'build-' so this never conflicts with target_subdir.
3142 build_subdir="build-${build_noncanonical}"
3144 # Check whether --with-build-libsubdir was given.
3145 if test "${with_build_libsubdir+set}" = set; then :
3146 withval=$with_build_libsubdir; build_libsubdir="$withval"
3147 else
3148 build_libsubdir="$build_subdir"
3151 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3152 if ( test $srcdir = . && test -d gcc ) \
3153 || test -d $srcdir/../host-${host_noncanonical}; then
3154 host_subdir="host-${host_noncanonical}"
3155 else
3156 host_subdir=.
3158 # No prefix.
3159 target_subdir=${target_noncanonical}
3162 # Set program_transform_name
3163 test "$program_prefix" != NONE &&
3164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3165 # Use a double $ so make ignores it.
3166 test "$program_suffix" != NONE &&
3167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3168 # Double any \ or $.
3169 # By default was `s,x,x', remove it if useless.
3170 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3174 # Check for bogus environment variables.
3175 # Test if LIBRARY_PATH contains the notation for the current directory
3176 # since this would lead to problems installing/building glibc.
3177 # LIBRARY_PATH contains the current directory if one of the following
3178 # is true:
3179 # - one of the terminals (":" and ";") is the first or last sign
3180 # - two terminals occur directly after each other
3181 # - the path contains an element with a dot in it
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3183 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3184 case ${LIBRARY_PATH} in
3185 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3186 library_path_setting="contains current directory"
3189 library_path_setting="ok"
3191 esac
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3193 $as_echo "$library_path_setting" >&6; }
3194 if test "$library_path_setting" != "ok"; then
3195 as_fn_error "
3196 *** LIBRARY_PATH shouldn't contain the current directory when
3197 *** building gcc. Please change the environment variable
3198 *** and run configure again." "$LINENO" 5
3201 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3202 # since this would lead to problems installing/building glibc.
3203 # GCC_EXEC_PREFIX contains the current directory if one of the following
3204 # is true:
3205 # - one of the terminals (":" and ";") is the first or last sign
3206 # - two terminals occur directly after each other
3207 # - the path contains an element with a dot in it
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3209 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3210 case ${GCC_EXEC_PREFIX} in
3211 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3212 gcc_exec_prefix_setting="contains current directory"
3215 gcc_exec_prefix_setting="ok"
3217 esac
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3219 $as_echo "$gcc_exec_prefix_setting" >&6; }
3220 if test "$gcc_exec_prefix_setting" != "ok"; then
3221 as_fn_error "
3222 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3223 *** building gcc. Please change the environment variable
3224 *** and run configure again." "$LINENO" 5
3227 # -----------
3228 # Directories
3229 # -----------
3231 # Specify the local prefix
3232 local_prefix=
3234 # Check whether --with-local-prefix was given.
3235 if test "${with_local_prefix+set}" = set; then :
3236 withval=$with_local_prefix; case "${withval}" in
3237 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3238 no) ;;
3239 *) local_prefix=$with_local_prefix ;;
3240 esac
3244 # Default local prefix if it is empty
3245 if test x$local_prefix = x; then
3246 local_prefix=/usr/local
3249 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3250 # passed in by the toplevel make and thus we'd get different behavior
3251 # depending on where we built the sources.
3252 gcc_gxx_include_dir=
3253 # Specify the g++ header file directory
3255 # Check whether --with-gxx-include-dir was given.
3256 if test "${with_gxx_include_dir+set}" = set; then :
3257 withval=$with_gxx_include_dir; case "${withval}" in
3258 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3259 no) ;;
3260 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3261 esac
3265 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3266 if test x${gcc_gxx_include_dir} = x; then
3267 if test x${enable_version_specific_runtime_libs} = xyes; then
3268 gcc_gxx_include_dir='${libsubdir}/include/c++'
3269 else
3270 libstdcxx_incdir='include/c++/$(version)'
3271 if test x$host != x$target; then
3272 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3274 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3279 # Check whether --with-cpp_install_dir was given.
3280 if test "${with_cpp_install_dir+set}" = set; then :
3281 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3282 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3283 elif test x$withval != xno; then
3284 cpp_install_dir=$withval
3289 # We would like to our source tree to be readonly. However when releases or
3290 # pre-releases are generated, the flex/bison generated files as well as the
3291 # various formats of manuals need to be included along with the rest of the
3292 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3293 # just that.
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3296 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3297 # Check whether --enable-generated-files-in-srcdir was given.
3298 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3299 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3300 else
3301 generated_files_in_srcdir=no
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3306 $as_echo "$generated_files_in_srcdir" >&6; }
3308 if test "$generated_files_in_srcdir" = "yes"; then
3309 GENINSRC=''
3310 else
3311 GENINSRC='#'
3315 # -------------------
3316 # Find default linker
3317 # -------------------
3319 # With GNU ld
3321 # Check whether --with-gnu-ld was given.
3322 if test "${with_gnu_ld+set}" = set; then :
3323 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3324 else
3325 gnu_ld_flag=no
3329 # With pre-defined ld
3331 # Check whether --with-ld was given.
3332 if test "${with_ld+set}" = set; then :
3333 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3336 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3337 if test ! -x "$DEFAULT_LINKER"; then
3338 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3339 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3340 gnu_ld_flag=yes
3343 cat >>confdefs.h <<_ACEOF
3344 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3345 _ACEOF
3349 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3351 cat >>confdefs.h <<_ACEOF
3352 #define HAVE_GNU_LD $gnu_ld
3353 _ACEOF
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3357 $as_echo_n "checking whether a default linker was specified... " >&6; }
3358 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3359 if test x"$gnu_ld_flag" = x"no"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3361 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3364 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3371 # With demangler in GNU ld
3373 # Check whether --with-demangler-in-ld was given.
3374 if test "${with_demangler_in_ld+set}" = set; then :
3375 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3376 else
3377 demangler_in_ld=no
3381 # ----------------------
3382 # Find default assembler
3383 # ----------------------
3385 # With GNU as
3387 # Check whether --with-gnu-as was given.
3388 if test "${with_gnu_as+set}" = set; then :
3389 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3390 else
3391 gas_flag=no
3396 # Check whether --with-as was given.
3397 if test "${with_as+set}" = set; then :
3398 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3401 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3402 if test ! -x "$DEFAULT_ASSEMBLER"; then
3403 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3404 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3405 gas_flag=yes
3408 cat >>confdefs.h <<_ACEOF
3409 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3410 _ACEOF
3414 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3416 cat >>confdefs.h <<_ACEOF
3417 #define HAVE_GNU_AS $gnu_as
3418 _ACEOF
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3422 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3423 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3424 if test x"$gas_flag" = x"no"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3426 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3429 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3436 # ---------------
3437 # Find C compiler
3438 # ---------------
3440 # If a non-executable a.out is present (e.g. created by GNU as above even if
3441 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3442 # file, even when creating an executable, so an execution test fails.
3443 # Remove possible default executable files to avoid this.
3445 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3446 # Autoconf includes it.
3447 rm -f a.out a.exe b.out
3449 # Find the native compiler
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3479 IFS=$as_save_IFS
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3494 if test -z "$ac_cv_prog_CC"; then
3495 ac_ct_CC=$CC
3496 # Extract the first word of "gcc", so it can be a program name with args.
3497 set dummy gcc; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_ac_ct_CC="gcc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3519 IFS=$as_save_IFS
3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 $as_echo "$ac_ct_CC" >&6; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3532 if test "x$ac_ct_CC" = x; then
3533 CC=""
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541 CC=$ac_ct_CC
3543 else
3544 CC="$ac_cv_prog_CC"
3547 if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}cc; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_CC+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_CC="${ac_tool_prefix}cc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3570 done
3571 done
3572 IFS=$as_save_IFS
3576 CC=$ac_cv_prog_CC
3577 if test -n "$CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 $as_echo "$CC" >&6; }
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3588 if test -z "$CC"; then
3589 # Extract the first word of "cc", so it can be a program name with args.
3590 set dummy cc; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3598 else
3599 ac_prog_rejected=no
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3608 ac_prog_rejected=yes
3609 continue
3611 ac_cv_prog_CC="cc"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3615 done
3616 done
3617 IFS=$as_save_IFS
3619 if test $ac_prog_rejected = yes; then
3620 # We found a bogon in the path, so make sure we never use it.
3621 set dummy $ac_cv_prog_CC
3622 shift
3623 if test $# != 0; then
3624 # We chose a different compiler from the bogus one.
3625 # However, it has the same basename, so the bogon will be chosen
3626 # first if we set CC to just the basename; use the full file name.
3627 shift
3628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 for ac_prog in cl.exe
3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3671 IFS=$as_save_IFS
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3679 else
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3685 test -n "$CC" && break
3686 done
3688 if test -z "$CC"; then
3689 ac_ct_CC=$CC
3690 for ac_prog in cl.exe
3692 # Extract the first word of "$ac_prog", so it can be a program name with args.
3693 set dummy $ac_prog; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -n "$ac_ct_CC"; then
3700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_ac_ct_CC="$ac_prog"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3713 done
3714 done
3715 IFS=$as_save_IFS
3719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3720 if test -n "$ac_ct_CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3722 $as_echo "$ac_ct_CC" >&6; }
3723 else
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3729 test -n "$ac_ct_CC" && break
3730 done
3732 if test "x$ac_ct_CC" = x; then
3733 CC=""
3734 else
3735 case $cross_compiling:$ac_tool_warned in
3736 yes:)
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned=yes ;;
3740 esac
3741 CC=$ac_ct_CC
3748 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error "no acceptable C compiler found in \$PATH
3751 See \`config.log' for more details." "$LINENO" 5; }
3753 # Provide some information about the compiler.
3754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3755 set X $ac_compile
3756 ac_compiler=$2
3757 for ac_option in --version -v -V -qversion; do
3758 { { ac_try="$ac_compiler $ac_option >&5"
3759 case "(($ac_try" in
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3766 ac_status=$?
3767 if test -s conftest.err; then
3768 sed '10a\
3769 ... rest of stderr output deleted ...
3770 10q' conftest.err >conftest.er1
3771 cat conftest.er1 >&5
3772 rm -f conftest.er1 conftest.err
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }
3776 done
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3786 return 0;
3788 _ACEOF
3789 ac_clean_files_save=$ac_clean_files
3790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3791 # Try to create an executable without -o first, disregard a.out.
3792 # It will help us diagnose broken compilers, and finding out an intuition
3793 # of exeext.
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3795 $as_echo_n "checking for C compiler default output file name... " >&6; }
3796 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3798 # The possible output files:
3799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3801 ac_rmfiles=
3802 for ac_file in $ac_files
3804 case $ac_file in
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3807 esac
3808 done
3809 rm -f $ac_rmfiles
3811 if { { ac_try="$ac_link_default"
3812 case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_link_default") 2>&5
3819 ac_status=$?
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; then :
3822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3825 # so that the user can short-circuit this test for compilers unknown to
3826 # Autoconf.
3827 for ac_file in $ac_files ''
3829 test -f "$ac_file" || continue
3830 case $ac_file in
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3833 [ab].out )
3834 # We found the default executable, but exeext='' is most
3835 # certainly right.
3836 break;;
3837 *.* )
3838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3839 then :; else
3840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 # We set ac_cv_exeext here because the later test for it is not
3843 # safe: cross compilers may not add the suffix if given an `-o'
3844 # argument, so we may need to know it at that point already.
3845 # Even if this section looks crufty: it has the advantage of
3846 # actually working.
3847 break;;
3849 break;;
3850 esac
3851 done
3852 test "$ac_cv_exeext" = no && ac_cv_exeext=
3854 else
3855 ac_file=''
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3858 $as_echo "$ac_file" >&6; }
3859 if test -z "$ac_file"; then :
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 { as_fn_set_status 77
3866 as_fn_error "C compiler cannot create executables
3867 See \`config.log' for more details." "$LINENO" 5; }; }
3869 ac_exeext=$ac_cv_exeext
3871 # Check that the compiler produces executables we can run. If not, either
3872 # the compiler is broken, or we cross compile.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874 $as_echo_n "checking whether the C compiler works... " >&6; }
3875 # If not cross compiling, check that we can run a simple program.
3876 if test "$cross_compiling" != yes; then
3877 if { ac_try='./$ac_file'
3878 { { case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_try") 2>&5
3885 ac_status=$?
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; }; then
3888 cross_compiling=no
3889 else
3890 if test "$cross_compiling" = maybe; then
3891 cross_compiling=yes
3892 else
3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error "cannot run C compiled programs.
3896 If you meant to cross compile, use \`--host'.
3897 See \`config.log' for more details." "$LINENO" 5; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3902 $as_echo "yes" >&6; }
3904 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3905 ac_clean_files=$ac_clean_files_save
3906 # Check that the compiler produces executables we can run. If not, either
3907 # the compiler is broken, or we cross compile.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3909 $as_echo_n "checking whether we are cross compiling... " >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3911 $as_echo "$cross_compiling" >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3914 $as_echo_n "checking for suffix of executables... " >&6; }
3915 if { { ac_try="$ac_link"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_link") 2>&5
3923 ac_status=$?
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; then :
3926 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3927 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3928 # work properly (i.e., refer to `conftest.exe'), while it won't with
3929 # `rm'.
3930 for ac_file in conftest.exe conftest conftest.*; do
3931 test -f "$ac_file" || continue
3932 case $ac_file in
3933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3935 break;;
3936 * ) break;;
3937 esac
3938 done
3939 else
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error "cannot compute suffix of executables: cannot compile and link
3943 See \`config.log' for more details." "$LINENO" 5; }
3945 rm -f conftest$ac_cv_exeext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3947 $as_echo "$ac_cv_exeext" >&6; }
3949 rm -f conftest.$ac_ext
3950 EXEEXT=$ac_cv_exeext
3951 ac_exeext=$EXEEXT
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3953 $as_echo_n "checking for suffix of object files... " >&6; }
3954 if test "${ac_cv_objext+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3961 main ()
3965 return 0;
3967 _ACEOF
3968 rm -f conftest.o conftest.obj
3969 if { { ac_try="$ac_compile"
3970 case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_compile") 2>&5
3977 ac_status=$?
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; then :
3980 for ac_file in conftest.o conftest.obj conftest.*; do
3981 test -f "$ac_file" || continue;
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985 break;;
3986 esac
3987 done
3988 else
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error "cannot compute suffix of object files: cannot compile
3995 See \`config.log' for more details." "$LINENO" 5; }
3997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4000 $as_echo "$ac_cv_objext" >&6; }
4001 OBJEXT=$ac_cv_objext
4002 ac_objext=$OBJEXT
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4004 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4005 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4012 main ()
4014 #ifndef __GNUC__
4015 choke me
4016 #endif
4019 return 0;
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_compiler_gnu=yes
4024 else
4025 ac_compiler_gnu=no
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4032 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4033 if test $ac_compiler_gnu = yes; then
4034 GCC=yes
4035 else
4036 GCC=
4038 ac_test_CFLAGS=${CFLAGS+set}
4039 ac_save_CFLAGS=$CFLAGS
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4041 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4042 if test "${ac_cv_prog_cc_g+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 ac_save_c_werror_flag=$ac_c_werror_flag
4046 ac_c_werror_flag=yes
4047 ac_cv_prog_cc_g=no
4048 CFLAGS="-g"
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4053 main ()
4057 return 0;
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_cv_prog_cc_g=yes
4062 else
4063 CFLAGS=""
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4068 main ()
4072 return 0;
4074 _ACEOF
4075 if ac_fn_c_try_compile "$LINENO"; then :
4077 else
4078 ac_c_werror_flag=$ac_save_c_werror_flag
4079 CFLAGS="-g"
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4084 main ()
4088 return 0;
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092 ac_cv_prog_cc_g=yes
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_c_werror_flag=$ac_save_c_werror_flag
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4102 $as_echo "$ac_cv_prog_cc_g" >&6; }
4103 if test "$ac_test_CFLAGS" = set; then
4104 CFLAGS=$ac_save_CFLAGS
4105 elif test $ac_cv_prog_cc_g = yes; then
4106 if test "$GCC" = yes; then
4107 CFLAGS="-g -O2"
4108 else
4109 CFLAGS="-g"
4111 else
4112 if test "$GCC" = yes; then
4113 CFLAGS="-O2"
4114 else
4115 CFLAGS=
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4119 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4120 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 ac_cv_prog_cc_c89=no
4124 ac_save_CC=$CC
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4127 #include <stdarg.h>
4128 #include <stdio.h>
4129 #include <sys/types.h>
4130 #include <sys/stat.h>
4131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4132 struct buf { int x; };
4133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4134 static char *e (p, i)
4135 char **p;
4136 int i;
4138 return p[i];
4140 static char *f (char * (*g) (char **, int), char **p, ...)
4142 char *s;
4143 va_list v;
4144 va_start (v,p);
4145 s = g (p, va_arg (v,int));
4146 va_end (v);
4147 return s;
4150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4151 function prototypes and stuff, but not '\xHH' hex character constants.
4152 These don't provoke an error unfortunately, instead are silently treated
4153 as 'x'. The following induces an error, until -std is added to get
4154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4155 array size at least. It's necessary to write '\x00'==0 to get something
4156 that's true only with -std. */
4157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4160 inside strings and character constants. */
4161 #define FOO(x) 'x'
4162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4164 int test (int i, double x);
4165 struct s1 {int (*f) (int a);};
4166 struct s2 {int (*f) (double a);};
4167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4168 int argc;
4169 char **argv;
4171 main ()
4173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4175 return 0;
4177 _ACEOF
4178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4181 CC="$ac_save_CC $ac_arg"
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_prog_cc_c89=$ac_arg
4185 rm -f core conftest.err conftest.$ac_objext
4186 test "x$ac_cv_prog_cc_c89" != "xno" && break
4187 done
4188 rm -f conftest.$ac_ext
4189 CC=$ac_save_CC
4192 # AC_CACHE_VAL
4193 case "x$ac_cv_prog_cc_c89" in
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4196 $as_echo "none needed" >&6; } ;;
4197 xno)
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4199 $as_echo "unsupported" >&6; } ;;
4201 CC="$CC $ac_cv_prog_cc_c89"
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4203 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4204 esac
4205 if test "x$ac_cv_prog_cc_c89" != xno; then :
4209 ac_ext=c
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 if test "x$CC" != xcc; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4217 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4218 else
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4220 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4222 set dummy $CC; ac_cc=`$as_echo "$2" |
4223 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4224 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4231 main ()
4235 return 0;
4237 _ACEOF
4238 # Make sure it works both with $CC and with simple cc.
4239 # We do the test twice because some compilers refuse to overwrite an
4240 # existing .o file with -o, though they will create one.
4241 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4242 rm -f conftest2.*
4243 if { { case "(($ac_try" in
4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4245 *) ac_try_echo=$ac_try;;
4246 esac
4247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248 $as_echo "$ac_try_echo"; } >&5
4249 (eval "$ac_try") 2>&5
4250 ac_status=$?
4251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4252 test $ac_status = 0; } &&
4253 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4256 esac
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 $as_echo "$ac_try_echo"; } >&5
4259 (eval "$ac_try") 2>&5
4260 ac_status=$?
4261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; };
4263 then
4264 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4265 if test "x$CC" != xcc; then
4266 # Test first that cc exists at all.
4267 if { ac_try='cc -c conftest.$ac_ext >&5'
4268 { { case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_try") 2>&5
4275 ac_status=$?
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; }; then
4278 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4279 rm -f conftest2.*
4280 if { { case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; } &&
4290 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4297 ac_status=$?
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; };
4300 then
4301 # cc works too.
4303 else
4304 # cc exists but doesn't like -o.
4305 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4309 else
4310 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4312 rm -f core conftest*
4315 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4317 $as_echo "yes" >&6; }
4318 else
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4322 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4326 # expand $ac_aux_dir to an absolute path
4327 am_aux_dir=`cd $ac_aux_dir && pwd`
4329 # FIXME: we rely on the cache variable name because
4330 # there is no other way.
4331 set dummy $CC
4332 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4333 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4334 if test "$am_t" != yes; then
4335 # Losing compiler, so override with the script.
4336 # FIXME: It is wrong to rewrite CC.
4337 # But if we don't then we get into trouble of one sort or another.
4338 # A longer-term fix would be to have automake use am__CC in this case,
4339 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4340 CC="$am_aux_dir/compile $CC"
4344 ac_ext=cpp
4345 ac_cpp='$CXXCPP $CPPFLAGS'
4346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4349 if test -z "$CXX"; then
4350 if test -n "$CCC"; then
4351 CXX=$CCC
4352 else
4353 if test -n "$ac_tool_prefix"; then
4354 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if test "${ac_cv_prog_CXX+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if test -n "$CXX"; then
4364 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4377 done
4378 done
4379 IFS=$as_save_IFS
4383 CXX=$ac_cv_prog_CXX
4384 if test -n "$CXX"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4386 $as_echo "$CXX" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4393 test -n "$CXX" && break
4394 done
4396 if test -z "$CXX"; then
4397 ac_ct_CXX=$CXX
4398 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy $ac_prog; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -n "$ac_ct_CXX"; then
4408 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_prog_ac_ct_CXX="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4427 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4428 if test -n "$ac_ct_CXX"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4430 $as_echo "$ac_ct_CXX" >&6; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$ac_ct_CXX" && break
4438 done
4440 if test "x$ac_ct_CXX" = x; then
4441 CXX="g++"
4442 else
4443 case $cross_compiling:$ac_tool_warned in
4444 yes:)
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447 ac_tool_warned=yes ;;
4448 esac
4449 CXX=$ac_ct_CXX
4455 # Provide some information about the compiler.
4456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4457 set X $ac_compile
4458 ac_compiler=$2
4459 for ac_option in --version -v -V -qversion; do
4460 { { ac_try="$ac_compiler $ac_option >&5"
4461 case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466 $as_echo "$ac_try_echo"; } >&5
4467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4468 ac_status=$?
4469 if test -s conftest.err; then
4470 sed '10a\
4471 ... rest of stderr output deleted ...
4472 10q' conftest.err >conftest.er1
4473 cat conftest.er1 >&5
4474 rm -f conftest.er1 conftest.err
4476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }
4478 done
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4481 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4482 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4489 main ()
4491 #ifndef __GNUC__
4492 choke me
4493 #endif
4496 return 0;
4498 _ACEOF
4499 if ac_fn_cxx_try_compile "$LINENO"; then :
4500 ac_compiler_gnu=yes
4501 else
4502 ac_compiler_gnu=no
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4509 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4510 if test $ac_compiler_gnu = yes; then
4511 GXX=yes
4512 else
4513 GXX=
4515 ac_test_CXXFLAGS=${CXXFLAGS+set}
4516 ac_save_CXXFLAGS=$CXXFLAGS
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4518 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4519 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4523 ac_cxx_werror_flag=yes
4524 ac_cv_prog_cxx_g=no
4525 CXXFLAGS="-g"
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4530 main ()
4534 return 0;
4536 _ACEOF
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538 ac_cv_prog_cxx_g=yes
4539 else
4540 CXXFLAGS=""
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4545 main ()
4549 return 0;
4551 _ACEOF
4552 if ac_fn_cxx_try_compile "$LINENO"; then :
4554 else
4555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4556 CXXFLAGS="-g"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4561 main ()
4565 return 0;
4567 _ACEOF
4568 if ac_fn_cxx_try_compile "$LINENO"; then :
4569 ac_cv_prog_cxx_g=yes
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4579 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4580 if test "$ac_test_CXXFLAGS" = set; then
4581 CXXFLAGS=$ac_save_CXXFLAGS
4582 elif test $ac_cv_prog_cxx_g = yes; then
4583 if test "$GXX" = yes; then
4584 CXXFLAGS="-g -O2"
4585 else
4586 CXXFLAGS="-g"
4588 else
4589 if test "$GXX" = yes; then
4590 CXXFLAGS="-O2"
4591 else
4592 CXXFLAGS=
4595 ac_ext=c
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4606 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$GNATBIND"; then
4613 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4626 done
4627 done
4628 IFS=$as_save_IFS
4632 GNATBIND=$ac_cv_prog_GNATBIND
4633 if test -n "$GNATBIND"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4635 $as_echo "$GNATBIND" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4643 if test -z "$ac_cv_prog_GNATBIND"; then
4644 ac_ct_GNATBIND=$GNATBIND
4645 # Extract the first word of "gnatbind", so it can be a program name with args.
4646 set dummy gnatbind; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$ac_ct_GNATBIND"; then
4653 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4672 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4673 if test -n "$ac_ct_GNATBIND"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4675 $as_echo "$ac_ct_GNATBIND" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4681 if test "x$ac_ct_GNATBIND" = x; then
4682 GNATBIND="no"
4683 else
4684 case $cross_compiling:$ac_tool_warned in
4685 yes:)
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688 ac_tool_warned=yes ;;
4689 esac
4690 GNATBIND=$ac_ct_GNATBIND
4692 else
4693 GNATBIND="$ac_cv_prog_GNATBIND"
4696 if test -n "$ac_tool_prefix"; then
4697 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4698 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$GNATMAKE"; then
4705 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4718 done
4719 done
4720 IFS=$as_save_IFS
4724 GNATMAKE=$ac_cv_prog_GNATMAKE
4725 if test -n "$GNATMAKE"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4727 $as_echo "$GNATMAKE" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4735 if test -z "$ac_cv_prog_GNATMAKE"; then
4736 ac_ct_GNATMAKE=$GNATMAKE
4737 # Extract the first word of "gnatmake", so it can be a program name with args.
4738 set dummy gnatmake; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if test -n "$ac_ct_GNATMAKE"; then
4745 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4750 IFS=$as_save_IFS
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756 break 2
4758 done
4759 done
4760 IFS=$as_save_IFS
4764 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4765 if test -n "$ac_ct_GNATMAKE"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4767 $as_echo "$ac_ct_GNATMAKE" >&6; }
4768 else
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4773 if test "x$ac_ct_GNATMAKE" = x; then
4774 GNATMAKE="no"
4775 else
4776 case $cross_compiling:$ac_tool_warned in
4777 yes:)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780 ac_tool_warned=yes ;;
4781 esac
4782 GNATMAKE=$ac_ct_GNATMAKE
4784 else
4785 GNATMAKE="$ac_cv_prog_GNATMAKE"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4789 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4790 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 cat >conftest.adb <<EOF
4794 procedure conftest is begin null; end conftest;
4796 acx_cv_cc_gcc_supports_ada=no
4797 # There is a bug in old released versions of GCC which causes the
4798 # driver to exit successfully when the appropriate language module
4799 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4800 # Therefore we must check for the error message as well as an
4801 # unsuccessful exit.
4802 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4803 # given a .adb file, but produce no object file. So we must check
4804 # if an object file was really produced to guard against this.
4805 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4806 if test x"$errors" = x && test -f conftest.$ac_objext; then
4807 acx_cv_cc_gcc_supports_ada=yes
4809 rm -f conftest.*
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4812 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4814 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4815 have_gnat=yes
4816 else
4817 have_gnat=no
4821 # autoconf is lame and doesn't give us any substitution variable for this.
4822 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4823 NO_MINUS_C_MINUS_O=yes
4824 else
4825 OUTPUT_OPTION='-o $@'
4830 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4831 # optimizations to be activated explicitly by the toplevel.
4832 case "$CC" in
4833 */prev-gcc/xgcc*) ;;
4834 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4835 esac
4838 # -------------------------
4839 # Check C compiler features
4840 # -------------------------
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4849 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4850 # On Suns, sometimes $CPP names a directory.
4851 if test -n "$CPP" && test -d "$CPP"; then
4852 CPP=
4854 if test -z "$CPP"; then
4855 if test "${ac_cv_prog_CPP+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 # Double quotes because CPP needs to be expanded
4859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4861 ac_preproc_ok=false
4862 for ac_c_preproc_warn_flag in '' yes
4864 # Use a header file that comes with gcc, so configuring glibc
4865 # with a fresh cross-compiler works.
4866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4867 # <limits.h> exists even on freestanding compilers.
4868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872 #ifdef __STDC__
4873 # include <limits.h>
4874 #else
4875 # include <assert.h>
4876 #endif
4877 Syntax error
4878 _ACEOF
4879 if ac_fn_c_try_cpp "$LINENO"; then :
4881 else
4882 # Broken: fails on valid input.
4883 continue
4885 rm -f conftest.err conftest.$ac_ext
4887 # OK, works on sane cases. Now check whether nonexistent headers
4888 # can be detected and how.
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 #include <ac_nonexistent.h>
4892 _ACEOF
4893 if ac_fn_c_try_cpp "$LINENO"; then :
4894 # Broken: success on invalid input.
4895 continue
4896 else
4897 # Passes both tests.
4898 ac_preproc_ok=:
4899 break
4901 rm -f conftest.err conftest.$ac_ext
4903 done
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.$ac_ext
4906 if $ac_preproc_ok; then :
4907 break
4910 done
4911 ac_cv_prog_CPP=$CPP
4914 CPP=$ac_cv_prog_CPP
4915 else
4916 ac_cv_prog_CPP=$CPP
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4919 $as_echo "$CPP" >&6; }
4920 ac_preproc_ok=false
4921 for ac_c_preproc_warn_flag in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #ifdef __STDC__
4932 # include <limits.h>
4933 #else
4934 # include <assert.h>
4935 #endif
4936 Syntax error
4937 _ACEOF
4938 if ac_fn_c_try_cpp "$LINENO"; then :
4940 else
4941 # Broken: fails on valid input.
4942 continue
4944 rm -f conftest.err conftest.$ac_ext
4946 # OK, works on sane cases. Now check whether nonexistent headers
4947 # can be detected and how.
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <ac_nonexistent.h>
4951 _ACEOF
4952 if ac_fn_c_try_cpp "$LINENO"; then :
4953 # Broken: success on invalid input.
4954 continue
4955 else
4956 # Passes both tests.
4957 ac_preproc_ok=:
4958 break
4960 rm -f conftest.err conftest.$ac_ext
4962 done
4963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964 rm -f conftest.err conftest.$ac_ext
4965 if $ac_preproc_ok; then :
4967 else
4968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4970 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4971 See \`config.log' for more details." "$LINENO" 5; }
4974 ac_ext=c
4975 ac_cpp='$CPP $CPPFLAGS'
4976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4982 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4983 if test "${ac_cv_path_GREP+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -z "$GREP"; then
4987 ac_path_GREP_found=false
4988 # Loop through the user's path and test for each of PROGNAME-LIST
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_prog in grep ggrep; do
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4997 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4998 # Check for GNU ac_path_GREP and select it if it is found.
4999 # Check for GNU $ac_path_GREP
5000 case `"$ac_path_GREP" --version 2>&1` in
5001 *GNU*)
5002 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5004 ac_count=0
5005 $as_echo_n 0123456789 >"conftest.in"
5006 while :
5008 cat "conftest.in" "conftest.in" >"conftest.tmp"
5009 mv "conftest.tmp" "conftest.in"
5010 cp "conftest.in" "conftest.nl"
5011 $as_echo 'GREP' >> "conftest.nl"
5012 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014 as_fn_arith $ac_count + 1 && ac_count=$as_val
5015 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5016 # Best one so far, save it but keep looking for a better one
5017 ac_cv_path_GREP="$ac_path_GREP"
5018 ac_path_GREP_max=$ac_count
5020 # 10*(2^10) chars as input seems more than enough
5021 test $ac_count -gt 10 && break
5022 done
5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024 esac
5026 $ac_path_GREP_found && break 3
5027 done
5028 done
5029 done
5030 IFS=$as_save_IFS
5031 if test -z "$ac_cv_path_GREP"; then
5032 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 else
5035 ac_cv_path_GREP=$GREP
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5040 $as_echo "$ac_cv_path_GREP" >&6; }
5041 GREP="$ac_cv_path_GREP"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5045 $as_echo_n "checking for egrep... " >&6; }
5046 if test "${ac_cv_path_EGREP+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5050 then ac_cv_path_EGREP="$GREP -E"
5051 else
5052 if test -z "$EGREP"; then
5053 ac_path_EGREP_found=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_prog in egrep; do
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5063 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5064 # Check for GNU ac_path_EGREP and select it if it is found.
5065 # Check for GNU $ac_path_EGREP
5066 case `"$ac_path_EGREP" --version 2>&1` in
5067 *GNU*)
5068 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5070 ac_count=0
5071 $as_echo_n 0123456789 >"conftest.in"
5072 while :
5074 cat "conftest.in" "conftest.in" >"conftest.tmp"
5075 mv "conftest.tmp" "conftest.in"
5076 cp "conftest.in" "conftest.nl"
5077 $as_echo 'EGREP' >> "conftest.nl"
5078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080 as_fn_arith $ac_count + 1 && ac_count=$as_val
5081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5082 # Best one so far, save it but keep looking for a better one
5083 ac_cv_path_EGREP="$ac_path_EGREP"
5084 ac_path_EGREP_max=$ac_count
5086 # 10*(2^10) chars as input seems more than enough
5087 test $ac_count -gt 10 && break
5088 done
5089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 esac
5092 $ac_path_EGREP_found && break 3
5093 done
5094 done
5095 done
5096 IFS=$as_save_IFS
5097 if test -z "$ac_cv_path_EGREP"; then
5098 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5100 else
5101 ac_cv_path_EGREP=$EGREP
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5107 $as_echo "$ac_cv_path_EGREP" >&6; }
5108 EGREP="$ac_cv_path_EGREP"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5112 $as_echo_n "checking for ANSI C header files... " >&6; }
5113 if test "${ac_cv_header_stdc+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #include <stdlib.h>
5119 #include <stdarg.h>
5120 #include <string.h>
5121 #include <float.h>
5124 main ()
5128 return 0;
5130 _ACEOF
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 ac_cv_header_stdc=yes
5133 else
5134 ac_cv_header_stdc=no
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 if test $ac_cv_header_stdc = yes; then
5139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142 #include <string.h>
5144 _ACEOF
5145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5146 $EGREP "memchr" >/dev/null 2>&1; then :
5148 else
5149 ac_cv_header_stdc=no
5151 rm -f conftest*
5155 if test $ac_cv_header_stdc = yes; then
5156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <stdlib.h>
5161 _ACEOF
5162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5163 $EGREP "free" >/dev/null 2>&1; then :
5165 else
5166 ac_cv_header_stdc=no
5168 rm -f conftest*
5172 if test $ac_cv_header_stdc = yes; then
5173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5174 if test "$cross_compiling" = yes; then :
5176 else
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <ctype.h>
5180 #include <stdlib.h>
5181 #if ((' ' & 0x0FF) == 0x020)
5182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5184 #else
5185 # define ISLOWER(c) \
5186 (('a' <= (c) && (c) <= 'i') \
5187 || ('j' <= (c) && (c) <= 'r') \
5188 || ('s' <= (c) && (c) <= 'z'))
5189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5190 #endif
5192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5194 main ()
5196 int i;
5197 for (i = 0; i < 256; i++)
5198 if (XOR (islower (i), ISLOWER (i))
5199 || toupper (i) != TOUPPER (i))
5200 return 2;
5201 return 0;
5203 _ACEOF
5204 if ac_fn_c_try_run "$LINENO"; then :
5206 else
5207 ac_cv_header_stdc=no
5209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5210 conftest.$ac_objext conftest.beam conftest.$ac_ext
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5216 $as_echo "$ac_cv_header_stdc" >&6; }
5217 if test $ac_cv_header_stdc = yes; then
5219 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5224 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5225 inttypes.h stdint.h unistd.h
5226 do :
5227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5228 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5230 eval as_val=\$$as_ac_Header
5231 if test "x$as_val" = x""yes; then :
5232 cat >>confdefs.h <<_ACEOF
5233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5234 _ACEOF
5238 done
5242 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5243 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5244 MINIX=yes
5245 else
5246 MINIX=
5250 if test "$MINIX" = yes; then
5252 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5255 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5258 $as_echo "#define _MINIX 1" >>confdefs.h
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5264 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5265 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5271 # define __EXTENSIONS__ 1
5272 $ac_includes_default
5274 main ()
5278 return 0;
5280 _ACEOF
5281 if ac_fn_c_try_compile "$LINENO"; then :
5282 ac_cv_safe_to_define___extensions__=yes
5283 else
5284 ac_cv_safe_to_define___extensions__=no
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5289 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5290 test $ac_cv_safe_to_define___extensions__ = yes &&
5291 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5293 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5295 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5297 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5299 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5302 ac_ext=c
5303 ac_cpp='$CPP $CPPFLAGS'
5304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5308 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5309 # On Suns, sometimes $CPP names a directory.
5310 if test -n "$CPP" && test -d "$CPP"; then
5311 CPP=
5313 if test -z "$CPP"; then
5314 if test "${ac_cv_prog_CPP+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 # Double quotes because CPP needs to be expanded
5318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5320 ac_preproc_ok=false
5321 for ac_c_preproc_warn_flag in '' yes
5323 # Use a header file that comes with gcc, so configuring glibc
5324 # with a fresh cross-compiler works.
5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 # <limits.h> exists even on freestanding compilers.
5327 # On the NeXT, cc -E runs the code through the compiler's parser,
5328 # not just through cpp. "Syntax error" is here to catch this case.
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #ifdef __STDC__
5332 # include <limits.h>
5333 #else
5334 # include <assert.h>
5335 #endif
5336 Syntax error
5337 _ACEOF
5338 if ac_fn_c_try_cpp "$LINENO"; then :
5340 else
5341 # Broken: fails on valid input.
5342 continue
5344 rm -f conftest.err conftest.$ac_ext
5346 # OK, works on sane cases. Now check whether nonexistent headers
5347 # can be detected and how.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #include <ac_nonexistent.h>
5351 _ACEOF
5352 if ac_fn_c_try_cpp "$LINENO"; then :
5353 # Broken: success on invalid input.
5354 continue
5355 else
5356 # Passes both tests.
5357 ac_preproc_ok=:
5358 break
5360 rm -f conftest.err conftest.$ac_ext
5362 done
5363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5364 rm -f conftest.err conftest.$ac_ext
5365 if $ac_preproc_ok; then :
5366 break
5369 done
5370 ac_cv_prog_CPP=$CPP
5373 CPP=$ac_cv_prog_CPP
5374 else
5375 ac_cv_prog_CPP=$CPP
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5378 $as_echo "$CPP" >&6; }
5379 ac_preproc_ok=false
5380 for ac_c_preproc_warn_flag in '' yes
5382 # Use a header file that comes with gcc, so configuring glibc
5383 # with a fresh cross-compiler works.
5384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5385 # <limits.h> exists even on freestanding compilers.
5386 # On the NeXT, cc -E runs the code through the compiler's parser,
5387 # not just through cpp. "Syntax error" is here to catch this case.
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 #ifdef __STDC__
5391 # include <limits.h>
5392 #else
5393 # include <assert.h>
5394 #endif
5395 Syntax error
5396 _ACEOF
5397 if ac_fn_c_try_cpp "$LINENO"; then :
5399 else
5400 # Broken: fails on valid input.
5401 continue
5403 rm -f conftest.err conftest.$ac_ext
5405 # OK, works on sane cases. Now check whether nonexistent headers
5406 # can be detected and how.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <ac_nonexistent.h>
5410 _ACEOF
5411 if ac_fn_c_try_cpp "$LINENO"; then :
5412 # Broken: success on invalid input.
5413 continue
5414 else
5415 # Passes both tests.
5416 ac_preproc_ok=:
5417 break
5419 rm -f conftest.err conftest.$ac_ext
5421 done
5422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5423 rm -f conftest.err conftest.$ac_ext
5424 if $ac_preproc_ok; then :
5426 else
5427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5429 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5430 See \`config.log' for more details." "$LINENO" 5; }
5433 ac_ext=c
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5440 $as_echo_n "checking for inline... " >&6; }
5441 if test "${ac_cv_c_inline+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 ac_cv_c_inline=no
5445 for ac_kw in inline __inline__ __inline; do
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #ifndef __cplusplus
5449 typedef int foo_t;
5450 static $ac_kw foo_t static_foo () {return 0; }
5451 $ac_kw foo_t foo () {return 0; }
5452 #endif
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 ac_cv_c_inline=$ac_kw
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 test "$ac_cv_c_inline" != no && break
5460 done
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5464 $as_echo "$ac_cv_c_inline" >&6; }
5466 case $ac_cv_c_inline in
5467 inline | yes) ;;
5469 case $ac_cv_c_inline in
5470 no) ac_val=;;
5471 *) ac_val=$ac_cv_c_inline;;
5472 esac
5473 cat >>confdefs.h <<_ACEOF
5474 #ifndef __cplusplus
5475 #define inline $ac_val
5476 #endif
5477 _ACEOF
5479 esac
5482 # sizeof(char) is 1 by definition.
5483 # The cast to long int works around a bug in the HP C Compiler
5484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5486 # This bug is HP SR number 8606223364.
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5488 $as_echo_n "checking size of void *... " >&6; }
5489 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5494 else
5495 if test "$ac_cv_type_void_p" = yes; then
5496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5498 { as_fn_set_status 77
5499 as_fn_error "cannot compute sizeof (void *)
5500 See \`config.log' for more details." "$LINENO" 5; }; }
5501 else
5502 ac_cv_sizeof_void_p=0
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5508 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5512 cat >>confdefs.h <<_ACEOF
5513 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5514 _ACEOF
5517 # The cast to long int works around a bug in the HP C Compiler
5518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5520 # This bug is HP SR number 8606223364.
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5522 $as_echo_n "checking size of short... " >&6; }
5523 if test "${ac_cv_sizeof_short+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5528 else
5529 if test "$ac_cv_type_short" = yes; then
5530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5532 { as_fn_set_status 77
5533 as_fn_error "cannot compute sizeof (short)
5534 See \`config.log' for more details." "$LINENO" 5; }; }
5535 else
5536 ac_cv_sizeof_short=0
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5542 $as_echo "$ac_cv_sizeof_short" >&6; }
5546 cat >>confdefs.h <<_ACEOF
5547 #define SIZEOF_SHORT $ac_cv_sizeof_short
5548 _ACEOF
5551 # The cast to long int works around a bug in the HP C Compiler
5552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5554 # This bug is HP SR number 8606223364.
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5556 $as_echo_n "checking size of int... " >&6; }
5557 if test "${ac_cv_sizeof_int+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5562 else
5563 if test "$ac_cv_type_int" = yes; then
5564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5566 { as_fn_set_status 77
5567 as_fn_error "cannot compute sizeof (int)
5568 See \`config.log' for more details." "$LINENO" 5; }; }
5569 else
5570 ac_cv_sizeof_int=0
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5576 $as_echo "$ac_cv_sizeof_int" >&6; }
5580 cat >>confdefs.h <<_ACEOF
5581 #define SIZEOF_INT $ac_cv_sizeof_int
5582 _ACEOF
5585 # The cast to long int works around a bug in the HP C Compiler
5586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5588 # This bug is HP SR number 8606223364.
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5590 $as_echo_n "checking size of long... " >&6; }
5591 if test "${ac_cv_sizeof_long+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5596 else
5597 if test "$ac_cv_type_long" = yes; then
5598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5600 { as_fn_set_status 77
5601 as_fn_error "cannot compute sizeof (long)
5602 See \`config.log' for more details." "$LINENO" 5; }; }
5603 else
5604 ac_cv_sizeof_long=0
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5610 $as_echo "$ac_cv_sizeof_long" >&6; }
5614 cat >>confdefs.h <<_ACEOF
5615 #define SIZEOF_LONG $ac_cv_sizeof_long
5616 _ACEOF
5619 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5620 if test "x$ac_cv_type_long_long" = x""yes; then :
5622 cat >>confdefs.h <<_ACEOF
5623 #define HAVE_LONG_LONG 1
5624 _ACEOF
5626 # The cast to long int works around a bug in the HP C Compiler
5627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5629 # This bug is HP SR number 8606223364.
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5631 $as_echo_n "checking size of long long... " >&6; }
5632 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5637 else
5638 if test "$ac_cv_type_long_long" = yes; then
5639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5641 { as_fn_set_status 77
5642 as_fn_error "cannot compute sizeof (long long)
5643 See \`config.log' for more details." "$LINENO" 5; }; }
5644 else
5645 ac_cv_sizeof_long_long=0
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5651 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5655 cat >>confdefs.h <<_ACEOF
5656 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5657 _ACEOF
5662 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5663 if test "x$ac_cv_type___int64" = x""yes; then :
5665 cat >>confdefs.h <<_ACEOF
5666 #define HAVE___INT64 1
5667 _ACEOF
5669 # The cast to long int works around a bug in the HP C Compiler
5670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5672 # This bug is HP SR number 8606223364.
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5674 $as_echo_n "checking size of __int64... " >&6; }
5675 if test "${ac_cv_sizeof___int64+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5680 else
5681 if test "$ac_cv_type___int64" = yes; then
5682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5684 { as_fn_set_status 77
5685 as_fn_error "cannot compute sizeof (__int64)
5686 See \`config.log' for more details." "$LINENO" 5; }; }
5687 else
5688 ac_cv_sizeof___int64=0
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5694 $as_echo "$ac_cv_sizeof___int64" >&6; }
5698 cat >>confdefs.h <<_ACEOF
5699 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5700 _ACEOF
5705 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5706 case $ac_cv_c_int8_t in #(
5707 no|yes) ;; #(
5710 cat >>confdefs.h <<_ACEOF
5711 #define int8_t $ac_cv_c_int8_t
5712 _ACEOF
5714 esac
5716 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5717 case $ac_cv_c_int16_t in #(
5718 no|yes) ;; #(
5721 cat >>confdefs.h <<_ACEOF
5722 #define int16_t $ac_cv_c_int16_t
5723 _ACEOF
5725 esac
5727 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5728 case $ac_cv_c_int32_t in #(
5729 no|yes) ;; #(
5732 cat >>confdefs.h <<_ACEOF
5733 #define int32_t $ac_cv_c_int32_t
5734 _ACEOF
5736 esac
5738 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5739 case $ac_cv_c_int64_t in #(
5740 no|yes) ;; #(
5743 cat >>confdefs.h <<_ACEOF
5744 #define int64_t $ac_cv_c_int64_t
5745 _ACEOF
5747 esac
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5751 $as_echo_n "checking for long long int... " >&6; }
5752 if test "${ac_cv_type_long_long_int+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5758 /* For now, do not test the preprocessor; as of 2007 there are too many
5759 implementations with broken preprocessors. Perhaps this can
5760 be revisited in 2012. In the meantime, code should not expect
5761 #if to work with literals wider than 32 bits. */
5762 /* Test literals. */
5763 long long int ll = 9223372036854775807ll;
5764 long long int nll = -9223372036854775807LL;
5765 unsigned long long int ull = 18446744073709551615ULL;
5766 /* Test constant expressions. */
5767 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5768 ? 1 : -1)];
5769 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5770 ? 1 : -1)];
5771 int i = 63;
5773 main ()
5775 /* Test availability of runtime routines for shift and division. */
5776 long long int llmax = 9223372036854775807ll;
5777 unsigned long long int ullmax = 18446744073709551615ull;
5778 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5779 | (llmax / ll) | (llmax % ll)
5780 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5781 | (ullmax / ull) | (ullmax % ull));
5783 return 0;
5786 _ACEOF
5787 if ac_fn_c_try_link "$LINENO"; then :
5788 if test "$cross_compiling" = yes; then :
5789 ac_cv_type_long_long_int=yes
5790 else
5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5793 #include <limits.h>
5794 #ifndef LLONG_MAX
5795 # define HALF \
5796 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5797 # define LLONG_MAX (HALF - 1 + HALF)
5798 #endif
5800 main ()
5802 long long int n = 1;
5803 int i;
5804 for (i = 0; ; i++)
5806 long long int m = n << i;
5807 if (m >> i != n)
5808 return 1;
5809 if (LLONG_MAX / 2 < m)
5810 break;
5812 return 0;
5814 return 0;
5816 _ACEOF
5817 if ac_fn_c_try_run "$LINENO"; then :
5818 ac_cv_type_long_long_int=yes
5819 else
5820 ac_cv_type_long_long_int=no
5822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5823 conftest.$ac_objext conftest.beam conftest.$ac_ext
5826 else
5827 ac_cv_type_long_long_int=no
5829 rm -f core conftest.err conftest.$ac_objext \
5830 conftest$ac_exeext conftest.$ac_ext
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5833 $as_echo "$ac_cv_type_long_long_int" >&6; }
5834 if test $ac_cv_type_long_long_int = yes; then
5836 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5842 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5843 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5845 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5847 else
5848 test $ac_cv_type_long_long_int = yes \
5849 && ac_type='long long int' \
5850 || ac_type='long int'
5852 cat >>confdefs.h <<_ACEOF
5853 #define intmax_t $ac_type
5854 _ACEOF
5860 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5861 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5863 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5865 else
5866 for ac_type in 'int' 'long int' 'long long int'; do
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 $ac_includes_default
5871 main ()
5873 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5874 test_array [0] = 0
5877 return 0;
5879 _ACEOF
5880 if ac_fn_c_try_compile "$LINENO"; then :
5882 cat >>confdefs.h <<_ACEOF
5883 #define intptr_t $ac_type
5884 _ACEOF
5886 ac_type=
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 test -z "$ac_type" && break
5890 done
5894 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5895 case $ac_cv_c_uint8_t in #(
5896 no|yes) ;; #(
5899 $as_echo "#define _UINT8_T 1" >>confdefs.h
5902 cat >>confdefs.h <<_ACEOF
5903 #define uint8_t $ac_cv_c_uint8_t
5904 _ACEOF
5906 esac
5908 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5909 case $ac_cv_c_uint16_t in #(
5910 no|yes) ;; #(
5914 cat >>confdefs.h <<_ACEOF
5915 #define uint16_t $ac_cv_c_uint16_t
5916 _ACEOF
5918 esac
5920 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5921 case $ac_cv_c_uint32_t in #(
5922 no|yes) ;; #(
5925 $as_echo "#define _UINT32_T 1" >>confdefs.h
5928 cat >>confdefs.h <<_ACEOF
5929 #define uint32_t $ac_cv_c_uint32_t
5930 _ACEOF
5932 esac
5934 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5935 case $ac_cv_c_uint64_t in #(
5936 no|yes) ;; #(
5939 $as_echo "#define _UINT64_T 1" >>confdefs.h
5942 cat >>confdefs.h <<_ACEOF
5943 #define uint64_t $ac_cv_c_uint64_t
5944 _ACEOF
5946 esac
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5950 $as_echo_n "checking for unsigned long long int... " >&6; }
5951 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5957 /* For now, do not test the preprocessor; as of 2007 there are too many
5958 implementations with broken preprocessors. Perhaps this can
5959 be revisited in 2012. In the meantime, code should not expect
5960 #if to work with literals wider than 32 bits. */
5961 /* Test literals. */
5962 long long int ll = 9223372036854775807ll;
5963 long long int nll = -9223372036854775807LL;
5964 unsigned long long int ull = 18446744073709551615ULL;
5965 /* Test constant expressions. */
5966 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5967 ? 1 : -1)];
5968 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5969 ? 1 : -1)];
5970 int i = 63;
5972 main ()
5974 /* Test availability of runtime routines for shift and division. */
5975 long long int llmax = 9223372036854775807ll;
5976 unsigned long long int ullmax = 18446744073709551615ull;
5977 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5978 | (llmax / ll) | (llmax % ll)
5979 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5980 | (ullmax / ull) | (ullmax % ull));
5982 return 0;
5985 _ACEOF
5986 if ac_fn_c_try_link "$LINENO"; then :
5987 ac_cv_type_unsigned_long_long_int=yes
5988 else
5989 ac_cv_type_unsigned_long_long_int=no
5991 rm -f core conftest.err conftest.$ac_objext \
5992 conftest$ac_exeext conftest.$ac_ext
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5995 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5996 if test $ac_cv_type_unsigned_long_long_int = yes; then
5998 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6004 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6005 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6007 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6009 else
6010 test $ac_cv_type_unsigned_long_long_int = yes \
6011 && ac_type='unsigned long long int' \
6012 || ac_type='unsigned long int'
6014 cat >>confdefs.h <<_ACEOF
6015 #define uintmax_t $ac_type
6016 _ACEOF
6022 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6023 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6025 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6027 else
6028 for ac_type in 'unsigned int' 'unsigned long int' \
6029 'unsigned long long int'; do
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 $ac_includes_default
6034 main ()
6036 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6037 test_array [0] = 0
6040 return 0;
6042 _ACEOF
6043 if ac_fn_c_try_compile "$LINENO"; then :
6045 cat >>confdefs.h <<_ACEOF
6046 #define uintptr_t $ac_type
6047 _ACEOF
6049 ac_type=
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 test -z "$ac_type" && break
6053 done
6070 # ---------------------
6071 # Warnings and checking
6072 # ---------------------
6074 # Check $CC warning features (if it's GCC).
6075 # We want to use -pedantic, but we don't want warnings about
6076 # * 'long long'
6077 # * variadic macros
6078 # * overlong strings
6079 # So, we only use -pedantic if we can disable those warnings.
6081 loose_warn=
6082 save_CFLAGS="$CFLAGS"
6083 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6084 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6087 $as_echo_n "checking whether $CC supports $option... " >&6; }
6088 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6089 $as_echo_n "(cached) " >&6
6090 else
6091 CFLAGS="$option"
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6096 main ()
6100 return 0;
6102 _ACEOF
6103 if ac_fn_c_try_compile "$LINENO"; then :
6104 eval "$as_acx_Woption=yes"
6105 else
6106 eval "$as_acx_Woption=no"
6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 eval ac_res=\$$as_acx_Woption
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6113 $as_echo "$ac_res" >&6; }
6114 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6115 loose_warn="$loose_warn${loose_warn:+ }$option"
6117 done
6118 CFLAGS="$save_CFLAGS"
6120 c_loose_warn=
6121 save_CFLAGS="$CFLAGS"
6122 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6123 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6126 $as_echo_n "checking whether $CC supports $option... " >&6; }
6127 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 CFLAGS="$option"
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6135 main ()
6139 return 0;
6141 _ACEOF
6142 if ac_fn_c_try_compile "$LINENO"; then :
6143 eval "$as_acx_Woption=yes"
6144 else
6145 eval "$as_acx_Woption=no"
6147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 eval ac_res=\$$as_acx_Woption
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6152 $as_echo "$ac_res" >&6; }
6153 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6154 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6156 done
6157 CFLAGS="$save_CFLAGS"
6159 strict_warn=
6160 save_CFLAGS="$CFLAGS"
6161 for option in -Wmissing-format-attribute; do
6162 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6165 $as_echo_n "checking whether $CC supports $option... " >&6; }
6166 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 CFLAGS="$option"
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6174 main ()
6178 return 0;
6180 _ACEOF
6181 if ac_fn_c_try_compile "$LINENO"; then :
6182 eval "$as_acx_Woption=yes"
6183 else
6184 eval "$as_acx_Woption=no"
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189 eval ac_res=\$$as_acx_Woption
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6191 $as_echo "$ac_res" >&6; }
6192 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6193 strict_warn="$strict_warn${strict_warn:+ }$option"
6195 done
6196 CFLAGS="$save_CFLAGS"
6198 c_strict_warn=
6199 save_CFLAGS="$CFLAGS"
6200 for option in -Wold-style-definition -Wc++-compat; do
6201 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6204 $as_echo_n "checking whether $CC supports $option... " >&6; }
6205 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 CFLAGS="$option"
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6213 main ()
6217 return 0;
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"; then :
6221 eval "$as_acx_Woption=yes"
6222 else
6223 eval "$as_acx_Woption=no"
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 eval ac_res=\$$as_acx_Woption
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6230 $as_echo "$ac_res" >&6; }
6231 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6232 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6234 done
6235 CFLAGS="$save_CFLAGS"
6237 if test "$GCC" = yes; then :
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6239 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6240 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6242 else
6243 save_CFLAGS="$CFLAGS"
6244 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6249 main ()
6253 return 0;
6255 _ACEOF
6256 if ac_fn_c_try_compile "$LINENO"; then :
6257 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6258 else
6259 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 CFLAGS="$save_CFLAGS"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6265 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6266 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6267 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6272 # Check whether --enable-werror-always was given.
6273 if test "${enable_werror_always+set}" = set; then :
6274 enableval=$enable_werror_always;
6275 else
6276 enable_werror_always=no
6279 if test $enable_werror_always = yes; then :
6280 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6285 # The above macros do nothing if the compiler is not GCC. However, the
6286 # Makefile has more goo to add other flags, so these variables are used
6287 # to enable warnings only for GCC.
6288 warn_cflags=
6289 warn_cxxflags=
6290 if test "x$GCC" = "xyes"; then
6291 warn_cflags='$(GCC_WARN_CFLAGS)'
6292 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6297 # Enable expensive internal checks
6298 is_release=
6299 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6300 is_release=yes
6303 # Check whether --enable-checking was given.
6304 if test "${enable_checking+set}" = set; then :
6305 enableval=$enable_checking; ac_checking_flags="${enableval}"
6306 else
6308 # Determine the default checks.
6309 if test x$is_release = x ; then
6310 ac_checking_flags=yes
6311 else
6312 ac_checking_flags=release
6316 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6317 for check in release $ac_checking_flags
6319 case $check in
6320 # these set all the flags to specific states
6321 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6322 ac_fold_checking= ; ac_gc_checking=1 ;
6323 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6324 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6325 ac_tree_checking=1 ; ac_valgrind_checking= ;
6326 ac_types_checking=1 ;;
6327 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6328 ac_fold_checking= ; ac_gc_checking= ;
6329 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6330 ac_rtlflag_checking= ; ac_runtime_checking= ;
6331 ac_tree_checking= ; ac_valgrind_checking= ;
6332 ac_types_checking= ;;
6333 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6334 ac_fold_checking=1 ; ac_gc_checking=1 ;
6335 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6336 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6337 ac_tree_checking=1 ; ac_valgrind_checking= ;
6338 ac_types_checking=1 ;;
6339 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6340 ac_fold_checking= ; ac_gc_checking= ;
6341 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6342 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6343 ac_tree_checking= ; ac_valgrind_checking= ;
6344 ac_types_checking= ;;
6345 # these enable particular checks
6346 assert) ac_assert_checking=1 ;;
6347 df) ac_df_checking=1 ;;
6348 fold) ac_fold_checking=1 ;;
6349 gc) ac_gc_checking=1 ;;
6350 gcac) ac_gc_always_collect=1 ;;
6351 gimple) ac_gimple_checking=1 ;;
6352 misc) ac_checking=1 ;;
6353 rtl) ac_rtl_checking=1 ;;
6354 rtlflag) ac_rtlflag_checking=1 ;;
6355 runtime) ac_runtime_checking=1 ;;
6356 tree) ac_tree_checking=1 ;;
6357 types) ac_types_checking=1 ;;
6358 valgrind) ac_valgrind_checking=1 ;;
6359 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6360 esac
6361 done
6362 IFS="$ac_save_IFS"
6364 nocommon_flag=""
6365 if test x$ac_checking != x ; then
6367 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6369 nocommon_flag=-fno-common
6372 if test x$ac_df_checking != x ; then
6374 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6377 if test x$ac_assert_checking != x ; then
6379 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6382 if test x$ac_gimple_checking != x ; then
6384 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6388 if test x$ac_runtime_checking != x ; then
6390 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6393 if test x$ac_tree_checking != x ; then
6395 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6397 TREEBROWSER=tree-browser.o
6399 if test x$ac_types_checking != x ; then
6401 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6405 if test x$ac_rtl_checking != x ; then
6407 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6410 if test x$ac_rtlflag_checking != x ; then
6412 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6415 if test x$ac_gc_checking != x ; then
6417 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6420 if test x$ac_gc_always_collect != x ; then
6422 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6425 if test x$ac_fold_checking != x ; then
6427 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6430 valgrind_path_defines=
6431 valgrind_command=
6433 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6434 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6435 have_valgrind_h=yes
6436 else
6437 have_valgrind_h=no
6442 if test x$ac_valgrind_checking != x ; then
6443 # It is certainly possible that there's valgrind but no valgrind.h.
6444 # GCC relies on making annotations so we must have both.
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6446 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 #include <valgrind/memcheck.h>
6450 #ifndef VALGRIND_DISCARD
6451 #error VALGRIND_DISCARD not defined
6452 #endif
6453 _ACEOF
6454 if ac_fn_c_try_cpp "$LINENO"; then :
6455 gcc_cv_header_valgrind_memcheck_h=yes
6456 else
6457 gcc_cv_header_valgrind_memcheck_h=no
6459 rm -f conftest.err conftest.$ac_ext
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6461 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6463 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <memcheck.h>
6467 #ifndef VALGRIND_DISCARD
6468 #error VALGRIND_DISCARD not defined
6469 #endif
6470 _ACEOF
6471 if ac_fn_c_try_cpp "$LINENO"; then :
6472 gcc_cv_header_memcheck_h=yes
6473 else
6474 gcc_cv_header_memcheck_h=no
6476 rm -f conftest.err conftest.$ac_ext
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6478 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6480 # Prepare PATH_SEPARATOR.
6481 # The user is always right.
6482 if test "${PATH_SEPARATOR+set}" != set; then
6483 echo "#! /bin/sh" >conf$$.sh
6484 echo "exit 0" >>conf$$.sh
6485 chmod +x conf$$.sh
6486 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6487 PATH_SEPARATOR=';'
6488 else
6489 PATH_SEPARATOR=:
6491 rm -f conf$$.sh
6494 # Find out how to test for executable files. Don't use a zero-byte file,
6495 # as systems may use methods other than mode bits to determine executability.
6496 cat >conf$$.file <<_ASEOF
6497 #! /bin/sh
6498 exit 0
6499 _ASEOF
6500 chmod +x conf$$.file
6501 if test -x conf$$.file >/dev/null 2>&1; then
6502 ac_executable_p="test -x"
6503 else
6504 ac_executable_p="test -f"
6506 rm -f conf$$.file
6508 # Extract the first word of "valgrind", so it can be a program name with args.
6509 set dummy valgrind; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6513 $as_echo_n "(cached) " >&6
6514 else
6515 case "$valgrind_path" in
6516 [\\/]* | ?:[\\/]*)
6517 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6520 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6521 for ac_dir in $PATH; do
6522 IFS="$ac_save_IFS"
6523 test -z "$ac_dir" && ac_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6526 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6527 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6528 break 2
6531 done
6532 done
6533 IFS="$ac_save_IFS"
6535 esac
6537 valgrind_path="$ac_cv_path_valgrind_path"
6538 if test -n "$valgrind_path"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6540 $as_echo "$valgrind_path" >&6; }
6541 else
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6546 if test "x$valgrind_path" = "x" \
6547 || (test $have_valgrind_h = no \
6548 && test $gcc_cv_header_memcheck_h = no \
6549 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6550 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6552 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6553 valgrind_command="$valgrind_path -q"
6555 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6557 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6559 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6562 if test $gcc_cv_header_memcheck_h = yes; then
6564 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6571 # Enable code coverage collection
6572 # Check whether --enable-coverage was given.
6573 if test "${enable_coverage+set}" = set; then :
6574 enableval=$enable_coverage; case "${enableval}" in
6575 yes|noopt)
6576 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6578 opt)
6579 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6582 # a.k.a. --disable-coverage
6583 coverage_flags=""
6586 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6588 esac
6589 else
6590 coverage_flags=""
6595 # Check whether --enable-gather-detailed-mem-stats was given.
6596 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6597 enableval=$enable_gather_detailed_mem_stats;
6598 else
6599 enable_gather_detailed_mem_stats=no
6602 if test x$enable_gather_detailed_mem_stats = xyes ; then
6604 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6608 # -------------------------------
6609 # Miscenalleous configure options
6610 # -------------------------------
6612 # See if we are building gcc with C++.
6613 # Check whether --enable-build-with-cxx was given.
6614 if test "${enable_build_with_cxx+set}" = set; then :
6615 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6616 else
6617 ENABLE_BUILD_WITH_CXX=no
6622 # With stabs
6624 # Check whether --with-stabs was given.
6625 if test "${with_stabs+set}" = set; then :
6626 withval=$with_stabs; stabs="$with_stabs"
6627 else
6628 stabs=no
6632 # Determine whether or not multilibs are enabled.
6633 # Check whether --enable-multilib was given.
6634 if test "${enable_multilib+set}" = set; then :
6635 enableval=$enable_multilib;
6636 else
6637 enable_multilib=yes
6642 # Enable __cxa_atexit for C++.
6643 # Check whether --enable-__cxa_atexit was given.
6644 if test "${enable___cxa_atexit+set}" = set; then :
6645 enableval=$enable___cxa_atexit;
6649 # Enable C extension for decimal float if target supports it.
6650 # Check whether --enable-decimal-float was given.
6651 if test "${enable_decimal_float+set}" = set; then :
6652 enableval=$enable_decimal_float;
6653 case $enable_decimal_float in
6654 yes | no | bid | dpd) ;;
6655 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6656 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6657 esac
6659 else
6661 case $target in
6662 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6663 enable_decimal_float=yes
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6667 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6668 enable_decimal_float=no
6670 esac
6675 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6677 cat >>confdefs.h <<_ACEOF
6678 #define ENABLE_DECIMAL_FLOAT $dfp
6679 _ACEOF
6682 # x86's use BID format instead of DPD
6683 case x$enable_decimal_float in
6684 xyes)
6685 case $target in
6686 i?86*-*-linux* | x86_64*-*-linux*)
6687 enable_decimal_float=bid
6690 enable_decimal_float=dpd
6692 esac
6694 xno)
6695 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6696 # dependency on libdecnumber.
6697 enable_decimal_float=dpd
6699 esac
6702 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6704 cat >>confdefs.h <<_ACEOF
6705 #define ENABLE_DECIMAL_BID_FORMAT $bid
6706 _ACEOF
6709 # Enable C extension for fixed-point arithmetic.
6710 # Check whether --enable-fixed-point was given.
6711 if test "${enable_fixed_point+set}" = set; then :
6712 enableval=$enable_fixed_point;
6714 else
6716 case $target in
6717 mips*-*-*)
6718 case $host in
6719 mips*-sgi-irix*)
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6721 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6722 enable_fixed_point=no
6725 enable_fixed_point=yes
6727 esac
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6731 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6732 enable_fixed_point=no
6734 esac
6740 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6742 cat >>confdefs.h <<_ACEOF
6743 #define ENABLE_FIXED_POINT $fixedpoint
6744 _ACEOF
6747 # Enable threads
6748 # Pass with no value to take the default
6749 # Pass with a value to specify a thread package
6750 # Check whether --enable-threads was given.
6751 if test "${enable_threads+set}" = set; then :
6752 enableval=$enable_threads;
6753 else
6754 enable_threads=''
6758 # Check whether --enable-tls was given.
6759 if test "${enable_tls+set}" = set; then :
6760 enableval=$enable_tls;
6761 case $enable_tls in
6762 yes | no) ;;
6763 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6764 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6765 esac
6767 else
6768 enable_tls=''
6772 # Check whether --enable-objc-gc was given.
6773 if test "${enable_objc_gc+set}" = set; then :
6774 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6775 objc_boehm_gc=''
6776 else
6777 objc_boehm_gc=1
6779 else
6780 objc_boehm_gc=''
6785 # Check whether --with-dwarf2 was given.
6786 if test "${with_dwarf2+set}" = set; then :
6787 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6788 else
6789 dwarf2=no
6793 # Check whether --enable-shared was given.
6794 if test "${enable_shared+set}" = set; then :
6795 enableval=$enable_shared;
6796 case $enable_shared in
6797 yes | no) ;;
6799 enable_shared=no
6800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6801 for pkg in $enableval; do
6802 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6803 enable_shared=yes
6805 done
6806 IFS="$ac_save_ifs"
6808 esac
6810 else
6811 enable_shared=yes
6817 # Check whether --with-build-sysroot was given.
6818 if test "${with_build_sysroot+set}" = set; then :
6819 withval=$with_build_sysroot;
6824 # Check whether --with-sysroot was given.
6825 if test "${with_sysroot+set}" = set; then :
6826 withval=$with_sysroot;
6827 case ${with_sysroot} in
6828 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6829 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6830 esac
6832 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6833 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6835 if test "x$prefix" = xNONE; then
6836 test_prefix=/usr/local
6837 else
6838 test_prefix=$prefix
6840 if test "x$exec_prefix" = xNONE; then
6841 test_exec_prefix=$test_prefix
6842 else
6843 test_exec_prefix=$exec_prefix
6845 case ${TARGET_SYSTEM_ROOT} in
6846 "${test_prefix}"|"${test_prefix}/"*|\
6847 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6848 '${prefix}'|'${prefix}/'*|\
6849 '${exec_prefix}'|'${exec_prefix}/'*)
6850 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6851 TARGET_SYSTEM_ROOT_DEFINE="$t"
6853 esac
6855 else
6857 TARGET_SYSTEM_ROOT=
6858 TARGET_SYSTEM_ROOT_DEFINE=
6859 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6868 # Check whether --with-specs was given.
6869 if test "${with_specs+set}" = set; then :
6870 withval=$with_specs; CONFIGURE_SPECS=$withval
6871 else
6872 CONFIGURE_SPECS=
6878 # Build with intermodule optimisations
6879 # Check whether --enable-intermodule was given.
6880 if test "${enable_intermodule+set}" = set; then :
6881 enableval=$enable_intermodule; case ${enable_intermodule} in
6882 yes) onestep="-onestep";;
6883 *) onestep="";;
6884 esac
6885 else
6886 onestep=""
6893 # Check whether --with-pkgversion was given.
6894 if test "${with_pkgversion+set}" = set; then :
6895 withval=$with_pkgversion; case "$withval" in
6896 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6897 no) PKGVERSION= ;;
6898 *) PKGVERSION="($withval) " ;;
6899 esac
6900 else
6901 PKGVERSION="(GCC) "
6909 # Check whether --with-bugurl was given.
6910 if test "${with_bugurl+set}" = set; then :
6911 withval=$with_bugurl; case "$withval" in
6912 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6913 no) BUGURL=
6915 *) BUGURL="$withval"
6917 esac
6918 else
6919 BUGURL="http://gcc.gnu.org/bugs.html"
6923 case ${BUGURL} in
6925 REPORT_BUGS_TO=
6926 REPORT_BUGS_TEXI=
6929 REPORT_BUGS_TO="<$BUGURL>"
6930 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6932 esac;
6937 # Sanity check enable_languages in case someone does not run the toplevel
6938 # configure # script.
6939 # Check whether --enable-languages was given.
6940 if test "${enable_languages+set}" = set; then :
6941 enableval=$enable_languages; case ,${enable_languages}, in
6942 ,,|,yes,)
6943 # go safe -- we cannot be much sure without the toplevel
6944 # configure's
6945 # analysis of which target libs are present and usable
6946 enable_languages=c
6948 *,all,*)
6949 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6951 *,c,*)
6954 enable_languages=c,${enable_languages}
6956 esac
6957 else
6958 enable_languages=c
6963 # Check whether --with-multilib-list was given.
6964 if test "${with_multilib_list+set}" = set; then :
6965 withval=$with_multilib_list; :
6966 else
6967 with_multilib_list=default
6971 # -------------------------
6972 # Checks for other programs
6973 # -------------------------
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6977 set x ${MAKE-make}
6978 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6979 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 cat >conftest.make <<\_ACEOF
6983 SHELL = /bin/sh
6984 all:
6985 @echo '@@@%%%=$(MAKE)=@@@%%%'
6986 _ACEOF
6987 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6989 *@@@%%%=?*=@@@%%%*)
6990 eval ac_cv_prog_make_${ac_make}_set=yes;;
6992 eval ac_cv_prog_make_${ac_make}_set=no;;
6993 esac
6994 rm -f conftest.make
6996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6998 $as_echo "yes" >&6; }
6999 SET_MAKE=
7000 else
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7003 SET_MAKE="MAKE=${MAKE-make}"
7007 # Find some useful tools
7008 for ac_prog in gawk mawk nawk awk
7010 # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy $ac_prog; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_AWK+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7016 else
7017 if test -n "$AWK"; then
7018 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7023 IFS=$as_save_IFS
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_AWK="$ac_prog"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7029 break 2
7031 done
7032 done
7033 IFS=$as_save_IFS
7037 AWK=$ac_cv_prog_AWK
7038 if test -n "$AWK"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7040 $as_echo "$AWK" >&6; }
7041 else
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7047 test -n "$AWK" && break
7048 done
7050 # We need awk to create options.c and options.h.
7051 # Bail out if it's missing.
7052 case ${AWK} in
7053 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7054 esac
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7057 $as_echo_n "checking whether ln -s works... " >&6; }
7058 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 rm -f conftestdata_t
7062 echo >conftestdata_f
7063 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7064 then
7065 gcc_cv_prog_LN_S="ln -s"
7066 else
7067 if ln conftestdata_f conftestdata_t 2>/dev/null
7068 then
7069 gcc_cv_prog_LN_S=ln
7070 else
7071 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7072 then
7073 gcc_cv_prog_LN_S="cp -p"
7074 else
7075 gcc_cv_prog_LN_S=cp
7079 rm -f conftestdata_f conftestdata_t
7082 LN_S="$gcc_cv_prog_LN_S"
7083 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085 $as_echo "yes" >&6; }
7086 else
7087 if test "$gcc_cv_prog_LN_S" = "ln"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7089 $as_echo "no, using ln" >&6; }
7090 else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7092 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7097 $as_echo_n "checking whether ln works... " >&6; }
7098 if test "${acx_cv_prog_LN+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 rm -f conftestdata_t
7102 echo >conftestdata_f
7103 if ln conftestdata_f conftestdata_t 2>/dev/null
7104 then
7105 acx_cv_prog_LN=ln
7106 else
7107 acx_cv_prog_LN=no
7109 rm -f conftestdata_f conftestdata_t
7112 if test $acx_cv_prog_LN = no; then
7113 LN="$LN_S"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7115 $as_echo "no, using $LN" >&6; }
7116 else
7117 LN="$acx_cv_prog_LN"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7119 $as_echo "yes" >&6; }
7122 if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 if test -n "$RANLIB"; then
7131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7146 IFS=$as_save_IFS
7150 RANLIB=$ac_cv_prog_RANLIB
7151 if test -n "$RANLIB"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7153 $as_echo "$RANLIB" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7161 if test -z "$ac_cv_prog_RANLIB"; then
7162 ac_ct_RANLIB=$RANLIB
7163 # Extract the first word of "ranlib", so it can be a program name with args.
7164 set dummy ranlib; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 if test -n "$ac_ct_RANLIB"; then
7171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_ac_ct_RANLIB="ranlib"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7184 done
7185 done
7186 IFS=$as_save_IFS
7190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7191 if test -n "$ac_ct_RANLIB"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7193 $as_echo "$ac_ct_RANLIB" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7199 if test "x$ac_ct_RANLIB" = x; then
7200 RANLIB=":"
7201 else
7202 case $cross_compiling:$ac_tool_warned in
7203 yes:)
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206 ac_tool_warned=yes ;;
7207 esac
7208 RANLIB=$ac_ct_RANLIB
7210 else
7211 RANLIB="$ac_cv_prog_RANLIB"
7214 case "${host}" in
7215 *-*-darwin*)
7216 # By default, the Darwin ranlib will not treat common symbols as
7217 # definitions when building the archive table of contents. Other
7218 # ranlibs do that; pass an option to the Darwin ranlib that makes
7219 # it behave similarly.
7220 ranlib_flags="-c"
7223 ranlib_flags=""
7224 esac
7227 # Find a good install program. We prefer a C program (faster),
7228 # so one script is as good as another. But avoid the broken or
7229 # incompatible versions:
7230 # SysV /etc/install, /usr/sbin/install
7231 # SunOS /usr/etc/install
7232 # IRIX /sbin/install
7233 # AIX /bin/install
7234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7236 # ./install, which can be erroneously created by make from ./install.sh.
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7238 $as_echo_n "checking for a BSD compatible install... " >&6; }
7239 if test -z "$INSTALL"; then
7240 if test "${ac_cv_path_install+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7244 for ac_dir in $PATH; do
7245 # Account for people who put trailing slashes in PATH elements.
7246 case "$ac_dir/" in
7247 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7249 # OSF1 and SCO ODT 3.0 have their own names for install.
7250 for ac_prog in ginstall scoinst install; do
7251 if test -f $ac_dir/$ac_prog; then
7252 if test $ac_prog = install &&
7253 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7254 # AIX install. It has an incompatible calling convention.
7255 # OSF/1 installbsd also uses dspmsg, but is usable.
7257 else
7258 ac_cv_path_install="$ac_dir/$ac_prog -c"
7259 break 2
7262 done
7264 esac
7265 done
7266 IFS="$ac_save_IFS"
7269 if test "${ac_cv_path_install+set}" = set; then
7270 INSTALL="$ac_cv_path_install"
7271 else
7272 # As a last resort, use the slow shell script. We don't cache a
7273 # path for INSTALL within a source directory, because that will
7274 # break other packages using the cache if that directory is
7275 # removed, or if the path is relative.
7276 INSTALL="$ac_install_sh"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7280 $as_echo "$INSTALL" >&6; }
7282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7283 # It thinks the first close brace ends the variable substitution.
7284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7286 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7289 # See if cmp has --ignore-initial.
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7291 $as_echo_n "checking for cmp's capabilities... " >&6; }
7292 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 echo abfoo >t1
7296 echo cdfoo >t2
7297 gcc_cv_prog_cmp_skip=slowcompare
7298 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7299 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7301 else
7302 gcc_cv_prog_cmp_skip=gnucompare
7305 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7306 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7307 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7309 else
7310 gcc_cv_prog_cmp_skip=fastcompare
7314 rm t1 t2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7318 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7319 make_compare_target=$gcc_cv_prog_cmp_skip
7323 # See if we have the mktemp command.
7324 # Extract the first word of "mktemp", so it can be a program name with args.
7325 set dummy mktemp; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$have_mktemp_command"; then
7332 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_have_mktemp_command="yes"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7345 done
7346 done
7347 IFS=$as_save_IFS
7349 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7352 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7353 if test -n "$have_mktemp_command"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7355 $as_echo "$have_mktemp_command" >&6; }
7356 else
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7363 # See if makeinfo has been installed and is modern enough
7364 # that we can use it.
7366 # Extract the first word of "makeinfo", so it can be a program name with args.
7367 set dummy makeinfo; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 if test -n "$MAKEINFO"; then
7374 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_prog_MAKEINFO="makeinfo"
7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 break 2
7387 done
7388 done
7389 IFS=$as_save_IFS
7393 MAKEINFO=$ac_cv_prog_MAKEINFO
7394 if test -n "$MAKEINFO"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7396 $as_echo "$MAKEINFO" >&6; }
7397 else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7403 if test -n "$MAKEINFO"; then
7404 # Found it, now check the version.
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7406 $as_echo_n "checking for modern makeinfo... " >&6; }
7407 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7411 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7413 case $ac_prog_version in
7414 '') gcc_cv_prog_makeinfo_modern=no;;
7415 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7416 *) gcc_cv_prog_makeinfo_modern=no;;
7417 esac
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7421 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7422 else
7423 gcc_cv_prog_makeinfo_modern=no
7425 if test $gcc_cv_prog_makeinfo_modern = no; then
7426 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7429 if test $gcc_cv_prog_makeinfo_modern = no; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7431 *** Makeinfo is missing or too old.
7432 *** Info documentation will not be built." >&5
7433 $as_echo "$as_me: WARNING:
7434 *** Makeinfo is missing or too old.
7435 *** Info documentation will not be built." >&2;}
7436 BUILD_INFO=
7437 else
7438 BUILD_INFO=info
7442 # Is pod2man recent enough to regenerate manpages?
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7444 $as_echo_n "checking for recent Pod::Man... " >&6; }
7445 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7447 $as_echo "yes" >&6; }
7448 GENERATED_MANPAGES=generated-manpages
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 GENERATED_MANPAGES=
7456 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7458 # How about lex?
7459 for ac_prog in flex
7461 # Extract the first word of "$ac_prog", so it can be a program name with args.
7462 set dummy $ac_prog; 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_FLEX+set}" = set; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 if test -n "$FLEX"; then
7469 ac_cv_prog_FLEX="$FLEX" # 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_FLEX="$ac_prog"
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 FLEX=$ac_cv_prog_FLEX
7489 if test -n "$FLEX"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7491 $as_echo "$FLEX" >&6; }
7492 else
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7498 test -n "$FLEX" && break
7499 done
7500 test -n "$FLEX" || FLEX="$MISSING flex"
7503 # Bison?
7504 for ac_prog in bison
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_BISON+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 if test -n "$BISON"; then
7514 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_BISON="$ac_prog"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7529 IFS=$as_save_IFS
7533 BISON=$ac_cv_prog_BISON
7534 if test -n "$BISON"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7536 $as_echo "$BISON" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7543 test -n "$BISON" && break
7544 done
7545 test -n "$BISON" || BISON="$MISSING bison"
7548 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7549 # check for build == host before using them.
7551 # NM
7552 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7553 && test -d ../binutils ; then
7554 NM='${objdir}/../binutils/nm-new'
7555 else
7556 # Extract the first word of "nm", so it can be a program name with args.
7557 set dummy nm; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if test "${ac_cv_prog_NM+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 if test -n "$NM"; then
7564 ac_cv_prog_NM="$NM" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_prog_NM="nm"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7577 done
7578 done
7579 IFS=$as_save_IFS
7581 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7584 NM=$ac_cv_prog_NM
7585 if test -n "$NM"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7587 $as_echo "$NM" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7596 # AR
7597 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7598 && test -d ../binutils ; then
7599 AR='${objdir}/../binutils/ar'
7600 else
7601 # Extract the first word of "ar", so it can be a program name with args.
7602 set dummy ar; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_AR+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 if test -n "$AR"; then
7609 ac_cv_prog_AR="$AR" # Let the user override the test.
7610 else
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612 for as_dir in $PATH
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_AR="ar"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7622 done
7623 done
7624 IFS=$as_save_IFS
7626 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7629 AR=$ac_cv_prog_AR
7630 if test -n "$AR"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7632 $as_echo "$AR" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7642 # --------------------
7643 # Checks for C headers
7644 # --------------------
7646 # Need to reject headers which give warnings, so that the -Werror bootstrap
7647 # works later. *sigh* This needs to come before all header checks.
7649 ac_c_preproc_warn_flag=yes
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7652 $as_echo_n "checking for ANSI C header files... " >&6; }
7653 if test "${ac_cv_header_stdc+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #include <stdlib.h>
7659 #include <stdarg.h>
7660 #include <string.h>
7661 #include <float.h>
7664 main ()
7668 return 0;
7670 _ACEOF
7671 if ac_fn_c_try_compile "$LINENO"; then :
7672 ac_cv_header_stdc=yes
7673 else
7674 ac_cv_header_stdc=no
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678 if test $ac_cv_header_stdc = yes; then
7679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #include <string.h>
7684 _ACEOF
7685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7686 $EGREP "memchr" >/dev/null 2>&1; then :
7688 else
7689 ac_cv_header_stdc=no
7691 rm -f conftest*
7695 if test $ac_cv_header_stdc = yes; then
7696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <stdlib.h>
7701 _ACEOF
7702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703 $EGREP "free" >/dev/null 2>&1; then :
7705 else
7706 ac_cv_header_stdc=no
7708 rm -f conftest*
7712 if test $ac_cv_header_stdc = yes; then
7713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7714 if test "$cross_compiling" = yes; then :
7716 else
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 #include <ctype.h>
7720 #include <stdlib.h>
7721 #if ((' ' & 0x0FF) == 0x020)
7722 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7723 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7724 #else
7725 # define ISLOWER(c) \
7726 (('a' <= (c) && (c) <= 'i') \
7727 || ('j' <= (c) && (c) <= 'r') \
7728 || ('s' <= (c) && (c) <= 'z'))
7729 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7730 #endif
7732 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7734 main ()
7736 int i;
7737 for (i = 0; i < 256; i++)
7738 if (XOR (islower (i), ISLOWER (i))
7739 || toupper (i) != TOUPPER (i))
7740 return 2;
7741 return 0;
7743 _ACEOF
7744 if ac_fn_c_try_run "$LINENO"; then :
7746 else
7747 ac_cv_header_stdc=no
7749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7750 conftest.$ac_objext conftest.beam conftest.$ac_ext
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7756 $as_echo "$ac_cv_header_stdc" >&6; }
7757 if test $ac_cv_header_stdc = yes; then
7759 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7764 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7765 if test "${ac_cv_header_time+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 #include <sys/types.h>
7771 #include <sys/time.h>
7772 #include <time.h>
7775 main ()
7777 if ((struct tm *) 0)
7778 return 0;
7780 return 0;
7782 _ACEOF
7783 if ac_fn_c_try_compile "$LINENO"; then :
7784 ac_cv_header_time=yes
7785 else
7786 ac_cv_header_time=no
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7791 $as_echo "$ac_cv_header_time" >&6; }
7792 if test $ac_cv_header_time = yes; then
7794 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7799 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7800 if test "${gcc_cv_header_string+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <string.h>
7806 #include <strings.h>
7808 main ()
7812 return 0;
7814 _ACEOF
7815 if ac_fn_c_try_compile "$LINENO"; then :
7816 gcc_cv_header_string=yes
7817 else
7818 gcc_cv_header_string=no
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7823 $as_echo "$gcc_cv_header_string" >&6; }
7824 if test $gcc_cv_header_string = yes; then
7826 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7831 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7832 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 #include <sys/types.h>
7838 #include <sys/wait.h>
7839 #ifndef WEXITSTATUS
7840 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7841 #endif
7842 #ifndef WIFEXITED
7843 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7844 #endif
7847 main ()
7849 int s;
7850 wait (&s);
7851 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7853 return 0;
7855 _ACEOF
7856 if ac_fn_c_try_compile "$LINENO"; then :
7857 ac_cv_header_sys_wait_h=yes
7858 else
7859 ac_cv_header_sys_wait_h=no
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7864 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7865 if test $ac_cv_header_sys_wait_h = yes; then
7867 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7871 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7872 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7873 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7874 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7875 do :
7876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7877 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7878 eval as_val=\$$as_ac_Header
7879 if test "x$as_val" = x""yes; then :
7880 cat >>confdefs.h <<_ACEOF
7881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7882 _ACEOF
7885 done
7888 # Check for thread headers.
7889 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7890 if test "x$ac_cv_header_thread_h" = x""yes; then :
7891 have_thread_h=yes
7892 else
7893 have_thread_h=
7896 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7897 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7898 have_pthread_h=yes
7899 else
7900 have_pthread_h=
7904 # These tests can't be done till we know if we have limits.h.
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7906 $as_echo_n "checking for CHAR_BIT... " >&6; }
7907 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 #ifdef HAVE_LIMITS_H
7913 #include <limits.h>
7914 #endif
7915 #ifdef CHAR_BIT
7916 found
7917 #endif
7918 _ACEOF
7919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7920 $EGREP "found" >/dev/null 2>&1; then :
7921 gcc_cv_decl_char_bit=yes
7922 else
7923 gcc_cv_decl_char_bit=no
7925 rm -f conftest*
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7930 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7931 if test $gcc_cv_decl_char_bit = no; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7933 $as_echo_n "checking number of bits in a byte... " >&6; }
7934 if test "${gcc_cv_c_nbby+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7938 gcc_cv_c_nbby=
7939 while test $i -lt 65; do
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7944 main ()
7946 switch(0) {
7947 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7948 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7951 return 0;
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955 gcc_cv_c_nbby=$i; break
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 i=`expr $i + 1`
7959 done
7960 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7964 $as_echo "$gcc_cv_c_nbby" >&6; }
7965 if test $gcc_cv_c_nbby = failed; then
7966 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7967 else
7969 cat >>confdefs.h <<_ACEOF
7970 #define CHAR_BIT $gcc_cv_c_nbby
7971 _ACEOF
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7976 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7977 if test "${ac_cv_c_bigendian+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 ac_cv_c_bigendian=unknown
7981 # See if we're dealing with a universal compiler.
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 #ifndef __APPLE_CC__
7985 not a universal capable compiler
7986 #endif
7987 typedef int dummy;
7989 _ACEOF
7990 if ac_fn_c_try_compile "$LINENO"; then :
7992 # Check for potential -arch flags. It is not universal unless
7993 # there are at least two -arch flags with different values.
7994 ac_arch=
7995 ac_prev=
7996 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7997 if test -n "$ac_prev"; then
7998 case $ac_word in
7999 i?86 | x86_64 | ppc | ppc64)
8000 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8001 ac_arch=$ac_word
8002 else
8003 ac_cv_c_bigendian=universal
8004 break
8007 esac
8008 ac_prev=
8009 elif test "x$ac_word" = "x-arch"; then
8010 ac_prev=arch
8012 done
8014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 if test $ac_cv_c_bigendian = unknown; then
8016 # See if sys/param.h defines the BYTE_ORDER macro.
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 #include <sys/types.h>
8020 #include <sys/param.h>
8023 main ()
8025 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8026 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8027 && LITTLE_ENDIAN)
8028 bogus endian macros
8029 #endif
8032 return 0;
8034 _ACEOF
8035 if ac_fn_c_try_compile "$LINENO"; then :
8036 # It does; now see whether it defined to BIG_ENDIAN or not.
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 #include <sys/types.h>
8040 #include <sys/param.h>
8043 main ()
8045 #if BYTE_ORDER != BIG_ENDIAN
8046 not big endian
8047 #endif
8050 return 0;
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054 ac_cv_c_bigendian=yes
8055 else
8056 ac_cv_c_bigendian=no
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 if test $ac_cv_c_bigendian = unknown; then
8063 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8066 #include <limits.h>
8069 main ()
8071 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8072 bogus endian macros
8073 #endif
8076 return 0;
8078 _ACEOF
8079 if ac_fn_c_try_compile "$LINENO"; then :
8080 # It does; now see whether it defined to _BIG_ENDIAN or not.
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 #include <limits.h>
8086 main ()
8088 #ifndef _BIG_ENDIAN
8089 not big endian
8090 #endif
8093 return 0;
8095 _ACEOF
8096 if ac_fn_c_try_compile "$LINENO"; then :
8097 ac_cv_c_bigendian=yes
8098 else
8099 ac_cv_c_bigendian=no
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 if test $ac_cv_c_bigendian = unknown; then
8106 # Compile a test program.
8107 if test "$cross_compiling" = yes; then :
8108 # Try to guess by grepping values from an object file.
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 short int ascii_mm[] =
8112 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8113 short int ascii_ii[] =
8114 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8115 int use_ascii (int i) {
8116 return ascii_mm[i] + ascii_ii[i];
8118 short int ebcdic_ii[] =
8119 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8120 short int ebcdic_mm[] =
8121 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8122 int use_ebcdic (int i) {
8123 return ebcdic_mm[i] + ebcdic_ii[i];
8125 extern int foo;
8128 main ()
8130 return use_ascii (foo) == use_ebcdic (foo);
8132 return 0;
8134 _ACEOF
8135 if ac_fn_c_try_compile "$LINENO"; then :
8136 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8137 ac_cv_c_bigendian=yes
8139 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8140 if test "$ac_cv_c_bigendian" = unknown; then
8141 ac_cv_c_bigendian=no
8142 else
8143 # finding both strings is unlikely to happen, but who knows?
8144 ac_cv_c_bigendian=unknown
8148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149 else
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152 $ac_includes_default
8154 main ()
8157 /* Are we little or big endian? From Harbison&Steele. */
8158 union
8160 long int l;
8161 char c[sizeof (long int)];
8162 } u;
8163 u.l = 1;
8164 return u.c[sizeof (long int) - 1] == 1;
8167 return 0;
8169 _ACEOF
8170 if ac_fn_c_try_run "$LINENO"; then :
8171 ac_cv_c_bigendian=no
8172 else
8173 ac_cv_c_bigendian=yes
8175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8176 conftest.$ac_objext conftest.beam conftest.$ac_ext
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8182 $as_echo "$ac_cv_c_bigendian" >&6; }
8183 case $ac_cv_c_bigendian in #(
8184 yes)
8185 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8186 ;; #(
8188 ;; #(
8189 universal)
8191 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8193 ;; #(
8195 as_fn_error "unknown endianness
8196 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8197 esac
8200 # --------
8201 # UNSORTED
8202 # --------
8205 # These libraries may be used by collect2.
8206 # We may need a special search path to get them linked.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8208 $as_echo_n "checking for collect2 libraries... " >&6; }
8209 if test "${gcc_cv_collect2_libs+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 save_LIBS="$LIBS"
8213 for libs in '' -lld -lmld \
8214 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8215 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8217 LIBS="$libs"
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8221 /* Override any GCC internal prototype to avoid an error.
8222 Use char because int might match the return type of a GCC
8223 builtin and then its argument prototype would still apply. */
8224 #ifdef __cplusplus
8225 extern "C"
8226 #endif
8227 char ldopen ();
8229 main ()
8231 return ldopen ();
8233 return 0;
8235 _ACEOF
8236 if ac_fn_c_try_link "$LINENO"; then :
8237 gcc_cv_collect2_libs="$libs"; break
8239 rm -f core conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 done
8242 LIBS="$save_LIBS"
8243 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8246 $as_echo "$gcc_cv_collect2_libs" >&6; }
8247 case $gcc_cv_collect2_libs in
8248 "none required") ;;
8249 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8250 esac
8253 # When building Ada code on Alpha, we need exc_resume which is usually in
8254 # -lexc. So test for it.
8255 save_LIBS="$LIBS"
8256 LIBS=
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8258 $as_echo_n "checking for library containing exc_resume... " >&6; }
8259 if test "${ac_cv_search_exc_resume+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 ac_func_search_save_LIBS=$LIBS
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8266 /* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8269 #ifdef __cplusplus
8270 extern "C"
8271 #endif
8272 char exc_resume ();
8274 main ()
8276 return exc_resume ();
8278 return 0;
8280 _ACEOF
8281 for ac_lib in '' exc; do
8282 if test -z "$ac_lib"; then
8283 ac_res="none required"
8284 else
8285 ac_res=-l$ac_lib
8286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8288 if ac_fn_c_try_link "$LINENO"; then :
8289 ac_cv_search_exc_resume=$ac_res
8291 rm -f core conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext
8293 if test "${ac_cv_search_exc_resume+set}" = set; then :
8294 break
8296 done
8297 if test "${ac_cv_search_exc_resume+set}" = set; then :
8299 else
8300 ac_cv_search_exc_resume=no
8302 rm conftest.$ac_ext
8303 LIBS=$ac_func_search_save_LIBS
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8306 $as_echo "$ac_cv_search_exc_resume" >&6; }
8307 ac_res=$ac_cv_search_exc_resume
8308 if test "$ac_res" != no; then :
8309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8313 GNAT_LIBEXC="$LIBS"
8314 LIBS="$save_LIBS"
8317 # Some systems put ldexp and frexp in libm instead of libc; assume
8318 # they're both in the same place. jcf-dump needs them.
8319 save_LIBS="$LIBS"
8320 LIBS=
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8322 $as_echo_n "checking for library containing ldexp... " >&6; }
8323 if test "${ac_cv_search_ldexp+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8325 else
8326 ac_func_search_save_LIBS=$LIBS
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8330 /* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8333 #ifdef __cplusplus
8334 extern "C"
8335 #endif
8336 char ldexp ();
8338 main ()
8340 return ldexp ();
8342 return 0;
8344 _ACEOF
8345 for ac_lib in '' m; do
8346 if test -z "$ac_lib"; then
8347 ac_res="none required"
8348 else
8349 ac_res=-l$ac_lib
8350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8352 if ac_fn_c_try_link "$LINENO"; then :
8353 ac_cv_search_ldexp=$ac_res
8355 rm -f core conftest.err conftest.$ac_objext \
8356 conftest$ac_exeext
8357 if test "${ac_cv_search_ldexp+set}" = set; then :
8358 break
8360 done
8361 if test "${ac_cv_search_ldexp+set}" = set; then :
8363 else
8364 ac_cv_search_ldexp=no
8366 rm conftest.$ac_ext
8367 LIBS=$ac_func_search_save_LIBS
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8370 $as_echo "$ac_cv_search_ldexp" >&6; }
8371 ac_res=$ac_cv_search_ldexp
8372 if test "$ac_res" != no; then :
8373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8377 LDEXP_LIB="$LIBS"
8378 LIBS="$save_LIBS"
8381 # Use <inttypes.h> only if it exists,
8382 # doesn't clash with <sys/types.h>, and declares intmax_t.
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8384 $as_echo_n "checking for inttypes.h... " >&6; }
8385 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8387 else
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <inttypes.h>
8393 main ()
8395 intmax_t i = -1;
8397 return 0;
8399 _ACEOF
8400 if ac_fn_c_try_compile "$LINENO"; then :
8401 gcc_cv_header_inttypes_h=yes
8402 else
8403 gcc_cv_header_inttypes_h=no
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8409 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8410 if test $gcc_cv_header_inttypes_h = yes; then
8412 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8418 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8419 sysconf strsignal getrusage nl_langinfo \
8420 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8421 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
8422 do :
8423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8424 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8425 eval as_val=\$$as_ac_var
8426 if test "x$as_val" = x""yes; then :
8427 cat >>confdefs.h <<_ACEOF
8428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8429 _ACEOF
8432 done
8435 save_CPPFLAGS="$CPPFLAGS"
8436 save_LIBS="$LIBS"
8437 LIBS="$LIBS $LIBELFLIBS"
8438 for ac_func in elf_getshdrstrndx
8439 do :
8440 ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8441 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8442 cat >>confdefs.h <<_ACEOF
8443 #define HAVE_ELF_GETSHDRSTRNDX 1
8444 _ACEOF
8446 else
8447 for ac_func in elf_getshstrndx
8448 do :
8449 ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8450 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8451 cat >>confdefs.h <<_ACEOF
8452 #define HAVE_ELF_GETSHSTRNDX 1
8453 _ACEOF
8454 if test "$cross_compiling" = yes; then :
8455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8457 as_fn_error "cannot run test program while cross compiling
8458 See \`config.log' for more details." "$LINENO" 5; }
8459 else
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 #include <stdlib.h>
8463 #include <libelf.h>
8464 int main()
8466 return elf_getshstrndx (NULL, 0) == 0;
8468 _ACEOF
8469 if ac_fn_c_try_run "$LINENO"; then :
8471 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8475 conftest.$ac_objext conftest.beam conftest.$ac_ext
8479 done
8483 done
8485 LIBS="$save_LIBS"
8486 CPPFLAGS="$save_CPPFLAGS"
8488 if test x$ac_cv_func_mbstowcs = xyes; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8490 $as_echo_n "checking whether mbstowcs works... " >&6; }
8491 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 if test "$cross_compiling" = yes; then :
8495 gcc_cv_func_mbstowcs_works=yes
8496 else
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499 #include <stdlib.h>
8500 int main()
8502 mbstowcs(0, "", 0);
8503 return 0;
8505 _ACEOF
8506 if ac_fn_c_try_run "$LINENO"; then :
8507 gcc_cv_func_mbstowcs_works=yes
8508 else
8509 gcc_cv_func_mbstowcs_works=no
8511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8512 conftest.$ac_objext conftest.beam conftest.$ac_ext
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8517 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8518 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8520 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8525 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8526 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8528 else
8530 cat >>confdefs.h <<_ACEOF
8531 #define ssize_t int
8532 _ACEOF
8536 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8537 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8539 else
8541 cat >>confdefs.h <<_ACEOF
8542 #define caddr_t char *
8543 _ACEOF
8549 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8550 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8551 gcc_header_sys_mman_h=yes
8552 else
8553 gcc_header_sys_mman_h=no
8556 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8557 if test "x$ac_cv_func_mmap" = x""yes; then :
8558 gcc_func_mmap=yes
8559 else
8560 gcc_func_mmap=no
8563 if test "$gcc_header_sys_mman_h" != yes \
8564 || test "$gcc_func_mmap" != yes; then
8565 gcc_cv_func_mmap_file=no
8566 gcc_cv_func_mmap_dev_zero=no
8567 gcc_cv_func_mmap_anon=no
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8570 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8571 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 # Add a system to this blacklist if
8575 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8576 # memory area containing the same data that you'd get if you applied
8577 # read() to the same fd. The only system known to have a problem here
8578 # is VMS, where text files have record structure.
8579 case "$host_os" in
8580 vms* | ultrix*)
8581 gcc_cv_func_mmap_file=no ;;
8583 gcc_cv_func_mmap_file=yes;;
8584 esac
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8587 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8589 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8590 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 # Add a system to this blacklist if it has mmap() but /dev/zero
8594 # does not exist, or if mmapping /dev/zero does not give anonymous
8595 # zeroed pages with both the following properties:
8596 # 1. If you map N consecutive pages in with one call, and then
8597 # unmap any subset of those pages, the pages that were not
8598 # explicitly unmapped remain accessible.
8599 # 2. If you map two adjacent blocks of memory and then unmap them
8600 # both at once, they must both go away.
8601 # Systems known to be in this category are Windows (all variants),
8602 # VMS, and Darwin.
8603 case "$host_os" in
8604 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8605 gcc_cv_func_mmap_dev_zero=no ;;
8607 gcc_cv_func_mmap_dev_zero=yes;;
8608 esac
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8611 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8613 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8615 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8616 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 #include <sys/types.h>
8622 #include <sys/mman.h>
8623 #include <unistd.h>
8625 #ifndef MAP_ANONYMOUS
8626 #define MAP_ANONYMOUS MAP_ANON
8627 #endif
8630 main ()
8632 int n = MAP_ANONYMOUS;
8634 return 0;
8636 _ACEOF
8637 if ac_fn_c_try_compile "$LINENO"; then :
8638 gcc_cv_decl_map_anon=yes
8639 else
8640 gcc_cv_decl_map_anon=no
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8645 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8647 if test $gcc_cv_decl_map_anon = no; then
8648 gcc_cv_func_mmap_anon=no
8649 else
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8651 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8652 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8656 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8657 # doesn't give anonymous zeroed pages with the same properties listed
8658 # above for use of /dev/zero.
8659 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8660 case "$host_os" in
8661 vms* | cygwin* | pe | mingw* | sco* | udk* )
8662 gcc_cv_func_mmap_anon=no ;;
8664 gcc_cv_func_mmap_anon=yes;;
8665 esac
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8668 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8672 if test $gcc_cv_func_mmap_file = yes; then
8674 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8677 if test $gcc_cv_func_mmap_dev_zero = yes; then
8679 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8682 if test $gcc_cv_func_mmap_anon = yes; then
8684 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8689 case "${host}" in
8690 *-*-*vms*)
8691 # Under VMS, vfork works very differently than on Unix. The standard test
8692 # won't work, and it isn't easily adaptable. It makes more sense to
8693 # just force it.
8694 ac_cv_func_vfork_works=yes
8696 esac
8697 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8698 if test "x$ac_cv_type_pid_t" = x""yes; then :
8700 else
8702 cat >>confdefs.h <<_ACEOF
8703 #define pid_t int
8704 _ACEOF
8708 for ac_header in vfork.h
8709 do :
8710 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8711 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_VFORK_H 1
8714 _ACEOF
8717 done
8719 for ac_func in fork vfork
8720 do :
8721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8722 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8723 eval as_val=\$$as_ac_var
8724 if test "x$as_val" = x""yes; then :
8725 cat >>confdefs.h <<_ACEOF
8726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8727 _ACEOF
8730 done
8732 if test "x$ac_cv_func_fork" = xyes; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8734 $as_echo_n "checking for working fork... " >&6; }
8735 if test "${ac_cv_func_fork_works+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 if test "$cross_compiling" = yes; then :
8739 ac_cv_func_fork_works=cross
8740 else
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 $ac_includes_default
8745 main ()
8748 /* By Ruediger Kuhlmann. */
8749 return fork () < 0;
8752 return 0;
8754 _ACEOF
8755 if ac_fn_c_try_run "$LINENO"; then :
8756 ac_cv_func_fork_works=yes
8757 else
8758 ac_cv_func_fork_works=no
8760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8761 conftest.$ac_objext conftest.beam conftest.$ac_ext
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8766 $as_echo "$ac_cv_func_fork_works" >&6; }
8768 else
8769 ac_cv_func_fork_works=$ac_cv_func_fork
8771 if test "x$ac_cv_func_fork_works" = xcross; then
8772 case $host in
8773 *-*-amigaos* | *-*-msdosdjgpp*)
8774 # Override, as these systems have only a dummy fork() stub
8775 ac_cv_func_fork_works=no
8778 ac_cv_func_fork_works=yes
8780 esac
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8782 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8784 ac_cv_func_vfork_works=$ac_cv_func_vfork
8785 if test "x$ac_cv_func_vfork" = xyes; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8787 $as_echo_n "checking for working vfork... " >&6; }
8788 if test "${ac_cv_func_vfork_works+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 if test "$cross_compiling" = yes; then :
8792 ac_cv_func_vfork_works=cross
8793 else
8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 /* Thanks to Paul Eggert for this test. */
8797 $ac_includes_default
8798 #include <sys/wait.h>
8799 #ifdef HAVE_VFORK_H
8800 # include <vfork.h>
8801 #endif
8802 /* On some sparc systems, changes by the child to local and incoming
8803 argument registers are propagated back to the parent. The compiler
8804 is told about this with #include <vfork.h>, but some compilers
8805 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8806 static variable whose address is put into a register that is
8807 clobbered by the vfork. */
8808 static void
8809 #ifdef __cplusplus
8810 sparc_address_test (int arg)
8811 # else
8812 sparc_address_test (arg) int arg;
8813 #endif
8815 static pid_t child;
8816 if (!child) {
8817 child = vfork ();
8818 if (child < 0) {
8819 perror ("vfork");
8820 _exit(2);
8822 if (!child) {
8823 arg = getpid();
8824 write(-1, "", 0);
8825 _exit (arg);
8831 main ()
8833 pid_t parent = getpid ();
8834 pid_t child;
8836 sparc_address_test (0);
8838 child = vfork ();
8840 if (child == 0) {
8841 /* Here is another test for sparc vfork register problems. This
8842 test uses lots of local variables, at least as many local
8843 variables as main has allocated so far including compiler
8844 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8845 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8846 reuse the register of parent for one of the local variables,
8847 since it will think that parent can't possibly be used any more
8848 in this routine. Assigning to the local variable will thus
8849 munge parent in the parent process. */
8850 pid_t
8851 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8852 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8853 /* Convince the compiler that p..p7 are live; otherwise, it might
8854 use the same hardware register for all 8 local variables. */
8855 if (p != p1 || p != p2 || p != p3 || p != p4
8856 || p != p5 || p != p6 || p != p7)
8857 _exit(1);
8859 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8860 from child file descriptors. If the child closes a descriptor
8861 before it execs or exits, this munges the parent's descriptor
8862 as well. Test for this by closing stdout in the child. */
8863 _exit(close(fileno(stdout)) != 0);
8864 } else {
8865 int status;
8866 struct stat st;
8868 while (wait(&status) != child)
8870 return (
8871 /* Was there some problem with vforking? */
8872 child < 0
8874 /* Did the child fail? (This shouldn't happen.) */
8875 || status
8877 /* Did the vfork/compiler bug occur? */
8878 || parent != getpid()
8880 /* Did the file descriptor bug occur? */
8881 || fstat(fileno(stdout), &st) != 0
8885 _ACEOF
8886 if ac_fn_c_try_run "$LINENO"; then :
8887 ac_cv_func_vfork_works=yes
8888 else
8889 ac_cv_func_vfork_works=no
8891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8892 conftest.$ac_objext conftest.beam conftest.$ac_ext
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8897 $as_echo "$ac_cv_func_vfork_works" >&6; }
8900 if test "x$ac_cv_func_fork_works" = xcross; then
8901 ac_cv_func_vfork_works=$ac_cv_func_vfork
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8903 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8906 if test "x$ac_cv_func_vfork_works" = xyes; then
8908 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8910 else
8912 $as_echo "#define vfork fork" >>confdefs.h
8915 if test "x$ac_cv_func_fork_works" = xyes; then
8917 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8923 if test "X$prefix" = "XNONE"; then
8924 acl_final_prefix="$ac_default_prefix"
8925 else
8926 acl_final_prefix="$prefix"
8928 if test "X$exec_prefix" = "XNONE"; then
8929 acl_final_exec_prefix='${prefix}'
8930 else
8931 acl_final_exec_prefix="$exec_prefix"
8933 acl_save_prefix="$prefix"
8934 prefix="$acl_final_prefix"
8935 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8936 prefix="$acl_save_prefix"
8939 # Check whether --with-gnu-ld was given.
8940 if test "${with_gnu_ld+set}" = set; then :
8941 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8942 else
8943 with_gnu_ld=no
8946 # Prepare PATH_SEPARATOR.
8947 # The user is always right.
8948 if test "${PATH_SEPARATOR+set}" != set; then
8949 echo "#! /bin/sh" >conf$$.sh
8950 echo "exit 0" >>conf$$.sh
8951 chmod +x conf$$.sh
8952 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8953 PATH_SEPARATOR=';'
8954 else
8955 PATH_SEPARATOR=:
8957 rm -f conf$$.sh
8959 ac_prog=ld
8960 if test "$GCC" = yes; then
8961 # Check if gcc -print-prog-name=ld gives a path.
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8963 $as_echo_n "checking for ld used by GCC... " >&6; }
8964 case $host in
8965 *-*-mingw*)
8966 # gcc leaves a trailing carriage return which upsets mingw
8967 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8969 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8970 esac
8971 case $ac_prog in
8972 # Accept absolute paths.
8973 [\\/]* | [A-Za-z]:[\\/]*)
8974 re_direlt='/[^/][^/]*/\.\./'
8975 # Canonicalize the path of ld
8976 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8977 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8978 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8979 done
8980 test -z "$LD" && LD="$ac_prog"
8983 # If it fails, then pretend we aren't using GCC.
8984 ac_prog=ld
8987 # If it is relative, then search for the first ld in PATH.
8988 with_gnu_ld=unknown
8990 esac
8991 elif test "$with_gnu_ld" = yes; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8993 $as_echo_n "checking for GNU ld... " >&6; }
8994 else
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8996 $as_echo_n "checking for non-GNU ld... " >&6; }
8998 if test "${acl_cv_path_LD+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 if test -z "$LD"; then
9002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9003 for ac_dir in $PATH; do
9004 test -z "$ac_dir" && ac_dir=.
9005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9006 acl_cv_path_LD="$ac_dir/$ac_prog"
9007 # Check to see if the program is GNU ld. I'd rather use --version,
9008 # but apparently some GNU ld's only accept -v.
9009 # Break only if it was the GNU/non-GNU ld that we prefer.
9010 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9011 test "$with_gnu_ld" != no && break
9012 else
9013 test "$with_gnu_ld" != yes && break
9016 done
9017 IFS="$ac_save_ifs"
9018 else
9019 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9023 LD="$acl_cv_path_LD"
9024 if test -n "$LD"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9026 $as_echo "$LD" >&6; }
9027 else
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9031 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9033 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9034 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9038 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9039 acl_cv_prog_gnu_ld=yes
9040 else
9041 acl_cv_prog_gnu_ld=no
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9045 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9046 with_gnu_ld=$acl_cv_prog_gnu_ld
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9051 $as_echo_n "checking for shared library run path origin... " >&6; }
9052 if test "${acl_cv_rpath+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9056 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9057 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9058 . ./conftest.sh
9059 rm -f ./conftest.sh
9060 acl_cv_rpath=done
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9064 $as_echo "$acl_cv_rpath" >&6; }
9065 wl="$acl_cv_wl"
9066 libext="$acl_cv_libext"
9067 shlibext="$acl_cv_shlibext"
9068 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9069 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9070 hardcode_direct="$acl_cv_hardcode_direct"
9071 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9072 # Check whether --enable-rpath was given.
9073 if test "${enable_rpath+set}" = set; then :
9074 enableval=$enable_rpath; :
9075 else
9076 enable_rpath=yes
9086 use_additional=yes
9088 acl_save_prefix="$prefix"
9089 prefix="$acl_final_prefix"
9090 acl_save_exec_prefix="$exec_prefix"
9091 exec_prefix="$acl_final_exec_prefix"
9093 eval additional_includedir=\"$includedir\"
9094 eval additional_libdir=\"$libdir\"
9096 exec_prefix="$acl_save_exec_prefix"
9097 prefix="$acl_save_prefix"
9100 # Check whether --with-libiconv-prefix was given.
9101 if test "${with_libiconv_prefix+set}" = set; then :
9102 withval=$with_libiconv_prefix;
9103 if test "X$withval" = "Xno"; then
9104 use_additional=no
9105 else
9106 if test "X$withval" = "X"; then
9108 acl_save_prefix="$prefix"
9109 prefix="$acl_final_prefix"
9110 acl_save_exec_prefix="$exec_prefix"
9111 exec_prefix="$acl_final_exec_prefix"
9113 eval additional_includedir=\"$includedir\"
9114 eval additional_libdir=\"$libdir\"
9116 exec_prefix="$acl_save_exec_prefix"
9117 prefix="$acl_save_prefix"
9119 else
9120 additional_includedir="$withval/include"
9121 additional_libdir="$withval/lib"
9127 LIBICONV=
9128 LTLIBICONV=
9129 INCICONV=
9130 rpathdirs=
9131 ltrpathdirs=
9132 names_already_handled=
9133 names_next_round='iconv '
9134 while test -n "$names_next_round"; do
9135 names_this_round="$names_next_round"
9136 names_next_round=
9137 for name in $names_this_round; do
9138 already_handled=
9139 for n in $names_already_handled; do
9140 if test "$n" = "$name"; then
9141 already_handled=yes
9142 break
9144 done
9145 if test -z "$already_handled"; then
9146 names_already_handled="$names_already_handled $name"
9147 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9148 eval value=\"\$HAVE_LIB$uppername\"
9149 if test -n "$value"; then
9150 if test "$value" = yes; then
9151 eval value=\"\$LIB$uppername\"
9152 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9153 eval value=\"\$LTLIB$uppername\"
9154 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9155 else
9158 else
9159 found_dir=
9160 found_la=
9161 found_so=
9162 found_a=
9163 if test $use_additional = yes; then
9164 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9165 found_dir="$additional_libdir"
9166 found_so="$additional_libdir/lib$name.$shlibext"
9167 if test -f "$additional_libdir/lib$name.la"; then
9168 found_la="$additional_libdir/lib$name.la"
9170 else
9171 if test -f "$additional_libdir/lib$name.$libext"; then
9172 found_dir="$additional_libdir"
9173 found_a="$additional_libdir/lib$name.$libext"
9174 if test -f "$additional_libdir/lib$name.la"; then
9175 found_la="$additional_libdir/lib$name.la"
9180 if test "X$found_dir" = "X"; then
9181 for x in $LDFLAGS $LTLIBICONV; do
9183 acl_save_prefix="$prefix"
9184 prefix="$acl_final_prefix"
9185 acl_save_exec_prefix="$exec_prefix"
9186 exec_prefix="$acl_final_exec_prefix"
9187 eval x=\"$x\"
9188 exec_prefix="$acl_save_exec_prefix"
9189 prefix="$acl_save_prefix"
9191 case "$x" in
9192 -L*)
9193 dir=`echo "X$x" | sed -e 's/^X-L//'`
9194 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9195 found_dir="$dir"
9196 found_so="$dir/lib$name.$shlibext"
9197 if test -f "$dir/lib$name.la"; then
9198 found_la="$dir/lib$name.la"
9200 else
9201 if test -f "$dir/lib$name.$libext"; then
9202 found_dir="$dir"
9203 found_a="$dir/lib$name.$libext"
9204 if test -f "$dir/lib$name.la"; then
9205 found_la="$dir/lib$name.la"
9210 esac
9211 if test "X$found_dir" != "X"; then
9212 break
9214 done
9216 if test "X$found_dir" != "X"; then
9217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9218 if test "X$found_so" != "X"; then
9219 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9221 else
9222 haveit=
9223 for x in $ltrpathdirs; do
9224 if test "X$x" = "X$found_dir"; then
9225 haveit=yes
9226 break
9228 done
9229 if test -z "$haveit"; then
9230 ltrpathdirs="$ltrpathdirs $found_dir"
9232 if test "$hardcode_direct" = yes; then
9233 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9234 else
9235 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9236 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9237 haveit=
9238 for x in $rpathdirs; do
9239 if test "X$x" = "X$found_dir"; then
9240 haveit=yes
9241 break
9243 done
9244 if test -z "$haveit"; then
9245 rpathdirs="$rpathdirs $found_dir"
9247 else
9248 haveit=
9249 for x in $LDFLAGS $LIBICONV; do
9251 acl_save_prefix="$prefix"
9252 prefix="$acl_final_prefix"
9253 acl_save_exec_prefix="$exec_prefix"
9254 exec_prefix="$acl_final_exec_prefix"
9255 eval x=\"$x\"
9256 exec_prefix="$acl_save_exec_prefix"
9257 prefix="$acl_save_prefix"
9259 if test "X$x" = "X-L$found_dir"; then
9260 haveit=yes
9261 break
9263 done
9264 if test -z "$haveit"; then
9265 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9267 if test "$hardcode_minus_L" != no; then
9268 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9269 else
9270 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9275 else
9276 if test "X$found_a" != "X"; then
9277 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9278 else
9279 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9282 additional_includedir=
9283 case "$found_dir" in
9284 */lib | */lib/)
9285 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9286 additional_includedir="$basedir/include"
9288 esac
9289 if test "X$additional_includedir" != "X"; then
9290 if test "X$additional_includedir" != "X/usr/include"; then
9291 haveit=
9292 if test "X$additional_includedir" = "X/usr/local/include"; then
9293 if test -n "$GCC"; then
9294 case $host_os in
9295 linux*) haveit=yes;;
9296 esac
9299 if test -z "$haveit"; then
9300 for x in $CPPFLAGS $INCICONV; do
9302 acl_save_prefix="$prefix"
9303 prefix="$acl_final_prefix"
9304 acl_save_exec_prefix="$exec_prefix"
9305 exec_prefix="$acl_final_exec_prefix"
9306 eval x=\"$x\"
9307 exec_prefix="$acl_save_exec_prefix"
9308 prefix="$acl_save_prefix"
9310 if test "X$x" = "X-I$additional_includedir"; then
9311 haveit=yes
9312 break
9314 done
9315 if test -z "$haveit"; then
9316 if test -d "$additional_includedir"; then
9317 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9323 if test -n "$found_la"; then
9324 save_libdir="$libdir"
9325 case "$found_la" in
9326 */* | *\\*) . "$found_la" ;;
9327 *) . "./$found_la" ;;
9328 esac
9329 libdir="$save_libdir"
9330 for dep in $dependency_libs; do
9331 case "$dep" in
9332 -L*)
9333 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9334 if test "X$additional_libdir" != "X/usr/lib"; then
9335 haveit=
9336 if test "X$additional_libdir" = "X/usr/local/lib"; then
9337 if test -n "$GCC"; then
9338 case $host_os in
9339 linux*) haveit=yes;;
9340 esac
9343 if test -z "$haveit"; then
9344 haveit=
9345 for x in $LDFLAGS $LIBICONV; do
9347 acl_save_prefix="$prefix"
9348 prefix="$acl_final_prefix"
9349 acl_save_exec_prefix="$exec_prefix"
9350 exec_prefix="$acl_final_exec_prefix"
9351 eval x=\"$x\"
9352 exec_prefix="$acl_save_exec_prefix"
9353 prefix="$acl_save_prefix"
9355 if test "X$x" = "X-L$additional_libdir"; then
9356 haveit=yes
9357 break
9359 done
9360 if test -z "$haveit"; then
9361 if test -d "$additional_libdir"; then
9362 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9365 haveit=
9366 for x in $LDFLAGS $LTLIBICONV; do
9368 acl_save_prefix="$prefix"
9369 prefix="$acl_final_prefix"
9370 acl_save_exec_prefix="$exec_prefix"
9371 exec_prefix="$acl_final_exec_prefix"
9372 eval x=\"$x\"
9373 exec_prefix="$acl_save_exec_prefix"
9374 prefix="$acl_save_prefix"
9376 if test "X$x" = "X-L$additional_libdir"; then
9377 haveit=yes
9378 break
9380 done
9381 if test -z "$haveit"; then
9382 if test -d "$additional_libdir"; then
9383 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9389 -R*)
9390 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9391 if test "$enable_rpath" != no; then
9392 haveit=
9393 for x in $rpathdirs; do
9394 if test "X$x" = "X$dir"; then
9395 haveit=yes
9396 break
9398 done
9399 if test -z "$haveit"; then
9400 rpathdirs="$rpathdirs $dir"
9402 haveit=
9403 for x in $ltrpathdirs; do
9404 if test "X$x" = "X$dir"; then
9405 haveit=yes
9406 break
9408 done
9409 if test -z "$haveit"; then
9410 ltrpathdirs="$ltrpathdirs $dir"
9414 -l*)
9415 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9417 *.la)
9418 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9421 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9422 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9424 esac
9425 done
9427 else
9428 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9429 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9433 done
9434 done
9435 if test "X$rpathdirs" != "X"; then
9436 if test -n "$hardcode_libdir_separator"; then
9437 alldirs=
9438 for found_dir in $rpathdirs; do
9439 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9440 done
9441 acl_save_libdir="$libdir"
9442 libdir="$alldirs"
9443 eval flag=\"$hardcode_libdir_flag_spec\"
9444 libdir="$acl_save_libdir"
9445 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9446 else
9447 for found_dir in $rpathdirs; do
9448 acl_save_libdir="$libdir"
9449 libdir="$found_dir"
9450 eval flag=\"$hardcode_libdir_flag_spec\"
9451 libdir="$acl_save_libdir"
9452 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9453 done
9456 if test "X$ltrpathdirs" != "X"; then
9457 for found_dir in $ltrpathdirs; do
9458 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9459 done
9468 am_save_CPPFLAGS="$CPPFLAGS"
9470 for element in $INCICONV; do
9471 haveit=
9472 for x in $CPPFLAGS; do
9474 acl_save_prefix="$prefix"
9475 prefix="$acl_final_prefix"
9476 acl_save_exec_prefix="$exec_prefix"
9477 exec_prefix="$acl_final_exec_prefix"
9478 eval x=\"$x\"
9479 exec_prefix="$acl_save_exec_prefix"
9480 prefix="$acl_save_prefix"
9482 if test "X$x" = "X$element"; then
9483 haveit=yes
9484 break
9486 done
9487 if test -z "$haveit"; then
9488 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9490 done
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9494 $as_echo_n "checking for iconv... " >&6; }
9495 if test "${am_cv_func_iconv+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9497 else
9499 am_cv_func_iconv="no, consider installing GNU libiconv"
9500 am_cv_lib_iconv=no
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 #include <stdlib.h>
9504 #include <iconv.h>
9506 main ()
9508 iconv_t cd = iconv_open("","");
9509 iconv(cd,NULL,NULL,NULL,NULL);
9510 iconv_close(cd);
9512 return 0;
9514 _ACEOF
9515 if ac_fn_c_try_link "$LINENO"; then :
9516 am_cv_func_iconv=yes
9518 rm -f core conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 if test "$am_cv_func_iconv" != yes; then
9521 am_save_LIBS="$LIBS"
9522 LIBS="$LIBS $LIBICONV"
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 #include <stdlib.h>
9526 #include <iconv.h>
9528 main ()
9530 iconv_t cd = iconv_open("","");
9531 iconv(cd,NULL,NULL,NULL,NULL);
9532 iconv_close(cd);
9534 return 0;
9536 _ACEOF
9537 if ac_fn_c_try_link "$LINENO"; then :
9538 am_cv_lib_iconv=yes
9539 am_cv_func_iconv=yes
9541 rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 LIBS="$am_save_LIBS"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9548 $as_echo "$am_cv_func_iconv" >&6; }
9549 if test "$am_cv_func_iconv" = yes; then
9551 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9554 if test "$am_cv_lib_iconv" = yes; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9556 $as_echo_n "checking how to link with libiconv... " >&6; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9558 $as_echo "$LIBICONV" >&6; }
9559 else
9560 CPPFLAGS="$am_save_CPPFLAGS"
9561 LIBICONV=
9562 LTLIBICONV=
9567 if test "$am_cv_func_iconv" = yes; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9569 $as_echo_n "checking for iconv declaration... " >&6; }
9570 if test "${am_cv_proto_iconv+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9577 #include <stdlib.h>
9578 #include <iconv.h>
9579 extern
9580 #ifdef __cplusplus
9582 #endif
9583 #if defined(__STDC__) || defined(__cplusplus)
9584 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9585 #else
9586 size_t iconv();
9587 #endif
9590 main ()
9594 return 0;
9596 _ACEOF
9597 if ac_fn_c_try_compile "$LINENO"; then :
9598 am_cv_proto_iconv_arg1=""
9599 else
9600 am_cv_proto_iconv_arg1="const"
9602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603 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);"
9606 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9608 }$am_cv_proto_iconv" >&5
9609 $as_echo "${ac_t:-
9610 }$am_cv_proto_iconv" >&6; }
9612 cat >>confdefs.h <<_ACEOF
9613 #define ICONV_CONST $am_cv_proto_iconv_arg1
9614 _ACEOF
9618 # Until we have in-tree GNU iconv:
9619 LIBICONV_DEP=
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9624 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9625 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9627 else
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 #include <locale.h>
9632 main ()
9634 return LC_MESSAGES
9636 return 0;
9638 _ACEOF
9639 if ac_fn_c_try_link "$LINENO"; then :
9640 am_cv_val_LC_MESSAGES=yes
9641 else
9642 am_cv_val_LC_MESSAGES=no
9644 rm -f core conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9648 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9649 if test $am_cv_val_LC_MESSAGES = yes; then
9651 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9658 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9659 if test "${am_cv_langinfo_codeset+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 #include <langinfo.h>
9666 main ()
9668 char* cs = nl_langinfo(CODESET);
9670 return 0;
9672 _ACEOF
9673 if ac_fn_c_try_link "$LINENO"; then :
9674 am_cv_langinfo_codeset=yes
9675 else
9676 am_cv_langinfo_codeset=no
9678 rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9683 $as_echo "$am_cv_langinfo_codeset" >&6; }
9684 if test $am_cv_langinfo_codeset = yes; then
9686 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9691 # We will need to find libiberty.h and ansidecl.h
9692 saved_CFLAGS="$CFLAGS"
9693 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9694 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9695 strsignal strstr strverscmp \
9696 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9697 free basename getopt clock getpagesize 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
9699 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9701 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9702 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9703 $as_echo_n "(cached) " >&6
9704 else
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 #undef $ac_tr_decl
9708 #define $ac_tr_decl 1
9710 #include "ansidecl.h"
9711 #include "system.h"
9714 main ()
9716 #ifndef $ac_func
9717 char *(*pfn) = (char *(*)) $ac_func ;
9718 #endif
9720 return 0;
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"; then :
9724 eval "gcc_cv_have_decl_$ac_func=yes"
9725 else
9726 eval "gcc_cv_have_decl_$ac_func=no"
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9733 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9734 #define $ac_tr_decl 1
9735 _ACEOF
9737 else
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9740 #define $ac_tr_decl 0
9741 _ACEOF
9745 done
9748 for ac_func in getrlimit setrlimit getrusage
9750 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9752 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9753 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9754 $as_echo_n "(cached) " >&6
9755 else
9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9758 #undef $ac_tr_decl
9759 #define $ac_tr_decl 1
9761 #include "ansidecl.h"
9762 #include "system.h"
9763 #ifdef HAVE_SYS_RESOURCE_H
9764 #include <sys/resource.h>
9765 #endif
9769 main ()
9771 #ifndef $ac_func
9772 char *(*pfn) = (char *(*)) $ac_func ;
9773 #endif
9775 return 0;
9777 _ACEOF
9778 if ac_fn_c_try_compile "$LINENO"; then :
9779 eval "gcc_cv_have_decl_$ac_func=yes"
9780 else
9781 eval "gcc_cv_have_decl_$ac_func=no"
9783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9788 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9789 #define $ac_tr_decl 1
9790 _ACEOF
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9795 #define $ac_tr_decl 0
9796 _ACEOF
9800 done
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9806 #include "ansidecl.h"
9807 #include "system.h"
9808 #ifdef HAVE_SYS_RESOURCE_H
9809 #include <sys/resource.h>
9810 #endif
9813 main ()
9815 rlim_t l = 0;
9817 return 0;
9819 _ACEOF
9820 if ac_fn_c_try_compile "$LINENO"; then :
9822 else
9824 $as_echo "#define rlim_t long" >>confdefs.h
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9830 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9831 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9832 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9833 for ac_func in ldgetname
9835 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9837 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9838 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9843 #undef $ac_tr_decl
9844 #define $ac_tr_decl 1
9846 #include "ansidecl.h"
9847 #include "system.h"
9848 #ifdef HAVE_LDFCN_H
9849 #undef FREAD
9850 #undef FWRITE
9851 #include <ldfcn.h>
9852 #endif
9856 main ()
9858 #ifndef $ac_func
9859 char *(*pfn) = (char *(*)) $ac_func ;
9860 #endif
9862 return 0;
9864 _ACEOF
9865 if ac_fn_c_try_compile "$LINENO"; then :
9866 eval "gcc_cv_have_decl_$ac_func=yes"
9867 else
9868 eval "gcc_cv_have_decl_$ac_func=no"
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9875 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9876 #define $ac_tr_decl 1
9877 _ACEOF
9879 else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9882 #define $ac_tr_decl 0
9883 _ACEOF
9887 done
9890 for ac_func in times
9892 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9894 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9895 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9896 $as_echo_n "(cached) " >&6
9897 else
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 #undef $ac_tr_decl
9901 #define $ac_tr_decl 1
9903 #include "ansidecl.h"
9904 #include "system.h"
9905 #ifdef HAVE_SYS_TIMES_H
9906 #include <sys/times.h>
9907 #endif
9911 main ()
9913 #ifndef $ac_func
9914 char *(*pfn) = (char *(*)) $ac_func ;
9915 #endif
9917 return 0;
9919 _ACEOF
9920 if ac_fn_c_try_compile "$LINENO"; then :
9921 eval "gcc_cv_have_decl_$ac_func=yes"
9922 else
9923 eval "gcc_cv_have_decl_$ac_func=no"
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9930 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9931 #define $ac_tr_decl 1
9932 _ACEOF
9934 else
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9937 #define $ac_tr_decl 0
9938 _ACEOF
9942 done
9945 for ac_func in sigaltstack
9947 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9949 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9950 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9951 $as_echo_n "(cached) " >&6
9952 else
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9955 #undef $ac_tr_decl
9956 #define $ac_tr_decl 1
9958 #include "ansidecl.h"
9959 #include "system.h"
9960 #include <signal.h>
9964 main ()
9966 #ifndef $ac_func
9967 char *(*pfn) = (char *(*)) $ac_func ;
9968 #endif
9970 return 0;
9972 _ACEOF
9973 if ac_fn_c_try_compile "$LINENO"; then :
9974 eval "gcc_cv_have_decl_$ac_func=yes"
9975 else
9976 eval "gcc_cv_have_decl_$ac_func=no"
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9983 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9984 #define $ac_tr_decl 1
9985 _ACEOF
9987 else
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9990 #define $ac_tr_decl 0
9991 _ACEOF
9995 done
9998 # More time-related stuff.
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10000 $as_echo_n "checking for struct tms... " >&6; }
10001 if test "${ac_cv_struct_tms+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10003 else
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10008 #include "ansidecl.h"
10009 #include "system.h"
10010 #ifdef HAVE_SYS_TIMES_H
10011 #include <sys/times.h>
10012 #endif
10015 main ()
10017 struct tms tms;
10019 return 0;
10021 _ACEOF
10022 if ac_fn_c_try_compile "$LINENO"; then :
10023 ac_cv_struct_tms=yes
10024 else
10025 ac_cv_struct_tms=no
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10030 $as_echo "$ac_cv_struct_tms" >&6; }
10031 if test $ac_cv_struct_tms = yes; then
10033 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10037 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10038 # revisit after autoconf 2.50.
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10040 $as_echo_n "checking for clock_t... " >&6; }
10041 if test "${gcc_cv_type_clock_t+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10048 #include "ansidecl.h"
10049 #include "system.h"
10052 main ()
10054 clock_t x;
10056 return 0;
10058 _ACEOF
10059 if ac_fn_c_try_compile "$LINENO"; then :
10060 gcc_cv_type_clock_t=yes
10061 else
10062 gcc_cv_type_clock_t=no
10064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10067 $as_echo "$gcc_cv_type_clock_t" >&6; }
10068 if test $gcc_cv_type_clock_t = yes; then
10070 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10074 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10075 CFLAGS="$saved_CFLAGS"
10077 # Check whether --enable-initfini-array was given.
10078 if test "${enable_initfini_array+set}" = set; then :
10079 enableval=$enable_initfini_array;
10080 else
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10083 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10084 if test "${gcc_cv_initfini_array+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 if test "$cross_compiling" = yes; then :
10088 gcc_cv_initfini_array=no
10089 else
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10093 static int x = -1;
10094 int main (void) { return x; }
10095 int foo (void) { x = 0; }
10096 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10097 _ACEOF
10098 if ac_fn_c_try_run "$LINENO"; then :
10099 gcc_cv_initfini_array=yes
10100 else
10101 gcc_cv_initfini_array=no
10103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10104 conftest.$ac_objext conftest.beam conftest.$ac_ext
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10109 $as_echo "$gcc_cv_initfini_array" >&6; }
10110 enable_initfini_array=$gcc_cv_initfini_array
10114 if test $enable_initfini_array = yes; then
10116 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10120 # mkdir takes a single argument on some systems.
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10122 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10123 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 #include <sys/types.h>
10130 #ifdef HAVE_SYS_STAT_H
10131 # include <sys/stat.h>
10132 #endif
10133 #ifdef HAVE_UNISTD_H
10134 # include <unistd.h>
10135 #endif
10136 #ifdef HAVE_DIRECT_H
10137 # include <direct.h>
10138 #endif
10140 main ()
10142 mkdir ("foo", 0);
10144 return 0;
10146 _ACEOF
10147 if ac_fn_c_try_compile "$LINENO"; then :
10148 gcc_cv_mkdir_takes_one_arg=no
10149 else
10150 gcc_cv_mkdir_takes_one_arg=yes
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10155 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10156 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10158 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10163 # File extensions
10164 manext='.1'
10165 objext='.o'
10169 # With Setjmp/Longjmp based exception handling.
10170 # Check whether --enable-sjlj-exceptions was given.
10171 if test "${enable_sjlj_exceptions+set}" = set; then :
10172 enableval=$enable_sjlj_exceptions; case $target in
10173 *-*-hpux10*)
10174 if test $enableval != yes; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10176 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10177 enableval=yes
10180 esac
10181 force_sjlj_exceptions=yes
10182 else
10183 case $target in
10184 *-*-hpux10*)
10185 force_sjlj_exceptions=yes
10186 enableval=yes
10189 force_sjlj_exceptions=no
10191 esac
10194 if test $force_sjlj_exceptions = yes; then
10195 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10197 cat >>confdefs.h <<_ACEOF
10198 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10199 _ACEOF
10203 # For platforms with the unwind ABI which includes an unwind library,
10204 # libunwind, we can choose to use the system libunwind.
10205 # config.gcc also contains tests of with_system_libunwind.
10208 # Check whether --with-system-libunwind was given.
10209 if test "${with_system_libunwind+set}" = set; then :
10210 withval=$with_system_libunwind;
10213 # If system-libunwind was not specifically set, pick a default setting.
10214 if test x$with_system_libunwind = x; then
10215 case ${target} in
10216 ia64-*-hpux*) with_system_libunwind=yes ;;
10217 *) with_system_libunwind=no ;;
10218 esac
10220 # Based on system-libunwind and target, do we have ipinfo?
10221 if test x$with_system_libunwind = xyes; then
10222 case ${target} in
10223 ia64-*-*) have_unwind_getipinfo=no ;;
10224 *) have_unwind_getipinfo=yes ;;
10225 esac
10226 else
10227 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10229 case ${target} in
10230 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10231 *) have_unwind_getipinfo=yes ;;
10232 esac
10236 if test x$have_unwind_getipinfo = xyes; then
10238 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10243 # --------------------------------------------------------
10244 # Build, host, and target specific configuration fragments
10245 # --------------------------------------------------------
10247 # Collect build-machine-specific information.
10248 . ${srcdir}/config.build
10250 # Collect host-machine-specific information.
10251 . ${srcdir}/config.host
10253 target_gtfiles=
10255 # Collect target-machine-specific information.
10256 . ${srcdir}/config.gcc
10258 extra_objs="${host_extra_objs} ${extra_objs}"
10259 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10261 # Default the target-machine variables that were not explicitly set.
10262 if test x"$tm_file" = x
10263 then tm_file=$cpu_type/$cpu_type.h; fi
10265 if test x"$extra_headers" = x
10266 then extra_headers=; fi
10268 if test x$md_file = x
10269 then md_file=$cpu_type/$cpu_type.md; fi
10271 if test x$out_file = x
10272 then out_file=$cpu_type/$cpu_type.c; fi
10274 if test x"$tmake_file" = x
10275 then tmake_file=$cpu_type/t-$cpu_type
10278 if test x"$dwarf2" = xyes
10279 then tm_file="$tm_file tm-dwarf2.h"
10282 # Say what files are being used for the output code and MD file.
10283 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10284 echo "Using \`$srcdir/config/$md_file' as machine description file."
10286 # If any of the xm_file variables contain nonexistent files, warn
10287 # about them and drop them.
10290 for x in $build_xm_file; do
10291 if test -f $srcdir/config/$x
10292 then bx="$bx $x"
10293 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10294 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10296 done
10297 build_xm_file="$bx"
10300 for x in $host_xm_file; do
10301 if test -f $srcdir/config/$x
10302 then hx="$hx $x"
10303 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10304 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10306 done
10307 host_xm_file="$hx"
10310 for x in $xm_file; do
10311 if test -f $srcdir/config/$x
10312 then tx="$tx $x"
10313 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10314 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10316 done
10317 xm_file="$tx"
10319 count=a
10320 for f in $tm_file; do
10321 count=${count}x
10322 done
10323 if test $count = ax; then
10324 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10325 else
10326 echo "Using the following target machine macro files:"
10327 for f in $tm_file; do
10328 echo " $srcdir/config/$f"
10329 done
10332 if test x$need_64bit_hwint = xyes; then
10334 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10338 if test x$use_long_long_for_widest_fast_int = xyes; then
10340 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10344 count=a
10345 for f in $host_xm_file; do
10346 count=${count}x
10347 done
10348 if test $count = a; then
10350 elif test $count = ax; then
10351 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10352 else
10353 echo "Using the following host machine macro files:"
10354 for f in $host_xm_file; do
10355 echo " $srcdir/config/$f"
10356 done
10358 echo "Using ${out_host_hook_obj} for host machine hooks."
10360 if test "$host_xm_file" != "$build_xm_file"; then
10361 count=a
10362 for f in $build_xm_file; do
10363 count=${count}x
10364 done
10365 if test $count = a; then
10367 elif test $count = ax; then
10368 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10369 else
10370 echo "Using the following build machine macro files:"
10371 for f in $build_xm_file; do
10372 echo " $srcdir/config/$f"
10373 done
10377 case ${host} in
10378 powerpc*-*-darwin*)
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10380 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10381 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10382 $as_echo_n "(cached) " >&6
10383 else
10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10387 #include <sys/cdefs.h>
10388 #include <sys/signal.h>
10389 #include <ucontext.h>
10390 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10392 _ACEOF
10393 if ac_fn_c_try_compile "$LINENO"; then :
10394 gcc_cv_mcontext_underscores=no
10395 else
10396 gcc_cv_mcontext_underscores=yes
10398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10401 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10402 if test $gcc_cv_mcontext_underscores = yes; then
10404 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10408 esac
10410 # ---------
10411 # Threading
10412 # ---------
10414 # Check if a valid thread package
10415 case ${enable_threads} in
10416 "" | no)
10417 # No threads
10418 target_thread_file='single'
10420 yes)
10421 # default
10422 target_thread_file='single'
10424 aix | dce | gnat | irix | posix | posix95 | rtems | \
10425 single | solaris | vxworks | win32 | mipssde)
10426 target_thread_file=${enable_threads}
10429 echo "${enable_threads} is an unknown thread package" 1>&2
10430 exit 1
10432 esac
10434 if test x${thread_file} = x; then
10435 # No thread file set by target-specific clauses in config.gcc,
10436 # so use file chosen by default logic above
10437 thread_file=${target_thread_file}
10440 # Make gthr-default.h if we have a thread file.
10441 gthread_flags=
10442 if test $thread_file != single; then
10443 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10444 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10445 rm -f gthr-default.h-t
10446 else
10447 mv -f gthr-default.h-t gthr-default.h
10449 gthread_flags=-DHAVE_GTHR_DEFAULT
10453 # --------
10454 # UNSORTED
10455 # --------
10457 use_cxa_atexit=no
10458 if test x$enable___cxa_atexit = xyes || \
10459 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10460 if test x$host = x$target; then
10461 case $host in
10462 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10463 # keyed to flag_use_cxa_atexit
10464 *-*-mingw32*)
10465 use_cxa_atexit=yes
10468 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10469 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10470 use_cxa_atexit=yes
10471 else
10472 echo "__cxa_atexit can't be enabled on this target"
10476 esac
10477 else
10478 # We can't check for __cxa_atexit when building a cross, so assume
10479 # it is available
10480 use_cxa_atexit=yes
10482 if test x$use_cxa_atexit = xyes; then
10484 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10489 # Look for a file containing extra machine modes.
10490 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10491 extra_modes_file='$(srcdir)'/config/${extra_modes}
10494 cat >>confdefs.h <<_ACEOF
10495 #define EXTRA_MODES_FILE "config/$extra_modes"
10496 _ACEOF
10500 # Convert extra_options into a form suitable for Makefile use.
10501 extra_opt_files=
10502 for f in $extra_options; do
10503 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10504 done
10507 # auto-host.h is the file containing items generated by autoconf and is
10508 # the first file included by config.h.
10509 # If host=build, it is correct to have bconfig include auto-host.h
10510 # as well. If host!=build, we are in error and need to do more
10511 # work to find out the build config parameters.
10512 if test x$host = x$build
10513 then
10514 build_auto=auto-host.h
10515 else
10516 # We create a subdir, then run autoconf in the subdir.
10517 # To prevent recursion we set host and build for the new
10518 # invocation of configure to the build for this invocation
10519 # of configure.
10520 tempdir=build.$$
10521 rm -rf $tempdir
10522 mkdir $tempdir
10523 cd $tempdir
10524 case ${srcdir} in
10525 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10526 *) realsrcdir=../${srcdir};;
10527 esac
10528 saved_CFLAGS="${CFLAGS}"
10529 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10530 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10531 ${realsrcdir}/configure \
10532 --enable-languages=${enable_languages-all} \
10533 --target=$target_alias --host=$build_alias --build=$build_alias
10534 CFLAGS="${saved_CFLAGS}"
10536 # We just finished tests for the build machine, so rename
10537 # the file auto-build.h in the gcc directory.
10538 mv auto-host.h ../auto-build.h
10539 cd ..
10540 rm -rf $tempdir
10541 build_auto=auto-build.h
10545 tm_file="${tm_file} defaults.h"
10546 tm_p_file="${tm_p_file} tm-preds.h"
10547 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10548 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10549 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10550 # put this back in temporarily.
10551 xm_file="auto-host.h ansidecl.h ${xm_file}"
10553 # --------
10554 # UNSORTED
10555 # --------
10557 # Compile in configure arguments.
10558 if test -f configargs.h ; then
10559 # Being re-configured.
10560 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10561 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10562 else
10563 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10566 # Double all backslashes and backslash all quotes to turn
10567 # gcc_config_arguments into a C string.
10568 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10569 $gcc_config_arguments
10571 gcc_config_arguments_str=`cat conftest.out`
10572 rm -f conftest.out
10574 cat > configargs.h <<EOF
10575 /* Generated automatically. */
10576 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10577 static const char thread_model[] = "$thread_file";
10579 static const struct {
10580 const char *name, *value;
10581 } configure_default_options[] = $configure_default_options;
10584 gcc_BASEVER=`cat $srcdir/BASE-VER`
10585 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10586 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10587 if test -f $srcdir/REVISION ; then
10588 gcc_REVISION=`cat $srcdir/REVISION`
10589 else
10590 gcc_REVISION=""
10592 cat > plugin-version.h <<EOF
10593 #include "configargs.h"
10595 static char basever[] = "$gcc_BASEVER";
10596 static char datestamp[] = "$gcc_DATESTAMP";
10597 static char devphase[] = "$gcc_DEVPHASE";
10598 static char revision[] = "$gcc_REVISION";
10600 /* FIXME plugins: We should make the version information more precise.
10601 One way to do is to add a checksum. */
10603 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10604 devphase, revision,
10605 configuration_arguments};
10608 # Internationalization
10609 # If we haven't got the data from the intl directory,
10610 # assume NLS is disabled.
10611 USE_NLS=no
10612 LIBINTL=
10613 LIBINTL_DEP=
10614 INCINTL=
10615 XGETTEXT=
10616 GMSGFMT=
10617 POSUB=
10619 if test -f ../intl/config.intl; then
10620 . ../intl/config.intl
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10623 $as_echo_n "checking whether NLS is requested... " >&6; }
10624 if test x"$USE_NLS" != xyes; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10627 else
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10629 $as_echo "yes" >&6; }
10631 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10635 $as_echo_n "checking for catalogs to be installed... " >&6; }
10636 # Look for .po and .gmo files in the source directory.
10637 CATALOGS=
10638 XLINGUAS=
10639 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10640 # If there aren't any .gmo files the shell will give us the
10641 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10642 # weeded out.
10643 case "$cat" in *\**)
10644 continue;;
10645 esac
10646 # The quadruple backslash is collapsed to a double backslash
10647 # by the backticks, then collapsed again by the double quotes,
10648 # leaving us with one backslash in the sed expression (right
10649 # before the dot that mustn't act as a wildcard).
10650 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10651 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10652 # The user is allowed to set LINGUAS to a list of languages to
10653 # install catalogs for. If it's empty that means "all of them."
10654 if test "x$LINGUAS" = x; then
10655 CATALOGS="$CATALOGS $cat"
10656 XLINGUAS="$XLINGUAS $lang"
10657 else
10658 case "$LINGUAS" in *$lang*)
10659 CATALOGS="$CATALOGS $cat"
10660 XLINGUAS="$XLINGUAS $lang"
10662 esac
10664 done
10665 LINGUAS="$XLINGUAS"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10667 $as_echo "$LINGUAS" >&6; }
10670 DATADIRNAME=share
10672 INSTOBJEXT=.mo
10674 GENCAT=gencat
10676 CATOBJEXT=.gmo
10680 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10681 # -liconv on the link line twice.
10682 case "$LIBINTL" in *$LIBICONV*)
10683 LIBICONV= ;;
10684 esac
10686 # Check whether --enable-secureplt was given.
10687 if test "${enable_secureplt+set}" = set; then :
10688 enableval=$enable_secureplt;
10692 # Check whether --enable-leading-mingw64-underscores was given.
10693 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10694 enableval=$enable_leading_mingw64_underscores;
10697 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10699 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10703 # Check whether --enable-cld was given.
10704 if test "${enable_cld+set}" = set; then :
10705 enableval=$enable_cld;
10706 else
10707 enable_cld=no
10711 # Windows32 Registry support for specifying GCC installation paths.
10712 # Check whether --enable-win32-registry was given.
10713 if test "${enable_win32_registry+set}" = set; then :
10714 enableval=$enable_win32_registry;
10718 case $host_os in
10719 win32 | pe | cygwin* | mingw32* | uwin*)
10720 if test "x$enable_win32_registry" != xno; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10722 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10723 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 ac_func_search_save_LIBS=$LIBS
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10730 /* Override any GCC internal prototype to avoid an error.
10731 Use char because int might match the return type of a GCC
10732 builtin and then its argument prototype would still apply. */
10733 #ifdef __cplusplus
10734 extern "C"
10735 #endif
10736 char RegOpenKeyExA ();
10738 main ()
10740 return RegOpenKeyExA ();
10742 return 0;
10744 _ACEOF
10745 for ac_lib in '' advapi32; do
10746 if test -z "$ac_lib"; then
10747 ac_res="none required"
10748 else
10749 ac_res=-l$ac_lib
10750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10752 if ac_fn_c_try_link "$LINENO"; then :
10753 ac_cv_search_RegOpenKeyExA=$ac_res
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext
10757 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10758 break
10760 done
10761 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10763 else
10764 ac_cv_search_RegOpenKeyExA=no
10766 rm conftest.$ac_ext
10767 LIBS=$ac_func_search_save_LIBS
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10770 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10771 ac_res=$ac_cv_search_RegOpenKeyExA
10772 if test "$ac_res" != no; then :
10773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10775 else
10776 enable_win32_registry=no
10781 if test "x$enable_win32_registry" != xno; then
10783 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10786 if test "x$enable_win32_registry" != xyes \
10787 && test "x$enable_win32_registry" != x; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10791 _ACEOF
10796 esac
10798 # Get an absolute path to the GCC top-level source directory
10799 holddir=`${PWDCMD-pwd}`
10800 cd $srcdir
10801 topdir=`${PWDCMD-pwd}`
10802 cd $holddir
10804 # Conditionalize the makefile for this host machine.
10805 xmake_file=
10806 for f in ${host_xmake_file}
10808 if test -f ${srcdir}/config/$f
10809 then
10810 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10812 done
10814 # Conditionalize the makefile for this target machine.
10815 tmake_file_=
10816 for f in ${tmake_file}
10818 if test -f ${srcdir}/config/$f
10819 then
10820 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10822 done
10823 tmake_file="${tmake_file_}"
10825 out_object_file=`basename $out_file .c`.o
10827 tm_file_list="options.h"
10828 tm_include_list="options.h insn-constants.h"
10829 for f in $tm_file; do
10830 case $f in
10831 ./* )
10832 f=`echo $f | sed 's/^..//'`
10833 tm_file_list="${tm_file_list} $f"
10834 tm_include_list="${tm_include_list} $f"
10836 defaults.h )
10837 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10838 tm_include_list="${tm_include_list} $f"
10841 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10842 tm_include_list="${tm_include_list} config/$f"
10844 esac
10845 done
10847 tm_p_file_list=
10848 tm_p_include_list=
10849 for f in $tm_p_file; do
10850 case $f in
10851 tm-preds.h )
10852 tm_p_file_list="${tm_p_file_list} $f"
10853 tm_p_include_list="${tm_p_include_list} $f"
10856 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10857 tm_p_include_list="${tm_p_include_list} config/$f"
10858 esac
10859 done
10861 xm_file_list=
10862 xm_include_list=
10863 for f in $xm_file; do
10864 case $f in
10865 ansidecl.h )
10866 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10867 xm_include_list="${xm_include_list} $f"
10869 auto-host.h )
10870 xm_file_list="${xm_file_list} $f"
10871 xm_include_list="${xm_include_list} $f"
10874 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10875 xm_include_list="${xm_include_list} config/$f"
10877 esac
10878 done
10880 host_xm_file_list=
10881 host_xm_include_list=
10882 for f in $host_xm_file; do
10883 case $f in
10884 ansidecl.h )
10885 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10886 host_xm_include_list="${host_xm_include_list} $f"
10888 auto-host.h )
10889 host_xm_file_list="${host_xm_file_list} $f"
10890 host_xm_include_list="${host_xm_include_list} $f"
10893 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10894 host_xm_include_list="${host_xm_include_list} config/$f"
10896 esac
10897 done
10899 build_xm_file_list=
10900 for f in $build_xm_file; do
10901 case $f in
10902 ansidecl.h )
10903 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10904 build_xm_include_list="${build_xm_include_list} $f"
10906 auto-build.h | auto-host.h )
10907 build_xm_file_list="${build_xm_file_list} $f"
10908 build_xm_include_list="${build_xm_include_list} $f"
10911 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10912 build_xm_include_list="${build_xm_include_list} config/$f"
10914 esac
10915 done
10917 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10918 # cross-compiler which does not use the native headers and libraries.
10919 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10920 CROSS=
10921 ALL=all.internal
10922 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10924 if test "x$with_build_sysroot" != x; then
10925 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10926 else
10927 # This value is used, even on a native system, because
10928 # CROSS_SYSTEM_HEADER_DIR is just
10929 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10930 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10933 if test x$host != x$target
10934 then
10935 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10936 ALL=all.cross
10937 SYSTEM_HEADER_DIR=$build_system_header_dir
10938 case "$host","$target" in
10939 # Darwin crosses can use the host system's libraries and headers,
10940 # because of the fat library support. Of course, it must be the
10941 # same version of Darwin on both sides. Allow the user to
10942 # just say --target=foo-darwin without a version number to mean
10943 # "the version on this system".
10944 *-*-darwin*,*-*-darwin*)
10945 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10946 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10947 if test $hostos = $targetos -o $targetos = darwin ; then
10948 CROSS=
10949 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10950 with_headers=yes
10954 i?86-*-*,x86_64-*-* \
10955 | powerpc*-*-*,powerpc64*-*-*)
10956 CROSS="$CROSS -DNATIVE_CROSS" ;;
10957 esac
10958 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10959 SYSTEM_HEADER_DIR=$build_system_header_dir
10962 # If this is a cross-compiler that does not
10963 # have its own set of headers then define
10964 # inhibit_libc
10966 # If this is using newlib, without having the headers available now,
10967 # then define inhibit_libc in LIBGCC2_CFLAGS.
10968 # This prevents libgcc2 from containing any code which requires libc
10969 # support.
10970 : ${inhibit_libc=false}
10971 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10972 test x$with_newlib = xyes ; } &&
10973 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10974 inhibit_libc=true
10978 # When building gcc with a cross-compiler, we need to adjust things so
10979 # that the generator programs are still built with the native compiler.
10980 # Also, we cannot run fixincludes.
10982 # These are the normal (build=host) settings:
10983 CC_FOR_BUILD='$(CC)'
10984 BUILD_CFLAGS='$(ALL_CFLAGS)'
10985 BUILD_LDFLAGS='$(LDFLAGS)'
10986 STMP_FIXINC=stmp-fixinc
10988 # And these apply if build != host, or we are generating coverage data
10989 if test x$build != x$host || test "x$coverage_flags" != x
10990 then
10991 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10992 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10995 # Expand extra_headers to include complete path.
10996 # This substitutes for lots of t-* files.
10997 extra_headers_list=
10998 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10999 for file in ${extra_headers} ; do
11000 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11001 done
11003 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11004 if test x"$use_gcc_tgmath" = xyes
11005 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11008 # Define collect2 in Makefile.
11009 case $host_can_use_collect2 in
11010 no) collect2= ;;
11011 *) collect2='collect2$(exeext)' ;;
11012 esac
11015 # Add a definition of USE_COLLECT2 if system wants one.
11016 case $use_collect2 in
11017 no) use_collect2= ;;
11018 "") ;;
11020 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11021 xm_defines="${xm_defines} USE_COLLECT2"
11022 case $host_can_use_collect2 in
11024 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11026 esac
11028 esac
11030 # ---------------------------
11031 # Assembler & linker features
11032 # ---------------------------
11034 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11035 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11036 # However when ld-new is first executed from the build tree, libtool will
11037 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11038 # to the build tree. While doing this we need to use the previous-stage
11039 # linker, or we have an infinite loop. The presence of a shell script as
11040 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11041 # the gcc/collect-ld script. So we need to know how libtool works, or
11042 # exec-tool will fail.
11045 case `pwd` in
11046 *\ * | *\ *)
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11048 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11049 esac
11053 macro_version='2.2.7a'
11054 macro_revision='1.3134'
11068 ltmain="$ac_aux_dir/ltmain.sh"
11070 # Backslashify metacharacters that are still active within
11071 # double-quoted strings.
11072 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11074 # Same as above, but do not quote variable references.
11075 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11077 # Sed substitution to delay expansion of an escaped shell variable in a
11078 # double_quote_subst'ed string.
11079 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11081 # Sed substitution to delay expansion of an escaped single quote.
11082 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11084 # Sed substitution to avoid accidental globbing in evaled expressions
11085 no_glob_subst='s/\*/\\\*/g'
11087 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11088 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11089 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11092 $as_echo_n "checking how to print strings... " >&6; }
11093 # Test print first, because it will be a builtin if present.
11094 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11095 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11096 ECHO='print -r --'
11097 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11098 ECHO='printf %s\n'
11099 else
11100 # Use this function as a fallback that always works.
11101 func_fallback_echo ()
11103 eval 'cat <<_LTECHO_EOF
11105 _LTECHO_EOF'
11107 ECHO='func_fallback_echo'
11110 # func_echo_all arg...
11111 # Invoke $ECHO with all args, space-separated.
11112 func_echo_all ()
11114 $ECHO ""
11117 case "$ECHO" in
11118 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11119 $as_echo "printf" >&6; } ;;
11120 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11121 $as_echo "print -r" >&6; } ;;
11122 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11123 $as_echo "cat" >&6; } ;;
11124 esac
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11140 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11141 if test "${ac_cv_path_SED+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11145 for ac_i in 1 2 3 4 5 6 7; do
11146 ac_script="$ac_script$as_nl$ac_script"
11147 done
11148 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11149 { ac_script=; unset ac_script;}
11150 if test -z "$SED"; then
11151 ac_path_SED_found=false
11152 # Loop through the user's path and test for each of PROGNAME-LIST
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11156 IFS=$as_save_IFS
11157 test -z "$as_dir" && as_dir=.
11158 for ac_prog in sed gsed; do
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11161 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11162 # Check for GNU ac_path_SED and select it if it is found.
11163 # Check for GNU $ac_path_SED
11164 case `"$ac_path_SED" --version 2>&1` in
11165 *GNU*)
11166 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11168 ac_count=0
11169 $as_echo_n 0123456789 >"conftest.in"
11170 while :
11172 cat "conftest.in" "conftest.in" >"conftest.tmp"
11173 mv "conftest.tmp" "conftest.in"
11174 cp "conftest.in" "conftest.nl"
11175 $as_echo '' >> "conftest.nl"
11176 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11177 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11178 as_fn_arith $ac_count + 1 && ac_count=$as_val
11179 if test $ac_count -gt ${ac_path_SED_max-0}; then
11180 # Best one so far, save it but keep looking for a better one
11181 ac_cv_path_SED="$ac_path_SED"
11182 ac_path_SED_max=$ac_count
11184 # 10*(2^10) chars as input seems more than enough
11185 test $ac_count -gt 10 && break
11186 done
11187 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11188 esac
11190 $ac_path_SED_found && break 3
11191 done
11192 done
11193 done
11194 IFS=$as_save_IFS
11195 if test -z "$ac_cv_path_SED"; then
11196 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11198 else
11199 ac_cv_path_SED=$SED
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11204 $as_echo "$ac_cv_path_SED" >&6; }
11205 SED="$ac_cv_path_SED"
11206 rm -f conftest.sed
11208 test -z "$SED" && SED=sed
11209 Xsed="$SED -e 1s/^X//"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11222 $as_echo_n "checking for fgrep... " >&6; }
11223 if test "${ac_cv_path_FGREP+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11227 then ac_cv_path_FGREP="$GREP -F"
11228 else
11229 if test -z "$FGREP"; then
11230 ac_path_FGREP_found=false
11231 # Loop through the user's path and test for each of PROGNAME-LIST
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
11237 for ac_prog in fgrep; do
11238 for ac_exec_ext in '' $ac_executable_extensions; do
11239 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11240 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11241 # Check for GNU ac_path_FGREP and select it if it is found.
11242 # Check for GNU $ac_path_FGREP
11243 case `"$ac_path_FGREP" --version 2>&1` in
11244 *GNU*)
11245 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11247 ac_count=0
11248 $as_echo_n 0123456789 >"conftest.in"
11249 while :
11251 cat "conftest.in" "conftest.in" >"conftest.tmp"
11252 mv "conftest.tmp" "conftest.in"
11253 cp "conftest.in" "conftest.nl"
11254 $as_echo 'FGREP' >> "conftest.nl"
11255 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11257 as_fn_arith $ac_count + 1 && ac_count=$as_val
11258 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11259 # Best one so far, save it but keep looking for a better one
11260 ac_cv_path_FGREP="$ac_path_FGREP"
11261 ac_path_FGREP_max=$ac_count
11263 # 10*(2^10) chars as input seems more than enough
11264 test $ac_count -gt 10 && break
11265 done
11266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11267 esac
11269 $ac_path_FGREP_found && break 3
11270 done
11271 done
11272 done
11273 IFS=$as_save_IFS
11274 if test -z "$ac_cv_path_FGREP"; then
11275 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11277 else
11278 ac_cv_path_FGREP=$FGREP
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11284 $as_echo "$ac_cv_path_FGREP" >&6; }
11285 FGREP="$ac_cv_path_FGREP"
11288 test -z "$GREP" && GREP=grep
11308 # Check whether --with-gnu-ld was given.
11309 if test "${with_gnu_ld+set}" = set; then :
11310 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11311 else
11312 with_gnu_ld=no
11315 ac_prog=ld
11316 if test "$GCC" = yes; then
11317 # Check if gcc -print-prog-name=ld gives a path.
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11319 $as_echo_n "checking for ld used by $CC... " >&6; }
11320 case $host in
11321 *-*-mingw*)
11322 # gcc leaves a trailing carriage return which upsets mingw
11323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11326 esac
11327 case $ac_prog in
11328 # Accept absolute paths.
11329 [\\/]* | ?:[\\/]*)
11330 re_direlt='/[^/][^/]*/\.\./'
11331 # Canonicalize the pathname of ld
11332 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11333 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11334 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11335 done
11336 test -z "$LD" && LD="$ac_prog"
11339 # If it fails, then pretend we aren't using GCC.
11340 ac_prog=ld
11343 # If it is relative, then search for the first ld in PATH.
11344 with_gnu_ld=unknown
11346 esac
11347 elif test "$with_gnu_ld" = yes; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11349 $as_echo_n "checking for GNU ld... " >&6; }
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11352 $as_echo_n "checking for non-GNU ld... " >&6; }
11354 if test "${lt_cv_path_LD+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 if test -z "$LD"; then
11358 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11359 for ac_dir in $PATH; do
11360 IFS="$lt_save_ifs"
11361 test -z "$ac_dir" && ac_dir=.
11362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11363 lt_cv_path_LD="$ac_dir/$ac_prog"
11364 # Check to see if the program is GNU ld. I'd rather use --version,
11365 # but apparently some variants of GNU ld only accept -v.
11366 # Break only if it was the GNU/non-GNU ld that we prefer.
11367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11368 *GNU* | *'with BFD'*)
11369 test "$with_gnu_ld" != no && break
11372 test "$with_gnu_ld" != yes && break
11374 esac
11376 done
11377 IFS="$lt_save_ifs"
11378 else
11379 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11383 LD="$lt_cv_path_LD"
11384 if test -n "$LD"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11386 $as_echo "$LD" >&6; }
11387 else
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11391 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11393 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11394 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11398 case `$LD -v 2>&1 </dev/null` in
11399 *GNU* | *'with BFD'*)
11400 lt_cv_prog_gnu_ld=yes
11403 lt_cv_prog_gnu_ld=no
11405 esac
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11408 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11409 with_gnu_ld=$lt_cv_prog_gnu_ld
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11420 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11421 if test "${lt_cv_path_NM+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 if test -n "$NM"; then
11425 # Let the user override the test.
11426 lt_cv_path_NM="$NM"
11427 else
11428 lt_nm_to_check="${ac_tool_prefix}nm"
11429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11430 lt_nm_to_check="$lt_nm_to_check nm"
11432 for lt_tmp_nm in $lt_nm_to_check; do
11433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11434 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11435 IFS="$lt_save_ifs"
11436 test -z "$ac_dir" && ac_dir=.
11437 tmp_nm="$ac_dir/$lt_tmp_nm"
11438 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11439 # Check to see if the nm accepts a BSD-compat flag.
11440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11441 # nm: unknown option "B" ignored
11442 # Tru64's nm complains that /dev/null is an invalid object file
11443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11444 */dev/null* | *'Invalid file or object type'*)
11445 lt_cv_path_NM="$tmp_nm -B"
11446 break
11449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11450 */dev/null*)
11451 lt_cv_path_NM="$tmp_nm -p"
11452 break
11455 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11456 continue # so that we can try to find one that supports BSD flags
11458 esac
11460 esac
11462 done
11463 IFS="$lt_save_ifs"
11464 done
11465 : ${lt_cv_path_NM=no}
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11469 $as_echo "$lt_cv_path_NM" >&6; }
11470 if test "$lt_cv_path_NM" != "no"; then
11471 NM="$lt_cv_path_NM"
11472 else
11473 # Didn't find any BSD compatible name lister, look for dumpbin.
11474 if test -n "$DUMPBIN"; then :
11475 # Let the user override the test.
11476 else
11477 if test -n "$ac_tool_prefix"; then
11478 for ac_prog in dumpbin "link -dump"
11480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 if test -n "$DUMPBIN"; then
11488 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11489 else
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491 for as_dir in $PATH
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11501 done
11502 done
11503 IFS=$as_save_IFS
11507 DUMPBIN=$ac_cv_prog_DUMPBIN
11508 if test -n "$DUMPBIN"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11510 $as_echo "$DUMPBIN" >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11517 test -n "$DUMPBIN" && break
11518 done
11520 if test -z "$DUMPBIN"; then
11521 ac_ct_DUMPBIN=$DUMPBIN
11522 for ac_prog in dumpbin "link -dump"
11524 # Extract the first word of "$ac_prog", so it can be a program name with args.
11525 set dummy $ac_prog; ac_word=$2
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 $as_echo_n "checking for $ac_word... " >&6; }
11528 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 if test -n "$ac_ct_DUMPBIN"; then
11532 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11533 else
11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11535 for as_dir in $PATH
11537 IFS=$as_save_IFS
11538 test -z "$as_dir" && as_dir=.
11539 for ac_exec_ext in '' $ac_executable_extensions; do
11540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11541 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11543 break 2
11545 done
11546 done
11547 IFS=$as_save_IFS
11551 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11552 if test -n "$ac_ct_DUMPBIN"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11554 $as_echo "$ac_ct_DUMPBIN" >&6; }
11555 else
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11561 test -n "$ac_ct_DUMPBIN" && break
11562 done
11564 if test "x$ac_ct_DUMPBIN" = x; then
11565 DUMPBIN=":"
11566 else
11567 case $cross_compiling:$ac_tool_warned in
11568 yes:)
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11571 ac_tool_warned=yes ;;
11572 esac
11573 DUMPBIN=$ac_ct_DUMPBIN
11577 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11578 *COFF*)
11579 DUMPBIN="$DUMPBIN -symbols"
11582 DUMPBIN=:
11584 esac
11587 if test "$DUMPBIN" != ":"; then
11588 NM="$DUMPBIN"
11591 test -z "$NM" && NM=nm
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11599 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11600 if test "${lt_cv_nm_interface+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 lt_cv_nm_interface="BSD nm"
11604 echo "int some_variable = 0;" > conftest.$ac_ext
11605 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11606 (eval "$ac_compile" 2>conftest.err)
11607 cat conftest.err >&5
11608 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11609 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11610 cat conftest.err >&5
11611 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11612 cat conftest.out >&5
11613 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11614 lt_cv_nm_interface="MS dumpbin"
11616 rm -f conftest*
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11619 $as_echo "$lt_cv_nm_interface" >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11622 $as_echo_n "checking whether ln -s works... " >&6; }
11623 LN_S=$as_ln_s
11624 if test "$LN_S" = "ln -s"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 $as_echo "yes" >&6; }
11627 else
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11629 $as_echo "no, using $LN_S" >&6; }
11632 # find the maximum length of command line arguments
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11634 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11635 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11639 teststring="ABCD"
11641 case $build_os in
11642 msdosdjgpp*)
11643 # On DJGPP, this test can blow up pretty badly due to problems in libc
11644 # (any single argument exceeding 2000 bytes causes a buffer overrun
11645 # during glob expansion). Even if it were fixed, the result of this
11646 # check would be larger than it should be.
11647 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11650 gnu*)
11651 # Under GNU Hurd, this test is not required because there is
11652 # no limit to the length of command line arguments.
11653 # Libtool will interpret -1 as no limit whatsoever
11654 lt_cv_sys_max_cmd_len=-1;
11657 cygwin* | mingw* | cegcc*)
11658 # On Win9x/ME, this test blows up -- it succeeds, but takes
11659 # about 5 minutes as the teststring grows exponentially.
11660 # Worse, since 9x/ME are not pre-emptively multitasking,
11661 # you end up with a "frozen" computer, even though with patience
11662 # the test eventually succeeds (with a max line length of 256k).
11663 # Instead, let's just punt: use the minimum linelength reported by
11664 # all of the supported platforms: 8192 (on NT/2K/XP).
11665 lt_cv_sys_max_cmd_len=8192;
11668 mint*)
11669 # On MiNT this can take a long time and run out of memory.
11670 lt_cv_sys_max_cmd_len=8192;
11673 amigaos*)
11674 # On AmigaOS with pdksh, this test takes hours, literally.
11675 # So we just punt and use a minimum line length of 8192.
11676 lt_cv_sys_max_cmd_len=8192;
11679 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11680 # This has been around since 386BSD, at least. Likely further.
11681 if test -x /sbin/sysctl; then
11682 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11683 elif test -x /usr/sbin/sysctl; then
11684 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11685 else
11686 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11688 # And add a safety zone
11689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11693 interix*)
11694 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11695 lt_cv_sys_max_cmd_len=196608
11698 osf*)
11699 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11700 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11701 # nice to cause kernel panics so lets avoid the loop below.
11702 # First set a reasonable default.
11703 lt_cv_sys_max_cmd_len=16384
11705 if test -x /sbin/sysconfig; then
11706 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11707 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11708 esac
11711 sco3.2v5*)
11712 lt_cv_sys_max_cmd_len=102400
11714 sysv5* | sco5v6* | sysv4.2uw2*)
11715 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11716 if test -n "$kargmax"; then
11717 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11718 else
11719 lt_cv_sys_max_cmd_len=32768
11723 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11724 if test -n "$lt_cv_sys_max_cmd_len"; then
11725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11727 else
11728 # Make teststring a little bigger before we do anything with it.
11729 # a 1K string should be a reasonable start.
11730 for i in 1 2 3 4 5 6 7 8 ; do
11731 teststring=$teststring$teststring
11732 done
11733 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11734 # If test is not a shell built-in, we'll probably end up computing a
11735 # maximum length that is only half of the actual maximum length, but
11736 # we can't tell.
11737 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11738 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11739 test $i != 17 # 1/2 MB should be enough
11741 i=`expr $i + 1`
11742 teststring=$teststring$teststring
11743 done
11744 # Only check the string length outside the loop.
11745 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11746 teststring=
11747 # Add a significant safety factor because C++ compilers can tack on
11748 # massive amounts of additional arguments before passing them to the
11749 # linker. It appears as though 1/2 is a usable value.
11750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11753 esac
11757 if test -n $lt_cv_sys_max_cmd_len ; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11759 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11760 else
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11762 $as_echo "none" >&6; }
11764 max_cmd_len=$lt_cv_sys_max_cmd_len
11771 : ${CP="cp -f"}
11772 : ${MV="mv -f"}
11773 : ${RM="rm -f"}
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11776 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11777 # Try some XSI features
11778 xsi_shell=no
11779 ( _lt_dummy="a/b/c"
11780 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11781 = c,a/b,, \
11782 && eval 'test $(( 1 + 1 )) -eq 2 \
11783 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11784 && xsi_shell=yes
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11786 $as_echo "$xsi_shell" >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11790 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11791 lt_shell_append=no
11792 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11793 >/dev/null 2>&1 \
11794 && lt_shell_append=yes
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11796 $as_echo "$lt_shell_append" >&6; }
11799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11800 lt_unset=unset
11801 else
11802 lt_unset=false
11809 # test EBCDIC or ASCII
11810 case `echo X|tr X '\101'` in
11811 A) # ASCII based system
11812 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11813 lt_SP2NL='tr \040 \012'
11814 lt_NL2SP='tr \015\012 \040\040'
11816 *) # EBCDIC based system
11817 lt_SP2NL='tr \100 \n'
11818 lt_NL2SP='tr \r\n \100\100'
11820 esac
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11831 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11832 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11833 $as_echo_n "(cached) " >&6
11834 else
11835 lt_cv_ld_reload_flag='-r'
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11838 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11839 reload_flag=$lt_cv_ld_reload_flag
11840 case $reload_flag in
11841 "" | " "*) ;;
11842 *) reload_flag=" $reload_flag" ;;
11843 esac
11844 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11845 case $host_os in
11846 darwin*)
11847 if test "$GCC" = yes; then
11848 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11849 else
11850 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11853 esac
11863 if test -n "$ac_tool_prefix"; then
11864 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11865 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871 if test -n "$OBJDUMP"; then
11872 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11873 else
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11885 done
11886 done
11887 IFS=$as_save_IFS
11891 OBJDUMP=$ac_cv_prog_OBJDUMP
11892 if test -n "$OBJDUMP"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11894 $as_echo "$OBJDUMP" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11902 if test -z "$ac_cv_prog_OBJDUMP"; then
11903 ac_ct_OBJDUMP=$OBJDUMP
11904 # Extract the first word of "objdump", so it can be a program name with args.
11905 set dummy objdump; ac_word=$2
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907 $as_echo_n "checking for $ac_word... " >&6; }
11908 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
11910 else
11911 if test -n "$ac_ct_OBJDUMP"; then
11912 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11913 else
11914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915 for as_dir in $PATH
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11921 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11925 done
11926 done
11927 IFS=$as_save_IFS
11931 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11932 if test -n "$ac_ct_OBJDUMP"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11934 $as_echo "$ac_ct_OBJDUMP" >&6; }
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11940 if test "x$ac_ct_OBJDUMP" = x; then
11941 OBJDUMP="false"
11942 else
11943 case $cross_compiling:$ac_tool_warned in
11944 yes:)
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11947 ac_tool_warned=yes ;;
11948 esac
11949 OBJDUMP=$ac_ct_OBJDUMP
11951 else
11952 OBJDUMP="$ac_cv_prog_OBJDUMP"
11955 test -z "$OBJDUMP" && OBJDUMP=objdump
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11966 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 lt_cv_file_magic_cmd='$MAGIC_CMD'
11971 lt_cv_file_magic_test_file=
11972 lt_cv_deplibs_check_method='unknown'
11973 # Need to set the preceding variable on all platforms that support
11974 # interlibrary dependencies.
11975 # 'none' -- dependencies not supported.
11976 # `unknown' -- same as none, but documents that we really don't know.
11977 # 'pass_all' -- all dependencies passed with no checks.
11978 # 'test_compile' -- check by making test program.
11979 # 'file_magic [[regex]]' -- check by looking for files in library path
11980 # which responds to the $file_magic_cmd with a given extended regex.
11981 # If you have `file' or equivalent on your system and you're not sure
11982 # whether `pass_all' will *always* work, you probably want this one.
11984 case $host_os in
11985 aix[4-9]*)
11986 lt_cv_deplibs_check_method=pass_all
11989 beos*)
11990 lt_cv_deplibs_check_method=pass_all
11993 bsdi[45]*)
11994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11995 lt_cv_file_magic_cmd='/usr/bin/file -L'
11996 lt_cv_file_magic_test_file=/shlib/libc.so
11999 cygwin*)
12000 # func_win32_libid is a shell function defined in ltmain.sh
12001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12002 lt_cv_file_magic_cmd='func_win32_libid'
12005 mingw* | pw32*)
12006 # Base MSYS/MinGW do not provide the 'file' command needed by
12007 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12008 # unless we find 'file', for example because we are cross-compiling.
12009 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12010 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12012 lt_cv_file_magic_cmd='func_win32_libid'
12013 else
12014 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12015 lt_cv_file_magic_cmd='$OBJDUMP -f'
12019 cegcc*)
12020 # use the weaker test based on 'objdump'. See mingw*.
12021 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12022 lt_cv_file_magic_cmd='$OBJDUMP -f'
12025 darwin* | rhapsody*)
12026 lt_cv_deplibs_check_method=pass_all
12029 freebsd* | dragonfly*)
12030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12031 case $host_cpu in
12032 i*86 )
12033 # Not sure whether the presence of OpenBSD here was a mistake.
12034 # Let's accept both of them until this is cleared up.
12035 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12036 lt_cv_file_magic_cmd=/usr/bin/file
12037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12039 esac
12040 else
12041 lt_cv_deplibs_check_method=pass_all
12045 gnu*)
12046 lt_cv_deplibs_check_method=pass_all
12049 haiku*)
12050 lt_cv_deplibs_check_method=pass_all
12053 hpux10.20* | hpux11*)
12054 lt_cv_file_magic_cmd=/usr/bin/file
12055 case $host_cpu in
12056 ia64*)
12057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12060 hppa*64*)
12061 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]'
12062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12068 esac
12071 interix[3-9]*)
12072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12076 irix5* | irix6* | nonstopux*)
12077 case $LD in
12078 *-32|*"-32 ") libmagic=32-bit;;
12079 *-n32|*"-n32 ") libmagic=N32;;
12080 *-64|*"-64 ") libmagic=64-bit;;
12081 *) libmagic=never-match;;
12082 esac
12083 lt_cv_deplibs_check_method=pass_all
12086 # This must be Linux ELF.
12087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12088 lt_cv_deplibs_check_method=pass_all
12091 netbsd*)
12092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12094 else
12095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12099 newos6*)
12100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12101 lt_cv_file_magic_cmd=/usr/bin/file
12102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12105 *nto* | *qnx*)
12106 lt_cv_deplibs_check_method=pass_all
12109 openbsd*)
12110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12112 else
12113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12117 osf3* | osf4* | osf5*)
12118 lt_cv_deplibs_check_method=pass_all
12121 rdos*)
12122 lt_cv_deplibs_check_method=pass_all
12125 solaris*)
12126 lt_cv_deplibs_check_method=pass_all
12129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12130 lt_cv_deplibs_check_method=pass_all
12133 sysv4 | sysv4.3*)
12134 case $host_vendor in
12135 motorola)
12136 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]'
12137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12139 ncr)
12140 lt_cv_deplibs_check_method=pass_all
12142 sequent)
12143 lt_cv_file_magic_cmd='/bin/file'
12144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12146 sni)
12147 lt_cv_file_magic_cmd='/bin/file'
12148 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12149 lt_cv_file_magic_test_file=/lib/libc.so
12151 siemens)
12152 lt_cv_deplibs_check_method=pass_all
12155 lt_cv_deplibs_check_method=pass_all
12157 esac
12160 tpf*)
12161 lt_cv_deplibs_check_method=pass_all
12163 esac
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12167 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12168 file_magic_cmd=$lt_cv_file_magic_cmd
12169 deplibs_check_method=$lt_cv_deplibs_check_method
12170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12183 if test -n "$ac_tool_prefix"; then
12184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12185 set dummy ${ac_tool_prefix}ar; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if test "${ac_cv_prog_AR+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12190 else
12191 if test -n "$AR"; then
12192 ac_cv_prog_AR="$AR" # Let the user override the test.
12193 else
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12197 IFS=$as_save_IFS
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12201 ac_cv_prog_AR="${ac_tool_prefix}ar"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 break 2
12205 done
12206 done
12207 IFS=$as_save_IFS
12211 AR=$ac_cv_prog_AR
12212 if test -n "$AR"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12214 $as_echo "$AR" >&6; }
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12222 if test -z "$ac_cv_prog_AR"; then
12223 ac_ct_AR=$AR
12224 # Extract the first word of "ar", so it can be a program name with args.
12225 set dummy ar; ac_word=$2
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227 $as_echo_n "checking for $ac_word... " >&6; }
12228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12230 else
12231 if test -n "$ac_ct_AR"; then
12232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12233 else
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12237 IFS=$as_save_IFS
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12241 ac_cv_prog_ac_ct_AR="ar"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243 break 2
12245 done
12246 done
12247 IFS=$as_save_IFS
12251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12252 if test -n "$ac_ct_AR"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12254 $as_echo "$ac_ct_AR" >&6; }
12255 else
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12260 if test "x$ac_ct_AR" = x; then
12261 AR="false"
12262 else
12263 case $cross_compiling:$ac_tool_warned in
12264 yes:)
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12267 ac_tool_warned=yes ;;
12268 esac
12269 AR=$ac_ct_AR
12271 else
12272 AR="$ac_cv_prog_AR"
12275 test -z "$AR" && AR=ar
12276 test -z "$AR_FLAGS" && AR_FLAGS=cru
12288 if test -n "$ac_tool_prefix"; then
12289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12290 set dummy ${ac_tool_prefix}strip; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if test "${ac_cv_prog_STRIP+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 if test -n "$STRIP"; then
12297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12298 else
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12302 IFS=$as_save_IFS
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 break 2
12310 done
12311 done
12312 IFS=$as_save_IFS
12316 STRIP=$ac_cv_prog_STRIP
12317 if test -n "$STRIP"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12319 $as_echo "$STRIP" >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12327 if test -z "$ac_cv_prog_STRIP"; then
12328 ac_ct_STRIP=$STRIP
12329 # Extract the first word of "strip", so it can be a program name with args.
12330 set dummy strip; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 $as_echo_n "checking for $ac_word... " >&6; }
12333 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 if test -n "$ac_ct_STRIP"; then
12337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12338 else
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12346 ac_cv_prog_ac_ct_STRIP="strip"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 break 2
12350 done
12351 done
12352 IFS=$as_save_IFS
12356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12357 if test -n "$ac_ct_STRIP"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12359 $as_echo "$ac_ct_STRIP" >&6; }
12360 else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12365 if test "x$ac_ct_STRIP" = x; then
12366 STRIP=":"
12367 else
12368 case $cross_compiling:$ac_tool_warned in
12369 yes:)
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12372 ac_tool_warned=yes ;;
12373 esac
12374 STRIP=$ac_ct_STRIP
12376 else
12377 STRIP="$ac_cv_prog_STRIP"
12380 test -z "$STRIP" && STRIP=:
12387 if test -n "$ac_tool_prefix"; then
12388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 if test -n "$RANLIB"; then
12396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12397 else
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 break 2
12409 done
12410 done
12411 IFS=$as_save_IFS
12415 RANLIB=$ac_cv_prog_RANLIB
12416 if test -n "$RANLIB"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12418 $as_echo "$RANLIB" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12426 if test -z "$ac_cv_prog_RANLIB"; then
12427 ac_ct_RANLIB=$RANLIB
12428 # Extract the first word of "ranlib", so it can be a program name with args.
12429 set dummy ranlib; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12431 $as_echo_n "checking for $ac_word... " >&6; }
12432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 if test -n "$ac_ct_RANLIB"; then
12436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12437 else
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12441 IFS=$as_save_IFS
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_prog_ac_ct_RANLIB="ranlib"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12447 break 2
12449 done
12450 done
12451 IFS=$as_save_IFS
12455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12456 if test -n "$ac_ct_RANLIB"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12458 $as_echo "$ac_ct_RANLIB" >&6; }
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461 $as_echo "no" >&6; }
12464 if test "x$ac_ct_RANLIB" = x; then
12465 RANLIB=":"
12466 else
12467 case $cross_compiling:$ac_tool_warned in
12468 yes:)
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12471 ac_tool_warned=yes ;;
12472 esac
12473 RANLIB=$ac_ct_RANLIB
12475 else
12476 RANLIB="$ac_cv_prog_RANLIB"
12479 test -z "$RANLIB" && RANLIB=:
12486 # Determine commands to create old-style static archives.
12487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12488 old_postinstall_cmds='chmod 644 $oldlib'
12489 old_postuninstall_cmds=
12491 if test -n "$RANLIB"; then
12492 case $host_os in
12493 openbsd*)
12494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12499 esac
12500 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12503 case $host_os in
12504 darwin*)
12505 lock_old_archive_extraction=yes ;;
12507 lock_old_archive_extraction=no ;;
12508 esac
12548 # If no C compiler was specified, use CC.
12549 LTCC=${LTCC-"$CC"}
12551 # If no C compiler flags were specified, use CFLAGS.
12552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12554 # Allow CC to be a program name with arguments.
12555 compiler=$CC
12558 # Check for command to grab the raw symbol name followed by C symbol from nm.
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12560 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12561 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12562 $as_echo_n "(cached) " >&6
12563 else
12565 # These are sane defaults that work on at least a few old systems.
12566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12568 # Character class describing NM global symbol codes.
12569 symcode='[BCDEGRST]'
12571 # Regexp to match symbols that can be accessed directly from C.
12572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12574 # Define system-specific variables.
12575 case $host_os in
12576 aix*)
12577 symcode='[BCDT]'
12579 cygwin* | mingw* | pw32* | cegcc*)
12580 symcode='[ABCDGISTW]'
12582 hpux*)
12583 if test "$host_cpu" = ia64; then
12584 symcode='[ABCDEGRST]'
12587 irix* | nonstopux*)
12588 symcode='[BCDEGRST]'
12590 osf*)
12591 symcode='[BCDEGQRST]'
12593 solaris*)
12594 symcode='[BDRT]'
12596 sco3.2v5*)
12597 symcode='[DT]'
12599 sysv4.2uw2*)
12600 symcode='[DT]'
12602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12603 symcode='[ABDT]'
12605 sysv4)
12606 symcode='[DFNSTU]'
12608 esac
12610 # If we're using GNU nm, then use its standard symbol codes.
12611 case `$NM -V 2>&1` in
12612 *GNU* | *'with BFD'*)
12613 symcode='[ABCDGIRSTW]' ;;
12614 esac
12616 # Transform an extracted symbol line into a proper C declaration.
12617 # Some systems (esp. on ia64) link data and code symbols differently,
12618 # so use this general approach.
12619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12621 # Transform an extracted symbol line into symbol name and symbol address
12622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12623 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'"
12625 # Handle CRLF in mingw tool chain
12626 opt_cr=
12627 case $build_os in
12628 mingw*)
12629 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12631 esac
12633 # Try without a prefix underscore, then with it.
12634 for ac_symprfx in "" "_"; do
12636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12637 symxfrm="\\1 $ac_symprfx\\2 \\2"
12639 # Write the raw and C identifiers.
12640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12641 # Fake it for dumpbin and say T for any non-static function
12642 # and D for any global variable.
12643 # Also find C++ and __fastcall symbols from MSVC++,
12644 # which start with @ or ?.
12645 lt_cv_sys_global_symbol_pipe="$AWK '"\
12646 " {last_section=section; section=\$ 3};"\
12647 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12648 " \$ 0!~/External *\|/{next};"\
12649 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12650 " {if(hide[section]) next};"\
12651 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12652 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12653 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12654 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12655 " ' prfx=^$ac_symprfx"
12656 else
12657 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12660 # Check to see that the pipe works correctly.
12661 pipe_works=no
12663 rm -f conftest*
12664 cat > conftest.$ac_ext <<_LT_EOF
12665 #ifdef __cplusplus
12666 extern "C" {
12667 #endif
12668 char nm_test_var;
12669 void nm_test_func(void);
12670 void nm_test_func(void){}
12671 #ifdef __cplusplus
12673 #endif
12674 int main(){nm_test_var='a';nm_test_func();return(0);}
12675 _LT_EOF
12677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12678 (eval $ac_compile) 2>&5
12679 ac_status=$?
12680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12681 test $ac_status = 0; }; then
12682 # Now try to grab the symbols.
12683 nlist=conftest.nm
12684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12685 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12686 ac_status=$?
12687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688 test $ac_status = 0; } && test -s "$nlist"; then
12689 # Try sorting and uniquifying the output.
12690 if sort "$nlist" | uniq > "$nlist"T; then
12691 mv -f "$nlist"T "$nlist"
12692 else
12693 rm -f "$nlist"T
12696 # Make sure that we snagged all the symbols we need.
12697 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12698 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12699 cat <<_LT_EOF > conftest.$ac_ext
12700 #ifdef __cplusplus
12701 extern "C" {
12702 #endif
12704 _LT_EOF
12705 # Now generate the symbol file.
12706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12708 cat <<_LT_EOF >> conftest.$ac_ext
12710 /* The mapping between symbol names and symbols. */
12711 const struct {
12712 const char *name;
12713 void *address;
12715 lt__PROGRAM__LTX_preloaded_symbols[] =
12717 { "@PROGRAM@", (void *) 0 },
12718 _LT_EOF
12719 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12720 cat <<\_LT_EOF >> conftest.$ac_ext
12721 {0, (void *) 0}
12724 /* This works around a problem in FreeBSD linker */
12725 #ifdef FREEBSD_WORKAROUND
12726 static const void *lt_preloaded_setup() {
12727 return lt__PROGRAM__LTX_preloaded_symbols;
12729 #endif
12731 #ifdef __cplusplus
12733 #endif
12734 _LT_EOF
12735 # Now try linking the two files.
12736 mv conftest.$ac_objext conftstm.$ac_objext
12737 lt_save_LIBS="$LIBS"
12738 lt_save_CFLAGS="$CFLAGS"
12739 LIBS="conftstm.$ac_objext"
12740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12742 (eval $ac_link) 2>&5
12743 ac_status=$?
12744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12745 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12746 pipe_works=yes
12748 LIBS="$lt_save_LIBS"
12749 CFLAGS="$lt_save_CFLAGS"
12750 else
12751 echo "cannot find nm_test_func in $nlist" >&5
12753 else
12754 echo "cannot find nm_test_var in $nlist" >&5
12756 else
12757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12759 else
12760 echo "$progname: failed program was:" >&5
12761 cat conftest.$ac_ext >&5
12763 rm -rf conftest* conftst*
12765 # Do not use the global_symbol_pipe unless it works.
12766 if test "$pipe_works" = yes; then
12767 break
12768 else
12769 lt_cv_sys_global_symbol_pipe=
12771 done
12775 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12776 lt_cv_sys_global_symbol_to_cdecl=
12778 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12780 $as_echo "failed" >&6; }
12781 else
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12783 $as_echo "ok" >&6; }
12807 # Check whether --enable-libtool-lock was given.
12808 if test "${enable_libtool_lock+set}" = set; then :
12809 enableval=$enable_libtool_lock;
12812 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12814 # Some flags need to be propagated to the compiler or linker for good
12815 # libtool support.
12816 case $host in
12817 ia64-*-hpux*)
12818 # Find out which ABI we are using.
12819 echo 'int i;' > conftest.$ac_ext
12820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12821 (eval $ac_compile) 2>&5
12822 ac_status=$?
12823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824 test $ac_status = 0; }; then
12825 case `/usr/bin/file conftest.$ac_objext` in
12826 *ELF-32*)
12827 HPUX_IA64_MODE="32"
12829 *ELF-64*)
12830 HPUX_IA64_MODE="64"
12832 esac
12834 rm -rf conftest*
12836 *-*-irix6*)
12837 # Find out which ABI we are using.
12838 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12840 (eval $ac_compile) 2>&5
12841 ac_status=$?
12842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12843 test $ac_status = 0; }; then
12844 if test "$lt_cv_prog_gnu_ld" = yes; then
12845 case `/usr/bin/file conftest.$ac_objext` in
12846 *32-bit*)
12847 LD="${LD-ld} -melf32bsmip"
12849 *N32*)
12850 LD="${LD-ld} -melf32bmipn32"
12852 *64-bit*)
12853 LD="${LD-ld} -melf64bmip"
12855 esac
12856 else
12857 case `/usr/bin/file conftest.$ac_objext` in
12858 *32-bit*)
12859 LD="${LD-ld} -32"
12861 *N32*)
12862 LD="${LD-ld} -n32"
12864 *64-bit*)
12865 LD="${LD-ld} -64"
12867 esac
12870 rm -rf conftest*
12873 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12874 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12875 # Find out which ABI we are using.
12876 echo 'int i;' > conftest.$ac_ext
12877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12878 (eval $ac_compile) 2>&5
12879 ac_status=$?
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881 test $ac_status = 0; }; then
12882 case `/usr/bin/file conftest.o` in
12883 *32-bit*)
12884 case $host in
12885 x86_64-*kfreebsd*-gnu)
12886 LD="${LD-ld} -m elf_i386_fbsd"
12888 x86_64-*linux*)
12889 LD="${LD-ld} -m elf_i386"
12891 ppc64-*linux*|powerpc64-*linux*)
12892 LD="${LD-ld} -m elf32ppclinux"
12894 s390x-*linux*)
12895 LD="${LD-ld} -m elf_s390"
12897 sparc64-*linux*)
12898 LD="${LD-ld} -m elf32_sparc"
12900 esac
12902 *64-bit*)
12903 case $host in
12904 x86_64-*kfreebsd*-gnu)
12905 LD="${LD-ld} -m elf_x86_64_fbsd"
12907 x86_64-*linux*)
12908 LD="${LD-ld} -m elf_x86_64"
12910 ppc*-*linux*|powerpc*-*linux*)
12911 LD="${LD-ld} -m elf64ppc"
12913 s390*-*linux*|s390*-*tpf*)
12914 LD="${LD-ld} -m elf64_s390"
12916 sparc*-*linux*)
12917 LD="${LD-ld} -m elf64_sparc"
12919 esac
12921 esac
12923 rm -rf conftest*
12926 *-*-sco3.2v5*)
12927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12928 SAVE_CFLAGS="$CFLAGS"
12929 CFLAGS="$CFLAGS -belf"
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12931 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12932 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 ac_ext=c
12936 ac_cpp='$CPP $CPPFLAGS'
12937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12945 main ()
12949 return 0;
12951 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"; then :
12953 lt_cv_cc_needs_belf=yes
12954 else
12955 lt_cv_cc_needs_belf=no
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 ac_ext=c
12960 ac_cpp='$CPP $CPPFLAGS'
12961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12967 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12968 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12969 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12970 CFLAGS="$SAVE_CFLAGS"
12973 sparc*-*solaris*)
12974 # Find out which ABI we are using.
12975 echo 'int i;' > conftest.$ac_ext
12976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12977 (eval $ac_compile) 2>&5
12978 ac_status=$?
12979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12980 test $ac_status = 0; }; then
12981 case `/usr/bin/file conftest.o` in
12982 *64-bit*)
12983 case $lt_cv_prog_gnu_ld in
12984 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12986 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12987 LD="${LD-ld} -64"
12990 esac
12992 esac
12994 rm -rf conftest*
12996 esac
12998 need_locks="$enable_libtool_lock"
13001 case $host_os in
13002 rhapsody* | darwin*)
13003 if test -n "$ac_tool_prefix"; then
13004 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13005 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13007 $as_echo_n "checking for $ac_word... " >&6; }
13008 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011 if test -n "$DSYMUTIL"; then
13012 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13013 else
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13017 IFS=$as_save_IFS
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13023 break 2
13025 done
13026 done
13027 IFS=$as_save_IFS
13031 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13032 if test -n "$DSYMUTIL"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13034 $as_echo "$DSYMUTIL" >&6; }
13035 else
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037 $as_echo "no" >&6; }
13042 if test -z "$ac_cv_prog_DSYMUTIL"; then
13043 ac_ct_DSYMUTIL=$DSYMUTIL
13044 # Extract the first word of "dsymutil", so it can be a program name with args.
13045 set dummy dsymutil; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 if test -n "$ac_ct_DSYMUTIL"; then
13052 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13065 done
13066 done
13067 IFS=$as_save_IFS
13071 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13072 if test -n "$ac_ct_DSYMUTIL"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13074 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13080 if test "x$ac_ct_DSYMUTIL" = x; then
13081 DSYMUTIL=":"
13082 else
13083 case $cross_compiling:$ac_tool_warned in
13084 yes:)
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13087 ac_tool_warned=yes ;;
13088 esac
13089 DSYMUTIL=$ac_ct_DSYMUTIL
13091 else
13092 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13095 if test -n "$ac_tool_prefix"; then
13096 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13097 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13099 $as_echo_n "checking for $ac_word... " >&6; }
13100 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 if test -n "$NMEDIT"; then
13104 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13105 else
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13109 IFS=$as_save_IFS
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13113 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13115 break 2
13117 done
13118 done
13119 IFS=$as_save_IFS
13123 NMEDIT=$ac_cv_prog_NMEDIT
13124 if test -n "$NMEDIT"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13126 $as_echo "$NMEDIT" >&6; }
13127 else
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13134 if test -z "$ac_cv_prog_NMEDIT"; then
13135 ac_ct_NMEDIT=$NMEDIT
13136 # Extract the first word of "nmedit", so it can be a program name with args.
13137 set dummy nmedit; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 if test -n "$ac_ct_NMEDIT"; then
13144 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13145 else
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13157 done
13158 done
13159 IFS=$as_save_IFS
13163 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13164 if test -n "$ac_ct_NMEDIT"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13166 $as_echo "$ac_ct_NMEDIT" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13172 if test "x$ac_ct_NMEDIT" = x; then
13173 NMEDIT=":"
13174 else
13175 case $cross_compiling:$ac_tool_warned in
13176 yes:)
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13179 ac_tool_warned=yes ;;
13180 esac
13181 NMEDIT=$ac_ct_NMEDIT
13183 else
13184 NMEDIT="$ac_cv_prog_NMEDIT"
13187 if test -n "$ac_tool_prefix"; then
13188 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13189 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191 $as_echo_n "checking for $ac_word... " >&6; }
13192 if test "${ac_cv_prog_LIPO+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 if test -n "$LIPO"; then
13196 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13197 else
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13205 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 break 2
13209 done
13210 done
13211 IFS=$as_save_IFS
13215 LIPO=$ac_cv_prog_LIPO
13216 if test -n "$LIPO"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13218 $as_echo "$LIPO" >&6; }
13219 else
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221 $as_echo "no" >&6; }
13226 if test -z "$ac_cv_prog_LIPO"; then
13227 ac_ct_LIPO=$LIPO
13228 # Extract the first word of "lipo", so it can be a program name with args.
13229 set dummy lipo; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if test -n "$ac_ct_LIPO"; then
13236 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13237 else
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_ac_ct_LIPO="lipo"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 break 2
13249 done
13250 done
13251 IFS=$as_save_IFS
13255 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13256 if test -n "$ac_ct_LIPO"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13258 $as_echo "$ac_ct_LIPO" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13264 if test "x$ac_ct_LIPO" = x; then
13265 LIPO=":"
13266 else
13267 case $cross_compiling:$ac_tool_warned in
13268 yes:)
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13271 ac_tool_warned=yes ;;
13272 esac
13273 LIPO=$ac_ct_LIPO
13275 else
13276 LIPO="$ac_cv_prog_LIPO"
13279 if test -n "$ac_tool_prefix"; then
13280 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13281 set dummy ${ac_tool_prefix}otool; ac_word=$2
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13283 $as_echo_n "checking for $ac_word... " >&6; }
13284 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287 if test -n "$OTOOL"; then
13288 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13289 else
13290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291 for as_dir in $PATH
13293 IFS=$as_save_IFS
13294 test -z "$as_dir" && as_dir=.
13295 for ac_exec_ext in '' $ac_executable_extensions; do
13296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13297 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13299 break 2
13301 done
13302 done
13303 IFS=$as_save_IFS
13307 OTOOL=$ac_cv_prog_OTOOL
13308 if test -n "$OTOOL"; then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13310 $as_echo "$OTOOL" >&6; }
13311 else
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13313 $as_echo "no" >&6; }
13318 if test -z "$ac_cv_prog_OTOOL"; then
13319 ac_ct_OTOOL=$OTOOL
13320 # Extract the first word of "otool", so it can be a program name with args.
13321 set dummy otool; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13323 $as_echo_n "checking for $ac_word... " >&6; }
13324 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 if test -n "$ac_ct_OTOOL"; then
13328 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13329 else
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13333 IFS=$as_save_IFS
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337 ac_cv_prog_ac_ct_OTOOL="otool"
13338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13339 break 2
13341 done
13342 done
13343 IFS=$as_save_IFS
13347 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13348 if test -n "$ac_ct_OTOOL"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13350 $as_echo "$ac_ct_OTOOL" >&6; }
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13356 if test "x$ac_ct_OTOOL" = x; then
13357 OTOOL=":"
13358 else
13359 case $cross_compiling:$ac_tool_warned in
13360 yes:)
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13363 ac_tool_warned=yes ;;
13364 esac
13365 OTOOL=$ac_ct_OTOOL
13367 else
13368 OTOOL="$ac_cv_prog_OTOOL"
13371 if test -n "$ac_tool_prefix"; then
13372 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13373 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375 $as_echo_n "checking for $ac_word... " >&6; }
13376 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if test -n "$OTOOL64"; then
13380 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13381 else
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13393 done
13394 done
13395 IFS=$as_save_IFS
13399 OTOOL64=$ac_cv_prog_OTOOL64
13400 if test -n "$OTOOL64"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13402 $as_echo "$OTOOL64" >&6; }
13403 else
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405 $as_echo "no" >&6; }
13410 if test -z "$ac_cv_prog_OTOOL64"; then
13411 ac_ct_OTOOL64=$OTOOL64
13412 # Extract the first word of "otool64", so it can be a program name with args.
13413 set dummy otool64; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415 $as_echo_n "checking for $ac_word... " >&6; }
13416 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 if test -n "$ac_ct_OTOOL64"; then
13420 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13421 else
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13429 ac_cv_prog_ac_ct_OTOOL64="otool64"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13431 break 2
13433 done
13434 done
13435 IFS=$as_save_IFS
13439 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13440 if test -n "$ac_ct_OTOOL64"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13442 $as_echo "$ac_ct_OTOOL64" >&6; }
13443 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13448 if test "x$ac_ct_OTOOL64" = x; then
13449 OTOOL64=":"
13450 else
13451 case $cross_compiling:$ac_tool_warned in
13452 yes:)
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13455 ac_tool_warned=yes ;;
13456 esac
13457 OTOOL64=$ac_ct_OTOOL64
13459 else
13460 OTOOL64="$ac_cv_prog_OTOOL64"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13490 $as_echo_n "checking for -single_module linker flag... " >&6; }
13491 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 lt_cv_apple_cc_single_mod=no
13495 if test -z "${LT_MULTI_MODULE}"; then
13496 # By default we will add the -single_module flag. You can override
13497 # by either setting the environment variable LT_MULTI_MODULE
13498 # non-empty at configure time, or by adding -multi_module to the
13499 # link flags.
13500 rm -rf libconftest.dylib*
13501 echo "int foo(void){return 1;}" > conftest.c
13502 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13503 -dynamiclib -Wl,-single_module conftest.c" >&5
13504 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13505 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13506 _lt_result=$?
13507 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13508 lt_cv_apple_cc_single_mod=yes
13509 else
13510 cat conftest.err >&5
13512 rm -rf libconftest.dylib*
13513 rm -f conftest.*
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13517 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13519 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13520 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 lt_cv_ld_exported_symbols_list=no
13524 save_LDFLAGS=$LDFLAGS
13525 echo "_main" > conftest.sym
13526 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13531 main ()
13535 return 0;
13537 _ACEOF
13538 if ac_fn_c_try_link "$LINENO"; then :
13539 lt_cv_ld_exported_symbols_list=yes
13540 else
13541 lt_cv_ld_exported_symbols_list=no
13543 rm -f core conftest.err conftest.$ac_objext \
13544 conftest$ac_exeext conftest.$ac_ext
13545 LDFLAGS="$save_LDFLAGS"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13549 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13551 $as_echo_n "checking for -force_load linker flag... " >&6; }
13552 if test "${lt_cv_ld_force_load+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13555 lt_cv_ld_force_load=no
13556 cat > conftest.c << _LT_EOF
13557 int forced_loaded() { return 2;}
13558 _LT_EOF
13559 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13560 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13561 echo "$AR cru libconftest.a conftest.o" >&5
13562 $AR cru libconftest.a conftest.o 2>&5
13563 cat > conftest.c << _LT_EOF
13564 int main() { return 0;}
13565 _LT_EOF
13566 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13567 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13568 _lt_result=$?
13569 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13570 lt_cv_ld_force_load=yes
13571 else
13572 cat conftest.err >&5
13574 rm -f conftest.err libconftest.a conftest conftest.c
13575 rm -rf conftest.dSYM
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13579 $as_echo "$lt_cv_ld_force_load" >&6; }
13580 case $host_os in
13581 rhapsody* | darwin1.[012])
13582 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13583 darwin1.*)
13584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13585 darwin*) # darwin 5.x on
13586 # if running on 10.5 or later, the deployment target defaults
13587 # to the OS version, if on x86, and 10.4, the deployment
13588 # target defaults to 10.4. Don't you love it?
13589 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13590 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13591 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13592 10.[012]*)
13593 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13594 10.*)
13595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13596 esac
13598 esac
13599 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13600 _lt_dar_single_mod='$single_module'
13602 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13603 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13604 else
13605 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13607 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13608 _lt_dsymutil='~$DSYMUTIL $lib || :'
13609 else
13610 _lt_dsymutil=
13613 esac
13615 for ac_header in dlfcn.h
13616 do :
13617 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13618 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13619 cat >>confdefs.h <<_ACEOF
13620 #define HAVE_DLFCN_H 1
13621 _ACEOF
13624 done
13631 # Set options
13635 enable_dlopen=no
13638 enable_win32_dll=no
13641 # Check whether --enable-shared was given.
13642 if test "${enable_shared+set}" = set; then :
13643 enableval=$enable_shared; p=${PACKAGE-default}
13644 case $enableval in
13645 yes) enable_shared=yes ;;
13646 no) enable_shared=no ;;
13648 enable_shared=no
13649 # Look at the argument we got. We use all the common list separators.
13650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13651 for pkg in $enableval; do
13652 IFS="$lt_save_ifs"
13653 if test "X$pkg" = "X$p"; then
13654 enable_shared=yes
13656 done
13657 IFS="$lt_save_ifs"
13659 esac
13660 else
13661 enable_shared=yes
13672 # Check whether --enable-static was given.
13673 if test "${enable_static+set}" = set; then :
13674 enableval=$enable_static; p=${PACKAGE-default}
13675 case $enableval in
13676 yes) enable_static=yes ;;
13677 no) enable_static=no ;;
13679 enable_static=no
13680 # Look at the argument we got. We use all the common list separators.
13681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13682 for pkg in $enableval; do
13683 IFS="$lt_save_ifs"
13684 if test "X$pkg" = "X$p"; then
13685 enable_static=yes
13687 done
13688 IFS="$lt_save_ifs"
13690 esac
13691 else
13692 enable_static=yes
13704 # Check whether --with-pic was given.
13705 if test "${with_pic+set}" = set; then :
13706 withval=$with_pic; pic_mode="$withval"
13707 else
13708 pic_mode=default
13712 test -z "$pic_mode" && pic_mode=default
13720 # Check whether --enable-fast-install was given.
13721 if test "${enable_fast_install+set}" = set; then :
13722 enableval=$enable_fast_install; p=${PACKAGE-default}
13723 case $enableval in
13724 yes) enable_fast_install=yes ;;
13725 no) enable_fast_install=no ;;
13727 enable_fast_install=no
13728 # Look at the argument we got. We use all the common list separators.
13729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13730 for pkg in $enableval; do
13731 IFS="$lt_save_ifs"
13732 if test "X$pkg" = "X$p"; then
13733 enable_fast_install=yes
13735 done
13736 IFS="$lt_save_ifs"
13738 esac
13739 else
13740 enable_fast_install=yes
13753 # This can be used to rebuild libtool when needed
13754 LIBTOOL_DEPS="$ltmain"
13756 # Always use our own libtool.
13757 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13784 test -z "$LN_S" && LN_S="ln -s"
13799 if test -n "${ZSH_VERSION+set}" ; then
13800 setopt NO_GLOB_SUBST
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13804 $as_echo_n "checking for objdir... " >&6; }
13805 if test "${lt_cv_objdir+set}" = set; then :
13806 $as_echo_n "(cached) " >&6
13807 else
13808 rm -f .libs 2>/dev/null
13809 mkdir .libs 2>/dev/null
13810 if test -d .libs; then
13811 lt_cv_objdir=.libs
13812 else
13813 # MS-DOS does not allow filenames that begin with a dot.
13814 lt_cv_objdir=_libs
13816 rmdir .libs 2>/dev/null
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13819 $as_echo "$lt_cv_objdir" >&6; }
13820 objdir=$lt_cv_objdir
13826 cat >>confdefs.h <<_ACEOF
13827 #define LT_OBJDIR "$lt_cv_objdir/"
13828 _ACEOF
13833 case $host_os in
13834 aix3*)
13835 # AIX sometimes has problems with the GCC collect2 program. For some
13836 # reason, if we set the COLLECT_NAMES environment variable, the problems
13837 # vanish in a puff of smoke.
13838 if test "X${COLLECT_NAMES+set}" != Xset; then
13839 COLLECT_NAMES=
13840 export COLLECT_NAMES
13843 esac
13845 # Global variables:
13846 ofile=libtool
13847 can_build_shared=yes
13849 # All known linkers require a `.a' archive for static linking (except MSVC,
13850 # which needs '.lib').
13851 libext=a
13853 with_gnu_ld="$lt_cv_prog_gnu_ld"
13855 old_CC="$CC"
13856 old_CFLAGS="$CFLAGS"
13858 # Set sane defaults for various variables
13859 test -z "$CC" && CC=cc
13860 test -z "$LTCC" && LTCC=$CC
13861 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13862 test -z "$LD" && LD=ld
13863 test -z "$ac_objext" && ac_objext=o
13865 for cc_temp in $compiler""; do
13866 case $cc_temp in
13867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13869 \-*) ;;
13870 *) break;;
13871 esac
13872 done
13873 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13876 # Only perform the check for file, if the check method requires it
13877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13878 case $deplibs_check_method in
13879 file_magic*)
13880 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13882 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 case $MAGIC_CMD in
13887 [\\/*] | ?:[\\/]*)
13888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13891 lt_save_MAGIC_CMD="$MAGIC_CMD"
13892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13894 for ac_dir in $ac_dummy; do
13895 IFS="$lt_save_ifs"
13896 test -z "$ac_dir" && ac_dir=.
13897 if test -f $ac_dir/${ac_tool_prefix}file; then
13898 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13899 if test -n "$file_magic_test_file"; then
13900 case $deplibs_check_method in
13901 "file_magic "*)
13902 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13905 $EGREP "$file_magic_regex" > /dev/null; then
13907 else
13908 cat <<_LT_EOF 1>&2
13910 *** Warning: the command libtool uses to detect shared libraries,
13911 *** $file_magic_cmd, produces output that libtool cannot recognize.
13912 *** The result is that libtool may fail to recognize shared libraries
13913 *** as such. This will affect the creation of libtool libraries that
13914 *** depend on shared libraries, but programs linked with such libtool
13915 *** libraries will work regardless of this problem. Nevertheless, you
13916 *** may want to report the problem to your system manager and/or to
13917 *** bug-libtool@gnu.org
13919 _LT_EOF
13920 fi ;;
13921 esac
13923 break
13925 done
13926 IFS="$lt_save_ifs"
13927 MAGIC_CMD="$lt_save_MAGIC_CMD"
13929 esac
13932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13933 if test -n "$MAGIC_CMD"; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13935 $as_echo "$MAGIC_CMD" >&6; }
13936 else
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13945 if test -z "$lt_cv_path_MAGIC_CMD"; then
13946 if test -n "$ac_tool_prefix"; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13948 $as_echo_n "checking for file... " >&6; }
13949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 case $MAGIC_CMD in
13953 [\\/*] | ?:[\\/]*)
13954 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13957 lt_save_MAGIC_CMD="$MAGIC_CMD"
13958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13959 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13960 for ac_dir in $ac_dummy; do
13961 IFS="$lt_save_ifs"
13962 test -z "$ac_dir" && ac_dir=.
13963 if test -f $ac_dir/file; then
13964 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13965 if test -n "$file_magic_test_file"; then
13966 case $deplibs_check_method in
13967 "file_magic "*)
13968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13971 $EGREP "$file_magic_regex" > /dev/null; then
13973 else
13974 cat <<_LT_EOF 1>&2
13976 *** Warning: the command libtool uses to detect shared libraries,
13977 *** $file_magic_cmd, produces output that libtool cannot recognize.
13978 *** The result is that libtool may fail to recognize shared libraries
13979 *** as such. This will affect the creation of libtool libraries that
13980 *** depend on shared libraries, but programs linked with such libtool
13981 *** libraries will work regardless of this problem. Nevertheless, you
13982 *** may want to report the problem to your system manager and/or to
13983 *** bug-libtool@gnu.org
13985 _LT_EOF
13986 fi ;;
13987 esac
13989 break
13991 done
13992 IFS="$lt_save_ifs"
13993 MAGIC_CMD="$lt_save_MAGIC_CMD"
13995 esac
13998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13999 if test -n "$MAGIC_CMD"; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14001 $as_echo "$MAGIC_CMD" >&6; }
14002 else
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14004 $as_echo "no" >&6; }
14008 else
14009 MAGIC_CMD=:
14015 esac
14017 # Use C for the default configuration in the libtool script
14019 lt_save_CC="$CC"
14020 ac_ext=c
14021 ac_cpp='$CPP $CPPFLAGS'
14022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027 # Source file extension for C test sources.
14028 ac_ext=c
14030 # Object file extension for compiled C test sources.
14031 objext=o
14032 objext=$objext
14034 # Code to be used in simple compile tests
14035 lt_simple_compile_test_code="int some_variable = 0;"
14037 # Code to be used in simple link tests
14038 lt_simple_link_test_code='int main(){return(0);}'
14046 # If no C compiler was specified, use CC.
14047 LTCC=${LTCC-"$CC"}
14049 # If no C compiler flags were specified, use CFLAGS.
14050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14052 # Allow CC to be a program name with arguments.
14053 compiler=$CC
14055 # Save the default compiler, since it gets overwritten when the other
14056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14057 compiler_DEFAULT=$CC
14059 # save warnings/boilerplate of simple test code
14060 ac_outfile=conftest.$ac_objext
14061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14063 _lt_compiler_boilerplate=`cat conftest.err`
14064 $RM conftest*
14066 ac_outfile=conftest.$ac_objext
14067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14069 _lt_linker_boilerplate=`cat conftest.err`
14070 $RM -r conftest*
14073 ## CAVEAT EMPTOR:
14074 ## There is no encapsulation within the following macros, do not change
14075 ## the running order or otherwise move them around unless you know exactly
14076 ## what you are doing...
14077 if test -n "$compiler"; then
14079 lt_prog_compiler_no_builtin_flag=
14081 if test "$GCC" = yes; then
14082 case $cc_basename in
14083 nvcc*)
14084 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14086 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14087 esac
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14090 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14091 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 lt_cv_prog_compiler_rtti_exceptions=no
14095 ac_outfile=conftest.$ac_objext
14096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14097 lt_compiler_flag="-fno-rtti -fno-exceptions"
14098 # Insert the option either (1) after the last *FLAGS variable, or
14099 # (2) before a word containing "conftest.", or (3) at the end.
14100 # Note that $ac_compile itself does not contain backslashes and begins
14101 # with a dollar sign (not a hyphen), so the echo should work correctly.
14102 # The option is referenced via a variable to avoid confusing sed.
14103 lt_compile=`echo "$ac_compile" | $SED \
14104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106 -e 's:$: $lt_compiler_flag:'`
14107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14108 (eval "$lt_compile" 2>conftest.err)
14109 ac_status=$?
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 if (exit $ac_status) && test -s "$ac_outfile"; then
14113 # The compiler can only warn and ignore the option if not recognized
14114 # So say no if there are warnings other than the usual output.
14115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14118 lt_cv_prog_compiler_rtti_exceptions=yes
14121 $RM conftest*
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14125 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14128 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14129 else
14140 lt_prog_compiler_wl=
14141 lt_prog_compiler_pic=
14142 lt_prog_compiler_static=
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14147 if test "$GCC" = yes; then
14148 lt_prog_compiler_wl='-Wl,'
14149 lt_prog_compiler_static='-static'
14151 case $host_os in
14152 aix*)
14153 # All AIX code is PIC.
14154 if test "$host_cpu" = ia64; then
14155 # AIX 5 now supports IA64 processor
14156 lt_prog_compiler_static='-Bstatic'
14160 amigaos*)
14161 case $host_cpu in
14162 powerpc)
14163 # see comment about AmigaOS4 .so support
14164 lt_prog_compiler_pic='-fPIC'
14166 m68k)
14167 # FIXME: we need at least 68020 code to build shared libraries, but
14168 # adding the `-m68020' flag to GCC prevents building anything better,
14169 # like `-m68040'.
14170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14172 esac
14175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14176 # PIC is the default for these OSes.
14179 mingw* | cygwin* | pw32* | os2* | cegcc*)
14180 # This hack is so that the source file can tell whether it is being
14181 # built for inclusion in a dll (and should export symbols for example).
14182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14183 # (--disable-auto-import) libraries
14184 lt_prog_compiler_pic='-DDLL_EXPORT'
14187 darwin* | rhapsody*)
14188 # PIC is the default on this platform
14189 # Common symbols not allowed in MH_DYLIB files
14190 lt_prog_compiler_pic='-fno-common'
14193 haiku*)
14194 # PIC is the default for Haiku.
14195 # The "-static" flag exists, but is broken.
14196 lt_prog_compiler_static=
14199 hpux*)
14200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14202 # sets the default TLS model and affects inlining.
14203 case $host_cpu in
14204 hppa*64*)
14205 # +Z the default
14208 lt_prog_compiler_pic='-fPIC'
14210 esac
14213 interix[3-9]*)
14214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14215 # Instead, we relocate shared libraries at runtime.
14218 msdosdjgpp*)
14219 # Just because we use GCC doesn't mean we suddenly get shared libraries
14220 # on systems that don't support them.
14221 lt_prog_compiler_can_build_shared=no
14222 enable_shared=no
14225 *nto* | *qnx*)
14226 # QNX uses GNU C++, but need to define -shared option too, otherwise
14227 # it will coredump.
14228 lt_prog_compiler_pic='-fPIC -shared'
14231 sysv4*MP*)
14232 if test -d /usr/nec; then
14233 lt_prog_compiler_pic=-Kconform_pic
14238 lt_prog_compiler_pic='-fPIC'
14240 esac
14242 case $cc_basename in
14243 nvcc*) # Cuda Compiler Driver 2.2
14244 lt_prog_compiler_wl='-Xlinker '
14245 lt_prog_compiler_pic='-Xcompiler -fPIC'
14247 esac
14248 else
14249 # PORTME Check for flag to pass linker flags through the system compiler.
14250 case $host_os in
14251 aix*)
14252 lt_prog_compiler_wl='-Wl,'
14253 if test "$host_cpu" = ia64; then
14254 # AIX 5 now supports IA64 processor
14255 lt_prog_compiler_static='-Bstatic'
14256 else
14257 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14261 mingw* | cygwin* | pw32* | os2* | cegcc*)
14262 # This hack is so that the source file can tell whether it is being
14263 # built for inclusion in a dll (and should export symbols for example).
14264 lt_prog_compiler_pic='-DDLL_EXPORT'
14267 hpux9* | hpux10* | hpux11*)
14268 lt_prog_compiler_wl='-Wl,'
14269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14270 # not for PA HP-UX.
14271 case $host_cpu in
14272 hppa*64*|ia64*)
14273 # +Z the default
14276 lt_prog_compiler_pic='+Z'
14278 esac
14279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14280 lt_prog_compiler_static='${wl}-a ${wl}archive'
14283 irix5* | irix6* | nonstopux*)
14284 lt_prog_compiler_wl='-Wl,'
14285 # PIC (with -KPIC) is the default.
14286 lt_prog_compiler_static='-non_shared'
14289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14290 case $cc_basename in
14291 # old Intel for x86_64 which still supported -KPIC.
14292 ecc*)
14293 lt_prog_compiler_wl='-Wl,'
14294 lt_prog_compiler_pic='-KPIC'
14295 lt_prog_compiler_static='-static'
14297 # icc used to be incompatible with GCC.
14298 # ICC 10 doesn't accept -KPIC any more.
14299 icc* | ifort*)
14300 lt_prog_compiler_wl='-Wl,'
14301 lt_prog_compiler_pic='-fPIC'
14302 lt_prog_compiler_static='-static'
14304 # Lahey Fortran 8.1.
14305 lf95*)
14306 lt_prog_compiler_wl='-Wl,'
14307 lt_prog_compiler_pic='--shared'
14308 lt_prog_compiler_static='--static'
14310 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14311 # Portland Group compilers (*not* the Pentium gcc compiler,
14312 # which looks to be a dead project)
14313 lt_prog_compiler_wl='-Wl,'
14314 lt_prog_compiler_pic='-fpic'
14315 lt_prog_compiler_static='-Bstatic'
14317 ccc*)
14318 lt_prog_compiler_wl='-Wl,'
14319 # All Alpha code is PIC.
14320 lt_prog_compiler_static='-non_shared'
14322 xl* | bgxl* | bgf* | mpixl*)
14323 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14324 lt_prog_compiler_wl='-Wl,'
14325 lt_prog_compiler_pic='-qpic'
14326 lt_prog_compiler_static='-qstaticlink'
14329 case `$CC -V 2>&1 | sed 5q` in
14330 *Sun\ F* | *Sun*Fortran*)
14331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14332 lt_prog_compiler_pic='-KPIC'
14333 lt_prog_compiler_static='-Bstatic'
14334 lt_prog_compiler_wl=''
14336 *Sun\ C*)
14337 # Sun C 5.9
14338 lt_prog_compiler_pic='-KPIC'
14339 lt_prog_compiler_static='-Bstatic'
14340 lt_prog_compiler_wl='-Wl,'
14342 esac
14344 esac
14347 newsos6)
14348 lt_prog_compiler_pic='-KPIC'
14349 lt_prog_compiler_static='-Bstatic'
14352 *nto* | *qnx*)
14353 # QNX uses GNU C++, but need to define -shared option too, otherwise
14354 # it will coredump.
14355 lt_prog_compiler_pic='-fPIC -shared'
14358 osf3* | osf4* | osf5*)
14359 lt_prog_compiler_wl='-Wl,'
14360 # All OSF/1 code is PIC.
14361 lt_prog_compiler_static='-non_shared'
14364 rdos*)
14365 lt_prog_compiler_static='-non_shared'
14368 solaris*)
14369 lt_prog_compiler_pic='-KPIC'
14370 lt_prog_compiler_static='-Bstatic'
14371 case $cc_basename in
14372 f77* | f90* | f95*)
14373 lt_prog_compiler_wl='-Qoption ld ';;
14375 lt_prog_compiler_wl='-Wl,';;
14376 esac
14379 sunos4*)
14380 lt_prog_compiler_wl='-Qoption ld '
14381 lt_prog_compiler_pic='-PIC'
14382 lt_prog_compiler_static='-Bstatic'
14385 sysv4 | sysv4.2uw2* | sysv4.3*)
14386 lt_prog_compiler_wl='-Wl,'
14387 lt_prog_compiler_pic='-KPIC'
14388 lt_prog_compiler_static='-Bstatic'
14391 sysv4*MP*)
14392 if test -d /usr/nec ;then
14393 lt_prog_compiler_pic='-Kconform_pic'
14394 lt_prog_compiler_static='-Bstatic'
14398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14399 lt_prog_compiler_wl='-Wl,'
14400 lt_prog_compiler_pic='-KPIC'
14401 lt_prog_compiler_static='-Bstatic'
14404 unicos*)
14405 lt_prog_compiler_wl='-Wl,'
14406 lt_prog_compiler_can_build_shared=no
14409 uts4*)
14410 lt_prog_compiler_pic='-pic'
14411 lt_prog_compiler_static='-Bstatic'
14415 lt_prog_compiler_can_build_shared=no
14417 esac
14420 case $host_os in
14421 # For platforms which do not support PIC, -DPIC is meaningless:
14422 *djgpp*)
14423 lt_prog_compiler_pic=
14426 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14428 esac
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14430 $as_echo "$lt_prog_compiler_pic" >&6; }
14438 # Check to make sure the PIC flag actually works.
14440 if test -n "$lt_prog_compiler_pic"; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14442 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14443 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14444 $as_echo_n "(cached) " >&6
14445 else
14446 lt_cv_prog_compiler_pic_works=no
14447 ac_outfile=conftest.$ac_objext
14448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14450 # Insert the option either (1) after the last *FLAGS variable, or
14451 # (2) before a word containing "conftest.", or (3) at the end.
14452 # Note that $ac_compile itself does not contain backslashes and begins
14453 # with a dollar sign (not a hyphen), so the echo should work correctly.
14454 # The option is referenced via a variable to avoid confusing sed.
14455 lt_compile=`echo "$ac_compile" | $SED \
14456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458 -e 's:$: $lt_compiler_flag:'`
14459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14460 (eval "$lt_compile" 2>conftest.err)
14461 ac_status=$?
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 if (exit $ac_status) && test -s "$ac_outfile"; then
14465 # The compiler can only warn and ignore the option if not recognized
14466 # So say no if there are warnings other than the usual output.
14467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14470 lt_cv_prog_compiler_pic_works=yes
14473 $RM conftest*
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14477 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14479 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14480 case $lt_prog_compiler_pic in
14481 "" | " "*) ;;
14482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14483 esac
14484 else
14485 lt_prog_compiler_pic=
14486 lt_prog_compiler_can_build_shared=no
14497 # Check to make sure the static flag actually works.
14499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14502 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 lt_cv_prog_compiler_static_works=no
14506 save_LDFLAGS="$LDFLAGS"
14507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14510 # The linker can only warn and ignore the option if not recognized
14511 # So say no if there are warnings
14512 if test -s conftest.err; then
14513 # Append any errors to the config.log.
14514 cat conftest.err 1>&5
14515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517 if diff conftest.exp conftest.er2 >/dev/null; then
14518 lt_cv_prog_compiler_static_works=yes
14520 else
14521 lt_cv_prog_compiler_static_works=yes
14524 $RM -r conftest*
14525 LDFLAGS="$save_LDFLAGS"
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14529 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14531 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14533 else
14534 lt_prog_compiler_static=
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14546 $as_echo_n "(cached) " >&6
14547 else
14548 lt_cv_prog_compiler_c_o=no
14549 $RM -r conftest 2>/dev/null
14550 mkdir conftest
14551 cd conftest
14552 mkdir out
14553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14555 lt_compiler_flag="-o out/conftest2.$ac_objext"
14556 # Insert the option either (1) after the last *FLAGS variable, or
14557 # (2) before a word containing "conftest.", or (3) at the end.
14558 # Note that $ac_compile itself does not contain backslashes and begins
14559 # with a dollar sign (not a hyphen), so the echo should work correctly.
14560 lt_compile=`echo "$ac_compile" | $SED \
14561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14563 -e 's:$: $lt_compiler_flag:'`
14564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14565 (eval "$lt_compile" 2>out/conftest.err)
14566 ac_status=$?
14567 cat out/conftest.err >&5
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14570 then
14571 # The compiler can only warn and ignore the option if not recognized
14572 # So say no if there are warnings
14573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14576 lt_cv_prog_compiler_c_o=yes
14579 chmod u+w . 2>&5
14580 $RM conftest*
14581 # SGI C++ compiler will create directory out/ii_files/ for
14582 # template instantiation
14583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14584 $RM out/* && rmdir out
14585 cd ..
14586 $RM -r conftest
14587 $RM conftest*
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14600 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14601 $as_echo_n "(cached) " >&6
14602 else
14603 lt_cv_prog_compiler_c_o=no
14604 $RM -r conftest 2>/dev/null
14605 mkdir conftest
14606 cd conftest
14607 mkdir out
14608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14610 lt_compiler_flag="-o out/conftest2.$ac_objext"
14611 # Insert the option either (1) after the last *FLAGS variable, or
14612 # (2) before a word containing "conftest.", or (3) at the end.
14613 # Note that $ac_compile itself does not contain backslashes and begins
14614 # with a dollar sign (not a hyphen), so the echo should work correctly.
14615 lt_compile=`echo "$ac_compile" | $SED \
14616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14618 -e 's:$: $lt_compiler_flag:'`
14619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14620 (eval "$lt_compile" 2>out/conftest.err)
14621 ac_status=$?
14622 cat out/conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14625 then
14626 # The compiler can only warn and ignore the option if not recognized
14627 # So say no if there are warnings
14628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14631 lt_cv_prog_compiler_c_o=yes
14634 chmod u+w . 2>&5
14635 $RM conftest*
14636 # SGI C++ compiler will create directory out/ii_files/ for
14637 # template instantiation
14638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14639 $RM out/* && rmdir out
14640 cd ..
14641 $RM -r conftest
14642 $RM conftest*
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14651 hard_links="nottested"
14652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14653 # do not overwrite the value of need_locks provided by the user
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14655 $as_echo_n "checking if we can lock with hard links... " >&6; }
14656 hard_links=yes
14657 $RM conftest*
14658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14659 touch conftest.a
14660 ln conftest.a conftest.b 2>&5 || hard_links=no
14661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14663 $as_echo "$hard_links" >&6; }
14664 if test "$hard_links" = no; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14667 need_locks=warn
14669 else
14670 need_locks=no
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14679 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14681 runpath_var=
14682 allow_undefined_flag=
14683 always_export_symbols=no
14684 archive_cmds=
14685 archive_expsym_cmds=
14686 compiler_needs_object=no
14687 enable_shared_with_static_runtimes=no
14688 export_dynamic_flag_spec=
14689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14690 hardcode_automatic=no
14691 hardcode_direct=no
14692 hardcode_direct_absolute=no
14693 hardcode_libdir_flag_spec=
14694 hardcode_libdir_flag_spec_ld=
14695 hardcode_libdir_separator=
14696 hardcode_minus_L=no
14697 hardcode_shlibpath_var=unsupported
14698 inherit_rpath=no
14699 link_all_deplibs=unknown
14700 module_cmds=
14701 module_expsym_cmds=
14702 old_archive_from_new_cmds=
14703 old_archive_from_expsyms_cmds=
14704 thread_safe_flag_spec=
14705 whole_archive_flag_spec=
14706 # include_expsyms should be a list of space-separated symbols to be *always*
14707 # included in the symbol list
14708 include_expsyms=
14709 # exclude_expsyms can be an extended regexp of symbols to exclude
14710 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14712 # as well as any symbol that contains `d'.
14713 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14715 # platforms (ab)use it in PIC code, but their linkers get confused if
14716 # the symbol is explicitly referenced. Since portable code cannot
14717 # rely on this symbol name, it's probably fine to never include it in
14718 # preloaded symbol tables.
14719 # Exclude shared library initialization/finalization symbols.
14720 extract_expsyms_cmds=
14722 case $host_os in
14723 cygwin* | mingw* | pw32* | cegcc*)
14724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14725 # When not using gcc, we currently assume that we are using
14726 # Microsoft Visual C++.
14727 if test "$GCC" != yes; then
14728 with_gnu_ld=no
14731 interix*)
14732 # we just hope/assume this is gcc and not c89 (= MSVC++)
14733 with_gnu_ld=yes
14735 openbsd*)
14736 with_gnu_ld=no
14738 esac
14740 ld_shlibs=yes
14742 # On some targets, GNU ld is compatible enough with the native linker
14743 # that we're better off using the native interface for both.
14744 lt_use_gnu_ld_interface=no
14745 if test "$with_gnu_ld" = yes; then
14746 case $host_os in
14747 aix*)
14748 # The AIX port of GNU ld has always aspired to compatibility
14749 # with the native linker. However, as the warning in the GNU ld
14750 # block says, versions before 2.19.5* couldn't really create working
14751 # shared libraries, regardless of the interface used.
14752 case `$LD -v 2>&1` in
14753 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14754 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14755 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14757 lt_use_gnu_ld_interface=yes
14759 esac
14762 lt_use_gnu_ld_interface=yes
14764 esac
14767 if test "$lt_use_gnu_ld_interface" = yes; then
14768 # If archive_cmds runs LD, not CC, wlarc should be empty
14769 wlarc='${wl}'
14771 # Set some defaults for GNU ld with shared library support. These
14772 # are reset later if shared libraries are not supported. Putting them
14773 # here allows them to be overridden if necessary.
14774 runpath_var=LD_RUN_PATH
14775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14776 export_dynamic_flag_spec='${wl}--export-dynamic'
14777 # ancient GNU ld didn't support --whole-archive et. al.
14778 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14779 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14780 else
14781 whole_archive_flag_spec=
14783 supports_anon_versioning=no
14784 case `$LD -v 2>&1` in
14785 *GNU\ gold*) supports_anon_versioning=yes ;;
14786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14789 *\ 2.11.*) ;; # other 2.11 versions
14790 *) supports_anon_versioning=yes ;;
14791 esac
14793 # See if GNU ld supports shared libraries.
14794 case $host_os in
14795 aix[3-9]*)
14796 # On AIX/PPC, the GNU linker is very broken
14797 if test "$host_cpu" != ia64; then
14798 ld_shlibs=no
14799 cat <<_LT_EOF 1>&2
14801 *** Warning: the GNU linker, at least up to release 2.19, is reported
14802 *** to be unable to reliably create shared libraries on AIX.
14803 *** Therefore, libtool is disabling shared libraries support. If you
14804 *** really care for shared libraries, you may want to install binutils
14805 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14806 *** You will then need to restart the configuration process.
14808 _LT_EOF
14812 amigaos*)
14813 case $host_cpu in
14814 powerpc)
14815 # see comment about AmigaOS4 .so support
14816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14817 archive_expsym_cmds=''
14819 m68k)
14820 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)'
14821 hardcode_libdir_flag_spec='-L$libdir'
14822 hardcode_minus_L=yes
14824 esac
14827 beos*)
14828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14829 allow_undefined_flag=unsupported
14830 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14831 # support --undefined. This deserves some investigation. FIXME
14832 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14833 else
14834 ld_shlibs=no
14838 cygwin* | mingw* | pw32* | cegcc*)
14839 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14840 # as there is no search path for DLLs.
14841 hardcode_libdir_flag_spec='-L$libdir'
14842 export_dynamic_flag_spec='${wl}--export-all-symbols'
14843 allow_undefined_flag=unsupported
14844 always_export_symbols=no
14845 enable_shared_with_static_runtimes=yes
14846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14848 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14850 # If the export-symbols file already is a .def file (1st line
14851 # is EXPORTS), use it as is; otherwise, prepend...
14852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14853 cp $export_symbols $output_objdir/$soname.def;
14854 else
14855 echo EXPORTS > $output_objdir/$soname.def;
14856 cat $export_symbols >> $output_objdir/$soname.def;
14858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14859 else
14860 ld_shlibs=no
14864 haiku*)
14865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14866 link_all_deplibs=yes
14869 interix[3-9]*)
14870 hardcode_direct=no
14871 hardcode_shlibpath_var=no
14872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14873 export_dynamic_flag_spec='${wl}-E'
14874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14875 # Instead, shared libraries are loaded at an image base (0x10000000 by
14876 # default) and relocated if they conflict, which is a slow very memory
14877 # consuming and fragmenting process. To avoid this, we pick a random,
14878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14881 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'
14884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14885 tmp_diet=no
14886 if test "$host_os" = linux-dietlibc; then
14887 case $cc_basename in
14888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14889 esac
14891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14892 && test "$tmp_diet" = no
14893 then
14894 tmp_addflag=
14895 tmp_sharedflag='-shared'
14896 case $cc_basename,$host_cpu in
14897 pgcc*) # Portland Group C compiler
14898 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'
14899 tmp_addflag=' $pic_flag'
14901 pgf77* | pgf90* | pgf95* | pgfortran*)
14902 # Portland Group f77 and f90 compilers
14903 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'
14904 tmp_addflag=' $pic_flag -Mnomain' ;;
14905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14906 tmp_addflag=' -i_dynamic' ;;
14907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14908 tmp_addflag=' -i_dynamic -nofor_main' ;;
14909 ifc* | ifort*) # Intel Fortran compiler
14910 tmp_addflag=' -nofor_main' ;;
14911 lf95*) # Lahey Fortran 8.1
14912 whole_archive_flag_spec=
14913 tmp_sharedflag='--shared' ;;
14914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14915 tmp_sharedflag='-qmkshrobj'
14916 tmp_addflag= ;;
14917 nvcc*) # Cuda Compiler Driver 2.2
14918 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'
14919 compiler_needs_object=yes
14921 esac
14922 case `$CC -V 2>&1 | sed 5q` in
14923 *Sun\ C*) # Sun C 5.9
14924 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'
14925 compiler_needs_object=yes
14926 tmp_sharedflag='-G' ;;
14927 *Sun\ F*) # Sun Fortran 8.3
14928 tmp_sharedflag='-G' ;;
14929 esac
14930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932 if test "x$supports_anon_versioning" = xyes; then
14933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14935 echo "local: *; };" >> $output_objdir/$libname.ver~
14936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14939 case $cc_basename in
14940 xlf* | bgf* | bgxlf* | mpixlf*)
14941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14942 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14943 hardcode_libdir_flag_spec=
14944 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14945 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14946 if test "x$supports_anon_versioning" = xyes; then
14947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14949 echo "local: *; };" >> $output_objdir/$libname.ver~
14950 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14953 esac
14954 else
14955 ld_shlibs=no
14959 netbsd*)
14960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14961 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14962 wlarc=
14963 else
14964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14969 solaris*)
14970 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14971 ld_shlibs=no
14972 cat <<_LT_EOF 1>&2
14974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14975 *** create shared libraries on Solaris systems. Therefore, libtool
14976 *** is disabling shared libraries support. We urge you to upgrade GNU
14977 *** binutils to release 2.9.1 or newer. Another option is to modify
14978 *** your PATH or compiler configuration so that the native linker is
14979 *** used, and then restart.
14981 _LT_EOF
14982 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14985 else
14986 ld_shlibs=no
14990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14991 case `$LD -v 2>&1` in
14992 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14993 ld_shlibs=no
14994 cat <<_LT_EOF 1>&2
14996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14997 *** reliably create shared libraries on SCO systems. Therefore, libtool
14998 *** is disabling shared libraries support. We urge you to upgrade GNU
14999 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15000 *** your PATH or compiler configuration so that the native linker is
15001 *** used, and then restart.
15003 _LT_EOF
15006 # For security reasons, it is highly recommended that you always
15007 # use absolute paths for naming shared libraries, and exclude the
15008 # DT_RUNPATH tag from executables and libraries. But doing so
15009 # requires that you compile everything twice, which is a pain.
15010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15014 else
15015 ld_shlibs=no
15018 esac
15021 sunos4*)
15022 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15023 wlarc=
15024 hardcode_direct=yes
15025 hardcode_shlibpath_var=no
15029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15032 else
15033 ld_shlibs=no
15036 esac
15038 if test "$ld_shlibs" = no; then
15039 runpath_var=
15040 hardcode_libdir_flag_spec=
15041 export_dynamic_flag_spec=
15042 whole_archive_flag_spec=
15044 else
15045 # PORTME fill in a description of your system's linker (not GNU ld)
15046 case $host_os in
15047 aix3*)
15048 allow_undefined_flag=unsupported
15049 always_export_symbols=yes
15050 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'
15051 # Note: this linker hardcodes the directories in LIBPATH if there
15052 # are no directories specified by -L.
15053 hardcode_minus_L=yes
15054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15055 # Neither direct hardcoding nor static linking is supported with a
15056 # broken collect2.
15057 hardcode_direct=unsupported
15061 aix[4-9]*)
15062 if test "$host_cpu" = ia64; then
15063 # On IA64, the linker does run time linking by default, so we don't
15064 # have to do anything special.
15065 aix_use_runtimelinking=no
15066 exp_sym_flag='-Bexport'
15067 no_entry_flag=""
15068 else
15069 # If we're using GNU nm, then we don't want the "-C" option.
15070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15071 # Also, AIX nm treats weak defined symbols like other global
15072 # defined symbols, whereas GNU nm marks them as "W".
15073 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15074 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'
15075 else
15076 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'
15078 aix_use_runtimelinking=no
15080 # Test if we are trying to use run time linking or normal
15081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15082 # need to do runtime linking.
15083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15084 for ld_flag in $LDFLAGS; do
15085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15086 aix_use_runtimelinking=yes
15087 break
15089 done
15091 esac
15093 exp_sym_flag='-bexport'
15094 no_entry_flag='-bnoentry'
15097 # When large executables or shared objects are built, AIX ld can
15098 # have problems creating the table of contents. If linking a library
15099 # or program results in "error TOC overflow" add -mminimal-toc to
15100 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15101 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15103 archive_cmds=''
15104 hardcode_direct=yes
15105 hardcode_direct_absolute=yes
15106 hardcode_libdir_separator=':'
15107 link_all_deplibs=yes
15108 file_list_spec='${wl}-f,'
15110 if test "$GCC" = yes; then
15111 case $host_os in aix4.[012]|aix4.[012].*)
15112 # We only want to do this on AIX 4.2 and lower, the check
15113 # below for broken collect2 doesn't work under 4.3+
15114 collect2name=`${CC} -print-prog-name=collect2`
15115 if test -f "$collect2name" &&
15116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15117 then
15118 # We have reworked collect2
15120 else
15121 # We have old collect2
15122 hardcode_direct=unsupported
15123 # It fails to find uninstalled libraries when the uninstalled
15124 # path is not listed in the libpath. Setting hardcode_minus_L
15125 # to unsupported forces relinking
15126 hardcode_minus_L=yes
15127 hardcode_libdir_flag_spec='-L$libdir'
15128 hardcode_libdir_separator=
15131 esac
15132 shared_flag='-shared'
15133 if test "$aix_use_runtimelinking" = yes; then
15134 shared_flag="$shared_flag "'${wl}-G'
15136 else
15137 # not using gcc
15138 if test "$host_cpu" = ia64; then
15139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15140 # chokes on -Wl,-G. The following line is correct:
15141 shared_flag='-G'
15142 else
15143 if test "$aix_use_runtimelinking" = yes; then
15144 shared_flag='${wl}-G'
15145 else
15146 shared_flag='${wl}-bM:SRE'
15151 export_dynamic_flag_spec='${wl}-bexpall'
15152 # It seems that -bexpall does not export symbols beginning with
15153 # underscore (_), so it is better to generate a list of symbols to export.
15154 always_export_symbols=yes
15155 if test "$aix_use_runtimelinking" = yes; then
15156 # Warning - without using the other runtime loading flags (-brtl),
15157 # -berok will link without error, but may produce a broken library.
15158 allow_undefined_flag='-berok'
15159 # Determine the default libpath from the value encoded in an
15160 # empty executable.
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15165 main ()
15169 return 0;
15171 _ACEOF
15172 if ac_fn_c_try_link "$LINENO"; then :
15174 lt_aix_libpath_sed='
15175 /Import File Strings/,/^$/ {
15176 /^0/ {
15177 s/^0 *\(.*\)$/\1/
15181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182 # Check for a 64-bit object if we didn't find anything.
15183 if test -z "$aix_libpath"; then
15184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15187 rm -f core conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
15189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15191 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15192 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"
15193 else
15194 if test "$host_cpu" = ia64; then
15195 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15196 allow_undefined_flag="-z nodefs"
15197 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"
15198 else
15199 # Determine the default libpath from the value encoded in an
15200 # empty executable.
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15205 main ()
15209 return 0;
15211 _ACEOF
15212 if ac_fn_c_try_link "$LINENO"; then :
15214 lt_aix_libpath_sed='
15215 /Import File Strings/,/^$/ {
15216 /^0/ {
15217 s/^0 *\(.*\)$/\1/
15221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15222 # Check for a 64-bit object if we didn't find anything.
15223 if test -z "$aix_libpath"; then
15224 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15227 rm -f core conftest.err conftest.$ac_objext \
15228 conftest$ac_exeext conftest.$ac_ext
15229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15231 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15232 # Warning - without using the other run time loading flags,
15233 # -berok will link without error, but may produce a broken library.
15234 no_undefined_flag=' ${wl}-bernotok'
15235 allow_undefined_flag=' ${wl}-berok'
15236 if test "$with_gnu_ld" = yes; then
15237 # We only use this code for GNU lds that support --whole-archive.
15238 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15239 else
15240 # Exported symbols can be pulled into shared objects from archives
15241 whole_archive_flag_spec='$convenience'
15243 archive_cmds_need_lc=yes
15244 # This is similar to how AIX traditionally builds its shared libraries.
15245 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'
15250 amigaos*)
15251 case $host_cpu in
15252 powerpc)
15253 # see comment about AmigaOS4 .so support
15254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15255 archive_expsym_cmds=''
15257 m68k)
15258 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)'
15259 hardcode_libdir_flag_spec='-L$libdir'
15260 hardcode_minus_L=yes
15262 esac
15265 bsdi[45]*)
15266 export_dynamic_flag_spec=-rdynamic
15269 cygwin* | mingw* | pw32* | cegcc*)
15270 # When not using gcc, we currently assume that we are using
15271 # Microsoft Visual C++.
15272 # hardcode_libdir_flag_spec is actually meaningless, as there is
15273 # no search path for DLLs.
15274 hardcode_libdir_flag_spec=' '
15275 allow_undefined_flag=unsupported
15276 # Tell ltmain to make .lib files, not .a files.
15277 libext=lib
15278 # Tell ltmain to make .dll files, not .so files.
15279 shrext_cmds=".dll"
15280 # FIXME: Setting linknames here is a bad hack.
15281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15282 # The linker will automatically build a .lib file if we build a DLL.
15283 old_archive_from_new_cmds='true'
15284 # FIXME: Should let the user specify the lib program.
15285 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15286 fix_srcfile_path='`cygpath -w "$srcfile"`'
15287 enable_shared_with_static_runtimes=yes
15290 darwin* | rhapsody*)
15293 archive_cmds_need_lc=no
15294 hardcode_direct=no
15295 hardcode_automatic=yes
15296 hardcode_shlibpath_var=unsupported
15297 if test "$lt_cv_ld_force_load" = "yes"; then
15298 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\"`'
15299 else
15300 whole_archive_flag_spec=''
15302 link_all_deplibs=yes
15303 allow_undefined_flag="$_lt_dar_allow_undefined"
15304 case $cc_basename in
15305 ifort*) _lt_dar_can_shared=yes ;;
15306 *) _lt_dar_can_shared=$GCC ;;
15307 esac
15308 if test "$_lt_dar_can_shared" = "yes"; then
15309 output_verbose_link_cmd=func_echo_all
15310 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15311 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15312 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}"
15313 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}"
15315 else
15316 ld_shlibs=no
15321 dgux*)
15322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15323 hardcode_libdir_flag_spec='-L$libdir'
15324 hardcode_shlibpath_var=no
15327 freebsd1*)
15328 ld_shlibs=no
15331 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15332 # support. Future versions do this automatically, but an explicit c++rt0.o
15333 # does not break anything, and helps significantly (at the cost of a little
15334 # extra space).
15335 freebsd2.2*)
15336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15337 hardcode_libdir_flag_spec='-R$libdir'
15338 hardcode_direct=yes
15339 hardcode_shlibpath_var=no
15342 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15343 freebsd2*)
15344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15345 hardcode_direct=yes
15346 hardcode_minus_L=yes
15347 hardcode_shlibpath_var=no
15350 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15351 freebsd* | dragonfly*)
15352 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15353 hardcode_libdir_flag_spec='-R$libdir'
15354 hardcode_direct=yes
15355 hardcode_shlibpath_var=no
15358 hpux9*)
15359 if test "$GCC" = yes; then
15360 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'
15361 else
15362 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'
15364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15365 hardcode_libdir_separator=:
15366 hardcode_direct=yes
15368 # hardcode_minus_L: Not really in the search PATH,
15369 # but as the default location of the library.
15370 hardcode_minus_L=yes
15371 export_dynamic_flag_spec='${wl}-E'
15374 hpux10*)
15375 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15377 else
15378 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15380 if test "$with_gnu_ld" = no; then
15381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15382 hardcode_libdir_flag_spec_ld='+b $libdir'
15383 hardcode_libdir_separator=:
15384 hardcode_direct=yes
15385 hardcode_direct_absolute=yes
15386 export_dynamic_flag_spec='${wl}-E'
15387 # hardcode_minus_L: Not really in the search PATH,
15388 # but as the default location of the library.
15389 hardcode_minus_L=yes
15393 hpux11*)
15394 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15395 case $host_cpu in
15396 hppa*64*)
15397 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15399 ia64*)
15400 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15405 esac
15406 else
15407 case $host_cpu in
15408 hppa*64*)
15409 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15411 ia64*)
15412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15416 # Older versions of the 11.00 compiler do not understand -b yet
15417 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15419 $as_echo_n "checking if $CC understands -b... " >&6; }
15420 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15421 $as_echo_n "(cached) " >&6
15422 else
15423 lt_cv_prog_compiler__b=no
15424 save_LDFLAGS="$LDFLAGS"
15425 LDFLAGS="$LDFLAGS -b"
15426 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15427 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15428 # The linker can only warn and ignore the option if not recognized
15429 # So say no if there are warnings
15430 if test -s conftest.err; then
15431 # Append any errors to the config.log.
15432 cat conftest.err 1>&5
15433 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15435 if diff conftest.exp conftest.er2 >/dev/null; then
15436 lt_cv_prog_compiler__b=yes
15438 else
15439 lt_cv_prog_compiler__b=yes
15442 $RM -r conftest*
15443 LDFLAGS="$save_LDFLAGS"
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15447 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15449 if test x"$lt_cv_prog_compiler__b" = xyes; then
15450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15451 else
15452 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15456 esac
15458 if test "$with_gnu_ld" = no; then
15459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15460 hardcode_libdir_separator=:
15462 case $host_cpu in
15463 hppa*64*|ia64*)
15464 hardcode_direct=no
15465 hardcode_shlibpath_var=no
15468 hardcode_direct=yes
15469 hardcode_direct_absolute=yes
15470 export_dynamic_flag_spec='${wl}-E'
15472 # hardcode_minus_L: Not really in the search PATH,
15473 # but as the default location of the library.
15474 hardcode_minus_L=yes
15476 esac
15480 irix5* | irix6* | nonstopux*)
15481 if test "$GCC" = yes; then
15482 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'
15483 # Try to use the -exported_symbol ld option, if it does not
15484 # work, assume that -exports_file does not work either and
15485 # implicitly export all symbols.
15486 save_LDFLAGS="$LDFLAGS"
15487 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 int foo(void) {}
15491 _ACEOF
15492 if ac_fn_c_try_link "$LINENO"; then :
15493 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'
15496 rm -f core conftest.err conftest.$ac_objext \
15497 conftest$ac_exeext conftest.$ac_ext
15498 LDFLAGS="$save_LDFLAGS"
15499 else
15500 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'
15501 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'
15503 archive_cmds_need_lc='no'
15504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15505 hardcode_libdir_separator=:
15506 inherit_rpath=yes
15507 link_all_deplibs=yes
15510 netbsd*)
15511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15513 else
15514 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15516 hardcode_libdir_flag_spec='-R$libdir'
15517 hardcode_direct=yes
15518 hardcode_shlibpath_var=no
15521 newsos6)
15522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523 hardcode_direct=yes
15524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15525 hardcode_libdir_separator=:
15526 hardcode_shlibpath_var=no
15529 *nto* | *qnx*)
15532 openbsd*)
15533 if test -f /usr/libexec/ld.so; then
15534 hardcode_direct=yes
15535 hardcode_shlibpath_var=no
15536 hardcode_direct_absolute=yes
15537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15539 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15541 export_dynamic_flag_spec='${wl}-E'
15542 else
15543 case $host_os in
15544 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_libdir_flag_spec='-R$libdir'
15549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15552 esac
15554 else
15555 ld_shlibs=no
15559 os2*)
15560 hardcode_libdir_flag_spec='-L$libdir'
15561 hardcode_minus_L=yes
15562 allow_undefined_flag=unsupported
15563 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'
15564 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15567 osf3*)
15568 if test "$GCC" = yes; then
15569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15570 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'
15571 else
15572 allow_undefined_flag=' -expect_unresolved \*'
15573 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'
15575 archive_cmds_need_lc='no'
15576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15577 hardcode_libdir_separator=:
15580 osf4* | osf5*) # as osf3* with the addition of -msym flag
15581 if test "$GCC" = yes; then
15582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15583 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'
15584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15585 else
15586 allow_undefined_flag=' -expect_unresolved \*'
15587 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'
15588 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~
15589 $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'
15591 # Both c and cxx compiler support -rpath directly
15592 hardcode_libdir_flag_spec='-rpath $libdir'
15594 archive_cmds_need_lc='no'
15595 hardcode_libdir_separator=:
15598 solaris*)
15599 no_undefined_flag=' -z defs'
15600 if test "$GCC" = yes; then
15601 wlarc='${wl}'
15602 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15604 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15605 else
15606 case `$CC -V 2>&1` in
15607 *"Compilers 5.0"*)
15608 wlarc=''
15609 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15614 wlarc='${wl}'
15615 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15617 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15619 esac
15621 hardcode_libdir_flag_spec='-R$libdir'
15622 hardcode_shlibpath_var=no
15623 case $host_os in
15624 solaris2.[0-5] | solaris2.[0-5].*) ;;
15626 # The compiler driver will combine and reorder linker options,
15627 # but understands `-z linker_flag'. GCC discards it without `$wl',
15628 # but is careful enough not to reorder.
15629 # Supported since Solaris 2.6 (maybe 2.5.1?)
15630 if test "$GCC" = yes; then
15631 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15632 else
15633 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15636 esac
15637 link_all_deplibs=yes
15640 sunos4*)
15641 if test "x$host_vendor" = xsequent; then
15642 # Use $CC to link under sequent, because it throws in some extra .o
15643 # files that make .init and .fini sections work.
15644 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15645 else
15646 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15648 hardcode_libdir_flag_spec='-L$libdir'
15649 hardcode_direct=yes
15650 hardcode_minus_L=yes
15651 hardcode_shlibpath_var=no
15654 sysv4)
15655 case $host_vendor in
15656 sni)
15657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15658 hardcode_direct=yes # is this really true???
15660 siemens)
15661 ## LD is ld it makes a PLAMLIB
15662 ## CC just makes a GrossModule.
15663 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15664 reload_cmds='$CC -r -o $output$reload_objs'
15665 hardcode_direct=no
15667 motorola)
15668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15669 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15671 esac
15672 runpath_var='LD_RUN_PATH'
15673 hardcode_shlibpath_var=no
15676 sysv4.3*)
15677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15678 hardcode_shlibpath_var=no
15679 export_dynamic_flag_spec='-Bexport'
15682 sysv4*MP*)
15683 if test -d /usr/nec; then
15684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685 hardcode_shlibpath_var=no
15686 runpath_var=LD_RUN_PATH
15687 hardcode_runpath_var=yes
15688 ld_shlibs=yes
15692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15693 no_undefined_flag='${wl}-z,text'
15694 archive_cmds_need_lc=no
15695 hardcode_shlibpath_var=no
15696 runpath_var='LD_RUN_PATH'
15698 if test "$GCC" = yes; then
15699 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15700 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15701 else
15702 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15707 sysv5* | sco3.2v5* | sco5v6*)
15708 # Note: We can NOT use -z defs as we might desire, because we do not
15709 # link with -lc, and that would cause any symbols used from libc to
15710 # always be unresolved, which means just about no library would
15711 # ever link correctly. If we're not using GNU ld we use -z text
15712 # though, which does catch some bad symbols but isn't as heavy-handed
15713 # as -z defs.
15714 no_undefined_flag='${wl}-z,text'
15715 allow_undefined_flag='${wl}-z,nodefs'
15716 archive_cmds_need_lc=no
15717 hardcode_shlibpath_var=no
15718 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15719 hardcode_libdir_separator=':'
15720 link_all_deplibs=yes
15721 export_dynamic_flag_spec='${wl}-Bexport'
15722 runpath_var='LD_RUN_PATH'
15724 if test "$GCC" = yes; then
15725 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 else
15728 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15733 uts4*)
15734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15735 hardcode_libdir_flag_spec='-L$libdir'
15736 hardcode_shlibpath_var=no
15740 ld_shlibs=no
15742 esac
15744 if test x$host_vendor = xsni; then
15745 case $host in
15746 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15747 export_dynamic_flag_spec='${wl}-Blargedynsym'
15749 esac
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15754 $as_echo "$ld_shlibs" >&6; }
15755 test "$ld_shlibs" = no && can_build_shared=no
15757 with_gnu_ld=$with_gnu_ld
15774 # Do we need to explicitly link libc?
15776 case "x$archive_cmds_need_lc" in
15777 x|xyes)
15778 # Assume -lc should be added
15779 archive_cmds_need_lc=yes
15781 if test "$enable_shared" = yes && test "$GCC" = yes; then
15782 case $archive_cmds in
15783 *'~'*)
15784 # FIXME: we may have to deal with multi-command sequences.
15786 '$CC '*)
15787 # Test whether the compiler implicitly links with -lc since on some
15788 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15789 # to ld, don't add -lc before -lgcc.
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15791 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15792 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 $RM conftest*
15796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15799 (eval $ac_compile) 2>&5
15800 ac_status=$?
15801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15802 test $ac_status = 0; } 2>conftest.err; then
15803 soname=conftest
15804 lib=conftest
15805 libobjs=conftest.$ac_objext
15806 deplibs=
15807 wl=$lt_prog_compiler_wl
15808 pic_flag=$lt_prog_compiler_pic
15809 compiler_flags=-v
15810 linker_flags=-v
15811 verstring=
15812 output_objdir=.
15813 libname=conftest
15814 lt_save_allow_undefined_flag=$allow_undefined_flag
15815 allow_undefined_flag=
15816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15817 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15818 ac_status=$?
15819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15820 test $ac_status = 0; }
15821 then
15822 lt_cv_archive_cmds_need_lc=no
15823 else
15824 lt_cv_archive_cmds_need_lc=yes
15826 allow_undefined_flag=$lt_save_allow_undefined_flag
15827 else
15828 cat conftest.err 1>&5
15830 $RM conftest*
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15834 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15835 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15837 esac
15840 esac
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15999 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16001 if test "$GCC" = yes; then
16002 case $host_os in
16003 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16004 *) lt_awk_arg="/^libraries:/" ;;
16005 esac
16006 case $host_os in
16007 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16008 *) lt_sed_strip_eq="s,=/,/,g" ;;
16009 esac
16010 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16011 case $lt_search_path_spec in
16012 *\;*)
16013 # if the path contains ";" then we assume it to be the separator
16014 # otherwise default to the standard path separator (i.e. ":") - it is
16015 # assumed that no part of a normal pathname contains ";" but that should
16016 # okay in the real world where ";" in dirpaths is itself problematic.
16017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16022 esac
16023 # Ok, now we have the path, separated by spaces, we can step through it
16024 # and add multilib dir if necessary.
16025 lt_tmp_lt_search_path_spec=
16026 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16027 for lt_sys_path in $lt_search_path_spec; do
16028 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16029 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16030 else
16031 test -d "$lt_sys_path" && \
16032 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16034 done
16035 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16036 BEGIN {RS=" "; FS="/|\n";} {
16037 lt_foo="";
16038 lt_count=0;
16039 for (lt_i = NF; lt_i > 0; lt_i--) {
16040 if ($lt_i != "" && $lt_i != ".") {
16041 if ($lt_i == "..") {
16042 lt_count++;
16043 } else {
16044 if (lt_count == 0) {
16045 lt_foo="/" $lt_i lt_foo;
16046 } else {
16047 lt_count--;
16052 if (lt_foo != "") { lt_freq[lt_foo]++; }
16053 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16055 # AWK program above erroneously prepends '/' to C:/dos/paths
16056 # for these hosts.
16057 case $host_os in
16058 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16059 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16060 esac
16061 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16062 else
16063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16065 library_names_spec=
16066 libname_spec='lib$name'
16067 soname_spec=
16068 shrext_cmds=".so"
16069 postinstall_cmds=
16070 postuninstall_cmds=
16071 finish_cmds=
16072 finish_eval=
16073 shlibpath_var=
16074 shlibpath_overrides_runpath=unknown
16075 version_type=none
16076 dynamic_linker="$host_os ld.so"
16077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16078 need_lib_prefix=unknown
16079 hardcode_into_libs=no
16081 # when you set need_version to no, make sure it does not cause -set_version
16082 # flags to be left without arguments
16083 need_version=unknown
16085 case $host_os in
16086 aix3*)
16087 version_type=linux
16088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16089 shlibpath_var=LIBPATH
16091 # AIX 3 has no versioning support, so we append a major version to the name.
16092 soname_spec='${libname}${release}${shared_ext}$major'
16095 aix[4-9]*)
16096 version_type=linux
16097 need_lib_prefix=no
16098 need_version=no
16099 hardcode_into_libs=yes
16100 if test "$host_cpu" = ia64; then
16101 # AIX 5 supports IA64
16102 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16103 shlibpath_var=LD_LIBRARY_PATH
16104 else
16105 # With GCC up to 2.95.x, collect2 would create an import file
16106 # for dependence libraries. The import file would start with
16107 # the line `#! .'. This would cause the generated library to
16108 # depend on `.', always an invalid library. This was fixed in
16109 # development snapshots of GCC prior to 3.0.
16110 case $host_os in
16111 aix4 | aix4.[01] | aix4.[01].*)
16112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16113 echo ' yes '
16114 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16116 else
16117 can_build_shared=no
16120 esac
16121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16122 # soname into executable. Probably we can add versioning support to
16123 # collect2, so additional links can be useful in future.
16124 if test "$aix_use_runtimelinking" = yes; then
16125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16126 # instead of lib<name>.a to let people know that these are not
16127 # typical AIX shared libraries.
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16129 else
16130 # We preserve .a as extension for shared libraries through AIX4.2
16131 # and later when we are not doing run time linking.
16132 library_names_spec='${libname}${release}.a $libname.a'
16133 soname_spec='${libname}${release}${shared_ext}$major'
16135 shlibpath_var=LIBPATH
16139 amigaos*)
16140 case $host_cpu in
16141 powerpc)
16142 # Since July 2007 AmigaOS4 officially supports .so libraries.
16143 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 m68k)
16147 library_names_spec='$libname.ixlibrary $libname.a'
16148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16149 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'
16151 esac
16154 beos*)
16155 library_names_spec='${libname}${shared_ext}'
16156 dynamic_linker="$host_os ld.so"
16157 shlibpath_var=LIBRARY_PATH
16160 bsdi[45]*)
16161 version_type=linux
16162 need_version=no
16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
16165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16166 shlibpath_var=LD_LIBRARY_PATH
16167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16169 # the default ld.so.conf also contains /usr/contrib/lib and
16170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16171 # libtool to hard-code these into programs
16174 cygwin* | mingw* | pw32* | cegcc*)
16175 version_type=windows
16176 shrext_cmds=".dll"
16177 need_version=no
16178 need_lib_prefix=no
16180 case $GCC,$host_os in
16181 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16182 library_names_spec='$libname.dll.a'
16183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16184 postinstall_cmds='base_file=`basename \${file}`~
16185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16186 dldir=$destdir/`dirname \$dlpath`~
16187 test -d \$dldir || mkdir -p \$dldir~
16188 $install_prog $dir/$dlname \$dldir/$dlname~
16189 chmod a+x \$dldir/$dlname~
16190 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16191 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16194 dlpath=$dir/\$dldll~
16195 $RM \$dlpath'
16196 shlibpath_overrides_runpath=yes
16198 case $host_os in
16199 cygwin*)
16200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16203 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16205 mingw* | cegcc*)
16206 # MinGW DLLs use traditional 'lib' prefix
16207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16209 pw32*)
16210 # pw32 DLLs use 'pw' prefix rather than 'lib'
16211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16213 esac
16217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16219 esac
16220 dynamic_linker='Win32 ld.exe'
16221 # FIXME: first we should search . and the directory the executable is in
16222 shlibpath_var=PATH
16225 darwin* | rhapsody*)
16226 dynamic_linker="$host_os dyld"
16227 version_type=darwin
16228 need_lib_prefix=no
16229 need_version=no
16230 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16231 soname_spec='${libname}${release}${major}$shared_ext'
16232 shlibpath_overrides_runpath=yes
16233 shlibpath_var=DYLD_LIBRARY_PATH
16234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16236 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16237 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16240 dgux*)
16241 version_type=linux
16242 need_lib_prefix=no
16243 need_version=no
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 shlibpath_var=LD_LIBRARY_PATH
16249 freebsd1*)
16250 dynamic_linker=no
16253 freebsd* | dragonfly*)
16254 # DragonFly does not have aout. When/if they implement a new
16255 # versioning mechanism, adjust this.
16256 if test -x /usr/bin/objformat; then
16257 objformat=`/usr/bin/objformat`
16258 else
16259 case $host_os in
16260 freebsd[123]*) objformat=aout ;;
16261 *) objformat=elf ;;
16262 esac
16264 version_type=freebsd-$objformat
16265 case $version_type in
16266 freebsd-elf*)
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16268 need_version=no
16269 need_lib_prefix=no
16271 freebsd-*)
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16273 need_version=yes
16275 esac
16276 shlibpath_var=LD_LIBRARY_PATH
16277 case $host_os in
16278 freebsd2*)
16279 shlibpath_overrides_runpath=yes
16281 freebsd3.[01]* | freebsdelf3.[01]*)
16282 shlibpath_overrides_runpath=yes
16283 hardcode_into_libs=yes
16285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16287 shlibpath_overrides_runpath=no
16288 hardcode_into_libs=yes
16290 *) # from 4.6 on, and DragonFly
16291 shlibpath_overrides_runpath=yes
16292 hardcode_into_libs=yes
16294 esac
16297 gnu*)
16298 version_type=linux
16299 need_lib_prefix=no
16300 need_version=no
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16302 soname_spec='${libname}${release}${shared_ext}$major'
16303 shlibpath_var=LD_LIBRARY_PATH
16304 hardcode_into_libs=yes
16307 haiku*)
16308 version_type=linux
16309 need_lib_prefix=no
16310 need_version=no
16311 dynamic_linker="$host_os runtime_loader"
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16313 soname_spec='${libname}${release}${shared_ext}$major'
16314 shlibpath_var=LIBRARY_PATH
16315 shlibpath_overrides_runpath=yes
16316 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16317 hardcode_into_libs=yes
16320 hpux9* | hpux10* | hpux11*)
16321 # Give a soname corresponding to the major version so that dld.sl refuses to
16322 # link against other versions.
16323 version_type=sunos
16324 need_lib_prefix=no
16325 need_version=no
16326 case $host_cpu in
16327 ia64*)
16328 shrext_cmds='.so'
16329 hardcode_into_libs=yes
16330 dynamic_linker="$host_os dld.so"
16331 shlibpath_var=LD_LIBRARY_PATH
16332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 if test "X$HPUX_IA64_MODE" = X32; then
16336 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16337 else
16338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16342 hppa*64*)
16343 shrext_cmds='.sl'
16344 hardcode_into_libs=yes
16345 dynamic_linker="$host_os dld.sl"
16346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 soname_spec='${libname}${release}${shared_ext}$major'
16350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16354 shrext_cmds='.sl'
16355 dynamic_linker="$host_os dld.sl"
16356 shlibpath_var=SHLIB_PATH
16357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16361 esac
16362 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16363 postinstall_cmds='chmod 555 $lib'
16364 # or fails outright, so override atomically:
16365 install_override_mode=555
16368 interix[3-9]*)
16369 version_type=linux
16370 need_lib_prefix=no
16371 need_version=no
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 shlibpath_overrides_runpath=no
16377 hardcode_into_libs=yes
16380 irix5* | irix6* | nonstopux*)
16381 case $host_os in
16382 nonstopux*) version_type=nonstopux ;;
16384 if test "$lt_cv_prog_gnu_ld" = yes; then
16385 version_type=linux
16386 else
16387 version_type=irix
16388 fi ;;
16389 esac
16390 need_lib_prefix=no
16391 need_version=no
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16394 case $host_os in
16395 irix5* | nonstopux*)
16396 libsuff= shlibsuff=
16399 case $LD in # libtool.m4 will add one of these switches to LD
16400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16401 libsuff= shlibsuff= libmagic=32-bit;;
16402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16403 libsuff=32 shlibsuff=N32 libmagic=N32;;
16404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16406 *) libsuff= shlibsuff= libmagic=never-match;;
16407 esac
16409 esac
16410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16411 shlibpath_overrides_runpath=no
16412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16414 hardcode_into_libs=yes
16417 # No shared lib support for Linux oldld, aout, or coff.
16418 linux*oldld* | linux*aout* | linux*coff*)
16419 dynamic_linker=no
16422 # This must be Linux ELF.
16423 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16424 version_type=linux
16425 need_lib_prefix=no
16426 need_version=no
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath=no
16433 # Some binutils ld are patched to set DT_RUNPATH
16434 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16435 $as_echo_n "(cached) " >&6
16436 else
16437 lt_cv_shlibpath_overrides_runpath=no
16438 save_LDFLAGS=$LDFLAGS
16439 save_libdir=$libdir
16440 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16441 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16446 main ()
16450 return 0;
16452 _ACEOF
16453 if ac_fn_c_try_link "$LINENO"; then :
16454 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16455 lt_cv_shlibpath_overrides_runpath=yes
16458 rm -f core conftest.err conftest.$ac_objext \
16459 conftest$ac_exeext conftest.$ac_ext
16460 LDFLAGS=$save_LDFLAGS
16461 libdir=$save_libdir
16465 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16467 # This implies no fast_install, which is unacceptable.
16468 # Some rework will be needed to allow for fast_install
16469 # before this can be enabled.
16470 hardcode_into_libs=yes
16472 # Append ld.so.conf contents to the search path
16473 if test -f /etc/ld.so.conf; then
16474 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' ' '`
16475 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16478 # We used to test for /lib/ld.so.1 and disable shared libraries on
16479 # powerpc, because MkLinux only supported shared libraries with the
16480 # GNU dynamic linker. Since this was broken with cross compilers,
16481 # most powerpc-linux boxes support dynamic linking these days and
16482 # people can always --disable-shared, the test was removed, and we
16483 # assume the GNU/Linux dynamic linker is in use.
16484 dynamic_linker='GNU/Linux ld.so'
16487 netbsd*)
16488 version_type=sunos
16489 need_lib_prefix=no
16490 need_version=no
16491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16494 dynamic_linker='NetBSD (a.out) ld.so'
16495 else
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 dynamic_linker='NetBSD ld.elf_so'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=yes
16502 hardcode_into_libs=yes
16505 newsos6)
16506 version_type=linux
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 shlibpath_overrides_runpath=yes
16512 *nto* | *qnx*)
16513 version_type=qnx
16514 need_lib_prefix=no
16515 need_version=no
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 shlibpath_var=LD_LIBRARY_PATH
16519 shlibpath_overrides_runpath=no
16520 hardcode_into_libs=yes
16521 dynamic_linker='ldqnx.so'
16524 openbsd*)
16525 version_type=sunos
16526 sys_lib_dlsearch_path_spec="/usr/lib"
16527 need_lib_prefix=no
16528 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16529 case $host_os in
16530 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16531 *) need_version=no ;;
16532 esac
16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16535 shlibpath_var=LD_LIBRARY_PATH
16536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16537 case $host_os in
16538 openbsd2.[89] | openbsd2.[89].*)
16539 shlibpath_overrides_runpath=no
16542 shlibpath_overrides_runpath=yes
16544 esac
16545 else
16546 shlibpath_overrides_runpath=yes
16550 os2*)
16551 libname_spec='$name'
16552 shrext_cmds=".dll"
16553 need_lib_prefix=no
16554 library_names_spec='$libname${shared_ext} $libname.a'
16555 dynamic_linker='OS/2 ld.exe'
16556 shlibpath_var=LIBPATH
16559 osf3* | osf4* | osf5*)
16560 version_type=osf
16561 need_lib_prefix=no
16562 need_version=no
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 shlibpath_var=LD_LIBRARY_PATH
16566 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16567 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16570 rdos*)
16571 dynamic_linker=no
16574 solaris*)
16575 version_type=linux
16576 need_lib_prefix=no
16577 need_version=no
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 shlibpath_var=LD_LIBRARY_PATH
16581 shlibpath_overrides_runpath=yes
16582 hardcode_into_libs=yes
16583 # ldd complains unless libraries are executable
16584 postinstall_cmds='chmod +x $lib'
16587 sunos4*)
16588 version_type=sunos
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16590 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16591 shlibpath_var=LD_LIBRARY_PATH
16592 shlibpath_overrides_runpath=yes
16593 if test "$with_gnu_ld" = yes; then
16594 need_lib_prefix=no
16596 need_version=yes
16599 sysv4 | sysv4.3*)
16600 version_type=linux
16601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602 soname_spec='${libname}${release}${shared_ext}$major'
16603 shlibpath_var=LD_LIBRARY_PATH
16604 case $host_vendor in
16605 sni)
16606 shlibpath_overrides_runpath=no
16607 need_lib_prefix=no
16608 runpath_var=LD_RUN_PATH
16610 siemens)
16611 need_lib_prefix=no
16613 motorola)
16614 need_lib_prefix=no
16615 need_version=no
16616 shlibpath_overrides_runpath=no
16617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16619 esac
16622 sysv4*MP*)
16623 if test -d /usr/nec ;then
16624 version_type=linux
16625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16626 soname_spec='$libname${shared_ext}.$major'
16627 shlibpath_var=LD_LIBRARY_PATH
16631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16632 version_type=freebsd-elf
16633 need_lib_prefix=no
16634 need_version=no
16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16636 soname_spec='${libname}${release}${shared_ext}$major'
16637 shlibpath_var=LD_LIBRARY_PATH
16638 shlibpath_overrides_runpath=yes
16639 hardcode_into_libs=yes
16640 if test "$with_gnu_ld" = yes; then
16641 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16642 else
16643 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16644 case $host_os in
16645 sco3.2v5*)
16646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16648 esac
16650 sys_lib_dlsearch_path_spec='/usr/lib'
16653 tpf*)
16654 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16655 version_type=linux
16656 need_lib_prefix=no
16657 need_version=no
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659 shlibpath_var=LD_LIBRARY_PATH
16660 shlibpath_overrides_runpath=no
16661 hardcode_into_libs=yes
16664 uts4*)
16665 version_type=linux
16666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 shlibpath_var=LD_LIBRARY_PATH
16672 dynamic_linker=no
16674 esac
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16676 $as_echo "$dynamic_linker" >&6; }
16677 test "$dynamic_linker" = no && can_build_shared=no
16679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16680 if test "$GCC" = yes; then
16681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16684 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16685 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16687 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16688 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16783 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16784 hardcode_action=
16785 if test -n "$hardcode_libdir_flag_spec" ||
16786 test -n "$runpath_var" ||
16787 test "X$hardcode_automatic" = "Xyes" ; then
16789 # We can hardcode non-existent directories.
16790 if test "$hardcode_direct" != no &&
16791 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16792 # have to relink, otherwise we might link with an installed library
16793 # when we should be linking with a yet-to-be-installed one
16794 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16795 test "$hardcode_minus_L" != no; then
16796 # Linking always hardcodes the temporary library directory.
16797 hardcode_action=relink
16798 else
16799 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16800 hardcode_action=immediate
16802 else
16803 # We cannot hardcode anything, or else we can only hardcode existing
16804 # directories.
16805 hardcode_action=unsupported
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16808 $as_echo "$hardcode_action" >&6; }
16810 if test "$hardcode_action" = relink ||
16811 test "$inherit_rpath" = yes; then
16812 # Fast installation is not supported
16813 enable_fast_install=no
16814 elif test "$shlibpath_overrides_runpath" = yes ||
16815 test "$enable_shared" = no; then
16816 # Fast installation is not necessary
16817 enable_fast_install=needless
16825 if test "x$enable_dlopen" != xyes; then
16826 enable_dlopen=unknown
16827 enable_dlopen_self=unknown
16828 enable_dlopen_self_static=unknown
16829 else
16830 lt_cv_dlopen=no
16831 lt_cv_dlopen_libs=
16833 case $host_os in
16834 beos*)
16835 lt_cv_dlopen="load_add_on"
16836 lt_cv_dlopen_libs=
16837 lt_cv_dlopen_self=yes
16840 mingw* | pw32* | cegcc*)
16841 lt_cv_dlopen="LoadLibrary"
16842 lt_cv_dlopen_libs=
16845 cygwin*)
16846 lt_cv_dlopen="dlopen"
16847 lt_cv_dlopen_libs=
16850 darwin*)
16851 # if libdl is installed we need to link against it
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16853 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16854 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 ac_check_lib_save_LIBS=$LIBS
16858 LIBS="-ldl $LIBS"
16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16862 /* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
16865 #ifdef __cplusplus
16866 extern "C"
16867 #endif
16868 char dlopen ();
16870 main ()
16872 return dlopen ();
16874 return 0;
16876 _ACEOF
16877 if ac_fn_c_try_link "$LINENO"; then :
16878 ac_cv_lib_dl_dlopen=yes
16879 else
16880 ac_cv_lib_dl_dlopen=no
16882 rm -f core conftest.err conftest.$ac_objext \
16883 conftest$ac_exeext conftest.$ac_ext
16884 LIBS=$ac_check_lib_save_LIBS
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16887 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16888 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16890 else
16892 lt_cv_dlopen="dyld"
16893 lt_cv_dlopen_libs=
16894 lt_cv_dlopen_self=yes
16901 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16902 if test "x$ac_cv_func_shl_load" = x""yes; then :
16903 lt_cv_dlopen="shl_load"
16904 else
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16906 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16907 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16908 $as_echo_n "(cached) " >&6
16909 else
16910 ac_check_lib_save_LIBS=$LIBS
16911 LIBS="-ldld $LIBS"
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16915 /* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
16918 #ifdef __cplusplus
16919 extern "C"
16920 #endif
16921 char shl_load ();
16923 main ()
16925 return shl_load ();
16927 return 0;
16929 _ACEOF
16930 if ac_fn_c_try_link "$LINENO"; then :
16931 ac_cv_lib_dld_shl_load=yes
16932 else
16933 ac_cv_lib_dld_shl_load=no
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_lib_save_LIBS
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16940 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16941 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16942 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16943 else
16944 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16945 if test "x$ac_cv_func_dlopen" = x""yes; then :
16946 lt_cv_dlopen="dlopen"
16947 else
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-ldl $LIBS"
16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16958 /* Override any GCC internal prototype to avoid an error.
16959 Use char because int might match the return type of a GCC
16960 builtin and then its argument prototype would still apply. */
16961 #ifdef __cplusplus
16962 extern "C"
16963 #endif
16964 char dlopen ();
16966 main ()
16968 return dlopen ();
16970 return 0;
16972 _ACEOF
16973 if ac_fn_c_try_link "$LINENO"; then :
16974 ac_cv_lib_dl_dlopen=yes
16975 else
16976 ac_cv_lib_dl_dlopen=no
16978 rm -f core conftest.err conftest.$ac_objext \
16979 conftest$ac_exeext conftest.$ac_ext
16980 LIBS=$ac_check_lib_save_LIBS
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16983 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16984 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16985 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16986 else
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16988 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16990 $as_echo_n "(cached) " >&6
16991 else
16992 ac_check_lib_save_LIBS=$LIBS
16993 LIBS="-lsvld $LIBS"
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16997 /* Override any GCC internal prototype to avoid an error.
16998 Use char because int might match the return type of a GCC
16999 builtin and then its argument prototype would still apply. */
17000 #ifdef __cplusplus
17001 extern "C"
17002 #endif
17003 char dlopen ();
17005 main ()
17007 return dlopen ();
17009 return 0;
17011 _ACEOF
17012 if ac_fn_c_try_link "$LINENO"; then :
17013 ac_cv_lib_svld_dlopen=yes
17014 else
17015 ac_cv_lib_svld_dlopen=no
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17019 LIBS=$ac_check_lib_save_LIBS
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17022 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17023 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17025 else
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17027 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17030 else
17031 ac_check_lib_save_LIBS=$LIBS
17032 LIBS="-ldld $LIBS"
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17036 /* Override any GCC internal prototype to avoid an error.
17037 Use char because int might match the return type of a GCC
17038 builtin and then its argument prototype would still apply. */
17039 #ifdef __cplusplus
17040 extern "C"
17041 #endif
17042 char dld_link ();
17044 main ()
17046 return dld_link ();
17048 return 0;
17050 _ACEOF
17051 if ac_fn_c_try_link "$LINENO"; then :
17052 ac_cv_lib_dld_dld_link=yes
17053 else
17054 ac_cv_lib_dld_dld_link=no
17056 rm -f core conftest.err conftest.$ac_objext \
17057 conftest$ac_exeext conftest.$ac_ext
17058 LIBS=$ac_check_lib_save_LIBS
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17061 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17062 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17063 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17082 esac
17084 if test "x$lt_cv_dlopen" != xno; then
17085 enable_dlopen=yes
17086 else
17087 enable_dlopen=no
17090 case $lt_cv_dlopen in
17091 dlopen)
17092 save_CPPFLAGS="$CPPFLAGS"
17093 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17095 save_LDFLAGS="$LDFLAGS"
17096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17098 save_LIBS="$LIBS"
17099 LIBS="$lt_cv_dlopen_libs $LIBS"
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17102 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17103 if test "${lt_cv_dlopen_self+set}" = set; then :
17104 $as_echo_n "(cached) " >&6
17105 else
17106 if test "$cross_compiling" = yes; then :
17107 lt_cv_dlopen_self=cross
17108 else
17109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17110 lt_status=$lt_dlunknown
17111 cat > conftest.$ac_ext <<_LT_EOF
17112 #line 17112 "configure"
17113 #include "confdefs.h"
17115 #if HAVE_DLFCN_H
17116 #include <dlfcn.h>
17117 #endif
17119 #include <stdio.h>
17121 #ifdef RTLD_GLOBAL
17122 # define LT_DLGLOBAL RTLD_GLOBAL
17123 #else
17124 # ifdef DL_GLOBAL
17125 # define LT_DLGLOBAL DL_GLOBAL
17126 # else
17127 # define LT_DLGLOBAL 0
17128 # endif
17129 #endif
17131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17132 find out it does not work in some platform. */
17133 #ifndef LT_DLLAZY_OR_NOW
17134 # ifdef RTLD_LAZY
17135 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17136 # else
17137 # ifdef DL_LAZY
17138 # define LT_DLLAZY_OR_NOW DL_LAZY
17139 # else
17140 # ifdef RTLD_NOW
17141 # define LT_DLLAZY_OR_NOW RTLD_NOW
17142 # else
17143 # ifdef DL_NOW
17144 # define LT_DLLAZY_OR_NOW DL_NOW
17145 # else
17146 # define LT_DLLAZY_OR_NOW 0
17147 # endif
17148 # endif
17149 # endif
17150 # endif
17151 #endif
17153 /* When -fvisbility=hidden is used, assume the code has been annotated
17154 correspondingly for the symbols needed. */
17155 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17156 void fnord () __attribute__((visibility("default")));
17157 #endif
17159 void fnord () { int i=42; }
17160 int main ()
17162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17163 int status = $lt_dlunknown;
17165 if (self)
17167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17168 else
17170 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17171 else puts (dlerror ());
17173 /* dlclose (self); */
17175 else
17176 puts (dlerror ());
17178 return status;
17180 _LT_EOF
17181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17182 (eval $ac_link) 2>&5
17183 ac_status=$?
17184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17185 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17186 (./conftest; exit; ) >&5 2>/dev/null
17187 lt_status=$?
17188 case x$lt_status in
17189 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17190 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17191 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17192 esac
17193 else :
17194 # compilation failed
17195 lt_cv_dlopen_self=no
17198 rm -fr conftest*
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17203 $as_echo "$lt_cv_dlopen_self" >&6; }
17205 if test "x$lt_cv_dlopen_self" = xyes; then
17206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17208 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17209 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17210 $as_echo_n "(cached) " >&6
17211 else
17212 if test "$cross_compiling" = yes; then :
17213 lt_cv_dlopen_self_static=cross
17214 else
17215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17216 lt_status=$lt_dlunknown
17217 cat > conftest.$ac_ext <<_LT_EOF
17218 #line 17218 "configure"
17219 #include "confdefs.h"
17221 #if HAVE_DLFCN_H
17222 #include <dlfcn.h>
17223 #endif
17225 #include <stdio.h>
17227 #ifdef RTLD_GLOBAL
17228 # define LT_DLGLOBAL RTLD_GLOBAL
17229 #else
17230 # ifdef DL_GLOBAL
17231 # define LT_DLGLOBAL DL_GLOBAL
17232 # else
17233 # define LT_DLGLOBAL 0
17234 # endif
17235 #endif
17237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17238 find out it does not work in some platform. */
17239 #ifndef LT_DLLAZY_OR_NOW
17240 # ifdef RTLD_LAZY
17241 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17242 # else
17243 # ifdef DL_LAZY
17244 # define LT_DLLAZY_OR_NOW DL_LAZY
17245 # else
17246 # ifdef RTLD_NOW
17247 # define LT_DLLAZY_OR_NOW RTLD_NOW
17248 # else
17249 # ifdef DL_NOW
17250 # define LT_DLLAZY_OR_NOW DL_NOW
17251 # else
17252 # define LT_DLLAZY_OR_NOW 0
17253 # endif
17254 # endif
17255 # endif
17256 # endif
17257 #endif
17259 /* When -fvisbility=hidden is used, assume the code has been annotated
17260 correspondingly for the symbols needed. */
17261 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17262 void fnord () __attribute__((visibility("default")));
17263 #endif
17265 void fnord () { int i=42; }
17266 int main ()
17268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17269 int status = $lt_dlunknown;
17271 if (self)
17273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17274 else
17276 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17277 else puts (dlerror ());
17279 /* dlclose (self); */
17281 else
17282 puts (dlerror ());
17284 return status;
17286 _LT_EOF
17287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17288 (eval $ac_link) 2>&5
17289 ac_status=$?
17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17291 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17292 (./conftest; exit; ) >&5 2>/dev/null
17293 lt_status=$?
17294 case x$lt_status in
17295 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17296 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17297 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17298 esac
17299 else :
17300 # compilation failed
17301 lt_cv_dlopen_self_static=no
17304 rm -fr conftest*
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17309 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17312 CPPFLAGS="$save_CPPFLAGS"
17313 LDFLAGS="$save_LDFLAGS"
17314 LIBS="$save_LIBS"
17316 esac
17318 case $lt_cv_dlopen_self in
17319 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17320 *) enable_dlopen_self=unknown ;;
17321 esac
17323 case $lt_cv_dlopen_self_static in
17324 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17325 *) enable_dlopen_self_static=unknown ;;
17326 esac
17345 striplib=
17346 old_striplib=
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17348 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17349 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17351 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17353 $as_echo "yes" >&6; }
17354 else
17355 # FIXME - insert some real tests, host_os isn't really good enough
17356 case $host_os in
17357 darwin*)
17358 if test -n "$STRIP" ; then
17359 striplib="$STRIP -x"
17360 old_striplib="$STRIP -S"
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362 $as_echo "yes" >&6; }
17363 else
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17370 $as_echo "no" >&6; }
17372 esac
17386 # Report which library types will actually be built
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17388 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17390 $as_echo "$can_build_shared" >&6; }
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17393 $as_echo_n "checking whether to build shared libraries... " >&6; }
17394 test "$can_build_shared" = "no" && enable_shared=no
17396 # On AIX, shared libraries and static libraries use the same namespace, and
17397 # are all built from PIC.
17398 case $host_os in
17399 aix3*)
17400 test "$enable_shared" = yes && enable_static=no
17401 if test -n "$RANLIB"; then
17402 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17403 postinstall_cmds='$RANLIB $lib'
17407 aix[4-9]*)
17408 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17409 test "$enable_shared" = yes && enable_static=no
17412 esac
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17414 $as_echo "$enable_shared" >&6; }
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17417 $as_echo_n "checking whether to build static libraries... " >&6; }
17418 # Make sure either enable_shared or enable_static is yes.
17419 test "$enable_shared" = yes || enable_static=yes
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17421 $as_echo "$enable_static" >&6; }
17427 ac_ext=c
17428 ac_cpp='$CPP $CPPFLAGS'
17429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17433 CC="$lt_save_CC"
17435 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17436 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17437 (test "X$CXX" != "Xg++"))) ; then
17438 ac_ext=cpp
17439 ac_cpp='$CXXCPP $CPPFLAGS'
17440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17444 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17445 if test -z "$CXXCPP"; then
17446 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17447 $as_echo_n "(cached) " >&6
17448 else
17449 # Double quotes because CXXCPP needs to be expanded
17450 for CXXCPP in "$CXX -E" "/lib/cpp"
17452 ac_preproc_ok=false
17453 for ac_cxx_preproc_warn_flag in '' yes
17455 # Use a header file that comes with gcc, so configuring glibc
17456 # with a fresh cross-compiler works.
17457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17458 # <limits.h> exists even on freestanding compilers.
17459 # On the NeXT, cc -E runs the code through the compiler's parser,
17460 # not just through cpp. "Syntax error" is here to catch this case.
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17463 #ifdef __STDC__
17464 # include <limits.h>
17465 #else
17466 # include <assert.h>
17467 #endif
17468 Syntax error
17469 _ACEOF
17470 if ac_fn_cxx_try_cpp "$LINENO"; then :
17472 else
17473 # Broken: fails on valid input.
17474 continue
17476 rm -f conftest.err conftest.$ac_ext
17478 # OK, works on sane cases. Now check whether nonexistent headers
17479 # can be detected and how.
17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17482 #include <ac_nonexistent.h>
17483 _ACEOF
17484 if ac_fn_cxx_try_cpp "$LINENO"; then :
17485 # Broken: success on invalid input.
17486 continue
17487 else
17488 # Passes both tests.
17489 ac_preproc_ok=:
17490 break
17492 rm -f conftest.err conftest.$ac_ext
17494 done
17495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17496 rm -f conftest.err conftest.$ac_ext
17497 if $ac_preproc_ok; then :
17498 break
17501 done
17502 ac_cv_prog_CXXCPP=$CXXCPP
17505 CXXCPP=$ac_cv_prog_CXXCPP
17506 else
17507 ac_cv_prog_CXXCPP=$CXXCPP
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17510 $as_echo "$CXXCPP" >&6; }
17511 ac_preproc_ok=false
17512 for ac_cxx_preproc_warn_flag in '' yes
17514 # Use a header file that comes with gcc, so configuring glibc
17515 # with a fresh cross-compiler works.
17516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17517 # <limits.h> exists even on freestanding compilers.
17518 # On the NeXT, cc -E runs the code through the compiler's parser,
17519 # not just through cpp. "Syntax error" is here to catch this case.
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 #ifdef __STDC__
17523 # include <limits.h>
17524 #else
17525 # include <assert.h>
17526 #endif
17527 Syntax error
17528 _ACEOF
17529 if ac_fn_cxx_try_cpp "$LINENO"; then :
17531 else
17532 # Broken: fails on valid input.
17533 continue
17535 rm -f conftest.err conftest.$ac_ext
17537 # OK, works on sane cases. Now check whether nonexistent headers
17538 # can be detected and how.
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540 /* end confdefs.h. */
17541 #include <ac_nonexistent.h>
17542 _ACEOF
17543 if ac_fn_cxx_try_cpp "$LINENO"; then :
17544 # Broken: success on invalid input.
17545 continue
17546 else
17547 # Passes both tests.
17548 ac_preproc_ok=:
17549 break
17551 rm -f conftest.err conftest.$ac_ext
17553 done
17554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17555 rm -f conftest.err conftest.$ac_ext
17556 if $ac_preproc_ok; then :
17558 else
17559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17561 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17562 See \`config.log' for more details." "$LINENO" 5; }
17565 ac_ext=c
17566 ac_cpp='$CPP $CPPFLAGS'
17567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17571 else
17572 _lt_caught_CXX_error=yes
17575 ac_ext=cpp
17576 ac_cpp='$CXXCPP $CPPFLAGS'
17577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17581 archive_cmds_need_lc_CXX=no
17582 allow_undefined_flag_CXX=
17583 always_export_symbols_CXX=no
17584 archive_expsym_cmds_CXX=
17585 compiler_needs_object_CXX=no
17586 export_dynamic_flag_spec_CXX=
17587 hardcode_direct_CXX=no
17588 hardcode_direct_absolute_CXX=no
17589 hardcode_libdir_flag_spec_CXX=
17590 hardcode_libdir_flag_spec_ld_CXX=
17591 hardcode_libdir_separator_CXX=
17592 hardcode_minus_L_CXX=no
17593 hardcode_shlibpath_var_CXX=unsupported
17594 hardcode_automatic_CXX=no
17595 inherit_rpath_CXX=no
17596 module_cmds_CXX=
17597 module_expsym_cmds_CXX=
17598 link_all_deplibs_CXX=unknown
17599 old_archive_cmds_CXX=$old_archive_cmds
17600 reload_flag_CXX=$reload_flag
17601 reload_cmds_CXX=$reload_cmds
17602 no_undefined_flag_CXX=
17603 whole_archive_flag_spec_CXX=
17604 enable_shared_with_static_runtimes_CXX=no
17606 # Source file extension for C++ test sources.
17607 ac_ext=cpp
17609 # Object file extension for compiled C++ test sources.
17610 objext=o
17611 objext_CXX=$objext
17613 # No sense in running all these tests if we already determined that
17614 # the CXX compiler isn't working. Some variables (like enable_shared)
17615 # are currently assumed to apply to all compilers on this platform,
17616 # and will be corrupted by setting them based on a non-working compiler.
17617 if test "$_lt_caught_CXX_error" != yes; then
17618 # Code to be used in simple compile tests
17619 lt_simple_compile_test_code="int some_variable = 0;"
17621 # Code to be used in simple link tests
17622 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17631 # If no C compiler was specified, use CC.
17632 LTCC=${LTCC-"$CC"}
17634 # If no C compiler flags were specified, use CFLAGS.
17635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17637 # Allow CC to be a program name with arguments.
17638 compiler=$CC
17641 # save warnings/boilerplate of simple test code
17642 ac_outfile=conftest.$ac_objext
17643 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17645 _lt_compiler_boilerplate=`cat conftest.err`
17646 $RM conftest*
17648 ac_outfile=conftest.$ac_objext
17649 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17651 _lt_linker_boilerplate=`cat conftest.err`
17652 $RM -r conftest*
17655 # Allow CC to be a program name with arguments.
17656 lt_save_CC=$CC
17657 lt_save_LD=$LD
17658 lt_save_GCC=$GCC
17659 GCC=$GXX
17660 lt_save_with_gnu_ld=$with_gnu_ld
17661 lt_save_path_LD=$lt_cv_path_LD
17662 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17663 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17664 else
17665 $as_unset lt_cv_prog_gnu_ld
17667 if test -n "${lt_cv_path_LDCXX+set}"; then
17668 lt_cv_path_LD=$lt_cv_path_LDCXX
17669 else
17670 $as_unset lt_cv_path_LD
17672 test -z "${LDCXX+set}" || LD=$LDCXX
17673 CC=${CXX-"c++"}
17674 compiler=$CC
17675 compiler_CXX=$CC
17676 for cc_temp in $compiler""; do
17677 case $cc_temp in
17678 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17679 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17680 \-*) ;;
17681 *) break;;
17682 esac
17683 done
17684 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17687 if test -n "$compiler"; then
17688 # We don't want -fno-exception when compiling C++ code, so set the
17689 # no_builtin_flag separately
17690 if test "$GXX" = yes; then
17691 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17692 else
17693 lt_prog_compiler_no_builtin_flag_CXX=
17696 if test "$GXX" = yes; then
17697 # Set up default GNU C++ configuration
17701 # Check whether --with-gnu-ld was given.
17702 if test "${with_gnu_ld+set}" = set; then :
17703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17704 else
17705 with_gnu_ld=no
17708 ac_prog=ld
17709 if test "$GCC" = yes; then
17710 # Check if gcc -print-prog-name=ld gives a path.
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17712 $as_echo_n "checking for ld used by $CC... " >&6; }
17713 case $host in
17714 *-*-mingw*)
17715 # gcc leaves a trailing carriage return which upsets mingw
17716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17719 esac
17720 case $ac_prog in
17721 # Accept absolute paths.
17722 [\\/]* | ?:[\\/]*)
17723 re_direlt='/[^/][^/]*/\.\./'
17724 # Canonicalize the pathname of ld
17725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17728 done
17729 test -z "$LD" && LD="$ac_prog"
17732 # If it fails, then pretend we aren't using GCC.
17733 ac_prog=ld
17736 # If it is relative, then search for the first ld in PATH.
17737 with_gnu_ld=unknown
17739 esac
17740 elif test "$with_gnu_ld" = yes; then
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17742 $as_echo_n "checking for GNU ld... " >&6; }
17743 else
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17745 $as_echo_n "checking for non-GNU ld... " >&6; }
17747 if test "${lt_cv_path_LD+set}" = set; then :
17748 $as_echo_n "(cached) " >&6
17749 else
17750 if test -z "$LD"; then
17751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17752 for ac_dir in $PATH; do
17753 IFS="$lt_save_ifs"
17754 test -z "$ac_dir" && ac_dir=.
17755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17756 lt_cv_path_LD="$ac_dir/$ac_prog"
17757 # Check to see if the program is GNU ld. I'd rather use --version,
17758 # but apparently some variants of GNU ld only accept -v.
17759 # Break only if it was the GNU/non-GNU ld that we prefer.
17760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17761 *GNU* | *'with BFD'*)
17762 test "$with_gnu_ld" != no && break
17765 test "$with_gnu_ld" != yes && break
17767 esac
17769 done
17770 IFS="$lt_save_ifs"
17771 else
17772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17776 LD="$lt_cv_path_LD"
17777 if test -n "$LD"; then
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17779 $as_echo "$LD" >&6; }
17780 else
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17782 $as_echo "no" >&6; }
17784 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17786 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17787 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17788 $as_echo_n "(cached) " >&6
17789 else
17790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17791 case `$LD -v 2>&1 </dev/null` in
17792 *GNU* | *'with BFD'*)
17793 lt_cv_prog_gnu_ld=yes
17796 lt_cv_prog_gnu_ld=no
17798 esac
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17801 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17802 with_gnu_ld=$lt_cv_prog_gnu_ld
17810 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17811 # archiving commands below assume that GNU ld is being used.
17812 if test "$with_gnu_ld" = yes; then
17813 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17814 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'
17816 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17817 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17819 # If archive_cmds runs LD, not CC, wlarc should be empty
17820 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17821 # investigate it a little bit more. (MM)
17822 wlarc='${wl}'
17824 # ancient GNU ld didn't support --whole-archive et. al.
17825 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17826 $GREP 'no-whole-archive' > /dev/null; then
17827 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17828 else
17829 whole_archive_flag_spec_CXX=
17831 else
17832 with_gnu_ld=no
17833 wlarc=
17835 # A generic and very simple default shared library creation
17836 # command for GNU C++ for the case where it uses the native
17837 # linker, instead of GNU ld. If possible, this setting should
17838 # overridden to take advantage of the native linker features on
17839 # the platform it is being used on.
17840 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17843 # Commands to make compiler produce verbose output that lists
17844 # what "hidden" libraries, object files and flags are used when
17845 # linking a shared library.
17846 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17848 else
17849 GXX=no
17850 with_gnu_ld=no
17851 wlarc=
17854 # PORTME: fill in a description of your system's C++ link characteristics
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17856 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17857 ld_shlibs_CXX=yes
17858 case $host_os in
17859 aix3*)
17860 # FIXME: insert proper C++ library support
17861 ld_shlibs_CXX=no
17863 aix[4-9]*)
17864 if test "$host_cpu" = ia64; then
17865 # On IA64, the linker does run time linking by default, so we don't
17866 # have to do anything special.
17867 aix_use_runtimelinking=no
17868 exp_sym_flag='-Bexport'
17869 no_entry_flag=""
17870 else
17871 aix_use_runtimelinking=no
17873 # Test if we are trying to use run time linking or normal
17874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17875 # need to do runtime linking.
17876 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17877 for ld_flag in $LDFLAGS; do
17878 case $ld_flag in
17879 *-brtl*)
17880 aix_use_runtimelinking=yes
17881 break
17883 esac
17884 done
17886 esac
17888 exp_sym_flag='-bexport'
17889 no_entry_flag='-bnoentry'
17892 # When large executables or shared objects are built, AIX ld can
17893 # have problems creating the table of contents. If linking a library
17894 # or program results in "error TOC overflow" add -mminimal-toc to
17895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17898 archive_cmds_CXX=''
17899 hardcode_direct_CXX=yes
17900 hardcode_direct_absolute_CXX=yes
17901 hardcode_libdir_separator_CXX=':'
17902 link_all_deplibs_CXX=yes
17903 file_list_spec_CXX='${wl}-f,'
17905 if test "$GXX" = yes; then
17906 case $host_os in aix4.[012]|aix4.[012].*)
17907 # We only want to do this on AIX 4.2 and lower, the check
17908 # below for broken collect2 doesn't work under 4.3+
17909 collect2name=`${CC} -print-prog-name=collect2`
17910 if test -f "$collect2name" &&
17911 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17912 then
17913 # We have reworked collect2
17915 else
17916 # We have old collect2
17917 hardcode_direct_CXX=unsupported
17918 # It fails to find uninstalled libraries when the uninstalled
17919 # path is not listed in the libpath. Setting hardcode_minus_L
17920 # to unsupported forces relinking
17921 hardcode_minus_L_CXX=yes
17922 hardcode_libdir_flag_spec_CXX='-L$libdir'
17923 hardcode_libdir_separator_CXX=
17925 esac
17926 shared_flag='-shared'
17927 if test "$aix_use_runtimelinking" = yes; then
17928 shared_flag="$shared_flag "'${wl}-G'
17930 else
17931 # not using gcc
17932 if test "$host_cpu" = ia64; then
17933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17934 # chokes on -Wl,-G. The following line is correct:
17935 shared_flag='-G'
17936 else
17937 if test "$aix_use_runtimelinking" = yes; then
17938 shared_flag='${wl}-G'
17939 else
17940 shared_flag='${wl}-bM:SRE'
17945 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17946 # It seems that -bexpall does not export symbols beginning with
17947 # underscore (_), so it is better to generate a list of symbols to
17948 # export.
17949 always_export_symbols_CXX=yes
17950 if test "$aix_use_runtimelinking" = yes; then
17951 # Warning - without using the other runtime loading flags (-brtl),
17952 # -berok will link without error, but may produce a broken library.
17953 allow_undefined_flag_CXX='-berok'
17954 # Determine the default libpath from the value encoded in an empty
17955 # executable.
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17960 main ()
17964 return 0;
17966 _ACEOF
17967 if ac_fn_cxx_try_link "$LINENO"; then :
17969 lt_aix_libpath_sed='
17970 /Import File Strings/,/^$/ {
17971 /^0/ {
17972 s/^0 *\(.*\)$/\1/
17976 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17977 # Check for a 64-bit object if we didn't find anything.
17978 if test -z "$aix_libpath"; then
17979 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17982 rm -f core conftest.err conftest.$ac_objext \
17983 conftest$ac_exeext conftest.$ac_ext
17984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17986 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17988 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"
17989 else
17990 if test "$host_cpu" = ia64; then
17991 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17992 allow_undefined_flag_CXX="-z nodefs"
17993 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"
17994 else
17995 # Determine the default libpath from the value encoded in an
17996 # empty executable.
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
18001 main ()
18005 return 0;
18007 _ACEOF
18008 if ac_fn_cxx_try_link "$LINENO"; then :
18010 lt_aix_libpath_sed='
18011 /Import File Strings/,/^$/ {
18012 /^0/ {
18013 s/^0 *\(.*\)$/\1/
18017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18018 # Check for a 64-bit object if we didn't find anything.
18019 if test -z "$aix_libpath"; then
18020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18023 rm -f core conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18027 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18028 # Warning - without using the other run time loading flags,
18029 # -berok will link without error, but may produce a broken library.
18030 no_undefined_flag_CXX=' ${wl}-bernotok'
18031 allow_undefined_flag_CXX=' ${wl}-berok'
18032 if test "$with_gnu_ld" = yes; then
18033 # We only use this code for GNU lds that support --whole-archive.
18034 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18035 else
18036 # Exported symbols can be pulled into shared objects from archives
18037 whole_archive_flag_spec_CXX='$convenience'
18039 archive_cmds_need_lc_CXX=yes
18040 # This is similar to how AIX traditionally builds its shared
18041 # libraries.
18042 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'
18047 beos*)
18048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18049 allow_undefined_flag_CXX=unsupported
18050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18051 # support --undefined. This deserves some investigation. FIXME
18052 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18053 else
18054 ld_shlibs_CXX=no
18058 chorus*)
18059 case $cc_basename in
18061 # FIXME: insert proper C++ library support
18062 ld_shlibs_CXX=no
18064 esac
18067 cygwin* | mingw* | pw32* | cegcc*)
18068 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18069 # as there is no search path for DLLs.
18070 hardcode_libdir_flag_spec_CXX='-L$libdir'
18071 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18072 allow_undefined_flag_CXX=unsupported
18073 always_export_symbols_CXX=no
18074 enable_shared_with_static_runtimes_CXX=yes
18076 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18077 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'
18078 # If the export-symbols file already is a .def file (1st line
18079 # is EXPORTS), use it as is; otherwise, prepend...
18080 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18081 cp $export_symbols $output_objdir/$soname.def;
18082 else
18083 echo EXPORTS > $output_objdir/$soname.def;
18084 cat $export_symbols >> $output_objdir/$soname.def;
18086 $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'
18087 else
18088 ld_shlibs_CXX=no
18091 darwin* | rhapsody*)
18094 archive_cmds_need_lc_CXX=no
18095 hardcode_direct_CXX=no
18096 hardcode_automatic_CXX=yes
18097 hardcode_shlibpath_var_CXX=unsupported
18098 if test "$lt_cv_ld_force_load" = "yes"; then
18099 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\"`'
18100 else
18101 whole_archive_flag_spec_CXX=''
18103 link_all_deplibs_CXX=yes
18104 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18105 case $cc_basename in
18106 ifort*) _lt_dar_can_shared=yes ;;
18107 *) _lt_dar_can_shared=$GCC ;;
18108 esac
18109 if test "$_lt_dar_can_shared" = "yes"; then
18110 output_verbose_link_cmd=func_echo_all
18111 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}"
18112 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18113 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}"
18114 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}"
18115 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18116 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}"
18117 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}"
18120 else
18121 ld_shlibs_CXX=no
18126 dgux*)
18127 case $cc_basename in
18128 ec++*)
18129 # FIXME: insert proper C++ library support
18130 ld_shlibs_CXX=no
18132 ghcx*)
18133 # Green Hills C++ Compiler
18134 # FIXME: insert proper C++ library support
18135 ld_shlibs_CXX=no
18138 # FIXME: insert proper C++ library support
18139 ld_shlibs_CXX=no
18141 esac
18144 freebsd[12]*)
18145 # C++ shared libraries reported to be fairly broken before
18146 # switch to ELF
18147 ld_shlibs_CXX=no
18150 freebsd-elf*)
18151 archive_cmds_need_lc_CXX=no
18154 freebsd* | dragonfly*)
18155 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18156 # conventions
18157 ld_shlibs_CXX=yes
18160 gnu*)
18163 haiku*)
18164 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18165 link_all_deplibs_CXX=yes
18168 hpux9*)
18169 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18170 hardcode_libdir_separator_CXX=:
18171 export_dynamic_flag_spec_CXX='${wl}-E'
18172 hardcode_direct_CXX=yes
18173 hardcode_minus_L_CXX=yes # Not in the search PATH,
18174 # but as the default
18175 # location of the library.
18177 case $cc_basename in
18178 CC*)
18179 # FIXME: insert proper C++ library support
18180 ld_shlibs_CXX=no
18182 aCC*)
18183 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'
18184 # Commands to make compiler produce verbose output that lists
18185 # what "hidden" libraries, object files and flags are used when
18186 # linking a shared library.
18188 # There doesn't appear to be a way to prevent this compiler from
18189 # explicitly linking system object files so we need to strip them
18190 # from the output so that they don't get included in the library
18191 # dependencies.
18192 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"'
18195 if test "$GXX" = yes; then
18196 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'
18197 else
18198 # FIXME: insert proper C++ library support
18199 ld_shlibs_CXX=no
18202 esac
18205 hpux10*|hpux11*)
18206 if test $with_gnu_ld = no; then
18207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18208 hardcode_libdir_separator_CXX=:
18210 case $host_cpu in
18211 hppa*64*|ia64*)
18214 export_dynamic_flag_spec_CXX='${wl}-E'
18216 esac
18218 case $host_cpu in
18219 hppa*64*|ia64*)
18220 hardcode_direct_CXX=no
18221 hardcode_shlibpath_var_CXX=no
18224 hardcode_direct_CXX=yes
18225 hardcode_direct_absolute_CXX=yes
18226 hardcode_minus_L_CXX=yes # Not in the search PATH,
18227 # but as the default
18228 # location of the library.
18230 esac
18232 case $cc_basename in
18233 CC*)
18234 # FIXME: insert proper C++ library support
18235 ld_shlibs_CXX=no
18237 aCC*)
18238 case $host_cpu in
18239 hppa*64*)
18240 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18242 ia64*)
18243 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18246 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18248 esac
18249 # Commands to make compiler produce verbose output that lists
18250 # what "hidden" libraries, object files and flags are used when
18251 # linking a shared library.
18253 # There doesn't appear to be a way to prevent this compiler from
18254 # explicitly linking system object files so we need to strip them
18255 # from the output so that they don't get included in the library
18256 # dependencies.
18257 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"'
18260 if test "$GXX" = yes; then
18261 if test $with_gnu_ld = no; then
18262 case $host_cpu in
18263 hppa*64*)
18264 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18266 ia64*)
18267 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18270 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'
18272 esac
18274 else
18275 # FIXME: insert proper C++ library support
18276 ld_shlibs_CXX=no
18279 esac
18282 interix[3-9]*)
18283 hardcode_direct_CXX=no
18284 hardcode_shlibpath_var_CXX=no
18285 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18286 export_dynamic_flag_spec_CXX='${wl}-E'
18287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18288 # Instead, shared libraries are loaded at an image base (0x10000000 by
18289 # default) and relocated if they conflict, which is a slow very memory
18290 # consuming and fragmenting process. To avoid this, we pick a random,
18291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18293 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'
18294 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'
18296 irix5* | irix6*)
18297 case $cc_basename in
18298 CC*)
18299 # SGI C++
18300 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'
18302 # Archives containing C++ object files must be created using
18303 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18304 # necessary to make sure instantiated templates are included
18305 # in the archive.
18306 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18309 if test "$GXX" = yes; then
18310 if test "$with_gnu_ld" = no; then
18311 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'
18312 else
18313 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'
18316 link_all_deplibs_CXX=yes
18318 esac
18319 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18320 hardcode_libdir_separator_CXX=:
18321 inherit_rpath_CXX=yes
18324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18325 case $cc_basename in
18326 KCC*)
18327 # Kuck and Associates, Inc. (KAI) C++ Compiler
18329 # KCC will only create a shared library if the output file
18330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18331 # to its proper name (with version) after linking.
18332 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'
18333 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'
18334 # Commands to make compiler produce verbose output that lists
18335 # what "hidden" libraries, object files and flags are used when
18336 # linking a shared library.
18338 # There doesn't appear to be a way to prevent this compiler from
18339 # explicitly linking system object files so we need to strip them
18340 # from the output so that they don't get included in the library
18341 # dependencies.
18342 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"'
18344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18345 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18347 # Archives containing C++ object files must be created using
18348 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18349 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18351 icpc* | ecpc* )
18352 # Intel C++
18353 with_gnu_ld=yes
18354 # version 8.0 and above of icpc choke on multiply defined symbols
18355 # if we add $predep_objects and $postdep_objects, however 7.1 and
18356 # earlier do not add the objects themselves.
18357 case `$CC -V 2>&1` in
18358 *"Version 7."*)
18359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18360 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'
18362 *) # Version 8.0 or newer
18363 tmp_idyn=
18364 case $host_cpu in
18365 ia64*) tmp_idyn=' -i_dynamic';;
18366 esac
18367 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18368 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'
18370 esac
18371 archive_cmds_need_lc_CXX=no
18372 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18373 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18374 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18376 pgCC* | pgcpp*)
18377 # Portland Group C++ compiler
18378 case `$CC -V` in
18379 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18380 prelink_cmds_CXX='tpldir=Template.dir~
18381 rm -rf $tpldir~
18382 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18383 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18384 old_archive_cmds_CXX='tpldir=Template.dir~
18385 rm -rf $tpldir~
18386 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18387 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18388 $RANLIB $oldlib'
18389 archive_cmds_CXX='tpldir=Template.dir~
18390 rm -rf $tpldir~
18391 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18392 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18393 archive_expsym_cmds_CXX='tpldir=Template.dir~
18394 rm -rf $tpldir~
18395 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18396 $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'
18398 *) # Version 6 and above use weak symbols
18399 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18400 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'
18402 esac
18404 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18406 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'
18408 cxx*)
18409 # Compaq C++
18410 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18411 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'
18413 runpath_var=LD_RUN_PATH
18414 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18415 hardcode_libdir_separator_CXX=:
18417 # Commands to make compiler produce verbose output that lists
18418 # what "hidden" libraries, object files and flags are used when
18419 # linking a shared library.
18421 # There doesn't appear to be a way to prevent this compiler from
18422 # explicitly linking system object files so we need to strip them
18423 # from the output so that they don't get included in the library
18424 # dependencies.
18425 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'
18427 xl* | mpixl* | bgxl*)
18428 # IBM XL 8.0 on PPC, with GNU ld
18429 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18431 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18432 if test "x$supports_anon_versioning" = xyes; then
18433 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18435 echo "local: *; };" >> $output_objdir/$libname.ver~
18436 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18440 case `$CC -V 2>&1 | sed 5q` in
18441 *Sun\ C*)
18442 # Sun C++ 5.9
18443 no_undefined_flag_CXX=' -zdefs'
18444 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18445 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'
18446 hardcode_libdir_flag_spec_CXX='-R$libdir'
18447 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'
18448 compiler_needs_object_CXX=yes
18450 # Not sure whether something based on
18451 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18452 # would be better.
18453 output_verbose_link_cmd='func_echo_all'
18455 # Archives containing C++ object files must be created using
18456 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18457 # necessary to make sure instantiated templates are included
18458 # in the archive.
18459 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18461 esac
18463 esac
18466 lynxos*)
18467 # FIXME: insert proper C++ library support
18468 ld_shlibs_CXX=no
18471 m88k*)
18472 # FIXME: insert proper C++ library support
18473 ld_shlibs_CXX=no
18476 mvs*)
18477 case $cc_basename in
18478 cxx*)
18479 # FIXME: insert proper C++ library support
18480 ld_shlibs_CXX=no
18483 # FIXME: insert proper C++ library support
18484 ld_shlibs_CXX=no
18486 esac
18489 netbsd*)
18490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18491 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18492 wlarc=
18493 hardcode_libdir_flag_spec_CXX='-R$libdir'
18494 hardcode_direct_CXX=yes
18495 hardcode_shlibpath_var_CXX=no
18497 # Workaround some broken pre-1.5 toolchains
18498 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18501 *nto* | *qnx*)
18502 ld_shlibs_CXX=yes
18505 openbsd2*)
18506 # C++ shared libraries are fairly broken
18507 ld_shlibs_CXX=no
18510 openbsd*)
18511 if test -f /usr/libexec/ld.so; then
18512 hardcode_direct_CXX=yes
18513 hardcode_shlibpath_var_CXX=no
18514 hardcode_direct_absolute_CXX=yes
18515 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18516 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18518 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18519 export_dynamic_flag_spec_CXX='${wl}-E'
18520 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18522 output_verbose_link_cmd=func_echo_all
18523 else
18524 ld_shlibs_CXX=no
18528 osf3* | osf4* | osf5*)
18529 case $cc_basename in
18530 KCC*)
18531 # Kuck and Associates, Inc. (KAI) C++ Compiler
18533 # KCC will only create a shared library if the output file
18534 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18535 # to its proper name (with version) after linking.
18536 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'
18538 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18539 hardcode_libdir_separator_CXX=:
18541 # Archives containing C++ object files must be created using
18542 # the KAI C++ compiler.
18543 case $host in
18544 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18545 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18546 esac
18548 RCC*)
18549 # Rational C++ 2.4.1
18550 # FIXME: insert proper C++ library support
18551 ld_shlibs_CXX=no
18553 cxx*)
18554 case $host in
18555 osf3*)
18556 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18557 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'
18558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18561 allow_undefined_flag_CXX=' -expect_unresolved \*'
18562 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'
18563 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18564 echo "-hidden">> $lib.exp~
18565 $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~
18566 $RM $lib.exp'
18567 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18569 esac
18571 hardcode_libdir_separator_CXX=:
18573 # Commands to make compiler produce verbose output that lists
18574 # what "hidden" libraries, object files and flags are used when
18575 # linking a shared library.
18577 # There doesn't appear to be a way to prevent this compiler from
18578 # explicitly linking system object files so we need to strip them
18579 # from the output so that they don't get included in the library
18580 # dependencies.
18581 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"'
18584 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18585 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18586 case $host in
18587 osf3*)
18588 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'
18591 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'
18593 esac
18595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18596 hardcode_libdir_separator_CXX=:
18598 # Commands to make compiler produce verbose output that lists
18599 # what "hidden" libraries, object files and flags are used when
18600 # linking a shared library.
18601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18603 else
18604 # FIXME: insert proper C++ library support
18605 ld_shlibs_CXX=no
18608 esac
18611 psos*)
18612 # FIXME: insert proper C++ library support
18613 ld_shlibs_CXX=no
18616 sunos4*)
18617 case $cc_basename in
18618 CC*)
18619 # Sun C++ 4.x
18620 # FIXME: insert proper C++ library support
18621 ld_shlibs_CXX=no
18623 lcc*)
18624 # Lucid
18625 # FIXME: insert proper C++ library support
18626 ld_shlibs_CXX=no
18629 # FIXME: insert proper C++ library support
18630 ld_shlibs_CXX=no
18632 esac
18635 solaris*)
18636 case $cc_basename in
18637 CC*)
18638 # Sun C++ 4.2, 5.x and Centerline C++
18639 archive_cmds_need_lc_CXX=yes
18640 no_undefined_flag_CXX=' -zdefs'
18641 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18642 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18643 $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'
18645 hardcode_libdir_flag_spec_CXX='-R$libdir'
18646 hardcode_shlibpath_var_CXX=no
18647 case $host_os in
18648 solaris2.[0-5] | solaris2.[0-5].*) ;;
18650 # The compiler driver will combine and reorder linker options,
18651 # but understands `-z linker_flag'.
18652 # Supported since Solaris 2.6 (maybe 2.5.1?)
18653 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18655 esac
18656 link_all_deplibs_CXX=yes
18658 output_verbose_link_cmd='func_echo_all'
18660 # Archives containing C++ object files must be created using
18661 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18662 # necessary to make sure instantiated templates are included
18663 # in the archive.
18664 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18666 gcx*)
18667 # Green Hills C++ Compiler
18668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18670 # The C++ compiler must be used to create the archive.
18671 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18674 # GNU C++ compiler with Solaris linker
18675 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18676 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18677 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18678 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18679 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18680 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18682 # Commands to make compiler produce verbose output that lists
18683 # what "hidden" libraries, object files and flags are used when
18684 # linking a shared library.
18685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18686 else
18687 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18688 # platform.
18689 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18690 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18691 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18693 # Commands to make compiler produce verbose output that lists
18694 # what "hidden" libraries, object files and flags are used when
18695 # linking a shared library.
18696 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18699 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18700 case $host_os in
18701 solaris2.[0-5] | solaris2.[0-5].*) ;;
18703 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18705 esac
18708 esac
18711 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18712 no_undefined_flag_CXX='${wl}-z,text'
18713 archive_cmds_need_lc_CXX=no
18714 hardcode_shlibpath_var_CXX=no
18715 runpath_var='LD_RUN_PATH'
18717 case $cc_basename in
18718 CC*)
18719 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18720 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18723 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18724 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18726 esac
18729 sysv5* | sco3.2v5* | sco5v6*)
18730 # Note: We can NOT use -z defs as we might desire, because we do not
18731 # link with -lc, and that would cause any symbols used from libc to
18732 # always be unresolved, which means just about no library would
18733 # ever link correctly. If we're not using GNU ld we use -z text
18734 # though, which does catch some bad symbols but isn't as heavy-handed
18735 # as -z defs.
18736 no_undefined_flag_CXX='${wl}-z,text'
18737 allow_undefined_flag_CXX='${wl}-z,nodefs'
18738 archive_cmds_need_lc_CXX=no
18739 hardcode_shlibpath_var_CXX=no
18740 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18741 hardcode_libdir_separator_CXX=':'
18742 link_all_deplibs_CXX=yes
18743 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18744 runpath_var='LD_RUN_PATH'
18746 case $cc_basename in
18747 CC*)
18748 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18751 '"$old_archive_cmds_CXX"
18752 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18753 '"$reload_cmds_CXX"
18756 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18757 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18759 esac
18762 tandem*)
18763 case $cc_basename in
18764 NCC*)
18765 # NonStop-UX NCC 3.20
18766 # FIXME: insert proper C++ library support
18767 ld_shlibs_CXX=no
18770 # FIXME: insert proper C++ library support
18771 ld_shlibs_CXX=no
18773 esac
18776 vxworks*)
18777 # FIXME: insert proper C++ library support
18778 ld_shlibs_CXX=no
18782 # FIXME: insert proper C++ library support
18783 ld_shlibs_CXX=no
18785 esac
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18788 $as_echo "$ld_shlibs_CXX" >&6; }
18789 test "$ld_shlibs_CXX" = no && can_build_shared=no
18791 GCC_CXX="$GXX"
18792 LD_CXX="$LD"
18794 ## CAVEAT EMPTOR:
18795 ## There is no encapsulation within the following macros, do not change
18796 ## the running order or otherwise move them around unless you know exactly
18797 ## what you are doing...
18798 # Dependencies to place before and after the object being linked:
18799 predep_objects_CXX=
18800 postdep_objects_CXX=
18801 predeps_CXX=
18802 postdeps_CXX=
18803 compiler_lib_search_path_CXX=
18805 cat > conftest.$ac_ext <<_LT_EOF
18806 class Foo
18808 public:
18809 Foo (void) { a = 0; }
18810 private:
18811 int a;
18813 _LT_EOF
18815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18816 (eval $ac_compile) 2>&5
18817 ac_status=$?
18818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18819 test $ac_status = 0; }; then
18820 # Parse the compiler output and extract the necessary
18821 # objects, libraries and library flags.
18823 # Sentinel used to keep track of whether or not we are before
18824 # the conftest object file.
18825 pre_test_object_deps_done=no
18827 for p in `eval "$output_verbose_link_cmd"`; do
18828 case $p in
18830 -L* | -R* | -l*)
18831 # Some compilers place space between "-{L,R}" and the path.
18832 # Remove the space.
18833 if test $p = "-L" ||
18834 test $p = "-R"; then
18835 prev=$p
18836 continue
18837 else
18838 prev=
18841 if test "$pre_test_object_deps_done" = no; then
18842 case $p in
18843 -L* | -R*)
18844 # Internal compiler library paths should come after those
18845 # provided the user. The postdeps already come after the
18846 # user supplied libs so there is no need to process them.
18847 if test -z "$compiler_lib_search_path_CXX"; then
18848 compiler_lib_search_path_CXX="${prev}${p}"
18849 else
18850 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18853 # The "-l" case would never come before the object being
18854 # linked, so don't bother handling this case.
18855 esac
18856 else
18857 if test -z "$postdeps_CXX"; then
18858 postdeps_CXX="${prev}${p}"
18859 else
18860 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18865 *.$objext)
18866 # This assumes that the test object file only shows up
18867 # once in the compiler output.
18868 if test "$p" = "conftest.$objext"; then
18869 pre_test_object_deps_done=yes
18870 continue
18873 if test "$pre_test_object_deps_done" = no; then
18874 if test -z "$predep_objects_CXX"; then
18875 predep_objects_CXX="$p"
18876 else
18877 predep_objects_CXX="$predep_objects_CXX $p"
18879 else
18880 if test -z "$postdep_objects_CXX"; then
18881 postdep_objects_CXX="$p"
18882 else
18883 postdep_objects_CXX="$postdep_objects_CXX $p"
18888 *) ;; # Ignore the rest.
18890 esac
18891 done
18893 # Clean up.
18894 rm -f a.out a.exe
18895 else
18896 echo "libtool.m4: error: problem compiling CXX test program"
18899 $RM -f confest.$objext
18901 # PORTME: override above test on systems where it is broken
18902 case $host_os in
18903 interix[3-9]*)
18904 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18905 # hack all around it, let's just trust "g++" to DTRT.
18906 predep_objects_CXX=
18907 postdep_objects_CXX=
18908 postdeps_CXX=
18911 linux*)
18912 case `$CC -V 2>&1 | sed 5q` in
18913 *Sun\ C*)
18914 # Sun C++ 5.9
18916 # The more standards-conforming stlport4 library is
18917 # incompatible with the Cstd library. Avoid specifying
18918 # it if it's in CXXFLAGS. Ignore libCrun as
18919 # -library=stlport4 depends on it.
18920 case " $CXX $CXXFLAGS " in
18921 *" -library=stlport4 "*)
18922 solaris_use_stlport4=yes
18924 esac
18926 if test "$solaris_use_stlport4" != yes; then
18927 postdeps_CXX='-library=Cstd -library=Crun'
18930 esac
18933 solaris*)
18934 case $cc_basename in
18935 CC*)
18936 # The more standards-conforming stlport4 library is
18937 # incompatible with the Cstd library. Avoid specifying
18938 # it if it's in CXXFLAGS. Ignore libCrun as
18939 # -library=stlport4 depends on it.
18940 case " $CXX $CXXFLAGS " in
18941 *" -library=stlport4 "*)
18942 solaris_use_stlport4=yes
18944 esac
18946 # Adding this requires a known-good setup of shared libraries for
18947 # Sun compiler versions before 5.6, else PIC objects from an old
18948 # archive will be linked into the output, leading to subtle bugs.
18949 if test "$solaris_use_stlport4" != yes; then
18950 postdeps_CXX='-library=Cstd -library=Crun'
18953 esac
18955 esac
18958 case " $postdeps_CXX " in
18959 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18960 esac
18961 compiler_lib_search_dirs_CXX=
18962 if test -n "${compiler_lib_search_path_CXX}"; then
18963 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18996 lt_prog_compiler_wl_CXX=
18997 lt_prog_compiler_pic_CXX=
18998 lt_prog_compiler_static_CXX=
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19001 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19003 # C++ specific cases for pic, static, wl, etc.
19004 if test "$GXX" = yes; then
19005 lt_prog_compiler_wl_CXX='-Wl,'
19006 lt_prog_compiler_static_CXX='-static'
19008 case $host_os in
19009 aix*)
19010 # All AIX code is PIC.
19011 if test "$host_cpu" = ia64; then
19012 # AIX 5 now supports IA64 processor
19013 lt_prog_compiler_static_CXX='-Bstatic'
19017 amigaos*)
19018 case $host_cpu in
19019 powerpc)
19020 # see comment about AmigaOS4 .so support
19021 lt_prog_compiler_pic_CXX='-fPIC'
19023 m68k)
19024 # FIXME: we need at least 68020 code to build shared libraries, but
19025 # adding the `-m68020' flag to GCC prevents building anything better,
19026 # like `-m68040'.
19027 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19029 esac
19032 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19033 # PIC is the default for these OSes.
19035 mingw* | cygwin* | os2* | pw32* | cegcc*)
19036 # This hack is so that the source file can tell whether it is being
19037 # built for inclusion in a dll (and should export symbols for example).
19038 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19039 # (--disable-auto-import) libraries
19040 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19042 darwin* | rhapsody*)
19043 # PIC is the default on this platform
19044 # Common symbols not allowed in MH_DYLIB files
19045 lt_prog_compiler_pic_CXX='-fno-common'
19047 *djgpp*)
19048 # DJGPP does not support shared libraries at all
19049 lt_prog_compiler_pic_CXX=
19051 haiku*)
19052 # PIC is the default for Haiku.
19053 # The "-static" flag exists, but is broken.
19054 lt_prog_compiler_static_CXX=
19056 interix[3-9]*)
19057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19058 # Instead, we relocate shared libraries at runtime.
19060 sysv4*MP*)
19061 if test -d /usr/nec; then
19062 lt_prog_compiler_pic_CXX=-Kconform_pic
19065 hpux*)
19066 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19067 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19068 # sets the default TLS model and affects inlining.
19069 case $host_cpu in
19070 hppa*64*)
19073 lt_prog_compiler_pic_CXX='-fPIC'
19075 esac
19077 *qnx* | *nto*)
19078 # QNX uses GNU C++, but need to define -shared option too, otherwise
19079 # it will coredump.
19080 lt_prog_compiler_pic_CXX='-fPIC -shared'
19083 lt_prog_compiler_pic_CXX='-fPIC'
19085 esac
19086 else
19087 case $host_os in
19088 aix[4-9]*)
19089 # All AIX code is PIC.
19090 if test "$host_cpu" = ia64; then
19091 # AIX 5 now supports IA64 processor
19092 lt_prog_compiler_static_CXX='-Bstatic'
19093 else
19094 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19097 chorus*)
19098 case $cc_basename in
19099 cxch68*)
19100 # Green Hills C++ Compiler
19101 # _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"
19103 esac
19105 dgux*)
19106 case $cc_basename in
19107 ec++*)
19108 lt_prog_compiler_pic_CXX='-KPIC'
19110 ghcx*)
19111 # Green Hills C++ Compiler
19112 lt_prog_compiler_pic_CXX='-pic'
19116 esac
19118 freebsd* | dragonfly*)
19119 # FreeBSD uses GNU C++
19121 hpux9* | hpux10* | hpux11*)
19122 case $cc_basename in
19123 CC*)
19124 lt_prog_compiler_wl_CXX='-Wl,'
19125 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19126 if test "$host_cpu" != ia64; then
19127 lt_prog_compiler_pic_CXX='+Z'
19130 aCC*)
19131 lt_prog_compiler_wl_CXX='-Wl,'
19132 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19133 case $host_cpu in
19134 hppa*64*|ia64*)
19135 # +Z the default
19138 lt_prog_compiler_pic_CXX='+Z'
19140 esac
19144 esac
19146 interix*)
19147 # This is c89, which is MS Visual C++ (no shared libs)
19148 # Anyone wants to do a port?
19150 irix5* | irix6* | nonstopux*)
19151 case $cc_basename in
19152 CC*)
19153 lt_prog_compiler_wl_CXX='-Wl,'
19154 lt_prog_compiler_static_CXX='-non_shared'
19155 # CC pic flag -KPIC is the default.
19159 esac
19161 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19162 case $cc_basename in
19163 KCC*)
19164 # KAI C++ Compiler
19165 lt_prog_compiler_wl_CXX='--backend -Wl,'
19166 lt_prog_compiler_pic_CXX='-fPIC'
19168 ecpc* )
19169 # old Intel C++ for x86_64 which still supported -KPIC.
19170 lt_prog_compiler_wl_CXX='-Wl,'
19171 lt_prog_compiler_pic_CXX='-KPIC'
19172 lt_prog_compiler_static_CXX='-static'
19174 icpc* )
19175 # Intel C++, used to be incompatible with GCC.
19176 # ICC 10 doesn't accept -KPIC any more.
19177 lt_prog_compiler_wl_CXX='-Wl,'
19178 lt_prog_compiler_pic_CXX='-fPIC'
19179 lt_prog_compiler_static_CXX='-static'
19181 pgCC* | pgcpp*)
19182 # Portland Group C++ compiler
19183 lt_prog_compiler_wl_CXX='-Wl,'
19184 lt_prog_compiler_pic_CXX='-fpic'
19185 lt_prog_compiler_static_CXX='-Bstatic'
19187 cxx*)
19188 # Compaq C++
19189 # Make sure the PIC flag is empty. It appears that all Alpha
19190 # Linux and Compaq Tru64 Unix objects are PIC.
19191 lt_prog_compiler_pic_CXX=
19192 lt_prog_compiler_static_CXX='-non_shared'
19194 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19195 # IBM XL 8.0, 9.0 on PPC and BlueGene
19196 lt_prog_compiler_wl_CXX='-Wl,'
19197 lt_prog_compiler_pic_CXX='-qpic'
19198 lt_prog_compiler_static_CXX='-qstaticlink'
19201 case `$CC -V 2>&1 | sed 5q` in
19202 *Sun\ C*)
19203 # Sun C++ 5.9
19204 lt_prog_compiler_pic_CXX='-KPIC'
19205 lt_prog_compiler_static_CXX='-Bstatic'
19206 lt_prog_compiler_wl_CXX='-Qoption ld '
19208 esac
19210 esac
19212 lynxos*)
19214 m88k*)
19216 mvs*)
19217 case $cc_basename in
19218 cxx*)
19219 lt_prog_compiler_pic_CXX='-W c,exportall'
19223 esac
19225 netbsd*)
19227 *qnx* | *nto*)
19228 # QNX uses GNU C++, but need to define -shared option too, otherwise
19229 # it will coredump.
19230 lt_prog_compiler_pic_CXX='-fPIC -shared'
19232 osf3* | osf4* | osf5*)
19233 case $cc_basename in
19234 KCC*)
19235 lt_prog_compiler_wl_CXX='--backend -Wl,'
19237 RCC*)
19238 # Rational C++ 2.4.1
19239 lt_prog_compiler_pic_CXX='-pic'
19241 cxx*)
19242 # Digital/Compaq C++
19243 lt_prog_compiler_wl_CXX='-Wl,'
19244 # Make sure the PIC flag is empty. It appears that all Alpha
19245 # Linux and Compaq Tru64 Unix objects are PIC.
19246 lt_prog_compiler_pic_CXX=
19247 lt_prog_compiler_static_CXX='-non_shared'
19251 esac
19253 psos*)
19255 solaris*)
19256 case $cc_basename in
19257 CC*)
19258 # Sun C++ 4.2, 5.x and Centerline C++
19259 lt_prog_compiler_pic_CXX='-KPIC'
19260 lt_prog_compiler_static_CXX='-Bstatic'
19261 lt_prog_compiler_wl_CXX='-Qoption ld '
19263 gcx*)
19264 # Green Hills C++ Compiler
19265 lt_prog_compiler_pic_CXX='-PIC'
19269 esac
19271 sunos4*)
19272 case $cc_basename in
19273 CC*)
19274 # Sun C++ 4.x
19275 lt_prog_compiler_pic_CXX='-pic'
19276 lt_prog_compiler_static_CXX='-Bstatic'
19278 lcc*)
19279 # Lucid
19280 lt_prog_compiler_pic_CXX='-pic'
19284 esac
19286 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19287 case $cc_basename in
19288 CC*)
19289 lt_prog_compiler_wl_CXX='-Wl,'
19290 lt_prog_compiler_pic_CXX='-KPIC'
19291 lt_prog_compiler_static_CXX='-Bstatic'
19293 esac
19295 tandem*)
19296 case $cc_basename in
19297 NCC*)
19298 # NonStop-UX NCC 3.20
19299 lt_prog_compiler_pic_CXX='-KPIC'
19303 esac
19305 vxworks*)
19308 lt_prog_compiler_can_build_shared_CXX=no
19310 esac
19313 case $host_os in
19314 # For platforms which do not support PIC, -DPIC is meaningless:
19315 *djgpp*)
19316 lt_prog_compiler_pic_CXX=
19319 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19321 esac
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19323 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19328 # Check to make sure the PIC flag actually works.
19330 if test -n "$lt_prog_compiler_pic_CXX"; then
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19332 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19333 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19334 $as_echo_n "(cached) " >&6
19335 else
19336 lt_cv_prog_compiler_pic_works_CXX=no
19337 ac_outfile=conftest.$ac_objext
19338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19339 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19340 # Insert the option either (1) after the last *FLAGS variable, or
19341 # (2) before a word containing "conftest.", or (3) at the end.
19342 # Note that $ac_compile itself does not contain backslashes and begins
19343 # with a dollar sign (not a hyphen), so the echo should work correctly.
19344 # The option is referenced via a variable to avoid confusing sed.
19345 lt_compile=`echo "$ac_compile" | $SED \
19346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19348 -e 's:$: $lt_compiler_flag:'`
19349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19350 (eval "$lt_compile" 2>conftest.err)
19351 ac_status=$?
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 if (exit $ac_status) && test -s "$ac_outfile"; then
19355 # The compiler can only warn and ignore the option if not recognized
19356 # So say no if there are warnings other than the usual output.
19357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19360 lt_cv_prog_compiler_pic_works_CXX=yes
19363 $RM conftest*
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19367 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19369 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19370 case $lt_prog_compiler_pic_CXX in
19371 "" | " "*) ;;
19372 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19373 esac
19374 else
19375 lt_prog_compiler_pic_CXX=
19376 lt_prog_compiler_can_build_shared_CXX=no
19384 # Check to make sure the static flag actually works.
19386 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19388 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19389 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19390 $as_echo_n "(cached) " >&6
19391 else
19392 lt_cv_prog_compiler_static_works_CXX=no
19393 save_LDFLAGS="$LDFLAGS"
19394 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19397 # The linker can only warn and ignore the option if not recognized
19398 # So say no if there are warnings
19399 if test -s conftest.err; then
19400 # Append any errors to the config.log.
19401 cat conftest.err 1>&5
19402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19404 if diff conftest.exp conftest.er2 >/dev/null; then
19405 lt_cv_prog_compiler_static_works_CXX=yes
19407 else
19408 lt_cv_prog_compiler_static_works_CXX=yes
19411 $RM -r conftest*
19412 LDFLAGS="$save_LDFLAGS"
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19416 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19418 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19420 else
19421 lt_prog_compiler_static_CXX=
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19428 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19429 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19430 $as_echo_n "(cached) " >&6
19431 else
19432 lt_cv_prog_compiler_c_o_CXX=no
19433 $RM -r conftest 2>/dev/null
19434 mkdir conftest
19435 cd conftest
19436 mkdir out
19437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19439 lt_compiler_flag="-o out/conftest2.$ac_objext"
19440 # Insert the option either (1) after the last *FLAGS variable, or
19441 # (2) before a word containing "conftest.", or (3) at the end.
19442 # Note that $ac_compile itself does not contain backslashes and begins
19443 # with a dollar sign (not a hyphen), so the echo should work correctly.
19444 lt_compile=`echo "$ac_compile" | $SED \
19445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19447 -e 's:$: $lt_compiler_flag:'`
19448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19449 (eval "$lt_compile" 2>out/conftest.err)
19450 ac_status=$?
19451 cat out/conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19454 then
19455 # The compiler can only warn and ignore the option if not recognized
19456 # So say no if there are warnings
19457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19460 lt_cv_prog_compiler_c_o_CXX=yes
19463 chmod u+w . 2>&5
19464 $RM conftest*
19465 # SGI C++ compiler will create directory out/ii_files/ for
19466 # template instantiation
19467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19468 $RM out/* && rmdir out
19469 cd ..
19470 $RM -r conftest
19471 $RM conftest*
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19475 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19481 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19482 $as_echo_n "(cached) " >&6
19483 else
19484 lt_cv_prog_compiler_c_o_CXX=no
19485 $RM -r conftest 2>/dev/null
19486 mkdir conftest
19487 cd conftest
19488 mkdir out
19489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19491 lt_compiler_flag="-o out/conftest2.$ac_objext"
19492 # Insert the option either (1) after the last *FLAGS variable, or
19493 # (2) before a word containing "conftest.", or (3) at the end.
19494 # Note that $ac_compile itself does not contain backslashes and begins
19495 # with a dollar sign (not a hyphen), so the echo should work correctly.
19496 lt_compile=`echo "$ac_compile" | $SED \
19497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19499 -e 's:$: $lt_compiler_flag:'`
19500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19501 (eval "$lt_compile" 2>out/conftest.err)
19502 ac_status=$?
19503 cat out/conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19506 then
19507 # The compiler can only warn and ignore the option if not recognized
19508 # So say no if there are warnings
19509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19512 lt_cv_prog_compiler_c_o_CXX=yes
19515 chmod u+w . 2>&5
19516 $RM conftest*
19517 # SGI C++ compiler will create directory out/ii_files/ for
19518 # template instantiation
19519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19520 $RM out/* && rmdir out
19521 cd ..
19522 $RM -r conftest
19523 $RM conftest*
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19527 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19532 hard_links="nottested"
19533 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19534 # do not overwrite the value of need_locks provided by the user
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19536 $as_echo_n "checking if we can lock with hard links... " >&6; }
19537 hard_links=yes
19538 $RM conftest*
19539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19540 touch conftest.a
19541 ln conftest.a conftest.b 2>&5 || hard_links=no
19542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19544 $as_echo "$hard_links" >&6; }
19545 if test "$hard_links" = no; then
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19548 need_locks=warn
19550 else
19551 need_locks=no
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19557 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19559 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19560 case $host_os in
19561 aix[4-9]*)
19562 # If we're using GNU nm, then we don't want the "-C" option.
19563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19564 # Also, AIX nm treats weak defined symbols like other global defined
19565 # symbols, whereas GNU nm marks them as "W".
19566 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19567 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'
19568 else
19569 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'
19572 pw32*)
19573 export_symbols_cmds_CXX="$ltdll_cmds"
19575 cygwin* | mingw* | cegcc*)
19576 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'
19579 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19581 esac
19582 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19585 $as_echo "$ld_shlibs_CXX" >&6; }
19586 test "$ld_shlibs_CXX" = no && can_build_shared=no
19588 with_gnu_ld_CXX=$with_gnu_ld
19596 # Do we need to explicitly link libc?
19598 case "x$archive_cmds_need_lc_CXX" in
19599 x|xyes)
19600 # Assume -lc should be added
19601 archive_cmds_need_lc_CXX=yes
19603 if test "$enable_shared" = yes && test "$GCC" = yes; then
19604 case $archive_cmds_CXX in
19605 *'~'*)
19606 # FIXME: we may have to deal with multi-command sequences.
19608 '$CC '*)
19609 # Test whether the compiler implicitly links with -lc since on some
19610 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19611 # to ld, don't add -lc before -lgcc.
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19613 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19614 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19615 $as_echo_n "(cached) " >&6
19616 else
19617 $RM conftest*
19618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19621 (eval $ac_compile) 2>&5
19622 ac_status=$?
19623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19624 test $ac_status = 0; } 2>conftest.err; then
19625 soname=conftest
19626 lib=conftest
19627 libobjs=conftest.$ac_objext
19628 deplibs=
19629 wl=$lt_prog_compiler_wl_CXX
19630 pic_flag=$lt_prog_compiler_pic_CXX
19631 compiler_flags=-v
19632 linker_flags=-v
19633 verstring=
19634 output_objdir=.
19635 libname=conftest
19636 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19637 allow_undefined_flag_CXX=
19638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19639 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19640 ac_status=$?
19641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19642 test $ac_status = 0; }
19643 then
19644 lt_cv_archive_cmds_need_lc_CXX=no
19645 else
19646 lt_cv_archive_cmds_need_lc_CXX=yes
19648 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19649 else
19650 cat conftest.err 1>&5
19652 $RM conftest*
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19656 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19657 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19659 esac
19662 esac
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19728 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19730 library_names_spec=
19731 libname_spec='lib$name'
19732 soname_spec=
19733 shrext_cmds=".so"
19734 postinstall_cmds=
19735 postuninstall_cmds=
19736 finish_cmds=
19737 finish_eval=
19738 shlibpath_var=
19739 shlibpath_overrides_runpath=unknown
19740 version_type=none
19741 dynamic_linker="$host_os ld.so"
19742 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19743 need_lib_prefix=unknown
19744 hardcode_into_libs=no
19746 # when you set need_version to no, make sure it does not cause -set_version
19747 # flags to be left without arguments
19748 need_version=unknown
19750 case $host_os in
19751 aix3*)
19752 version_type=linux
19753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19754 shlibpath_var=LIBPATH
19756 # AIX 3 has no versioning support, so we append a major version to the name.
19757 soname_spec='${libname}${release}${shared_ext}$major'
19760 aix[4-9]*)
19761 version_type=linux
19762 need_lib_prefix=no
19763 need_version=no
19764 hardcode_into_libs=yes
19765 if test "$host_cpu" = ia64; then
19766 # AIX 5 supports IA64
19767 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19768 shlibpath_var=LD_LIBRARY_PATH
19769 else
19770 # With GCC up to 2.95.x, collect2 would create an import file
19771 # for dependence libraries. The import file would start with
19772 # the line `#! .'. This would cause the generated library to
19773 # depend on `.', always an invalid library. This was fixed in
19774 # development snapshots of GCC prior to 3.0.
19775 case $host_os in
19776 aix4 | aix4.[01] | aix4.[01].*)
19777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19778 echo ' yes '
19779 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19781 else
19782 can_build_shared=no
19785 esac
19786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19787 # soname into executable. Probably we can add versioning support to
19788 # collect2, so additional links can be useful in future.
19789 if test "$aix_use_runtimelinking" = yes; then
19790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19791 # instead of lib<name>.a to let people know that these are not
19792 # typical AIX shared libraries.
19793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19794 else
19795 # We preserve .a as extension for shared libraries through AIX4.2
19796 # and later when we are not doing run time linking.
19797 library_names_spec='${libname}${release}.a $libname.a'
19798 soname_spec='${libname}${release}${shared_ext}$major'
19800 shlibpath_var=LIBPATH
19804 amigaos*)
19805 case $host_cpu in
19806 powerpc)
19807 # Since July 2007 AmigaOS4 officially supports .so libraries.
19808 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811 m68k)
19812 library_names_spec='$libname.ixlibrary $libname.a'
19813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19814 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'
19816 esac
19819 beos*)
19820 library_names_spec='${libname}${shared_ext}'
19821 dynamic_linker="$host_os ld.so"
19822 shlibpath_var=LIBRARY_PATH
19825 bsdi[45]*)
19826 version_type=linux
19827 need_version=no
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19830 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19831 shlibpath_var=LD_LIBRARY_PATH
19832 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19833 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19834 # the default ld.so.conf also contains /usr/contrib/lib and
19835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19836 # libtool to hard-code these into programs
19839 cygwin* | mingw* | pw32* | cegcc*)
19840 version_type=windows
19841 shrext_cmds=".dll"
19842 need_version=no
19843 need_lib_prefix=no
19845 case $GCC,$host_os in
19846 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19847 library_names_spec='$libname.dll.a'
19848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19849 postinstall_cmds='base_file=`basename \${file}`~
19850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19851 dldir=$destdir/`dirname \$dlpath`~
19852 test -d \$dldir || mkdir -p \$dldir~
19853 $install_prog $dir/$dlname \$dldir/$dlname~
19854 chmod a+x \$dldir/$dlname~
19855 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19856 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19859 dlpath=$dir/\$dldll~
19860 $RM \$dlpath'
19861 shlibpath_overrides_runpath=yes
19863 case $host_os in
19864 cygwin*)
19865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19866 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19869 mingw* | cegcc*)
19870 # MinGW DLLs use traditional 'lib' prefix
19871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19873 pw32*)
19874 # pw32 DLLs use 'pw' prefix rather than 'lib'
19875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19877 esac
19881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19883 esac
19884 dynamic_linker='Win32 ld.exe'
19885 # FIXME: first we should search . and the directory the executable is in
19886 shlibpath_var=PATH
19889 darwin* | rhapsody*)
19890 dynamic_linker="$host_os dyld"
19891 version_type=darwin
19892 need_lib_prefix=no
19893 need_version=no
19894 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19895 soname_spec='${libname}${release}${major}$shared_ext'
19896 shlibpath_overrides_runpath=yes
19897 shlibpath_var=DYLD_LIBRARY_PATH
19898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19900 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19903 dgux*)
19904 version_type=linux
19905 need_lib_prefix=no
19906 need_version=no
19907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19908 soname_spec='${libname}${release}${shared_ext}$major'
19909 shlibpath_var=LD_LIBRARY_PATH
19912 freebsd1*)
19913 dynamic_linker=no
19916 freebsd* | dragonfly*)
19917 # DragonFly does not have aout. When/if they implement a new
19918 # versioning mechanism, adjust this.
19919 if test -x /usr/bin/objformat; then
19920 objformat=`/usr/bin/objformat`
19921 else
19922 case $host_os in
19923 freebsd[123]*) objformat=aout ;;
19924 *) objformat=elf ;;
19925 esac
19927 version_type=freebsd-$objformat
19928 case $version_type in
19929 freebsd-elf*)
19930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19931 need_version=no
19932 need_lib_prefix=no
19934 freebsd-*)
19935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19936 need_version=yes
19938 esac
19939 shlibpath_var=LD_LIBRARY_PATH
19940 case $host_os in
19941 freebsd2*)
19942 shlibpath_overrides_runpath=yes
19944 freebsd3.[01]* | freebsdelf3.[01]*)
19945 shlibpath_overrides_runpath=yes
19946 hardcode_into_libs=yes
19948 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19949 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19950 shlibpath_overrides_runpath=no
19951 hardcode_into_libs=yes
19953 *) # from 4.6 on, and DragonFly
19954 shlibpath_overrides_runpath=yes
19955 hardcode_into_libs=yes
19957 esac
19960 gnu*)
19961 version_type=linux
19962 need_lib_prefix=no
19963 need_version=no
19964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19965 soname_spec='${libname}${release}${shared_ext}$major'
19966 shlibpath_var=LD_LIBRARY_PATH
19967 hardcode_into_libs=yes
19970 haiku*)
19971 version_type=linux
19972 need_lib_prefix=no
19973 need_version=no
19974 dynamic_linker="$host_os runtime_loader"
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19976 soname_spec='${libname}${release}${shared_ext}$major'
19977 shlibpath_var=LIBRARY_PATH
19978 shlibpath_overrides_runpath=yes
19979 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19980 hardcode_into_libs=yes
19983 hpux9* | hpux10* | hpux11*)
19984 # Give a soname corresponding to the major version so that dld.sl refuses to
19985 # link against other versions.
19986 version_type=sunos
19987 need_lib_prefix=no
19988 need_version=no
19989 case $host_cpu in
19990 ia64*)
19991 shrext_cmds='.so'
19992 hardcode_into_libs=yes
19993 dynamic_linker="$host_os dld.so"
19994 shlibpath_var=LD_LIBRARY_PATH
19995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19997 soname_spec='${libname}${release}${shared_ext}$major'
19998 if test "X$HPUX_IA64_MODE" = X32; then
19999 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20000 else
20001 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20005 hppa*64*)
20006 shrext_cmds='.sl'
20007 hardcode_into_libs=yes
20008 dynamic_linker="$host_os dld.sl"
20009 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20010 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012 soname_spec='${libname}${release}${shared_ext}$major'
20013 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20014 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20017 shrext_cmds='.sl'
20018 dynamic_linker="$host_os dld.sl"
20019 shlibpath_var=SHLIB_PATH
20020 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec='${libname}${release}${shared_ext}$major'
20024 esac
20025 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20026 postinstall_cmds='chmod 555 $lib'
20027 # or fails outright, so override atomically:
20028 install_override_mode=555
20031 interix[3-9]*)
20032 version_type=linux
20033 need_lib_prefix=no
20034 need_version=no
20035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20036 soname_spec='${libname}${release}${shared_ext}$major'
20037 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20038 shlibpath_var=LD_LIBRARY_PATH
20039 shlibpath_overrides_runpath=no
20040 hardcode_into_libs=yes
20043 irix5* | irix6* | nonstopux*)
20044 case $host_os in
20045 nonstopux*) version_type=nonstopux ;;
20047 if test "$lt_cv_prog_gnu_ld" = yes; then
20048 version_type=linux
20049 else
20050 version_type=irix
20051 fi ;;
20052 esac
20053 need_lib_prefix=no
20054 need_version=no
20055 soname_spec='${libname}${release}${shared_ext}$major'
20056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20057 case $host_os in
20058 irix5* | nonstopux*)
20059 libsuff= shlibsuff=
20062 case $LD in # libtool.m4 will add one of these switches to LD
20063 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20064 libsuff= shlibsuff= libmagic=32-bit;;
20065 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20066 libsuff=32 shlibsuff=N32 libmagic=N32;;
20067 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20068 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20069 *) libsuff= shlibsuff= libmagic=never-match;;
20070 esac
20072 esac
20073 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20074 shlibpath_overrides_runpath=no
20075 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20076 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20077 hardcode_into_libs=yes
20080 # No shared lib support for Linux oldld, aout, or coff.
20081 linux*oldld* | linux*aout* | linux*coff*)
20082 dynamic_linker=no
20085 # This must be Linux ELF.
20086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20087 version_type=linux
20088 need_lib_prefix=no
20089 need_version=no
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20091 soname_spec='${libname}${release}${shared_ext}$major'
20092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20093 shlibpath_var=LD_LIBRARY_PATH
20094 shlibpath_overrides_runpath=no
20096 # Some binutils ld are patched to set DT_RUNPATH
20097 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20098 $as_echo_n "(cached) " >&6
20099 else
20100 lt_cv_shlibpath_overrides_runpath=no
20101 save_LDFLAGS=$LDFLAGS
20102 save_libdir=$libdir
20103 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20104 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20106 /* end confdefs.h. */
20109 main ()
20113 return 0;
20115 _ACEOF
20116 if ac_fn_cxx_try_link "$LINENO"; then :
20117 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20118 lt_cv_shlibpath_overrides_runpath=yes
20121 rm -f core conftest.err conftest.$ac_objext \
20122 conftest$ac_exeext conftest.$ac_ext
20123 LDFLAGS=$save_LDFLAGS
20124 libdir=$save_libdir
20128 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20130 # This implies no fast_install, which is unacceptable.
20131 # Some rework will be needed to allow for fast_install
20132 # before this can be enabled.
20133 hardcode_into_libs=yes
20135 # Append ld.so.conf contents to the search path
20136 if test -f /etc/ld.so.conf; then
20137 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' ' '`
20138 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20141 # We used to test for /lib/ld.so.1 and disable shared libraries on
20142 # powerpc, because MkLinux only supported shared libraries with the
20143 # GNU dynamic linker. Since this was broken with cross compilers,
20144 # most powerpc-linux boxes support dynamic linking these days and
20145 # people can always --disable-shared, the test was removed, and we
20146 # assume the GNU/Linux dynamic linker is in use.
20147 dynamic_linker='GNU/Linux ld.so'
20150 netbsd*)
20151 version_type=sunos
20152 need_lib_prefix=no
20153 need_version=no
20154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20157 dynamic_linker='NetBSD (a.out) ld.so'
20158 else
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20160 soname_spec='${libname}${release}${shared_ext}$major'
20161 dynamic_linker='NetBSD ld.elf_so'
20163 shlibpath_var=LD_LIBRARY_PATH
20164 shlibpath_overrides_runpath=yes
20165 hardcode_into_libs=yes
20168 newsos6)
20169 version_type=linux
20170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20171 shlibpath_var=LD_LIBRARY_PATH
20172 shlibpath_overrides_runpath=yes
20175 *nto* | *qnx*)
20176 version_type=qnx
20177 need_lib_prefix=no
20178 need_version=no
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20180 soname_spec='${libname}${release}${shared_ext}$major'
20181 shlibpath_var=LD_LIBRARY_PATH
20182 shlibpath_overrides_runpath=no
20183 hardcode_into_libs=yes
20184 dynamic_linker='ldqnx.so'
20187 openbsd*)
20188 version_type=sunos
20189 sys_lib_dlsearch_path_spec="/usr/lib"
20190 need_lib_prefix=no
20191 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20192 case $host_os in
20193 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20194 *) need_version=no ;;
20195 esac
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20198 shlibpath_var=LD_LIBRARY_PATH
20199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20200 case $host_os in
20201 openbsd2.[89] | openbsd2.[89].*)
20202 shlibpath_overrides_runpath=no
20205 shlibpath_overrides_runpath=yes
20207 esac
20208 else
20209 shlibpath_overrides_runpath=yes
20213 os2*)
20214 libname_spec='$name'
20215 shrext_cmds=".dll"
20216 need_lib_prefix=no
20217 library_names_spec='$libname${shared_ext} $libname.a'
20218 dynamic_linker='OS/2 ld.exe'
20219 shlibpath_var=LIBPATH
20222 osf3* | osf4* | osf5*)
20223 version_type=osf
20224 need_lib_prefix=no
20225 need_version=no
20226 soname_spec='${libname}${release}${shared_ext}$major'
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228 shlibpath_var=LD_LIBRARY_PATH
20229 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20230 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20233 rdos*)
20234 dynamic_linker=no
20237 solaris*)
20238 version_type=linux
20239 need_lib_prefix=no
20240 need_version=no
20241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20242 soname_spec='${libname}${release}${shared_ext}$major'
20243 shlibpath_var=LD_LIBRARY_PATH
20244 shlibpath_overrides_runpath=yes
20245 hardcode_into_libs=yes
20246 # ldd complains unless libraries are executable
20247 postinstall_cmds='chmod +x $lib'
20250 sunos4*)
20251 version_type=sunos
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=yes
20256 if test "$with_gnu_ld" = yes; then
20257 need_lib_prefix=no
20259 need_version=yes
20262 sysv4 | sysv4.3*)
20263 version_type=linux
20264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265 soname_spec='${libname}${release}${shared_ext}$major'
20266 shlibpath_var=LD_LIBRARY_PATH
20267 case $host_vendor in
20268 sni)
20269 shlibpath_overrides_runpath=no
20270 need_lib_prefix=no
20271 runpath_var=LD_RUN_PATH
20273 siemens)
20274 need_lib_prefix=no
20276 motorola)
20277 need_lib_prefix=no
20278 need_version=no
20279 shlibpath_overrides_runpath=no
20280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20282 esac
20285 sysv4*MP*)
20286 if test -d /usr/nec ;then
20287 version_type=linux
20288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20289 soname_spec='$libname${shared_ext}.$major'
20290 shlibpath_var=LD_LIBRARY_PATH
20294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20295 version_type=freebsd-elf
20296 need_lib_prefix=no
20297 need_version=no
20298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20299 soname_spec='${libname}${release}${shared_ext}$major'
20300 shlibpath_var=LD_LIBRARY_PATH
20301 shlibpath_overrides_runpath=yes
20302 hardcode_into_libs=yes
20303 if test "$with_gnu_ld" = yes; then
20304 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20305 else
20306 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20307 case $host_os in
20308 sco3.2v5*)
20309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20311 esac
20313 sys_lib_dlsearch_path_spec='/usr/lib'
20316 tpf*)
20317 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20318 version_type=linux
20319 need_lib_prefix=no
20320 need_version=no
20321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322 shlibpath_var=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath=no
20324 hardcode_into_libs=yes
20327 uts4*)
20328 version_type=linux
20329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330 soname_spec='${libname}${release}${shared_ext}$major'
20331 shlibpath_var=LD_LIBRARY_PATH
20335 dynamic_linker=no
20337 esac
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20339 $as_echo "$dynamic_linker" >&6; }
20340 test "$dynamic_linker" = no && can_build_shared=no
20342 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20343 if test "$GCC" = yes; then
20344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20347 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20348 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20350 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20351 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20392 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20393 hardcode_action_CXX=
20394 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20395 test -n "$runpath_var_CXX" ||
20396 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20398 # We can hardcode non-existent directories.
20399 if test "$hardcode_direct_CXX" != no &&
20400 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20401 # have to relink, otherwise we might link with an installed library
20402 # when we should be linking with a yet-to-be-installed one
20403 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20404 test "$hardcode_minus_L_CXX" != no; then
20405 # Linking always hardcodes the temporary library directory.
20406 hardcode_action_CXX=relink
20407 else
20408 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20409 hardcode_action_CXX=immediate
20411 else
20412 # We cannot hardcode anything, or else we can only hardcode existing
20413 # directories.
20414 hardcode_action_CXX=unsupported
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20417 $as_echo "$hardcode_action_CXX" >&6; }
20419 if test "$hardcode_action_CXX" = relink ||
20420 test "$inherit_rpath_CXX" = yes; then
20421 # Fast installation is not supported
20422 enable_fast_install=no
20423 elif test "$shlibpath_overrides_runpath" = yes ||
20424 test "$enable_shared" = no; then
20425 # Fast installation is not necessary
20426 enable_fast_install=needless
20435 fi # test -n "$compiler"
20437 CC=$lt_save_CC
20438 LDCXX=$LD
20439 LD=$lt_save_LD
20440 GCC=$lt_save_GCC
20441 with_gnu_ld=$lt_save_with_gnu_ld
20442 lt_cv_path_LDCXX=$lt_cv_path_LD
20443 lt_cv_path_LD=$lt_save_path_LD
20444 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20445 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20446 fi # test "$_lt_caught_CXX_error" != yes
20448 ac_ext=c
20449 ac_cpp='$CPP $CPPFLAGS'
20450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20469 # Only expand once:
20475 # Identify the assembler which will work hand-in-glove with the newly
20476 # built GCC, so that we can examine its features. This is the assembler
20477 # which will be driven by the driver program.
20479 # If build != host, and we aren't building gas in-tree, we identify a
20480 # build->target assembler and hope that it will have the same features
20481 # as the host->target assembler we'll be using.
20482 gcc_cv_gas_major_version=
20483 gcc_cv_gas_minor_version=
20484 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20486 if test "${gcc_cv_as+set}" = set; then :
20488 else
20490 if test -x "$DEFAULT_ASSEMBLER"; then
20491 gcc_cv_as="$DEFAULT_ASSEMBLER"
20492 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20493 && test -f ../gas/Makefile \
20494 && test x$build = x$host; then
20495 gcc_cv_as=../gas/as-new$build_exeext
20496 elif test -x as$build_exeext; then
20497 # Build using assembler in the current directory.
20498 gcc_cv_as=./as$build_exeext
20499 elif test -x $AS_FOR_TARGET; then
20500 gcc_cv_as="$AS_FOR_TARGET"
20501 else
20502 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20503 set dummy $AS_FOR_TARGET; ac_word=$2
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20505 $as_echo_n "checking for $ac_word... " >&6; }
20506 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20507 $as_echo_n "(cached) " >&6
20508 else
20509 case $gcc_cv_as in
20510 [\\/]* | ?:[\\/]*)
20511 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20515 for as_dir in $PATH
20517 IFS=$as_save_IFS
20518 test -z "$as_dir" && as_dir=.
20519 for ac_exec_ext in '' $ac_executable_extensions; do
20520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20521 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20523 break 2
20525 done
20526 done
20527 IFS=$as_save_IFS
20530 esac
20532 gcc_cv_as=$ac_cv_path_gcc_cv_as
20533 if test -n "$gcc_cv_as"; then
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20535 $as_echo "$gcc_cv_as" >&6; }
20536 else
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20538 $as_echo "no" >&6; }
20545 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20547 case "$ORIGINAL_AS_FOR_TARGET" in
20548 ./as | ./as$build_exeext) ;;
20549 *) ac_config_files="$ac_config_files as:exec-tool.in"
20551 esac
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20554 $as_echo_n "checking what assembler to use... " >&6; }
20555 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20556 # Single tree build which includes gas. We want to prefer it
20557 # over whatever linker top-level may have detected, since
20558 # we'll use what we're building after installation anyway.
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20560 $as_echo "newly built gas" >&6; }
20561 in_tree_gas=yes
20562 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20563 for f in $gcc_cv_as_bfd_srcdir/configure \
20564 $gcc_cv_as_gas_srcdir/configure \
20565 $gcc_cv_as_gas_srcdir/configure.in \
20566 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20567 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20568 if test x$gcc_cv_gas_version != x; then
20569 break
20571 done
20572 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20573 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20574 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20575 case $gcc_cv_gas_patch_version in
20576 "") gcc_cv_gas_patch_version="0" ;;
20577 esac
20578 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20579 + $gcc_cv_gas_minor_version \) \* 1000 \
20580 + $gcc_cv_gas_patch_version`
20582 in_tree_gas_is_elf=no
20583 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20584 || (grep 'obj_format = multi' ../gas/Makefile \
20585 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20586 then
20587 in_tree_gas_is_elf=yes
20589 else
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20591 $as_echo "$gcc_cv_as" >&6; }
20592 in_tree_gas=no
20595 # Identify the linker which will work hand-in-glove with the newly
20596 # built GCC, so that we can examine its features. This is the linker
20597 # which will be driven by the driver program.
20599 # If build != host, and we aren't building gas in-tree, we identify a
20600 # build->target linker and hope that it will have the same features
20601 # as the host->target linker we'll be using.
20602 gcc_cv_gld_major_version=
20603 gcc_cv_gld_minor_version=
20604 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20605 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20607 if test "${gcc_cv_ld+set}" = set; then :
20609 else
20611 if test -x "$DEFAULT_LINKER"; then
20612 gcc_cv_ld="$DEFAULT_LINKER"
20613 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20614 && test -f ../ld/Makefile \
20615 && test x$build = x$host; then
20616 gcc_cv_ld=../ld/ld-new$build_exeext
20617 elif test -x collect-ld$build_exeext; then
20618 # Build using linker in the current directory.
20619 gcc_cv_ld=./collect-ld$build_exeext
20620 elif test -x $LD_FOR_TARGET; then
20621 gcc_cv_ld="$LD_FOR_TARGET"
20622 else
20623 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20624 set dummy $LD_FOR_TARGET; ac_word=$2
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20626 $as_echo_n "checking for $ac_word... " >&6; }
20627 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20628 $as_echo_n "(cached) " >&6
20629 else
20630 case $gcc_cv_ld in
20631 [\\/]* | ?:[\\/]*)
20632 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20636 for as_dir in $PATH
20638 IFS=$as_save_IFS
20639 test -z "$as_dir" && as_dir=.
20640 for ac_exec_ext in '' $ac_executable_extensions; do
20641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20642 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20644 break 2
20646 done
20647 done
20648 IFS=$as_save_IFS
20651 esac
20653 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20654 if test -n "$gcc_cv_ld"; then
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20656 $as_echo "$gcc_cv_ld" >&6; }
20657 else
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20659 $as_echo "no" >&6; }
20666 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20667 PLUGIN_LD=`basename $gcc_cv_ld`
20669 # Check whether --with-plugin-ld was given.
20670 if test "${with_plugin_ld+set}" = set; then :
20671 withval=$with_plugin_ld; if test x"$withval" != x; then
20672 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20673 PLUGIN_LD="$withval"
20679 cat >>confdefs.h <<_ACEOF
20680 #define PLUGIN_LD "$PLUGIN_LD"
20681 _ACEOF
20684 # Check to see if we are using gold instead of ld
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20686 $as_echo_n "checking whether we are using gold... " >&6; }
20687 ld_is_gold=no
20688 if test x$gcc_cv_ld != x; then
20689 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20690 | grep "GNU gold" > /dev/null; then
20691 ld_is_gold=yes
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20695 $as_echo "$ld_is_gold" >&6; }
20697 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20699 case "$ORIGINAL_LD_FOR_TARGET" in
20700 ./collect-ld | ./collect-ld$build_exeext) ;;
20701 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20703 esac
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20706 $as_echo_n "checking what linker to use... " >&6; }
20707 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20708 # Single tree build which includes ld. We want to prefer it
20709 # over whatever linker top-level may have detected, since
20710 # we'll use what we're building after installation anyway.
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20712 $as_echo "newly built ld" >&6; }
20713 in_tree_ld=yes
20714 in_tree_ld_is_elf=no
20715 if (grep 'EMUL = .*elf' ../ld/Makefile \
20716 || grep 'EMUL = .*linux' ../ld/Makefile \
20717 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20718 in_tree_ld_is_elf=yes
20720 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
20722 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20723 if test x$gcc_cv_gld_version != x; then
20724 break
20726 done
20727 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20728 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20729 else
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20731 $as_echo "$gcc_cv_ld" >&6; }
20732 in_tree_ld=no
20735 # Figure out what nm we will be using.
20736 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20737 if test "${gcc_cv_nm+set}" = set; then :
20739 else
20741 if test -f $gcc_cv_binutils_srcdir/configure.in \
20742 && test -f ../binutils/Makefile \
20743 && test x$build = x$host; then
20744 gcc_cv_nm=../binutils/nm-new$build_exeext
20745 elif test -x nm$build_exeext; then
20746 gcc_cv_nm=./nm$build_exeext
20747 elif test -x $NM_FOR_TARGET; then
20748 gcc_cv_nm="$NM_FOR_TARGET"
20749 else
20750 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20751 set dummy $NM_FOR_TARGET; ac_word=$2
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20753 $as_echo_n "checking for $ac_word... " >&6; }
20754 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20755 $as_echo_n "(cached) " >&6
20756 else
20757 case $gcc_cv_nm in
20758 [\\/]* | ?:[\\/]*)
20759 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20763 for as_dir in $PATH
20765 IFS=$as_save_IFS
20766 test -z "$as_dir" && as_dir=.
20767 for ac_exec_ext in '' $ac_executable_extensions; do
20768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20769 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20771 break 2
20773 done
20774 done
20775 IFS=$as_save_IFS
20778 esac
20780 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20781 if test -n "$gcc_cv_nm"; then
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20783 $as_echo "$gcc_cv_nm" >&6; }
20784 else
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20786 $as_echo "no" >&6; }
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20794 $as_echo_n "checking what nm to use... " >&6; }
20795 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20796 # Single tree build which includes binutils.
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20798 $as_echo "newly built nm" >&6; }
20799 in_tree_nm=yes
20800 else
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20802 $as_echo "$gcc_cv_nm" >&6; }
20803 in_tree_nm=no
20806 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20808 case "$ORIGINAL_NM_FOR_TARGET" in
20809 ./nm | ./nm$build_exeext) ;;
20810 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20812 esac
20815 # Figure out what objdump we will be using.
20816 if test "${gcc_cv_objdump+set}" = set; then :
20818 else
20820 if test -f $gcc_cv_binutils_srcdir/configure.in \
20821 && test -f ../binutils/Makefile \
20822 && test x$build = x$host; then
20823 # Single tree build which includes binutils.
20824 gcc_cv_objdump=../binutils/objdump$build_exeext
20825 elif test -x objdump$build_exeext; then
20826 gcc_cv_objdump=./objdump$build_exeext
20827 elif test -x $OBJDUMP_FOR_TARGET; then
20828 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20829 else
20830 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20831 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20833 $as_echo_n "checking for $ac_word... " >&6; }
20834 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20835 $as_echo_n "(cached) " >&6
20836 else
20837 case $gcc_cv_objdump in
20838 [\\/]* | ?:[\\/]*)
20839 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20843 for as_dir in $PATH
20845 IFS=$as_save_IFS
20846 test -z "$as_dir" && as_dir=.
20847 for ac_exec_ext in '' $ac_executable_extensions; do
20848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20849 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20851 break 2
20853 done
20854 done
20855 IFS=$as_save_IFS
20858 esac
20860 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20861 if test -n "$gcc_cv_objdump"; then
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20863 $as_echo "$gcc_cv_objdump" >&6; }
20864 else
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20866 $as_echo "no" >&6; }
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20874 $as_echo_n "checking what objdump to use... " >&6; }
20875 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20876 # Single tree build which includes binutils.
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20878 $as_echo "newly built objdump" >&6; }
20879 elif test x$gcc_cv_objdump = x; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20881 $as_echo "not found" >&6; }
20882 else
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20884 $as_echo "$gcc_cv_objdump" >&6; }
20887 # Figure out what readelf we will be using.
20888 if test "${gcc_cv_readelf+set}" = set; then :
20890 else
20892 if test -f $gcc_cv_binutils_srcdir/configure.in \
20893 && test -f ../binutils/Makefile \
20894 && test x$build = x$host; then
20895 # Single tree build which includes binutils.
20896 gcc_cv_readelf=../binutils/readelf$build_exeext
20897 elif test -x readelf$build_exeext; then
20898 gcc_cv_readelf=./readelf$build_exeext
20899 else
20900 # Extract the first word of "readelf", so it can be a program name with args.
20901 set dummy readelf; ac_word=$2
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20903 $as_echo_n "checking for $ac_word... " >&6; }
20904 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20905 $as_echo_n "(cached) " >&6
20906 else
20907 case $gcc_cv_readelf in
20908 [\\/]* | ?:[\\/]*)
20909 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20913 for as_dir in $PATH
20915 IFS=$as_save_IFS
20916 test -z "$as_dir" && as_dir=.
20917 for ac_exec_ext in '' $ac_executable_extensions; do
20918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20919 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20921 break 2
20923 done
20924 done
20925 IFS=$as_save_IFS
20928 esac
20930 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20931 if test -n "$gcc_cv_readelf"; then
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20933 $as_echo "$gcc_cv_readelf" >&6; }
20934 else
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20936 $as_echo "no" >&6; }
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20944 $as_echo_n "checking what readelf to use... " >&6; }
20945 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20946 # Single tree build which includes binutils.
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20948 $as_echo "newly built readelf" >&6; }
20949 elif test x$gcc_cv_readelf = x; then
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20951 $as_echo "not found" >&6; }
20952 else
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20954 $as_echo "$gcc_cv_readelf" >&6; }
20957 # Figure out what assembler alignment features are present.
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20959 $as_echo_n "checking assembler flags... " >&6; }
20960 if test "${gcc_cv_as_flags+set}" = set; then :
20961 $as_echo_n "(cached) " >&6
20962 else
20963 case "$target" in
20964 i[34567]86-*-linux*)
20965 gcc_cv_as_flags="--32"
20968 gcc_cv_as_flags=" "
20970 esac
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20973 $as_echo "$gcc_cv_as_flags" >&6; }
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20976 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20977 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20978 $as_echo_n "(cached) " >&6
20979 else
20980 gcc_cv_as_balign_and_p2align=no
20981 if test $in_tree_gas = yes; then
20982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20983 then gcc_cv_as_balign_and_p2align=yes
20985 elif test x$gcc_cv_as != x; then
20986 echo '.balign 4
20987 .p2align 2' > conftest.s
20988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20993 test $ac_status = 0; }; }
20994 then
20995 gcc_cv_as_balign_and_p2align=yes
20996 else
20997 echo "configure: failed program was" >&5
20998 cat conftest.s >&5
21000 rm -f conftest.o conftest.s
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21004 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21005 if test $gcc_cv_as_balign_and_p2align = yes; then
21007 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21012 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21013 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21015 else
21016 gcc_cv_as_max_skip_p2align=no
21017 if test $in_tree_gas = yes; then
21018 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21019 then gcc_cv_as_max_skip_p2align=yes
21021 elif test x$gcc_cv_as != x; then
21022 echo '.p2align 4,,7' > conftest.s
21023 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21025 (eval $ac_try) 2>&5
21026 ac_status=$?
21027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21028 test $ac_status = 0; }; }
21029 then
21030 gcc_cv_as_max_skip_p2align=yes
21031 else
21032 echo "configure: failed program was" >&5
21033 cat conftest.s >&5
21035 rm -f conftest.o conftest.s
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21039 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21040 if test $gcc_cv_as_max_skip_p2align = yes; then
21042 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21047 $as_echo_n "checking assembler for .literal16... " >&6; }
21048 if test "${gcc_cv_as_literal16+set}" = set; then :
21049 $as_echo_n "(cached) " >&6
21050 else
21051 gcc_cv_as_literal16=no
21052 if test $in_tree_gas = yes; then
21053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21054 then gcc_cv_as_literal16=yes
21056 elif test x$gcc_cv_as != x; then
21057 echo '.literal16' > conftest.s
21058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063 test $ac_status = 0; }; }
21064 then
21065 gcc_cv_as_literal16=yes
21066 else
21067 echo "configure: failed program was" >&5
21068 cat conftest.s >&5
21070 rm -f conftest.o conftest.s
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21074 $as_echo "$gcc_cv_as_literal16" >&6; }
21075 if test $gcc_cv_as_literal16 = yes; then
21077 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21082 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21083 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21084 $as_echo_n "(cached) " >&6
21085 else
21086 gcc_cv_as_subsection_m1=no
21087 if test $in_tree_gas = yes; then
21088 if test $in_tree_gas_is_elf = yes \
21089 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21090 then gcc_cv_as_subsection_m1=yes
21092 elif test x$gcc_cv_as != x; then
21093 echo 'conftest_label1: .word 0
21094 .subsection -1
21095 conftest_label2: .word 0
21096 .previous' > conftest.s
21097 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21099 (eval $ac_try) 2>&5
21100 ac_status=$?
21101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21102 test $ac_status = 0; }; }
21103 then
21104 if test x$gcc_cv_nm != x; then
21105 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21106 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21107 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21108 then :
21109 else gcc_cv_as_subsection_m1=yes
21111 rm -f conftest.nm1 conftest.nm2
21113 else
21114 echo "configure: failed program was" >&5
21115 cat conftest.s >&5
21117 rm -f conftest.o conftest.s
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21121 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21122 if test $gcc_cv_as_subsection_m1 = yes; then
21124 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21129 $as_echo_n "checking assembler for .weak... " >&6; }
21130 if test "${gcc_cv_as_weak+set}" = set; then :
21131 $as_echo_n "(cached) " >&6
21132 else
21133 gcc_cv_as_weak=no
21134 if test $in_tree_gas = yes; then
21135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21136 then gcc_cv_as_weak=yes
21138 elif test x$gcc_cv_as != x; then
21139 echo ' .weak foobar' > conftest.s
21140 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21142 (eval $ac_try) 2>&5
21143 ac_status=$?
21144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21145 test $ac_status = 0; }; }
21146 then
21147 gcc_cv_as_weak=yes
21148 else
21149 echo "configure: failed program was" >&5
21150 cat conftest.s >&5
21152 rm -f conftest.o conftest.s
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21156 $as_echo "$gcc_cv_as_weak" >&6; }
21157 if test $gcc_cv_as_weak = yes; then
21159 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21164 $as_echo_n "checking assembler for .weakref... " >&6; }
21165 if test "${gcc_cv_as_weakref+set}" = set; then :
21166 $as_echo_n "(cached) " >&6
21167 else
21168 gcc_cv_as_weakref=no
21169 if test $in_tree_gas = yes; then
21170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21171 then gcc_cv_as_weakref=yes
21173 elif test x$gcc_cv_as != x; then
21174 echo ' .weakref foobar, barfnot' > conftest.s
21175 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21177 (eval $ac_try) 2>&5
21178 ac_status=$?
21179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180 test $ac_status = 0; }; }
21181 then
21182 gcc_cv_as_weakref=yes
21183 else
21184 echo "configure: failed program was" >&5
21185 cat conftest.s >&5
21187 rm -f conftest.o conftest.s
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21191 $as_echo "$gcc_cv_as_weakref" >&6; }
21192 if test $gcc_cv_as_weakref = yes; then
21194 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21199 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21200 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21201 $as_echo_n "(cached) " >&6
21202 else
21203 gcc_cv_as_nsubspa_comdat=no
21204 if test $in_tree_gas = yes; then
21205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21206 then gcc_cv_as_nsubspa_comdat=yes
21208 elif test x$gcc_cv_as != x; then
21209 echo ' .SPACE $TEXT$
21210 .NSUBSPA $CODE$,COMDAT' > conftest.s
21211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21213 (eval $ac_try) 2>&5
21214 ac_status=$?
21215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21216 test $ac_status = 0; }; }
21217 then
21218 gcc_cv_as_nsubspa_comdat=yes
21219 else
21220 echo "configure: failed program was" >&5
21221 cat conftest.s >&5
21223 rm -f conftest.o conftest.s
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21227 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21228 if test $gcc_cv_as_nsubspa_comdat = yes; then
21230 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21234 # .hidden needs to be supported in both the assembler and the linker,
21235 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21236 # This is irritatingly difficult to feature test for; we have to check the
21237 # date string after the version number. If we've got an in-tree
21238 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21239 # to be safe.
21240 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21242 $as_echo_n "checking assembler for .hidden... " >&6; }
21243 if test "${gcc_cv_as_hidden+set}" = set; then :
21244 $as_echo_n "(cached) " >&6
21245 else
21246 gcc_cv_as_hidden=no
21247 if test $in_tree_gas = yes; then
21248 if test $in_tree_gas_is_elf = yes \
21249 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21250 then gcc_cv_as_hidden=yes
21252 elif test x$gcc_cv_as != x; then
21253 echo ' .hidden foobar
21254 foobar:' > conftest.s
21255 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21260 test $ac_status = 0; }; }
21261 then
21263 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21264 # STV_HIDDEN, so disable .hidden support if so.
21265 case "${target}" in
21266 i?86-*-solaris2*)
21267 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21268 cat > conftest.s <<EOF
21269 .globl hidden
21270 .hidden hidden
21271 hidden:
21272 .globl default
21273 .set default,hidden
21275 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21276 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21277 grep '\.hidden default' > /dev/null; then
21278 gcc_cv_as_hidden=no
21279 else
21280 gcc_cv_as_hidden=yes
21282 else
21283 # Assume bug is present if objdump is missing.
21284 gcc_cv_as_hidden=no
21288 gcc_cv_as_hidden=yes
21290 esac
21291 else
21292 echo "configure: failed program was" >&5
21293 cat conftest.s >&5
21295 rm -f conftest.o conftest.s
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21299 $as_echo "$gcc_cv_as_hidden" >&6; }
21302 if test $in_tree_ld != yes ; then
21303 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21304 if test x"$ld_is_gold" = xyes; then
21305 gcc_cv_ld_hidden=yes
21306 elif echo "$ld_ver" | grep GNU > /dev/null; then
21307 ld_vers=`echo $ld_ver | sed -n \
21308 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21309 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'`
21310 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21311 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21312 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21313 else
21314 case "${target}" in
21315 *-*-solaris2*)
21317 # Solaris 2 ld -V output looks like this for a regular version:
21319 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21321 # but test versions add stuff at the end:
21323 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21325 ld_ver=`$gcc_cv_ld -V 2>&1`
21326 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21327 ld_vers=`echo $ld_ver | sed -n \
21328 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21329 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21330 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21333 esac
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21338 $as_echo_n "checking linker for .hidden support... " >&6; }
21339 if test "${gcc_cv_ld_hidden+set}" = set; then :
21340 $as_echo_n "(cached) " >&6
21341 else
21342 if test $in_tree_ld = yes ; then
21343 gcc_cv_ld_hidden=no
21344 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 \
21345 && test $in_tree_ld_is_elf = yes; then
21346 gcc_cv_ld_hidden=yes
21348 else
21349 gcc_cv_ld_hidden=yes
21350 if echo "$ld_ver" | grep GNU > /dev/null; then
21351 if test 0"$ld_date" -lt 20020404; then
21352 if test -n "$ld_date"; then
21353 # If there was date string, but was earlier than 2002-04-04, fail
21354 gcc_cv_ld_hidden=no
21355 elif test -z "$ld_vers"; then
21356 # If there was no date string nor ld version number, something is wrong
21357 gcc_cv_ld_hidden=no
21358 else
21359 test -z "$ld_vers_patch" && ld_vers_patch=0
21360 if test "$ld_vers_major" -lt 2; then
21361 gcc_cv_ld_hidden=no
21362 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21363 gcc_cv_ld_hidden="no"
21364 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21365 gcc_cv_ld_hidden=no
21369 else
21370 case "${target}" in
21371 hppa64*-*-hpux* | ia64*-*-hpux*)
21372 gcc_cv_ld_hidden=yes
21374 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21375 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21376 # .symbolic was only added in Solaris 9 12/02.
21377 gcc_cv_ld_hidden=yes
21380 gcc_cv_ld_hidden=no
21382 esac
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21387 $as_echo "$gcc_cv_ld_hidden" >&6; }
21388 libgcc_visibility=no
21391 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21392 libgcc_visibility=yes
21394 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21399 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21400 gcc_cv_ld_ro_rw_mix=unknown
21401 if test $in_tree_ld = yes ; then
21402 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 \
21403 && test $in_tree_ld_is_elf = yes; then
21404 gcc_cv_ld_ro_rw_mix=read-write
21406 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21407 echo '.section myfoosect, "a"' > conftest1.s
21408 echo '.section myfoosect, "aw"' > conftest2.s
21409 echo '.byte 1' >> conftest2.s
21410 echo '.section myfoosect, "a"' > conftest3.s
21411 echo '.byte 0' >> conftest3.s
21412 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21413 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21414 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21415 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21416 conftest2.o conftest3.o > /dev/null 2>&1; then
21417 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21418 | sed -e '/myfoosect/!d' -e N`
21419 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21420 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21421 gcc_cv_ld_ro_rw_mix=read-only
21422 else
21423 gcc_cv_ld_ro_rw_mix=read-write
21427 rm -f conftest.* conftest[123].*
21429 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21431 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21435 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21437 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21439 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21440 if test "${gcc_cv_as_leb128+set}" = set; then :
21441 $as_echo_n "(cached) " >&6
21442 else
21443 gcc_cv_as_leb128=no
21444 if test $in_tree_gas = yes; then
21445 if test $in_tree_gas_is_elf = yes \
21446 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21447 then gcc_cv_as_leb128=yes
21449 elif test x$gcc_cv_as != x; then
21450 echo ' .data
21451 .uleb128 L2 - L1
21453 .uleb128 1280
21454 .sleb128 -1010
21455 L2:' > conftest.s
21456 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21458 (eval $ac_try) 2>&5
21459 ac_status=$?
21460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21461 test $ac_status = 0; }; }
21462 then
21463 # GAS versions before 2.11 do not support uleb128,
21464 # despite appearing to.
21465 # ??? There exists an elf-specific test that will crash
21466 # the assembler. Perhaps it's better to figure out whether
21467 # arbitrary sections are supported and try the test.
21468 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21469 if echo "$as_ver" | grep GNU > /dev/null; then
21470 as_vers=`echo $as_ver | sed -n \
21471 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21472 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21473 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21474 if test $as_major -eq 2 && test $as_minor -lt 11
21475 then :
21476 else gcc_cv_as_leb128=yes
21479 else
21480 echo "configure: failed program was" >&5
21481 cat conftest.s >&5
21483 rm -f conftest.o conftest.s
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21487 $as_echo "$gcc_cv_as_leb128" >&6; }
21488 if test $gcc_cv_as_leb128 = yes; then
21490 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21494 # Check if we have assembler support for unwind directives.
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21496 $as_echo_n "checking assembler for cfi directives... " >&6; }
21497 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21498 $as_echo_n "(cached) " >&6
21499 else
21500 gcc_cv_as_cfi_directive=no
21501 if test x$gcc_cv_as != x; then
21502 echo ' .text
21503 .cfi_startproc
21504 .cfi_offset 0, 0
21505 .cfi_same_value 1
21506 .cfi_def_cfa 1, 2
21507 .cfi_escape 1, 2, 3, 4, 5
21508 .cfi_endproc' > conftest.s
21509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21511 (eval $ac_try) 2>&5
21512 ac_status=$?
21513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21514 test $ac_status = 0; }; }
21515 then
21516 case "$target" in
21517 *-*-solaris*)
21518 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21519 # read-only and read-write sections, we need to make sure that the
21520 # assembler used emits read-write .eh_frame sections.
21521 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21522 if test "x$gcc_cv_objdump" != x; then
21523 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21524 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21525 gcc_cv_as_cfi_directive=no
21526 else
21527 case "$target" in
21528 i?86-*-solaris2.1[0-9]*)
21529 # On Solaris/x86, make sure that GCC and gas agree on using
21530 # read-only .eh_frame sections for 64-bit.
21531 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21532 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21533 sed -e /.eh_frame/!d -e N | \
21534 grep READONLY > /dev/null; then
21535 gcc_cv_as_cfi_directive=yes
21536 else
21537 gcc_cv_as_cfi_directive=no
21541 gcc_cv_as_cfi_directive=yes
21543 esac
21545 else
21546 # no objdump, err on the side of caution
21547 gcc_cv_as_cfi_directive=no
21549 else
21550 gcc_cv_as_cfi_directive=yes
21553 *-*-*)
21554 gcc_cv_as_cfi_directive=yes
21556 esac
21557 else
21558 echo "configure: failed program was" >&5
21559 cat conftest.s >&5
21561 rm -f conftest.o conftest.s
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21565 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21567 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21569 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21570 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21571 $as_echo_n "(cached) " >&6
21572 else
21573 gcc_cv_as_cfi_advance_working=no
21574 if test x$gcc_cv_as != x; then
21575 echo ' .text
21576 .cfi_startproc
21577 .cfi_adjust_cfa_offset 64
21578 .skip 75040, 0
21579 .cfi_adjust_cfa_offset 128
21580 .cfi_endproc' > conftest.s
21581 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21586 test $ac_status = 0; }; }
21587 then
21589 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21590 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21591 gcc_cv_as_cfi_advance_working=yes
21594 else
21595 echo "configure: failed program was" >&5
21596 cat conftest.s >&5
21598 rm -f conftest.o conftest.s
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21602 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21604 else
21605 # no readelf, err on the side of caution
21606 gcc_cv_as_cfi_advance_working=no
21609 cat >>confdefs.h <<_ACEOF
21610 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21611 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21612 _ACEOF
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21616 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21617 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21618 $as_echo_n "(cached) " >&6
21619 else
21620 gcc_cv_as_cfi_personality_directive=no
21621 if test x$gcc_cv_as != x; then
21622 echo ' .text
21623 .cfi_startproc
21624 .cfi_personality 0, symbol
21625 .cfi_endproc' > conftest.s
21626 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21628 (eval $ac_try) 2>&5
21629 ac_status=$?
21630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21631 test $ac_status = 0; }; }
21632 then
21633 gcc_cv_as_cfi_personality_directive=yes
21634 else
21635 echo "configure: failed program was" >&5
21636 cat conftest.s >&5
21638 rm -f conftest.o conftest.s
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21642 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21645 cat >>confdefs.h <<_ACEOF
21646 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21647 then echo 1; else echo 0; fi`
21648 _ACEOF
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21652 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21653 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21654 $as_echo_n "(cached) " >&6
21655 else
21656 gcc_cv_as_cfi_sections_directive=no
21657 if test x$gcc_cv_as != x; then
21658 echo ' .text
21659 .cfi_sections .debug_frame, .eh_frame
21660 .cfi_startproc
21661 .cfi_endproc' > conftest.s
21662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21667 test $ac_status = 0; }; }
21668 then
21669 gcc_cv_as_cfi_sections_directive=yes
21670 else
21671 echo "configure: failed program was" >&5
21672 cat conftest.s >&5
21674 rm -f conftest.o conftest.s
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21678 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21681 cat >>confdefs.h <<_ACEOF
21682 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21683 then echo 1; else echo 0; fi`
21684 _ACEOF
21687 # GAS versions up to and including 2.11.0 may mis-optimize
21688 # .eh_frame data.
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21690 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21691 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21692 $as_echo_n "(cached) " >&6
21693 else
21694 gcc_cv_as_eh_frame=no
21695 if test $in_tree_gas = yes; then
21696 if test $in_tree_gas_is_elf = yes \
21697 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21698 then gcc_cv_as_eh_frame=yes
21700 elif test x$gcc_cv_as != x; then
21701 echo ' .text
21702 .LFB1:
21703 .4byte 0
21704 .L1:
21705 .4byte 0
21706 .LFE1:
21707 .section .eh_frame,"aw",@progbits
21708 __FRAME_BEGIN__:
21709 .4byte .LECIE1-.LSCIE1
21710 .LSCIE1:
21711 .4byte 0x0
21712 .byte 0x1
21713 .ascii "z\0"
21714 .byte 0x1
21715 .byte 0x78
21716 .byte 0x1a
21717 .byte 0x0
21718 .byte 0x4
21719 .4byte 1
21720 .p2align 1
21721 .LECIE1:
21722 .LSFDE1:
21723 .4byte .LEFDE1-.LASFDE1
21724 .LASFDE1:
21725 .4byte .LASFDE1-__FRAME_BEGIN__
21726 .4byte .LFB1
21727 .4byte .LFE1-.LFB1
21728 .byte 0x4
21729 .4byte .LFE1-.LFB1
21730 .byte 0x4
21731 .4byte .L1-.LFB1
21732 .LEFDE1:' > conftest.s
21733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21735 (eval $ac_try) 2>&5
21736 ac_status=$?
21737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21738 test $ac_status = 0; }; }
21739 then
21740 cat > conftest.lit <<EOF
21741 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21742 0010 01000000 12000000 18000000 00000000 ................
21743 0020 08000000 04080000 0044 .........D
21745 cat > conftest.big <<EOF
21746 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21747 0010 00000001 00000012 00000018 00000000 ................
21748 0020 00000008 04000000 0844 .........D
21750 # If the assembler didn't choke, and we can objdump,
21751 # and we got the correct data, then succeed.
21752 # The text in the here-document typically retains its unix-style line
21753 # endings, while the output of objdump will use host line endings.
21754 # Therefore, use diff -b for the comparisons.
21755 if test x$gcc_cv_objdump != x \
21756 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21757 | tail -3 > conftest.got \
21758 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21759 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21760 then
21761 gcc_cv_as_eh_frame=yes
21762 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21764 (eval $ac_try) 2>&5
21765 ac_status=$?
21766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21767 test $ac_status = 0; }; }; then
21768 gcc_cv_as_eh_frame=buggy
21769 else
21770 # Uh oh, what do we do now?
21771 gcc_cv_as_eh_frame=no
21773 else
21774 echo "configure: failed program was" >&5
21775 cat conftest.s >&5
21777 rm -f conftest.o conftest.s
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21781 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21784 if test $gcc_cv_as_eh_frame = buggy; then
21786 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21791 $as_echo_n "checking assembler for section merging support... " >&6; }
21792 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21794 else
21795 gcc_cv_as_shf_merge=no
21796 if test $in_tree_gas = yes; then
21797 if test $in_tree_gas_is_elf = yes \
21798 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21799 then gcc_cv_as_shf_merge=yes
21801 elif test x$gcc_cv_as != x; then
21802 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21803 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21805 (eval $ac_try) 2>&5
21806 ac_status=$?
21807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21808 test $ac_status = 0; }; }
21809 then
21810 gcc_cv_as_shf_merge=yes
21811 else
21812 echo "configure: failed program was" >&5
21813 cat conftest.s >&5
21815 rm -f conftest.o conftest.s
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21819 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21821 if test $gcc_cv_as_shf_merge = no; then
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21823 $as_echo_n "checking assembler for section merging support... " >&6; }
21824 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21826 else
21827 gcc_cv_as_shf_merge=no
21828 if test $in_tree_gas = yes; then
21829 if test $in_tree_gas_is_elf = yes \
21830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21831 then gcc_cv_as_shf_merge=yes
21833 elif test x$gcc_cv_as != x; then
21834 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21835 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21837 (eval $ac_try) 2>&5
21838 ac_status=$?
21839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21840 test $ac_status = 0; }; }
21841 then
21842 gcc_cv_as_shf_merge=yes
21843 else
21844 echo "configure: failed program was" >&5
21845 cat conftest.s >&5
21847 rm -f conftest.o conftest.s
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21851 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21855 cat >>confdefs.h <<_ACEOF
21856 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21857 _ACEOF
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21861 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21862 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21864 else
21865 gcc_cv_as_comdat_group=no
21866 if test $in_tree_gas = yes; then
21867 if test $in_tree_gas_is_elf = yes \
21868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21869 then gcc_cv_as_comdat_group=yes
21871 elif test x$gcc_cv_as != x; then
21872 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21873 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; }
21879 then
21880 gcc_cv_as_comdat_group=yes
21881 else
21882 echo "configure: failed program was" >&5
21883 cat conftest.s >&5
21885 rm -f conftest.o conftest.s
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21889 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21891 if test $gcc_cv_as_comdat_group = yes; then
21892 gcc_cv_as_comdat_group_percent=no
21893 else
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21895 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21896 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21897 $as_echo_n "(cached) " >&6
21898 else
21899 gcc_cv_as_comdat_group_percent=no
21900 if test $in_tree_gas = yes; then
21901 if test $in_tree_gas_is_elf = yes \
21902 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21903 then gcc_cv_as_comdat_group_percent=yes
21905 elif test x$gcc_cv_as != x; then
21906 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21912 test $ac_status = 0; }; }
21913 then
21914 gcc_cv_as_comdat_group_percent=yes
21915 else
21916 echo "configure: failed program was" >&5
21917 cat conftest.s >&5
21919 rm -f conftest.o conftest.s
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21923 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21926 if test x"$ld_is_gold" = xyes; then
21927 comdat_group=yes
21928 elif test $in_tree_ld = yes ; then
21929 comdat_group=no
21930 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 \
21931 && test $in_tree_ld_is_elf = yes; then
21932 comdat_group=yes
21934 elif echo "$ld_ver" | grep GNU > /dev/null; then
21935 comdat_group=yes
21936 if test 0"$ld_date" -lt 20050308; then
21937 if test -n "$ld_date"; then
21938 # If there was date string, but was earlier than 2005-03-08, fail
21939 comdat_group=no
21940 elif test "$ld_vers_major" -lt 2; then
21941 comdat_group=no
21942 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21943 comdat_group=no
21946 else
21947 case "${target}" in
21948 *-*-solaris2.1[1-9]*)
21949 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21950 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21951 # version 1.688.
21953 # FIXME: Maybe need to refine later when COMDAT group support with
21954 # Sun as is implemented.
21955 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21956 comdat_group=yes
21957 else
21958 comdat_group=no
21962 # Assume linkers other than GNU ld don't support COMDAT group.
21963 comdat_group=no
21965 esac
21967 # Allow overriding the automatic COMDAT group tests above.
21968 # Check whether --enable-comdat was given.
21969 if test "${enable_comdat+set}" = set; then :
21970 enableval=$enable_comdat; comdat_group="$enable_comdat"
21973 if test $comdat_group = no; then
21974 gcc_cv_as_comdat_group=no
21975 gcc_cv_as_comdat_group_percent=no
21978 cat >>confdefs.h <<_ACEOF
21979 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21980 _ACEOF
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21984 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21985 if test "${gcc_cv_as_discriminator+set}" = set; then :
21986 $as_echo_n "(cached) " >&6
21987 else
21988 gcc_cv_as_discriminator=no
21989 if test $in_tree_gas = yes; then
21990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21991 then gcc_cv_as_discriminator=yes
21993 elif test x$gcc_cv_as != x; then
21994 echo ' .text
21995 .file 1 "conf.c"
21996 .loc 1 1 0 discriminator 1' > conftest.s
21997 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21999 (eval $ac_try) 2>&5
22000 ac_status=$?
22001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002 test $ac_status = 0; }; }
22003 then
22004 gcc_cv_as_discriminator=yes
22005 else
22006 echo "configure: failed program was" >&5
22007 cat conftest.s >&5
22009 rm -f conftest.o conftest.s
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22013 $as_echo "$gcc_cv_as_discriminator" >&6; }
22014 if test $gcc_cv_as_discriminator = yes; then
22016 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22020 # Thread-local storage - the check is heavily parameterized.
22021 conftest_s=
22022 tls_first_major=
22023 tls_first_minor=
22024 tls_as_opt=
22025 case "$target" in
22026 alpha*-*-*)
22027 conftest_s='
22028 .section ".tdata","awT",@progbits
22029 foo: .long 25
22030 .text
22031 ldq $27,__tls_get_addr($29) !literal!1
22032 lda $16,foo($29) !tlsgd!1
22033 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22034 ldq $27,__tls_get_addr($29) !literal!2
22035 lda $16,foo($29) !tlsldm!2
22036 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22037 ldq $1,foo($29) !gotdtprel
22038 ldah $2,foo($29) !dtprelhi
22039 lda $3,foo($2) !dtprello
22040 lda $4,foo($29) !dtprel
22041 ldq $1,foo($29) !gottprel
22042 ldah $2,foo($29) !tprelhi
22043 lda $3,foo($2) !tprello
22044 lda $4,foo($29) !tprel'
22045 tls_first_major=2
22046 tls_first_minor=13
22047 tls_as_opt=--fatal-warnings
22049 cris-*-*|crisv32-*-*)
22050 conftest_s='
22051 .section ".tdata","awT",@progbits
22052 x: .long 25
22053 .text
22054 move.d x:IE,$r10
22055 nop'
22056 tls_first_major=2
22057 tls_first_minor=20
22058 tls_as_opt=--fatal-warnings
22060 frv*-*-*)
22061 conftest_s='
22062 .section ".tdata","awT",@progbits
22063 x: .long 25
22064 .text
22065 call #gettlsoff(x)'
22066 tls_first_major=2
22067 tls_first_minor=14
22069 hppa*-*-linux*)
22070 conftest_s='
22071 t1: .reg %r20
22072 t2: .reg %r21
22073 gp: .reg %r19
22074 .section ".tdata","awT",@progbits
22075 foo: .long 25
22076 .text
22077 .align 4
22078 addil LT%foo-$tls_gdidx$,gp
22079 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22080 b __tls_get_addr
22082 addil LT%foo-$tls_ldidx$,gp
22083 b __tls_get_addr
22084 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22085 addil LR%foo-$tls_dtpoff$,%ret0
22086 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22087 mfctl %cr27,%t1
22088 addil LT%foo-$tls_ieoff$,gp
22089 ldw RT%foo-$tls_ieoff$(%r1),%t2
22090 add %t1,%t2,%t3
22091 mfctl %cr27,%t1
22092 addil LR%foo-$tls_leoff$,%t1
22093 ldo RR%foo-$tls_leoff$(%r1),%t2'
22094 tls_first_major=2
22095 tls_first_minor=15
22096 tls_as_opt=--fatal-warnings
22098 arm*-*-*)
22099 conftest_s='
22100 .section ".tdata","awT",%progbits
22101 foo: .long 25
22102 .text
22103 .word foo(gottpoff)
22104 .word foo(tpoff)
22105 .word foo(tlsgd)
22106 .word foo(tlsldm)
22107 .word foo(tlsldo)'
22108 tls_first_major=2
22109 tls_first_minor=17
22111 i[34567]86-*-*)
22112 case "$target" in
22113 i[34567]86-*-solaris2.*)
22114 on_solaris=yes
22115 tga_func=___tls_get_addr
22118 on_solaris=no
22120 esac
22121 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22122 conftest_s='
22123 .section .tdata,"awt",@progbits'
22124 tls_first_major=0
22125 tls_first_minor=0
22127 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22129 else
22130 conftest_s='
22131 .section ".tdata","awT",@progbits'
22132 tls_first_major=2
22133 tls_first_minor=14
22134 tls_as_opt="--fatal-warnings"
22136 conftest_s="$conftest_s
22137 foo: .long 25
22138 .text
22139 movl %gs:0, %eax
22140 leal foo@tlsgd(,%ebx,1), %eax
22141 leal foo@tlsldm(%ebx), %eax
22142 leal foo@dtpoff(%eax), %edx
22143 movl foo@gottpoff(%ebx), %eax
22144 subl foo@gottpoff(%ebx), %eax
22145 addl foo@gotntpoff(%ebx), %eax
22146 movl foo@indntpoff, %eax
22147 movl \$foo@tpoff, %eax
22148 subl \$foo@tpoff, %eax
22149 leal foo@ntpoff(%ecx), %eax"
22151 x86_64-*-*)
22152 conftest_s='
22153 .section ".tdata","awT",@progbits
22154 foo: .long 25
22155 .text
22156 movq %fs:0, %rax
22157 leaq foo@TLSGD(%rip), %rdi
22158 leaq foo@TLSLD(%rip), %rdi
22159 leaq foo@DTPOFF(%rax), %rdx
22160 movq foo@GOTTPOFF(%rip), %rax
22161 movq $foo@TPOFF, %rax'
22162 tls_first_major=2
22163 tls_first_minor=14
22164 tls_as_opt=--fatal-warnings
22166 ia64-*-*)
22167 conftest_s='
22168 .section ".tdata","awT",@progbits
22169 foo: data8 25
22170 .text
22171 addl r16 = @ltoff(@dtpmod(foo#)), gp
22172 addl r17 = @ltoff(@dtprel(foo#)), gp
22173 addl r18 = @ltoff(@tprel(foo#)), gp
22174 addl r19 = @dtprel(foo#), gp
22175 adds r21 = @dtprel(foo#), r13
22176 movl r23 = @dtprel(foo#)
22177 addl r20 = @tprel(foo#), gp
22178 adds r22 = @tprel(foo#), r13
22179 movl r24 = @tprel(foo#)'
22180 tls_first_major=2
22181 tls_first_minor=13
22182 tls_as_opt=--fatal-warnings
22184 mips*-*-*)
22185 conftest_s='
22186 .section .tdata,"awT",@progbits
22188 .word 2
22189 .text
22190 addiu $4, $28, %tlsgd(x)
22191 addiu $4, $28, %tlsldm(x)
22192 lui $4, %dtprel_hi(x)
22193 addiu $4, $4, %dtprel_lo(x)
22194 lw $4, %gottprel(x)($28)
22195 lui $4, %tprel_hi(x)
22196 addiu $4, $4, %tprel_lo(x)'
22197 tls_first_major=2
22198 tls_first_minor=16
22199 tls_as_opt='-32 --fatal-warnings'
22201 m68k-*-*)
22202 conftest_s='
22203 .section .tdata,"awT",@progbits
22205 .word 2
22206 .text
22207 foo:
22208 move.l x@TLSGD(%a5),%a0
22209 move.l x@TLSLDM(%a5),%a0
22210 move.l x@TLSLDO(%a5),%a0
22211 move.l x@TLSIE(%a5),%a0
22212 move.l x@TLSLE(%a5),%a0'
22213 tls_first_major=2
22214 tls_first_minor=19
22215 tls_as_opt='--fatal-warnings'
22217 powerpc-*-*)
22218 conftest_s='
22219 .section ".tdata","awT",@progbits
22220 .align 2
22221 ld0: .space 4
22222 ld1: .space 4
22223 x1: .space 4
22224 x2: .space 4
22225 x3: .space 4
22226 .text
22227 addi 3,31,ld0@got@tlsgd
22228 bl __tls_get_addr
22229 addi 3,31,x1@got@tlsld
22230 bl __tls_get_addr
22231 addi 9,3,x1@dtprel
22232 addis 9,3,x2@dtprel@ha
22233 addi 9,9,x2@dtprel@l
22234 lwz 9,x3@got@tprel(31)
22235 add 9,9,x@tls
22236 addi 9,2,x1@tprel
22237 addis 9,2,x2@tprel@ha
22238 addi 9,9,x2@tprel@l'
22239 tls_first_major=2
22240 tls_first_minor=14
22241 tls_as_opt="-a32 --fatal-warnings"
22243 powerpc64-*-*)
22244 conftest_s='
22245 .section ".tdata","awT",@progbits
22246 .align 3
22247 ld0: .space 8
22248 ld1: .space 8
22249 x1: .space 8
22250 x2: .space 8
22251 x3: .space 8
22252 .text
22253 addi 3,2,ld0@got@tlsgd
22254 bl .__tls_get_addr
22256 addi 3,2,ld1@toc
22257 bl .__tls_get_addr
22259 addi 3,2,x1@got@tlsld
22260 bl .__tls_get_addr
22262 addi 9,3,x1@dtprel
22263 bl .__tls_get_addr
22265 addis 9,3,x2@dtprel@ha
22266 addi 9,9,x2@dtprel@l
22267 bl .__tls_get_addr
22269 ld 9,x3@got@dtprel(2)
22270 add 9,9,3
22271 bl .__tls_get_addr
22272 nop'
22273 tls_first_major=2
22274 tls_first_minor=14
22275 tls_as_opt="-a64 --fatal-warnings"
22277 s390-*-*)
22278 conftest_s='
22279 .section ".tdata","awT",@progbits
22280 foo: .long 25
22281 .text
22282 .long foo@TLSGD
22283 .long foo@TLSLDM
22284 .long foo@DTPOFF
22285 .long foo@NTPOFF
22286 .long foo@GOTNTPOFF
22287 .long foo@INDNTPOFF
22288 l %r1,foo@GOTNTPOFF(%r12)
22289 l %r1,0(%r1):tls_load:foo
22290 bas %r14,0(%r1,%r13):tls_gdcall:foo
22291 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22292 tls_first_major=2
22293 tls_first_minor=14
22294 tls_as_opt="-m31 --fatal-warnings"
22296 s390x-*-*)
22297 conftest_s='
22298 .section ".tdata","awT",@progbits
22299 foo: .long 25
22300 .text
22301 .quad foo@TLSGD
22302 .quad foo@TLSLDM
22303 .quad foo@DTPOFF
22304 .quad foo@NTPOFF
22305 .quad foo@GOTNTPOFF
22306 lg %r1,foo@GOTNTPOFF(%r12)
22307 larl %r1,foo@INDNTPOFF
22308 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22309 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22310 tls_first_major=2
22311 tls_first_minor=14
22312 tls_as_opt="-m64 -Aesame --fatal-warnings"
22314 sh-*-* | sh[34]-*-*)
22315 conftest_s='
22316 .section ".tdata","awT",@progbits
22317 foo: .long 25
22318 .text
22319 .long foo@TLSGD
22320 .long foo@TLSLDM
22321 .long foo@DTPOFF
22322 .long foo@GOTTPOFF
22323 .long foo@TPOFF'
22324 tls_first_major=2
22325 tls_first_minor=13
22326 tls_as_opt=--fatal-warnings
22328 sparc*-*-*)
22329 case "$target" in
22330 sparc*-sun-solaris2.*)
22331 on_solaris=yes
22332 tga_func=__tls_get_addr
22335 on_solaris=no
22337 esac
22338 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22339 conftest_s='
22340 .section ".tdata",#alloc,#write,#tls'
22341 tls_first_major=0
22342 tls_first_minor=0
22343 else
22344 conftest_s='
22345 .section ".tdata","awT",@progbits'
22346 tls_first_major=2
22347 tls_first_minor=14
22348 tls_as_opt="-32 --fatal-warnings"
22350 conftest_s="$conftest_s
22351 foo: .long 25
22352 .text
22353 sethi %tgd_hi22(foo), %o0
22354 add %o0, %tgd_lo10(foo), %o1
22355 add %l7, %o1, %o0, %tgd_add(foo)
22356 call __tls_get_addr, %tgd_call(foo)
22357 sethi %tldm_hi22(foo), %l1
22358 add %l1, %tldm_lo10(foo), %l2
22359 add %l7, %l2, %o0, %tldm_add(foo)
22360 call __tls_get_addr, %tldm_call(foo)
22361 sethi %tldo_hix22(foo), %l3
22362 xor %l3, %tldo_lox10(foo), %l4
22363 add %o0, %l4, %l5, %tldo_add(foo)
22364 sethi %tie_hi22(foo), %o3
22365 add %o3, %tie_lo10(foo), %o3
22366 ld [%l7 + %o3], %o2, %tie_ld(foo)
22367 add %g7, %o2, %o4, %tie_add(foo)
22368 sethi %tle_hix22(foo), %l1
22369 xor %l1, %tle_lox10(foo), %o5
22370 ld [%g7 + %o5], %o1"
22372 xtensa*-*-*)
22373 conftest_s='
22374 .section ".tdata","awT",@progbits
22375 foo: .long 25
22376 .text
22377 movi a8, foo@TLSFUNC
22378 movi a10, foo@TLSARG
22379 callx8.tls a8, foo@TLSCALL'
22380 tls_first_major=2
22381 tls_first_minor=19
22383 esac
22384 set_have_as_tls=no
22385 if test "x$enable_tls" = xno ; then
22386 : # TLS explicitly disabled.
22387 elif test "x$enable_tls" = xyes ; then
22388 set_have_as_tls=yes # TLS explicitly enabled.
22389 elif test -z "$tls_first_major"; then
22390 : # If we don't have a check, assume no support.
22391 else
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22393 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22394 if test "${gcc_cv_as_tls+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22396 else
22397 gcc_cv_as_tls=no
22398 if test $in_tree_gas = yes; then
22399 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22400 then gcc_cv_as_tls=yes
22402 elif test x$gcc_cv_as != x; then
22403 echo "$conftest_s" > conftest.s
22404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22409 test $ac_status = 0; }; }
22410 then
22411 gcc_cv_as_tls=yes
22412 else
22413 echo "configure: failed program was" >&5
22414 cat conftest.s >&5
22416 rm -f conftest.o conftest.s
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22420 $as_echo "$gcc_cv_as_tls" >&6; }
22421 if test $gcc_cv_as_tls = yes; then
22422 set_have_as_tls=yes
22425 case "$target" in
22426 # TLS was introduced in the Solaris 9 FCS release and backported to
22427 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22428 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22429 # ld and GCC don't support any longer.
22430 *-*-solaris2.*)
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22432 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22433 ld_tls_support=no
22434 # Check ld and ld.so.1 TLS support.
22435 if echo "$ld_ver" | grep GNU > /dev/null; then
22436 # Assume all interesting versions of GNU ld have TLS support.
22437 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22438 ld_tls_support=yes
22439 else
22440 case "$target" in
22441 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22442 i?86-*-solaris2.8)
22443 min_tls_ld_vers_minor=280
22445 # Solaris 8/SPARC ld has TLS support since version 1.272.
22446 sparc*-*-solaris2.8)
22447 min_tls_ld_vers_minor=272
22449 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22450 i?86-*-solaris2.9)
22451 min_tls_ld_vers_minor=374
22453 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22454 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22455 min_tls_ld_vers_minor=343
22457 esac
22458 if test "$ls_vers_major" -gt 1 || \
22459 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22460 ld_tls_support=yes
22461 else
22462 set_have_as_tls=no
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22466 $as_echo "$ld_tls_support" >&6; }
22468 save_LIBS="$LIBS"
22469 save_LDFLAGS="$LDFLAGS"
22470 LIBS=
22471 LDFLAGS=
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22474 $as_echo_n "checking alternate thread library... " >&6; }
22475 case "$target" in
22476 # TLS support was backported to Solaris 8 patches, but only lives in
22477 # the alternate thread library which became the default in Solaris 9.
22478 # We want to always use that, irrespective of TLS support.
22479 *-*-solaris2.8)
22480 # Take multilib subdir into account. There's no spec to handle
22481 # this. The 64 symlink exists since Solaris 8.
22482 lwp_dir=/usr/lib/lwp
22483 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22484 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22486 *-*-solaris2*)
22487 lwp_dir="none"
22488 lwp_spec=""
22490 esac
22491 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22493 cat >>confdefs.h <<_ACEOF
22494 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22495 _ACEOF
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22498 $as_echo "$lwp_dir" >&6; }
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22501 $as_echo_n "checking library containing $tga_func... " >&6; }
22502 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22503 # (32-bit x86) only lived in libthread, so check for that. Keep
22504 # set_have_as_tls if found, disable if not.
22505 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22507 $as_echo_n "checking for library containing $tga_func... " >&6; }
22508 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22509 $as_echo_n "(cached) " >&6
22510 else
22511 ac_func_search_save_LIBS=$LIBS
22512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h. */
22515 /* Override any GCC internal prototype to avoid an error.
22516 Use char because int might match the return type of a GCC
22517 builtin and then its argument prototype would still apply. */
22518 #ifdef __cplusplus
22519 extern "C"
22520 #endif
22521 char $tga_func ();
22523 main ()
22525 return $tga_func ();
22527 return 0;
22529 _ACEOF
22530 for ac_lib in '' thread; do
22531 if test -z "$ac_lib"; then
22532 ac_res="none required"
22533 else
22534 ac_res=-l$ac_lib
22535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22537 if ac_fn_c_try_link "$LINENO"; then :
22538 eval "$as_ac_Search=\$ac_res"
22540 rm -f core conftest.err conftest.$ac_objext \
22541 conftest$ac_exeext
22542 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22543 break
22545 done
22546 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22548 else
22549 eval "$as_ac_Search=no"
22551 rm conftest.$ac_ext
22552 LIBS=$ac_func_search_save_LIBS
22554 eval ac_res=\$$as_ac_Search
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22556 $as_echo "$ac_res" >&6; }
22557 eval ac_res=\$$as_ac_Search
22558 if test "$ac_res" != no; then :
22559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22561 else
22562 set_have_as_tls=no
22565 # Clear LIBS if we cannot support TLS.
22566 if test $set_have_as_tls = no; then
22567 LIBS=
22569 # Always define LIB_TLS_SPEC, even without TLS support.
22571 cat >>confdefs.h <<_ACEOF
22572 #define LIB_TLS_SPEC "$LIBS"
22573 _ACEOF
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22576 $as_echo "$LIBS" >&6; }
22578 LIBS="$save_LIBS"
22579 LDFLAGS="$save_LDFLAGS"
22581 esac
22582 if test $set_have_as_tls = yes ; then
22584 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22588 # Target-specific assembler checks.
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22591 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22592 gcc_cv_ld_static_dynamic=no
22593 if test $in_tree_ld = yes ; then
22594 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
22595 gcc_cv_ld_static_dynamic=yes
22597 elif test x$gcc_cv_ld != x; then
22598 # Check if linker supports -Bstatic/-Bdynamic option
22599 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22600 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22601 gcc_cv_ld_static_dynamic=yes
22604 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22606 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22610 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22612 if test x"$demangler_in_ld" = xyes; then
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22614 $as_echo_n "checking linker --demangle support... " >&6; }
22615 gcc_cv_ld_demangle=no
22616 if test $in_tree_ld = yes; then
22617 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 \
22618 gcc_cv_ld_demangle=yes
22620 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22621 # Check if the GNU linker supports --demangle option
22622 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22623 gcc_cv_ld_demangle=yes
22626 if test x"$gcc_cv_ld_demangle" = xyes; then
22628 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22632 $as_echo "$gcc_cv_ld_demangle" >&6; }
22635 case "$target" in
22636 # All TARGET_ABI_OSF targets.
22637 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22639 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22640 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22641 $as_echo_n "(cached) " >&6
22642 else
22643 gcc_cv_as_alpha_explicit_relocs=no
22644 if test $in_tree_gas = yes; then
22645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22646 then gcc_cv_as_alpha_explicit_relocs=yes
22648 elif test x$gcc_cv_as != x; then
22649 echo ' .set nomacro
22650 .text
22651 extbl $3, $2, $3 !lituse_bytoff!1
22652 ldq $2, a($29) !literal!1
22653 ldq $4, b($29) !literal!2
22654 ldq_u $3, 0($2) !lituse_base!1
22655 ldq $27, f($29) !literal!5
22656 jsr $26, ($27), f !lituse_jsr!5
22657 ldah $29, 0($26) !gpdisp!3
22658 lda $0, c($29) !gprel
22659 ldah $1, d($29) !gprelhigh
22660 lda $1, d($1) !gprellow
22661 lda $29, 0($29) !gpdisp!3' > conftest.s
22662 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22664 (eval $ac_try) 2>&5
22665 ac_status=$?
22666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22667 test $ac_status = 0; }; }
22668 then
22669 gcc_cv_as_alpha_explicit_relocs=yes
22670 else
22671 echo "configure: failed program was" >&5
22672 cat conftest.s >&5
22674 rm -f conftest.o conftest.s
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22678 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22679 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22681 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22685 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22686 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22687 $as_echo_n "(cached) " >&6
22688 else
22689 gcc_cv_as_alpha_jsrdirect_relocs=no
22690 if test $in_tree_gas = yes; then
22691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22692 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22694 elif test x$gcc_cv_as != x; then
22695 echo ' .set nomacro
22696 .text
22697 ldq $27, a($29) !literal!1
22698 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22699 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22701 (eval $ac_try) 2>&5
22702 ac_status=$?
22703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22704 test $ac_status = 0; }; }
22705 then
22706 gcc_cv_as_alpha_jsrdirect_relocs=yes
22707 else
22708 echo "configure: failed program was" >&5
22709 cat conftest.s >&5
22711 rm -f conftest.o conftest.s
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22715 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22716 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22718 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22723 cris-*-*)
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22725 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22726 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22728 else
22729 gcc_cv_as_cris_no_mul_bug=no
22730 if test $in_tree_gas = yes; then
22731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22732 then gcc_cv_as_cris_no_mul_bug=yes
22734 elif test x$gcc_cv_as != x; then
22735 echo '.text' > conftest.s
22736 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22738 (eval $ac_try) 2>&5
22739 ac_status=$?
22740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22741 test $ac_status = 0; }; }
22742 then
22743 gcc_cv_as_cris_no_mul_bug=yes
22744 else
22745 echo "configure: failed program was" >&5
22746 cat conftest.s >&5
22748 rm -f conftest.o conftest.s
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22752 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22753 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22755 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22760 sparc*-*-*)
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22762 $as_echo_n "checking assembler for .register... " >&6; }
22763 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22764 $as_echo_n "(cached) " >&6
22765 else
22766 gcc_cv_as_sparc_register_op=no
22767 if test x$gcc_cv_as != x; then
22768 echo '.register %g2, #scratch' > conftest.s
22769 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22771 (eval $ac_try) 2>&5
22772 ac_status=$?
22773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22774 test $ac_status = 0; }; }
22775 then
22776 gcc_cv_as_sparc_register_op=yes
22777 else
22778 echo "configure: failed program was" >&5
22779 cat conftest.s >&5
22781 rm -f conftest.o conftest.s
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22785 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22786 if test $gcc_cv_as_sparc_register_op = yes; then
22788 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22793 $as_echo_n "checking assembler for -relax option... " >&6; }
22794 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22795 $as_echo_n "(cached) " >&6
22796 else
22797 gcc_cv_as_sparc_relax=no
22798 if test x$gcc_cv_as != x; then
22799 echo '.text' > conftest.s
22800 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22802 (eval $ac_try) 2>&5
22803 ac_status=$?
22804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22805 test $ac_status = 0; }; }
22806 then
22807 gcc_cv_as_sparc_relax=yes
22808 else
22809 echo "configure: failed program was" >&5
22810 cat conftest.s >&5
22812 rm -f conftest.o conftest.s
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22816 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22817 if test $gcc_cv_as_sparc_relax = yes; then
22819 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22824 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22825 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22826 $as_echo_n "(cached) " >&6
22827 else
22828 gcc_cv_as_sparc_gotdata_op=no
22829 if test x$gcc_cv_as != x; then
22830 echo '.text
22831 foo:
22833 bar:
22834 sethi %gdop_hix22(foo), %g1
22835 xor %g1, %gdop_lox10(foo), %g1
22836 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22837 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839 (eval $ac_try) 2>&5
22840 ac_status=$?
22841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842 test $ac_status = 0; }; }
22843 then
22844 if test x$gcc_cv_ld != x \
22845 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22846 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22847 if test x$gcc_cv_objdump != x; then
22848 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22849 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22850 gcc_cv_as_sparc_gotdata_op=no
22851 else
22852 gcc_cv_as_sparc_gotdata_op=yes
22855 else
22856 gcc_cv_as_sparc_gotdata_op=yes
22859 rm -f conftest
22860 else
22861 echo "configure: failed program was" >&5
22862 cat conftest.s >&5
22864 rm -f conftest.o conftest.s
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22868 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22869 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22871 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22876 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22877 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22878 $as_echo_n "(cached) " >&6
22879 else
22880 gcc_cv_as_sparc_ua_pcrel=no
22881 if test x$gcc_cv_as != x; then
22882 echo '.text
22883 foo:
22885 .data
22886 .align 4
22887 .byte 0
22888 .uaword %r_disp32(foo)' > conftest.s
22889 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22891 (eval $ac_try) 2>&5
22892 ac_status=$?
22893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22894 test $ac_status = 0; }; }
22895 then
22896 if test x$gcc_cv_ld != x \
22897 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22898 gcc_cv_as_sparc_ua_pcrel=yes
22900 rm -f conftest
22901 else
22902 echo "configure: failed program was" >&5
22903 cat conftest.s >&5
22905 rm -f conftest.o conftest.s
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22909 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22910 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22912 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22916 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22917 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22918 $as_echo_n "(cached) " >&6
22919 else
22920 gcc_cv_as_sparc_ua_pcrel_hidden=no
22921 if test x$gcc_cv_as != x; then
22922 echo '.data
22923 .align 4
22924 .byte 0x31
22925 .uaword %r_disp32(foo)
22926 .byte 0x32, 0x33, 0x34
22927 .global foo
22928 .hidden foo
22929 foo:
22930 .skip 4' > conftest.s
22931 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22933 (eval $ac_try) 2>&5
22934 ac_status=$?
22935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936 test $ac_status = 0; }; }
22937 then
22938 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22939 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22940 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22941 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22942 if $gcc_cv_objdump -R conftest 2> /dev/null \
22943 | grep 'DISP32' > /dev/null 2>&1; then
22945 else
22946 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22949 rm -f conftest
22950 else
22951 echo "configure: failed program was" >&5
22952 cat conftest.s >&5
22954 rm -f conftest.o conftest.s
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22958 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22959 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22961 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22965 fi # unaligned pcrel relocs
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22968 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22969 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22970 $as_echo_n "(cached) " >&6
22971 else
22972 gcc_cv_as_sparc_offsetable_lo10=no
22973 if test x$gcc_cv_as != x; then
22974 echo '.text
22975 or %g1, %lo(ab) + 12, %g1
22976 or %g1, %lo(ab + 12), %g1' > conftest.s
22977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22979 (eval $ac_try) 2>&5
22980 ac_status=$?
22981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22982 test $ac_status = 0; }; }
22983 then
22984 if test x$gcc_cv_objdump != x \
22985 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22986 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22987 gcc_cv_as_sparc_offsetable_lo10=yes
22989 else
22990 echo "configure: failed program was" >&5
22991 cat conftest.s >&5
22993 rm -f conftest.o conftest.s
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22997 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22998 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23000 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23005 i[34567]86-*-* | x86_64-*-*)
23006 case $target_os in
23007 cygwin*)
23008 # Full C++ conformance when using a shared libstdc++-v3 requires some
23009 # support from the Cygwin DLL, which in more recent versions exports
23010 # wrappers to aid in interposing and redirecting operators new, delete,
23011 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23012 # are configuring for a version of Cygwin that exports the wrappers.
23013 if test x$host = x$target; then
23014 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23015 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23016 gcc_ac_cygwin_dll_wrappers=yes
23017 else
23018 gcc_ac_cygwin_dll_wrappers=no
23021 else
23022 # Can't check presence of libc functions during cross-compile, so
23023 # we just have to assume we're building for an up-to-date target.
23024 gcc_ac_cygwin_dll_wrappers=yes
23027 cat >>confdefs.h <<_ACEOF
23028 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23029 _ACEOF
23031 esac
23032 case $target_os in
23033 cygwin* | pe | mingw32*)
23034 # Recent binutils allows the three-operand form of ".comm" on PE. This
23035 # definition is used unconditionally to initialise the default state of
23036 # the target option variable that governs usage of the feature.
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23038 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23039 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23040 $as_echo_n "(cached) " >&6
23041 else
23042 gcc_cv_as_comm_has_align=no
23043 if test $in_tree_gas = yes; then
23044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23045 then gcc_cv_as_comm_has_align=yes
23047 elif test x$gcc_cv_as != x; then
23048 echo '.comm foo,1,32' > conftest.s
23049 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23051 (eval $ac_try) 2>&5
23052 ac_status=$?
23053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23054 test $ac_status = 0; }; }
23055 then
23056 gcc_cv_as_comm_has_align=yes
23057 else
23058 echo "configure: failed program was" >&5
23059 cat conftest.s >&5
23061 rm -f conftest.o conftest.s
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23065 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23068 cat >>confdefs.h <<_ACEOF
23069 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23070 _ACEOF
23072 # Used for DWARF 2 in PE
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23074 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23075 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23076 $as_echo_n "(cached) " >&6
23077 else
23078 gcc_cv_as_ix86_pe_secrel32=no
23079 if test $in_tree_gas = yes; then
23080 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23081 then gcc_cv_as_ix86_pe_secrel32=yes
23083 elif test x$gcc_cv_as != x; then
23084 echo '.text
23085 foo: nop
23086 .data
23087 .secrel32 foo' > conftest.s
23088 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23090 (eval $ac_try) 2>&5
23091 ac_status=$?
23092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23093 test $ac_status = 0; }; }
23094 then
23095 if test x$gcc_cv_ld != x \
23096 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23097 gcc_cv_as_ix86_pe_secrel32=yes
23099 rm -f conftest
23100 else
23101 echo "configure: failed program was" >&5
23102 cat conftest.s >&5
23104 rm -f conftest.o conftest.s
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23108 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23109 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23111 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23114 # Test if the assembler supports the extended form of the .section
23115 # directive that specifies section alignment. LTO support uses this,
23116 # but normally only after installation, so we warn but don't fail the
23117 # configure if LTO is enabled but the assembler does not support it.
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23119 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23120 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23121 $as_echo_n "(cached) " >&6
23122 else
23123 gcc_cv_as_section_has_align=no
23124 if test $in_tree_gas = yes; then
23125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23126 then gcc_cv_as_section_has_align=yes
23128 elif test x$gcc_cv_as != x; then
23129 echo '.section lto_test,"dr0"' > conftest.s
23130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23135 test $ac_status = 0; }; }
23136 then
23137 gcc_cv_as_section_has_align=yes
23138 else
23139 echo "configure: failed program was" >&5
23140 cat conftest.s >&5
23142 rm -f conftest.o conftest.s
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23146 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23148 if test x$gcc_cv_as_section_has_align != xyes; then
23149 case ",$enable_languages," in
23150 *,lto,*)
23151 { $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
23152 $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;}
23154 esac
23157 esac
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23160 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23161 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23163 else
23164 gcc_cv_as_ix86_filds=no
23165 if test x$gcc_cv_as != x; then
23166 echo 'filds mem; fists mem' > conftest.s
23167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23172 test $ac_status = 0; }; }
23173 then
23174 gcc_cv_as_ix86_filds=yes
23175 else
23176 echo "configure: failed program was" >&5
23177 cat conftest.s >&5
23179 rm -f conftest.o conftest.s
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23183 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23184 if test $gcc_cv_as_ix86_filds = yes; then
23186 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23191 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23192 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23194 else
23195 gcc_cv_as_ix86_fildq=no
23196 if test x$gcc_cv_as != x; then
23197 echo 'fildq mem; fistpq mem' > conftest.s
23198 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23200 (eval $ac_try) 2>&5
23201 ac_status=$?
23202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23203 test $ac_status = 0; }; }
23204 then
23205 gcc_cv_as_ix86_fildq=yes
23206 else
23207 echo "configure: failed program was" >&5
23208 cat conftest.s >&5
23210 rm -f conftest.o conftest.s
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23214 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23215 if test $gcc_cv_as_ix86_fildq = yes; then
23217 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23222 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23223 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23224 $as_echo_n "(cached) " >&6
23225 else
23226 gcc_cv_as_ix86_cmov_sun_syntax=no
23227 if test x$gcc_cv_as != x; then
23228 echo 'cmovl.l %edx, %eax' > conftest.s
23229 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234 test $ac_status = 0; }; }
23235 then
23236 gcc_cv_as_ix86_cmov_sun_syntax=yes
23237 else
23238 echo "configure: failed program was" >&5
23239 cat conftest.s >&5
23241 rm -f conftest.o conftest.s
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23245 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23246 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23248 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23253 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23254 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23255 $as_echo_n "(cached) " >&6
23256 else
23257 gcc_cv_as_ix86_ffreep=no
23258 if test x$gcc_cv_as != x; then
23259 echo 'ffreep %st(1)' > conftest.s
23260 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23262 (eval $ac_try) 2>&5
23263 ac_status=$?
23264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23265 test $ac_status = 0; }; }
23266 then
23267 gcc_cv_as_ix86_ffreep=yes
23268 else
23269 echo "configure: failed program was" >&5
23270 cat conftest.s >&5
23272 rm -f conftest.o conftest.s
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23276 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23277 if test $gcc_cv_as_ix86_ffreep = yes; then
23279 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23284 $as_echo_n "checking assembler for .quad directive... " >&6; }
23285 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23286 $as_echo_n "(cached) " >&6
23287 else
23288 gcc_cv_as_ix86_quad=no
23289 if test x$gcc_cv_as != x; then
23290 echo '.quad 0' > conftest.s
23291 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23293 (eval $ac_try) 2>&5
23294 ac_status=$?
23295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23296 test $ac_status = 0; }; }
23297 then
23298 gcc_cv_as_ix86_quad=yes
23299 else
23300 echo "configure: failed program was" >&5
23301 cat conftest.s >&5
23303 rm -f conftest.o conftest.s
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23307 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23308 if test $gcc_cv_as_ix86_quad = yes; then
23310 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23315 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23316 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23319 gcc_cv_as_ix86_sahf=no
23320 if test x$gcc_cv_as != x; then
23321 echo '.code64
23322 sahf' > conftest.s
23323 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23325 (eval $ac_try) 2>&5
23326 ac_status=$?
23327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23328 test $ac_status = 0; }; }
23329 then
23330 gcc_cv_as_ix86_sahf=yes
23331 else
23332 echo "configure: failed program was" >&5
23333 cat conftest.s >&5
23335 rm -f conftest.o conftest.s
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23339 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23340 if test $gcc_cv_as_ix86_sahf = yes; then
23342 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23347 $as_echo_n "checking assembler for swap suffix... " >&6; }
23348 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23349 $as_echo_n "(cached) " >&6
23350 else
23351 gcc_cv_as_ix86_swap=no
23352 if test x$gcc_cv_as != x; then
23353 echo 'movl.s %esp, %ebp' > conftest.s
23354 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23356 (eval $ac_try) 2>&5
23357 ac_status=$?
23358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23359 test $ac_status = 0; }; }
23360 then
23361 gcc_cv_as_ix86_swap=yes
23362 else
23363 echo "configure: failed program was" >&5
23364 cat conftest.s >&5
23366 rm -f conftest.o conftest.s
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23370 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23371 if test $gcc_cv_as_ix86_swap = yes; then
23373 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23378 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23379 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23380 $as_echo_n "(cached) " >&6
23381 else
23382 gcc_cv_as_ix86_diff_sect_delta=no
23383 if test x$gcc_cv_as != x; then
23384 echo '.section .rodata
23385 .L1:
23386 .long .L2-.L1
23387 .long .L3-.L1
23388 .text
23389 .L3: nop
23390 .L2: nop' > conftest.s
23391 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23396 test $ac_status = 0; }; }
23397 then
23398 gcc_cv_as_ix86_diff_sect_delta=yes
23399 else
23400 echo "configure: failed program was" >&5
23401 cat conftest.s >&5
23403 rm -f conftest.o conftest.s
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23407 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23408 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23410 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23414 # These two are used unconditionally by i386.[ch]; it is to be defined
23415 # to 1 if the feature is present, 0 otherwise.
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23417 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23418 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23419 $as_echo_n "(cached) " >&6
23420 else
23421 gcc_cv_as_ix86_gotoff_in_data=no
23422 if test $in_tree_gas = yes; then
23423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23424 then gcc_cv_as_ix86_gotoff_in_data=yes
23426 elif test x$gcc_cv_as != x; then
23427 echo ' .text
23428 .L0:
23430 .data
23431 .long .L0@GOTOFF' > conftest.s
23432 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23434 (eval $ac_try) 2>&5
23435 ac_status=$?
23436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23437 test $ac_status = 0; }; }
23438 then
23439 gcc_cv_as_ix86_gotoff_in_data=yes
23440 else
23441 echo "configure: failed program was" >&5
23442 cat conftest.s >&5
23444 rm -f conftest.o conftest.s
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23448 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23451 cat >>confdefs.h <<_ACEOF
23452 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23453 _ACEOF
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23457 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23458 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23459 $as_echo_n "(cached) " >&6
23460 else
23461 gcc_cv_as_ix86_rep_lock_prefix=no
23462 if test x$gcc_cv_as != x; then
23463 echo 'rep movsl
23464 lock addl %edi, (%eax,%esi)
23465 lock orl $0, (%esp)' > conftest.s
23466 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23468 (eval $ac_try) 2>&5
23469 ac_status=$?
23470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23471 test $ac_status = 0; }; }
23472 then
23473 gcc_cv_as_ix86_rep_lock_prefix=yes
23474 else
23475 echo "configure: failed program was" >&5
23476 cat conftest.s >&5
23478 rm -f conftest.o conftest.s
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23482 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23483 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23485 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23491 ia64*-*-*)
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23493 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23494 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23495 $as_echo_n "(cached) " >&6
23496 else
23497 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23498 if test $in_tree_gas = yes; then
23499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23500 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23502 elif test x$gcc_cv_as != x; then
23503 echo ' .text
23504 addl r15 = @ltoffx(x#), gp
23506 ld8.mov r16 = [r15], x#' > conftest.s
23507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23509 (eval $ac_try) 2>&5
23510 ac_status=$?
23511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23512 test $ac_status = 0; }; }
23513 then
23514 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23515 else
23516 echo "configure: failed program was" >&5
23517 cat conftest.s >&5
23519 rm -f conftest.o conftest.s
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23523 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23524 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23526 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23532 powerpc*-*-*)
23533 case $target in
23534 *-*-aix*) conftest_s=' .machine "pwr5"
23535 .csect .text[PR]
23536 mfcr 3,128';;
23537 *-*-darwin*)
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23539 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23540 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23541 $as_echo_n "(cached) " >&6
23542 else
23543 gcc_cv_as_machine_directive=no
23544 if test x$gcc_cv_as != x; then
23545 echo ' .machine ppc7400' > conftest.s
23546 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23548 (eval $ac_try) 2>&5
23549 ac_status=$?
23550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23551 test $ac_status = 0; }; }
23552 then
23553 gcc_cv_as_machine_directive=yes
23554 else
23555 echo "configure: failed program was" >&5
23556 cat conftest.s >&5
23558 rm -f conftest.o conftest.s
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23562 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23564 if test x$gcc_cv_as_machine_directive != xyes; then
23565 echo "*** This target requires an assembler supporting \".machine\"" >&2
23566 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23567 test x$build = x$target && exit 1
23569 conftest_s=' .text
23570 mfcr r3,128';;
23571 *) conftest_s=' .machine power4
23572 .text
23573 mfcr 3,128';;
23574 esac
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23577 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23578 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23579 $as_echo_n "(cached) " >&6
23580 else
23581 gcc_cv_as_powerpc_mfcrf=no
23582 if test $in_tree_gas = yes; then
23583 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23584 then gcc_cv_as_powerpc_mfcrf=yes
23586 elif test x$gcc_cv_as != x; then
23587 echo "$conftest_s" > conftest.s
23588 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23590 (eval $ac_try) 2>&5
23591 ac_status=$?
23592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23593 test $ac_status = 0; }; }
23594 then
23595 gcc_cv_as_powerpc_mfcrf=yes
23596 else
23597 echo "configure: failed program was" >&5
23598 cat conftest.s >&5
23600 rm -f conftest.o conftest.s
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23604 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23605 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23607 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23611 case $target in
23612 *-*-aix*) conftest_s=' .machine "pwr5"
23613 .csect .text[PR]
23614 popcntb 3,3';;
23615 *) conftest_s=' .machine power5
23616 .text
23617 popcntb 3,3';;
23618 esac
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23621 $as_echo_n "checking assembler for popcntb support... " >&6; }
23622 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23623 $as_echo_n "(cached) " >&6
23624 else
23625 gcc_cv_as_powerpc_popcntb=no
23626 if test $in_tree_gas = yes; then
23627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23628 then gcc_cv_as_powerpc_popcntb=yes
23630 elif test x$gcc_cv_as != x; then
23631 echo "$conftest_s" > conftest.s
23632 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23637 test $ac_status = 0; }; }
23638 then
23639 gcc_cv_as_powerpc_popcntb=yes
23640 else
23641 echo "configure: failed program was" >&5
23642 cat conftest.s >&5
23644 rm -f conftest.o conftest.s
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23648 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23649 if test $gcc_cv_as_powerpc_popcntb = yes; then
23651 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23655 case $target in
23656 *-*-aix*) conftest_s=' .machine "pwr5x"
23657 .csect .text[PR]
23658 frin 1,1';;
23659 *) conftest_s=' .machine power5
23660 .text
23661 frin 1,1';;
23662 esac
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23665 $as_echo_n "checking assembler for fp round support... " >&6; }
23666 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23667 $as_echo_n "(cached) " >&6
23668 else
23669 gcc_cv_as_powerpc_fprnd=no
23670 if test $in_tree_gas = yes; then
23671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23672 then gcc_cv_as_powerpc_fprnd=yes
23674 elif test x$gcc_cv_as != x; then
23675 echo "$conftest_s" > conftest.s
23676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23678 (eval $ac_try) 2>&5
23679 ac_status=$?
23680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23681 test $ac_status = 0; }; }
23682 then
23683 gcc_cv_as_powerpc_fprnd=yes
23684 else
23685 echo "configure: failed program was" >&5
23686 cat conftest.s >&5
23688 rm -f conftest.o conftest.s
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23692 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23693 if test $gcc_cv_as_powerpc_fprnd = yes; then
23695 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23699 case $target in
23700 *-*-aix*) conftest_s=' .machine "pwr6"
23701 .csect .text[PR]
23702 mffgpr 1,3';;
23703 *) conftest_s=' .machine power6
23704 .text
23705 mffgpr 1,3';;
23706 esac
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23709 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23710 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23711 $as_echo_n "(cached) " >&6
23712 else
23713 gcc_cv_as_powerpc_mfpgpr=no
23714 if test $in_tree_gas = yes; then
23715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23716 then gcc_cv_as_powerpc_mfpgpr=yes
23718 elif test x$gcc_cv_as != x; then
23719 echo "$conftest_s" > conftest.s
23720 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23725 test $ac_status = 0; }; }
23726 then
23727 gcc_cv_as_powerpc_mfpgpr=yes
23728 else
23729 echo "configure: failed program was" >&5
23730 cat conftest.s >&5
23732 rm -f conftest.o conftest.s
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23736 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23737 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23739 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23743 case $target in
23744 *-*-aix*) conftest_s=' .csect .text[PR]
23745 LCF..0:
23746 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23747 *-*-darwin*)
23748 conftest_s=' .text
23749 LCF0:
23750 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23751 *) conftest_s=' .text
23752 .LCF0:
23753 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23754 esac
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23757 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23758 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23759 $as_echo_n "(cached) " >&6
23760 else
23761 gcc_cv_as_powerpc_rel16=no
23762 if test $in_tree_gas = yes; then
23763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23764 then gcc_cv_as_powerpc_rel16=yes
23766 elif test x$gcc_cv_as != x; then
23767 echo "$conftest_s" > conftest.s
23768 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770 (eval $ac_try) 2>&5
23771 ac_status=$?
23772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773 test $ac_status = 0; }; }
23774 then
23775 gcc_cv_as_powerpc_rel16=yes
23776 else
23777 echo "configure: failed program was" >&5
23778 cat conftest.s >&5
23780 rm -f conftest.o conftest.s
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23784 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23785 if test $gcc_cv_as_powerpc_rel16 = yes; then
23787 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23791 case $target in
23792 *-*-aix*) conftest_s=' .machine "pwr6"
23793 .csect .text[PR]
23794 cmpb 3,4,5';;
23795 *) conftest_s=' .machine power6
23796 .text
23797 cmpb 3,4,5';;
23798 esac
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23801 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23802 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23804 else
23805 gcc_cv_as_powerpc_cmpb=no
23806 if test $in_tree_gas = yes; then
23807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23808 then gcc_cv_as_powerpc_cmpb=yes
23810 elif test x$gcc_cv_as != x; then
23811 echo "$conftest_s" > conftest.s
23812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23818 then
23819 gcc_cv_as_powerpc_cmpb=yes
23820 else
23821 echo "configure: failed program was" >&5
23822 cat conftest.s >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23828 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23829 if test $gcc_cv_as_powerpc_cmpb = yes; then
23831 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23835 case $target in
23836 *-*-aix*) conftest_s=' .machine "pwr6"
23837 .csect .text[PR]
23838 dadd 1,2,3';;
23839 *) conftest_s=' .machine power6
23840 .text
23841 dadd 1,2,3';;
23842 esac
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23845 $as_echo_n "checking assembler for decimal float support... " >&6; }
23846 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23847 $as_echo_n "(cached) " >&6
23848 else
23849 gcc_cv_as_powerpc_dfp=no
23850 if test $in_tree_gas = yes; then
23851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23852 then gcc_cv_as_powerpc_dfp=yes
23854 elif test x$gcc_cv_as != x; then
23855 echo "$conftest_s" > conftest.s
23856 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23858 (eval $ac_try) 2>&5
23859 ac_status=$?
23860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23861 test $ac_status = 0; }; }
23862 then
23863 gcc_cv_as_powerpc_dfp=yes
23864 else
23865 echo "configure: failed program was" >&5
23866 cat conftest.s >&5
23868 rm -f conftest.o conftest.s
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23872 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23873 if test $gcc_cv_as_powerpc_dfp = yes; then
23875 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23879 case $target in
23880 *-*-aix*) conftest_s=' .machine "pwr7"
23881 .csect .text[PR]
23882 lxvd2x 1,2,3';;
23883 *) conftest_s=' .machine power7
23884 .text
23885 lxvd2x 1,2,3';;
23886 esac
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23889 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23890 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23891 $as_echo_n "(cached) " >&6
23892 else
23893 gcc_cv_as_powerpc_vsx=no
23894 if test $in_tree_gas = yes; then
23895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23896 then gcc_cv_as_powerpc_vsx=yes
23898 elif test x$gcc_cv_as != x; then
23899 echo "$conftest_s" > conftest.s
23900 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23905 test $ac_status = 0; }; }
23906 then
23907 gcc_cv_as_powerpc_vsx=yes
23908 else
23909 echo "configure: failed program was" >&5
23910 cat conftest.s >&5
23912 rm -f conftest.o conftest.s
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23916 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23917 if test $gcc_cv_as_powerpc_vsx = yes; then
23919 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23923 case $target in
23924 *-*-aix*) conftest_s=' .machine "pwr7"
23925 .csect .text[PR]
23926 popcntd 3,3';;
23927 *) conftest_s=' .machine power7
23928 .text
23929 popcntd 3,3';;
23930 esac
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23933 $as_echo_n "checking assembler for popcntd support... " >&6; }
23934 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23935 $as_echo_n "(cached) " >&6
23936 else
23937 gcc_cv_as_powerpc_popcntd=no
23938 if test $in_tree_gas = yes; then
23939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23940 then gcc_cv_as_powerpc_popcntd=yes
23942 elif test x$gcc_cv_as != x; then
23943 echo "$conftest_s" > conftest.s
23944 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23947 ac_status=$?
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23950 then
23951 gcc_cv_as_powerpc_popcntd=yes
23952 else
23953 echo "configure: failed program was" >&5
23954 cat conftest.s >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23960 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23961 if test $gcc_cv_as_powerpc_popcntd = yes; then
23963 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23967 case $target in
23968 *-*-aix*) conftest_s=' .csect .text[PR]
23969 lwsync';;
23970 *) conftest_s=' .text
23971 lwsync';;
23972 esac
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23975 $as_echo_n "checking assembler for lwsync support... " >&6; }
23976 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23977 $as_echo_n "(cached) " >&6
23978 else
23979 gcc_cv_as_powerpc_lwsync=no
23980 if test $in_tree_gas = yes; then
23981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23982 then gcc_cv_as_powerpc_lwsync=yes
23984 elif test x$gcc_cv_as != x; then
23985 echo "$conftest_s" > conftest.s
23986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23988 (eval $ac_try) 2>&5
23989 ac_status=$?
23990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23991 test $ac_status = 0; }; }
23992 then
23993 gcc_cv_as_powerpc_lwsync=yes
23994 else
23995 echo "configure: failed program was" >&5
23996 cat conftest.s >&5
23998 rm -f conftest.o conftest.s
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24002 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24003 if test $gcc_cv_as_powerpc_lwsync = yes; then
24005 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24009 case $target in
24010 *-*-aix*) conftest_s=' .machine "476"
24011 .csect .text[PR]
24012 dci 0';;
24013 *) conftest_s=' .machine "476"
24014 .text
24015 dci 0';;
24016 esac
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24019 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24020 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24021 $as_echo_n "(cached) " >&6
24022 else
24023 gcc_cv_as_powerpc_dci=no
24024 if test $in_tree_gas = yes; then
24025 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24026 then gcc_cv_as_powerpc_dci=yes
24028 elif test x$gcc_cv_as != x; then
24029 echo "$conftest_s" > conftest.s
24030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24033 ac_status=$?
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24036 then
24037 gcc_cv_as_powerpc_dci=yes
24038 else
24039 echo "configure: failed program was" >&5
24040 cat conftest.s >&5
24042 rm -f conftest.o conftest.s
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24046 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24047 if test $gcc_cv_as_powerpc_dci = yes; then
24049 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24054 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24055 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24056 $as_echo_n "(cached) " >&6
24057 else
24058 gcc_cv_as_powerpc_gnu_attribute=no
24059 if test $in_tree_gas = yes; then
24060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24061 then gcc_cv_as_powerpc_gnu_attribute=yes
24063 elif test x$gcc_cv_as != x; then
24064 echo '.gnu_attribute 4,1' > conftest.s
24065 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24067 (eval $ac_try) 2>&5
24068 ac_status=$?
24069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24070 test $ac_status = 0; }; }
24071 then
24072 gcc_cv_as_powerpc_gnu_attribute=yes
24073 else
24074 echo "configure: failed program was" >&5
24075 cat conftest.s >&5
24077 rm -f conftest.o conftest.s
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24081 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24082 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24084 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24089 $as_echo_n "checking assembler for tls marker support... " >&6; }
24090 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24091 $as_echo_n "(cached) " >&6
24092 else
24093 gcc_cv_as_powerpc_tls_markers=no
24094 if test $in_tree_gas = yes; then
24095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24096 then gcc_cv_as_powerpc_tls_markers=yes
24098 elif test x$gcc_cv_as != x; then
24099 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24100 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24102 (eval $ac_try) 2>&5
24103 ac_status=$?
24104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24105 test $ac_status = 0; }; }
24106 then
24107 gcc_cv_as_powerpc_tls_markers=yes
24108 else
24109 echo "configure: failed program was" >&5
24110 cat conftest.s >&5
24112 rm -f conftest.o conftest.s
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24116 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24117 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24119 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24123 case $target in
24124 *-*-aix*)
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24126 $as_echo_n "checking assembler for .ref support... " >&6; }
24127 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24128 $as_echo_n "(cached) " >&6
24129 else
24130 gcc_cv_as_aix_ref=no
24131 if test $in_tree_gas = yes; then
24132 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24133 then :
24135 elif test x$gcc_cv_as != x; then
24136 echo ' .csect stuff[rw]
24137 stuff:
24138 .long 1
24139 .extern sym
24140 .ref sym
24141 ' > conftest.s
24142 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24144 (eval $ac_try) 2>&5
24145 ac_status=$?
24146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24147 test $ac_status = 0; }; }
24148 then
24149 gcc_cv_as_aix_ref=yes
24150 else
24151 echo "configure: failed program was" >&5
24152 cat conftest.s >&5
24154 rm -f conftest.o conftest.s
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24158 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24159 if test $gcc_cv_as_aix_ref = yes; then
24161 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24165 esac
24168 mips*-*-*)
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24170 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24171 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24172 $as_echo_n "(cached) " >&6
24173 else
24174 gcc_cv_as_mips_explicit_relocs=no
24175 if test $in_tree_gas = yes; then
24176 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24177 then gcc_cv_as_mips_explicit_relocs=yes
24179 elif test x$gcc_cv_as != x; then
24180 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24181 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; }
24187 then
24188 gcc_cv_as_mips_explicit_relocs=yes
24189 else
24190 echo "configure: failed program was" >&5
24191 cat conftest.s >&5
24193 rm -f conftest.o conftest.s
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24197 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24198 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24199 if test x$target_cpu_default = x
24200 then target_cpu_default=MASK_EXPLICIT_RELOCS
24201 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24205 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24206 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24207 $as_echo_n "(cached) " >&6
24208 else
24209 gcc_cv_as_mips_no_shared=no
24210 if test $in_tree_gas = yes; then
24211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24212 then gcc_cv_as_mips_no_shared=yes
24214 elif test x$gcc_cv_as != x; then
24215 echo 'nop' > conftest.s
24216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221 test $ac_status = 0; }; }
24222 then
24223 gcc_cv_as_mips_no_shared=yes
24224 else
24225 echo "configure: failed program was" >&5
24226 cat conftest.s >&5
24228 rm -f conftest.o conftest.s
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24232 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24233 if test $gcc_cv_as_mips_no_shared = yes; then
24235 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24240 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24241 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24242 $as_echo_n "(cached) " >&6
24243 else
24244 gcc_cv_as_mips_gnu_attribute=no
24245 if test $in_tree_gas = yes; then
24246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24247 then gcc_cv_as_mips_gnu_attribute=yes
24249 elif test x$gcc_cv_as != x; then
24250 echo '.gnu_attribute 4,1' > conftest.s
24251 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24253 (eval $ac_try) 2>&5
24254 ac_status=$?
24255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24256 test $ac_status = 0; }; }
24257 then
24258 gcc_cv_as_mips_gnu_attribute=yes
24259 else
24260 echo "configure: failed program was" >&5
24261 cat conftest.s >&5
24263 rm -f conftest.o conftest.s
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24267 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24268 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24270 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24275 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24276 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24277 $as_echo_n "(cached) " >&6
24278 else
24279 gcc_cv_as_mips_dtprelword=no
24280 if test $in_tree_gas = yes; then
24281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24282 then gcc_cv_as_mips_dtprelword=yes
24284 elif test x$gcc_cv_as != x; then
24285 echo '.section .tdata,"awT",@progbits
24287 .word 2
24288 .text
24289 .dtprelword x+0x8000' > conftest.s
24290 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24292 (eval $ac_try) 2>&5
24293 ac_status=$?
24294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24295 test $ac_status = 0; }; }
24296 then
24297 gcc_cv_as_mips_dtprelword=yes
24298 else
24299 echo "configure: failed program was" >&5
24300 cat conftest.s >&5
24302 rm -f conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24306 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24307 if test $gcc_cv_as_mips_dtprelword = yes; then
24309 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24314 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24315 gcc_cv_as_ld_jalr_reloc=no
24316 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24317 if test $in_tree_ld = yes ; then
24318 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 \
24319 && test $in_tree_ld_is_elf = yes; then
24320 gcc_cv_as_ld_jalr_reloc=yes
24322 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24323 echo ' .ent x' > conftest.s
24324 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24325 echo ' ld $25,%call16(y)($28)' >> conftest.s
24326 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24327 echo '1: jalr $25' >> conftest.s
24328 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24329 echo '1: jalr $25' >> conftest.s
24330 echo ' .end x' >> conftest.s
24331 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24332 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24333 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24334 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24335 gcc_cv_as_ld_jalr_reloc=yes
24338 rm -f conftest.*
24341 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24342 if test x$target_cpu_default = x; then
24343 target_cpu_default=MASK_RELAX_PIC_CALLS
24344 else
24345 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24349 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24352 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24353 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24354 $as_echo_n "(cached) " >&6
24355 else
24356 gcc_cv_ld_mips_personality_relaxation=no
24357 if test $in_tree_ld = yes ; then
24358 if test "$gcc_cv_gld_major_version" -eq 2 \
24359 -a "$gcc_cv_gld_minor_version" -ge 21 \
24360 -o "$gcc_cv_gld_major_version" -gt 2; then
24361 gcc_cv_ld_mips_personality_relaxation=yes
24363 elif test x$gcc_cv_as != x \
24364 -a x$gcc_cv_ld != x \
24365 -a x$gcc_cv_readelf != x ; then
24366 cat > conftest.s <<EOF
24367 .cfi_startproc
24368 .cfi_personality 0x80,indirect_ptr
24369 .ent test
24370 test:
24372 .end test
24373 .cfi_endproc
24375 .section .data,"aw",@progbits
24376 indirect_ptr:
24377 .dc.a personality
24379 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24380 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24381 if $gcc_cv_readelf -d conftest 2>&1 \
24382 | grep TEXTREL > /dev/null 2>&1; then
24384 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24385 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24387 else
24388 gcc_cv_ld_mips_personality_relaxation=yes
24392 rm -f conftest.s conftest.o conftest
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24395 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24396 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24398 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24402 esac
24404 # Mips and HP-UX need the GNU assembler.
24405 # Linux on IA64 might be able to use the Intel assembler.
24407 case "$target" in
24408 mips*-*-* | *-*-hpux* )
24409 if test x$gas_flag = xyes \
24410 || test x"$host" != x"$build" \
24411 || test ! -x "$gcc_cv_as" \
24412 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24414 else
24415 echo "*** This configuration requires the GNU assembler" >&2
24416 exit 1
24419 esac
24421 # ??? Not all targets support dwarf2 debug_line, even within a version
24422 # of gas. Moreover, we need to emit a valid instruction to trigger any
24423 # info to the output file. So, as supported targets are added to gas 2.11,
24424 # add some instruction here to (also) show we expect this might work.
24425 # ??? Once 2.11 is released, probably need to add first known working
24426 # version to the per-target configury.
24427 case "$target" in
24428 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24429 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24430 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24431 | spu-*-* | fido*-*-* | m32c-*-*)
24432 insn="nop"
24434 ia64*-*-* | s390*-*-*)
24435 insn="nop 0"
24437 mmix-*-*)
24438 insn="swym 0"
24440 esac
24441 if test x"$insn" != x; then
24442 conftest_s="\
24443 .file 1 \"conftest.s\"
24444 .loc 1 3 0
24445 $insn"
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24447 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24448 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24449 $as_echo_n "(cached) " >&6
24450 else
24451 gcc_cv_as_dwarf2_debug_line=no
24452 if test $in_tree_gas = yes; then
24453 if test $in_tree_gas_is_elf = yes \
24454 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24455 then gcc_cv_as_dwarf2_debug_line=yes
24457 elif test x$gcc_cv_as != x; then
24458 echo "$conftest_s" > conftest.s
24459 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24461 (eval $ac_try) 2>&5
24462 ac_status=$?
24463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24464 test $ac_status = 0; }; }
24465 then
24466 if test x$gcc_cv_objdump != x \
24467 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24468 | grep debug_line > /dev/null 2>&1; then
24469 gcc_cv_as_dwarf2_debug_line=yes
24471 else
24472 echo "configure: failed program was" >&5
24473 cat conftest.s >&5
24475 rm -f conftest.o conftest.s
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24479 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24482 # The .debug_line file table must be in the exact order that
24483 # we specified the files, since these indices are also used
24484 # by DW_AT_decl_file. Approximate this test by testing if
24485 # the assembler bitches if the same index is assigned twice.
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24487 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24488 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24490 else
24491 gcc_cv_as_dwarf2_file_buggy=no
24492 if test x$gcc_cv_as != x; then
24493 echo ' .file 1 "foo.s"
24494 .file 1 "bar.s"' > conftest.s
24495 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24500 test $ac_status = 0; }; }
24501 then
24502 gcc_cv_as_dwarf2_file_buggy=yes
24503 else
24504 echo "configure: failed program was" >&5
24505 cat conftest.s >&5
24507 rm -f conftest.o conftest.s
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24511 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24514 if test $gcc_cv_as_dwarf2_debug_line = yes \
24515 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24517 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24522 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24523 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24525 else
24526 gcc_cv_as_gdwarf2_flag=no
24527 if test $in_tree_gas = yes; then
24528 if test $in_tree_gas_is_elf = yes \
24529 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24530 then gcc_cv_as_gdwarf2_flag=yes
24532 elif test x$gcc_cv_as != x; then
24533 echo "$insn" > conftest.s
24534 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24537 ac_status=$?
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24540 then
24541 gcc_cv_as_gdwarf2_flag=yes
24542 else
24543 echo "configure: failed program was" >&5
24544 cat conftest.s >&5
24546 rm -f conftest.o conftest.s
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24550 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24551 if test $gcc_cv_as_gdwarf2_flag = yes; then
24553 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24558 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24559 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24561 else
24562 gcc_cv_as_gstabs_flag=no
24563 if test $in_tree_gas = yes; then
24564 if test $in_tree_gas_is_elf = yes \
24565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24566 then gcc_cv_as_gstabs_flag=yes
24568 elif test x$gcc_cv_as != x; then
24569 echo "$insn" > conftest.s
24570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24576 then
24577 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24578 # and warns about it, but still exits successfully. So check for
24579 # this.
24580 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24586 then :
24587 else gcc_cv_as_gstabs_flag=yes
24589 else
24590 echo "configure: failed program was" >&5
24591 cat conftest.s >&5
24593 rm -f conftest.o conftest.s
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24597 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24598 if test $gcc_cv_as_gstabs_flag = yes; then
24600 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24605 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24606 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24607 $as_echo_n "(cached) " >&6
24608 else
24609 gcc_cv_as_debug_prefix_map_flag=no
24610 if test $in_tree_gas = yes; then
24611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24612 then gcc_cv_as_debug_prefix_map_flag=yes
24614 elif test x$gcc_cv_as != x; then
24615 echo "$insn" > conftest.s
24616 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24618 (eval $ac_try) 2>&5
24619 ac_status=$?
24620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24621 test $ac_status = 0; }; }
24622 then
24623 gcc_cv_as_debug_prefix_map_flag=yes
24624 else
24625 echo "configure: failed program was" >&5
24626 cat conftest.s >&5
24628 rm -f conftest.o conftest.s
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24632 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24633 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24635 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24641 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24642 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24644 else
24645 gcc_cv_as_lcomm_with_alignment=no
24646 if test x$gcc_cv_as != x; then
24647 echo '.lcomm bar,4,16' > conftest.s
24648 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24650 (eval $ac_try) 2>&5
24651 ac_status=$?
24652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24653 test $ac_status = 0; }; }
24654 then
24655 gcc_cv_as_lcomm_with_alignment=yes
24656 else
24657 echo "configure: failed program was" >&5
24658 cat conftest.s >&5
24660 rm -f conftest.o conftest.s
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24664 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24665 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24667 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24671 # Check whether --enable-gnu-unique-object was given.
24672 if test "${enable_gnu_unique_object+set}" = set; then :
24673 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24674 yes | no) ;;
24675 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24676 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24677 esac
24678 else
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24680 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24681 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24682 $as_echo_n "(cached) " >&6
24683 else
24684 gcc_cv_as_gnu_unique_object=no
24685 if test $in_tree_gas = yes; then
24686 if test $in_tree_gas_is_elf = yes \
24687 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24688 then gcc_cv_as_gnu_unique_object=yes
24690 elif test x$gcc_cv_as != x; then
24691 echo '.type foo, @gnu_unique_object' > conftest.s
24692 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; }
24698 then
24699 gcc_cv_as_gnu_unique_object=yes
24700 else
24701 echo "configure: failed program was" >&5
24702 cat conftest.s >&5
24704 rm -f conftest.o conftest.s
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24708 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24709 if test $gcc_cv_as_gnu_unique_object = yes; then
24710 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24711 if test x$host = x$build -a x$host = x$target &&
24712 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24713 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24714 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24715 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24716 if test "$glibcnum" -ge 2011 ; then
24717 enable_gnu_unique_object=yes
24723 if test x$enable_gnu_unique_object = xyes; then
24725 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24730 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24731 if test "${gcc_cv_as_line_zero+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24733 else
24734 gcc_cv_as_line_zero=no
24735 if test $in_tree_gas = yes; then
24736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24737 then gcc_cv_as_line_zero=yes
24739 elif test "x$gcc_cv_as" != x; then
24740 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24741 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24744 ac_status=$?
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; } &&
24747 test "x`cat conftest.out`" = x
24748 then
24749 gcc_cv_as_line_zero=yes
24750 else
24751 echo "configure: failed program was" >&5
24752 cat conftest.s >&5
24753 echo "configure: error output was" >&5
24754 cat conftest.out >&5
24756 rm -f conftest.o conftest.s conftest.out
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24760 $as_echo "$gcc_cv_as_line_zero" >&6; }
24761 if test "x$gcc_cv_as_line_zero" = xyes; then
24763 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24768 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24769 gcc_cv_ld_eh_frame_hdr=no
24770 if test $in_tree_ld = yes ; then
24771 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 \
24772 && test $in_tree_ld_is_elf = yes; then
24773 gcc_cv_ld_eh_frame_hdr=yes
24775 elif test x$gcc_cv_ld != x; then
24776 # Check if linker supports --eh-frame-hdr option
24777 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24778 gcc_cv_ld_eh_frame_hdr=yes
24782 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24784 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24788 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24791 $as_echo_n "checking linker position independent executable support... " >&6; }
24792 gcc_cv_ld_pie=no
24793 if test $in_tree_ld = yes ; then
24794 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 \
24795 && test $in_tree_ld_is_elf = yes; then
24796 gcc_cv_ld_pie=yes
24798 elif test x$gcc_cv_ld != x; then
24799 # Check if linker supports -pie option
24800 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24801 gcc_cv_ld_pie=yes
24804 if test x"$gcc_cv_ld_pie" = xyes; then
24806 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24810 $as_echo "$gcc_cv_ld_pie" >&6; }
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24813 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24814 gcc_cv_ld_eh_gc_sections=no
24815 if test $in_tree_ld = yes ; then
24816 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 \
24817 && test $in_tree_ld_is_elf = yes; then
24818 gcc_cv_ld_eh_gc_sections=yes
24820 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24821 cat > conftest.s <<EOF
24822 .section .text
24823 .globl _start
24824 .type _start, @function
24825 _start:
24826 .long foo
24827 .size _start, .-_start
24828 .section .text.foo,"ax",@progbits
24829 .type foo, @function
24830 foo:
24831 .long 0
24832 .size foo, .-foo
24833 .section .gcc_except_table.foo,"a",@progbits
24834 .L0:
24835 .long 0
24836 .section .eh_frame,"a",@progbits
24837 .long .L0
24839 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24840 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24841 | grep "gc-sections option ignored" > /dev/null; then
24842 gcc_cv_ld_eh_gc_sections=no
24843 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24844 | grep gcc_except_table > /dev/null; then
24845 gcc_cv_ld_eh_gc_sections=yes
24846 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24847 if test x$gcc_cv_as_comdat_group != xyes; then
24848 gcc_cv_ld_eh_gc_sections=no
24849 cat > conftest.s <<EOF
24850 .section .text
24851 .globl _start
24852 .type _start, @function
24853 _start:
24854 .long foo
24855 .size _start, .-_start
24856 .section .gnu.linkonce.t.foo,"ax",@progbits
24857 .type foo, @function
24858 foo:
24859 .long 0
24860 .size foo, .-foo
24861 .section .gcc_except_table.foo,"a",@progbits
24862 .L0:
24863 .long 0
24864 .section .eh_frame,"a",@progbits
24865 .long .L0
24867 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24868 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24869 | grep "gc-sections option ignored" > /dev/null; then
24870 gcc_cv_ld_eh_gc_sections=no
24871 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24872 | grep gcc_except_table > /dev/null; then
24873 gcc_cv_ld_eh_gc_sections=yes
24879 rm -f conftest.s conftest.o conftest
24881 case "$target" in
24882 hppa*-*-linux*)
24883 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24884 gcc_cv_ld_eh_gc_sections=no
24886 esac
24887 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24889 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24893 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24895 # --------
24896 # UNSORTED
24897 # --------
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24900 $as_echo_n "checking linker --as-needed support... " >&6; }
24901 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24902 $as_echo_n "(cached) " >&6
24903 else
24904 gcc_cv_ld_as_needed=no
24905 if test $in_tree_ld = yes ; then
24906 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 \
24907 && test $in_tree_ld_is_elf = yes; then
24908 gcc_cv_ld_as_needed=yes
24910 elif test x$gcc_cv_ld != x; then
24911 # Check if linker supports --as-needed and --no-as-needed options
24912 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24913 gcc_cv_ld_as_needed=yes
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24919 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24920 if test x"$gcc_cv_ld_as_needed" = xyes; then
24922 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24926 case "$target:$tm_file" in
24927 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24929 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24930 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24932 else
24933 gcc_cv_ld_no_dot_syms=no
24934 if test $in_tree_ld = yes ; then
24935 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
24936 gcc_cv_ld_no_dot_syms=yes
24938 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24939 cat > conftest1.s <<EOF
24940 .text
24941 bl .foo
24943 cat > conftest2.s <<EOF
24944 .section ".opd","aw"
24945 .align 3
24946 .globl foo
24947 .type foo,@function
24948 foo:
24949 .quad .LEfoo,.TOC.@tocbase,0
24950 .text
24951 .LEfoo:
24953 .size foo,.-.LEfoo
24955 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24956 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24957 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24958 gcc_cv_ld_no_dot_syms=yes
24960 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24965 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24966 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24968 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
24973 $as_echo_n "checking linker large toc support... " >&6; }
24974 if test "${gcc_cv_ld_large_toc+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24976 else
24977 gcc_cv_ld_large_toc=no
24978 if test $in_tree_ld = yes ; then
24979 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
24980 gcc_cv_ld_large_toc=yes
24982 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24983 cat > conftest.s <<EOF
24984 .section ".tbss","awT",@nobits
24985 .align 3
24986 ie0: .space 8
24987 .global _start
24988 .text
24989 _start:
24990 addis 9,13,ie0@got@tprel@ha
24991 ld 9,ie0@got@tprel@l(9)
24993 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
24994 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
24995 gcc_cv_ld_large_toc=yes
24997 rm -f conftest conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25002 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25003 if test x"$gcc_cv_ld_large_toc" = xyes; then
25005 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25009 esac
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25012 $as_echo_n "checking linker --build-id support... " >&6; }
25013 if test "${gcc_cv_ld_buildid+set}" = set; then :
25014 $as_echo_n "(cached) " >&6
25015 else
25016 gcc_cv_ld_buildid=no
25017 if test $in_tree_ld = yes ; then
25018 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25019 "$gcc_cv_gld_minor_version" -ge 18 -o \
25020 "$gcc_cv_gld_major_version" -gt 2 \
25021 && test $in_tree_ld_is_elf = yes; then
25022 gcc_cv_ld_buildid=yes
25024 elif test x$gcc_cv_ld != x; then
25025 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25026 gcc_cv_ld_buildid=yes
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25031 $as_echo "$gcc_cv_ld_buildid" >&6; }
25032 if test x"$gcc_cv_ld_buildid" = xyes; then
25034 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25038 # Check whether --enable-linker-build-id was given.
25039 if test "${enable_linker_build_id+set}" = set; then :
25040 enableval=$enable_linker_build_id;
25041 else
25042 enable_linker_build_id=no
25046 if test x"$enable_linker_build_id" = xyes; then
25047 if test x"$gcc_cv_ld_buildid" = xyes; then
25049 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25051 else
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25053 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25057 # In binutils 2.21, GNU ld gained support for new emulations fully
25058 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25060 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25061 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25062 $as_echo_n "(cached) " >&6
25063 else
25064 gcc_cv_ld_sol2_emulation=no
25065 if test $in_tree_ld = yes ; then
25066 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25067 "$gcc_cv_gld_minor_version" -ge 21 -o \
25068 "$gcc_cv_gld_major_version" -gt 2 \
25069 && test $in_tree_ld_is_elf = yes; then
25070 gcc_cv_ld_sol2_emulation=yes
25072 elif test x$gcc_cv_ld != x; then
25073 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25074 grep _sol2 > /dev/null; then
25075 gcc_cv_ld_sol2_emulation=yes
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25080 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25081 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25083 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25088 $as_echo_n "checking linker --sysroot support... " >&6; }
25089 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25091 else
25092 gcc_cv_ld_sysroot=no
25093 if test $in_tree_ld = yes ; then
25094 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
25095 gcc_cv_ld_sysroot=yes
25097 elif test x$gcc_cv_ld != x; then
25098 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25099 gcc_cv_ld_sysroot=yes
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25104 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25105 if test x"$gcc_cv_ld_sysroot" = xyes; then
25107 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25111 if test x$with_sysroot = x && test x$host = x$target \
25112 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25113 && test "$prefix" != "NONE"; then
25115 cat >>confdefs.h <<_ACEOF
25116 #define PREFIX_INCLUDE_DIR "$prefix/include"
25117 _ACEOF
25121 # Test for stack protector support in target C library.
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25123 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25124 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25125 $as_echo_n "(cached) " >&6
25126 else
25127 gcc_cv_libc_provides_ssp=no
25128 case "$target" in
25129 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25130 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25131 if test "x$with_headers" != x; then
25132 glibc_header_dir=$with_headers
25133 elif test "x$with_sysroot" = x; then
25134 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25135 elif test "x$with_build_sysroot" != "x"; then
25136 glibc_header_dir="${with_build_sysroot}/usr/include"
25137 elif test "x$with_sysroot" = xyes; then
25138 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25139 else
25140 glibc_header_dir="${with_sysroot}/usr/include"
25142 else
25143 glibc_header_dir=/usr/include
25145 # glibc 2.4 and later provides __stack_chk_fail and
25146 # either __stack_chk_guard, or TLS access to stack guard canary.
25147 if test -f $glibc_header_dir/features.h \
25148 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25149 $glibc_header_dir/features.h > /dev/null; then
25150 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25151 $glibc_header_dir/features.h > /dev/null; then
25152 gcc_cv_libc_provides_ssp=yes
25153 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25154 $glibc_header_dir/features.h > /dev/null \
25155 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25156 $glibc_header_dir/features.h > /dev/null; then
25157 gcc_cv_libc_provides_ssp=yes
25158 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25159 $glibc_header_dir/features.h > /dev/null && \
25160 test -f $glibc_header_dir/bits/uClibc_config.h && \
25161 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25162 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25163 gcc_cv_libc_provides_ssp=yes
25167 *-*-gnu*)
25168 # Avoid complicated tests (see
25169 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25170 # simply assert that glibc does provide this, which is true for all
25171 # realistically usable GNU/Hurd configurations.
25172 gcc_cv_libc_provides_ssp=yes;;
25173 *-*-darwin* | *-*-freebsd*)
25174 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25175 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25176 gcc_cv_libc_provides_ssp=yes
25177 else
25178 echo "no __stack_chk_fail on this target"
25182 *) gcc_cv_libc_provides_ssp=no ;;
25183 esac
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25186 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25188 if test x$gcc_cv_libc_provides_ssp = xyes; then
25190 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25194 # Check if TFmode long double should be used by default or not.
25195 # Some glibc targets used DFmode long double, but with glibc 2.4
25196 # and later they can use TFmode.
25197 case "$target" in
25198 powerpc*-*-linux* | \
25199 powerpc*-*-gnu* | \
25200 sparc*-*-linux* | \
25201 s390*-*-linux* | \
25202 alpha*-*-linux*)
25204 # Check whether --with-long-double-128 was given.
25205 if test "${with_long_double_128+set}" = set; then :
25206 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25207 else
25208 gcc_cv_target_ldbl128=no
25209 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25210 if test "x$with_sysroot" = x; then
25211 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25212 elif test "x$with_build_sysroot" != "x"; then
25213 glibc_header_dir="${with_build_sysroot}/usr/include"
25214 elif test "x$with_sysroot" = xyes; then
25215 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25216 else
25217 glibc_header_dir="${with_sysroot}/usr/include"
25219 else
25220 glibc_header_dir=/usr/include
25222 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25223 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25224 && gcc_cv_target_ldbl128=yes
25229 esac
25230 if test x$gcc_cv_target_ldbl128 = xyes; then
25232 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25236 # Find out what GC implementation we want, or may, use.
25238 # Check whether --with-gc was given.
25239 if test "${with_gc+set}" = set; then :
25240 withval=$with_gc; case "$withval" in
25241 page)
25242 GGC=ggc-$withval
25244 zone)
25245 GGC=ggc-$withval
25247 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25251 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25253 esac
25254 else
25255 GGC=ggc-page
25259 echo "Using $GGC for garbage collection."
25261 # Libraries to use on the host. This will normally be set by the top
25262 # level Makefile. Here we simply capture the value for our Makefile.
25263 if test -z "${HOST_LIBS+set}"; then
25264 HOST_LIBS=
25268 # Use the system's zlib library.
25269 zlibdir=-L../zlib
25270 zlibinc="-I\$(srcdir)/../zlib"
25272 # Check whether --with-system-zlib was given.
25273 if test "${with_system_zlib+set}" = set; then :
25274 withval=$with_system_zlib; zlibdir=
25275 zlibinc=
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25284 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25285 # Check whether --enable-maintainer-mode was given.
25286 if test "${enable_maintainer_mode+set}" = set; then :
25287 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25288 else
25289 maintainer_mode=no
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25294 $as_echo "$maintainer_mode" >&6; }
25296 if test "$maintainer_mode" = "yes"; then
25297 MAINT=''
25298 else
25299 MAINT='#'
25302 # --------------
25303 # Language hooks
25304 # --------------
25306 # Make empty files to contain the specs and options for each language.
25307 # Then add #include lines to for a compiler that has specs and/or options.
25309 subdirs=
25310 lang_opt_files=
25311 lang_specs_files=
25312 lang_tree_files=
25313 # These (without "all_") are set in each config-lang.in.
25314 # `language' must be a single word so is spelled singularly.
25315 all_languages=
25316 all_compilers=
25317 all_outputs='Makefile gccbug'
25318 # List of language makefile fragments.
25319 all_lang_makefrags=
25320 # Additional files for gengtype
25321 all_gtfiles="$target_gtfiles"
25323 # These are the languages that are set in --enable-languages,
25324 # and are available in the GCC tree.
25325 all_selected_languages=
25327 # Add the language fragments.
25328 # Languages are added via two mechanisms. Some information must be
25329 # recorded in makefile variables, these are defined in config-lang.in.
25330 # We accumulate them and plug them into the main Makefile.
25331 # The other mechanism is a set of hooks for each of the main targets
25332 # like `clean', `install', etc.
25334 language_hooks="Make-hooks"
25336 for lang in ${srcdir}/*/config-lang.in
25338 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25340 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25341 if test "x$lang_alias" = x
25342 then
25343 echo "$lang doesn't set \$language." 1>&2
25344 exit 1
25346 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25347 subdirs="$subdirs $subdir"
25349 # $gcc_subdir is where the gcc integration files are to be found
25350 # for a language, both for internal compiler purposes (compiler
25351 # sources implementing front-end to GCC tree converters), and for
25352 # build infrastructure purposes (Make-lang.in, etc.)
25354 # This will be <subdir> (relative to $srcdir) if a line like
25355 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25356 # is found in <langdir>/config-lang.in, and will remain <langdir>
25357 # otherwise.
25359 # Except for the language alias (fetched above), the regular
25360 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25361 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25362 # only this and the language alias.
25364 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25365 if [ "$gcc_subdir" = "" ]; then
25366 gcc_subdir="$subdir"
25369 case ",$enable_languages," in
25370 *,$lang_alias,*)
25371 all_selected_languages="$all_selected_languages $lang_alias"
25372 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25373 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25376 esac
25378 language=
25379 boot_language=
25380 compilers=
25381 outputs=
25382 gtfiles=
25383 subdir_requires=
25384 . ${srcdir}/$gcc_subdir/config-lang.in
25385 if test "x$language" = x
25386 then
25387 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25388 exit 1
25391 ok=:
25392 case ",$enable_languages," in
25393 *,$lang_alias,*) ;;
25395 for i in $subdir_requires; do
25396 test -f "${srcdir}/$i/config-lang.in" && continue
25397 ok=false
25398 break
25399 done
25401 esac
25402 $ok || continue
25404 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25405 if test -f $srcdir/$gcc_subdir/lang.opt; then
25406 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25408 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25409 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25411 all_languages="$all_languages $language"
25412 all_compilers="$all_compilers $compilers"
25413 all_outputs="$all_outputs $outputs"
25414 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25415 case ",$enable_languages," in
25416 *,lto,*)
25418 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25420 enable_lto=yes
25422 # LTO needs to speak the platform's object file format, and has a
25423 # number of implementations of the required binary file access APIs.
25424 # ELF is the most common, and default. We only link libelf if ELF
25425 # is indeed the selected format.
25426 LTO_BINARY_READER=${lto_binary_reader}
25427 LTO_USE_LIBELF=-lelf
25428 if test "x$lto_binary_reader" != "xlto-elf" ; then
25429 LTO_USE_LIBELF=
25434 *) ;;
25435 esac
25436 done
25438 # Pick up gtfiles for c
25439 gtfiles=
25440 . ${srcdir}/c-config-lang.in
25441 all_gtfiles="$all_gtfiles [c] $gtfiles"
25443 check_languages=
25444 for language in $all_selected_languages
25446 check_languages="$check_languages check-$language"
25447 done
25449 # We link each language in with a set of hooks, reached indirectly via
25450 # lang.${target}. Only do so for selected languages.
25452 rm -f Make-hooks
25453 touch Make-hooks
25454 target_list="all.cross start.encap rest.encap tags \
25455 install-common install-man install-info install-pdf install-html dvi \
25456 pdf html uninstall info man srcextra srcman srcinfo \
25457 mostlyclean clean distclean maintainer-clean install-plugin"
25459 for t in $target_list
25462 for lang in $all_selected_languages
25464 x="$x $lang.$t"
25465 done
25466 echo "lang.$t: $x" >> Make-hooks
25467 done
25469 # --------
25470 # UNSORTED
25471 # --------
25473 # Create .gdbinit.
25475 echo "dir ." > .gdbinit
25476 echo "dir ${srcdir}" >> .gdbinit
25477 if test x$gdb_needs_out_file_path = xyes
25478 then
25479 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25481 if test "x$subdirs" != x; then
25482 for s in $subdirs
25484 echo "dir ${srcdir}/$s" >> .gdbinit
25485 done
25487 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25489 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25493 # Find a directory in which to install a shared libgcc.
25495 # Check whether --enable-version-specific-runtime-libs was given.
25496 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25497 enableval=$enable_version_specific_runtime_libs;
25502 # Check whether --with-slibdir was given.
25503 if test "${with_slibdir+set}" = set; then :
25504 withval=$with_slibdir; slibdir="$with_slibdir"
25505 else
25506 if test "${enable_version_specific_runtime_libs+set}" = set; then
25507 slibdir='$(libsubdir)'
25508 elif test "$host" != "$target"; then
25509 slibdir='$(build_tooldir)/lib'
25510 else
25511 slibdir='$(libdir)'
25517 # Substitute configuration variables
25580 # Echo link setup.
25581 if test x${build} = x${host} ; then
25582 if test x${host} = x${target} ; then
25583 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25584 else
25585 echo "Links are now set up to build a cross-compiler" 1>&2
25586 echo " from ${host} to ${target}." 1>&2
25588 else
25589 if test x${host} = x${target} ; then
25590 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25591 echo " for ${target}." 1>&2
25592 else
25593 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25594 echo " from ${host} to ${target}." 1>&2
25606 if test "x${CLOOGLIBS}" != "x" ; then
25608 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25614 if test "x${LIBELFLIBS}" != "x" ; then
25616 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25620 # Check for plugin support
25621 # Check whether --enable-plugin was given.
25622 if test "${enable_plugin+set}" = set; then :
25623 enableval=$enable_plugin; enable_plugin=$enableval
25624 else
25625 enable_plugin=yes; default_plugin=yes
25629 pluginlibs=
25630 if test x"$enable_plugin" = x"yes"; then
25632 case "${host}" in
25633 *-*-darwin*)
25634 export_sym_check="$gcc_cv_nm -g"
25637 export_sym_check="$gcc_cv_objdump -T"
25639 esac
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25641 $as_echo_n "checking for exported symbols... " >&6; }
25642 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25643 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25644 if $export_sym_check conftest | grep foobar > /dev/null; then
25645 : # No need to use a flag
25646 else
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25648 $as_echo_n "checking for -rdynamic... " >&6; }
25649 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25650 if $export_sym_check conftest | grep foobar > /dev/null; then
25651 plugin_rdynamic=yes
25652 pluginlibs="-rdynamic"
25653 else
25654 plugin_rdynamic=no
25655 enable_plugin=no
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25658 $as_echo "$plugin_rdynamic" >&6; }
25661 # Check -ldl
25662 saved_LIBS="$LIBS"
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25664 $as_echo_n "checking for library containing dlopen... " >&6; }
25665 if test "${ac_cv_search_dlopen+set}" = set; then :
25666 $as_echo_n "(cached) " >&6
25667 else
25668 ac_func_search_save_LIBS=$LIBS
25669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h. */
25672 /* Override any GCC internal prototype to avoid an error.
25673 Use char because int might match the return type of a GCC
25674 builtin and then its argument prototype would still apply. */
25675 #ifdef __cplusplus
25676 extern "C"
25677 #endif
25678 char dlopen ();
25680 main ()
25682 return dlopen ();
25684 return 0;
25686 _ACEOF
25687 for ac_lib in '' dl; do
25688 if test -z "$ac_lib"; then
25689 ac_res="none required"
25690 else
25691 ac_res=-l$ac_lib
25692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25694 if ac_fn_c_try_link "$LINENO"; then :
25695 ac_cv_search_dlopen=$ac_res
25697 rm -f core conftest.err conftest.$ac_objext \
25698 conftest$ac_exeext
25699 if test "${ac_cv_search_dlopen+set}" = set; then :
25700 break
25702 done
25703 if test "${ac_cv_search_dlopen+set}" = set; then :
25705 else
25706 ac_cv_search_dlopen=no
25708 rm conftest.$ac_ext
25709 LIBS=$ac_func_search_save_LIBS
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25712 $as_echo "$ac_cv_search_dlopen" >&6; }
25713 ac_res=$ac_cv_search_dlopen
25714 if test "$ac_res" != no; then :
25715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25719 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25720 pluginlibs="$pluginlibs -ldl"
25722 LIBS="$saved_LIBS"
25724 # Check that we can build shared objects with -fPIC -shared
25725 saved_LDFLAGS="$LDFLAGS"
25726 case "${host}" in
25727 *-*-darwin*)
25728 LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25731 LDFLAGS="$LDFLAGS -fPIC -shared"
25733 esac
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25735 $as_echo_n "checking for -fPIC -shared... " >&6; }
25736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25737 /* end confdefs.h. */
25738 extern int X;
25740 main ()
25742 return X == 0;
25744 return 0;
25746 _ACEOF
25747 if ac_fn_c_try_link "$LINENO"; then :
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25749 $as_echo "yes" >&6; }; have_pic_shared=yes
25750 else
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25752 $as_echo "no" >&6; }; have_pic_shared=no
25754 rm -f core conftest.err conftest.$ac_objext \
25755 conftest$ac_exeext conftest.$ac_ext
25756 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25757 pluginlibs=
25758 enable_plugin=no
25760 LDFLAGS="$saved_LDFLAGS"
25762 # If plugin support had been requested but not available, fail.
25763 if test x"$enable_plugin" = x"no" ; then
25764 if test x"$default_plugin" != x"yes"; then
25765 as_fn_error "
25766 Building GCC with plugin support requires a host that supports
25767 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25774 if test x"$enable_plugin" = x"yes"; then
25776 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25780 # Configure the subdirectories
25781 # AC_CONFIG_SUBDIRS($subdirs)
25783 # Create the Makefile
25784 # and configure language subdirectories
25785 ac_config_files="$ac_config_files $all_outputs"
25788 ac_config_commands="$ac_config_commands default"
25790 cat >confcache <<\_ACEOF
25791 # This file is a shell script that caches the results of configure
25792 # tests run on this system so they can be shared between configure
25793 # scripts and configure runs, see configure's option --config-cache.
25794 # It is not useful on other systems. If it contains results you don't
25795 # want to keep, you may remove or edit it.
25797 # config.status only pays attention to the cache file if you give it
25798 # the --recheck option to rerun configure.
25800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25802 # following values.
25804 _ACEOF
25806 # The following way of writing the cache mishandles newlines in values,
25807 # but we know of no workaround that is simple, portable, and efficient.
25808 # So, we kill variables containing newlines.
25809 # Ultrix sh set writes to stderr and can't be redirected directly,
25810 # and sets the high bit in the cache file unless we assign to the vars.
25812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25813 eval ac_val=\$$ac_var
25814 case $ac_val in #(
25815 *${as_nl}*)
25816 case $ac_var in #(
25817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25819 esac
25820 case $ac_var in #(
25821 _ | IFS | as_nl) ;; #(
25822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25823 *) { eval $ac_var=; unset $ac_var;} ;;
25824 esac ;;
25825 esac
25826 done
25828 (set) 2>&1 |
25829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25830 *${as_nl}ac_space=\ *)
25831 # `set' does not quote correctly, so add quotes: double-quote
25832 # substitution turns \\\\ into \\, and sed turns \\ into \.
25833 sed -n \
25834 "s/'/'\\\\''/g;
25835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25836 ;; #(
25838 # `set' quotes correctly as required by POSIX, so do not add quotes.
25839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25841 esac |
25842 sort
25844 sed '
25845 /^ac_cv_env_/b end
25846 t clear
25847 :clear
25848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25849 t end
25850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25851 :end' >>confcache
25852 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25853 if test -w "$cache_file"; then
25854 test "x$cache_file" != "x/dev/null" &&
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25856 $as_echo "$as_me: updating cache $cache_file" >&6;}
25857 cat confcache >$cache_file
25858 else
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25860 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25863 rm -f confcache
25865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25866 # Let make expand exec_prefix.
25867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25869 DEFS=-DHAVE_CONFIG_H
25871 ac_libobjs=
25872 ac_ltlibobjs=
25873 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25874 # 1. Remove the extension, and $U if already installed.
25875 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25876 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25878 # will be set to the directory where LIBOBJS objects are built.
25879 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25880 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25881 done
25882 LIBOBJS=$ac_libobjs
25884 LTLIBOBJS=$ac_ltlibobjs
25889 : ${CONFIG_STATUS=./config.status}
25890 ac_write_fail=0
25891 ac_clean_files_save=$ac_clean_files
25892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25895 as_write_fail=0
25896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25897 #! $SHELL
25898 # Generated by $as_me.
25899 # Run this file to recreate the current configuration.
25900 # Compiler output produced by configure, useful for debugging
25901 # configure, is in config.log if it exists.
25903 debug=false
25904 ac_cs_recheck=false
25905 ac_cs_silent=false
25907 SHELL=\${CONFIG_SHELL-$SHELL}
25908 export SHELL
25909 _ASEOF
25910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25911 ## -------------------- ##
25912 ## M4sh Initialization. ##
25913 ## -------------------- ##
25915 # Be more Bourne compatible
25916 DUALCASE=1; export DUALCASE # for MKS sh
25917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25918 emulate sh
25919 NULLCMD=:
25920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25921 # is contrary to our usage. Disable this feature.
25922 alias -g '${1+"$@"}'='"$@"'
25923 setopt NO_GLOB_SUBST
25924 else
25925 case `(set -o) 2>/dev/null` in #(
25926 *posix*) :
25927 set -o posix ;; #(
25928 *) :
25930 esac
25934 as_nl='
25936 export as_nl
25937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25938 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25941 # Prefer a ksh shell builtin over an external printf program on Solaris,
25942 # but without wasting forks for bash or zsh.
25943 if test -z "$BASH_VERSION$ZSH_VERSION" \
25944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25945 as_echo='print -r --'
25946 as_echo_n='print -rn --'
25947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25948 as_echo='printf %s\n'
25949 as_echo_n='printf %s'
25950 else
25951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25953 as_echo_n='/usr/ucb/echo -n'
25954 else
25955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25956 as_echo_n_body='eval
25957 arg=$1;
25958 case $arg in #(
25959 *"$as_nl"*)
25960 expr "X$arg" : "X\\(.*\\)$as_nl";
25961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25962 esac;
25963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25965 export as_echo_n_body
25966 as_echo_n='sh -c $as_echo_n_body as_echo'
25968 export as_echo_body
25969 as_echo='sh -c $as_echo_body as_echo'
25972 # The user is always right.
25973 if test "${PATH_SEPARATOR+set}" != set; then
25974 PATH_SEPARATOR=:
25975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25977 PATH_SEPARATOR=';'
25982 # IFS
25983 # We need space, tab and new line, in precisely that order. Quoting is
25984 # there to prevent editors from complaining about space-tab.
25985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25986 # splitting by setting IFS to empty value.)
25987 IFS=" "" $as_nl"
25989 # Find who we are. Look in the path if we contain no directory separator.
25990 case $0 in #((
25991 *[\\/]* ) as_myself=$0 ;;
25992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25993 for as_dir in $PATH
25995 IFS=$as_save_IFS
25996 test -z "$as_dir" && as_dir=.
25997 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25998 done
25999 IFS=$as_save_IFS
26002 esac
26003 # We did not find ourselves, most probably we were run as `sh COMMAND'
26004 # in which case we are not to be found in the path.
26005 if test "x$as_myself" = x; then
26006 as_myself=$0
26008 if test ! -f "$as_myself"; then
26009 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26010 exit 1
26013 # Unset variables that we do not need and which cause bugs (e.g. in
26014 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26015 # suppresses any "Segmentation fault" message there. '((' could
26016 # trigger a bug in pdksh 5.2.14.
26017 for as_var in BASH_ENV ENV MAIL MAILPATH
26018 do eval test x\${$as_var+set} = xset \
26019 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26020 done
26021 PS1='$ '
26022 PS2='> '
26023 PS4='+ '
26025 # NLS nuisances.
26026 LC_ALL=C
26027 export LC_ALL
26028 LANGUAGE=C
26029 export LANGUAGE
26031 # CDPATH.
26032 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26035 # as_fn_error ERROR [LINENO LOG_FD]
26036 # ---------------------------------
26037 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26038 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26039 # script with status $?, using 1 if that was 0.
26040 as_fn_error ()
26042 as_status=$?; test $as_status -eq 0 && as_status=1
26043 if test "$3"; then
26044 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26045 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26047 $as_echo "$as_me: error: $1" >&2
26048 as_fn_exit $as_status
26049 } # as_fn_error
26052 # as_fn_set_status STATUS
26053 # -----------------------
26054 # Set $? to STATUS, without forking.
26055 as_fn_set_status ()
26057 return $1
26058 } # as_fn_set_status
26060 # as_fn_exit STATUS
26061 # -----------------
26062 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26063 as_fn_exit ()
26065 set +e
26066 as_fn_set_status $1
26067 exit $1
26068 } # as_fn_exit
26070 # as_fn_unset VAR
26071 # ---------------
26072 # Portably unset VAR.
26073 as_fn_unset ()
26075 { eval $1=; unset $1;}
26077 as_unset=as_fn_unset
26078 # as_fn_append VAR VALUE
26079 # ----------------------
26080 # Append the text in VALUE to the end of the definition contained in VAR. Take
26081 # advantage of any shell optimizations that allow amortized linear growth over
26082 # repeated appends, instead of the typical quadratic growth present in naive
26083 # implementations.
26084 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26085 eval 'as_fn_append ()
26087 eval $1+=\$2
26089 else
26090 as_fn_append ()
26092 eval $1=\$$1\$2
26094 fi # as_fn_append
26096 # as_fn_arith ARG...
26097 # ------------------
26098 # Perform arithmetic evaluation on the ARGs, and store the result in the
26099 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26100 # must be portable across $(()) and expr.
26101 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26102 eval 'as_fn_arith ()
26104 as_val=$(( $* ))
26106 else
26107 as_fn_arith ()
26109 as_val=`expr "$@" || test $? -eq 1`
26111 fi # as_fn_arith
26114 if expr a : '\(a\)' >/dev/null 2>&1 &&
26115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26116 as_expr=expr
26117 else
26118 as_expr=false
26121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26122 as_basename=basename
26123 else
26124 as_basename=false
26127 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26128 as_dirname=dirname
26129 else
26130 as_dirname=false
26133 as_me=`$as_basename -- "$0" ||
26134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26135 X"$0" : 'X\(//\)$' \| \
26136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26137 $as_echo X/"$0" |
26138 sed '/^.*\/\([^/][^/]*\)\/*$/{
26139 s//\1/
26142 /^X\/\(\/\/\)$/{
26143 s//\1/
26146 /^X\/\(\/\).*/{
26147 s//\1/
26150 s/.*/./; q'`
26152 # Avoid depending upon Character Ranges.
26153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26156 as_cr_digits='0123456789'
26157 as_cr_alnum=$as_cr_Letters$as_cr_digits
26159 ECHO_C= ECHO_N= ECHO_T=
26160 case `echo -n x` in #(((((
26161 -n*)
26162 case `echo 'xy\c'` in
26163 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26164 xy) ECHO_C='\c';;
26165 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26166 ECHO_T=' ';;
26167 esac;;
26169 ECHO_N='-n';;
26170 esac
26172 rm -f conf$$ conf$$.exe conf$$.file
26173 if test -d conf$$.dir; then
26174 rm -f conf$$.dir/conf$$.file
26175 else
26176 rm -f conf$$.dir
26177 mkdir conf$$.dir 2>/dev/null
26179 if (echo >conf$$.file) 2>/dev/null; then
26180 if ln -s conf$$.file conf$$ 2>/dev/null; then
26181 as_ln_s='ln -s'
26182 # ... but there are two gotchas:
26183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26185 # In both cases, we have to default to `cp -p'.
26186 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26187 as_ln_s='cp -p'
26188 elif ln conf$$.file conf$$ 2>/dev/null; then
26189 as_ln_s=ln
26190 else
26191 as_ln_s='cp -p'
26193 else
26194 as_ln_s='cp -p'
26196 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26197 rmdir conf$$.dir 2>/dev/null
26200 # as_fn_mkdir_p
26201 # -------------
26202 # Create "$as_dir" as a directory, including parents if necessary.
26203 as_fn_mkdir_p ()
26206 case $as_dir in #(
26207 -*) as_dir=./$as_dir;;
26208 esac
26209 test -d "$as_dir" || eval $as_mkdir_p || {
26210 as_dirs=
26211 while :; do
26212 case $as_dir in #(
26213 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26214 *) as_qdir=$as_dir;;
26215 esac
26216 as_dirs="'$as_qdir' $as_dirs"
26217 as_dir=`$as_dirname -- "$as_dir" ||
26218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26219 X"$as_dir" : 'X\(//\)[^/]' \| \
26220 X"$as_dir" : 'X\(//\)$' \| \
26221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26222 $as_echo X"$as_dir" |
26223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26224 s//\1/
26227 /^X\(\/\/\)[^/].*/{
26228 s//\1/
26231 /^X\(\/\/\)$/{
26232 s//\1/
26235 /^X\(\/\).*/{
26236 s//\1/
26239 s/.*/./; q'`
26240 test -d "$as_dir" && break
26241 done
26242 test -z "$as_dirs" || eval "mkdir $as_dirs"
26243 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26246 } # as_fn_mkdir_p
26247 if mkdir -p . 2>/dev/null; then
26248 as_mkdir_p='mkdir -p "$as_dir"'
26249 else
26250 test -d ./-p && rmdir ./-p
26251 as_mkdir_p=false
26254 if test -x / >/dev/null 2>&1; then
26255 as_test_x='test -x'
26256 else
26257 if ls -dL / >/dev/null 2>&1; then
26258 as_ls_L_option=L
26259 else
26260 as_ls_L_option=
26262 as_test_x='
26263 eval sh -c '\''
26264 if test -d "$1"; then
26265 test -d "$1/.";
26266 else
26267 case $1 in #(
26268 -*)set "./$1";;
26269 esac;
26270 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26271 ???[sx]*):;;*)false;;esac;fi
26272 '\'' sh
26275 as_executable_p=$as_test_x
26277 # Sed expression to map a string onto a valid CPP name.
26278 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26280 # Sed expression to map a string onto a valid variable name.
26281 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26284 exec 6>&1
26285 ## ----------------------------------- ##
26286 ## Main body of $CONFIG_STATUS script. ##
26287 ## ----------------------------------- ##
26288 _ASEOF
26289 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26292 # Save the log message, to keep $0 and so on meaningful, and to
26293 # report actual input values of CONFIG_FILES etc. instead of their
26294 # values after options handling.
26295 ac_log="
26296 This file was extended by $as_me, which was
26297 generated by GNU Autoconf 2.64. Invocation command line was
26299 CONFIG_FILES = $CONFIG_FILES
26300 CONFIG_HEADERS = $CONFIG_HEADERS
26301 CONFIG_LINKS = $CONFIG_LINKS
26302 CONFIG_COMMANDS = $CONFIG_COMMANDS
26303 $ $0 $@
26305 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26308 _ACEOF
26310 case $ac_config_files in *"
26311 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26312 esac
26314 case $ac_config_headers in *"
26315 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26316 esac
26319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26320 # Files that config.status was made for.
26321 config_files="$ac_config_files"
26322 config_headers="$ac_config_headers"
26323 config_commands="$ac_config_commands"
26325 _ACEOF
26327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26328 ac_cs_usage="\
26329 \`$as_me' instantiates files and other configuration actions
26330 from templates according to the current configuration. Unless the files
26331 and actions are specified as TAGs, all are instantiated by default.
26333 Usage: $0 [OPTION]... [TAG]...
26335 -h, --help print this help, then exit
26336 -V, --version print version number and configuration settings, then exit
26337 -q, --quiet, --silent
26338 do not print progress messages
26339 -d, --debug don't remove temporary files
26340 --recheck update $as_me by reconfiguring in the same conditions
26341 --file=FILE[:TEMPLATE]
26342 instantiate the configuration file FILE
26343 --header=FILE[:TEMPLATE]
26344 instantiate the configuration header FILE
26346 Configuration files:
26347 $config_files
26349 Configuration headers:
26350 $config_headers
26352 Configuration commands:
26353 $config_commands
26355 Report bugs to the package provider."
26357 _ACEOF
26358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26359 ac_cs_version="\\
26360 config.status
26361 configured by $0, generated by GNU Autoconf 2.64,
26362 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26364 Copyright (C) 2009 Free Software Foundation, Inc.
26365 This config.status script is free software; the Free Software Foundation
26366 gives unlimited permission to copy, distribute and modify it."
26368 ac_pwd='$ac_pwd'
26369 srcdir='$srcdir'
26370 AWK='$AWK'
26371 test -n "\$AWK" || AWK=awk
26372 _ACEOF
26374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26375 # The default lists apply if the user does not specify any file.
26376 ac_need_defaults=:
26377 while test $# != 0
26379 case $1 in
26380 --*=*)
26381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26382 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26383 ac_shift=:
26386 ac_option=$1
26387 ac_optarg=$2
26388 ac_shift=shift
26390 esac
26392 case $ac_option in
26393 # Handling of the options.
26394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26395 ac_cs_recheck=: ;;
26396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26397 $as_echo "$ac_cs_version"; exit ;;
26398 --debug | --debu | --deb | --de | --d | -d )
26399 debug=: ;;
26400 --file | --fil | --fi | --f )
26401 $ac_shift
26402 case $ac_optarg in
26403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26404 esac
26405 as_fn_append CONFIG_FILES " '$ac_optarg'"
26406 ac_need_defaults=false;;
26407 --header | --heade | --head | --hea )
26408 $ac_shift
26409 case $ac_optarg in
26410 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26411 esac
26412 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26413 ac_need_defaults=false;;
26414 --he | --h)
26415 # Conflict between --help and --header
26416 as_fn_error "ambiguous option: \`$1'
26417 Try \`$0 --help' for more information.";;
26418 --help | --hel | -h )
26419 $as_echo "$ac_cs_usage"; exit ;;
26420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26421 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26422 ac_cs_silent=: ;;
26424 # This is an error.
26425 -*) as_fn_error "unrecognized option: \`$1'
26426 Try \`$0 --help' for more information." ;;
26428 *) as_fn_append ac_config_targets " $1"
26429 ac_need_defaults=false ;;
26431 esac
26432 shift
26433 done
26435 ac_configure_extra_args=
26437 if $ac_cs_silent; then
26438 exec 6>/dev/null
26439 ac_configure_extra_args="$ac_configure_extra_args --silent"
26442 _ACEOF
26443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26444 if \$ac_cs_recheck; then
26445 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26446 shift
26447 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26448 CONFIG_SHELL='$SHELL'
26449 export CONFIG_SHELL
26450 exec "\$@"
26453 _ACEOF
26454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26455 exec 5>>config.log
26457 echo
26458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26459 ## Running $as_me. ##
26460 _ASBOX
26461 $as_echo "$ac_log"
26462 } >&5
26464 _ACEOF
26465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26467 # INIT-COMMANDS
26469 subdirs='$subdirs'
26471 _ACEOF
26473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26475 # Handling of arguments.
26476 for ac_config_target in $ac_config_targets
26478 case $ac_config_target in
26479 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26480 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26481 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26482 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26483 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26484 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26486 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26487 esac
26488 done
26491 # If the user did not use the arguments to specify the items to instantiate,
26492 # then the envvar interface is used. Set only those that are not.
26493 # We use the long form for the default assignment because of an extremely
26494 # bizarre bug on SunOS 4.1.3.
26495 if $ac_need_defaults; then
26496 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26497 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26498 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26501 # Have a temporary directory for convenience. Make it in the build tree
26502 # simply because there is no reason against having it here, and in addition,
26503 # creating and moving files from /tmp can sometimes cause problems.
26504 # Hook for its removal unless debugging.
26505 # Note that there is a small window in which the directory will not be cleaned:
26506 # after its creation but before its name has been assigned to `$tmp'.
26507 $debug ||
26509 tmp=
26510 trap 'exit_status=$?
26511 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26513 trap 'as_fn_exit 1' 1 2 13 15
26515 # Create a (secure) tmp directory for tmp files.
26518 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26519 test -n "$tmp" && test -d "$tmp"
26520 } ||
26522 tmp=./conf$$-$RANDOM
26523 (umask 077 && mkdir "$tmp")
26524 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26526 # Set up the scripts for CONFIG_FILES section.
26527 # No need to generate them if there are no CONFIG_FILES.
26528 # This happens for instance with `./config.status config.h'.
26529 if test -n "$CONFIG_FILES"; then
26531 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26532 ac_cs_awk_getline=:
26533 ac_cs_awk_pipe_init=
26534 ac_cs_awk_read_file='
26535 while ((getline aline < (F[key])) > 0)
26536 print(aline)
26537 close(F[key])'
26538 ac_cs_awk_pipe_fini=
26539 else
26540 ac_cs_awk_getline=false
26541 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26542 ac_cs_awk_read_file='
26543 print "|#_!!_#|"
26544 print "cat " F[key] " &&"
26545 '$ac_cs_awk_pipe_init
26546 # The final `:' finishes the AND list.
26547 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26549 ac_cr=`echo X | tr X '\015'`
26550 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26551 # But we know of no other shell where ac_cr would be empty at this
26552 # point, so we can use a bashism as a fallback.
26553 if test "x$ac_cr" = x; then
26554 eval ac_cr=\$\'\\r\'
26556 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26557 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26558 ac_cs_awk_cr='\r'
26559 else
26560 ac_cs_awk_cr=$ac_cr
26563 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26564 _ACEOF
26566 # Create commands to substitute file output variables.
26568 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26569 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26570 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26571 echo "_ACAWK" &&
26572 echo "_ACEOF"
26573 } >conf$$files.sh &&
26574 . ./conf$$files.sh ||
26575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26576 rm -f conf$$files.sh
26579 echo "cat >conf$$subs.awk <<_ACEOF" &&
26580 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26581 echo "_ACEOF"
26582 } >conf$$subs.sh ||
26583 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26584 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26585 ac_delim='%!_!# '
26586 for ac_last_try in false false false false false :; do
26587 . ./conf$$subs.sh ||
26588 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26590 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26591 if test $ac_delim_n = $ac_delim_num; then
26592 break
26593 elif $ac_last_try; then
26594 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26595 else
26596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26598 done
26599 rm -f conf$$subs.sh
26601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26602 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26603 _ACEOF
26604 sed -n '
26606 s/^/S["/; s/!.*/"]=/
26609 s/^[^!]*!//
26610 :repl
26611 t repl
26612 s/'"$ac_delim"'$//
26613 t delim
26616 s/\(.\{148\}\).*/\1/
26617 t more1
26618 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26621 b repl
26622 :more1
26623 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26626 s/.\{148\}//
26627 t nl
26628 :delim
26630 s/\(.\{148\}\).*/\1/
26631 t more2
26632 s/["\\]/\\&/g; s/^/"/; s/$/"/
26635 :more2
26636 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26639 s/.\{148\}//
26640 t delim
26641 ' <conf$$subs.awk | sed '
26642 /^[^""]/{
26644 s/\n//
26646 ' >>$CONFIG_STATUS || ac_write_fail=1
26647 rm -f conf$$subs.awk
26648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26649 _ACAWK
26650 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26651 for (key in S) S_is_set[key] = 1
26652 FS = "\a"
26653 \$ac_cs_awk_pipe_init
26656 line = $ 0
26657 nfields = split(line, field, "@")
26658 substed = 0
26659 len = length(field[1])
26660 for (i = 2; i < nfields; i++) {
26661 key = field[i]
26662 keylen = length(key)
26663 if (S_is_set[key]) {
26664 value = S[key]
26665 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26666 len += length(value) + length(field[++i])
26667 substed = 1
26668 } else
26669 len += 1 + keylen
26671 if (nfields == 3 && !substed) {
26672 key = field[2]
26673 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26674 \$ac_cs_awk_read_file
26675 next
26678 print line
26680 \$ac_cs_awk_pipe_fini
26681 _ACAWK
26682 _ACEOF
26683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26684 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26685 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26686 else
26688 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26689 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26690 _ACEOF
26692 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26693 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26694 # trailing colons and then remove the whole line if VPATH becomes empty
26695 # (actually we leave an empty line to preserve line numbers).
26696 if test "x$srcdir" = x.; then
26697 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26698 s/:*\$(srcdir):*/:/
26699 s/:*\${srcdir}:*/:/
26700 s/:*@srcdir@:*/:/
26701 s/^\([^=]*=[ ]*\):*/\1/
26702 s/:*$//
26703 s/^[^=]*=[ ]*$//
26707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26708 fi # test -n "$CONFIG_FILES"
26710 # Set up the scripts for CONFIG_HEADERS section.
26711 # No need to generate them if there are no CONFIG_HEADERS.
26712 # This happens for instance with `./config.status Makefile'.
26713 if test -n "$CONFIG_HEADERS"; then
26714 cat >"$tmp/defines.awk" <<\_ACAWK ||
26715 BEGIN {
26716 _ACEOF
26718 # Transform confdefs.h into an awk script `defines.awk', embedded as
26719 # here-document in config.status, that substitutes the proper values into
26720 # config.h.in to produce config.h.
26722 # Create a delimiter string that does not exist in confdefs.h, to ease
26723 # handling of long lines.
26724 ac_delim='%!_!# '
26725 for ac_last_try in false false :; do
26726 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26727 if test -z "$ac_t"; then
26728 break
26729 elif $ac_last_try; then
26730 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26731 else
26732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26734 done
26736 # For the awk script, D is an array of macro values keyed by name,
26737 # likewise P contains macro parameters if any. Preserve backslash
26738 # newline sequences.
26740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26741 sed -n '
26742 s/.\{148\}/&'"$ac_delim"'/g
26743 t rset
26744 :rset
26745 s/^[ ]*#[ ]*define[ ][ ]*/ /
26746 t def
26748 :def
26749 s/\\$//
26750 t bsnl
26751 s/["\\]/\\&/g
26752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26753 D["\1"]=" \3"/p
26754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26756 :bsnl
26757 s/["\\]/\\&/g
26758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26759 D["\1"]=" \3\\\\\\n"\\/p
26760 t cont
26761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26762 t cont
26764 :cont
26766 s/.\{148\}/&'"$ac_delim"'/g
26767 t clear
26768 :clear
26769 s/\\$//
26770 t bsnlc
26771 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26773 :bsnlc
26774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26775 b cont
26776 ' <confdefs.h | sed '
26777 s/'"$ac_delim"'/"\\\
26778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26781 for (key in D) D_is_set[key] = 1
26782 FS = "\a"
26784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26785 line = \$ 0
26786 split(line, arg, " ")
26787 if (arg[1] == "#") {
26788 defundef = arg[2]
26789 mac1 = arg[3]
26790 } else {
26791 defundef = substr(arg[1], 2)
26792 mac1 = arg[2]
26794 split(mac1, mac2, "(") #)
26795 macro = mac2[1]
26796 prefix = substr(line, 1, index(line, defundef) - 1)
26797 if (D_is_set[macro]) {
26798 # Preserve the white space surrounding the "#".
26799 print prefix "define", macro P[macro] D[macro]
26800 next
26801 } else {
26802 # Replace #undef with comments. This is necessary, for example,
26803 # in the case of _POSIX_SOURCE, which is predefined and required
26804 # on some systems where configure will not decide to define it.
26805 if (defundef == "undef") {
26806 print "/*", prefix defundef, macro, "*/"
26807 next
26811 { print }
26812 _ACAWK
26813 _ACEOF
26814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26815 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26816 fi # test -n "$CONFIG_HEADERS"
26819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26820 shift
26821 for ac_tag
26823 case $ac_tag in
26824 :[FHLC]) ac_mode=$ac_tag; continue;;
26825 esac
26826 case $ac_mode$ac_tag in
26827 :[FHL]*:*);;
26828 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26829 :[FH]-) ac_tag=-:-;;
26830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26831 esac
26832 ac_save_IFS=$IFS
26833 IFS=:
26834 set x $ac_tag
26835 IFS=$ac_save_IFS
26836 shift
26837 ac_file=$1
26838 shift
26840 case $ac_mode in
26841 :L) ac_source=$1;;
26842 :[FH])
26843 ac_file_inputs=
26844 for ac_f
26846 case $ac_f in
26847 -) ac_f="$tmp/stdin";;
26848 *) # Look for the file first in the build tree, then in the source tree
26849 # (if the path is not absolute). The absolute path cannot be DOS-style,
26850 # because $ac_f cannot contain `:'.
26851 test -f "$ac_f" ||
26852 case $ac_f in
26853 [\\/$]*) false;;
26854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26855 esac ||
26856 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26857 esac
26858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26859 as_fn_append ac_file_inputs " '$ac_f'"
26860 done
26862 # Let's still pretend it is `configure' which instantiates (i.e., don't
26863 # use $as_me), people would be surprised to read:
26864 # /* config.h. Generated by config.status. */
26865 configure_input='Generated from '`
26866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26867 `' by configure.'
26868 if test x"$ac_file" != x-; then
26869 configure_input="$ac_file. $configure_input"
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26871 $as_echo "$as_me: creating $ac_file" >&6;}
26873 # Neutralize special characters interpreted by sed in replacement strings.
26874 case $configure_input in #(
26875 *\&* | *\|* | *\\* )
26876 ac_sed_conf_input=`$as_echo "$configure_input" |
26877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26878 *) ac_sed_conf_input=$configure_input;;
26879 esac
26881 case $ac_tag in
26882 *:-:* | *:-) cat >"$tmp/stdin" \
26883 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26884 esac
26886 esac
26888 ac_dir=`$as_dirname -- "$ac_file" ||
26889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26890 X"$ac_file" : 'X\(//\)[^/]' \| \
26891 X"$ac_file" : 'X\(//\)$' \| \
26892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26893 $as_echo X"$ac_file" |
26894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26895 s//\1/
26898 /^X\(\/\/\)[^/].*/{
26899 s//\1/
26902 /^X\(\/\/\)$/{
26903 s//\1/
26906 /^X\(\/\).*/{
26907 s//\1/
26910 s/.*/./; q'`
26911 as_dir="$ac_dir"; as_fn_mkdir_p
26912 ac_builddir=.
26914 case "$ac_dir" in
26915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26918 # A ".." for each directory in $ac_dir_suffix.
26919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26920 case $ac_top_builddir_sub in
26921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26923 esac ;;
26924 esac
26925 ac_abs_top_builddir=$ac_pwd
26926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26927 # for backward compatibility:
26928 ac_top_builddir=$ac_top_build_prefix
26930 case $srcdir in
26931 .) # We are building in place.
26932 ac_srcdir=.
26933 ac_top_srcdir=$ac_top_builddir_sub
26934 ac_abs_top_srcdir=$ac_pwd ;;
26935 [\\/]* | ?:[\\/]* ) # Absolute name.
26936 ac_srcdir=$srcdir$ac_dir_suffix;
26937 ac_top_srcdir=$srcdir
26938 ac_abs_top_srcdir=$srcdir ;;
26939 *) # Relative name.
26940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26941 ac_top_srcdir=$ac_top_build_prefix$srcdir
26942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26943 esac
26944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26947 case $ac_mode in
26950 # CONFIG_FILE
26953 _ACEOF
26955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26956 # If the template does not know about datarootdir, expand it.
26957 # FIXME: This hack should be removed a few years after 2.60.
26958 ac_datarootdir_hack=; ac_datarootdir_seen=
26959 ac_sed_dataroot='
26960 /datarootdir/ {
26964 /@datadir@/p
26965 /@docdir@/p
26966 /@infodir@/p
26967 /@localedir@/p
26968 /@mandir@/p'
26969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26970 *datarootdir*) ac_datarootdir_seen=yes;;
26971 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26973 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26974 _ACEOF
26975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26976 ac_datarootdir_hack='
26977 s&@datadir@&$datadir&g
26978 s&@docdir@&$docdir&g
26979 s&@infodir@&$infodir&g
26980 s&@localedir@&$localedir&g
26981 s&@mandir@&$mandir&g
26982 s&\\\${datarootdir}&$datarootdir&g' ;;
26983 esac
26984 _ACEOF
26986 # Neutralize VPATH when `$srcdir' = `.'.
26987 # Shell code in configure.ac might set extrasub.
26988 # FIXME: do we really want to maintain this feature?
26989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26990 ac_sed_extra="$ac_vpsub
26991 $extrasub
26992 _ACEOF
26993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26996 s|@configure_input@|$ac_sed_conf_input|;t t
26997 s&@top_builddir@&$ac_top_builddir_sub&;t t
26998 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26999 s&@srcdir@&$ac_srcdir&;t t
27000 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27001 s&@top_srcdir@&$ac_top_srcdir&;t t
27002 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27003 s&@builddir@&$ac_builddir&;t t
27004 s&@abs_builddir@&$ac_abs_builddir&;t t
27005 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27006 $ac_datarootdir_hack
27008 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27009 if $ac_cs_awk_getline; then
27010 $AWK -f "$tmp/subs.awk"
27011 else
27012 $AWK -f "$tmp/subs.awk" | $SHELL
27013 fi >$tmp/out \
27014 || as_fn_error "could not create $ac_file" "$LINENO" 5
27016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27017 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27020 which seems to be undefined. Please make sure it is defined." >&5
27021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27022 which seems to be undefined. Please make sure it is defined." >&2;}
27024 rm -f "$tmp/stdin"
27025 case $ac_file in
27026 -) cat "$tmp/out" && rm -f "$tmp/out";;
27027 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27028 esac \
27029 || as_fn_error "could not create $ac_file" "$LINENO" 5
27033 # CONFIG_HEADER
27035 if test x"$ac_file" != x-; then
27037 $as_echo "/* $configure_input */" \
27038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27039 } >"$tmp/config.h" \
27040 || as_fn_error "could not create $ac_file" "$LINENO" 5
27041 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27044 else
27045 rm -f "$ac_file"
27046 mv "$tmp/config.h" "$ac_file" \
27047 || as_fn_error "could not create $ac_file" "$LINENO" 5
27049 else
27050 $as_echo "/* $configure_input */" \
27051 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27052 || as_fn_error "could not create -" "$LINENO" 5
27056 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27057 $as_echo "$as_me: executing $ac_file commands" >&6;}
27059 esac
27062 case $ac_file$ac_mode in
27063 "as":F) chmod +x as ;;
27064 "collect-ld":F) chmod +x collect-ld ;;
27065 "nm":F) chmod +x nm ;;
27066 "default":C)
27067 case ${CONFIG_HEADERS} in
27068 *auto-host.h:config.in*)
27069 echo > cstamp-h ;;
27070 esac
27071 # Make sure all the subdirs exist.
27072 for d in $subdirs doc build c-family
27074 test -d $d || mkdir $d
27075 done
27078 esac
27079 done # for ac_tag
27082 as_fn_exit 0
27083 _ACEOF
27084 ac_clean_files=$ac_clean_files_save
27086 test $ac_write_fail = 0 ||
27087 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27090 # configure is writing to config.log, and then calls config.status.
27091 # config.status does its own redirection, appending to config.log.
27092 # Unfortunately, on DOS this fails, as config.log is still kept open
27093 # by configure, so config.status won't be able to write to it; its
27094 # output is simply discarded. So we exec the FD to /dev/null,
27095 # effectively closing config.log, so it can be properly (re)opened and
27096 # appended to by config.status. When coming back to configure, we
27097 # need to make the FD available again.
27098 if test "$no_create" != yes; then
27099 ac_cs_success=:
27100 ac_config_status_args=
27101 test "$silent" = yes &&
27102 ac_config_status_args="$ac_config_status_args --quiet"
27103 exec 5>/dev/null
27104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27105 exec 5>>config.log
27106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27107 # would make configure fail if this is the last instruction.
27108 $ac_cs_success || as_fn_exit $?
27110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}