recog.c (split_all_insns): Remove dead code.
[official-gcc.git] / gcc / configure
blob40a21bbb063f2d03e7c41002c665c3491dbf5f65
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 CONFIGURE_SPECS
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
765 TARGET_SYSTEM_ROOT
766 enable_shared
767 enable_fixed_point
768 enable_decimal_float
769 enable_multilib
770 ENABLE_BUILD_WITH_CXX
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_werror_always
870 enable_checking
871 enable_coverage
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
874 with_stabs
875 enable_multilib
876 enable___cxa_atexit
877 enable_decimal_float
878 enable_fixed_point
879 enable_threads
880 enable_tls
881 enable_objc_gc
882 with_dwarf2
883 enable_shared
884 with_build_sysroot
885 with_sysroot
886 with_specs
887 with_pkgversion
888 with_bugurl
889 enable_languages
890 with_multilib_list
891 enable_rpath
892 with_libiconv_prefix
893 enable_initfini_array
894 enable_sjlj_exceptions
895 with_system_libunwind
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_frame_pointer
900 enable_win32_registry
901 enable_static
902 with_pic
903 enable_fast_install
904 enable_libtool_lock
905 with_plugin_ld
906 enable_gnu_indirect_function
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-languages=LIST specify which front-ends to build
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-initfini-array use .init_array/.fini_array sections
1593 --enable-sjlj-exceptions
1594 arrange to use setjmp/longjmp exception handling
1595 --enable-secureplt enable -msecure-plt by default for PowerPC
1596 --enable-leading-mingw64-underscores
1597 Enable leading underscores on 64 bit mingw targets
1598 --enable-cld enable -mcld by default for 32bit x86
1599 --enable-frame-pointer enable -fno-omit-frame-pointer 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-gnu-indirect-function
1613 enable the use of the @gnu_indirect_function to
1614 glibc systems
1615 --enable-comdat enable COMDAT group support
1616 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1617 glibc systems
1618 --enable-linker-build-id
1619 compiler will always pass --build-id to linker
1620 --enable-maintainer-mode
1621 enable make rules and dependencies not useful
1622 (and sometimes confusing) to the casual installer
1623 --enable-version-specific-runtime-libs
1624 specify that runtime libraries should be
1625 installed in a compiler-specific directory
1626 --enable-plugin enable plugin support
1628 Optional Packages:
1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1631 --with-build-libsubdir=DIR Directory where to find libraries for build system
1632 --with-local-prefix=DIR specifies directory to put local include
1633 --with-gxx-include-dir=DIR
1634 specifies directory to put g++ header files
1635 --with-cpp-install-dir=DIR
1636 install the user visible C preprocessor in DIR
1637 (relative to PREFIX) as well as PREFIX/bin
1638 --with-gnu-ld arrange to work with GNU ld.
1639 --with-ld arrange to use the specified ld (full pathname)
1640 --with-demangler-in-ld try to use demangler in GNU ld.
1641 --with-gnu-as arrange to work with GNU as
1642 --with-as arrange to use the specified as (full pathname)
1643 --with-stabs arrange to use stabs instead of host debug format
1644 --with-dwarf2 force the default debug format to be DWARF 2
1645 --with-build-sysroot=sysroot
1646 use sysroot as the system root during the build
1647 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1648 --with-specs=SPECS add SPECS to driver command-line processing
1649 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1650 --with-bugurl=URL Direct users to URL to report a bug
1651 --with-multilib-list Select multilibs (SH only)
1652 --with-gnu-ld assume the C compiler uses GNU ld default=no
1653 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1654 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1655 --with-system-libunwind use installed libunwind
1656 --with-pic try to use only PIC/non-PIC objects [default=use
1657 both]
1658 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1659 --with-plugin-ld=[ARG] specify the plugin linker
1660 --with-long-double-128 Use 128-bit long double by default.
1661 --with-gc={page,zone} choose the garbage collection mechanism to use
1662 with the compiler
1663 --with-system-zlib use installed libz
1664 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1666 Some influential environment variables:
1667 CC C compiler command
1668 CFLAGS C compiler flags
1669 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1670 nonstandard directory <lib dir>
1671 LIBS libraries to pass to the linker, e.g. -l<library>
1672 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1673 you have headers in a nonstandard directory <include dir>
1674 CXX C++ compiler command
1675 CXXFLAGS C++ compiler flags
1676 CPP C preprocessor
1677 CXXCPP C++ preprocessor
1678 GMPLIBS How to link GMP
1679 GMPINC How to find GMP include files
1680 PPLLIBS How to link PPL
1681 PPLINC How to find PPL include files
1682 CLOOGLIBS How to link CLOOG
1683 CLOOGINC How to find CLOOG include files
1684 LIBELFLIBS How to link libelf
1685 LIBELFINC How to find libelf include files
1687 Use these variables to override the choices made by `configure' or to help
1688 it to find libraries and programs with nonstandard names/locations.
1690 Report bugs to the package provider.
1691 _ACEOF
1692 ac_status=$?
1695 if test "$ac_init_help" = "recursive"; then
1696 # If there are subdirs, report their specific --help.
1697 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1698 test -d "$ac_dir" ||
1699 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1700 continue
1701 ac_builddir=.
1703 case "$ac_dir" in
1704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1707 # A ".." for each directory in $ac_dir_suffix.
1708 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1709 case $ac_top_builddir_sub in
1710 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712 esac ;;
1713 esac
1714 ac_abs_top_builddir=$ac_pwd
1715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1716 # for backward compatibility:
1717 ac_top_builddir=$ac_top_build_prefix
1719 case $srcdir in
1720 .) # We are building in place.
1721 ac_srcdir=.
1722 ac_top_srcdir=$ac_top_builddir_sub
1723 ac_abs_top_srcdir=$ac_pwd ;;
1724 [\\/]* | ?:[\\/]* ) # Absolute name.
1725 ac_srcdir=$srcdir$ac_dir_suffix;
1726 ac_top_srcdir=$srcdir
1727 ac_abs_top_srcdir=$srcdir ;;
1728 *) # Relative name.
1729 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1730 ac_top_srcdir=$ac_top_build_prefix$srcdir
1731 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1732 esac
1733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735 cd "$ac_dir" || { ac_status=$?; continue; }
1736 # Check for guested configure.
1737 if test -f "$ac_srcdir/configure.gnu"; then
1738 echo &&
1739 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1740 elif test -f "$ac_srcdir/configure"; then
1741 echo &&
1742 $SHELL "$ac_srcdir/configure" --help=recursive
1743 else
1744 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1745 fi || ac_status=$?
1746 cd "$ac_pwd" || { ac_status=$?; break; }
1747 done
1750 test -n "$ac_init_help" && exit $ac_status
1751 if $ac_init_version; then
1752 cat <<\_ACEOF
1753 configure
1754 generated by GNU Autoconf 2.64
1756 Copyright (C) 2009 Free Software Foundation, Inc.
1757 This configure script is free software; the Free Software Foundation
1758 gives unlimited permission to copy, distribute and modify it.
1759 _ACEOF
1760 exit
1763 ## ------------------------ ##
1764 ## Autoconf initialization. ##
1765 ## ------------------------ ##
1767 # ac_fn_c_try_compile LINENO
1768 # --------------------------
1769 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext
1774 if { { ac_try="$ac_compile"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_compile") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest.$ac_objext; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1798 ac_retval=1
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 return $ac_retval
1803 } # ac_fn_c_try_compile
1805 # ac_fn_cxx_try_compile LINENO
1806 # ----------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_cxx_try_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext
1812 if { { ac_try="$ac_compile"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_cxx_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.$ac_objext; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1836 ac_retval=1
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 return $ac_retval
1841 } # ac_fn_cxx_try_compile
1843 # ac_fn_c_try_cpp LINENO
1844 # ----------------------
1845 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_c_try_cpp ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if { { ac_try="$ac_cpp conftest.$ac_ext"
1850 case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } >/dev/null && {
1865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 ac_retval=1
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1878 } # ac_fn_c_try_cpp
1880 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1881 # -------------------------------------------------------
1882 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1883 # the include files in INCLUDES and setting the cache variable VAR
1884 # accordingly.
1885 ac_fn_c_check_header_mongrel ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 else
1898 # Is the header compilable?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1900 $as_echo_n "checking $2 usability... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1904 #include <$2>
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 ac_header_compiler=yes
1908 else
1909 ac_header_compiler=no
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1913 $as_echo "$ac_header_compiler" >&6; }
1915 # Is the header present?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1917 $as_echo_n "checking $2 presence... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 #include <$2>
1921 _ACEOF
1922 if ac_fn_c_try_cpp "$LINENO"; then :
1923 ac_header_preproc=yes
1924 else
1925 ac_header_preproc=no
1927 rm -f conftest.err conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1929 $as_echo "$ac_header_preproc" >&6; }
1931 # So? What about this header?
1932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 yes:no: )
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1935 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 no:yes:* )
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1941 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1943 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1945 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1947 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951 esac
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 eval "$3=\$ac_header_compiler"
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965 } # ac_fn_c_check_header_mongrel
1967 # ac_fn_c_try_run LINENO
1968 # ----------------------
1969 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1970 # that executables *can* be run.
1971 ac_fn_c_try_run ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if { { ac_try="$ac_link"
1975 case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978 esac
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_link") 2>&5
1982 ac_status=$?
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1985 { { case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_try") 2>&5
1992 ac_status=$?
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; }; }; then :
1995 ac_retval=0
1996 else
1997 $as_echo "$as_me: program exited with status $ac_status" >&5
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 ac_retval=$ac_status
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005 return $ac_retval
2007 } # ac_fn_c_try_run
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2019 $as_echo_n "(cached) " >&6
2020 else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$3=yes"
2028 else
2029 eval "$3=no"
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_c_check_header_compile
2040 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2041 # --------------------------------------------
2042 # Tries to find the compile-time value of EXPR in a program that includes
2043 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2044 # computed
2045 ac_fn_c_compute_int ()
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 if test "$cross_compiling" = yes; then
2049 # Depending upon the size, compute the lo and hi bounds.
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2054 main ()
2056 static int test_array [1 - 2 * !(($2) >= 0)];
2057 test_array [0] = 0
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 ac_lo=0 ac_mid=0
2065 while :; do
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073 test_array [0] = 0
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_hi=$ac_mid; break
2081 else
2082 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2083 if test $ac_lo -le $ac_mid; then
2084 ac_lo= ac_hi=
2085 break
2087 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 done
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 static int test_array [1 - 2 * !(($2) < 0)];
2099 test_array [0] = 0
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=-1 ac_mid=-1
2107 while :; do
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2112 main ()
2114 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2115 test_array [0] = 0
2118 return 0;
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 ac_lo=$ac_mid; break
2123 else
2124 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2125 if test $ac_mid -le $ac_hi; then
2126 ac_lo= ac_hi=
2127 break
2129 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 done
2133 else
2134 ac_lo= ac_hi=
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 # Binary search between lo and hi bounds.
2140 while test "x$ac_lo" != "x$ac_hi"; do
2141 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2146 main ()
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 test_array [0] = 0
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_hi=$ac_mid
2157 else
2158 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162 case $ac_lo in #((
2163 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2164 '') ac_retval=1 ;;
2165 esac
2166 else
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2170 static long int longval () { return $2; }
2171 static unsigned long int ulongval () { return $2; }
2172 #include <stdio.h>
2173 #include <stdlib.h>
2175 main ()
2178 FILE *f = fopen ("conftest.val", "w");
2179 if (! f)
2180 return 1;
2181 if (($2) < 0)
2183 long int i = longval ();
2184 if (i != ($2))
2185 return 1;
2186 fprintf (f, "%ld", i);
2188 else
2190 unsigned long int i = ulongval ();
2191 if (i != ($2))
2192 return 1;
2193 fprintf (f, "%lu", i);
2195 /* Do not output a trailing newline, as this causes \r\n confusion
2196 on some platforms. */
2197 return ferror (f) || fclose (f) != 0;
2200 return 0;
2202 _ACEOF
2203 if ac_fn_c_try_run "$LINENO"; then :
2204 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2205 else
2206 ac_retval=1
2208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2209 conftest.$ac_objext conftest.beam conftest.$ac_ext
2210 rm -f conftest.val
2213 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2214 return $ac_retval
2216 } # ac_fn_c_compute_int
2218 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2219 # -------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_c_check_type ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228 $as_echo_n "(cached) " >&6
2229 else
2230 eval "$3=no"
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2237 if (sizeof ($2))
2238 return 0;
2240 return 0;
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2248 main ()
2250 if (sizeof (($2)))
2251 return 0;
2253 return 0;
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2258 else
2259 eval "$3=yes"
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 eval ac_res=\$$3
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2270 } # ac_fn_c_check_type
2272 # ac_fn_c_find_intX_t LINENO BITS VAR
2273 # -----------------------------------
2274 # Finds a signed integer type with width BITS, setting cache variable VAR
2275 # accordingly.
2276 ac_fn_c_find_intX_t ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2280 $as_echo_n "checking for int$2_t... " >&6; }
2281 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2282 $as_echo_n "(cached) " >&6
2283 else
2284 eval "$3=no"
2285 for ac_type in int$2_t 'int' 'long int' \
2286 'long long int' 'short int' 'signed char'; do
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 $ac_includes_default
2291 main ()
2293 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2294 test_array [0] = 0
2297 return 0;
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2303 $ac_includes_default
2305 main ()
2307 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2308 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2309 test_array [0] = 0
2312 return 0;
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2317 else
2318 case $ac_type in #(
2319 int$2_t) :
2320 eval "$3=yes" ;; #(
2321 *) :
2322 eval "$3=\$ac_type" ;;
2323 esac
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2328 eval as_val=\$$3
2329 if test "x$as_val" = x""no; then :
2331 else
2332 break
2334 done
2336 eval ac_res=\$$3
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341 } # ac_fn_c_find_intX_t
2343 # ac_fn_c_try_link LINENO
2344 # -----------------------
2345 # Try to link conftest.$ac_ext, and return whether this succeeded.
2346 ac_fn_c_try_link ()
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 rm -f conftest.$ac_objext conftest$ac_exeext
2350 if { { ac_try="$ac_link"
2351 case "(($ac_try" in
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2354 esac
2355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2356 $as_echo "$ac_try_echo"; } >&5
2357 (eval "$ac_link") 2>conftest.err
2358 ac_status=$?
2359 if test -s conftest.err; then
2360 grep -v '^ *+' conftest.err >conftest.er1
2361 cat conftest.er1 >&5
2362 mv -f conftest.er1 conftest.err
2364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2365 test $ac_status = 0; } && {
2366 test -z "$ac_c_werror_flag" ||
2367 test ! -s conftest.err
2368 } && test -s conftest$ac_exeext && {
2369 test "$cross_compiling" = yes ||
2370 $as_test_x conftest$ac_exeext
2371 }; then :
2372 ac_retval=0
2373 else
2374 $as_echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2377 ac_retval=1
2379 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2380 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2381 # interfere with the next link command; also delete a directory that is
2382 # left behind by Apple's compiler. We do this before executing the actions.
2383 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385 return $ac_retval
2387 } # ac_fn_c_try_link
2389 # ac_fn_c_find_uintX_t LINENO BITS VAR
2390 # ------------------------------------
2391 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2392 # accordingly.
2393 ac_fn_c_find_uintX_t ()
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2397 $as_echo_n "checking for uint$2_t... " >&6; }
2398 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2399 $as_echo_n "(cached) " >&6
2400 else
2401 eval "$3=no"
2402 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2403 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2406 $ac_includes_default
2408 main ()
2410 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2411 test_array [0] = 0
2414 return 0;
2416 _ACEOF
2417 if ac_fn_c_try_compile "$LINENO"; then :
2418 case $ac_type in #(
2419 uint$2_t) :
2420 eval "$3=yes" ;; #(
2421 *) :
2422 eval "$3=\$ac_type" ;;
2423 esac
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 eval as_val=\$$3
2427 if test "x$as_val" = x""no; then :
2429 else
2430 break
2432 done
2434 eval ac_res=\$$3
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439 } # ac_fn_c_find_uintX_t
2441 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2442 # ----------------------------------------------
2443 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2444 ac_fn_c_check_header_preproc ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2448 $as_echo_n "checking for $2... " >&6; }
2449 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 #include <$2>
2455 _ACEOF
2456 if ac_fn_c_try_cpp "$LINENO"; then :
2457 eval "$3=yes"
2458 else
2459 eval "$3=no"
2461 rm -f conftest.err conftest.$ac_ext
2463 eval ac_res=\$$3
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465 $as_echo "$ac_res" >&6; }
2466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2468 } # ac_fn_c_check_header_preproc
2470 # ac_fn_c_check_func LINENO FUNC VAR
2471 # ----------------------------------
2472 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2473 ac_fn_c_check_func ()
2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2477 $as_echo_n "checking for $2... " >&6; }
2478 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2483 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2485 #define $2 innocuous_$2
2487 /* System header to define __stub macros and hopefully few prototypes,
2488 which can conflict with char $2 (); below.
2489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2490 <limits.h> exists even on freestanding compilers. */
2492 #ifdef __STDC__
2493 # include <limits.h>
2494 #else
2495 # include <assert.h>
2496 #endif
2498 #undef $2
2500 /* Override any GCC internal prototype to avoid an error.
2501 Use char because int might match the return type of a GCC
2502 builtin and then its argument prototype would still apply. */
2503 #ifdef __cplusplus
2504 extern "C"
2505 #endif
2506 char $2 ();
2507 /* The GNU C library defines this for functions which it implements
2508 to always fail with ENOSYS. Some functions are actually named
2509 something starting with __ and the normal name is an alias. */
2510 #if defined __stub_$2 || defined __stub___$2
2511 choke me
2512 #endif
2515 main ()
2517 return $2 ();
2519 return 0;
2521 _ACEOF
2522 if ac_fn_c_try_link "$LINENO"; then :
2523 eval "$3=yes"
2524 else
2525 eval "$3=no"
2527 rm -f core conftest.err conftest.$ac_objext \
2528 conftest$ac_exeext conftest.$ac_ext
2530 eval ac_res=\$$3
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2533 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 } # ac_fn_c_check_func
2537 # ac_fn_cxx_try_cpp LINENO
2538 # ------------------------
2539 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2540 ac_fn_cxx_try_cpp ()
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 if { { ac_try="$ac_cpp conftest.$ac_ext"
2544 case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547 esac
2548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2549 $as_echo "$ac_try_echo"; } >&5
2550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2551 ac_status=$?
2552 if test -s conftest.err; then
2553 grep -v '^ *+' conftest.err >conftest.er1
2554 cat conftest.er1 >&5
2555 mv -f conftest.er1 conftest.err
2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2558 test $ac_status = 0; } >/dev/null && {
2559 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2560 test ! -s conftest.err
2561 }; then :
2562 ac_retval=0
2563 else
2564 $as_echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2567 ac_retval=1
2569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2570 return $ac_retval
2572 } # ac_fn_cxx_try_cpp
2574 # ac_fn_cxx_try_link LINENO
2575 # -------------------------
2576 # Try to link conftest.$ac_ext, and return whether this succeeded.
2577 ac_fn_cxx_try_link ()
2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580 rm -f conftest.$ac_objext conftest$ac_exeext
2581 if { { ac_try="$ac_link"
2582 case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2585 esac
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 $as_echo "$ac_try_echo"; } >&5
2588 (eval "$ac_link") 2>conftest.err
2589 ac_status=$?
2590 if test -s conftest.err; then
2591 grep -v '^ *+' conftest.err >conftest.er1
2592 cat conftest.er1 >&5
2593 mv -f conftest.er1 conftest.err
2595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596 test $ac_status = 0; } && {
2597 test -z "$ac_cxx_werror_flag" ||
2598 test ! -s conftest.err
2599 } && test -s conftest$ac_exeext && {
2600 test "$cross_compiling" = yes ||
2601 $as_test_x conftest$ac_exeext
2602 }; then :
2603 ac_retval=0
2604 else
2605 $as_echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2608 ac_retval=1
2610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2612 # interfere with the next link command; also delete a directory that is
2613 # left behind by Apple's compiler. We do this before executing the actions.
2614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 return $ac_retval
2618 } # ac_fn_cxx_try_link
2619 cat >config.log <<_ACEOF
2620 This file contains any messages produced by compilers while
2621 running configure, to aid debugging if configure makes a mistake.
2623 It was created by $as_me, which was
2624 generated by GNU Autoconf 2.64. Invocation command line was
2626 $ $0 $@
2628 _ACEOF
2629 exec 5>>config.log
2631 cat <<_ASUNAME
2632 ## --------- ##
2633 ## Platform. ##
2634 ## --------- ##
2636 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2637 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2638 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2639 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2640 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2642 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2643 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2645 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2646 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2647 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2648 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2649 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2650 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2651 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2653 _ASUNAME
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 for as_dir in $PATH
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 $as_echo "PATH: $as_dir"
2661 done
2662 IFS=$as_save_IFS
2664 } >&5
2666 cat >&5 <<_ACEOF
2669 ## ----------- ##
2670 ## Core tests. ##
2671 ## ----------- ##
2673 _ACEOF
2676 # Keep a trace of the command line.
2677 # Strip out --no-create and --no-recursion so they do not pile up.
2678 # Strip out --silent because we don't want to record it for future runs.
2679 # Also quote any args containing shell meta-characters.
2680 # Make two passes to allow for proper duplicate-argument suppression.
2681 ac_configure_args=
2682 ac_configure_args0=
2683 ac_configure_args1=
2684 ac_must_keep_next=false
2685 for ac_pass in 1 2
2687 for ac_arg
2689 case $ac_arg in
2690 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2692 | -silent | --silent | --silen | --sile | --sil)
2693 continue ;;
2694 *\'*)
2695 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2696 esac
2697 case $ac_pass in
2698 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2700 as_fn_append ac_configure_args1 " '$ac_arg'"
2701 if test $ac_must_keep_next = true; then
2702 ac_must_keep_next=false # Got value, back to normal.
2703 else
2704 case $ac_arg in
2705 *=* | --config-cache | -C | -disable-* | --disable-* \
2706 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2707 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2708 | -with-* | --with-* | -without-* | --without-* | --x)
2709 case "$ac_configure_args0 " in
2710 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2711 esac
2713 -* ) ac_must_keep_next=true ;;
2714 esac
2716 as_fn_append ac_configure_args " '$ac_arg'"
2718 esac
2719 done
2720 done
2721 { ac_configure_args0=; unset ac_configure_args0;}
2722 { ac_configure_args1=; unset ac_configure_args1;}
2724 # When interrupted or exit'd, cleanup temporary files, and complete
2725 # config.log. We remove comments because anyway the quotes in there
2726 # would cause problems or look ugly.
2727 # WARNING: Use '\'' to represent an apostrophe within the trap.
2728 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2729 trap 'exit_status=$?
2730 # Save into config.log some information that might help in debugging.
2732 echo
2734 cat <<\_ASBOX
2735 ## ---------------- ##
2736 ## Cache variables. ##
2737 ## ---------------- ##
2738 _ASBOX
2739 echo
2740 # The following way of writing the cache mishandles newlines in values,
2742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2743 eval ac_val=\$$ac_var
2744 case $ac_val in #(
2745 *${as_nl}*)
2746 case $ac_var in #(
2747 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2748 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2749 esac
2750 case $ac_var in #(
2751 _ | IFS | as_nl) ;; #(
2752 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2753 *) { eval $ac_var=; unset $ac_var;} ;;
2754 esac ;;
2755 esac
2756 done
2757 (set) 2>&1 |
2758 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2759 *${as_nl}ac_space=\ *)
2760 sed -n \
2761 "s/'\''/'\''\\\\'\'''\''/g;
2762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2763 ;; #(
2765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2767 esac |
2768 sort
2770 echo
2772 cat <<\_ASBOX
2773 ## ----------------- ##
2774 ## Output variables. ##
2775 ## ----------------- ##
2776 _ASBOX
2777 echo
2778 for ac_var in $ac_subst_vars
2780 eval ac_val=\$$ac_var
2781 case $ac_val in
2782 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2783 esac
2784 $as_echo "$ac_var='\''$ac_val'\''"
2785 done | sort
2786 echo
2788 if test -n "$ac_subst_files"; then
2789 cat <<\_ASBOX
2790 ## ------------------- ##
2791 ## File substitutions. ##
2792 ## ------------------- ##
2793 _ASBOX
2794 echo
2795 for ac_var in $ac_subst_files
2797 eval ac_val=\$$ac_var
2798 case $ac_val in
2799 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800 esac
2801 $as_echo "$ac_var='\''$ac_val'\''"
2802 done | sort
2803 echo
2806 if test -s confdefs.h; then
2807 cat <<\_ASBOX
2808 ## ----------- ##
2809 ## confdefs.h. ##
2810 ## ----------- ##
2811 _ASBOX
2812 echo
2813 cat confdefs.h
2814 echo
2816 test "$ac_signal" != 0 &&
2817 $as_echo "$as_me: caught signal $ac_signal"
2818 $as_echo "$as_me: exit $exit_status"
2819 } >&5
2820 rm -f core *.core core.conftest.* &&
2821 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2822 exit $exit_status
2824 for ac_signal in 1 2 13 15; do
2825 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2826 done
2827 ac_signal=0
2829 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2830 rm -f -r conftest* confdefs.h
2832 $as_echo "/* confdefs.h */" > confdefs.h
2834 # Predefined preprocessor variables.
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE_NAME "$PACKAGE_NAME"
2838 _ACEOF
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2842 _ACEOF
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2846 _ACEOF
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_STRING "$PACKAGE_STRING"
2850 _ACEOF
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2854 _ACEOF
2856 cat >>confdefs.h <<_ACEOF
2857 #define PACKAGE_URL "$PACKAGE_URL"
2858 _ACEOF
2861 # Let the site file select an alternate cache file if it wants to.
2862 # Prefer an explicitly selected file to automatically selected ones.
2863 ac_site_file1=NONE
2864 ac_site_file2=NONE
2865 if test -n "$CONFIG_SITE"; then
2866 ac_site_file1=$CONFIG_SITE
2867 elif test "x$prefix" != xNONE; then
2868 ac_site_file1=$prefix/share/config.site
2869 ac_site_file2=$prefix/etc/config.site
2870 else
2871 ac_site_file1=$ac_default_prefix/share/config.site
2872 ac_site_file2=$ac_default_prefix/etc/config.site
2874 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2876 test "x$ac_site_file" = xNONE && continue
2877 if test -r "$ac_site_file"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2879 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2880 sed 's/^/| /' "$ac_site_file" >&5
2881 . "$ac_site_file"
2883 done
2885 if test -r "$cache_file"; then
2886 # Some versions of bash will fail to source /dev/null (special
2887 # files actually), so we avoid doing that.
2888 if test -f "$cache_file"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2890 $as_echo "$as_me: loading cache $cache_file" >&6;}
2891 case $cache_file in
2892 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2893 *) . "./$cache_file";;
2894 esac
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2898 $as_echo "$as_me: creating cache $cache_file" >&6;}
2899 >$cache_file
2902 # Check that the precious variables saved in the cache have kept the same
2903 # value.
2904 ac_cache_corrupted=false
2905 for ac_var in $ac_precious_vars; do
2906 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2907 eval ac_new_set=\$ac_env_${ac_var}_set
2908 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2909 eval ac_new_val=\$ac_env_${ac_var}_value
2910 case $ac_old_set,$ac_new_set in
2911 set,)
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2913 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2914 ac_cache_corrupted=: ;;
2915 ,set)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2917 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2918 ac_cache_corrupted=: ;;
2919 ,);;
2921 if test "x$ac_old_val" != "x$ac_new_val"; then
2922 # differences in whitespace do not lead to failure.
2923 ac_old_val_w=`echo x $ac_old_val`
2924 ac_new_val_w=`echo x $ac_new_val`
2925 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2927 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2928 ac_cache_corrupted=:
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2931 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2932 eval $ac_var=\$ac_old_val
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2935 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2937 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2938 fi;;
2939 esac
2940 # Pass precious variables to config.status.
2941 if test "$ac_new_set" = set; then
2942 case $ac_new_val in
2943 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2944 *) ac_arg=$ac_var=$ac_new_val ;;
2945 esac
2946 case " $ac_configure_args " in
2947 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2948 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2949 esac
2951 done
2952 if $ac_cache_corrupted; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2956 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2957 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2959 ## -------------------- ##
2960 ## Main body of script. ##
2961 ## -------------------- ##
2963 ac_ext=c
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2977 gcc_version=`cat $srcdir/BASE-VER`
2979 # Determine the host, build, and target systems
2980 ac_aux_dir=
2981 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2982 for ac_t in install-sh install.sh shtool; do
2983 if test -f "$ac_dir/$ac_t"; then
2984 ac_aux_dir=$ac_dir
2985 ac_install_sh="$ac_aux_dir/$ac_t -c"
2986 break 2
2988 done
2989 done
2990 if test -z "$ac_aux_dir"; then
2991 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2994 # These three variables are undocumented and unsupported,
2995 # and are intended to be withdrawn in a future Autoconf release.
2996 # They can cause serious problems if a builder's source tree is in a directory
2997 # whose full name contains unusual characters.
2998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3003 # Make sure we can run config.sub.
3004 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3005 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3008 $as_echo_n "checking build system type... " >&6; }
3009 if test "${ac_cv_build+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 ac_build_alias=$build_alias
3013 test "x$ac_build_alias" = x &&
3014 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3015 test "x$ac_build_alias" = x &&
3016 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3017 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3018 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3022 $as_echo "$ac_cv_build" >&6; }
3023 case $ac_cv_build in
3024 *-*-*) ;;
3025 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3026 esac
3027 build=$ac_cv_build
3028 ac_save_IFS=$IFS; IFS='-'
3029 set x $ac_cv_build
3030 shift
3031 build_cpu=$1
3032 build_vendor=$2
3033 shift; shift
3034 # Remember, the first character of IFS is used to create $*,
3035 # except with old shells:
3036 build_os=$*
3037 IFS=$ac_save_IFS
3038 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3042 $as_echo_n "checking host system type... " >&6; }
3043 if test "${ac_cv_host+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test "x$host_alias" = x; then
3047 ac_cv_host=$ac_cv_build
3048 else
3049 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3050 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3055 $as_echo "$ac_cv_host" >&6; }
3056 case $ac_cv_host in
3057 *-*-*) ;;
3058 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3059 esac
3060 host=$ac_cv_host
3061 ac_save_IFS=$IFS; IFS='-'
3062 set x $ac_cv_host
3063 shift
3064 host_cpu=$1
3065 host_vendor=$2
3066 shift; shift
3067 # Remember, the first character of IFS is used to create $*,
3068 # except with old shells:
3069 host_os=$*
3070 IFS=$ac_save_IFS
3071 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3075 $as_echo_n "checking target system type... " >&6; }
3076 if test "${ac_cv_target+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test "x$target_alias" = x; then
3080 ac_cv_target=$ac_cv_host
3081 else
3082 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3083 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3088 $as_echo "$ac_cv_target" >&6; }
3089 case $ac_cv_target in
3090 *-*-*) ;;
3091 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3092 esac
3093 target=$ac_cv_target
3094 ac_save_IFS=$IFS; IFS='-'
3095 set x $ac_cv_target
3096 shift
3097 target_cpu=$1
3098 target_vendor=$2
3099 shift; shift
3100 # Remember, the first character of IFS is used to create $*,
3101 # except with old shells:
3102 target_os=$*
3103 IFS=$ac_save_IFS
3104 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3107 # The aliases save the names the user supplied, while $host etc.
3108 # will get canonicalized.
3109 test -n "$target_alias" &&
3110 test "$program_prefix$program_suffix$program_transform_name" = \
3111 NONENONEs,x,x, &&
3112 program_prefix=${target_alias}-
3114 # Determine the noncanonical target name, for directory use.
3115 case ${build_alias} in
3116 "") build_noncanonical=${build} ;;
3117 *) build_noncanonical=${build_alias} ;;
3118 esac
3120 case ${host_alias} in
3121 "") host_noncanonical=${build_noncanonical} ;;
3122 *) host_noncanonical=${host_alias} ;;
3123 esac
3125 case ${target_alias} in
3126 "") target_noncanonical=${host_noncanonical} ;;
3127 *) target_noncanonical=${target_alias} ;;
3128 esac
3133 # Determine the target- and build-specific subdirectories
3135 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3136 # have matching libraries, they should use host libraries: Makefile.tpl
3137 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3138 # However, they still use the build modules, because the corresponding
3139 # host modules (e.g. bison) are only built for the host when bootstrap
3140 # finishes. So:
3141 # - build_subdir is where we find build modules, and never changes.
3142 # - build_libsubdir is where we find build libraries, and can be overridden.
3144 # Prefix 'build-' so this never conflicts with target_subdir.
3145 build_subdir="build-${build_noncanonical}"
3147 # Check whether --with-build-libsubdir was given.
3148 if test "${with_build_libsubdir+set}" = set; then :
3149 withval=$with_build_libsubdir; build_libsubdir="$withval"
3150 else
3151 build_libsubdir="$build_subdir"
3154 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3155 if ( test $srcdir = . && test -d gcc ) \
3156 || test -d $srcdir/../host-${host_noncanonical}; then
3157 host_subdir="host-${host_noncanonical}"
3158 else
3159 host_subdir=.
3161 # No prefix.
3162 target_subdir=${target_noncanonical}
3165 # Set program_transform_name
3166 test "$program_prefix" != NONE &&
3167 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3168 # Use a double $ so make ignores it.
3169 test "$program_suffix" != NONE &&
3170 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3171 # Double any \ or $.
3172 # By default was `s,x,x', remove it if useless.
3173 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3174 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3177 # Check for bogus environment variables.
3178 # Test if LIBRARY_PATH contains the notation for the current directory
3179 # since this would lead to problems installing/building glibc.
3180 # LIBRARY_PATH contains the current directory if one of the following
3181 # is true:
3182 # - one of the terminals (":" and ";") is the first or last sign
3183 # - two terminals occur directly after each other
3184 # - the path contains an element with a dot in it
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3186 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3187 case ${LIBRARY_PATH} in
3188 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3189 library_path_setting="contains current directory"
3192 library_path_setting="ok"
3194 esac
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3196 $as_echo "$library_path_setting" >&6; }
3197 if test "$library_path_setting" != "ok"; then
3198 as_fn_error "
3199 *** LIBRARY_PATH shouldn't contain the current directory when
3200 *** building gcc. Please change the environment variable
3201 *** and run configure again." "$LINENO" 5
3204 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3205 # since this would lead to problems installing/building glibc.
3206 # GCC_EXEC_PREFIX contains the current directory if one of the following
3207 # is true:
3208 # - one of the terminals (":" and ";") is the first or last sign
3209 # - two terminals occur directly after each other
3210 # - the path contains an element with a dot in it
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3212 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3213 case ${GCC_EXEC_PREFIX} in
3214 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3215 gcc_exec_prefix_setting="contains current directory"
3218 gcc_exec_prefix_setting="ok"
3220 esac
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3222 $as_echo "$gcc_exec_prefix_setting" >&6; }
3223 if test "$gcc_exec_prefix_setting" != "ok"; then
3224 as_fn_error "
3225 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3226 *** building gcc. Please change the environment variable
3227 *** and run configure again." "$LINENO" 5
3230 # -----------
3231 # Directories
3232 # -----------
3234 # Specify the local prefix
3235 local_prefix=
3237 # Check whether --with-local-prefix was given.
3238 if test "${with_local_prefix+set}" = set; then :
3239 withval=$with_local_prefix; case "${withval}" in
3240 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3241 no) ;;
3242 *) local_prefix=$with_local_prefix ;;
3243 esac
3247 # Default local prefix if it is empty
3248 if test x$local_prefix = x; then
3249 local_prefix=/usr/local
3252 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3253 # passed in by the toplevel make and thus we'd get different behavior
3254 # depending on where we built the sources.
3255 gcc_gxx_include_dir=
3256 # Specify the g++ header file directory
3258 # Check whether --with-gxx-include-dir was given.
3259 if test "${with_gxx_include_dir+set}" = set; then :
3260 withval=$with_gxx_include_dir; case "${withval}" in
3261 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3262 no) ;;
3263 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3264 esac
3268 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3269 if test x${gcc_gxx_include_dir} = x; then
3270 if test x${enable_version_specific_runtime_libs} = xyes; then
3271 gcc_gxx_include_dir='${libsubdir}/include/c++'
3272 else
3273 libstdcxx_incdir='include/c++/$(version)'
3274 if test x$host != x$target; then
3275 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3277 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3282 # Check whether --with-cpp_install_dir was given.
3283 if test "${with_cpp_install_dir+set}" = set; then :
3284 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3285 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3286 elif test x$withval != xno; then
3287 cpp_install_dir=$withval
3292 # We would like to our source tree to be readonly. However when releases or
3293 # pre-releases are generated, the flex/bison generated files as well as the
3294 # various formats of manuals need to be included along with the rest of the
3295 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3296 # just that.
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3299 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3300 # Check whether --enable-generated-files-in-srcdir was given.
3301 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3302 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3303 else
3304 generated_files_in_srcdir=no
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3309 $as_echo "$generated_files_in_srcdir" >&6; }
3311 if test "$generated_files_in_srcdir" = "yes"; then
3312 GENINSRC=''
3313 else
3314 GENINSRC='#'
3318 # -------------------
3319 # Find default linker
3320 # -------------------
3322 # With GNU ld
3324 # Check whether --with-gnu-ld was given.
3325 if test "${with_gnu_ld+set}" = set; then :
3326 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3327 else
3328 gnu_ld_flag=no
3332 # With pre-defined ld
3334 # Check whether --with-ld was given.
3335 if test "${with_ld+set}" = set; then :
3336 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3339 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3340 if test ! -x "$DEFAULT_LINKER"; then
3341 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3342 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3343 gnu_ld_flag=yes
3346 cat >>confdefs.h <<_ACEOF
3347 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3348 _ACEOF
3352 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3354 cat >>confdefs.h <<_ACEOF
3355 #define HAVE_GNU_LD $gnu_ld
3356 _ACEOF
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3360 $as_echo_n "checking whether a default linker was specified... " >&6; }
3361 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3362 if test x"$gnu_ld_flag" = x"no"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3364 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3365 else
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3367 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3374 # With demangler in GNU ld
3376 # Check whether --with-demangler-in-ld was given.
3377 if test "${with_demangler_in_ld+set}" = set; then :
3378 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3379 else
3380 demangler_in_ld=no
3384 # ----------------------
3385 # Find default assembler
3386 # ----------------------
3388 # With GNU as
3390 # Check whether --with-gnu-as was given.
3391 if test "${with_gnu_as+set}" = set; then :
3392 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3393 else
3394 gas_flag=no
3399 # Check whether --with-as was given.
3400 if test "${with_as+set}" = set; then :
3401 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3404 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3405 if test ! -x "$DEFAULT_ASSEMBLER"; then
3406 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3407 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3408 gas_flag=yes
3411 cat >>confdefs.h <<_ACEOF
3412 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3413 _ACEOF
3417 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3419 cat >>confdefs.h <<_ACEOF
3420 #define HAVE_GNU_AS $gnu_as
3421 _ACEOF
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3425 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3426 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3427 if test x"$gas_flag" = x"no"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3429 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3432 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3439 # ---------------
3440 # Find C compiler
3441 # ---------------
3443 # If a non-executable a.out is present (e.g. created by GNU as above even if
3444 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3445 # file, even when creating an executable, so an execution test fails.
3446 # Remove possible default executable files to avoid this.
3448 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3449 # Autoconf includes it.
3450 rm -f a.out a.exe b.out
3452 # Find the native compiler
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_CC+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$CC"; then
3467 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3480 done
3481 done
3482 IFS=$as_save_IFS
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$ac_cv_prog_CC"; then
3498 ac_ct_CC=$CC
3499 # Extract the first word of "gcc", so it can be a program name with args.
3500 set dummy gcc; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516 ac_cv_prog_ac_ct_CC="gcc"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3520 done
3521 done
3522 IFS=$as_save_IFS
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3530 else
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3535 if test "x$ac_ct_CC" = x; then
3536 CC=""
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544 CC=$ac_ct_CC
3546 else
3547 CC="$ac_cv_prog_CC"
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CC="${ac_tool_prefix}cc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3591 if test -z "$CC"; then
3592 # Extract the first word of "cc", so it can be a program name with args.
3593 set dummy cc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if test "${ac_cv_prog_CC+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$CC"; then
3600 ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 ac_prog_rejected=no
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3611 ac_prog_rejected=yes
3612 continue
3614 ac_cv_prog_CC="cc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3618 done
3619 done
3620 IFS=$as_save_IFS
3622 if test $ac_prog_rejected = yes; then
3623 # We found a bogon in the path, so make sure we never use it.
3624 set dummy $ac_cv_prog_CC
3625 shift
3626 if test $# != 0; then
3627 # We chose a different compiler from the bogus one.
3628 # However, it has the same basename, so the bogon will be chosen
3629 # first if we set CC to just the basename; use the full file name.
3630 shift
3631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3636 CC=$ac_cv_prog_CC
3637 if test -n "$CC"; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3639 $as_echo "$CC" >&6; }
3640 else
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642 $as_echo "no" >&6; }
3647 if test -z "$CC"; then
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in cl.exe
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_CC+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3672 done
3673 done
3674 IFS=$as_save_IFS
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$CC" && break
3689 done
3691 if test -z "$CC"; then
3692 ac_ct_CC=$CC
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_ac_ct_CC="$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3726 else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_CC" && break
3733 done
3735 if test "x$ac_ct_CC" = x; then
3736 CC=""
3737 else
3738 case $cross_compiling:$ac_tool_warned in
3739 yes:)
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3743 esac
3744 CC=$ac_ct_CC
3751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details." "$LINENO" 5; }
3756 # Provide some information about the compiler.
3757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 set X $ac_compile
3759 ac_compiler=$2
3760 for ac_option in --version -v -V -qversion; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 $as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 ac_status=$?
3770 if test -s conftest.err; then
3771 sed '10a\
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3775 rm -f conftest.er1 conftest.err
3777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 done
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3785 main ()
3789 return 0;
3791 _ACEOF
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3796 # of exeext.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3798 $as_echo_n "checking for C compiler default output file name... " >&6; }
3799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3804 ac_rmfiles=
3805 for ac_file in $ac_files
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 esac
3811 done
3812 rm -f $ac_rmfiles
3814 if { { ac_try="$ac_link_default"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3822 ac_status=$?
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }; then :
3825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3828 # so that the user can short-circuit this test for compilers unknown to
3829 # Autoconf.
3830 for ac_file in $ac_files ''
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3836 [ab].out )
3837 # We found the default executable, but exeext='' is most
3838 # certainly right.
3839 break;;
3840 *.* )
3841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3842 then :; else
3843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 # We set ac_cv_exeext here because the later test for it is not
3846 # safe: cross compilers may not add the suffix if given an `-o'
3847 # argument, so we may need to know it at that point already.
3848 # Even if this section looks crufty: it has the advantage of
3849 # actually working.
3850 break;;
3852 break;;
3853 esac
3854 done
3855 test "$ac_cv_exeext" = no && ac_cv_exeext=
3857 else
3858 ac_file=''
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3861 $as_echo "$ac_file" >&6; }
3862 if test -z "$ac_file"; then :
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 { as_fn_set_status 77
3869 as_fn_error "C compiler cannot create executables
3870 See \`config.log' for more details." "$LINENO" 5; }; }
3872 ac_exeext=$ac_cv_exeext
3874 # Check that the compiler produces executables we can run. If not, either
3875 # the compiler is broken, or we cross compile.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3877 $as_echo_n "checking whether the C compiler works... " >&6; }
3878 # If not cross compiling, check that we can run a simple program.
3879 if test "$cross_compiling" != yes; then
3880 if { ac_try='./$ac_file'
3881 { { case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_try") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; }; then
3891 cross_compiling=no
3892 else
3893 if test "$cross_compiling" = maybe; then
3894 cross_compiling=yes
3895 else
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error "cannot run C compiled programs.
3899 If you meant to cross compile, use \`--host'.
3900 See \`config.log' for more details." "$LINENO" 5; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3905 $as_echo "yes" >&6; }
3907 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3908 ac_clean_files=$ac_clean_files_save
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3912 $as_echo_n "checking whether we are cross compiling... " >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3914 $as_echo "$cross_compiling" >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3917 $as_echo_n "checking for suffix of executables... " >&6; }
3918 if { { ac_try="$ac_link"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_link") 2>&5
3926 ac_status=$?
3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }; then :
3929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3931 # work properly (i.e., refer to `conftest.exe'), while it won't with
3932 # `rm'.
3933 for ac_file in conftest.exe conftest conftest.*; do
3934 test -f "$ac_file" || continue
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3938 break;;
3939 * ) break;;
3940 esac
3941 done
3942 else
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error "cannot compute suffix of executables: cannot compile and link
3946 See \`config.log' for more details." "$LINENO" 5; }
3948 rm -f conftest$ac_cv_exeext
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3950 $as_echo "$ac_cv_exeext" >&6; }
3952 rm -f conftest.$ac_ext
3953 EXEEXT=$ac_cv_exeext
3954 ac_exeext=$EXEEXT
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3956 $as_echo_n "checking for suffix of object files... " >&6; }
3957 if test "${ac_cv_objext+set}" = set; then :
3958 $as_echo_n "(cached) " >&6
3959 else
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3964 main ()
3968 return 0;
3970 _ACEOF
3971 rm -f conftest.o conftest.obj
3972 if { { ac_try="$ac_compile"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978 $as_echo "$ac_try_echo"; } >&5
3979 (eval "$ac_compile") 2>&5
3980 ac_status=$?
3981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982 test $ac_status = 0; }; then :
3983 for ac_file in conftest.o conftest.obj conftest.*; do
3984 test -f "$ac_file" || continue;
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3988 break;;
3989 esac
3990 done
3991 else
3992 $as_echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error "cannot compute suffix of object files: cannot compile
3998 See \`config.log' for more details." "$LINENO" 5; }
4000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4003 $as_echo "$ac_cv_objext" >&6; }
4004 OBJEXT=$ac_cv_objext
4005 ac_objext=$OBJEXT
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4007 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4008 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4015 main ()
4017 #ifndef __GNUC__
4018 choke me
4019 #endif
4022 return 0;
4024 _ACEOF
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_compiler_gnu=yes
4027 else
4028 ac_compiler_gnu=no
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4035 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4036 if test $ac_compiler_gnu = yes; then
4037 GCC=yes
4038 else
4039 GCC=
4041 ac_test_CFLAGS=${CFLAGS+set}
4042 ac_save_CFLAGS=$CFLAGS
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4044 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4045 if test "${ac_cv_prog_cc_g+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 ac_save_c_werror_flag=$ac_c_werror_flag
4049 ac_c_werror_flag=yes
4050 ac_cv_prog_cc_g=no
4051 CFLAGS="-g"
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4056 main ()
4060 return 0;
4062 _ACEOF
4063 if ac_fn_c_try_compile "$LINENO"; then :
4064 ac_cv_prog_cc_g=yes
4065 else
4066 CFLAGS=""
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4071 main ()
4075 return 0;
4077 _ACEOF
4078 if ac_fn_c_try_compile "$LINENO"; then :
4080 else
4081 ac_c_werror_flag=$ac_save_c_werror_flag
4082 CFLAGS="-g"
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4087 main ()
4091 return 0;
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_g=yes
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_c_werror_flag=$ac_save_c_werror_flag
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4105 $as_echo "$ac_cv_prog_cc_g" >&6; }
4106 if test "$ac_test_CFLAGS" = set; then
4107 CFLAGS=$ac_save_CFLAGS
4108 elif test $ac_cv_prog_cc_g = yes; then
4109 if test "$GCC" = yes; then
4110 CFLAGS="-g -O2"
4111 else
4112 CFLAGS="-g"
4114 else
4115 if test "$GCC" = yes; then
4116 CFLAGS="-O2"
4117 else
4118 CFLAGS=
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4122 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4123 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 ac_cv_prog_cc_c89=no
4127 ac_save_CC=$CC
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130 #include <stdarg.h>
4131 #include <stdio.h>
4132 #include <sys/types.h>
4133 #include <sys/stat.h>
4134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4135 struct buf { int x; };
4136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137 static char *e (p, i)
4138 char **p;
4139 int i;
4141 return p[i];
4143 static char *f (char * (*g) (char **, int), char **p, ...)
4145 char *s;
4146 va_list v;
4147 va_start (v,p);
4148 s = g (p, va_arg (v,int));
4149 va_end (v);
4150 return s;
4153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4154 function prototypes and stuff, but not '\xHH' hex character constants.
4155 These don't provoke an error unfortunately, instead are silently treated
4156 as 'x'. The following induces an error, until -std is added to get
4157 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4158 array size at least. It's necessary to write '\x00'==0 to get something
4159 that's true only with -std. */
4160 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4162 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4163 inside strings and character constants. */
4164 #define FOO(x) 'x'
4165 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4167 int test (int i, double x);
4168 struct s1 {int (*f) (int a);};
4169 struct s2 {int (*f) (double a);};
4170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4171 int argc;
4172 char **argv;
4174 main ()
4176 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4178 return 0;
4180 _ACEOF
4181 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4182 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4184 CC="$ac_save_CC $ac_arg"
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_c89=$ac_arg
4188 rm -f core conftest.err conftest.$ac_objext
4189 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 done
4191 rm -f conftest.$ac_ext
4192 CC=$ac_save_CC
4195 # AC_CACHE_VAL
4196 case "x$ac_cv_prog_cc_c89" in
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4199 $as_echo "none needed" >&6; } ;;
4200 xno)
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202 $as_echo "unsupported" >&6; } ;;
4204 CC="$CC $ac_cv_prog_cc_c89"
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4206 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207 esac
4208 if test "x$ac_cv_prog_cc_c89" != xno; then :
4212 ac_ext=c
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 if test "x$CC" != xcc; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4220 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4223 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4225 set dummy $CC; ac_cc=`$as_echo "$2" |
4226 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4227 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4234 main ()
4238 return 0;
4240 _ACEOF
4241 # Make sure it works both with $CC and with simple cc.
4242 # We do the test twice because some compilers refuse to overwrite an
4243 # existing .o file with -o, though they will create one.
4244 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4245 rm -f conftest2.*
4246 if { { case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4249 esac
4250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4251 $as_echo "$ac_try_echo"; } >&5
4252 (eval "$ac_try") 2>&5
4253 ac_status=$?
4254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4255 test $ac_status = 0; } &&
4256 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; };
4266 then
4267 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4268 if test "x$CC" != xcc; then
4269 # Test first that cc exists at all.
4270 if { ac_try='cc -c conftest.$ac_ext >&5'
4271 { { case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4274 esac
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 $as_echo "$ac_try_echo"; } >&5
4277 (eval "$ac_try") 2>&5
4278 ac_status=$?
4279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280 test $ac_status = 0; }; }; then
4281 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4282 rm -f conftest2.*
4283 if { { case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286 esac
4287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4288 $as_echo "$ac_try_echo"; } >&5
4289 (eval "$ac_try") 2>&5
4290 ac_status=$?
4291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4292 test $ac_status = 0; } &&
4293 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; };
4303 then
4304 # cc works too.
4306 else
4307 # cc exists but doesn't like -o.
4308 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4312 else
4313 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4315 rm -f core conftest*
4318 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4320 $as_echo "yes" >&6; }
4321 else
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323 $as_echo "no" >&6; }
4325 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4329 # expand $ac_aux_dir to an absolute path
4330 am_aux_dir=`cd $ac_aux_dir && pwd`
4332 # FIXME: we rely on the cache variable name because
4333 # there is no other way.
4334 set dummy $CC
4335 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4336 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4337 if test "$am_t" != yes; then
4338 # Losing compiler, so override with the script.
4339 # FIXME: It is wrong to rewrite CC.
4340 # But if we don't then we get into trouble of one sort or another.
4341 # A longer-term fix would be to have automake use am__CC in this case,
4342 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4343 CC="$am_aux_dir/compile $CC"
4347 ac_ext=cpp
4348 ac_cpp='$CXXCPP $CPPFLAGS'
4349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4352 if test -z "$CXX"; then
4353 if test -n "$CCC"; then
4354 CXX=$CCC
4355 else
4356 if test -n "$ac_tool_prefix"; then
4357 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if test "${ac_cv_prog_CXX+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if test -n "$CXX"; then
4367 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4368 else
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4380 done
4381 done
4382 IFS=$as_save_IFS
4386 CXX=$ac_cv_prog_CXX
4387 if test -n "$CXX"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4389 $as_echo "$CXX" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4396 test -n "$CXX" && break
4397 done
4399 if test -z "$CXX"; then
4400 ac_ct_CXX=$CXX
4401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$ac_ct_CXX"; then
4411 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_ac_ct_CXX="$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4424 done
4425 done
4426 IFS=$as_save_IFS
4430 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4431 if test -n "$ac_ct_CXX"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4433 $as_echo "$ac_ct_CXX" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$ac_ct_CXX" && break
4441 done
4443 if test "x$ac_ct_CXX" = x; then
4444 CXX="g++"
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447 yes:)
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452 CXX=$ac_ct_CXX
4458 # Provide some information about the compiler.
4459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4460 set X $ac_compile
4461 ac_compiler=$2
4462 for ac_option in --version -v -V -qversion; do
4463 { { ac_try="$ac_compiler $ac_option >&5"
4464 case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 $as_echo "$ac_try_echo"; } >&5
4470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4471 ac_status=$?
4472 if test -s conftest.err; then
4473 sed '10a\
4474 ... rest of stderr output deleted ...
4475 10q' conftest.err >conftest.er1
4476 cat conftest.er1 >&5
4477 rm -f conftest.er1 conftest.err
4479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; }
4481 done
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4484 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4485 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4492 main ()
4494 #ifndef __GNUC__
4495 choke me
4496 #endif
4499 return 0;
4501 _ACEOF
4502 if ac_fn_cxx_try_compile "$LINENO"; then :
4503 ac_compiler_gnu=yes
4504 else
4505 ac_compiler_gnu=no
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4512 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4513 if test $ac_compiler_gnu = yes; then
4514 GXX=yes
4515 else
4516 GXX=
4518 ac_test_CXXFLAGS=${CXXFLAGS+set}
4519 ac_save_CXXFLAGS=$CXXFLAGS
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4521 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4522 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4526 ac_cxx_werror_flag=yes
4527 ac_cv_prog_cxx_g=no
4528 CXXFLAGS="-g"
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4533 main ()
4537 return 0;
4539 _ACEOF
4540 if ac_fn_cxx_try_compile "$LINENO"; then :
4541 ac_cv_prog_cxx_g=yes
4542 else
4543 CXXFLAGS=""
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4548 main ()
4552 return 0;
4554 _ACEOF
4555 if ac_fn_cxx_try_compile "$LINENO"; then :
4557 else
4558 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4559 CXXFLAGS="-g"
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4564 main ()
4568 return 0;
4570 _ACEOF
4571 if ac_fn_cxx_try_compile "$LINENO"; then :
4572 ac_cv_prog_cxx_g=yes
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4582 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4583 if test "$ac_test_CXXFLAGS" = set; then
4584 CXXFLAGS=$ac_save_CXXFLAGS
4585 elif test $ac_cv_prog_cxx_g = yes; then
4586 if test "$GXX" = yes; then
4587 CXXFLAGS="-g -O2"
4588 else
4589 CXXFLAGS="-g"
4591 else
4592 if test "$GXX" = yes; then
4593 CXXFLAGS="-O2"
4594 else
4595 CXXFLAGS=
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607 if test -n "$ac_tool_prefix"; then
4608 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4609 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$GNATBIND"; then
4616 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 GNATBIND=$ac_cv_prog_GNATBIND
4636 if test -n "$GNATBIND"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4638 $as_echo "$GNATBIND" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4646 if test -z "$ac_cv_prog_GNATBIND"; then
4647 ac_ct_GNATBIND=$GNATBIND
4648 # Extract the first word of "gnatbind", so it can be a program name with args.
4649 set dummy gnatbind; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$ac_ct_GNATBIND"; then
4656 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4657 else
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4669 done
4670 done
4671 IFS=$as_save_IFS
4675 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4676 if test -n "$ac_ct_GNATBIND"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4678 $as_echo "$ac_ct_GNATBIND" >&6; }
4679 else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681 $as_echo "no" >&6; }
4684 if test "x$ac_ct_GNATBIND" = x; then
4685 GNATBIND="no"
4686 else
4687 case $cross_compiling:$ac_tool_warned in
4688 yes:)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691 ac_tool_warned=yes ;;
4692 esac
4693 GNATBIND=$ac_ct_GNATBIND
4695 else
4696 GNATBIND="$ac_cv_prog_GNATBIND"
4699 if test -n "$ac_tool_prefix"; then
4700 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4701 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$GNATMAKE"; then
4708 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 GNATMAKE=$ac_cv_prog_GNATMAKE
4728 if test -n "$GNATMAKE"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4730 $as_echo "$GNATMAKE" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4738 if test -z "$ac_cv_prog_GNATMAKE"; then
4739 ac_ct_GNATMAKE=$GNATMAKE
4740 # Extract the first word of "gnatmake", so it can be a program name with args.
4741 set dummy gnatmake; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if test -n "$ac_ct_GNATMAKE"; then
4748 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4749 else
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759 break 2
4761 done
4762 done
4763 IFS=$as_save_IFS
4767 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4768 if test -n "$ac_ct_GNATMAKE"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4770 $as_echo "$ac_ct_GNATMAKE" >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4776 if test "x$ac_ct_GNATMAKE" = x; then
4777 GNATMAKE="no"
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned=yes ;;
4784 esac
4785 GNATMAKE=$ac_ct_GNATMAKE
4787 else
4788 GNATMAKE="$ac_cv_prog_GNATMAKE"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4792 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4793 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 cat >conftest.adb <<EOF
4797 procedure conftest is begin null; end conftest;
4799 acx_cv_cc_gcc_supports_ada=no
4800 # There is a bug in old released versions of GCC which causes the
4801 # driver to exit successfully when the appropriate language module
4802 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4803 # Therefore we must check for the error message as well as an
4804 # unsuccessful exit.
4805 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4806 # given a .adb file, but produce no object file. So we must check
4807 # if an object file was really produced to guard against this.
4808 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4809 if test x"$errors" = x && test -f conftest.$ac_objext; then
4810 acx_cv_cc_gcc_supports_ada=yes
4812 rm -f conftest.*
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4815 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4817 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4818 have_gnat=yes
4819 else
4820 have_gnat=no
4824 # autoconf is lame and doesn't give us any substitution variable for this.
4825 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4826 NO_MINUS_C_MINUS_O=yes
4827 else
4828 OUTPUT_OPTION='-o $@'
4833 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4834 # optimizations to be activated explicitly by the toplevel.
4835 case "$CC" in
4836 */prev-gcc/xgcc*) ;;
4837 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4838 esac
4841 # -------------------------
4842 # Check C compiler features
4843 # -------------------------
4846 ac_ext=c
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4852 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4853 # On Suns, sometimes $CPP names a directory.
4854 if test -n "$CPP" && test -d "$CPP"; then
4855 CPP=
4857 if test -z "$CPP"; then
4858 if test "${ac_cv_prog_CPP+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 # Double quotes because CPP needs to be expanded
4862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4864 ac_preproc_ok=false
4865 for ac_c_preproc_warn_flag in '' yes
4867 # Use a header file that comes with gcc, so configuring glibc
4868 # with a fresh cross-compiler works.
4869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4870 # <limits.h> exists even on freestanding compilers.
4871 # On the NeXT, cc -E runs the code through the compiler's parser,
4872 # not just through cpp. "Syntax error" is here to catch this case.
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4875 #ifdef __STDC__
4876 # include <limits.h>
4877 #else
4878 # include <assert.h>
4879 #endif
4880 Syntax error
4881 _ACEOF
4882 if ac_fn_c_try_cpp "$LINENO"; then :
4884 else
4885 # Broken: fails on valid input.
4886 continue
4888 rm -f conftest.err conftest.$ac_ext
4890 # OK, works on sane cases. Now check whether nonexistent headers
4891 # can be detected and how.
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #include <ac_nonexistent.h>
4895 _ACEOF
4896 if ac_fn_c_try_cpp "$LINENO"; then :
4897 # Broken: success on invalid input.
4898 continue
4899 else
4900 # Passes both tests.
4901 ac_preproc_ok=:
4902 break
4904 rm -f conftest.err conftest.$ac_ext
4906 done
4907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4908 rm -f conftest.err conftest.$ac_ext
4909 if $ac_preproc_ok; then :
4910 break
4913 done
4914 ac_cv_prog_CPP=$CPP
4917 CPP=$ac_cv_prog_CPP
4918 else
4919 ac_cv_prog_CPP=$CPP
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4922 $as_echo "$CPP" >&6; }
4923 ac_preproc_ok=false
4924 for ac_c_preproc_warn_flag in '' yes
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #ifdef __STDC__
4935 # include <limits.h>
4936 #else
4937 # include <assert.h>
4938 #endif
4939 Syntax error
4940 _ACEOF
4941 if ac_fn_c_try_cpp "$LINENO"; then :
4943 else
4944 # Broken: fails on valid input.
4945 continue
4947 rm -f conftest.err conftest.$ac_ext
4949 # OK, works on sane cases. Now check whether nonexistent headers
4950 # can be detected and how.
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 #include <ac_nonexistent.h>
4954 _ACEOF
4955 if ac_fn_c_try_cpp "$LINENO"; then :
4956 # Broken: success on invalid input.
4957 continue
4958 else
4959 # Passes both tests.
4960 ac_preproc_ok=:
4961 break
4963 rm -f conftest.err conftest.$ac_ext
4965 done
4966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967 rm -f conftest.err conftest.$ac_ext
4968 if $ac_preproc_ok; then :
4970 else
4971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4973 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4974 See \`config.log' for more details." "$LINENO" 5; }
4977 ac_ext=c
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4985 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4986 if test "${ac_cv_path_GREP+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -z "$GREP"; then
4990 ac_path_GREP_found=false
4991 # Loop through the user's path and test for each of PROGNAME-LIST
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_prog in grep ggrep; do
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5000 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5001 # Check for GNU ac_path_GREP and select it if it is found.
5002 # Check for GNU $ac_path_GREP
5003 case `"$ac_path_GREP" --version 2>&1` in
5004 *GNU*)
5005 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5007 ac_count=0
5008 $as_echo_n 0123456789 >"conftest.in"
5009 while :
5011 cat "conftest.in" "conftest.in" >"conftest.tmp"
5012 mv "conftest.tmp" "conftest.in"
5013 cp "conftest.in" "conftest.nl"
5014 $as_echo 'GREP' >> "conftest.nl"
5015 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5017 as_fn_arith $ac_count + 1 && ac_count=$as_val
5018 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5019 # Best one so far, save it but keep looking for a better one
5020 ac_cv_path_GREP="$ac_path_GREP"
5021 ac_path_GREP_max=$ac_count
5023 # 10*(2^10) chars as input seems more than enough
5024 test $ac_count -gt 10 && break
5025 done
5026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5027 esac
5029 $ac_path_GREP_found && break 3
5030 done
5031 done
5032 done
5033 IFS=$as_save_IFS
5034 if test -z "$ac_cv_path_GREP"; then
5035 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5037 else
5038 ac_cv_path_GREP=$GREP
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5043 $as_echo "$ac_cv_path_GREP" >&6; }
5044 GREP="$ac_cv_path_GREP"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5048 $as_echo_n "checking for egrep... " >&6; }
5049 if test "${ac_cv_path_EGREP+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5053 then ac_cv_path_EGREP="$GREP -E"
5054 else
5055 if test -z "$EGREP"; then
5056 ac_path_EGREP_found=false
5057 # Loop through the user's path and test for each of PROGNAME-LIST
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_prog in egrep; do
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5066 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5067 # Check for GNU ac_path_EGREP and select it if it is found.
5068 # Check for GNU $ac_path_EGREP
5069 case `"$ac_path_EGREP" --version 2>&1` in
5070 *GNU*)
5071 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5073 ac_count=0
5074 $as_echo_n 0123456789 >"conftest.in"
5075 while :
5077 cat "conftest.in" "conftest.in" >"conftest.tmp"
5078 mv "conftest.tmp" "conftest.in"
5079 cp "conftest.in" "conftest.nl"
5080 $as_echo 'EGREP' >> "conftest.nl"
5081 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5082 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5083 as_fn_arith $ac_count + 1 && ac_count=$as_val
5084 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5085 # Best one so far, save it but keep looking for a better one
5086 ac_cv_path_EGREP="$ac_path_EGREP"
5087 ac_path_EGREP_max=$ac_count
5089 # 10*(2^10) chars as input seems more than enough
5090 test $ac_count -gt 10 && break
5091 done
5092 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5093 esac
5095 $ac_path_EGREP_found && break 3
5096 done
5097 done
5098 done
5099 IFS=$as_save_IFS
5100 if test -z "$ac_cv_path_EGREP"; then
5101 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5103 else
5104 ac_cv_path_EGREP=$EGREP
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5110 $as_echo "$ac_cv_path_EGREP" >&6; }
5111 EGREP="$ac_cv_path_EGREP"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5115 $as_echo_n "checking for ANSI C header files... " >&6; }
5116 if test "${ac_cv_header_stdc+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 #include <stdlib.h>
5122 #include <stdarg.h>
5123 #include <string.h>
5124 #include <float.h>
5127 main ()
5131 return 0;
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 ac_cv_header_stdc=yes
5136 else
5137 ac_cv_header_stdc=no
5139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141 if test $ac_cv_header_stdc = yes; then
5142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #include <string.h>
5147 _ACEOF
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5149 $EGREP "memchr" >/dev/null 2>&1; then :
5151 else
5152 ac_cv_header_stdc=no
5154 rm -f conftest*
5158 if test $ac_cv_header_stdc = yes; then
5159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <stdlib.h>
5164 _ACEOF
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166 $EGREP "free" >/dev/null 2>&1; then :
5168 else
5169 ac_cv_header_stdc=no
5171 rm -f conftest*
5175 if test $ac_cv_header_stdc = yes; then
5176 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5177 if test "$cross_compiling" = yes; then :
5179 else
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182 #include <ctype.h>
5183 #include <stdlib.h>
5184 #if ((' ' & 0x0FF) == 0x020)
5185 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5186 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5187 #else
5188 # define ISLOWER(c) \
5189 (('a' <= (c) && (c) <= 'i') \
5190 || ('j' <= (c) && (c) <= 'r') \
5191 || ('s' <= (c) && (c) <= 'z'))
5192 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5193 #endif
5195 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5197 main ()
5199 int i;
5200 for (i = 0; i < 256; i++)
5201 if (XOR (islower (i), ISLOWER (i))
5202 || toupper (i) != TOUPPER (i))
5203 return 2;
5204 return 0;
5206 _ACEOF
5207 if ac_fn_c_try_run "$LINENO"; then :
5209 else
5210 ac_cv_header_stdc=no
5212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5213 conftest.$ac_objext conftest.beam conftest.$ac_ext
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5219 $as_echo "$ac_cv_header_stdc" >&6; }
5220 if test $ac_cv_header_stdc = yes; then
5222 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5228 inttypes.h stdint.h unistd.h
5229 do :
5230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5231 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5233 eval as_val=\$$as_ac_Header
5234 if test "x$as_val" = x""yes; then :
5235 cat >>confdefs.h <<_ACEOF
5236 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5237 _ACEOF
5241 done
5245 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5246 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5247 MINIX=yes
5248 else
5249 MINIX=
5253 if test "$MINIX" = yes; then
5255 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5258 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5261 $as_echo "#define _MINIX 1" >>confdefs.h
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5267 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5268 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5274 # define __EXTENSIONS__ 1
5275 $ac_includes_default
5277 main ()
5281 return 0;
5283 _ACEOF
5284 if ac_fn_c_try_compile "$LINENO"; then :
5285 ac_cv_safe_to_define___extensions__=yes
5286 else
5287 ac_cv_safe_to_define___extensions__=no
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5292 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5293 test $ac_cv_safe_to_define___extensions__ = yes &&
5294 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5296 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5298 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5300 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5302 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5305 ac_ext=c
5306 ac_cpp='$CPP $CPPFLAGS'
5307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5311 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5312 # On Suns, sometimes $CPP names a directory.
5313 if test -n "$CPP" && test -d "$CPP"; then
5314 CPP=
5316 if test -z "$CPP"; then
5317 if test "${ac_cv_prog_CPP+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 # Double quotes because CPP needs to be expanded
5321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5323 ac_preproc_ok=false
5324 for ac_c_preproc_warn_flag in '' yes
5326 # Use a header file that comes with gcc, so configuring glibc
5327 # with a fresh cross-compiler works.
5328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5329 # <limits.h> exists even on freestanding compilers.
5330 # On the NeXT, cc -E runs the code through the compiler's parser,
5331 # not just through cpp. "Syntax error" is here to catch this case.
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #ifdef __STDC__
5335 # include <limits.h>
5336 #else
5337 # include <assert.h>
5338 #endif
5339 Syntax error
5340 _ACEOF
5341 if ac_fn_c_try_cpp "$LINENO"; then :
5343 else
5344 # Broken: fails on valid input.
5345 continue
5347 rm -f conftest.err conftest.$ac_ext
5349 # OK, works on sane cases. Now check whether nonexistent headers
5350 # can be detected and how.
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #include <ac_nonexistent.h>
5354 _ACEOF
5355 if ac_fn_c_try_cpp "$LINENO"; then :
5356 # Broken: success on invalid input.
5357 continue
5358 else
5359 # Passes both tests.
5360 ac_preproc_ok=:
5361 break
5363 rm -f conftest.err conftest.$ac_ext
5365 done
5366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5367 rm -f conftest.err conftest.$ac_ext
5368 if $ac_preproc_ok; then :
5369 break
5372 done
5373 ac_cv_prog_CPP=$CPP
5376 CPP=$ac_cv_prog_CPP
5377 else
5378 ac_cv_prog_CPP=$CPP
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5381 $as_echo "$CPP" >&6; }
5382 ac_preproc_ok=false
5383 for ac_c_preproc_warn_flag in '' yes
5385 # Use a header file that comes with gcc, so configuring glibc
5386 # with a fresh cross-compiler works.
5387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5388 # <limits.h> exists even on freestanding compilers.
5389 # On the NeXT, cc -E runs the code through the compiler's parser,
5390 # not just through cpp. "Syntax error" is here to catch this case.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #ifdef __STDC__
5394 # include <limits.h>
5395 #else
5396 # include <assert.h>
5397 #endif
5398 Syntax error
5399 _ACEOF
5400 if ac_fn_c_try_cpp "$LINENO"; then :
5402 else
5403 # Broken: fails on valid input.
5404 continue
5406 rm -f conftest.err conftest.$ac_ext
5408 # OK, works on sane cases. Now check whether nonexistent headers
5409 # can be detected and how.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <ac_nonexistent.h>
5413 _ACEOF
5414 if ac_fn_c_try_cpp "$LINENO"; then :
5415 # Broken: success on invalid input.
5416 continue
5417 else
5418 # Passes both tests.
5419 ac_preproc_ok=:
5420 break
5422 rm -f conftest.err conftest.$ac_ext
5424 done
5425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5426 rm -f conftest.err conftest.$ac_ext
5427 if $ac_preproc_ok; then :
5429 else
5430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5432 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5433 See \`config.log' for more details." "$LINENO" 5; }
5436 ac_ext=c
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5443 $as_echo_n "checking for inline... " >&6; }
5444 if test "${ac_cv_c_inline+set}" = set; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 ac_cv_c_inline=no
5448 for ac_kw in inline __inline__ __inline; do
5449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h. */
5451 #ifndef __cplusplus
5452 typedef int foo_t;
5453 static $ac_kw foo_t static_foo () {return 0; }
5454 $ac_kw foo_t foo () {return 0; }
5455 #endif
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459 ac_cv_c_inline=$ac_kw
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 test "$ac_cv_c_inline" != no && break
5463 done
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5467 $as_echo "$ac_cv_c_inline" >&6; }
5469 case $ac_cv_c_inline in
5470 inline | yes) ;;
5472 case $ac_cv_c_inline in
5473 no) ac_val=;;
5474 *) ac_val=$ac_cv_c_inline;;
5475 esac
5476 cat >>confdefs.h <<_ACEOF
5477 #ifndef __cplusplus
5478 #define inline $ac_val
5479 #endif
5480 _ACEOF
5482 esac
5485 # sizeof(char) is 1 by definition.
5486 # The cast to long int works around a bug in the HP C Compiler
5487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5489 # This bug is HP SR number 8606223364.
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5491 $as_echo_n "checking size of void *... " >&6; }
5492 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5497 else
5498 if test "$ac_cv_type_void_p" = yes; then
5499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5501 { as_fn_set_status 77
5502 as_fn_error "cannot compute sizeof (void *)
5503 See \`config.log' for more details." "$LINENO" 5; }; }
5504 else
5505 ac_cv_sizeof_void_p=0
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5511 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5515 cat >>confdefs.h <<_ACEOF
5516 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5517 _ACEOF
5520 # The cast to long int works around a bug in the HP C Compiler
5521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5523 # This bug is HP SR number 8606223364.
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5525 $as_echo_n "checking size of short... " >&6; }
5526 if test "${ac_cv_sizeof_short+set}" = set; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5531 else
5532 if test "$ac_cv_type_short" = yes; then
5533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5535 { as_fn_set_status 77
5536 as_fn_error "cannot compute sizeof (short)
5537 See \`config.log' for more details." "$LINENO" 5; }; }
5538 else
5539 ac_cv_sizeof_short=0
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5545 $as_echo "$ac_cv_sizeof_short" >&6; }
5549 cat >>confdefs.h <<_ACEOF
5550 #define SIZEOF_SHORT $ac_cv_sizeof_short
5551 _ACEOF
5554 # The cast to long int works around a bug in the HP C Compiler
5555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5557 # This bug is HP SR number 8606223364.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5559 $as_echo_n "checking size of int... " >&6; }
5560 if test "${ac_cv_sizeof_int+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5565 else
5566 if test "$ac_cv_type_int" = yes; then
5567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5569 { as_fn_set_status 77
5570 as_fn_error "cannot compute sizeof (int)
5571 See \`config.log' for more details." "$LINENO" 5; }; }
5572 else
5573 ac_cv_sizeof_int=0
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5579 $as_echo "$ac_cv_sizeof_int" >&6; }
5583 cat >>confdefs.h <<_ACEOF
5584 #define SIZEOF_INT $ac_cv_sizeof_int
5585 _ACEOF
5588 # The cast to long int works around a bug in the HP C Compiler
5589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5591 # This bug is HP SR number 8606223364.
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5593 $as_echo_n "checking size of long... " >&6; }
5594 if test "${ac_cv_sizeof_long+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5599 else
5600 if test "$ac_cv_type_long" = yes; then
5601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5603 { as_fn_set_status 77
5604 as_fn_error "cannot compute sizeof (long)
5605 See \`config.log' for more details." "$LINENO" 5; }; }
5606 else
5607 ac_cv_sizeof_long=0
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5613 $as_echo "$ac_cv_sizeof_long" >&6; }
5617 cat >>confdefs.h <<_ACEOF
5618 #define SIZEOF_LONG $ac_cv_sizeof_long
5619 _ACEOF
5622 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5623 if test "x$ac_cv_type_long_long" = x""yes; then :
5625 cat >>confdefs.h <<_ACEOF
5626 #define HAVE_LONG_LONG 1
5627 _ACEOF
5629 # The cast to long int works around a bug in the HP C Compiler
5630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5632 # This bug is HP SR number 8606223364.
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5634 $as_echo_n "checking size of long long... " >&6; }
5635 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5640 else
5641 if test "$ac_cv_type_long_long" = yes; then
5642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5644 { as_fn_set_status 77
5645 as_fn_error "cannot compute sizeof (long long)
5646 See \`config.log' for more details." "$LINENO" 5; }; }
5647 else
5648 ac_cv_sizeof_long_long=0
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5654 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5658 cat >>confdefs.h <<_ACEOF
5659 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5660 _ACEOF
5665 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5666 if test "x$ac_cv_type___int64" = x""yes; then :
5668 cat >>confdefs.h <<_ACEOF
5669 #define HAVE___INT64 1
5670 _ACEOF
5672 # The cast to long int works around a bug in the HP C Compiler
5673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5675 # This bug is HP SR number 8606223364.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5677 $as_echo_n "checking size of __int64... " >&6; }
5678 if test "${ac_cv_sizeof___int64+set}" = set; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5683 else
5684 if test "$ac_cv_type___int64" = yes; then
5685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5687 { as_fn_set_status 77
5688 as_fn_error "cannot compute sizeof (__int64)
5689 See \`config.log' for more details." "$LINENO" 5; }; }
5690 else
5691 ac_cv_sizeof___int64=0
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5697 $as_echo "$ac_cv_sizeof___int64" >&6; }
5701 cat >>confdefs.h <<_ACEOF
5702 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5703 _ACEOF
5708 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5709 case $ac_cv_c_int8_t in #(
5710 no|yes) ;; #(
5713 cat >>confdefs.h <<_ACEOF
5714 #define int8_t $ac_cv_c_int8_t
5715 _ACEOF
5717 esac
5719 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5720 case $ac_cv_c_int16_t in #(
5721 no|yes) ;; #(
5724 cat >>confdefs.h <<_ACEOF
5725 #define int16_t $ac_cv_c_int16_t
5726 _ACEOF
5728 esac
5730 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5731 case $ac_cv_c_int32_t in #(
5732 no|yes) ;; #(
5735 cat >>confdefs.h <<_ACEOF
5736 #define int32_t $ac_cv_c_int32_t
5737 _ACEOF
5739 esac
5741 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5742 case $ac_cv_c_int64_t in #(
5743 no|yes) ;; #(
5746 cat >>confdefs.h <<_ACEOF
5747 #define int64_t $ac_cv_c_int64_t
5748 _ACEOF
5750 esac
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5754 $as_echo_n "checking for long long int... " >&6; }
5755 if test "${ac_cv_type_long_long_int+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5761 /* For now, do not test the preprocessor; as of 2007 there are too many
5762 implementations with broken preprocessors. Perhaps this can
5763 be revisited in 2012. In the meantime, code should not expect
5764 #if to work with literals wider than 32 bits. */
5765 /* Test literals. */
5766 long long int ll = 9223372036854775807ll;
5767 long long int nll = -9223372036854775807LL;
5768 unsigned long long int ull = 18446744073709551615ULL;
5769 /* Test constant expressions. */
5770 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5771 ? 1 : -1)];
5772 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5773 ? 1 : -1)];
5774 int i = 63;
5776 main ()
5778 /* Test availability of runtime routines for shift and division. */
5779 long long int llmax = 9223372036854775807ll;
5780 unsigned long long int ullmax = 18446744073709551615ull;
5781 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5782 | (llmax / ll) | (llmax % ll)
5783 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5784 | (ullmax / ull) | (ullmax % ull));
5786 return 0;
5789 _ACEOF
5790 if ac_fn_c_try_link "$LINENO"; then :
5791 if test "$cross_compiling" = yes; then :
5792 ac_cv_type_long_long_int=yes
5793 else
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5796 #include <limits.h>
5797 #ifndef LLONG_MAX
5798 # define HALF \
5799 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5800 # define LLONG_MAX (HALF - 1 + HALF)
5801 #endif
5803 main ()
5805 long long int n = 1;
5806 int i;
5807 for (i = 0; ; i++)
5809 long long int m = n << i;
5810 if (m >> i != n)
5811 return 1;
5812 if (LLONG_MAX / 2 < m)
5813 break;
5815 return 0;
5817 return 0;
5819 _ACEOF
5820 if ac_fn_c_try_run "$LINENO"; then :
5821 ac_cv_type_long_long_int=yes
5822 else
5823 ac_cv_type_long_long_int=no
5825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5826 conftest.$ac_objext conftest.beam conftest.$ac_ext
5829 else
5830 ac_cv_type_long_long_int=no
5832 rm -f core conftest.err conftest.$ac_objext \
5833 conftest$ac_exeext conftest.$ac_ext
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5836 $as_echo "$ac_cv_type_long_long_int" >&6; }
5837 if test $ac_cv_type_long_long_int = yes; then
5839 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5845 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5846 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5848 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5850 else
5851 test $ac_cv_type_long_long_int = yes \
5852 && ac_type='long long int' \
5853 || ac_type='long int'
5855 cat >>confdefs.h <<_ACEOF
5856 #define intmax_t $ac_type
5857 _ACEOF
5863 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5864 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5866 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5868 else
5869 for ac_type in 'int' 'long int' 'long long int'; do
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 $ac_includes_default
5874 main ()
5876 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5877 test_array [0] = 0
5880 return 0;
5882 _ACEOF
5883 if ac_fn_c_try_compile "$LINENO"; then :
5885 cat >>confdefs.h <<_ACEOF
5886 #define intptr_t $ac_type
5887 _ACEOF
5889 ac_type=
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 test -z "$ac_type" && break
5893 done
5897 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5898 case $ac_cv_c_uint8_t in #(
5899 no|yes) ;; #(
5902 $as_echo "#define _UINT8_T 1" >>confdefs.h
5905 cat >>confdefs.h <<_ACEOF
5906 #define uint8_t $ac_cv_c_uint8_t
5907 _ACEOF
5909 esac
5911 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5912 case $ac_cv_c_uint16_t in #(
5913 no|yes) ;; #(
5917 cat >>confdefs.h <<_ACEOF
5918 #define uint16_t $ac_cv_c_uint16_t
5919 _ACEOF
5921 esac
5923 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5924 case $ac_cv_c_uint32_t in #(
5925 no|yes) ;; #(
5928 $as_echo "#define _UINT32_T 1" >>confdefs.h
5931 cat >>confdefs.h <<_ACEOF
5932 #define uint32_t $ac_cv_c_uint32_t
5933 _ACEOF
5935 esac
5937 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5938 case $ac_cv_c_uint64_t in #(
5939 no|yes) ;; #(
5942 $as_echo "#define _UINT64_T 1" >>confdefs.h
5945 cat >>confdefs.h <<_ACEOF
5946 #define uint64_t $ac_cv_c_uint64_t
5947 _ACEOF
5949 esac
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5953 $as_echo_n "checking for unsigned long long int... " >&6; }
5954 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5960 /* For now, do not test the preprocessor; as of 2007 there are too many
5961 implementations with broken preprocessors. Perhaps this can
5962 be revisited in 2012. In the meantime, code should not expect
5963 #if to work with literals wider than 32 bits. */
5964 /* Test literals. */
5965 long long int ll = 9223372036854775807ll;
5966 long long int nll = -9223372036854775807LL;
5967 unsigned long long int ull = 18446744073709551615ULL;
5968 /* Test constant expressions. */
5969 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5970 ? 1 : -1)];
5971 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5972 ? 1 : -1)];
5973 int i = 63;
5975 main ()
5977 /* Test availability of runtime routines for shift and division. */
5978 long long int llmax = 9223372036854775807ll;
5979 unsigned long long int ullmax = 18446744073709551615ull;
5980 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5981 | (llmax / ll) | (llmax % ll)
5982 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5983 | (ullmax / ull) | (ullmax % ull));
5985 return 0;
5988 _ACEOF
5989 if ac_fn_c_try_link "$LINENO"; then :
5990 ac_cv_type_unsigned_long_long_int=yes
5991 else
5992 ac_cv_type_unsigned_long_long_int=no
5994 rm -f core conftest.err conftest.$ac_objext \
5995 conftest$ac_exeext conftest.$ac_ext
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5998 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5999 if test $ac_cv_type_unsigned_long_long_int = yes; then
6001 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6007 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6008 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6010 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6012 else
6013 test $ac_cv_type_unsigned_long_long_int = yes \
6014 && ac_type='unsigned long long int' \
6015 || ac_type='unsigned long int'
6017 cat >>confdefs.h <<_ACEOF
6018 #define uintmax_t $ac_type
6019 _ACEOF
6025 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6026 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6028 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6030 else
6031 for ac_type in 'unsigned int' 'unsigned long int' \
6032 'unsigned long long int'; do
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* end confdefs.h. */
6035 $ac_includes_default
6037 main ()
6039 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6040 test_array [0] = 0
6043 return 0;
6045 _ACEOF
6046 if ac_fn_c_try_compile "$LINENO"; then :
6048 cat >>confdefs.h <<_ACEOF
6049 #define uintptr_t $ac_type
6050 _ACEOF
6052 ac_type=
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 test -z "$ac_type" && break
6056 done
6073 # ---------------------
6074 # Warnings and checking
6075 # ---------------------
6077 # Check $CC warning features (if it's GCC).
6078 # We want to use -pedantic, but we don't want warnings about
6079 # * 'long long'
6080 # * variadic macros
6081 # * overlong strings
6082 # So, we only use -pedantic if we can disable those warnings.
6084 loose_warn=
6085 save_CFLAGS="$CFLAGS"
6086 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6087 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6090 $as_echo_n "checking whether $CC supports $option... " >&6; }
6091 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 CFLAGS="$option"
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6099 main ()
6103 return 0;
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107 eval "$as_acx_Woption=yes"
6108 else
6109 eval "$as_acx_Woption=no"
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 eval ac_res=\$$as_acx_Woption
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6116 $as_echo "$ac_res" >&6; }
6117 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6118 loose_warn="$loose_warn${loose_warn:+ }$option"
6120 done
6121 CFLAGS="$save_CFLAGS"
6123 c_loose_warn=
6124 save_CFLAGS="$CFLAGS"
6125 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6126 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6129 $as_echo_n "checking whether $CC supports $option... " >&6; }
6130 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 CFLAGS="$option"
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6138 main ()
6142 return 0;
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146 eval "$as_acx_Woption=yes"
6147 else
6148 eval "$as_acx_Woption=no"
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 eval ac_res=\$$as_acx_Woption
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6155 $as_echo "$ac_res" >&6; }
6156 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6157 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6159 done
6160 CFLAGS="$save_CFLAGS"
6162 strict_warn=
6163 save_CFLAGS="$CFLAGS"
6164 for option in -Wmissing-format-attribute; do
6165 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6168 $as_echo_n "checking whether $CC supports $option... " >&6; }
6169 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 CFLAGS="$option"
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6177 main ()
6181 return 0;
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185 eval "$as_acx_Woption=yes"
6186 else
6187 eval "$as_acx_Woption=no"
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 eval ac_res=\$$as_acx_Woption
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6194 $as_echo "$ac_res" >&6; }
6195 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6196 strict_warn="$strict_warn${strict_warn:+ }$option"
6198 done
6199 CFLAGS="$save_CFLAGS"
6201 c_strict_warn=
6202 save_CFLAGS="$CFLAGS"
6203 for option in -Wold-style-definition -Wc++-compat; do
6204 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6207 $as_echo_n "checking whether $CC supports $option... " >&6; }
6208 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 CFLAGS="$option"
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6216 main ()
6220 return 0;
6222 _ACEOF
6223 if ac_fn_c_try_compile "$LINENO"; then :
6224 eval "$as_acx_Woption=yes"
6225 else
6226 eval "$as_acx_Woption=no"
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 eval ac_res=\$$as_acx_Woption
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6233 $as_echo "$ac_res" >&6; }
6234 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6235 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6237 done
6238 CFLAGS="$save_CFLAGS"
6240 if test "$GCC" = yes; then :
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6242 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6243 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 save_CFLAGS="$CFLAGS"
6247 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6252 main ()
6256 return 0;
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6261 else
6262 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 CFLAGS="$save_CFLAGS"
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6268 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6269 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6270 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6275 # Check whether --enable-werror-always was given.
6276 if test "${enable_werror_always+set}" = set; then :
6277 enableval=$enable_werror_always;
6278 else
6279 enable_werror_always=no
6282 if test $enable_werror_always = yes; then :
6283 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6288 # The above macros do nothing if the compiler is not GCC. However, the
6289 # Makefile has more goo to add other flags, so these variables are used
6290 # to enable warnings only for GCC.
6291 warn_cflags=
6292 warn_cxxflags=
6293 if test "x$GCC" = "xyes"; then
6294 warn_cflags='$(GCC_WARN_CFLAGS)'
6295 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6300 # Enable expensive internal checks
6301 is_release=
6302 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6303 is_release=yes
6306 # Check whether --enable-checking was given.
6307 if test "${enable_checking+set}" = set; then :
6308 enableval=$enable_checking; ac_checking_flags="${enableval}"
6309 else
6311 # Determine the default checks.
6312 if test x$is_release = x ; then
6313 ac_checking_flags=yes
6314 else
6315 ac_checking_flags=release
6319 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6320 for check in release $ac_checking_flags
6322 case $check in
6323 # these set all the flags to specific states
6324 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6325 ac_fold_checking= ; ac_gc_checking=1 ;
6326 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6327 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6328 ac_tree_checking=1 ; ac_valgrind_checking= ;
6329 ac_types_checking=1 ;;
6330 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6331 ac_fold_checking= ; ac_gc_checking= ;
6332 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6333 ac_rtlflag_checking= ; ac_runtime_checking= ;
6334 ac_tree_checking= ; ac_valgrind_checking= ;
6335 ac_types_checking= ;;
6336 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6337 ac_fold_checking=1 ; ac_gc_checking=1 ;
6338 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6339 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6340 ac_tree_checking=1 ; ac_valgrind_checking= ;
6341 ac_types_checking=1 ;;
6342 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6343 ac_fold_checking= ; ac_gc_checking= ;
6344 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6345 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6346 ac_tree_checking= ; ac_valgrind_checking= ;
6347 ac_types_checking= ;;
6348 # these enable particular checks
6349 assert) ac_assert_checking=1 ;;
6350 df) ac_df_checking=1 ;;
6351 fold) ac_fold_checking=1 ;;
6352 gc) ac_gc_checking=1 ;;
6353 gcac) ac_gc_always_collect=1 ;;
6354 gimple) ac_gimple_checking=1 ;;
6355 misc) ac_checking=1 ;;
6356 rtl) ac_rtl_checking=1 ;;
6357 rtlflag) ac_rtlflag_checking=1 ;;
6358 runtime) ac_runtime_checking=1 ;;
6359 tree) ac_tree_checking=1 ;;
6360 types) ac_types_checking=1 ;;
6361 valgrind) ac_valgrind_checking=1 ;;
6362 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6363 esac
6364 done
6365 IFS="$ac_save_IFS"
6367 nocommon_flag=""
6368 if test x$ac_checking != x ; then
6370 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6372 nocommon_flag=-fno-common
6375 if test x$ac_df_checking != x ; then
6377 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6380 if test x$ac_assert_checking != x ; then
6382 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6385 if test x$ac_gimple_checking != x ; then
6387 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6391 if test x$ac_runtime_checking != x ; then
6393 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6396 if test x$ac_tree_checking != x ; then
6398 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6400 TREEBROWSER=tree-browser.o
6402 if test x$ac_types_checking != x ; then
6404 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6408 if test x$ac_rtl_checking != x ; then
6410 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6413 if test x$ac_rtlflag_checking != x ; then
6415 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6418 if test x$ac_gc_checking != x ; then
6420 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6423 if test x$ac_gc_always_collect != x ; then
6425 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6428 if test x$ac_fold_checking != x ; then
6430 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6433 valgrind_path_defines=
6434 valgrind_command=
6436 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6437 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6438 have_valgrind_h=yes
6439 else
6440 have_valgrind_h=no
6445 if test x$ac_valgrind_checking != x ; then
6446 # It is certainly possible that there's valgrind but no valgrind.h.
6447 # GCC relies on making annotations so we must have both.
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6449 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 #include <valgrind/memcheck.h>
6453 #ifndef VALGRIND_DISCARD
6454 #error VALGRIND_DISCARD not defined
6455 #endif
6456 _ACEOF
6457 if ac_fn_c_try_cpp "$LINENO"; then :
6458 gcc_cv_header_valgrind_memcheck_h=yes
6459 else
6460 gcc_cv_header_valgrind_memcheck_h=no
6462 rm -f conftest.err conftest.$ac_ext
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6464 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6466 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6469 #include <memcheck.h>
6470 #ifndef VALGRIND_DISCARD
6471 #error VALGRIND_DISCARD not defined
6472 #endif
6473 _ACEOF
6474 if ac_fn_c_try_cpp "$LINENO"; then :
6475 gcc_cv_header_memcheck_h=yes
6476 else
6477 gcc_cv_header_memcheck_h=no
6479 rm -f conftest.err conftest.$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6481 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6483 # Prepare PATH_SEPARATOR.
6484 # The user is always right.
6485 if test "${PATH_SEPARATOR+set}" != set; then
6486 echo "#! /bin/sh" >conf$$.sh
6487 echo "exit 0" >>conf$$.sh
6488 chmod +x conf$$.sh
6489 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6490 PATH_SEPARATOR=';'
6491 else
6492 PATH_SEPARATOR=:
6494 rm -f conf$$.sh
6497 # Find out how to test for executable files. Don't use a zero-byte file,
6498 # as systems may use methods other than mode bits to determine executability.
6499 cat >conf$$.file <<_ASEOF
6500 #! /bin/sh
6501 exit 0
6502 _ASEOF
6503 chmod +x conf$$.file
6504 if test -x conf$$.file >/dev/null 2>&1; then
6505 ac_executable_p="test -x"
6506 else
6507 ac_executable_p="test -f"
6509 rm -f conf$$.file
6511 # Extract the first word of "valgrind", so it can be a program name with args.
6512 set dummy valgrind; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 case "$valgrind_path" in
6519 [\\/]* | ?:[\\/]*)
6520 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6523 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6524 for ac_dir in $PATH; do
6525 IFS="$ac_save_IFS"
6526 test -z "$ac_dir" && ac_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6529 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6530 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6531 break 2
6534 done
6535 done
6536 IFS="$ac_save_IFS"
6538 esac
6540 valgrind_path="$ac_cv_path_valgrind_path"
6541 if test -n "$valgrind_path"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6543 $as_echo "$valgrind_path" >&6; }
6544 else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6549 if test "x$valgrind_path" = "x" \
6550 || (test $have_valgrind_h = no \
6551 && test $gcc_cv_header_memcheck_h = no \
6552 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6553 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6555 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6556 valgrind_command="$valgrind_path -q"
6558 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6560 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6562 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6565 if test $gcc_cv_header_memcheck_h = yes; then
6567 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6574 # Enable code coverage collection
6575 # Check whether --enable-coverage was given.
6576 if test "${enable_coverage+set}" = set; then :
6577 enableval=$enable_coverage; case "${enableval}" in
6578 yes|noopt)
6579 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6581 opt)
6582 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6585 # a.k.a. --disable-coverage
6586 coverage_flags=""
6589 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6591 esac
6592 else
6593 coverage_flags=""
6598 # Check whether --enable-gather-detailed-mem-stats was given.
6599 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6600 enableval=$enable_gather_detailed_mem_stats;
6601 else
6602 enable_gather_detailed_mem_stats=no
6605 if test x$enable_gather_detailed_mem_stats = xyes ; then
6607 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6611 # -------------------------------
6612 # Miscenalleous configure options
6613 # -------------------------------
6615 # See if we are building gcc with C++.
6616 # Check whether --enable-build-with-cxx was given.
6617 if test "${enable_build_with_cxx+set}" = set; then :
6618 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6619 else
6620 ENABLE_BUILD_WITH_CXX=no
6625 # With stabs
6627 # Check whether --with-stabs was given.
6628 if test "${with_stabs+set}" = set; then :
6629 withval=$with_stabs; stabs="$with_stabs"
6630 else
6631 stabs=no
6635 # Determine whether or not multilibs are enabled.
6636 # Check whether --enable-multilib was given.
6637 if test "${enable_multilib+set}" = set; then :
6638 enableval=$enable_multilib;
6639 else
6640 enable_multilib=yes
6645 # Enable __cxa_atexit for C++.
6646 # Check whether --enable-__cxa_atexit was given.
6647 if test "${enable___cxa_atexit+set}" = set; then :
6648 enableval=$enable___cxa_atexit;
6652 # Enable C extension for decimal float if target supports it.
6654 # Check whether --enable-decimal-float was given.
6655 if test "${enable_decimal_float+set}" = set; then :
6656 enableval=$enable_decimal_float;
6657 case $enable_decimal_float in
6658 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6659 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6660 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6661 esac
6663 else
6665 case $target in
6666 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6667 i?86*-*-mingw* | x86_64*-*-mingw* | \
6668 i?86*-*-cygwin*)
6669 enable_decimal_float=yes
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6673 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6674 enable_decimal_float=no
6676 esac
6681 # x86's use BID format instead of DPD
6682 case x$enable_decimal_float in
6683 xyes)
6684 case $target in
6685 i?86*-*-* | x86_64*-*-*)
6686 enable_decimal_float=bid
6689 enable_decimal_float=dpd
6691 esac
6692 default_decimal_float=$enable_decimal_float
6694 xno)
6695 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6696 # dependency on libdecnumber.
6697 default_decimal_float=dpd
6699 esac
6704 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6706 cat >>confdefs.h <<_ACEOF
6707 #define ENABLE_DECIMAL_FLOAT $dfp
6708 _ACEOF
6711 # Use default_decimal_float for dependency.
6712 enable_decimal_float=$default_decimal_float
6714 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6716 cat >>confdefs.h <<_ACEOF
6717 #define ENABLE_DECIMAL_BID_FORMAT $bid
6718 _ACEOF
6721 # Enable C extension for fixed-point arithmetic.
6722 # Check whether --enable-fixed-point was given.
6723 if test "${enable_fixed_point+set}" = set; then :
6724 enableval=$enable_fixed_point;
6726 else
6728 case $target in
6729 mips*-*-*)
6730 case $host in
6731 mips*-sgi-irix*)
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6733 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6734 enable_fixed_point=no
6737 enable_fixed_point=yes
6739 esac
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6743 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6744 enable_fixed_point=no
6746 esac
6752 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6754 cat >>confdefs.h <<_ACEOF
6755 #define ENABLE_FIXED_POINT $fixedpoint
6756 _ACEOF
6759 # Enable threads
6760 # Pass with no value to take the default
6761 # Pass with a value to specify a thread package
6762 # Check whether --enable-threads was given.
6763 if test "${enable_threads+set}" = set; then :
6764 enableval=$enable_threads;
6765 else
6766 enable_threads=''
6770 # Check whether --enable-tls was given.
6771 if test "${enable_tls+set}" = set; then :
6772 enableval=$enable_tls;
6773 case $enable_tls in
6774 yes | no) ;;
6775 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6776 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6777 esac
6779 else
6780 enable_tls=''
6784 # Check whether --enable-objc-gc was given.
6785 if test "${enable_objc_gc+set}" = set; then :
6786 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6787 objc_boehm_gc=''
6788 else
6789 objc_boehm_gc=1
6791 else
6792 objc_boehm_gc=''
6797 # Check whether --with-dwarf2 was given.
6798 if test "${with_dwarf2+set}" = set; then :
6799 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6800 else
6801 dwarf2=no
6805 # Check whether --enable-shared was given.
6806 if test "${enable_shared+set}" = set; then :
6807 enableval=$enable_shared;
6808 case $enable_shared in
6809 yes | no) ;;
6811 enable_shared=no
6812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6813 for pkg in $enableval; do
6814 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6815 enable_shared=yes
6817 done
6818 IFS="$ac_save_ifs"
6820 esac
6822 else
6823 enable_shared=yes
6829 # Check whether --with-build-sysroot was given.
6830 if test "${with_build_sysroot+set}" = set; then :
6831 withval=$with_build_sysroot;
6836 # Check whether --with-sysroot was given.
6837 if test "${with_sysroot+set}" = set; then :
6838 withval=$with_sysroot;
6839 case ${with_sysroot} in
6840 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6841 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6842 esac
6844 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6845 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6847 if test "x$prefix" = xNONE; then
6848 test_prefix=/usr/local
6849 else
6850 test_prefix=$prefix
6852 if test "x$exec_prefix" = xNONE; then
6853 test_exec_prefix=$test_prefix
6854 else
6855 test_exec_prefix=$exec_prefix
6857 case ${TARGET_SYSTEM_ROOT} in
6858 "${test_prefix}"|"${test_prefix}/"*|\
6859 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6860 '${prefix}'|'${prefix}/'*|\
6861 '${exec_prefix}'|'${exec_prefix}/'*)
6862 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6863 TARGET_SYSTEM_ROOT_DEFINE="$t"
6865 esac
6867 else
6869 TARGET_SYSTEM_ROOT=
6870 TARGET_SYSTEM_ROOT_DEFINE=
6871 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6880 # Check whether --with-specs was given.
6881 if test "${with_specs+set}" = set; then :
6882 withval=$with_specs; CONFIGURE_SPECS=$withval
6883 else
6884 CONFIGURE_SPECS=
6892 # Check whether --with-pkgversion was given.
6893 if test "${with_pkgversion+set}" = set; then :
6894 withval=$with_pkgversion; case "$withval" in
6895 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6896 no) PKGVERSION= ;;
6897 *) PKGVERSION="($withval) " ;;
6898 esac
6899 else
6900 PKGVERSION="(GCC) "
6908 # Check whether --with-bugurl was given.
6909 if test "${with_bugurl+set}" = set; then :
6910 withval=$with_bugurl; case "$withval" in
6911 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6912 no) BUGURL=
6914 *) BUGURL="$withval"
6916 esac
6917 else
6918 BUGURL="http://gcc.gnu.org/bugs.html"
6922 case ${BUGURL} in
6924 REPORT_BUGS_TO=
6925 REPORT_BUGS_TEXI=
6928 REPORT_BUGS_TO="<$BUGURL>"
6929 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6931 esac;
6936 # Sanity check enable_languages in case someone does not run the toplevel
6937 # configure # script.
6938 # Check whether --enable-languages was given.
6939 if test "${enable_languages+set}" = set; then :
6940 enableval=$enable_languages; case ,${enable_languages}, in
6941 ,,|,yes,)
6942 # go safe -- we cannot be much sure without the toplevel
6943 # configure's
6944 # analysis of which target libs are present and usable
6945 enable_languages=c
6947 *,all,*)
6948 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6950 *,c,*)
6953 enable_languages=c,${enable_languages}
6955 esac
6956 else
6957 enable_languages=c
6962 # Check whether --with-multilib-list was given.
6963 if test "${with_multilib_list+set}" = set; then :
6964 withval=$with_multilib_list; :
6965 else
6966 with_multilib_list=default
6970 # -------------------------
6971 # Checks for other programs
6972 # -------------------------
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6975 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6976 set x ${MAKE-make}
6977 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6978 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 cat >conftest.make <<\_ACEOF
6982 SHELL = /bin/sh
6983 all:
6984 @echo '@@@%%%=$(MAKE)=@@@%%%'
6985 _ACEOF
6986 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6987 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6988 *@@@%%%=?*=@@@%%%*)
6989 eval ac_cv_prog_make_${ac_make}_set=yes;;
6991 eval ac_cv_prog_make_${ac_make}_set=no;;
6992 esac
6993 rm -f conftest.make
6995 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6997 $as_echo "yes" >&6; }
6998 SET_MAKE=
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 SET_MAKE="MAKE=${MAKE-make}"
7006 # Find some useful tools
7007 for ac_prog in gawk mawk nawk awk
7009 # Extract the first word of "$ac_prog", so it can be a program name with args.
7010 set dummy $ac_prog; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if test "${ac_cv_prog_AWK+set}" = set; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 if test -n "$AWK"; then
7017 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7018 else
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_prog_AWK="$ac_prog"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 break 2
7030 done
7031 done
7032 IFS=$as_save_IFS
7036 AWK=$ac_cv_prog_AWK
7037 if test -n "$AWK"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7039 $as_echo "$AWK" >&6; }
7040 else
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7046 test -n "$AWK" && break
7047 done
7049 # We need awk to create options.c and options.h.
7050 # Bail out if it's missing.
7051 case ${AWK} in
7052 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7053 esac
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7056 $as_echo_n "checking whether ln -s works... " >&6; }
7057 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 rm -f conftestdata_t
7061 echo >conftestdata_f
7062 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7063 then
7064 gcc_cv_prog_LN_S="ln -s"
7065 else
7066 if ln conftestdata_f conftestdata_t 2>/dev/null
7067 then
7068 gcc_cv_prog_LN_S=ln
7069 else
7070 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7071 then
7072 gcc_cv_prog_LN_S="cp -p"
7073 else
7074 gcc_cv_prog_LN_S=cp
7078 rm -f conftestdata_f conftestdata_t
7081 LN_S="$gcc_cv_prog_LN_S"
7082 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7084 $as_echo "yes" >&6; }
7085 else
7086 if test "$gcc_cv_prog_LN_S" = "ln"; then
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7088 $as_echo "no, using ln" >&6; }
7089 else
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7091 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7096 $as_echo_n "checking whether ln works... " >&6; }
7097 if test "${acx_cv_prog_LN+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 rm -f conftestdata_t
7101 echo >conftestdata_f
7102 if ln conftestdata_f conftestdata_t 2>/dev/null
7103 then
7104 acx_cv_prog_LN=ln
7105 else
7106 acx_cv_prog_LN=no
7108 rm -f conftestdata_f conftestdata_t
7111 if test $acx_cv_prog_LN = no; then
7112 LN="$LN_S"
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7114 $as_echo "no, using $LN" >&6; }
7115 else
7116 LN="$acx_cv_prog_LN"
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7118 $as_echo "yes" >&6; }
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 if test -n "$RANLIB"; then
7130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7143 done
7144 done
7145 IFS=$as_save_IFS
7149 RANLIB=$ac_cv_prog_RANLIB
7150 if test -n "$RANLIB"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7152 $as_echo "$RANLIB" >&6; }
7153 else
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7160 if test -z "$ac_cv_prog_RANLIB"; then
7161 ac_ct_RANLIB=$RANLIB
7162 # Extract the first word of "ranlib", so it can be a program name with args.
7163 set dummy ranlib; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 if test -n "$ac_ct_RANLIB"; then
7170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_prog_ac_ct_RANLIB="ranlib"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7183 done
7184 done
7185 IFS=$as_save_IFS
7189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7190 if test -n "$ac_ct_RANLIB"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7192 $as_echo "$ac_ct_RANLIB" >&6; }
7193 else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7198 if test "x$ac_ct_RANLIB" = x; then
7199 RANLIB=":"
7200 else
7201 case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207 RANLIB=$ac_ct_RANLIB
7209 else
7210 RANLIB="$ac_cv_prog_RANLIB"
7213 case "${host}" in
7214 *-*-darwin*)
7215 # By default, the Darwin ranlib will not treat common symbols as
7216 # definitions when building the archive table of contents. Other
7217 # ranlibs do that; pass an option to the Darwin ranlib that makes
7218 # it behave similarly.
7219 ranlib_flags="-c"
7222 ranlib_flags=""
7223 esac
7226 # Find a good install program. We prefer a C program (faster),
7227 # so one script is as good as another. But avoid the broken or
7228 # incompatible versions:
7229 # SysV /etc/install, /usr/sbin/install
7230 # SunOS /usr/etc/install
7231 # IRIX /sbin/install
7232 # AIX /bin/install
7233 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7234 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7235 # ./install, which can be erroneously created by make from ./install.sh.
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7237 $as_echo_n "checking for a BSD compatible install... " >&6; }
7238 if test -z "$INSTALL"; then
7239 if test "${ac_cv_path_install+set}" = set; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7243 for ac_dir in $PATH; do
7244 # Account for people who put trailing slashes in PATH elements.
7245 case "$ac_dir/" in
7246 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7248 # OSF1 and SCO ODT 3.0 have their own names for install.
7249 for ac_prog in ginstall scoinst install; do
7250 if test -f $ac_dir/$ac_prog; then
7251 if test $ac_prog = install &&
7252 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7253 # AIX install. It has an incompatible calling convention.
7254 # OSF/1 installbsd also uses dspmsg, but is usable.
7256 else
7257 ac_cv_path_install="$ac_dir/$ac_prog -c"
7258 break 2
7261 done
7263 esac
7264 done
7265 IFS="$ac_save_IFS"
7268 if test "${ac_cv_path_install+set}" = set; then
7269 INSTALL="$ac_cv_path_install"
7270 else
7271 # As a last resort, use the slow shell script. We don't cache a
7272 # path for INSTALL within a source directory, because that will
7273 # break other packages using the cache if that directory is
7274 # removed, or if the path is relative.
7275 INSTALL="$ac_install_sh"
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7279 $as_echo "$INSTALL" >&6; }
7281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7282 # It thinks the first close brace ends the variable substitution.
7283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7285 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7288 # See if cmp has --ignore-initial.
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7290 $as_echo_n "checking for cmp's capabilities... " >&6; }
7291 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 echo abfoo >t1
7295 echo cdfoo >t2
7296 gcc_cv_prog_cmp_skip=slowcompare
7297 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7298 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7300 else
7301 gcc_cv_prog_cmp_skip=gnucompare
7304 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7305 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7306 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7308 else
7309 gcc_cv_prog_cmp_skip=fastcompare
7313 rm t1 t2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7317 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7318 make_compare_target=$gcc_cv_prog_cmp_skip
7322 # See if we have the mktemp command.
7323 # Extract the first word of "mktemp", so it can be a program name with args.
7324 set dummy mktemp; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$have_mktemp_command"; then
7331 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_prog_have_mktemp_command="yes"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7344 done
7345 done
7346 IFS=$as_save_IFS
7348 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7351 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7352 if test -n "$have_mktemp_command"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7354 $as_echo "$have_mktemp_command" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 # See if makeinfo has been installed and is modern enough
7363 # that we can use it.
7365 # Extract the first word of "makeinfo", so it can be a program name with args.
7366 set dummy makeinfo; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 if test -n "$MAKEINFO"; then
7373 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_prog_MAKEINFO="makeinfo"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7386 done
7387 done
7388 IFS=$as_save_IFS
7392 MAKEINFO=$ac_cv_prog_MAKEINFO
7393 if test -n "$MAKEINFO"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7395 $as_echo "$MAKEINFO" >&6; }
7396 else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7402 if test -n "$MAKEINFO"; then
7403 # Found it, now check the version.
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7405 $as_echo_n "checking for modern makeinfo... " >&6; }
7406 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7410 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7412 case $ac_prog_version in
7413 '') gcc_cv_prog_makeinfo_modern=no;;
7414 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7415 *) gcc_cv_prog_makeinfo_modern=no;;
7416 esac
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7420 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7421 else
7422 gcc_cv_prog_makeinfo_modern=no
7424 if test $gcc_cv_prog_makeinfo_modern = no; then
7425 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7428 if test $gcc_cv_prog_makeinfo_modern = no; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7430 *** Makeinfo is missing or too old.
7431 *** Info documentation will not be built." >&5
7432 $as_echo "$as_me: WARNING:
7433 *** Makeinfo is missing or too old.
7434 *** Info documentation will not be built." >&2;}
7435 BUILD_INFO=
7436 else
7437 BUILD_INFO=info
7441 # Is pod2man recent enough to regenerate manpages?
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7443 $as_echo_n "checking for recent Pod::Man... " >&6; }
7444 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446 $as_echo "yes" >&6; }
7447 GENERATED_MANPAGES=generated-manpages
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 GENERATED_MANPAGES=
7455 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7457 # How about lex?
7458 for ac_prog in flex
7460 # Extract the first word of "$ac_prog", so it can be a program name with args.
7461 set dummy $ac_prog; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if test "${ac_cv_prog_FLEX+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 if test -n "$FLEX"; then
7468 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477 ac_cv_prog_FLEX="$ac_prog"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7481 done
7482 done
7483 IFS=$as_save_IFS
7487 FLEX=$ac_cv_prog_FLEX
7488 if test -n "$FLEX"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7490 $as_echo "$FLEX" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7497 test -n "$FLEX" && break
7498 done
7499 test -n "$FLEX" || FLEX="$MISSING flex"
7502 # Bison?
7503 for ac_prog in bison
7505 # Extract the first word of "$ac_prog", so it can be a program name with args.
7506 set dummy $ac_prog; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if test "${ac_cv_prog_BISON+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$BISON"; then
7513 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_prog_BISON="$ac_prog"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7526 done
7527 done
7528 IFS=$as_save_IFS
7532 BISON=$ac_cv_prog_BISON
7533 if test -n "$BISON"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7535 $as_echo "$BISON" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7542 test -n "$BISON" && break
7543 done
7544 test -n "$BISON" || BISON="$MISSING bison"
7547 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7548 # check for build == host before using them.
7550 # NM
7551 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7552 && test -d ../binutils ; then
7553 NM='${objdir}/../binutils/nm-new'
7554 else
7555 # Extract the first word of "nm", so it can be a program name with args.
7556 set dummy nm; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_NM+set}" = set; then :
7560 $as_echo_n "(cached) " >&6
7561 else
7562 if test -n "$NM"; then
7563 ac_cv_prog_NM="$NM" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7568 IFS=$as_save_IFS
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572 ac_cv_prog_NM="nm"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 break 2
7576 done
7577 done
7578 IFS=$as_save_IFS
7580 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7583 NM=$ac_cv_prog_NM
7584 if test -n "$NM"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7586 $as_echo "$NM" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7595 # AR
7596 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7597 && test -d ../binutils ; then
7598 AR='${objdir}/../binutils/ar'
7599 else
7600 # Extract the first word of "ar", so it can be a program name with args.
7601 set dummy ar; ac_word=$2
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603 $as_echo_n "checking for $ac_word... " >&6; }
7604 if test "${ac_cv_prog_AR+set}" = set; then :
7605 $as_echo_n "(cached) " >&6
7606 else
7607 if test -n "$AR"; then
7608 ac_cv_prog_AR="$AR" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
7616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617 ac_cv_prog_AR="ar"
7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7621 done
7622 done
7623 IFS=$as_save_IFS
7625 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7628 AR=$ac_cv_prog_AR
7629 if test -n "$AR"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7631 $as_echo "$AR" >&6; }
7632 else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634 $as_echo "no" >&6; }
7641 # --------------------
7642 # Checks for C headers
7643 # --------------------
7645 # Need to reject headers which give warnings, so that the -Werror bootstrap
7646 # works later. *sigh* This needs to come before all header checks.
7648 ac_c_preproc_warn_flag=yes
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7651 $as_echo_n "checking for ANSI C header files... " >&6; }
7652 if test "${ac_cv_header_stdc+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <stdlib.h>
7658 #include <stdarg.h>
7659 #include <string.h>
7660 #include <float.h>
7663 main ()
7667 return 0;
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"; then :
7671 ac_cv_header_stdc=yes
7672 else
7673 ac_cv_header_stdc=no
7675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 if test $ac_cv_header_stdc = yes; then
7678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #include <string.h>
7683 _ACEOF
7684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 $EGREP "memchr" >/dev/null 2>&1; then :
7687 else
7688 ac_cv_header_stdc=no
7690 rm -f conftest*
7694 if test $ac_cv_header_stdc = yes; then
7695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 #include <stdlib.h>
7700 _ACEOF
7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7702 $EGREP "free" >/dev/null 2>&1; then :
7704 else
7705 ac_cv_header_stdc=no
7707 rm -f conftest*
7711 if test $ac_cv_header_stdc = yes; then
7712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7713 if test "$cross_compiling" = yes; then :
7715 else
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 #include <ctype.h>
7719 #include <stdlib.h>
7720 #if ((' ' & 0x0FF) == 0x020)
7721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7723 #else
7724 # define ISLOWER(c) \
7725 (('a' <= (c) && (c) <= 'i') \
7726 || ('j' <= (c) && (c) <= 'r') \
7727 || ('s' <= (c) && (c) <= 'z'))
7728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7729 #endif
7731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7733 main ()
7735 int i;
7736 for (i = 0; i < 256; i++)
7737 if (XOR (islower (i), ISLOWER (i))
7738 || toupper (i) != TOUPPER (i))
7739 return 2;
7740 return 0;
7742 _ACEOF
7743 if ac_fn_c_try_run "$LINENO"; then :
7745 else
7746 ac_cv_header_stdc=no
7748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7749 conftest.$ac_objext conftest.beam conftest.$ac_ext
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7755 $as_echo "$ac_cv_header_stdc" >&6; }
7756 if test $ac_cv_header_stdc = yes; then
7758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7763 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7764 if test "${ac_cv_header_time+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7766 else
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7769 #include <sys/types.h>
7770 #include <sys/time.h>
7771 #include <time.h>
7774 main ()
7776 if ((struct tm *) 0)
7777 return 0;
7779 return 0;
7781 _ACEOF
7782 if ac_fn_c_try_compile "$LINENO"; then :
7783 ac_cv_header_time=yes
7784 else
7785 ac_cv_header_time=no
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7790 $as_echo "$ac_cv_header_time" >&6; }
7791 if test $ac_cv_header_time = yes; then
7793 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7798 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7799 if test "${gcc_cv_header_string+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 #include <string.h>
7805 #include <strings.h>
7807 main ()
7811 return 0;
7813 _ACEOF
7814 if ac_fn_c_try_compile "$LINENO"; then :
7815 gcc_cv_header_string=yes
7816 else
7817 gcc_cv_header_string=no
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7822 $as_echo "$gcc_cv_header_string" >&6; }
7823 if test $gcc_cv_header_string = yes; then
7825 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7830 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7831 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 #include <sys/types.h>
7837 #include <sys/wait.h>
7838 #ifndef WEXITSTATUS
7839 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7840 #endif
7841 #ifndef WIFEXITED
7842 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7843 #endif
7846 main ()
7848 int s;
7849 wait (&s);
7850 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7852 return 0;
7854 _ACEOF
7855 if ac_fn_c_try_compile "$LINENO"; then :
7856 ac_cv_header_sys_wait_h=yes
7857 else
7858 ac_cv_header_sys_wait_h=no
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7863 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7864 if test $ac_cv_header_sys_wait_h = yes; then
7866 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7870 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7871 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7872 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7873 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7874 do :
7875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7877 eval as_val=\$$as_ac_Header
7878 if test "x$as_val" = x""yes; then :
7879 cat >>confdefs.h <<_ACEOF
7880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7881 _ACEOF
7884 done
7887 # Check for thread headers.
7888 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7889 if test "x$ac_cv_header_thread_h" = x""yes; then :
7890 have_thread_h=yes
7891 else
7892 have_thread_h=
7895 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7896 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7897 have_pthread_h=yes
7898 else
7899 have_pthread_h=
7903 # These tests can't be done till we know if we have limits.h.
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7905 $as_echo_n "checking for CHAR_BIT... " >&6; }
7906 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7911 #ifdef HAVE_LIMITS_H
7912 #include <limits.h>
7913 #endif
7914 #ifdef CHAR_BIT
7915 found
7916 #endif
7917 _ACEOF
7918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7919 $EGREP "found" >/dev/null 2>&1; then :
7920 gcc_cv_decl_char_bit=yes
7921 else
7922 gcc_cv_decl_char_bit=no
7924 rm -f conftest*
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7929 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7930 if test $gcc_cv_decl_char_bit = no; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7932 $as_echo_n "checking number of bits in a byte... " >&6; }
7933 if test "${gcc_cv_c_nbby+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7937 gcc_cv_c_nbby=
7938 while test $i -lt 65; do
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7943 main ()
7945 switch(0) {
7946 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7947 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7950 return 0;
7952 _ACEOF
7953 if ac_fn_c_try_compile "$LINENO"; then :
7954 gcc_cv_c_nbby=$i; break
7956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 i=`expr $i + 1`
7958 done
7959 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7963 $as_echo "$gcc_cv_c_nbby" >&6; }
7964 if test $gcc_cv_c_nbby = failed; then
7965 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7966 else
7968 cat >>confdefs.h <<_ACEOF
7969 #define CHAR_BIT $gcc_cv_c_nbby
7970 _ACEOF
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7975 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7976 if test "${ac_cv_c_bigendian+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 ac_cv_c_bigendian=unknown
7980 # See if we're dealing with a universal compiler.
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 #ifndef __APPLE_CC__
7984 not a universal capable compiler
7985 #endif
7986 typedef int dummy;
7988 _ACEOF
7989 if ac_fn_c_try_compile "$LINENO"; then :
7991 # Check for potential -arch flags. It is not universal unless
7992 # there are at least two -arch flags with different values.
7993 ac_arch=
7994 ac_prev=
7995 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7996 if test -n "$ac_prev"; then
7997 case $ac_word in
7998 i?86 | x86_64 | ppc | ppc64)
7999 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8000 ac_arch=$ac_word
8001 else
8002 ac_cv_c_bigendian=universal
8003 break
8006 esac
8007 ac_prev=
8008 elif test "x$ac_word" = "x-arch"; then
8009 ac_prev=arch
8011 done
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 if test $ac_cv_c_bigendian = unknown; then
8015 # See if sys/param.h defines the BYTE_ORDER macro.
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8018 #include <sys/types.h>
8019 #include <sys/param.h>
8022 main ()
8024 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8025 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8026 && LITTLE_ENDIAN)
8027 bogus endian macros
8028 #endif
8031 return 0;
8033 _ACEOF
8034 if ac_fn_c_try_compile "$LINENO"; then :
8035 # It does; now see whether it defined to BIG_ENDIAN or not.
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 #include <sys/types.h>
8039 #include <sys/param.h>
8042 main ()
8044 #if BYTE_ORDER != BIG_ENDIAN
8045 not big endian
8046 #endif
8049 return 0;
8051 _ACEOF
8052 if ac_fn_c_try_compile "$LINENO"; then :
8053 ac_cv_c_bigendian=yes
8054 else
8055 ac_cv_c_bigendian=no
8057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 if test $ac_cv_c_bigendian = unknown; then
8062 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8065 #include <limits.h>
8068 main ()
8070 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8071 bogus endian macros
8072 #endif
8075 return 0;
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"; then :
8079 # It does; now see whether it defined to _BIG_ENDIAN or not.
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 #include <limits.h>
8085 main ()
8087 #ifndef _BIG_ENDIAN
8088 not big endian
8089 #endif
8092 return 0;
8094 _ACEOF
8095 if ac_fn_c_try_compile "$LINENO"; then :
8096 ac_cv_c_bigendian=yes
8097 else
8098 ac_cv_c_bigendian=no
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 if test $ac_cv_c_bigendian = unknown; then
8105 # Compile a test program.
8106 if test "$cross_compiling" = yes; then :
8107 # Try to guess by grepping values from an object file.
8108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8109 /* end confdefs.h. */
8110 short int ascii_mm[] =
8111 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8112 short int ascii_ii[] =
8113 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8114 int use_ascii (int i) {
8115 return ascii_mm[i] + ascii_ii[i];
8117 short int ebcdic_ii[] =
8118 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8119 short int ebcdic_mm[] =
8120 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8121 int use_ebcdic (int i) {
8122 return ebcdic_mm[i] + ebcdic_ii[i];
8124 extern int foo;
8127 main ()
8129 return use_ascii (foo) == use_ebcdic (foo);
8131 return 0;
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8136 ac_cv_c_bigendian=yes
8138 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8139 if test "$ac_cv_c_bigendian" = unknown; then
8140 ac_cv_c_bigendian=no
8141 else
8142 # finding both strings is unlikely to happen, but who knows?
8143 ac_cv_c_bigendian=unknown
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 else
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8151 $ac_includes_default
8153 main ()
8156 /* Are we little or big endian? From Harbison&Steele. */
8157 union
8159 long int l;
8160 char c[sizeof (long int)];
8161 } u;
8162 u.l = 1;
8163 return u.c[sizeof (long int) - 1] == 1;
8166 return 0;
8168 _ACEOF
8169 if ac_fn_c_try_run "$LINENO"; then :
8170 ac_cv_c_bigendian=no
8171 else
8172 ac_cv_c_bigendian=yes
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175 conftest.$ac_objext conftest.beam conftest.$ac_ext
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8181 $as_echo "$ac_cv_c_bigendian" >&6; }
8182 case $ac_cv_c_bigendian in #(
8183 yes)
8184 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8185 ;; #(
8187 ;; #(
8188 universal)
8190 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8192 ;; #(
8194 as_fn_error "unknown endianness
8195 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8196 esac
8199 # --------
8200 # UNSORTED
8201 # --------
8204 # These libraries may be used by collect2.
8205 # We may need a special search path to get them linked.
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8207 $as_echo_n "checking for collect2 libraries... " >&6; }
8208 if test "${gcc_cv_collect2_libs+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 save_LIBS="$LIBS"
8212 for libs in '' -lld -lmld \
8213 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8214 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8216 LIBS="$libs"
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8220 /* Override any GCC internal prototype to avoid an error.
8221 Use char because int might match the return type of a GCC
8222 builtin and then its argument prototype would still apply. */
8223 #ifdef __cplusplus
8224 extern "C"
8225 #endif
8226 char ldopen ();
8228 main ()
8230 return ldopen ();
8232 return 0;
8234 _ACEOF
8235 if ac_fn_c_try_link "$LINENO"; then :
8236 gcc_cv_collect2_libs="$libs"; break
8238 rm -f core conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 done
8241 LIBS="$save_LIBS"
8242 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8245 $as_echo "$gcc_cv_collect2_libs" >&6; }
8246 case $gcc_cv_collect2_libs in
8247 "none required") ;;
8248 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8249 esac
8252 # When building Ada code on Alpha, we need exc_resume which is usually in
8253 # -lexc. So test for it.
8254 save_LIBS="$LIBS"
8255 LIBS=
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8257 $as_echo_n "checking for library containing exc_resume... " >&6; }
8258 if test "${ac_cv_search_exc_resume+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 ac_func_search_save_LIBS=$LIBS
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8265 /* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 char exc_resume ();
8273 main ()
8275 return exc_resume ();
8277 return 0;
8279 _ACEOF
8280 for ac_lib in '' exc; do
8281 if test -z "$ac_lib"; then
8282 ac_res="none required"
8283 else
8284 ac_res=-l$ac_lib
8285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8287 if ac_fn_c_try_link "$LINENO"; then :
8288 ac_cv_search_exc_resume=$ac_res
8290 rm -f core conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext
8292 if test "${ac_cv_search_exc_resume+set}" = set; then :
8293 break
8295 done
8296 if test "${ac_cv_search_exc_resume+set}" = set; then :
8298 else
8299 ac_cv_search_exc_resume=no
8301 rm conftest.$ac_ext
8302 LIBS=$ac_func_search_save_LIBS
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8305 $as_echo "$ac_cv_search_exc_resume" >&6; }
8306 ac_res=$ac_cv_search_exc_resume
8307 if test "$ac_res" != no; then :
8308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8312 GNAT_LIBEXC="$LIBS"
8313 LIBS="$save_LIBS"
8316 # Some systems put ldexp and frexp in libm instead of libc; assume
8317 # they're both in the same place. jcf-dump needs them.
8318 save_LIBS="$LIBS"
8319 LIBS=
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8321 $as_echo_n "checking for library containing ldexp... " >&6; }
8322 if test "${ac_cv_search_ldexp+set}" = set; then :
8323 $as_echo_n "(cached) " >&6
8324 else
8325 ac_func_search_save_LIBS=$LIBS
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8329 /* Override any GCC internal prototype to avoid an error.
8330 Use char because int might match the return type of a GCC
8331 builtin and then its argument prototype would still apply. */
8332 #ifdef __cplusplus
8333 extern "C"
8334 #endif
8335 char ldexp ();
8337 main ()
8339 return ldexp ();
8341 return 0;
8343 _ACEOF
8344 for ac_lib in '' m; do
8345 if test -z "$ac_lib"; then
8346 ac_res="none required"
8347 else
8348 ac_res=-l$ac_lib
8349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8351 if ac_fn_c_try_link "$LINENO"; then :
8352 ac_cv_search_ldexp=$ac_res
8354 rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext
8356 if test "${ac_cv_search_ldexp+set}" = set; then :
8357 break
8359 done
8360 if test "${ac_cv_search_ldexp+set}" = set; then :
8362 else
8363 ac_cv_search_ldexp=no
8365 rm conftest.$ac_ext
8366 LIBS=$ac_func_search_save_LIBS
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8369 $as_echo "$ac_cv_search_ldexp" >&6; }
8370 ac_res=$ac_cv_search_ldexp
8371 if test "$ac_res" != no; then :
8372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8376 LDEXP_LIB="$LIBS"
8377 LIBS="$save_LIBS"
8380 # Use <inttypes.h> only if it exists,
8381 # doesn't clash with <sys/types.h>, and declares intmax_t.
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8383 $as_echo_n "checking for inttypes.h... " >&6; }
8384 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8389 #include <sys/types.h>
8390 #include <inttypes.h>
8392 main ()
8394 intmax_t i = -1;
8396 return 0;
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"; then :
8400 gcc_cv_header_inttypes_h=yes
8401 else
8402 gcc_cv_header_inttypes_h=no
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8408 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8409 if test $gcc_cv_header_inttypes_h = yes; then
8411 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8417 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8418 sysconf strsignal getrusage nl_langinfo \
8419 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8420 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
8421 do :
8422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8424 eval as_val=\$$as_ac_var
8425 if test "x$as_val" = x""yes; then :
8426 cat >>confdefs.h <<_ACEOF
8427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8428 _ACEOF
8431 done
8434 save_CPPFLAGS="$CPPFLAGS"
8435 save_LIBS="$LIBS"
8436 LIBS="$LIBS $LIBELFLIBS"
8437 for ac_func in elf_getshdrstrndx
8438 do :
8439 ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8440 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8441 cat >>confdefs.h <<_ACEOF
8442 #define HAVE_ELF_GETSHDRSTRNDX 1
8443 _ACEOF
8445 else
8446 for ac_func in elf_getshstrndx
8447 do :
8448 ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8449 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8450 cat >>confdefs.h <<_ACEOF
8451 #define HAVE_ELF_GETSHSTRNDX 1
8452 _ACEOF
8453 if test "$cross_compiling" = yes; then :
8454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8456 as_fn_error "cannot run test program while cross compiling
8457 See \`config.log' for more details." "$LINENO" 5; }
8458 else
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <stdlib.h>
8462 #include <libelf.h>
8463 int main()
8465 return elf_getshstrndx (NULL, 0) == 0;
8467 _ACEOF
8468 if ac_fn_c_try_run "$LINENO"; then :
8470 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8474 conftest.$ac_objext conftest.beam conftest.$ac_ext
8478 done
8482 done
8484 LIBS="$save_LIBS"
8485 CPPFLAGS="$save_CPPFLAGS"
8487 if test x$ac_cv_func_mbstowcs = xyes; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8489 $as_echo_n "checking whether mbstowcs works... " >&6; }
8490 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 if test "$cross_compiling" = yes; then :
8494 gcc_cv_func_mbstowcs_works=yes
8495 else
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 #include <stdlib.h>
8499 int main()
8501 mbstowcs(0, "", 0);
8502 return 0;
8504 _ACEOF
8505 if ac_fn_c_try_run "$LINENO"; then :
8506 gcc_cv_func_mbstowcs_works=yes
8507 else
8508 gcc_cv_func_mbstowcs_works=no
8510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8511 conftest.$ac_objext conftest.beam conftest.$ac_ext
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8516 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8517 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8519 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8524 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8525 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8527 else
8529 cat >>confdefs.h <<_ACEOF
8530 #define ssize_t int
8531 _ACEOF
8535 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8536 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8538 else
8540 cat >>confdefs.h <<_ACEOF
8541 #define caddr_t char *
8542 _ACEOF
8548 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8549 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8550 gcc_header_sys_mman_h=yes
8551 else
8552 gcc_header_sys_mman_h=no
8555 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8556 if test "x$ac_cv_func_mmap" = x""yes; then :
8557 gcc_func_mmap=yes
8558 else
8559 gcc_func_mmap=no
8562 if test "$gcc_header_sys_mman_h" != yes \
8563 || test "$gcc_func_mmap" != yes; then
8564 gcc_cv_func_mmap_file=no
8565 gcc_cv_func_mmap_dev_zero=no
8566 gcc_cv_func_mmap_anon=no
8567 else
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8569 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8570 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 # Add a system to this blacklist if
8574 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8575 # memory area containing the same data that you'd get if you applied
8576 # read() to the same fd. The only system known to have a problem here
8577 # is VMS, where text files have record structure.
8578 case "$host_os" in
8579 vms* | ultrix*)
8580 gcc_cv_func_mmap_file=no ;;
8582 gcc_cv_func_mmap_file=yes;;
8583 esac
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8586 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8588 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8589 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 # Add a system to this blacklist if it has mmap() but /dev/zero
8593 # does not exist, or if mmapping /dev/zero does not give anonymous
8594 # zeroed pages with both the following properties:
8595 # 1. If you map N consecutive pages in with one call, and then
8596 # unmap any subset of those pages, the pages that were not
8597 # explicitly unmapped remain accessible.
8598 # 2. If you map two adjacent blocks of memory and then unmap them
8599 # both at once, they must both go away.
8600 # Systems known to be in this category are Windows (all variants),
8601 # VMS, and Darwin.
8602 case "$host_os" in
8603 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8604 gcc_cv_func_mmap_dev_zero=no ;;
8606 gcc_cv_func_mmap_dev_zero=yes;;
8607 esac
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8610 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8612 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8614 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8615 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620 #include <sys/types.h>
8621 #include <sys/mman.h>
8622 #include <unistd.h>
8624 #ifndef MAP_ANONYMOUS
8625 #define MAP_ANONYMOUS MAP_ANON
8626 #endif
8629 main ()
8631 int n = MAP_ANONYMOUS;
8633 return 0;
8635 _ACEOF
8636 if ac_fn_c_try_compile "$LINENO"; then :
8637 gcc_cv_decl_map_anon=yes
8638 else
8639 gcc_cv_decl_map_anon=no
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8644 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8646 if test $gcc_cv_decl_map_anon = no; then
8647 gcc_cv_func_mmap_anon=no
8648 else
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8650 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8651 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8655 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8656 # doesn't give anonymous zeroed pages with the same properties listed
8657 # above for use of /dev/zero.
8658 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8659 case "$host_os" in
8660 vms* | cygwin* | pe | mingw* | sco* | udk* )
8661 gcc_cv_func_mmap_anon=no ;;
8663 gcc_cv_func_mmap_anon=yes;;
8664 esac
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8667 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8671 if test $gcc_cv_func_mmap_file = yes; then
8673 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8676 if test $gcc_cv_func_mmap_dev_zero = yes; then
8678 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8681 if test $gcc_cv_func_mmap_anon = yes; then
8683 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8688 case "${host}" in
8689 *-*-*vms*)
8690 # Under VMS, vfork works very differently than on Unix. The standard test
8691 # won't work, and it isn't easily adaptable. It makes more sense to
8692 # just force it.
8693 ac_cv_func_vfork_works=yes
8695 esac
8696 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8697 if test "x$ac_cv_type_pid_t" = x""yes; then :
8699 else
8701 cat >>confdefs.h <<_ACEOF
8702 #define pid_t int
8703 _ACEOF
8707 for ac_header in vfork.h
8708 do :
8709 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8710 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8711 cat >>confdefs.h <<_ACEOF
8712 #define HAVE_VFORK_H 1
8713 _ACEOF
8716 done
8718 for ac_func in fork vfork
8719 do :
8720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8721 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8722 eval as_val=\$$as_ac_var
8723 if test "x$as_val" = x""yes; then :
8724 cat >>confdefs.h <<_ACEOF
8725 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8726 _ACEOF
8729 done
8731 if test "x$ac_cv_func_fork" = xyes; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8733 $as_echo_n "checking for working fork... " >&6; }
8734 if test "${ac_cv_func_fork_works+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 if test "$cross_compiling" = yes; then :
8738 ac_cv_func_fork_works=cross
8739 else
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 $ac_includes_default
8744 main ()
8747 /* By Ruediger Kuhlmann. */
8748 return fork () < 0;
8751 return 0;
8753 _ACEOF
8754 if ac_fn_c_try_run "$LINENO"; then :
8755 ac_cv_func_fork_works=yes
8756 else
8757 ac_cv_func_fork_works=no
8759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8760 conftest.$ac_objext conftest.beam conftest.$ac_ext
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8765 $as_echo "$ac_cv_func_fork_works" >&6; }
8767 else
8768 ac_cv_func_fork_works=$ac_cv_func_fork
8770 if test "x$ac_cv_func_fork_works" = xcross; then
8771 case $host in
8772 *-*-amigaos* | *-*-msdosdjgpp*)
8773 # Override, as these systems have only a dummy fork() stub
8774 ac_cv_func_fork_works=no
8777 ac_cv_func_fork_works=yes
8779 esac
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8781 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8783 ac_cv_func_vfork_works=$ac_cv_func_vfork
8784 if test "x$ac_cv_func_vfork" = xyes; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8786 $as_echo_n "checking for working vfork... " >&6; }
8787 if test "${ac_cv_func_vfork_works+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 if test "$cross_compiling" = yes; then :
8791 ac_cv_func_vfork_works=cross
8792 else
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 /* Thanks to Paul Eggert for this test. */
8796 $ac_includes_default
8797 #include <sys/wait.h>
8798 #ifdef HAVE_VFORK_H
8799 # include <vfork.h>
8800 #endif
8801 /* On some sparc systems, changes by the child to local and incoming
8802 argument registers are propagated back to the parent. The compiler
8803 is told about this with #include <vfork.h>, but some compilers
8804 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8805 static variable whose address is put into a register that is
8806 clobbered by the vfork. */
8807 static void
8808 #ifdef __cplusplus
8809 sparc_address_test (int arg)
8810 # else
8811 sparc_address_test (arg) int arg;
8812 #endif
8814 static pid_t child;
8815 if (!child) {
8816 child = vfork ();
8817 if (child < 0) {
8818 perror ("vfork");
8819 _exit(2);
8821 if (!child) {
8822 arg = getpid();
8823 write(-1, "", 0);
8824 _exit (arg);
8830 main ()
8832 pid_t parent = getpid ();
8833 pid_t child;
8835 sparc_address_test (0);
8837 child = vfork ();
8839 if (child == 0) {
8840 /* Here is another test for sparc vfork register problems. This
8841 test uses lots of local variables, at least as many local
8842 variables as main has allocated so far including compiler
8843 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8844 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8845 reuse the register of parent for one of the local variables,
8846 since it will think that parent can't possibly be used any more
8847 in this routine. Assigning to the local variable will thus
8848 munge parent in the parent process. */
8849 pid_t
8850 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8851 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8852 /* Convince the compiler that p..p7 are live; otherwise, it might
8853 use the same hardware register for all 8 local variables. */
8854 if (p != p1 || p != p2 || p != p3 || p != p4
8855 || p != p5 || p != p6 || p != p7)
8856 _exit(1);
8858 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8859 from child file descriptors. If the child closes a descriptor
8860 before it execs or exits, this munges the parent's descriptor
8861 as well. Test for this by closing stdout in the child. */
8862 _exit(close(fileno(stdout)) != 0);
8863 } else {
8864 int status;
8865 struct stat st;
8867 while (wait(&status) != child)
8869 return (
8870 /* Was there some problem with vforking? */
8871 child < 0
8873 /* Did the child fail? (This shouldn't happen.) */
8874 || status
8876 /* Did the vfork/compiler bug occur? */
8877 || parent != getpid()
8879 /* Did the file descriptor bug occur? */
8880 || fstat(fileno(stdout), &st) != 0
8884 _ACEOF
8885 if ac_fn_c_try_run "$LINENO"; then :
8886 ac_cv_func_vfork_works=yes
8887 else
8888 ac_cv_func_vfork_works=no
8890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8891 conftest.$ac_objext conftest.beam conftest.$ac_ext
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8896 $as_echo "$ac_cv_func_vfork_works" >&6; }
8899 if test "x$ac_cv_func_fork_works" = xcross; then
8900 ac_cv_func_vfork_works=$ac_cv_func_vfork
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8902 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8905 if test "x$ac_cv_func_vfork_works" = xyes; then
8907 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8909 else
8911 $as_echo "#define vfork fork" >>confdefs.h
8914 if test "x$ac_cv_func_fork_works" = xyes; then
8916 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8922 if test "X$prefix" = "XNONE"; then
8923 acl_final_prefix="$ac_default_prefix"
8924 else
8925 acl_final_prefix="$prefix"
8927 if test "X$exec_prefix" = "XNONE"; then
8928 acl_final_exec_prefix='${prefix}'
8929 else
8930 acl_final_exec_prefix="$exec_prefix"
8932 acl_save_prefix="$prefix"
8933 prefix="$acl_final_prefix"
8934 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8935 prefix="$acl_save_prefix"
8938 # Check whether --with-gnu-ld was given.
8939 if test "${with_gnu_ld+set}" = set; then :
8940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8941 else
8942 with_gnu_ld=no
8945 # Prepare PATH_SEPARATOR.
8946 # The user is always right.
8947 if test "${PATH_SEPARATOR+set}" != set; then
8948 echo "#! /bin/sh" >conf$$.sh
8949 echo "exit 0" >>conf$$.sh
8950 chmod +x conf$$.sh
8951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8952 PATH_SEPARATOR=';'
8953 else
8954 PATH_SEPARATOR=:
8956 rm -f conf$$.sh
8958 ac_prog=ld
8959 if test "$GCC" = yes; then
8960 # Check if gcc -print-prog-name=ld gives a path.
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8962 $as_echo_n "checking for ld used by GCC... " >&6; }
8963 case $host in
8964 *-*-mingw*)
8965 # gcc leaves a trailing carriage return which upsets mingw
8966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8969 esac
8970 case $ac_prog in
8971 # Accept absolute paths.
8972 [\\/]* | [A-Za-z]:[\\/]*)
8973 re_direlt='/[^/][^/]*/\.\./'
8974 # Canonicalize the path of ld
8975 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8976 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8977 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8978 done
8979 test -z "$LD" && LD="$ac_prog"
8982 # If it fails, then pretend we aren't using GCC.
8983 ac_prog=ld
8986 # If it is relative, then search for the first ld in PATH.
8987 with_gnu_ld=unknown
8989 esac
8990 elif test "$with_gnu_ld" = yes; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8992 $as_echo_n "checking for GNU ld... " >&6; }
8993 else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8995 $as_echo_n "checking for non-GNU ld... " >&6; }
8997 if test "${acl_cv_path_LD+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 if test -z "$LD"; then
9001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9002 for ac_dir in $PATH; do
9003 test -z "$ac_dir" && ac_dir=.
9004 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9005 acl_cv_path_LD="$ac_dir/$ac_prog"
9006 # Check to see if the program is GNU ld. I'd rather use --version,
9007 # but apparently some GNU ld's only accept -v.
9008 # Break only if it was the GNU/non-GNU ld that we prefer.
9009 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9010 test "$with_gnu_ld" != no && break
9011 else
9012 test "$with_gnu_ld" != yes && break
9015 done
9016 IFS="$ac_save_ifs"
9017 else
9018 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9022 LD="$acl_cv_path_LD"
9023 if test -n "$LD"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9025 $as_echo "$LD" >&6; }
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9030 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9032 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9033 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9034 $as_echo_n "(cached) " >&6
9035 else
9036 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9037 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9038 acl_cv_prog_gnu_ld=yes
9039 else
9040 acl_cv_prog_gnu_ld=no
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9044 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9045 with_gnu_ld=$acl_cv_prog_gnu_ld
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9050 $as_echo_n "checking for shared library run path origin... " >&6; }
9051 if test "${acl_cv_rpath+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9055 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9056 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9057 . ./conftest.sh
9058 rm -f ./conftest.sh
9059 acl_cv_rpath=done
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9063 $as_echo "$acl_cv_rpath" >&6; }
9064 wl="$acl_cv_wl"
9065 libext="$acl_cv_libext"
9066 shlibext="$acl_cv_shlibext"
9067 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9068 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9069 hardcode_direct="$acl_cv_hardcode_direct"
9070 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9071 # Check whether --enable-rpath was given.
9072 if test "${enable_rpath+set}" = set; then :
9073 enableval=$enable_rpath; :
9074 else
9075 enable_rpath=yes
9085 use_additional=yes
9087 acl_save_prefix="$prefix"
9088 prefix="$acl_final_prefix"
9089 acl_save_exec_prefix="$exec_prefix"
9090 exec_prefix="$acl_final_exec_prefix"
9092 eval additional_includedir=\"$includedir\"
9093 eval additional_libdir=\"$libdir\"
9095 exec_prefix="$acl_save_exec_prefix"
9096 prefix="$acl_save_prefix"
9099 # Check whether --with-libiconv-prefix was given.
9100 if test "${with_libiconv_prefix+set}" = set; then :
9101 withval=$with_libiconv_prefix;
9102 if test "X$withval" = "Xno"; then
9103 use_additional=no
9104 else
9105 if test "X$withval" = "X"; then
9107 acl_save_prefix="$prefix"
9108 prefix="$acl_final_prefix"
9109 acl_save_exec_prefix="$exec_prefix"
9110 exec_prefix="$acl_final_exec_prefix"
9112 eval additional_includedir=\"$includedir\"
9113 eval additional_libdir=\"$libdir\"
9115 exec_prefix="$acl_save_exec_prefix"
9116 prefix="$acl_save_prefix"
9118 else
9119 additional_includedir="$withval/include"
9120 additional_libdir="$withval/lib"
9126 LIBICONV=
9127 LTLIBICONV=
9128 INCICONV=
9129 rpathdirs=
9130 ltrpathdirs=
9131 names_already_handled=
9132 names_next_round='iconv '
9133 while test -n "$names_next_round"; do
9134 names_this_round="$names_next_round"
9135 names_next_round=
9136 for name in $names_this_round; do
9137 already_handled=
9138 for n in $names_already_handled; do
9139 if test "$n" = "$name"; then
9140 already_handled=yes
9141 break
9143 done
9144 if test -z "$already_handled"; then
9145 names_already_handled="$names_already_handled $name"
9146 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9147 eval value=\"\$HAVE_LIB$uppername\"
9148 if test -n "$value"; then
9149 if test "$value" = yes; then
9150 eval value=\"\$LIB$uppername\"
9151 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9152 eval value=\"\$LTLIB$uppername\"
9153 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9154 else
9157 else
9158 found_dir=
9159 found_la=
9160 found_so=
9161 found_a=
9162 if test $use_additional = yes; then
9163 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9164 found_dir="$additional_libdir"
9165 found_so="$additional_libdir/lib$name.$shlibext"
9166 if test -f "$additional_libdir/lib$name.la"; then
9167 found_la="$additional_libdir/lib$name.la"
9169 else
9170 if test -f "$additional_libdir/lib$name.$libext"; then
9171 found_dir="$additional_libdir"
9172 found_a="$additional_libdir/lib$name.$libext"
9173 if test -f "$additional_libdir/lib$name.la"; then
9174 found_la="$additional_libdir/lib$name.la"
9179 if test "X$found_dir" = "X"; then
9180 for x in $LDFLAGS $LTLIBICONV; do
9182 acl_save_prefix="$prefix"
9183 prefix="$acl_final_prefix"
9184 acl_save_exec_prefix="$exec_prefix"
9185 exec_prefix="$acl_final_exec_prefix"
9186 eval x=\"$x\"
9187 exec_prefix="$acl_save_exec_prefix"
9188 prefix="$acl_save_prefix"
9190 case "$x" in
9191 -L*)
9192 dir=`echo "X$x" | sed -e 's/^X-L//'`
9193 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9194 found_dir="$dir"
9195 found_so="$dir/lib$name.$shlibext"
9196 if test -f "$dir/lib$name.la"; then
9197 found_la="$dir/lib$name.la"
9199 else
9200 if test -f "$dir/lib$name.$libext"; then
9201 found_dir="$dir"
9202 found_a="$dir/lib$name.$libext"
9203 if test -f "$dir/lib$name.la"; then
9204 found_la="$dir/lib$name.la"
9209 esac
9210 if test "X$found_dir" != "X"; then
9211 break
9213 done
9215 if test "X$found_dir" != "X"; then
9216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9217 if test "X$found_so" != "X"; then
9218 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9219 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9220 else
9221 haveit=
9222 for x in $ltrpathdirs; do
9223 if test "X$x" = "X$found_dir"; then
9224 haveit=yes
9225 break
9227 done
9228 if test -z "$haveit"; then
9229 ltrpathdirs="$ltrpathdirs $found_dir"
9231 if test "$hardcode_direct" = yes; then
9232 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9233 else
9234 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9236 haveit=
9237 for x in $rpathdirs; do
9238 if test "X$x" = "X$found_dir"; then
9239 haveit=yes
9240 break
9242 done
9243 if test -z "$haveit"; then
9244 rpathdirs="$rpathdirs $found_dir"
9246 else
9247 haveit=
9248 for x in $LDFLAGS $LIBICONV; do
9250 acl_save_prefix="$prefix"
9251 prefix="$acl_final_prefix"
9252 acl_save_exec_prefix="$exec_prefix"
9253 exec_prefix="$acl_final_exec_prefix"
9254 eval x=\"$x\"
9255 exec_prefix="$acl_save_exec_prefix"
9256 prefix="$acl_save_prefix"
9258 if test "X$x" = "X-L$found_dir"; then
9259 haveit=yes
9260 break
9262 done
9263 if test -z "$haveit"; then
9264 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9266 if test "$hardcode_minus_L" != no; then
9267 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9268 else
9269 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9274 else
9275 if test "X$found_a" != "X"; then
9276 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9277 else
9278 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9281 additional_includedir=
9282 case "$found_dir" in
9283 */lib | */lib/)
9284 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9285 additional_includedir="$basedir/include"
9287 esac
9288 if test "X$additional_includedir" != "X"; then
9289 if test "X$additional_includedir" != "X/usr/include"; then
9290 haveit=
9291 if test "X$additional_includedir" = "X/usr/local/include"; then
9292 if test -n "$GCC"; then
9293 case $host_os in
9294 linux*) haveit=yes;;
9295 esac
9298 if test -z "$haveit"; then
9299 for x in $CPPFLAGS $INCICONV; do
9301 acl_save_prefix="$prefix"
9302 prefix="$acl_final_prefix"
9303 acl_save_exec_prefix="$exec_prefix"
9304 exec_prefix="$acl_final_exec_prefix"
9305 eval x=\"$x\"
9306 exec_prefix="$acl_save_exec_prefix"
9307 prefix="$acl_save_prefix"
9309 if test "X$x" = "X-I$additional_includedir"; then
9310 haveit=yes
9311 break
9313 done
9314 if test -z "$haveit"; then
9315 if test -d "$additional_includedir"; then
9316 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9322 if test -n "$found_la"; then
9323 save_libdir="$libdir"
9324 case "$found_la" in
9325 */* | *\\*) . "$found_la" ;;
9326 *) . "./$found_la" ;;
9327 esac
9328 libdir="$save_libdir"
9329 for dep in $dependency_libs; do
9330 case "$dep" in
9331 -L*)
9332 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9333 if test "X$additional_libdir" != "X/usr/lib"; then
9334 haveit=
9335 if test "X$additional_libdir" = "X/usr/local/lib"; then
9336 if test -n "$GCC"; then
9337 case $host_os in
9338 linux*) haveit=yes;;
9339 esac
9342 if test -z "$haveit"; then
9343 haveit=
9344 for x in $LDFLAGS $LIBICONV; do
9346 acl_save_prefix="$prefix"
9347 prefix="$acl_final_prefix"
9348 acl_save_exec_prefix="$exec_prefix"
9349 exec_prefix="$acl_final_exec_prefix"
9350 eval x=\"$x\"
9351 exec_prefix="$acl_save_exec_prefix"
9352 prefix="$acl_save_prefix"
9354 if test "X$x" = "X-L$additional_libdir"; then
9355 haveit=yes
9356 break
9358 done
9359 if test -z "$haveit"; then
9360 if test -d "$additional_libdir"; then
9361 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9364 haveit=
9365 for x in $LDFLAGS $LTLIBICONV; do
9367 acl_save_prefix="$prefix"
9368 prefix="$acl_final_prefix"
9369 acl_save_exec_prefix="$exec_prefix"
9370 exec_prefix="$acl_final_exec_prefix"
9371 eval x=\"$x\"
9372 exec_prefix="$acl_save_exec_prefix"
9373 prefix="$acl_save_prefix"
9375 if test "X$x" = "X-L$additional_libdir"; then
9376 haveit=yes
9377 break
9379 done
9380 if test -z "$haveit"; then
9381 if test -d "$additional_libdir"; then
9382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9388 -R*)
9389 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9390 if test "$enable_rpath" != no; then
9391 haveit=
9392 for x in $rpathdirs; do
9393 if test "X$x" = "X$dir"; then
9394 haveit=yes
9395 break
9397 done
9398 if test -z "$haveit"; then
9399 rpathdirs="$rpathdirs $dir"
9401 haveit=
9402 for x in $ltrpathdirs; do
9403 if test "X$x" = "X$dir"; then
9404 haveit=yes
9405 break
9407 done
9408 if test -z "$haveit"; then
9409 ltrpathdirs="$ltrpathdirs $dir"
9413 -l*)
9414 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9416 *.la)
9417 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9420 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9421 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9423 esac
9424 done
9426 else
9427 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9428 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9432 done
9433 done
9434 if test "X$rpathdirs" != "X"; then
9435 if test -n "$hardcode_libdir_separator"; then
9436 alldirs=
9437 for found_dir in $rpathdirs; do
9438 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9439 done
9440 acl_save_libdir="$libdir"
9441 libdir="$alldirs"
9442 eval flag=\"$hardcode_libdir_flag_spec\"
9443 libdir="$acl_save_libdir"
9444 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9445 else
9446 for found_dir in $rpathdirs; do
9447 acl_save_libdir="$libdir"
9448 libdir="$found_dir"
9449 eval flag=\"$hardcode_libdir_flag_spec\"
9450 libdir="$acl_save_libdir"
9451 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9452 done
9455 if test "X$ltrpathdirs" != "X"; then
9456 for found_dir in $ltrpathdirs; do
9457 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9458 done
9467 am_save_CPPFLAGS="$CPPFLAGS"
9469 for element in $INCICONV; do
9470 haveit=
9471 for x in $CPPFLAGS; do
9473 acl_save_prefix="$prefix"
9474 prefix="$acl_final_prefix"
9475 acl_save_exec_prefix="$exec_prefix"
9476 exec_prefix="$acl_final_exec_prefix"
9477 eval x=\"$x\"
9478 exec_prefix="$acl_save_exec_prefix"
9479 prefix="$acl_save_prefix"
9481 if test "X$x" = "X$element"; then
9482 haveit=yes
9483 break
9485 done
9486 if test -z "$haveit"; then
9487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9489 done
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9493 $as_echo_n "checking for iconv... " >&6; }
9494 if test "${am_cv_func_iconv+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9498 am_cv_func_iconv="no, consider installing GNU libiconv"
9499 am_cv_lib_iconv=no
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 #include <stdlib.h>
9503 #include <iconv.h>
9505 main ()
9507 iconv_t cd = iconv_open("","");
9508 iconv(cd,NULL,NULL,NULL,NULL);
9509 iconv_close(cd);
9511 return 0;
9513 _ACEOF
9514 if ac_fn_c_try_link "$LINENO"; then :
9515 am_cv_func_iconv=yes
9517 rm -f core conftest.err conftest.$ac_objext \
9518 conftest$ac_exeext conftest.$ac_ext
9519 if test "$am_cv_func_iconv" != yes; then
9520 am_save_LIBS="$LIBS"
9521 LIBS="$LIBS $LIBICONV"
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9524 #include <stdlib.h>
9525 #include <iconv.h>
9527 main ()
9529 iconv_t cd = iconv_open("","");
9530 iconv(cd,NULL,NULL,NULL,NULL);
9531 iconv_close(cd);
9533 return 0;
9535 _ACEOF
9536 if ac_fn_c_try_link "$LINENO"; then :
9537 am_cv_lib_iconv=yes
9538 am_cv_func_iconv=yes
9540 rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS="$am_save_LIBS"
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9547 $as_echo "$am_cv_func_iconv" >&6; }
9548 if test "$am_cv_func_iconv" = yes; then
9550 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9553 if test "$am_cv_lib_iconv" = yes; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9555 $as_echo_n "checking how to link with libiconv... " >&6; }
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9557 $as_echo "$LIBICONV" >&6; }
9558 else
9559 CPPFLAGS="$am_save_CPPFLAGS"
9560 LIBICONV=
9561 LTLIBICONV=
9566 if test "$am_cv_func_iconv" = yes; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9568 $as_echo_n "checking for iconv declaration... " >&6; }
9569 if test "${am_cv_proto_iconv+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9576 #include <stdlib.h>
9577 #include <iconv.h>
9578 extern
9579 #ifdef __cplusplus
9581 #endif
9582 #if defined(__STDC__) || defined(__cplusplus)
9583 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9584 #else
9585 size_t iconv();
9586 #endif
9589 main ()
9593 return 0;
9595 _ACEOF
9596 if ac_fn_c_try_compile "$LINENO"; then :
9597 am_cv_proto_iconv_arg1=""
9598 else
9599 am_cv_proto_iconv_arg1="const"
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 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);"
9605 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9607 }$am_cv_proto_iconv" >&5
9608 $as_echo "${ac_t:-
9609 }$am_cv_proto_iconv" >&6; }
9611 cat >>confdefs.h <<_ACEOF
9612 #define ICONV_CONST $am_cv_proto_iconv_arg1
9613 _ACEOF
9617 # Until we have in-tree GNU iconv:
9618 LIBICONV_DEP=
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9623 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9624 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
9626 else
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9629 #include <locale.h>
9631 main ()
9633 return LC_MESSAGES
9635 return 0;
9637 _ACEOF
9638 if ac_fn_c_try_link "$LINENO"; then :
9639 am_cv_val_LC_MESSAGES=yes
9640 else
9641 am_cv_val_LC_MESSAGES=no
9643 rm -f core conftest.err conftest.$ac_objext \
9644 conftest$ac_exeext conftest.$ac_ext
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9647 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9648 if test $am_cv_val_LC_MESSAGES = yes; then
9650 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9657 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9658 if test "${am_cv_langinfo_codeset+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9660 else
9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9662 /* end confdefs.h. */
9663 #include <langinfo.h>
9665 main ()
9667 char* cs = nl_langinfo(CODESET);
9669 return 0;
9671 _ACEOF
9672 if ac_fn_c_try_link "$LINENO"; then :
9673 am_cv_langinfo_codeset=yes
9674 else
9675 am_cv_langinfo_codeset=no
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9682 $as_echo "$am_cv_langinfo_codeset" >&6; }
9683 if test $am_cv_langinfo_codeset = yes; then
9685 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9690 # We will need to find libiberty.h and ansidecl.h
9691 saved_CFLAGS="$CFLAGS"
9692 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9693 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9694 strsignal strstr strverscmp \
9695 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9696 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
9698 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9700 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9701 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706 #undef $ac_tr_decl
9707 #define $ac_tr_decl 1
9709 #include "ansidecl.h"
9710 #include "system.h"
9713 main ()
9715 #ifndef $ac_func
9716 char *(*pfn) = (char *(*)) $ac_func ;
9717 #endif
9719 return 0;
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"; then :
9723 eval "gcc_cv_have_decl_$ac_func=yes"
9724 else
9725 eval "gcc_cv_have_decl_$ac_func=no"
9727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9732 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9733 #define $ac_tr_decl 1
9734 _ACEOF
9736 else
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9739 #define $ac_tr_decl 0
9740 _ACEOF
9744 done
9747 for ac_func in getrlimit setrlimit getrusage
9749 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9751 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9752 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9753 $as_echo_n "(cached) " >&6
9754 else
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h. */
9757 #undef $ac_tr_decl
9758 #define $ac_tr_decl 1
9760 #include "ansidecl.h"
9761 #include "system.h"
9762 #ifdef HAVE_SYS_RESOURCE_H
9763 #include <sys/resource.h>
9764 #endif
9768 main ()
9770 #ifndef $ac_func
9771 char *(*pfn) = (char *(*)) $ac_func ;
9772 #endif
9774 return 0;
9776 _ACEOF
9777 if ac_fn_c_try_compile "$LINENO"; then :
9778 eval "gcc_cv_have_decl_$ac_func=yes"
9779 else
9780 eval "gcc_cv_have_decl_$ac_func=no"
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9787 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9788 #define $ac_tr_decl 1
9789 _ACEOF
9791 else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9794 #define $ac_tr_decl 0
9795 _ACEOF
9799 done
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 #include "ansidecl.h"
9806 #include "system.h"
9807 #ifdef HAVE_SYS_RESOURCE_H
9808 #include <sys/resource.h>
9809 #endif
9812 main ()
9814 rlim_t l = 0;
9816 return 0;
9818 _ACEOF
9819 if ac_fn_c_try_compile "$LINENO"; then :
9821 else
9823 $as_echo "#define rlim_t long" >>confdefs.h
9826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9829 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9830 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9831 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9832 for ac_func in ldgetname
9834 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9836 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9837 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9838 $as_echo_n "(cached) " >&6
9839 else
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842 #undef $ac_tr_decl
9843 #define $ac_tr_decl 1
9845 #include "ansidecl.h"
9846 #include "system.h"
9847 #ifdef HAVE_LDFCN_H
9848 #undef FREAD
9849 #undef FWRITE
9850 #include <ldfcn.h>
9851 #endif
9855 main ()
9857 #ifndef $ac_func
9858 char *(*pfn) = (char *(*)) $ac_func ;
9859 #endif
9861 return 0;
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"; then :
9865 eval "gcc_cv_have_decl_$ac_func=yes"
9866 else
9867 eval "gcc_cv_have_decl_$ac_func=no"
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9874 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9875 #define $ac_tr_decl 1
9876 _ACEOF
9878 else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9881 #define $ac_tr_decl 0
9882 _ACEOF
9886 done
9889 for ac_func in times
9891 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9893 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9894 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9899 #undef $ac_tr_decl
9900 #define $ac_tr_decl 1
9902 #include "ansidecl.h"
9903 #include "system.h"
9904 #ifdef HAVE_SYS_TIMES_H
9905 #include <sys/times.h>
9906 #endif
9910 main ()
9912 #ifndef $ac_func
9913 char *(*pfn) = (char *(*)) $ac_func ;
9914 #endif
9916 return 0;
9918 _ACEOF
9919 if ac_fn_c_try_compile "$LINENO"; then :
9920 eval "gcc_cv_have_decl_$ac_func=yes"
9921 else
9922 eval "gcc_cv_have_decl_$ac_func=no"
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9930 #define $ac_tr_decl 1
9931 _ACEOF
9933 else
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9936 #define $ac_tr_decl 0
9937 _ACEOF
9941 done
9944 for ac_func in sigaltstack
9946 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9948 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9949 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9954 #undef $ac_tr_decl
9955 #define $ac_tr_decl 1
9957 #include "ansidecl.h"
9958 #include "system.h"
9959 #include <signal.h>
9963 main ()
9965 #ifndef $ac_func
9966 char *(*pfn) = (char *(*)) $ac_func ;
9967 #endif
9969 return 0;
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973 eval "gcc_cv_have_decl_$ac_func=yes"
9974 else
9975 eval "gcc_cv_have_decl_$ac_func=no"
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9982 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9983 #define $ac_tr_decl 1
9984 _ACEOF
9986 else
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9989 #define $ac_tr_decl 0
9990 _ACEOF
9994 done
9997 # More time-related stuff.
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9999 $as_echo_n "checking for struct tms... " >&6; }
10000 if test "${ac_cv_struct_tms+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10007 #include "ansidecl.h"
10008 #include "system.h"
10009 #ifdef HAVE_SYS_TIMES_H
10010 #include <sys/times.h>
10011 #endif
10014 main ()
10016 struct tms tms;
10018 return 0;
10020 _ACEOF
10021 if ac_fn_c_try_compile "$LINENO"; then :
10022 ac_cv_struct_tms=yes
10023 else
10024 ac_cv_struct_tms=no
10026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10029 $as_echo "$ac_cv_struct_tms" >&6; }
10030 if test $ac_cv_struct_tms = yes; then
10032 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10036 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10037 # revisit after autoconf 2.50.
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10039 $as_echo_n "checking for clock_t... " >&6; }
10040 if test "${gcc_cv_type_clock_t+set}" = set; then :
10041 $as_echo_n "(cached) " >&6
10042 else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10047 #include "ansidecl.h"
10048 #include "system.h"
10051 main ()
10053 clock_t x;
10055 return 0;
10057 _ACEOF
10058 if ac_fn_c_try_compile "$LINENO"; then :
10059 gcc_cv_type_clock_t=yes
10060 else
10061 gcc_cv_type_clock_t=no
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10066 $as_echo "$gcc_cv_type_clock_t" >&6; }
10067 if test $gcc_cv_type_clock_t = yes; then
10069 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10073 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10074 CFLAGS="$saved_CFLAGS"
10076 # Check whether --enable-initfini-array was given.
10077 if test "${enable_initfini_array+set}" = set; then :
10078 enableval=$enable_initfini_array;
10079 else
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10082 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10083 if test "${gcc_cv_initfini_array+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
10085 else
10086 if test "$cross_compiling" = yes; then :
10087 gcc_cv_initfini_array=no
10088 else
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10092 static int x = -1;
10093 int main (void) { return x; }
10094 int foo (void) { x = 0; }
10095 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10096 _ACEOF
10097 if ac_fn_c_try_run "$LINENO"; then :
10098 gcc_cv_initfini_array=yes
10099 else
10100 gcc_cv_initfini_array=no
10102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10103 conftest.$ac_objext conftest.beam conftest.$ac_ext
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10108 $as_echo "$gcc_cv_initfini_array" >&6; }
10109 enable_initfini_array=$gcc_cv_initfini_array
10113 if test $enable_initfini_array = yes; then
10115 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10119 # mkdir takes a single argument on some systems.
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10121 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10122 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10128 #include <sys/types.h>
10129 #ifdef HAVE_SYS_STAT_H
10130 # include <sys/stat.h>
10131 #endif
10132 #ifdef HAVE_UNISTD_H
10133 # include <unistd.h>
10134 #endif
10135 #ifdef HAVE_DIRECT_H
10136 # include <direct.h>
10137 #endif
10139 main ()
10141 mkdir ("foo", 0);
10143 return 0;
10145 _ACEOF
10146 if ac_fn_c_try_compile "$LINENO"; then :
10147 gcc_cv_mkdir_takes_one_arg=no
10148 else
10149 gcc_cv_mkdir_takes_one_arg=yes
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10154 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10155 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10157 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10162 # File extensions
10163 manext='.1'
10164 objext='.o'
10168 # With Setjmp/Longjmp based exception handling.
10169 # Check whether --enable-sjlj-exceptions was given.
10170 if test "${enable_sjlj_exceptions+set}" = set; then :
10171 enableval=$enable_sjlj_exceptions; case $target in
10172 *-*-hpux10*)
10173 if test $enableval != yes; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10175 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10176 enableval=yes
10179 esac
10180 force_sjlj_exceptions=yes
10181 else
10182 case $target in
10183 *-*-hpux10*)
10184 force_sjlj_exceptions=yes
10185 enableval=yes
10188 force_sjlj_exceptions=no
10190 esac
10193 if test $force_sjlj_exceptions = yes; then
10194 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10196 cat >>confdefs.h <<_ACEOF
10197 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10198 _ACEOF
10202 # For platforms with the unwind ABI which includes an unwind library,
10203 # libunwind, we can choose to use the system libunwind.
10204 # config.gcc also contains tests of with_system_libunwind.
10207 # Check whether --with-system-libunwind was given.
10208 if test "${with_system_libunwind+set}" = set; then :
10209 withval=$with_system_libunwind;
10212 # If system-libunwind was not specifically set, pick a default setting.
10213 if test x$with_system_libunwind = x; then
10214 case ${target} in
10215 ia64-*-hpux*) with_system_libunwind=yes ;;
10216 *) with_system_libunwind=no ;;
10217 esac
10219 # Based on system-libunwind and target, do we have ipinfo?
10220 if test x$with_system_libunwind = xyes; then
10221 case ${target} in
10222 ia64-*-*) have_unwind_getipinfo=no ;;
10223 *) have_unwind_getipinfo=yes ;;
10224 esac
10225 else
10226 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10228 case ${target} in
10229 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10230 *) have_unwind_getipinfo=yes ;;
10231 esac
10235 if test x$have_unwind_getipinfo = xyes; then
10237 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10242 # --------------------------------------------------------
10243 # Build, host, and target specific configuration fragments
10244 # --------------------------------------------------------
10246 # Collect build-machine-specific information.
10247 . ${srcdir}/config.build
10249 # Collect host-machine-specific information.
10250 . ${srcdir}/config.host
10252 target_gtfiles=
10254 # Collect target-machine-specific information.
10255 . ${srcdir}/config.gcc
10257 extra_objs="${host_extra_objs} ${extra_objs}"
10258 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10260 # Default the target-machine variables that were not explicitly set.
10261 if test x"$tm_file" = x
10262 then tm_file=$cpu_type/$cpu_type.h; fi
10264 if test x"$extra_headers" = x
10265 then extra_headers=; fi
10267 if test x$md_file = x
10268 then md_file=$cpu_type/$cpu_type.md; fi
10270 if test x$out_file = x
10271 then out_file=$cpu_type/$cpu_type.c; fi
10273 if test x"$tmake_file" = x
10274 then tmake_file=$cpu_type/t-$cpu_type
10277 if test x"$dwarf2" = xyes
10278 then tm_file="$tm_file tm-dwarf2.h"
10281 # Say what files are being used for the output code and MD file.
10282 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10283 echo "Using \`$srcdir/config/$md_file' as machine description file."
10285 # If any of the xm_file variables contain nonexistent files, warn
10286 # about them and drop them.
10289 for x in $build_xm_file; do
10290 if test -f $srcdir/config/$x
10291 then bx="$bx $x"
10292 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10293 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10295 done
10296 build_xm_file="$bx"
10299 for x in $host_xm_file; do
10300 if test -f $srcdir/config/$x
10301 then hx="$hx $x"
10302 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10303 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10305 done
10306 host_xm_file="$hx"
10309 for x in $xm_file; do
10310 if test -f $srcdir/config/$x
10311 then tx="$tx $x"
10312 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10313 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10315 done
10316 xm_file="$tx"
10318 count=a
10319 for f in $tm_file; do
10320 count=${count}x
10321 done
10322 if test $count = ax; then
10323 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10324 else
10325 echo "Using the following target machine macro files:"
10326 for f in $tm_file; do
10327 echo " $srcdir/config/$f"
10328 done
10331 if test x$need_64bit_hwint = xyes; then
10333 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10337 if test x$use_long_long_for_widest_fast_int = xyes; then
10339 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10343 count=a
10344 for f in $host_xm_file; do
10345 count=${count}x
10346 done
10347 if test $count = a; then
10349 elif test $count = ax; then
10350 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10351 else
10352 echo "Using the following host machine macro files:"
10353 for f in $host_xm_file; do
10354 echo " $srcdir/config/$f"
10355 done
10357 echo "Using ${out_host_hook_obj} for host machine hooks."
10359 if test "$host_xm_file" != "$build_xm_file"; then
10360 count=a
10361 for f in $build_xm_file; do
10362 count=${count}x
10363 done
10364 if test $count = a; then
10366 elif test $count = ax; then
10367 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10368 else
10369 echo "Using the following build machine macro files:"
10370 for f in $build_xm_file; do
10371 echo " $srcdir/config/$f"
10372 done
10376 case ${host} in
10377 powerpc*-*-darwin*)
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10379 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10380 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10386 #include <sys/cdefs.h>
10387 #include <sys/signal.h>
10388 #include <ucontext.h>
10389 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10391 _ACEOF
10392 if ac_fn_c_try_compile "$LINENO"; then :
10393 gcc_cv_mcontext_underscores=no
10394 else
10395 gcc_cv_mcontext_underscores=yes
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10400 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10401 if test $gcc_cv_mcontext_underscores = yes; then
10403 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10407 esac
10409 # ---------
10410 # Threading
10411 # ---------
10413 # Check if a valid thread package
10414 case ${enable_threads} in
10415 "" | no)
10416 # No threads
10417 target_thread_file='single'
10419 yes)
10420 # default
10421 target_thread_file='single'
10423 aix | dce | gnat | irix | posix | posix95 | rtems | \
10424 single | solaris | vxworks | win32 | mipssde)
10425 target_thread_file=${enable_threads}
10428 echo "${enable_threads} is an unknown thread package" 1>&2
10429 exit 1
10431 esac
10433 if test x${thread_file} = x; then
10434 # No thread file set by target-specific clauses in config.gcc,
10435 # so use file chosen by default logic above
10436 thread_file=${target_thread_file}
10439 # Make gthr-default.h if we have a thread file.
10440 gthread_flags=
10441 if test $thread_file != single; then
10442 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10443 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10444 rm -f gthr-default.h-t
10445 else
10446 mv -f gthr-default.h-t gthr-default.h
10448 gthread_flags=-DHAVE_GTHR_DEFAULT
10452 # --------
10453 # UNSORTED
10454 # --------
10456 use_cxa_atexit=no
10457 if test x$enable___cxa_atexit = xyes || \
10458 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10459 if test x$host = x$target; then
10460 case $host in
10461 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10462 # keyed to flag_use_cxa_atexit
10463 *-*-mingw32*)
10464 use_cxa_atexit=yes
10467 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10468 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10469 use_cxa_atexit=yes
10470 else
10471 echo "__cxa_atexit can't be enabled on this target"
10475 esac
10476 else
10477 # We can't check for __cxa_atexit when building a cross, so assume
10478 # it is available
10479 use_cxa_atexit=yes
10481 if test x$use_cxa_atexit = xyes; then
10483 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10488 # Look for a file containing extra machine modes.
10489 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10490 extra_modes_file='$(srcdir)'/config/${extra_modes}
10493 cat >>confdefs.h <<_ACEOF
10494 #define EXTRA_MODES_FILE "config/$extra_modes"
10495 _ACEOF
10499 # Convert extra_options into a form suitable for Makefile use.
10500 extra_opt_files=
10501 for f in $extra_options; do
10502 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10503 done
10506 # auto-host.h is the file containing items generated by autoconf and is
10507 # the first file included by config.h.
10508 # If host=build, it is correct to have bconfig include auto-host.h
10509 # as well. If host!=build, we are in error and need to do more
10510 # work to find out the build config parameters.
10511 if test x$host = x$build
10512 then
10513 build_auto=auto-host.h
10514 else
10515 # We create a subdir, then run autoconf in the subdir.
10516 # To prevent recursion we set host and build for the new
10517 # invocation of configure to the build for this invocation
10518 # of configure.
10519 tempdir=build.$$
10520 rm -rf $tempdir
10521 mkdir $tempdir
10522 cd $tempdir
10523 case ${srcdir} in
10524 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10525 *) realsrcdir=../${srcdir};;
10526 esac
10527 saved_CFLAGS="${CFLAGS}"
10528 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10529 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10530 ${realsrcdir}/configure \
10531 --enable-languages=${enable_languages-all} \
10532 --target=$target_alias --host=$build_alias --build=$build_alias
10533 CFLAGS="${saved_CFLAGS}"
10535 # We just finished tests for the build machine, so rename
10536 # the file auto-build.h in the gcc directory.
10537 mv auto-host.h ../auto-build.h
10538 cd ..
10539 rm -rf $tempdir
10540 build_auto=auto-build.h
10544 tm_file="${tm_file} defaults.h"
10545 tm_p_file="${tm_p_file} tm-preds.h"
10546 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10547 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10548 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10549 # put this back in temporarily.
10550 xm_file="auto-host.h ansidecl.h ${xm_file}"
10552 # --------
10553 # UNSORTED
10554 # --------
10556 # Compile in configure arguments.
10557 if test -f configargs.h ; then
10558 # Being re-configured.
10559 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10560 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10561 else
10562 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10565 # Double all backslashes and backslash all quotes to turn
10566 # gcc_config_arguments into a C string.
10567 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10568 $gcc_config_arguments
10570 gcc_config_arguments_str=`cat conftest.out`
10571 rm -f conftest.out
10573 cat > configargs.h <<EOF
10574 /* Generated automatically. */
10575 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10576 static const char thread_model[] = "$thread_file";
10578 static const struct {
10579 const char *name, *value;
10580 } configure_default_options[] = $configure_default_options;
10583 gcc_BASEVER=`cat $srcdir/BASE-VER`
10584 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10585 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10586 if test -f $srcdir/REVISION ; then
10587 gcc_REVISION=`cat $srcdir/REVISION`
10588 else
10589 gcc_REVISION=""
10591 cat > plugin-version.h <<EOF
10592 #include "configargs.h"
10594 static char basever[] = "$gcc_BASEVER";
10595 static char datestamp[] = "$gcc_DATESTAMP";
10596 static char devphase[] = "$gcc_DEVPHASE";
10597 static char revision[] = "$gcc_REVISION";
10599 /* FIXME plugins: We should make the version information more precise.
10600 One way to do is to add a checksum. */
10602 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10603 devphase, revision,
10604 configuration_arguments};
10607 # Internationalization
10608 # If we haven't got the data from the intl directory,
10609 # assume NLS is disabled.
10610 USE_NLS=no
10611 LIBINTL=
10612 LIBINTL_DEP=
10613 INCINTL=
10614 XGETTEXT=
10615 GMSGFMT=
10616 POSUB=
10618 if test -f ../intl/config.intl; then
10619 . ../intl/config.intl
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10622 $as_echo_n "checking whether NLS is requested... " >&6; }
10623 if test x"$USE_NLS" != xyes; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10625 $as_echo "no" >&6; }
10626 else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10628 $as_echo "yes" >&6; }
10630 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10634 $as_echo_n "checking for catalogs to be installed... " >&6; }
10635 # Look for .po and .gmo files in the source directory.
10636 CATALOGS=
10637 XLINGUAS=
10638 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10639 # If there aren't any .gmo files the shell will give us the
10640 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10641 # weeded out.
10642 case "$cat" in *\**)
10643 continue;;
10644 esac
10645 # The quadruple backslash is collapsed to a double backslash
10646 # by the backticks, then collapsed again by the double quotes,
10647 # leaving us with one backslash in the sed expression (right
10648 # before the dot that mustn't act as a wildcard).
10649 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10650 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10651 # The user is allowed to set LINGUAS to a list of languages to
10652 # install catalogs for. If it's empty that means "all of them."
10653 if test "x$LINGUAS" = x; then
10654 CATALOGS="$CATALOGS $cat"
10655 XLINGUAS="$XLINGUAS $lang"
10656 else
10657 case "$LINGUAS" in *$lang*)
10658 CATALOGS="$CATALOGS $cat"
10659 XLINGUAS="$XLINGUAS $lang"
10661 esac
10663 done
10664 LINGUAS="$XLINGUAS"
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10666 $as_echo "$LINGUAS" >&6; }
10669 DATADIRNAME=share
10671 INSTOBJEXT=.mo
10673 GENCAT=gencat
10675 CATOBJEXT=.gmo
10679 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10680 # -liconv on the link line twice.
10681 case "$LIBINTL" in *$LIBICONV*)
10682 LIBICONV= ;;
10683 esac
10685 # Check whether --enable-secureplt was given.
10686 if test "${enable_secureplt+set}" = set; then :
10687 enableval=$enable_secureplt;
10691 # Check whether --enable-leading-mingw64-underscores was given.
10692 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10693 enableval=$enable_leading_mingw64_underscores;
10696 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10698 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10702 # Check whether --enable-cld was given.
10703 if test "${enable_cld+set}" = set; then :
10704 enableval=$enable_cld;
10705 else
10706 enable_cld=no
10710 # Check whether --enable-frame-pointer was given.
10711 if test "${enable_frame_pointer+set}" = set; then :
10712 enableval=$enable_frame_pointer;
10713 else
10715 case $target_os in
10716 linux* | darwin[8912]*)
10717 # Enable -fomit-frame-pointer by default for Linux and Darwin with
10718 # DWARF2.
10719 enable_frame_pointer=no
10722 enable_frame_pointer=yes
10724 esac
10729 # Windows32 Registry support for specifying GCC installation paths.
10730 # Check whether --enable-win32-registry was given.
10731 if test "${enable_win32_registry+set}" = set; then :
10732 enableval=$enable_win32_registry;
10736 case $host_os in
10737 win32 | pe | cygwin* | mingw32* | uwin*)
10738 if test "x$enable_win32_registry" != xno; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10740 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10741 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 ac_func_search_save_LIBS=$LIBS
10745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10751 #ifdef __cplusplus
10752 extern "C"
10753 #endif
10754 char RegOpenKeyExA ();
10756 main ()
10758 return RegOpenKeyExA ();
10760 return 0;
10762 _ACEOF
10763 for ac_lib in '' advapi32; do
10764 if test -z "$ac_lib"; then
10765 ac_res="none required"
10766 else
10767 ac_res=-l$ac_lib
10768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_search_RegOpenKeyExA=$ac_res
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext
10775 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10776 break
10778 done
10779 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10781 else
10782 ac_cv_search_RegOpenKeyExA=no
10784 rm conftest.$ac_ext
10785 LIBS=$ac_func_search_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10788 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10789 ac_res=$ac_cv_search_RegOpenKeyExA
10790 if test "$ac_res" != no; then :
10791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10793 else
10794 enable_win32_registry=no
10799 if test "x$enable_win32_registry" != xno; then
10801 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10804 if test "x$enable_win32_registry" != xyes \
10805 && test "x$enable_win32_registry" != x; then
10807 cat >>confdefs.h <<_ACEOF
10808 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10809 _ACEOF
10814 esac
10816 # Get an absolute path to the GCC top-level source directory
10817 holddir=`${PWDCMD-pwd}`
10818 cd $srcdir
10819 topdir=`${PWDCMD-pwd}`
10820 cd $holddir
10822 # Conditionalize the makefile for this host machine.
10823 xmake_file=
10824 for f in ${host_xmake_file}
10826 if test -f ${srcdir}/config/$f
10827 then
10828 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10830 done
10832 # Conditionalize the makefile for this target machine.
10833 tmake_file_=
10834 for f in ${tmake_file}
10836 if test -f ${srcdir}/config/$f
10837 then
10838 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10840 done
10841 tmake_file="${tmake_file_}"
10843 out_object_file=`basename $out_file .c`.o
10845 tm_file_list="options.h"
10846 tm_include_list="options.h insn-constants.h"
10847 for f in $tm_file; do
10848 case $f in
10849 ./* )
10850 f=`echo $f | sed 's/^..//'`
10851 tm_file_list="${tm_file_list} $f"
10852 tm_include_list="${tm_include_list} $f"
10854 defaults.h )
10855 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10856 tm_include_list="${tm_include_list} $f"
10859 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10860 tm_include_list="${tm_include_list} config/$f"
10862 esac
10863 done
10865 tm_p_file_list=
10866 tm_p_include_list=
10867 for f in $tm_p_file; do
10868 case $f in
10869 tm-preds.h )
10870 tm_p_file_list="${tm_p_file_list} $f"
10871 tm_p_include_list="${tm_p_include_list} $f"
10874 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10875 tm_p_include_list="${tm_p_include_list} config/$f"
10876 esac
10877 done
10879 xm_file_list=
10880 xm_include_list=
10881 for f in $xm_file; do
10882 case $f in
10883 ansidecl.h )
10884 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10885 xm_include_list="${xm_include_list} $f"
10887 auto-host.h )
10888 xm_file_list="${xm_file_list} $f"
10889 xm_include_list="${xm_include_list} $f"
10892 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10893 xm_include_list="${xm_include_list} config/$f"
10895 esac
10896 done
10898 host_xm_file_list=
10899 host_xm_include_list=
10900 for f in $host_xm_file; do
10901 case $f in
10902 ansidecl.h )
10903 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10904 host_xm_include_list="${host_xm_include_list} $f"
10906 auto-host.h )
10907 host_xm_file_list="${host_xm_file_list} $f"
10908 host_xm_include_list="${host_xm_include_list} $f"
10911 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10912 host_xm_include_list="${host_xm_include_list} config/$f"
10914 esac
10915 done
10917 build_xm_file_list=
10918 for f in $build_xm_file; do
10919 case $f in
10920 ansidecl.h )
10921 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10922 build_xm_include_list="${build_xm_include_list} $f"
10924 auto-build.h | auto-host.h )
10925 build_xm_file_list="${build_xm_file_list} $f"
10926 build_xm_include_list="${build_xm_include_list} $f"
10929 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10930 build_xm_include_list="${build_xm_include_list} config/$f"
10932 esac
10933 done
10935 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10936 # cross-compiler which does not use the native headers and libraries.
10937 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10938 CROSS=
10939 ALL=all.internal
10940 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10942 if test "x$with_build_sysroot" != x; then
10943 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10944 else
10945 # This value is used, even on a native system, because
10946 # CROSS_SYSTEM_HEADER_DIR is just
10947 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10948 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10951 if test x$host != x$target
10952 then
10953 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10954 ALL=all.cross
10955 SYSTEM_HEADER_DIR=$build_system_header_dir
10956 case "$host","$target" in
10957 # Darwin crosses can use the host system's libraries and headers,
10958 # because of the fat library support. Of course, it must be the
10959 # same version of Darwin on both sides. Allow the user to
10960 # just say --target=foo-darwin without a version number to mean
10961 # "the version on this system".
10962 *-*-darwin*,*-*-darwin*)
10963 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10964 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10965 if test $hostos = $targetos -o $targetos = darwin ; then
10966 CROSS=
10967 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10968 with_headers=yes
10972 i?86-*-*,x86_64-*-* \
10973 | powerpc*-*-*,powerpc64*-*-*)
10974 CROSS="$CROSS -DNATIVE_CROSS" ;;
10975 esac
10977 case $target in
10978 *-*-mingw*)
10979 if test "x$with_headers" = x; then
10980 with_headers=yes
10985 esac
10986 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10987 SYSTEM_HEADER_DIR=$build_system_header_dir
10990 # If this is a cross-compiler that does not
10991 # have its own set of headers then define
10992 # inhibit_libc
10994 # If this is using newlib, without having the headers available now,
10995 # then define inhibit_libc in LIBGCC2_CFLAGS.
10996 # This prevents libgcc2 from containing any code which requires libc
10997 # support.
10998 : ${inhibit_libc=false}
10999 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11000 test x$with_newlib = xyes ; } &&
11001 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11002 inhibit_libc=true
11006 # When building gcc with a cross-compiler, we need to adjust things so
11007 # that the generator programs are still built with the native compiler.
11008 # Also, we cannot run fixincludes.
11010 # These are the normal (build=host) settings:
11011 CC_FOR_BUILD='$(CC)'
11012 BUILD_CFLAGS='$(ALL_CFLAGS)'
11013 BUILD_LDFLAGS='$(LDFLAGS)'
11014 STMP_FIXINC=stmp-fixinc
11016 # And these apply if build != host, or we are generating coverage data
11017 if test x$build != x$host || test "x$coverage_flags" != x
11018 then
11019 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11020 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11023 # Expand extra_headers to include complete path.
11024 # This substitutes for lots of t-* files.
11025 extra_headers_list=
11026 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11027 for file in ${extra_headers} ; do
11028 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11029 done
11031 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11032 if test x"$use_gcc_tgmath" = xyes
11033 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11036 # Define collect2 in Makefile.
11037 case $host_can_use_collect2 in
11038 no) collect2= ;;
11039 *) collect2='collect2$(exeext)' ;;
11040 esac
11043 # Add a definition of USE_COLLECT2 if system wants one.
11044 case $use_collect2 in
11045 no) use_collect2= ;;
11046 "") ;;
11048 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11049 xm_defines="${xm_defines} USE_COLLECT2"
11050 case $host_can_use_collect2 in
11052 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11054 esac
11056 esac
11059 cat >>confdefs.h <<_ACEOF
11060 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11061 _ACEOF
11064 # ---------------------------
11065 # Assembler & linker features
11066 # ---------------------------
11068 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11069 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11070 # However when ld-new is first executed from the build tree, libtool will
11071 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11072 # to the build tree. While doing this we need to use the previous-stage
11073 # linker, or we have an infinite loop. The presence of a shell script as
11074 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11075 # the gcc/collect-ld script. So we need to know how libtool works, or
11076 # exec-tool will fail.
11079 case `pwd` in
11080 *\ * | *\ *)
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11082 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11083 esac
11087 macro_version='2.2.7a'
11088 macro_revision='1.3134'
11102 ltmain="$ac_aux_dir/ltmain.sh"
11104 # Backslashify metacharacters that are still active within
11105 # double-quoted strings.
11106 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11108 # Same as above, but do not quote variable references.
11109 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11111 # Sed substitution to delay expansion of an escaped shell variable in a
11112 # double_quote_subst'ed string.
11113 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11115 # Sed substitution to delay expansion of an escaped single quote.
11116 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11118 # Sed substitution to avoid accidental globbing in evaled expressions
11119 no_glob_subst='s/\*/\\\*/g'
11121 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11122 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11123 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11126 $as_echo_n "checking how to print strings... " >&6; }
11127 # Test print first, because it will be a builtin if present.
11128 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11129 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11130 ECHO='print -r --'
11131 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11132 ECHO='printf %s\n'
11133 else
11134 # Use this function as a fallback that always works.
11135 func_fallback_echo ()
11137 eval 'cat <<_LTECHO_EOF
11139 _LTECHO_EOF'
11141 ECHO='func_fallback_echo'
11144 # func_echo_all arg...
11145 # Invoke $ECHO with all args, space-separated.
11146 func_echo_all ()
11148 $ECHO ""
11151 case "$ECHO" in
11152 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11153 $as_echo "printf" >&6; } ;;
11154 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11155 $as_echo "print -r" >&6; } ;;
11156 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11157 $as_echo "cat" >&6; } ;;
11158 esac
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11174 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11175 if test "${ac_cv_path_SED+set}" = set; then :
11176 $as_echo_n "(cached) " >&6
11177 else
11178 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11179 for ac_i in 1 2 3 4 5 6 7; do
11180 ac_script="$ac_script$as_nl$ac_script"
11181 done
11182 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11183 { ac_script=; unset ac_script;}
11184 if test -z "$SED"; then
11185 ac_path_SED_found=false
11186 # Loop through the user's path and test for each of PROGNAME-LIST
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_prog in sed gsed; do
11193 for ac_exec_ext in '' $ac_executable_extensions; do
11194 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11195 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11196 # Check for GNU ac_path_SED and select it if it is found.
11197 # Check for GNU $ac_path_SED
11198 case `"$ac_path_SED" --version 2>&1` in
11199 *GNU*)
11200 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11202 ac_count=0
11203 $as_echo_n 0123456789 >"conftest.in"
11204 while :
11206 cat "conftest.in" "conftest.in" >"conftest.tmp"
11207 mv "conftest.tmp" "conftest.in"
11208 cp "conftest.in" "conftest.nl"
11209 $as_echo '' >> "conftest.nl"
11210 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11212 as_fn_arith $ac_count + 1 && ac_count=$as_val
11213 if test $ac_count -gt ${ac_path_SED_max-0}; then
11214 # Best one so far, save it but keep looking for a better one
11215 ac_cv_path_SED="$ac_path_SED"
11216 ac_path_SED_max=$ac_count
11218 # 10*(2^10) chars as input seems more than enough
11219 test $ac_count -gt 10 && break
11220 done
11221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11222 esac
11224 $ac_path_SED_found && break 3
11225 done
11226 done
11227 done
11228 IFS=$as_save_IFS
11229 if test -z "$ac_cv_path_SED"; then
11230 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11232 else
11233 ac_cv_path_SED=$SED
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11238 $as_echo "$ac_cv_path_SED" >&6; }
11239 SED="$ac_cv_path_SED"
11240 rm -f conftest.sed
11242 test -z "$SED" && SED=sed
11243 Xsed="$SED -e 1s/^X//"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11256 $as_echo_n "checking for fgrep... " >&6; }
11257 if test "${ac_cv_path_FGREP+set}" = set; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11261 then ac_cv_path_FGREP="$GREP -F"
11262 else
11263 if test -z "$FGREP"; then
11264 ac_path_FGREP_found=false
11265 # Loop through the user's path and test for each of PROGNAME-LIST
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_prog in fgrep; do
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11274 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11275 # Check for GNU ac_path_FGREP and select it if it is found.
11276 # Check for GNU $ac_path_FGREP
11277 case `"$ac_path_FGREP" --version 2>&1` in
11278 *GNU*)
11279 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11281 ac_count=0
11282 $as_echo_n 0123456789 >"conftest.in"
11283 while :
11285 cat "conftest.in" "conftest.in" >"conftest.tmp"
11286 mv "conftest.tmp" "conftest.in"
11287 cp "conftest.in" "conftest.nl"
11288 $as_echo 'FGREP' >> "conftest.nl"
11289 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11291 as_fn_arith $ac_count + 1 && ac_count=$as_val
11292 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11293 # Best one so far, save it but keep looking for a better one
11294 ac_cv_path_FGREP="$ac_path_FGREP"
11295 ac_path_FGREP_max=$ac_count
11297 # 10*(2^10) chars as input seems more than enough
11298 test $ac_count -gt 10 && break
11299 done
11300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11301 esac
11303 $ac_path_FGREP_found && break 3
11304 done
11305 done
11306 done
11307 IFS=$as_save_IFS
11308 if test -z "$ac_cv_path_FGREP"; then
11309 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11311 else
11312 ac_cv_path_FGREP=$FGREP
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11318 $as_echo "$ac_cv_path_FGREP" >&6; }
11319 FGREP="$ac_cv_path_FGREP"
11322 test -z "$GREP" && GREP=grep
11342 # Check whether --with-gnu-ld was given.
11343 if test "${with_gnu_ld+set}" = set; then :
11344 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11345 else
11346 with_gnu_ld=no
11349 ac_prog=ld
11350 if test "$GCC" = yes; then
11351 # Check if gcc -print-prog-name=ld gives a path.
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11353 $as_echo_n "checking for ld used by $CC... " >&6; }
11354 case $host in
11355 *-*-mingw*)
11356 # gcc leaves a trailing carriage return which upsets mingw
11357 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11359 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11360 esac
11361 case $ac_prog in
11362 # Accept absolute paths.
11363 [\\/]* | ?:[\\/]*)
11364 re_direlt='/[^/][^/]*/\.\./'
11365 # Canonicalize the pathname of ld
11366 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11367 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11368 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11369 done
11370 test -z "$LD" && LD="$ac_prog"
11373 # If it fails, then pretend we aren't using GCC.
11374 ac_prog=ld
11377 # If it is relative, then search for the first ld in PATH.
11378 with_gnu_ld=unknown
11380 esac
11381 elif test "$with_gnu_ld" = yes; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11383 $as_echo_n "checking for GNU ld... " >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11386 $as_echo_n "checking for non-GNU ld... " >&6; }
11388 if test "${lt_cv_path_LD+set}" = set; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 if test -z "$LD"; then
11392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11393 for ac_dir in $PATH; do
11394 IFS="$lt_save_ifs"
11395 test -z "$ac_dir" && ac_dir=.
11396 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11397 lt_cv_path_LD="$ac_dir/$ac_prog"
11398 # Check to see if the program is GNU ld. I'd rather use --version,
11399 # but apparently some variants of GNU ld only accept -v.
11400 # Break only if it was the GNU/non-GNU ld that we prefer.
11401 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11402 *GNU* | *'with BFD'*)
11403 test "$with_gnu_ld" != no && break
11406 test "$with_gnu_ld" != yes && break
11408 esac
11410 done
11411 IFS="$lt_save_ifs"
11412 else
11413 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11417 LD="$lt_cv_path_LD"
11418 if test -n "$LD"; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11420 $as_echo "$LD" >&6; }
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11425 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11427 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11428 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11432 case `$LD -v 2>&1 </dev/null` in
11433 *GNU* | *'with BFD'*)
11434 lt_cv_prog_gnu_ld=yes
11437 lt_cv_prog_gnu_ld=no
11439 esac
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11442 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11443 with_gnu_ld=$lt_cv_prog_gnu_ld
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11454 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11455 if test "${lt_cv_path_NM+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 if test -n "$NM"; then
11459 # Let the user override the test.
11460 lt_cv_path_NM="$NM"
11461 else
11462 lt_nm_to_check="${ac_tool_prefix}nm"
11463 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11464 lt_nm_to_check="$lt_nm_to_check nm"
11466 for lt_tmp_nm in $lt_nm_to_check; do
11467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11468 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11469 IFS="$lt_save_ifs"
11470 test -z "$ac_dir" && ac_dir=.
11471 tmp_nm="$ac_dir/$lt_tmp_nm"
11472 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11473 # Check to see if the nm accepts a BSD-compat flag.
11474 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11475 # nm: unknown option "B" ignored
11476 # Tru64's nm complains that /dev/null is an invalid object file
11477 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11478 */dev/null* | *'Invalid file or object type'*)
11479 lt_cv_path_NM="$tmp_nm -B"
11480 break
11483 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11484 */dev/null*)
11485 lt_cv_path_NM="$tmp_nm -p"
11486 break
11489 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11490 continue # so that we can try to find one that supports BSD flags
11492 esac
11494 esac
11496 done
11497 IFS="$lt_save_ifs"
11498 done
11499 : ${lt_cv_path_NM=no}
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11503 $as_echo "$lt_cv_path_NM" >&6; }
11504 if test "$lt_cv_path_NM" != "no"; then
11505 NM="$lt_cv_path_NM"
11506 else
11507 # Didn't find any BSD compatible name lister, look for dumpbin.
11508 if test -n "$DUMPBIN"; then :
11509 # Let the user override the test.
11510 else
11511 if test -n "$ac_tool_prefix"; then
11512 for ac_prog in dumpbin "link -dump"
11514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 if test -n "$DUMPBIN"; then
11522 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11523 else
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11531 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11535 done
11536 done
11537 IFS=$as_save_IFS
11541 DUMPBIN=$ac_cv_prog_DUMPBIN
11542 if test -n "$DUMPBIN"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11544 $as_echo "$DUMPBIN" >&6; }
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11551 test -n "$DUMPBIN" && break
11552 done
11554 if test -z "$DUMPBIN"; then
11555 ac_ct_DUMPBIN=$DUMPBIN
11556 for ac_prog in dumpbin "link -dump"
11558 # Extract the first word of "$ac_prog", so it can be a program name with args.
11559 set dummy $ac_prog; ac_word=$2
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11561 $as_echo_n "checking for $ac_word... " >&6; }
11562 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11563 $as_echo_n "(cached) " >&6
11564 else
11565 if test -n "$ac_ct_DUMPBIN"; then
11566 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11567 else
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11571 IFS=$as_save_IFS
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11575 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11577 break 2
11579 done
11580 done
11581 IFS=$as_save_IFS
11585 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11586 if test -n "$ac_ct_DUMPBIN"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11588 $as_echo "$ac_ct_DUMPBIN" >&6; }
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 $as_echo "no" >&6; }
11595 test -n "$ac_ct_DUMPBIN" && break
11596 done
11598 if test "x$ac_ct_DUMPBIN" = x; then
11599 DUMPBIN=":"
11600 else
11601 case $cross_compiling:$ac_tool_warned in
11602 yes:)
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11605 ac_tool_warned=yes ;;
11606 esac
11607 DUMPBIN=$ac_ct_DUMPBIN
11611 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11612 *COFF*)
11613 DUMPBIN="$DUMPBIN -symbols"
11616 DUMPBIN=:
11618 esac
11621 if test "$DUMPBIN" != ":"; then
11622 NM="$DUMPBIN"
11625 test -z "$NM" && NM=nm
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11634 if test "${lt_cv_nm_interface+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 lt_cv_nm_interface="BSD nm"
11638 echo "int some_variable = 0;" > conftest.$ac_ext
11639 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11640 (eval "$ac_compile" 2>conftest.err)
11641 cat conftest.err >&5
11642 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11643 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11644 cat conftest.err >&5
11645 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11646 cat conftest.out >&5
11647 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11648 lt_cv_nm_interface="MS dumpbin"
11650 rm -f conftest*
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11653 $as_echo "$lt_cv_nm_interface" >&6; }
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11656 $as_echo_n "checking whether ln -s works... " >&6; }
11657 LN_S=$as_ln_s
11658 if test "$LN_S" = "ln -s"; then
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11660 $as_echo "yes" >&6; }
11661 else
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11663 $as_echo "no, using $LN_S" >&6; }
11666 # find the maximum length of command line arguments
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11669 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11673 teststring="ABCD"
11675 case $build_os in
11676 msdosdjgpp*)
11677 # On DJGPP, this test can blow up pretty badly due to problems in libc
11678 # (any single argument exceeding 2000 bytes causes a buffer overrun
11679 # during glob expansion). Even if it were fixed, the result of this
11680 # check would be larger than it should be.
11681 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11684 gnu*)
11685 # Under GNU Hurd, this test is not required because there is
11686 # no limit to the length of command line arguments.
11687 # Libtool will interpret -1 as no limit whatsoever
11688 lt_cv_sys_max_cmd_len=-1;
11691 cygwin* | mingw* | cegcc*)
11692 # On Win9x/ME, this test blows up -- it succeeds, but takes
11693 # about 5 minutes as the teststring grows exponentially.
11694 # Worse, since 9x/ME are not pre-emptively multitasking,
11695 # you end up with a "frozen" computer, even though with patience
11696 # the test eventually succeeds (with a max line length of 256k).
11697 # Instead, let's just punt: use the minimum linelength reported by
11698 # all of the supported platforms: 8192 (on NT/2K/XP).
11699 lt_cv_sys_max_cmd_len=8192;
11702 mint*)
11703 # On MiNT this can take a long time and run out of memory.
11704 lt_cv_sys_max_cmd_len=8192;
11707 amigaos*)
11708 # On AmigaOS with pdksh, this test takes hours, literally.
11709 # So we just punt and use a minimum line length of 8192.
11710 lt_cv_sys_max_cmd_len=8192;
11713 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11714 # This has been around since 386BSD, at least. Likely further.
11715 if test -x /sbin/sysctl; then
11716 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11717 elif test -x /usr/sbin/sysctl; then
11718 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11719 else
11720 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11722 # And add a safety zone
11723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11727 interix*)
11728 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11729 lt_cv_sys_max_cmd_len=196608
11732 osf*)
11733 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11734 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11735 # nice to cause kernel panics so lets avoid the loop below.
11736 # First set a reasonable default.
11737 lt_cv_sys_max_cmd_len=16384
11739 if test -x /sbin/sysconfig; then
11740 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11741 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11742 esac
11745 sco3.2v5*)
11746 lt_cv_sys_max_cmd_len=102400
11748 sysv5* | sco5v6* | sysv4.2uw2*)
11749 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11750 if test -n "$kargmax"; then
11751 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11752 else
11753 lt_cv_sys_max_cmd_len=32768
11757 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11758 if test -n "$lt_cv_sys_max_cmd_len"; then
11759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11761 else
11762 # Make teststring a little bigger before we do anything with it.
11763 # a 1K string should be a reasonable start.
11764 for i in 1 2 3 4 5 6 7 8 ; do
11765 teststring=$teststring$teststring
11766 done
11767 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11768 # If test is not a shell built-in, we'll probably end up computing a
11769 # maximum length that is only half of the actual maximum length, but
11770 # we can't tell.
11771 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11772 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11773 test $i != 17 # 1/2 MB should be enough
11775 i=`expr $i + 1`
11776 teststring=$teststring$teststring
11777 done
11778 # Only check the string length outside the loop.
11779 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11780 teststring=
11781 # Add a significant safety factor because C++ compilers can tack on
11782 # massive amounts of additional arguments before passing them to the
11783 # linker. It appears as though 1/2 is a usable value.
11784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11787 esac
11791 if test -n $lt_cv_sys_max_cmd_len ; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11793 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11794 else
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11796 $as_echo "none" >&6; }
11798 max_cmd_len=$lt_cv_sys_max_cmd_len
11805 : ${CP="cp -f"}
11806 : ${MV="mv -f"}
11807 : ${RM="rm -f"}
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11810 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11811 # Try some XSI features
11812 xsi_shell=no
11813 ( _lt_dummy="a/b/c"
11814 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11815 = c,a/b,, \
11816 && eval 'test $(( 1 + 1 )) -eq 2 \
11817 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11818 && xsi_shell=yes
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11820 $as_echo "$xsi_shell" >&6; }
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11824 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11825 lt_shell_append=no
11826 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11827 >/dev/null 2>&1 \
11828 && lt_shell_append=yes
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11830 $as_echo "$lt_shell_append" >&6; }
11833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11834 lt_unset=unset
11835 else
11836 lt_unset=false
11843 # test EBCDIC or ASCII
11844 case `echo X|tr X '\101'` in
11845 A) # ASCII based system
11846 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11847 lt_SP2NL='tr \040 \012'
11848 lt_NL2SP='tr \015\012 \040\040'
11850 *) # EBCDIC based system
11851 lt_SP2NL='tr \100 \n'
11852 lt_NL2SP='tr \r\n \100\100'
11854 esac
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11865 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11866 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 lt_cv_ld_reload_flag='-r'
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11872 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11873 reload_flag=$lt_cv_ld_reload_flag
11874 case $reload_flag in
11875 "" | " "*) ;;
11876 *) reload_flag=" $reload_flag" ;;
11877 esac
11878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11879 case $host_os in
11880 darwin*)
11881 if test "$GCC" = yes; then
11882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11883 else
11884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11887 esac
11897 if test -n "$ac_tool_prefix"; then
11898 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11899 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11903 $as_echo_n "(cached) " >&6
11904 else
11905 if test -n "$OBJDUMP"; then
11906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11907 else
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11915 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11919 done
11920 done
11921 IFS=$as_save_IFS
11925 OBJDUMP=$ac_cv_prog_OBJDUMP
11926 if test -n "$OBJDUMP"; then
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11928 $as_echo "$OBJDUMP" >&6; }
11929 else
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11936 if test -z "$ac_cv_prog_OBJDUMP"; then
11937 ac_ct_OBJDUMP=$OBJDUMP
11938 # Extract the first word of "objdump", so it can be a program name with args.
11939 set dummy objdump; ac_word=$2
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941 $as_echo_n "checking for $ac_word... " >&6; }
11942 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 if test -n "$ac_ct_OBJDUMP"; then
11946 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11947 else
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11955 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 break 2
11959 done
11960 done
11961 IFS=$as_save_IFS
11965 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11966 if test -n "$ac_ct_OBJDUMP"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11968 $as_echo "$ac_ct_OBJDUMP" >&6; }
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11974 if test "x$ac_ct_OBJDUMP" = x; then
11975 OBJDUMP="false"
11976 else
11977 case $cross_compiling:$ac_tool_warned in
11978 yes:)
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11981 ac_tool_warned=yes ;;
11982 esac
11983 OBJDUMP=$ac_ct_OBJDUMP
11985 else
11986 OBJDUMP="$ac_cv_prog_OBJDUMP"
11989 test -z "$OBJDUMP" && OBJDUMP=objdump
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12000 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12001 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 lt_cv_file_magic_cmd='$MAGIC_CMD'
12005 lt_cv_file_magic_test_file=
12006 lt_cv_deplibs_check_method='unknown'
12007 # Need to set the preceding variable on all platforms that support
12008 # interlibrary dependencies.
12009 # 'none' -- dependencies not supported.
12010 # `unknown' -- same as none, but documents that we really don't know.
12011 # 'pass_all' -- all dependencies passed with no checks.
12012 # 'test_compile' -- check by making test program.
12013 # 'file_magic [[regex]]' -- check by looking for files in library path
12014 # which responds to the $file_magic_cmd with a given extended regex.
12015 # If you have `file' or equivalent on your system and you're not sure
12016 # whether `pass_all' will *always* work, you probably want this one.
12018 case $host_os in
12019 aix[4-9]*)
12020 lt_cv_deplibs_check_method=pass_all
12023 beos*)
12024 lt_cv_deplibs_check_method=pass_all
12027 bsdi[45]*)
12028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12029 lt_cv_file_magic_cmd='/usr/bin/file -L'
12030 lt_cv_file_magic_test_file=/shlib/libc.so
12033 cygwin*)
12034 # func_win32_libid is a shell function defined in ltmain.sh
12035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12036 lt_cv_file_magic_cmd='func_win32_libid'
12039 mingw* | pw32*)
12040 # Base MSYS/MinGW do not provide the 'file' command needed by
12041 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12042 # unless we find 'file', for example because we are cross-compiling.
12043 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12044 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12046 lt_cv_file_magic_cmd='func_win32_libid'
12047 else
12048 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12049 lt_cv_file_magic_cmd='$OBJDUMP -f'
12053 cegcc*)
12054 # use the weaker test based on 'objdump'. See mingw*.
12055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12056 lt_cv_file_magic_cmd='$OBJDUMP -f'
12059 darwin* | rhapsody*)
12060 lt_cv_deplibs_check_method=pass_all
12063 freebsd* | dragonfly*)
12064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12065 case $host_cpu in
12066 i*86 )
12067 # Not sure whether the presence of OpenBSD here was a mistake.
12068 # Let's accept both of them until this is cleared up.
12069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12070 lt_cv_file_magic_cmd=/usr/bin/file
12071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12073 esac
12074 else
12075 lt_cv_deplibs_check_method=pass_all
12079 gnu*)
12080 lt_cv_deplibs_check_method=pass_all
12083 haiku*)
12084 lt_cv_deplibs_check_method=pass_all
12087 hpux10.20* | hpux11*)
12088 lt_cv_file_magic_cmd=/usr/bin/file
12089 case $host_cpu in
12090 ia64*)
12091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12094 hppa*64*)
12095 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]'
12096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12100 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12102 esac
12105 interix[3-9]*)
12106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12110 irix5* | irix6* | nonstopux*)
12111 case $LD in
12112 *-32|*"-32 ") libmagic=32-bit;;
12113 *-n32|*"-n32 ") libmagic=N32;;
12114 *-64|*"-64 ") libmagic=64-bit;;
12115 *) libmagic=never-match;;
12116 esac
12117 lt_cv_deplibs_check_method=pass_all
12120 # This must be Linux ELF.
12121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12122 lt_cv_deplibs_check_method=pass_all
12125 netbsd*)
12126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12128 else
12129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12133 newos6*)
12134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12135 lt_cv_file_magic_cmd=/usr/bin/file
12136 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12139 *nto* | *qnx*)
12140 lt_cv_deplibs_check_method=pass_all
12143 openbsd*)
12144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12146 else
12147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12151 osf3* | osf4* | osf5*)
12152 lt_cv_deplibs_check_method=pass_all
12155 rdos*)
12156 lt_cv_deplibs_check_method=pass_all
12159 solaris*)
12160 lt_cv_deplibs_check_method=pass_all
12163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12164 lt_cv_deplibs_check_method=pass_all
12167 sysv4 | sysv4.3*)
12168 case $host_vendor in
12169 motorola)
12170 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]'
12171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12173 ncr)
12174 lt_cv_deplibs_check_method=pass_all
12176 sequent)
12177 lt_cv_file_magic_cmd='/bin/file'
12178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12180 sni)
12181 lt_cv_file_magic_cmd='/bin/file'
12182 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12183 lt_cv_file_magic_test_file=/lib/libc.so
12185 siemens)
12186 lt_cv_deplibs_check_method=pass_all
12189 lt_cv_deplibs_check_method=pass_all
12191 esac
12194 tpf*)
12195 lt_cv_deplibs_check_method=pass_all
12197 esac
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12201 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12202 file_magic_cmd=$lt_cv_file_magic_cmd
12203 deplibs_check_method=$lt_cv_deplibs_check_method
12204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12217 if test -n "$ac_tool_prefix"; then
12218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12219 set dummy ${ac_tool_prefix}ar; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if test "${ac_cv_prog_AR+set}" = set; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 if test -n "$AR"; then
12226 ac_cv_prog_AR="$AR" # Let the user override the test.
12227 else
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235 ac_cv_prog_AR="${ac_tool_prefix}ar"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12239 done
12240 done
12241 IFS=$as_save_IFS
12245 AR=$ac_cv_prog_AR
12246 if test -n "$AR"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12248 $as_echo "$AR" >&6; }
12249 else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12256 if test -z "$ac_cv_prog_AR"; then
12257 ac_ct_AR=$AR
12258 # Extract the first word of "ar", so it can be a program name with args.
12259 set dummy ar; ac_word=$2
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261 $as_echo_n "checking for $ac_word... " >&6; }
12262 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 if test -n "$ac_ct_AR"; then
12266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12267 else
12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269 for as_dir in $PATH
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
12274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12275 ac_cv_prog_ac_ct_AR="ar"
12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12279 done
12280 done
12281 IFS=$as_save_IFS
12285 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12286 if test -n "$ac_ct_AR"; then
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12288 $as_echo "$ac_ct_AR" >&6; }
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12294 if test "x$ac_ct_AR" = x; then
12295 AR="false"
12296 else
12297 case $cross_compiling:$ac_tool_warned in
12298 yes:)
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12301 ac_tool_warned=yes ;;
12302 esac
12303 AR=$ac_ct_AR
12305 else
12306 AR="$ac_cv_prog_AR"
12309 test -z "$AR" && AR=ar
12310 test -z "$AR_FLAGS" && AR_FLAGS=cru
12322 if test -n "$ac_tool_prefix"; then
12323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12324 set dummy ${ac_tool_prefix}strip; ac_word=$2
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326 $as_echo_n "checking for $ac_word... " >&6; }
12327 if test "${ac_cv_prog_STRIP+set}" = set; then :
12328 $as_echo_n "(cached) " >&6
12329 else
12330 if test -n "$STRIP"; then
12331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12332 else
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12336 IFS=$as_save_IFS
12337 test -z "$as_dir" && as_dir=.
12338 for ac_exec_ext in '' $ac_executable_extensions; do
12339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12342 break 2
12344 done
12345 done
12346 IFS=$as_save_IFS
12350 STRIP=$ac_cv_prog_STRIP
12351 if test -n "$STRIP"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12353 $as_echo "$STRIP" >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12361 if test -z "$ac_cv_prog_STRIP"; then
12362 ac_ct_STRIP=$STRIP
12363 # Extract the first word of "strip", so it can be a program name with args.
12364 set dummy strip; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 if test -n "$ac_ct_STRIP"; then
12371 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12372 else
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380 ac_cv_prog_ac_ct_STRIP="strip"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382 break 2
12384 done
12385 done
12386 IFS=$as_save_IFS
12390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12391 if test -n "$ac_ct_STRIP"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12393 $as_echo "$ac_ct_STRIP" >&6; }
12394 else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12399 if test "x$ac_ct_STRIP" = x; then
12400 STRIP=":"
12401 else
12402 case $cross_compiling:$ac_tool_warned in
12403 yes:)
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12406 ac_tool_warned=yes ;;
12407 esac
12408 STRIP=$ac_ct_STRIP
12410 else
12411 STRIP="$ac_cv_prog_STRIP"
12414 test -z "$STRIP" && STRIP=:
12421 if test -n "$ac_tool_prefix"; then
12422 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12423 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425 $as_echo_n "checking for $ac_word... " >&6; }
12426 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12428 else
12429 if test -n "$RANLIB"; then
12430 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12431 else
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433 for as_dir in $PATH
12435 IFS=$as_save_IFS
12436 test -z "$as_dir" && as_dir=.
12437 for ac_exec_ext in '' $ac_executable_extensions; do
12438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12441 break 2
12443 done
12444 done
12445 IFS=$as_save_IFS
12449 RANLIB=$ac_cv_prog_RANLIB
12450 if test -n "$RANLIB"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12452 $as_echo "$RANLIB" >&6; }
12453 else
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 $as_echo "no" >&6; }
12460 if test -z "$ac_cv_prog_RANLIB"; then
12461 ac_ct_RANLIB=$RANLIB
12462 # Extract the first word of "ranlib", so it can be a program name with args.
12463 set dummy ranlib; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 if test -n "$ac_ct_RANLIB"; then
12470 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12471 else
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12479 ac_cv_prog_ac_ct_RANLIB="ranlib"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12483 done
12484 done
12485 IFS=$as_save_IFS
12489 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12490 if test -n "$ac_ct_RANLIB"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12492 $as_echo "$ac_ct_RANLIB" >&6; }
12493 else
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495 $as_echo "no" >&6; }
12498 if test "x$ac_ct_RANLIB" = x; then
12499 RANLIB=":"
12500 else
12501 case $cross_compiling:$ac_tool_warned in
12502 yes:)
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12505 ac_tool_warned=yes ;;
12506 esac
12507 RANLIB=$ac_ct_RANLIB
12509 else
12510 RANLIB="$ac_cv_prog_RANLIB"
12513 test -z "$RANLIB" && RANLIB=:
12520 # Determine commands to create old-style static archives.
12521 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12522 old_postinstall_cmds='chmod 644 $oldlib'
12523 old_postuninstall_cmds=
12525 if test -n "$RANLIB"; then
12526 case $host_os in
12527 openbsd*)
12528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12531 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12533 esac
12534 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12537 case $host_os in
12538 darwin*)
12539 lock_old_archive_extraction=yes ;;
12541 lock_old_archive_extraction=no ;;
12542 esac
12582 # If no C compiler was specified, use CC.
12583 LTCC=${LTCC-"$CC"}
12585 # If no C compiler flags were specified, use CFLAGS.
12586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12588 # Allow CC to be a program name with arguments.
12589 compiler=$CC
12592 # Check for command to grab the raw symbol name followed by C symbol from nm.
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12594 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12595 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12599 # These are sane defaults that work on at least a few old systems.
12600 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12602 # Character class describing NM global symbol codes.
12603 symcode='[BCDEGRST]'
12605 # Regexp to match symbols that can be accessed directly from C.
12606 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12608 # Define system-specific variables.
12609 case $host_os in
12610 aix*)
12611 symcode='[BCDT]'
12613 cygwin* | mingw* | pw32* | cegcc*)
12614 symcode='[ABCDGISTW]'
12616 hpux*)
12617 if test "$host_cpu" = ia64; then
12618 symcode='[ABCDEGRST]'
12621 irix* | nonstopux*)
12622 symcode='[BCDEGRST]'
12624 osf*)
12625 symcode='[BCDEGQRST]'
12627 solaris*)
12628 symcode='[BDRT]'
12630 sco3.2v5*)
12631 symcode='[DT]'
12633 sysv4.2uw2*)
12634 symcode='[DT]'
12636 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12637 symcode='[ABDT]'
12639 sysv4)
12640 symcode='[DFNSTU]'
12642 esac
12644 # If we're using GNU nm, then use its standard symbol codes.
12645 case `$NM -V 2>&1` in
12646 *GNU* | *'with BFD'*)
12647 symcode='[ABCDGIRSTW]' ;;
12648 esac
12650 # Transform an extracted symbol line into a proper C declaration.
12651 # Some systems (esp. on ia64) link data and code symbols differently,
12652 # so use this general approach.
12653 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12655 # Transform an extracted symbol line into symbol name and symbol address
12656 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12657 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'"
12659 # Handle CRLF in mingw tool chain
12660 opt_cr=
12661 case $build_os in
12662 mingw*)
12663 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12665 esac
12667 # Try without a prefix underscore, then with it.
12668 for ac_symprfx in "" "_"; do
12670 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12671 symxfrm="\\1 $ac_symprfx\\2 \\2"
12673 # Write the raw and C identifiers.
12674 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12675 # Fake it for dumpbin and say T for any non-static function
12676 # and D for any global variable.
12677 # Also find C++ and __fastcall symbols from MSVC++,
12678 # which start with @ or ?.
12679 lt_cv_sys_global_symbol_pipe="$AWK '"\
12680 " {last_section=section; section=\$ 3};"\
12681 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12682 " \$ 0!~/External *\|/{next};"\
12683 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12684 " {if(hide[section]) next};"\
12685 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12686 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12687 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12688 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12689 " ' prfx=^$ac_symprfx"
12690 else
12691 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12694 # Check to see that the pipe works correctly.
12695 pipe_works=no
12697 rm -f conftest*
12698 cat > conftest.$ac_ext <<_LT_EOF
12699 #ifdef __cplusplus
12700 extern "C" {
12701 #endif
12702 char nm_test_var;
12703 void nm_test_func(void);
12704 void nm_test_func(void){}
12705 #ifdef __cplusplus
12707 #endif
12708 int main(){nm_test_var='a';nm_test_func();return(0);}
12709 _LT_EOF
12711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12712 (eval $ac_compile) 2>&5
12713 ac_status=$?
12714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12715 test $ac_status = 0; }; then
12716 # Now try to grab the symbols.
12717 nlist=conftest.nm
12718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12719 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12720 ac_status=$?
12721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12722 test $ac_status = 0; } && test -s "$nlist"; then
12723 # Try sorting and uniquifying the output.
12724 if sort "$nlist" | uniq > "$nlist"T; then
12725 mv -f "$nlist"T "$nlist"
12726 else
12727 rm -f "$nlist"T
12730 # Make sure that we snagged all the symbols we need.
12731 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12732 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12733 cat <<_LT_EOF > conftest.$ac_ext
12734 #ifdef __cplusplus
12735 extern "C" {
12736 #endif
12738 _LT_EOF
12739 # Now generate the symbol file.
12740 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12742 cat <<_LT_EOF >> conftest.$ac_ext
12744 /* The mapping between symbol names and symbols. */
12745 const struct {
12746 const char *name;
12747 void *address;
12749 lt__PROGRAM__LTX_preloaded_symbols[] =
12751 { "@PROGRAM@", (void *) 0 },
12752 _LT_EOF
12753 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12754 cat <<\_LT_EOF >> conftest.$ac_ext
12755 {0, (void *) 0}
12758 /* This works around a problem in FreeBSD linker */
12759 #ifdef FREEBSD_WORKAROUND
12760 static const void *lt_preloaded_setup() {
12761 return lt__PROGRAM__LTX_preloaded_symbols;
12763 #endif
12765 #ifdef __cplusplus
12767 #endif
12768 _LT_EOF
12769 # Now try linking the two files.
12770 mv conftest.$ac_objext conftstm.$ac_objext
12771 lt_save_LIBS="$LIBS"
12772 lt_save_CFLAGS="$CFLAGS"
12773 LIBS="conftstm.$ac_objext"
12774 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12776 (eval $ac_link) 2>&5
12777 ac_status=$?
12778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12779 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12780 pipe_works=yes
12782 LIBS="$lt_save_LIBS"
12783 CFLAGS="$lt_save_CFLAGS"
12784 else
12785 echo "cannot find nm_test_func in $nlist" >&5
12787 else
12788 echo "cannot find nm_test_var in $nlist" >&5
12790 else
12791 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12793 else
12794 echo "$progname: failed program was:" >&5
12795 cat conftest.$ac_ext >&5
12797 rm -rf conftest* conftst*
12799 # Do not use the global_symbol_pipe unless it works.
12800 if test "$pipe_works" = yes; then
12801 break
12802 else
12803 lt_cv_sys_global_symbol_pipe=
12805 done
12809 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12810 lt_cv_sys_global_symbol_to_cdecl=
12812 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12814 $as_echo "failed" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12817 $as_echo "ok" >&6; }
12841 # Check whether --enable-libtool-lock was given.
12842 if test "${enable_libtool_lock+set}" = set; then :
12843 enableval=$enable_libtool_lock;
12846 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12848 # Some flags need to be propagated to the compiler or linker for good
12849 # libtool support.
12850 case $host in
12851 ia64-*-hpux*)
12852 # Find out which ABI we are using.
12853 echo 'int i;' > conftest.$ac_ext
12854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12855 (eval $ac_compile) 2>&5
12856 ac_status=$?
12857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12858 test $ac_status = 0; }; then
12859 case `/usr/bin/file conftest.$ac_objext` in
12860 *ELF-32*)
12861 HPUX_IA64_MODE="32"
12863 *ELF-64*)
12864 HPUX_IA64_MODE="64"
12866 esac
12868 rm -rf conftest*
12870 *-*-irix6*)
12871 # Find out which ABI we are using.
12872 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12874 (eval $ac_compile) 2>&5
12875 ac_status=$?
12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12877 test $ac_status = 0; }; then
12878 if test "$lt_cv_prog_gnu_ld" = yes; then
12879 case `/usr/bin/file conftest.$ac_objext` in
12880 *32-bit*)
12881 LD="${LD-ld} -melf32bsmip"
12883 *N32*)
12884 LD="${LD-ld} -melf32bmipn32"
12886 *64-bit*)
12887 LD="${LD-ld} -melf64bmip"
12889 esac
12890 else
12891 case `/usr/bin/file conftest.$ac_objext` in
12892 *32-bit*)
12893 LD="${LD-ld} -32"
12895 *N32*)
12896 LD="${LD-ld} -n32"
12898 *64-bit*)
12899 LD="${LD-ld} -64"
12901 esac
12904 rm -rf conftest*
12907 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12908 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12909 # Find out which ABI we are using.
12910 echo 'int i;' > conftest.$ac_ext
12911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12912 (eval $ac_compile) 2>&5
12913 ac_status=$?
12914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12915 test $ac_status = 0; }; then
12916 case `/usr/bin/file conftest.o` in
12917 *32-bit*)
12918 case $host in
12919 x86_64-*kfreebsd*-gnu)
12920 LD="${LD-ld} -m elf_i386_fbsd"
12922 x86_64-*linux*)
12923 LD="${LD-ld} -m elf_i386"
12925 ppc64-*linux*|powerpc64-*linux*)
12926 LD="${LD-ld} -m elf32ppclinux"
12928 s390x-*linux*)
12929 LD="${LD-ld} -m elf_s390"
12931 sparc64-*linux*)
12932 LD="${LD-ld} -m elf32_sparc"
12934 esac
12936 *64-bit*)
12937 case $host in
12938 x86_64-*kfreebsd*-gnu)
12939 LD="${LD-ld} -m elf_x86_64_fbsd"
12941 x86_64-*linux*)
12942 LD="${LD-ld} -m elf_x86_64"
12944 ppc*-*linux*|powerpc*-*linux*)
12945 LD="${LD-ld} -m elf64ppc"
12947 s390*-*linux*|s390*-*tpf*)
12948 LD="${LD-ld} -m elf64_s390"
12950 sparc*-*linux*)
12951 LD="${LD-ld} -m elf64_sparc"
12953 esac
12955 esac
12957 rm -rf conftest*
12960 *-*-sco3.2v5*)
12961 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12962 SAVE_CFLAGS="$CFLAGS"
12963 CFLAGS="$CFLAGS -belf"
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12965 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12966 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 ac_ext=c
12970 ac_cpp='$CPP $CPPFLAGS'
12971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12979 main ()
12983 return 0;
12985 _ACEOF
12986 if ac_fn_c_try_link "$LINENO"; then :
12987 lt_cv_cc_needs_belf=yes
12988 else
12989 lt_cv_cc_needs_belf=no
12991 rm -f core conftest.err conftest.$ac_objext \
12992 conftest$ac_exeext conftest.$ac_ext
12993 ac_ext=c
12994 ac_cpp='$CPP $CPPFLAGS'
12995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13001 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13002 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13003 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13004 CFLAGS="$SAVE_CFLAGS"
13007 sparc*-*solaris*)
13008 # Find out which ABI we are using.
13009 echo 'int i;' > conftest.$ac_ext
13010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13011 (eval $ac_compile) 2>&5
13012 ac_status=$?
13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13014 test $ac_status = 0; }; then
13015 case `/usr/bin/file conftest.o` in
13016 *64-bit*)
13017 case $lt_cv_prog_gnu_ld in
13018 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13020 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13021 LD="${LD-ld} -64"
13024 esac
13026 esac
13028 rm -rf conftest*
13030 esac
13032 need_locks="$enable_libtool_lock"
13035 case $host_os in
13036 rhapsody* | darwin*)
13037 if test -n "$ac_tool_prefix"; then
13038 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13039 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 if test -n "$DSYMUTIL"; then
13046 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13047 else
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13051 IFS=$as_save_IFS
13052 test -z "$as_dir" && as_dir=.
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13057 break 2
13059 done
13060 done
13061 IFS=$as_save_IFS
13065 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13066 if test -n "$DSYMUTIL"; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13068 $as_echo "$DSYMUTIL" >&6; }
13069 else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13076 if test -z "$ac_cv_prog_DSYMUTIL"; then
13077 ac_ct_DSYMUTIL=$DSYMUTIL
13078 # Extract the first word of "dsymutil", so it can be a program name with args.
13079 set dummy dsymutil; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13081 $as_echo_n "checking for $ac_word... " >&6; }
13082 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 if test -n "$ac_ct_DSYMUTIL"; then
13086 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13087 else
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13099 done
13100 done
13101 IFS=$as_save_IFS
13105 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13106 if test -n "$ac_ct_DSYMUTIL"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13108 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13109 else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111 $as_echo "no" >&6; }
13114 if test "x$ac_ct_DSYMUTIL" = x; then
13115 DSYMUTIL=":"
13116 else
13117 case $cross_compiling:$ac_tool_warned in
13118 yes:)
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13121 ac_tool_warned=yes ;;
13122 esac
13123 DSYMUTIL=$ac_ct_DSYMUTIL
13125 else
13126 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13129 if test -n "$ac_tool_prefix"; then
13130 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13131 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 if test -n "$NMEDIT"; then
13138 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13139 else
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13143 IFS=$as_save_IFS
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13149 break 2
13151 done
13152 done
13153 IFS=$as_save_IFS
13157 NMEDIT=$ac_cv_prog_NMEDIT
13158 if test -n "$NMEDIT"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13160 $as_echo "$NMEDIT" >&6; }
13161 else
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13163 $as_echo "no" >&6; }
13168 if test -z "$ac_cv_prog_NMEDIT"; then
13169 ac_ct_NMEDIT=$NMEDIT
13170 # Extract the first word of "nmedit", so it can be a program name with args.
13171 set dummy nmedit; ac_word=$2
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13173 $as_echo_n "checking for $ac_word... " >&6; }
13174 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13175 $as_echo_n "(cached) " >&6
13176 else
13177 if test -n "$ac_ct_NMEDIT"; then
13178 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13179 else
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13183 IFS=$as_save_IFS
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13187 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13189 break 2
13191 done
13192 done
13193 IFS=$as_save_IFS
13197 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13198 if test -n "$ac_ct_NMEDIT"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13200 $as_echo "$ac_ct_NMEDIT" >&6; }
13201 else
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13203 $as_echo "no" >&6; }
13206 if test "x$ac_ct_NMEDIT" = x; then
13207 NMEDIT=":"
13208 else
13209 case $cross_compiling:$ac_tool_warned in
13210 yes:)
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13213 ac_tool_warned=yes ;;
13214 esac
13215 NMEDIT=$ac_ct_NMEDIT
13217 else
13218 NMEDIT="$ac_cv_prog_NMEDIT"
13221 if test -n "$ac_tool_prefix"; then
13222 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13223 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13225 $as_echo_n "checking for $ac_word... " >&6; }
13226 if test "${ac_cv_prog_LIPO+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 if test -n "$LIPO"; then
13230 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13231 else
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13235 IFS=$as_save_IFS
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13239 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 break 2
13243 done
13244 done
13245 IFS=$as_save_IFS
13249 LIPO=$ac_cv_prog_LIPO
13250 if test -n "$LIPO"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13252 $as_echo "$LIPO" >&6; }
13253 else
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255 $as_echo "no" >&6; }
13260 if test -z "$ac_cv_prog_LIPO"; then
13261 ac_ct_LIPO=$LIPO
13262 # Extract the first word of "lipo", so it can be a program name with args.
13263 set dummy lipo; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test -n "$ac_ct_LIPO"; then
13270 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_ac_ct_LIPO="lipo"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13283 done
13284 done
13285 IFS=$as_save_IFS
13289 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13290 if test -n "$ac_ct_LIPO"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13292 $as_echo "$ac_ct_LIPO" >&6; }
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13298 if test "x$ac_ct_LIPO" = x; then
13299 LIPO=":"
13300 else
13301 case $cross_compiling:$ac_tool_warned in
13302 yes:)
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13305 ac_tool_warned=yes ;;
13306 esac
13307 LIPO=$ac_ct_LIPO
13309 else
13310 LIPO="$ac_cv_prog_LIPO"
13313 if test -n "$ac_tool_prefix"; then
13314 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13315 set dummy ${ac_tool_prefix}otool; ac_word=$2
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317 $as_echo_n "checking for $ac_word... " >&6; }
13318 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
13320 else
13321 if test -n "$OTOOL"; then
13322 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13323 else
13324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325 for as_dir in $PATH
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13331 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13335 done
13336 done
13337 IFS=$as_save_IFS
13341 OTOOL=$ac_cv_prog_OTOOL
13342 if test -n "$OTOOL"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13344 $as_echo "$OTOOL" >&6; }
13345 else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347 $as_echo "no" >&6; }
13352 if test -z "$ac_cv_prog_OTOOL"; then
13353 ac_ct_OTOOL=$OTOOL
13354 # Extract the first word of "otool", so it can be a program name with args.
13355 set dummy otool; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 if test -n "$ac_ct_OTOOL"; then
13362 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13363 else
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13367 IFS=$as_save_IFS
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_prog_ac_ct_OTOOL="otool"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373 break 2
13375 done
13376 done
13377 IFS=$as_save_IFS
13381 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13382 if test -n "$ac_ct_OTOOL"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13384 $as_echo "$ac_ct_OTOOL" >&6; }
13385 else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387 $as_echo "no" >&6; }
13390 if test "x$ac_ct_OTOOL" = x; then
13391 OTOOL=":"
13392 else
13393 case $cross_compiling:$ac_tool_warned in
13394 yes:)
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13397 ac_tool_warned=yes ;;
13398 esac
13399 OTOOL=$ac_ct_OTOOL
13401 else
13402 OTOOL="$ac_cv_prog_OTOOL"
13405 if test -n "$ac_tool_prefix"; then
13406 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13407 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13409 $as_echo_n "checking for $ac_word... " >&6; }
13410 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13411 $as_echo_n "(cached) " >&6
13412 else
13413 if test -n "$OTOOL64"; then
13414 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13415 else
13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13417 for as_dir in $PATH
13419 IFS=$as_save_IFS
13420 test -z "$as_dir" && as_dir=.
13421 for ac_exec_ext in '' $ac_executable_extensions; do
13422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13423 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 break 2
13427 done
13428 done
13429 IFS=$as_save_IFS
13433 OTOOL64=$ac_cv_prog_OTOOL64
13434 if test -n "$OTOOL64"; then
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13436 $as_echo "$OTOOL64" >&6; }
13437 else
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13444 if test -z "$ac_cv_prog_OTOOL64"; then
13445 ac_ct_OTOOL64=$OTOOL64
13446 # Extract the first word of "otool64", so it can be a program name with args.
13447 set dummy otool64; ac_word=$2
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449 $as_echo_n "checking for $ac_word... " >&6; }
13450 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 if test -n "$ac_ct_OTOOL64"; then
13454 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13455 else
13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457 for as_dir in $PATH
13459 IFS=$as_save_IFS
13460 test -z "$as_dir" && as_dir=.
13461 for ac_exec_ext in '' $ac_executable_extensions; do
13462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463 ac_cv_prog_ac_ct_OTOOL64="otool64"
13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 break 2
13467 done
13468 done
13469 IFS=$as_save_IFS
13473 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13474 if test -n "$ac_ct_OTOOL64"; then
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13476 $as_echo "$ac_ct_OTOOL64" >&6; }
13477 else
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13482 if test "x$ac_ct_OTOOL64" = x; then
13483 OTOOL64=":"
13484 else
13485 case $cross_compiling:$ac_tool_warned in
13486 yes:)
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13489 ac_tool_warned=yes ;;
13490 esac
13491 OTOOL64=$ac_ct_OTOOL64
13493 else
13494 OTOOL64="$ac_cv_prog_OTOOL64"
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13524 $as_echo_n "checking for -single_module linker flag... " >&6; }
13525 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 lt_cv_apple_cc_single_mod=no
13529 if test -z "${LT_MULTI_MODULE}"; then
13530 # By default we will add the -single_module flag. You can override
13531 # by either setting the environment variable LT_MULTI_MODULE
13532 # non-empty at configure time, or by adding -multi_module to the
13533 # link flags.
13534 rm -rf libconftest.dylib*
13535 echo "int foo(void){return 1;}" > conftest.c
13536 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13537 -dynamiclib -Wl,-single_module conftest.c" >&5
13538 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13539 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13540 _lt_result=$?
13541 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13542 lt_cv_apple_cc_single_mod=yes
13543 else
13544 cat conftest.err >&5
13546 rm -rf libconftest.dylib*
13547 rm -f conftest.*
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13551 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13553 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13554 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 lt_cv_ld_exported_symbols_list=no
13558 save_LDFLAGS=$LDFLAGS
13559 echo "_main" > conftest.sym
13560 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13565 main ()
13569 return 0;
13571 _ACEOF
13572 if ac_fn_c_try_link "$LINENO"; then :
13573 lt_cv_ld_exported_symbols_list=yes
13574 else
13575 lt_cv_ld_exported_symbols_list=no
13577 rm -f core conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13579 LDFLAGS="$save_LDFLAGS"
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13583 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13585 $as_echo_n "checking for -force_load linker flag... " >&6; }
13586 if test "${lt_cv_ld_force_load+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 lt_cv_ld_force_load=no
13590 cat > conftest.c << _LT_EOF
13591 int forced_loaded() { return 2;}
13592 _LT_EOF
13593 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13594 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13595 echo "$AR cru libconftest.a conftest.o" >&5
13596 $AR cru libconftest.a conftest.o 2>&5
13597 cat > conftest.c << _LT_EOF
13598 int main() { return 0;}
13599 _LT_EOF
13600 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13601 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13602 _lt_result=$?
13603 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13604 lt_cv_ld_force_load=yes
13605 else
13606 cat conftest.err >&5
13608 rm -f conftest.err libconftest.a conftest conftest.c
13609 rm -rf conftest.dSYM
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13613 $as_echo "$lt_cv_ld_force_load" >&6; }
13614 case $host_os in
13615 rhapsody* | darwin1.[012])
13616 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13617 darwin1.*)
13618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13619 darwin*) # darwin 5.x on
13620 # if running on 10.5 or later, the deployment target defaults
13621 # to the OS version, if on x86, and 10.4, the deployment
13622 # target defaults to 10.4. Don't you love it?
13623 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13624 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13625 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13626 10.[012]*)
13627 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13628 10.*)
13629 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13630 esac
13632 esac
13633 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13634 _lt_dar_single_mod='$single_module'
13636 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13637 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13638 else
13639 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13641 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13642 _lt_dsymutil='~$DSYMUTIL $lib || :'
13643 else
13644 _lt_dsymutil=
13647 esac
13649 for ac_header in dlfcn.h
13650 do :
13651 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13652 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13653 cat >>confdefs.h <<_ACEOF
13654 #define HAVE_DLFCN_H 1
13655 _ACEOF
13658 done
13665 # Set options
13669 enable_dlopen=no
13672 enable_win32_dll=no
13675 # Check whether --enable-shared was given.
13676 if test "${enable_shared+set}" = set; then :
13677 enableval=$enable_shared; p=${PACKAGE-default}
13678 case $enableval in
13679 yes) enable_shared=yes ;;
13680 no) enable_shared=no ;;
13682 enable_shared=no
13683 # Look at the argument we got. We use all the common list separators.
13684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13685 for pkg in $enableval; do
13686 IFS="$lt_save_ifs"
13687 if test "X$pkg" = "X$p"; then
13688 enable_shared=yes
13690 done
13691 IFS="$lt_save_ifs"
13693 esac
13694 else
13695 enable_shared=yes
13706 # Check whether --enable-static was given.
13707 if test "${enable_static+set}" = set; then :
13708 enableval=$enable_static; p=${PACKAGE-default}
13709 case $enableval in
13710 yes) enable_static=yes ;;
13711 no) enable_static=no ;;
13713 enable_static=no
13714 # Look at the argument we got. We use all the common list separators.
13715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13716 for pkg in $enableval; do
13717 IFS="$lt_save_ifs"
13718 if test "X$pkg" = "X$p"; then
13719 enable_static=yes
13721 done
13722 IFS="$lt_save_ifs"
13724 esac
13725 else
13726 enable_static=yes
13738 # Check whether --with-pic was given.
13739 if test "${with_pic+set}" = set; then :
13740 withval=$with_pic; pic_mode="$withval"
13741 else
13742 pic_mode=default
13746 test -z "$pic_mode" && pic_mode=default
13754 # Check whether --enable-fast-install was given.
13755 if test "${enable_fast_install+set}" = set; then :
13756 enableval=$enable_fast_install; p=${PACKAGE-default}
13757 case $enableval in
13758 yes) enable_fast_install=yes ;;
13759 no) enable_fast_install=no ;;
13761 enable_fast_install=no
13762 # Look at the argument we got. We use all the common list separators.
13763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13764 for pkg in $enableval; do
13765 IFS="$lt_save_ifs"
13766 if test "X$pkg" = "X$p"; then
13767 enable_fast_install=yes
13769 done
13770 IFS="$lt_save_ifs"
13772 esac
13773 else
13774 enable_fast_install=yes
13787 # This can be used to rebuild libtool when needed
13788 LIBTOOL_DEPS="$ltmain"
13790 # Always use our own libtool.
13791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13818 test -z "$LN_S" && LN_S="ln -s"
13833 if test -n "${ZSH_VERSION+set}" ; then
13834 setopt NO_GLOB_SUBST
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13838 $as_echo_n "checking for objdir... " >&6; }
13839 if test "${lt_cv_objdir+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 rm -f .libs 2>/dev/null
13843 mkdir .libs 2>/dev/null
13844 if test -d .libs; then
13845 lt_cv_objdir=.libs
13846 else
13847 # MS-DOS does not allow filenames that begin with a dot.
13848 lt_cv_objdir=_libs
13850 rmdir .libs 2>/dev/null
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13853 $as_echo "$lt_cv_objdir" >&6; }
13854 objdir=$lt_cv_objdir
13860 cat >>confdefs.h <<_ACEOF
13861 #define LT_OBJDIR "$lt_cv_objdir/"
13862 _ACEOF
13867 case $host_os in
13868 aix3*)
13869 # AIX sometimes has problems with the GCC collect2 program. For some
13870 # reason, if we set the COLLECT_NAMES environment variable, the problems
13871 # vanish in a puff of smoke.
13872 if test "X${COLLECT_NAMES+set}" != Xset; then
13873 COLLECT_NAMES=
13874 export COLLECT_NAMES
13877 esac
13879 # Global variables:
13880 ofile=libtool
13881 can_build_shared=yes
13883 # All known linkers require a `.a' archive for static linking (except MSVC,
13884 # which needs '.lib').
13885 libext=a
13887 with_gnu_ld="$lt_cv_prog_gnu_ld"
13889 old_CC="$CC"
13890 old_CFLAGS="$CFLAGS"
13892 # Set sane defaults for various variables
13893 test -z "$CC" && CC=cc
13894 test -z "$LTCC" && LTCC=$CC
13895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13896 test -z "$LD" && LD=ld
13897 test -z "$ac_objext" && ac_objext=o
13899 for cc_temp in $compiler""; do
13900 case $cc_temp in
13901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13903 \-*) ;;
13904 *) break;;
13905 esac
13906 done
13907 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13910 # Only perform the check for file, if the check method requires it
13911 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13912 case $deplibs_check_method in
13913 file_magic*)
13914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13916 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13917 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 case $MAGIC_CMD in
13921 [\\/*] | ?:[\\/]*)
13922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13925 lt_save_MAGIC_CMD="$MAGIC_CMD"
13926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13928 for ac_dir in $ac_dummy; do
13929 IFS="$lt_save_ifs"
13930 test -z "$ac_dir" && ac_dir=.
13931 if test -f $ac_dir/${ac_tool_prefix}file; then
13932 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13933 if test -n "$file_magic_test_file"; then
13934 case $deplibs_check_method in
13935 "file_magic "*)
13936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13939 $EGREP "$file_magic_regex" > /dev/null; then
13941 else
13942 cat <<_LT_EOF 1>&2
13944 *** Warning: the command libtool uses to detect shared libraries,
13945 *** $file_magic_cmd, produces output that libtool cannot recognize.
13946 *** The result is that libtool may fail to recognize shared libraries
13947 *** as such. This will affect the creation of libtool libraries that
13948 *** depend on shared libraries, but programs linked with such libtool
13949 *** libraries will work regardless of this problem. Nevertheless, you
13950 *** may want to report the problem to your system manager and/or to
13951 *** bug-libtool@gnu.org
13953 _LT_EOF
13954 fi ;;
13955 esac
13957 break
13959 done
13960 IFS="$lt_save_ifs"
13961 MAGIC_CMD="$lt_save_MAGIC_CMD"
13963 esac
13966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13967 if test -n "$MAGIC_CMD"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13969 $as_echo "$MAGIC_CMD" >&6; }
13970 else
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13979 if test -z "$lt_cv_path_MAGIC_CMD"; then
13980 if test -n "$ac_tool_prefix"; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13982 $as_echo_n "checking for file... " >&6; }
13983 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13984 $as_echo_n "(cached) " >&6
13985 else
13986 case $MAGIC_CMD in
13987 [\\/*] | ?:[\\/]*)
13988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13991 lt_save_MAGIC_CMD="$MAGIC_CMD"
13992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13994 for ac_dir in $ac_dummy; do
13995 IFS="$lt_save_ifs"
13996 test -z "$ac_dir" && ac_dir=.
13997 if test -f $ac_dir/file; then
13998 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13999 if test -n "$file_magic_test_file"; then
14000 case $deplibs_check_method in
14001 "file_magic "*)
14002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14005 $EGREP "$file_magic_regex" > /dev/null; then
14007 else
14008 cat <<_LT_EOF 1>&2
14010 *** Warning: the command libtool uses to detect shared libraries,
14011 *** $file_magic_cmd, produces output that libtool cannot recognize.
14012 *** The result is that libtool may fail to recognize shared libraries
14013 *** as such. This will affect the creation of libtool libraries that
14014 *** depend on shared libraries, but programs linked with such libtool
14015 *** libraries will work regardless of this problem. Nevertheless, you
14016 *** may want to report the problem to your system manager and/or to
14017 *** bug-libtool@gnu.org
14019 _LT_EOF
14020 fi ;;
14021 esac
14023 break
14025 done
14026 IFS="$lt_save_ifs"
14027 MAGIC_CMD="$lt_save_MAGIC_CMD"
14029 esac
14032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14033 if test -n "$MAGIC_CMD"; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14035 $as_echo "$MAGIC_CMD" >&6; }
14036 else
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038 $as_echo "no" >&6; }
14042 else
14043 MAGIC_CMD=:
14049 esac
14051 # Use C for the default configuration in the libtool script
14053 lt_save_CC="$CC"
14054 ac_ext=c
14055 ac_cpp='$CPP $CPPFLAGS'
14056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14061 # Source file extension for C test sources.
14062 ac_ext=c
14064 # Object file extension for compiled C test sources.
14065 objext=o
14066 objext=$objext
14068 # Code to be used in simple compile tests
14069 lt_simple_compile_test_code="int some_variable = 0;"
14071 # Code to be used in simple link tests
14072 lt_simple_link_test_code='int main(){return(0);}'
14080 # If no C compiler was specified, use CC.
14081 LTCC=${LTCC-"$CC"}
14083 # If no C compiler flags were specified, use CFLAGS.
14084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14086 # Allow CC to be a program name with arguments.
14087 compiler=$CC
14089 # Save the default compiler, since it gets overwritten when the other
14090 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14091 compiler_DEFAULT=$CC
14093 # save warnings/boilerplate of simple test code
14094 ac_outfile=conftest.$ac_objext
14095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14097 _lt_compiler_boilerplate=`cat conftest.err`
14098 $RM conftest*
14100 ac_outfile=conftest.$ac_objext
14101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14103 _lt_linker_boilerplate=`cat conftest.err`
14104 $RM -r conftest*
14107 ## CAVEAT EMPTOR:
14108 ## There is no encapsulation within the following macros, do not change
14109 ## the running order or otherwise move them around unless you know exactly
14110 ## what you are doing...
14111 if test -n "$compiler"; then
14113 lt_prog_compiler_no_builtin_flag=
14115 if test "$GCC" = yes; then
14116 case $cc_basename in
14117 nvcc*)
14118 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14120 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14121 esac
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14124 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14125 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14127 else
14128 lt_cv_prog_compiler_rtti_exceptions=no
14129 ac_outfile=conftest.$ac_objext
14130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14131 lt_compiler_flag="-fno-rtti -fno-exceptions"
14132 # Insert the option either (1) after the last *FLAGS variable, or
14133 # (2) before a word containing "conftest.", or (3) at the end.
14134 # Note that $ac_compile itself does not contain backslashes and begins
14135 # with a dollar sign (not a hyphen), so the echo should work correctly.
14136 # The option is referenced via a variable to avoid confusing sed.
14137 lt_compile=`echo "$ac_compile" | $SED \
14138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14140 -e 's:$: $lt_compiler_flag:'`
14141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14142 (eval "$lt_compile" 2>conftest.err)
14143 ac_status=$?
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 if (exit $ac_status) && test -s "$ac_outfile"; then
14147 # The compiler can only warn and ignore the option if not recognized
14148 # So say no if there are warnings other than the usual output.
14149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14152 lt_cv_prog_compiler_rtti_exceptions=yes
14155 $RM conftest*
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14159 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14161 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14162 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14163 else
14174 lt_prog_compiler_wl=
14175 lt_prog_compiler_pic=
14176 lt_prog_compiler_static=
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14179 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14181 if test "$GCC" = yes; then
14182 lt_prog_compiler_wl='-Wl,'
14183 lt_prog_compiler_static='-static'
14185 case $host_os in
14186 aix*)
14187 # All AIX code is PIC.
14188 if test "$host_cpu" = ia64; then
14189 # AIX 5 now supports IA64 processor
14190 lt_prog_compiler_static='-Bstatic'
14194 amigaos*)
14195 case $host_cpu in
14196 powerpc)
14197 # see comment about AmigaOS4 .so support
14198 lt_prog_compiler_pic='-fPIC'
14200 m68k)
14201 # FIXME: we need at least 68020 code to build shared libraries, but
14202 # adding the `-m68020' flag to GCC prevents building anything better,
14203 # like `-m68040'.
14204 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14206 esac
14209 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14210 # PIC is the default for these OSes.
14213 mingw* | cygwin* | pw32* | os2* | cegcc*)
14214 # This hack is so that the source file can tell whether it is being
14215 # built for inclusion in a dll (and should export symbols for example).
14216 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14217 # (--disable-auto-import) libraries
14218 lt_prog_compiler_pic='-DDLL_EXPORT'
14221 darwin* | rhapsody*)
14222 # PIC is the default on this platform
14223 # Common symbols not allowed in MH_DYLIB files
14224 lt_prog_compiler_pic='-fno-common'
14227 haiku*)
14228 # PIC is the default for Haiku.
14229 # The "-static" flag exists, but is broken.
14230 lt_prog_compiler_static=
14233 hpux*)
14234 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14235 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14236 # sets the default TLS model and affects inlining.
14237 case $host_cpu in
14238 hppa*64*)
14239 # +Z the default
14242 lt_prog_compiler_pic='-fPIC'
14244 esac
14247 interix[3-9]*)
14248 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14249 # Instead, we relocate shared libraries at runtime.
14252 msdosdjgpp*)
14253 # Just because we use GCC doesn't mean we suddenly get shared libraries
14254 # on systems that don't support them.
14255 lt_prog_compiler_can_build_shared=no
14256 enable_shared=no
14259 *nto* | *qnx*)
14260 # QNX uses GNU C++, but need to define -shared option too, otherwise
14261 # it will coredump.
14262 lt_prog_compiler_pic='-fPIC -shared'
14265 sysv4*MP*)
14266 if test -d /usr/nec; then
14267 lt_prog_compiler_pic=-Kconform_pic
14272 lt_prog_compiler_pic='-fPIC'
14274 esac
14276 case $cc_basename in
14277 nvcc*) # Cuda Compiler Driver 2.2
14278 lt_prog_compiler_wl='-Xlinker '
14279 lt_prog_compiler_pic='-Xcompiler -fPIC'
14281 esac
14282 else
14283 # PORTME Check for flag to pass linker flags through the system compiler.
14284 case $host_os in
14285 aix*)
14286 lt_prog_compiler_wl='-Wl,'
14287 if test "$host_cpu" = ia64; then
14288 # AIX 5 now supports IA64 processor
14289 lt_prog_compiler_static='-Bstatic'
14290 else
14291 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14295 mingw* | cygwin* | pw32* | os2* | cegcc*)
14296 # This hack is so that the source file can tell whether it is being
14297 # built for inclusion in a dll (and should export symbols for example).
14298 lt_prog_compiler_pic='-DDLL_EXPORT'
14301 hpux9* | hpux10* | hpux11*)
14302 lt_prog_compiler_wl='-Wl,'
14303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14304 # not for PA HP-UX.
14305 case $host_cpu in
14306 hppa*64*|ia64*)
14307 # +Z the default
14310 lt_prog_compiler_pic='+Z'
14312 esac
14313 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14314 lt_prog_compiler_static='${wl}-a ${wl}archive'
14317 irix5* | irix6* | nonstopux*)
14318 lt_prog_compiler_wl='-Wl,'
14319 # PIC (with -KPIC) is the default.
14320 lt_prog_compiler_static='-non_shared'
14323 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14324 case $cc_basename in
14325 # old Intel for x86_64 which still supported -KPIC.
14326 ecc*)
14327 lt_prog_compiler_wl='-Wl,'
14328 lt_prog_compiler_pic='-KPIC'
14329 lt_prog_compiler_static='-static'
14331 # icc used to be incompatible with GCC.
14332 # ICC 10 doesn't accept -KPIC any more.
14333 icc* | ifort*)
14334 lt_prog_compiler_wl='-Wl,'
14335 lt_prog_compiler_pic='-fPIC'
14336 lt_prog_compiler_static='-static'
14338 # Lahey Fortran 8.1.
14339 lf95*)
14340 lt_prog_compiler_wl='-Wl,'
14341 lt_prog_compiler_pic='--shared'
14342 lt_prog_compiler_static='--static'
14344 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14345 # Portland Group compilers (*not* the Pentium gcc compiler,
14346 # which looks to be a dead project)
14347 lt_prog_compiler_wl='-Wl,'
14348 lt_prog_compiler_pic='-fpic'
14349 lt_prog_compiler_static='-Bstatic'
14351 ccc*)
14352 lt_prog_compiler_wl='-Wl,'
14353 # All Alpha code is PIC.
14354 lt_prog_compiler_static='-non_shared'
14356 xl* | bgxl* | bgf* | mpixl*)
14357 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14358 lt_prog_compiler_wl='-Wl,'
14359 lt_prog_compiler_pic='-qpic'
14360 lt_prog_compiler_static='-qstaticlink'
14363 case `$CC -V 2>&1 | sed 5q` in
14364 *Sun\ F* | *Sun*Fortran*)
14365 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14366 lt_prog_compiler_pic='-KPIC'
14367 lt_prog_compiler_static='-Bstatic'
14368 lt_prog_compiler_wl=''
14370 *Sun\ C*)
14371 # Sun C 5.9
14372 lt_prog_compiler_pic='-KPIC'
14373 lt_prog_compiler_static='-Bstatic'
14374 lt_prog_compiler_wl='-Wl,'
14376 esac
14378 esac
14381 newsos6)
14382 lt_prog_compiler_pic='-KPIC'
14383 lt_prog_compiler_static='-Bstatic'
14386 *nto* | *qnx*)
14387 # QNX uses GNU C++, but need to define -shared option too, otherwise
14388 # it will coredump.
14389 lt_prog_compiler_pic='-fPIC -shared'
14392 osf3* | osf4* | osf5*)
14393 lt_prog_compiler_wl='-Wl,'
14394 # All OSF/1 code is PIC.
14395 lt_prog_compiler_static='-non_shared'
14398 rdos*)
14399 lt_prog_compiler_static='-non_shared'
14402 solaris*)
14403 lt_prog_compiler_pic='-KPIC'
14404 lt_prog_compiler_static='-Bstatic'
14405 case $cc_basename in
14406 f77* | f90* | f95*)
14407 lt_prog_compiler_wl='-Qoption ld ';;
14409 lt_prog_compiler_wl='-Wl,';;
14410 esac
14413 sunos4*)
14414 lt_prog_compiler_wl='-Qoption ld '
14415 lt_prog_compiler_pic='-PIC'
14416 lt_prog_compiler_static='-Bstatic'
14419 sysv4 | sysv4.2uw2* | sysv4.3*)
14420 lt_prog_compiler_wl='-Wl,'
14421 lt_prog_compiler_pic='-KPIC'
14422 lt_prog_compiler_static='-Bstatic'
14425 sysv4*MP*)
14426 if test -d /usr/nec ;then
14427 lt_prog_compiler_pic='-Kconform_pic'
14428 lt_prog_compiler_static='-Bstatic'
14432 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14433 lt_prog_compiler_wl='-Wl,'
14434 lt_prog_compiler_pic='-KPIC'
14435 lt_prog_compiler_static='-Bstatic'
14438 unicos*)
14439 lt_prog_compiler_wl='-Wl,'
14440 lt_prog_compiler_can_build_shared=no
14443 uts4*)
14444 lt_prog_compiler_pic='-pic'
14445 lt_prog_compiler_static='-Bstatic'
14449 lt_prog_compiler_can_build_shared=no
14451 esac
14454 case $host_os in
14455 # For platforms which do not support PIC, -DPIC is meaningless:
14456 *djgpp*)
14457 lt_prog_compiler_pic=
14460 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14462 esac
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14464 $as_echo "$lt_prog_compiler_pic" >&6; }
14472 # Check to make sure the PIC flag actually works.
14474 if test -n "$lt_prog_compiler_pic"; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14476 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14477 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14478 $as_echo_n "(cached) " >&6
14479 else
14480 lt_cv_prog_compiler_pic_works=no
14481 ac_outfile=conftest.$ac_objext
14482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14483 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14484 # Insert the option either (1) after the last *FLAGS variable, or
14485 # (2) before a word containing "conftest.", or (3) at the end.
14486 # Note that $ac_compile itself does not contain backslashes and begins
14487 # with a dollar sign (not a hyphen), so the echo should work correctly.
14488 # The option is referenced via a variable to avoid confusing sed.
14489 lt_compile=`echo "$ac_compile" | $SED \
14490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14492 -e 's:$: $lt_compiler_flag:'`
14493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14494 (eval "$lt_compile" 2>conftest.err)
14495 ac_status=$?
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 if (exit $ac_status) && test -s "$ac_outfile"; then
14499 # The compiler can only warn and ignore the option if not recognized
14500 # So say no if there are warnings other than the usual output.
14501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14504 lt_cv_prog_compiler_pic_works=yes
14507 $RM conftest*
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14511 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14513 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14514 case $lt_prog_compiler_pic in
14515 "" | " "*) ;;
14516 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14517 esac
14518 else
14519 lt_prog_compiler_pic=
14520 lt_prog_compiler_can_build_shared=no
14531 # Check to make sure the static flag actually works.
14533 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14535 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14536 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14537 $as_echo_n "(cached) " >&6
14538 else
14539 lt_cv_prog_compiler_static_works=no
14540 save_LDFLAGS="$LDFLAGS"
14541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14544 # The linker can only warn and ignore the option if not recognized
14545 # So say no if there are warnings
14546 if test -s conftest.err; then
14547 # Append any errors to the config.log.
14548 cat conftest.err 1>&5
14549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14551 if diff conftest.exp conftest.er2 >/dev/null; then
14552 lt_cv_prog_compiler_static_works=yes
14554 else
14555 lt_cv_prog_compiler_static_works=yes
14558 $RM -r conftest*
14559 LDFLAGS="$save_LDFLAGS"
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14563 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14565 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14567 else
14568 lt_prog_compiler_static=
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14578 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14579 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 lt_cv_prog_compiler_c_o=no
14583 $RM -r conftest 2>/dev/null
14584 mkdir conftest
14585 cd conftest
14586 mkdir out
14587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14589 lt_compiler_flag="-o out/conftest2.$ac_objext"
14590 # Insert the option either (1) after the last *FLAGS variable, or
14591 # (2) before a word containing "conftest.", or (3) at the end.
14592 # Note that $ac_compile itself does not contain backslashes and begins
14593 # with a dollar sign (not a hyphen), so the echo should work correctly.
14594 lt_compile=`echo "$ac_compile" | $SED \
14595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14597 -e 's:$: $lt_compiler_flag:'`
14598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14599 (eval "$lt_compile" 2>out/conftest.err)
14600 ac_status=$?
14601 cat out/conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14604 then
14605 # The compiler can only warn and ignore the option if not recognized
14606 # So say no if there are warnings
14607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14610 lt_cv_prog_compiler_c_o=yes
14613 chmod u+w . 2>&5
14614 $RM conftest*
14615 # SGI C++ compiler will create directory out/ii_files/ for
14616 # template instantiation
14617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14618 $RM out/* && rmdir out
14619 cd ..
14620 $RM -r conftest
14621 $RM conftest*
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14625 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14634 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637 lt_cv_prog_compiler_c_o=no
14638 $RM -r conftest 2>/dev/null
14639 mkdir conftest
14640 cd conftest
14641 mkdir out
14642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14644 lt_compiler_flag="-o out/conftest2.$ac_objext"
14645 # Insert the option either (1) after the last *FLAGS variable, or
14646 # (2) before a word containing "conftest.", or (3) at the end.
14647 # Note that $ac_compile itself does not contain backslashes and begins
14648 # with a dollar sign (not a hyphen), so the echo should work correctly.
14649 lt_compile=`echo "$ac_compile" | $SED \
14650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14652 -e 's:$: $lt_compiler_flag:'`
14653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14654 (eval "$lt_compile" 2>out/conftest.err)
14655 ac_status=$?
14656 cat out/conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14659 then
14660 # The compiler can only warn and ignore the option if not recognized
14661 # So say no if there are warnings
14662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14665 lt_cv_prog_compiler_c_o=yes
14668 chmod u+w . 2>&5
14669 $RM conftest*
14670 # SGI C++ compiler will create directory out/ii_files/ for
14671 # template instantiation
14672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14673 $RM out/* && rmdir out
14674 cd ..
14675 $RM -r conftest
14676 $RM conftest*
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14680 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14685 hard_links="nottested"
14686 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14687 # do not overwrite the value of need_locks provided by the user
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14689 $as_echo_n "checking if we can lock with hard links... " >&6; }
14690 hard_links=yes
14691 $RM conftest*
14692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14693 touch conftest.a
14694 ln conftest.a conftest.b 2>&5 || hard_links=no
14695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14697 $as_echo "$hard_links" >&6; }
14698 if test "$hard_links" = no; then
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14700 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14701 need_locks=warn
14703 else
14704 need_locks=no
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14713 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14715 runpath_var=
14716 allow_undefined_flag=
14717 always_export_symbols=no
14718 archive_cmds=
14719 archive_expsym_cmds=
14720 compiler_needs_object=no
14721 enable_shared_with_static_runtimes=no
14722 export_dynamic_flag_spec=
14723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14724 hardcode_automatic=no
14725 hardcode_direct=no
14726 hardcode_direct_absolute=no
14727 hardcode_libdir_flag_spec=
14728 hardcode_libdir_flag_spec_ld=
14729 hardcode_libdir_separator=
14730 hardcode_minus_L=no
14731 hardcode_shlibpath_var=unsupported
14732 inherit_rpath=no
14733 link_all_deplibs=unknown
14734 module_cmds=
14735 module_expsym_cmds=
14736 old_archive_from_new_cmds=
14737 old_archive_from_expsyms_cmds=
14738 thread_safe_flag_spec=
14739 whole_archive_flag_spec=
14740 # include_expsyms should be a list of space-separated symbols to be *always*
14741 # included in the symbol list
14742 include_expsyms=
14743 # exclude_expsyms can be an extended regexp of symbols to exclude
14744 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14745 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14746 # as well as any symbol that contains `d'.
14747 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14748 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14749 # platforms (ab)use it in PIC code, but their linkers get confused if
14750 # the symbol is explicitly referenced. Since portable code cannot
14751 # rely on this symbol name, it's probably fine to never include it in
14752 # preloaded symbol tables.
14753 # Exclude shared library initialization/finalization symbols.
14754 extract_expsyms_cmds=
14756 case $host_os in
14757 cygwin* | mingw* | pw32* | cegcc*)
14758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14759 # When not using gcc, we currently assume that we are using
14760 # Microsoft Visual C++.
14761 if test "$GCC" != yes; then
14762 with_gnu_ld=no
14765 interix*)
14766 # we just hope/assume this is gcc and not c89 (= MSVC++)
14767 with_gnu_ld=yes
14769 openbsd*)
14770 with_gnu_ld=no
14772 esac
14774 ld_shlibs=yes
14776 # On some targets, GNU ld is compatible enough with the native linker
14777 # that we're better off using the native interface for both.
14778 lt_use_gnu_ld_interface=no
14779 if test "$with_gnu_ld" = yes; then
14780 case $host_os in
14781 aix*)
14782 # The AIX port of GNU ld has always aspired to compatibility
14783 # with the native linker. However, as the warning in the GNU ld
14784 # block says, versions before 2.19.5* couldn't really create working
14785 # shared libraries, regardless of the interface used.
14786 case `$LD -v 2>&1` in
14787 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14788 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14789 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14791 lt_use_gnu_ld_interface=yes
14793 esac
14796 lt_use_gnu_ld_interface=yes
14798 esac
14801 if test "$lt_use_gnu_ld_interface" = yes; then
14802 # If archive_cmds runs LD, not CC, wlarc should be empty
14803 wlarc='${wl}'
14805 # Set some defaults for GNU ld with shared library support. These
14806 # are reset later if shared libraries are not supported. Putting them
14807 # here allows them to be overridden if necessary.
14808 runpath_var=LD_RUN_PATH
14809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14810 export_dynamic_flag_spec='${wl}--export-dynamic'
14811 # ancient GNU ld didn't support --whole-archive et. al.
14812 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14813 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14814 else
14815 whole_archive_flag_spec=
14817 supports_anon_versioning=no
14818 case `$LD -v 2>&1` in
14819 *GNU\ gold*) supports_anon_versioning=yes ;;
14820 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14821 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14822 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14823 *\ 2.11.*) ;; # other 2.11 versions
14824 *) supports_anon_versioning=yes ;;
14825 esac
14827 # See if GNU ld supports shared libraries.
14828 case $host_os in
14829 aix[3-9]*)
14830 # On AIX/PPC, the GNU linker is very broken
14831 if test "$host_cpu" != ia64; then
14832 ld_shlibs=no
14833 cat <<_LT_EOF 1>&2
14835 *** Warning: the GNU linker, at least up to release 2.19, is reported
14836 *** to be unable to reliably create shared libraries on AIX.
14837 *** Therefore, libtool is disabling shared libraries support. If you
14838 *** really care for shared libraries, you may want to install binutils
14839 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14840 *** You will then need to restart the configuration process.
14842 _LT_EOF
14846 amigaos*)
14847 case $host_cpu in
14848 powerpc)
14849 # see comment about AmigaOS4 .so support
14850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851 archive_expsym_cmds=''
14853 m68k)
14854 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)'
14855 hardcode_libdir_flag_spec='-L$libdir'
14856 hardcode_minus_L=yes
14858 esac
14861 beos*)
14862 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14863 allow_undefined_flag=unsupported
14864 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14865 # support --undefined. This deserves some investigation. FIXME
14866 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14867 else
14868 ld_shlibs=no
14872 cygwin* | mingw* | pw32* | cegcc*)
14873 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14874 # as there is no search path for DLLs.
14875 hardcode_libdir_flag_spec='-L$libdir'
14876 export_dynamic_flag_spec='${wl}--export-all-symbols'
14877 allow_undefined_flag=unsupported
14878 always_export_symbols=no
14879 enable_shared_with_static_runtimes=yes
14880 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14882 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14884 # If the export-symbols file already is a .def file (1st line
14885 # is EXPORTS), use it as is; otherwise, prepend...
14886 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14887 cp $export_symbols $output_objdir/$soname.def;
14888 else
14889 echo EXPORTS > $output_objdir/$soname.def;
14890 cat $export_symbols >> $output_objdir/$soname.def;
14892 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14893 else
14894 ld_shlibs=no
14898 haiku*)
14899 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14900 link_all_deplibs=yes
14903 interix[3-9]*)
14904 hardcode_direct=no
14905 hardcode_shlibpath_var=no
14906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14907 export_dynamic_flag_spec='${wl}-E'
14908 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14909 # Instead, shared libraries are loaded at an image base (0x10000000 by
14910 # default) and relocated if they conflict, which is a slow very memory
14911 # consuming and fragmenting process. To avoid this, we pick a random,
14912 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14913 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14915 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'
14918 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14919 tmp_diet=no
14920 if test "$host_os" = linux-dietlibc; then
14921 case $cc_basename in
14922 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14923 esac
14925 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14926 && test "$tmp_diet" = no
14927 then
14928 tmp_addflag=
14929 tmp_sharedflag='-shared'
14930 case $cc_basename,$host_cpu in
14931 pgcc*) # Portland Group C compiler
14932 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'
14933 tmp_addflag=' $pic_flag'
14935 pgf77* | pgf90* | pgf95* | pgfortran*)
14936 # Portland Group f77 and f90 compilers
14937 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'
14938 tmp_addflag=' $pic_flag -Mnomain' ;;
14939 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14940 tmp_addflag=' -i_dynamic' ;;
14941 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14942 tmp_addflag=' -i_dynamic -nofor_main' ;;
14943 ifc* | ifort*) # Intel Fortran compiler
14944 tmp_addflag=' -nofor_main' ;;
14945 lf95*) # Lahey Fortran 8.1
14946 whole_archive_flag_spec=
14947 tmp_sharedflag='--shared' ;;
14948 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14949 tmp_sharedflag='-qmkshrobj'
14950 tmp_addflag= ;;
14951 nvcc*) # Cuda Compiler Driver 2.2
14952 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'
14953 compiler_needs_object=yes
14955 esac
14956 case `$CC -V 2>&1 | sed 5q` in
14957 *Sun\ C*) # Sun C 5.9
14958 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'
14959 compiler_needs_object=yes
14960 tmp_sharedflag='-G' ;;
14961 *Sun\ F*) # Sun Fortran 8.3
14962 tmp_sharedflag='-G' ;;
14963 esac
14964 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966 if test "x$supports_anon_versioning" = xyes; then
14967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14969 echo "local: *; };" >> $output_objdir/$libname.ver~
14970 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14973 case $cc_basename in
14974 xlf* | bgf* | bgxlf* | mpixlf*)
14975 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14976 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14977 hardcode_libdir_flag_spec=
14978 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14979 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14980 if test "x$supports_anon_versioning" = xyes; then
14981 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14983 echo "local: *; };" >> $output_objdir/$libname.ver~
14984 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14987 esac
14988 else
14989 ld_shlibs=no
14993 netbsd*)
14994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14995 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14996 wlarc=
14997 else
14998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15003 solaris*)
15004 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15005 ld_shlibs=no
15006 cat <<_LT_EOF 1>&2
15008 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15009 *** create shared libraries on Solaris systems. Therefore, libtool
15010 *** is disabling shared libraries support. We urge you to upgrade GNU
15011 *** binutils to release 2.9.1 or newer. Another option is to modify
15012 *** your PATH or compiler configuration so that the native linker is
15013 *** used, and then restart.
15015 _LT_EOF
15016 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15019 else
15020 ld_shlibs=no
15024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15025 case `$LD -v 2>&1` in
15026 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15027 ld_shlibs=no
15028 cat <<_LT_EOF 1>&2
15030 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15031 *** reliably create shared libraries on SCO systems. Therefore, libtool
15032 *** is disabling shared libraries support. We urge you to upgrade GNU
15033 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15034 *** your PATH or compiler configuration so that the native linker is
15035 *** used, and then restart.
15037 _LT_EOF
15040 # For security reasons, it is highly recommended that you always
15041 # use absolute paths for naming shared libraries, and exclude the
15042 # DT_RUNPATH tag from executables and libraries. But doing so
15043 # requires that you compile everything twice, which is a pain.
15044 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15048 else
15049 ld_shlibs=no
15052 esac
15055 sunos4*)
15056 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15057 wlarc=
15058 hardcode_direct=yes
15059 hardcode_shlibpath_var=no
15063 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15065 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15066 else
15067 ld_shlibs=no
15070 esac
15072 if test "$ld_shlibs" = no; then
15073 runpath_var=
15074 hardcode_libdir_flag_spec=
15075 export_dynamic_flag_spec=
15076 whole_archive_flag_spec=
15078 else
15079 # PORTME fill in a description of your system's linker (not GNU ld)
15080 case $host_os in
15081 aix3*)
15082 allow_undefined_flag=unsupported
15083 always_export_symbols=yes
15084 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'
15085 # Note: this linker hardcodes the directories in LIBPATH if there
15086 # are no directories specified by -L.
15087 hardcode_minus_L=yes
15088 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15089 # Neither direct hardcoding nor static linking is supported with a
15090 # broken collect2.
15091 hardcode_direct=unsupported
15095 aix[4-9]*)
15096 if test "$host_cpu" = ia64; then
15097 # On IA64, the linker does run time linking by default, so we don't
15098 # have to do anything special.
15099 aix_use_runtimelinking=no
15100 exp_sym_flag='-Bexport'
15101 no_entry_flag=""
15102 else
15103 # If we're using GNU nm, then we don't want the "-C" option.
15104 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15105 # Also, AIX nm treats weak defined symbols like other global
15106 # defined symbols, whereas GNU nm marks them as "W".
15107 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15108 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'
15109 else
15110 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'
15112 aix_use_runtimelinking=no
15114 # Test if we are trying to use run time linking or normal
15115 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15116 # need to do runtime linking.
15117 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15118 for ld_flag in $LDFLAGS; do
15119 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15120 aix_use_runtimelinking=yes
15121 break
15123 done
15125 esac
15127 exp_sym_flag='-bexport'
15128 no_entry_flag='-bnoentry'
15131 # When large executables or shared objects are built, AIX ld can
15132 # have problems creating the table of contents. If linking a library
15133 # or program results in "error TOC overflow" add -mminimal-toc to
15134 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15135 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15137 archive_cmds=''
15138 hardcode_direct=yes
15139 hardcode_direct_absolute=yes
15140 hardcode_libdir_separator=':'
15141 link_all_deplibs=yes
15142 file_list_spec='${wl}-f,'
15144 if test "$GCC" = yes; then
15145 case $host_os in aix4.[012]|aix4.[012].*)
15146 # We only want to do this on AIX 4.2 and lower, the check
15147 # below for broken collect2 doesn't work under 4.3+
15148 collect2name=`${CC} -print-prog-name=collect2`
15149 if test -f "$collect2name" &&
15150 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15151 then
15152 # We have reworked collect2
15154 else
15155 # We have old collect2
15156 hardcode_direct=unsupported
15157 # It fails to find uninstalled libraries when the uninstalled
15158 # path is not listed in the libpath. Setting hardcode_minus_L
15159 # to unsupported forces relinking
15160 hardcode_minus_L=yes
15161 hardcode_libdir_flag_spec='-L$libdir'
15162 hardcode_libdir_separator=
15165 esac
15166 shared_flag='-shared'
15167 if test "$aix_use_runtimelinking" = yes; then
15168 shared_flag="$shared_flag "'${wl}-G'
15170 else
15171 # not using gcc
15172 if test "$host_cpu" = ia64; then
15173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15174 # chokes on -Wl,-G. The following line is correct:
15175 shared_flag='-G'
15176 else
15177 if test "$aix_use_runtimelinking" = yes; then
15178 shared_flag='${wl}-G'
15179 else
15180 shared_flag='${wl}-bM:SRE'
15185 export_dynamic_flag_spec='${wl}-bexpall'
15186 # It seems that -bexpall does not export symbols beginning with
15187 # underscore (_), so it is better to generate a list of symbols to export.
15188 always_export_symbols=yes
15189 if test "$aix_use_runtimelinking" = yes; then
15190 # Warning - without using the other runtime loading flags (-brtl),
15191 # -berok will link without error, but may produce a broken library.
15192 allow_undefined_flag='-berok'
15193 # Determine the default libpath from the value encoded in an
15194 # empty executable.
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15199 main ()
15203 return 0;
15205 _ACEOF
15206 if ac_fn_c_try_link "$LINENO"; then :
15208 lt_aix_libpath_sed='
15209 /Import File Strings/,/^$/ {
15210 /^0/ {
15211 s/^0 *\(.*\)$/\1/
15215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15216 # Check for a 64-bit object if we didn't find anything.
15217 if test -z "$aix_libpath"; then
15218 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15221 rm -f core conftest.err conftest.$ac_objext \
15222 conftest$ac_exeext conftest.$ac_ext
15223 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15225 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15226 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"
15227 else
15228 if test "$host_cpu" = ia64; then
15229 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15230 allow_undefined_flag="-z nodefs"
15231 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"
15232 else
15233 # Determine the default libpath from the value encoded in an
15234 # empty executable.
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15239 main ()
15243 return 0;
15245 _ACEOF
15246 if ac_fn_c_try_link "$LINENO"; then :
15248 lt_aix_libpath_sed='
15249 /Import File Strings/,/^$/ {
15250 /^0/ {
15251 s/^0 *\(.*\)$/\1/
15255 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15256 # Check for a 64-bit object if we didn't find anything.
15257 if test -z "$aix_libpath"; then
15258 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15261 rm -f core conftest.err conftest.$ac_objext \
15262 conftest$ac_exeext conftest.$ac_ext
15263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15265 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15266 # Warning - without using the other run time loading flags,
15267 # -berok will link without error, but may produce a broken library.
15268 no_undefined_flag=' ${wl}-bernotok'
15269 allow_undefined_flag=' ${wl}-berok'
15270 if test "$with_gnu_ld" = yes; then
15271 # We only use this code for GNU lds that support --whole-archive.
15272 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15273 else
15274 # Exported symbols can be pulled into shared objects from archives
15275 whole_archive_flag_spec='$convenience'
15277 archive_cmds_need_lc=yes
15278 # This is similar to how AIX traditionally builds its shared libraries.
15279 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'
15284 amigaos*)
15285 case $host_cpu in
15286 powerpc)
15287 # see comment about AmigaOS4 .so support
15288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15289 archive_expsym_cmds=''
15291 m68k)
15292 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)'
15293 hardcode_libdir_flag_spec='-L$libdir'
15294 hardcode_minus_L=yes
15296 esac
15299 bsdi[45]*)
15300 export_dynamic_flag_spec=-rdynamic
15303 cygwin* | mingw* | pw32* | cegcc*)
15304 # When not using gcc, we currently assume that we are using
15305 # Microsoft Visual C++.
15306 # hardcode_libdir_flag_spec is actually meaningless, as there is
15307 # no search path for DLLs.
15308 hardcode_libdir_flag_spec=' '
15309 allow_undefined_flag=unsupported
15310 # Tell ltmain to make .lib files, not .a files.
15311 libext=lib
15312 # Tell ltmain to make .dll files, not .so files.
15313 shrext_cmds=".dll"
15314 # FIXME: Setting linknames here is a bad hack.
15315 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15316 # The linker will automatically build a .lib file if we build a DLL.
15317 old_archive_from_new_cmds='true'
15318 # FIXME: Should let the user specify the lib program.
15319 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15320 fix_srcfile_path='`cygpath -w "$srcfile"`'
15321 enable_shared_with_static_runtimes=yes
15324 darwin* | rhapsody*)
15327 archive_cmds_need_lc=no
15328 hardcode_direct=no
15329 hardcode_automatic=yes
15330 hardcode_shlibpath_var=unsupported
15331 if test "$lt_cv_ld_force_load" = "yes"; then
15332 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\"`'
15333 else
15334 whole_archive_flag_spec=''
15336 link_all_deplibs=yes
15337 allow_undefined_flag="$_lt_dar_allow_undefined"
15338 case $cc_basename in
15339 ifort*) _lt_dar_can_shared=yes ;;
15340 *) _lt_dar_can_shared=$GCC ;;
15341 esac
15342 if test "$_lt_dar_can_shared" = "yes"; then
15343 output_verbose_link_cmd=func_echo_all
15344 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15345 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15346 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}"
15347 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}"
15349 else
15350 ld_shlibs=no
15355 dgux*)
15356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15357 hardcode_libdir_flag_spec='-L$libdir'
15358 hardcode_shlibpath_var=no
15361 freebsd1*)
15362 ld_shlibs=no
15365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15366 # support. Future versions do this automatically, but an explicit c++rt0.o
15367 # does not break anything, and helps significantly (at the cost of a little
15368 # extra space).
15369 freebsd2.2*)
15370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15371 hardcode_libdir_flag_spec='-R$libdir'
15372 hardcode_direct=yes
15373 hardcode_shlibpath_var=no
15376 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15377 freebsd2*)
15378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15379 hardcode_direct=yes
15380 hardcode_minus_L=yes
15381 hardcode_shlibpath_var=no
15384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15385 freebsd* | dragonfly*)
15386 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15387 hardcode_libdir_flag_spec='-R$libdir'
15388 hardcode_direct=yes
15389 hardcode_shlibpath_var=no
15392 hpux9*)
15393 if test "$GCC" = yes; then
15394 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'
15395 else
15396 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'
15398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15399 hardcode_libdir_separator=:
15400 hardcode_direct=yes
15402 # hardcode_minus_L: Not really in the search PATH,
15403 # but as the default location of the library.
15404 hardcode_minus_L=yes
15405 export_dynamic_flag_spec='${wl}-E'
15408 hpux10*)
15409 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15410 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15411 else
15412 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15414 if test "$with_gnu_ld" = no; then
15415 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15416 hardcode_libdir_flag_spec_ld='+b $libdir'
15417 hardcode_libdir_separator=:
15418 hardcode_direct=yes
15419 hardcode_direct_absolute=yes
15420 export_dynamic_flag_spec='${wl}-E'
15421 # hardcode_minus_L: Not really in the search PATH,
15422 # but as the default location of the library.
15423 hardcode_minus_L=yes
15427 hpux11*)
15428 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15429 case $host_cpu in
15430 hppa*64*)
15431 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15433 ia64*)
15434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15437 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15439 esac
15440 else
15441 case $host_cpu in
15442 hppa*64*)
15443 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15445 ia64*)
15446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15450 # Older versions of the 11.00 compiler do not understand -b yet
15451 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15453 $as_echo_n "checking if $CC understands -b... " >&6; }
15454 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15455 $as_echo_n "(cached) " >&6
15456 else
15457 lt_cv_prog_compiler__b=no
15458 save_LDFLAGS="$LDFLAGS"
15459 LDFLAGS="$LDFLAGS -b"
15460 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15462 # The linker can only warn and ignore the option if not recognized
15463 # So say no if there are warnings
15464 if test -s conftest.err; then
15465 # Append any errors to the config.log.
15466 cat conftest.err 1>&5
15467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15469 if diff conftest.exp conftest.er2 >/dev/null; then
15470 lt_cv_prog_compiler__b=yes
15472 else
15473 lt_cv_prog_compiler__b=yes
15476 $RM -r conftest*
15477 LDFLAGS="$save_LDFLAGS"
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15481 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15483 if test x"$lt_cv_prog_compiler__b" = xyes; then
15484 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15485 else
15486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15490 esac
15492 if test "$with_gnu_ld" = no; then
15493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15494 hardcode_libdir_separator=:
15496 case $host_cpu in
15497 hppa*64*|ia64*)
15498 hardcode_direct=no
15499 hardcode_shlibpath_var=no
15502 hardcode_direct=yes
15503 hardcode_direct_absolute=yes
15504 export_dynamic_flag_spec='${wl}-E'
15506 # hardcode_minus_L: Not really in the search PATH,
15507 # but as the default location of the library.
15508 hardcode_minus_L=yes
15510 esac
15514 irix5* | irix6* | nonstopux*)
15515 if test "$GCC" = yes; then
15516 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'
15517 # Try to use the -exported_symbol ld option, if it does not
15518 # work, assume that -exports_file does not work either and
15519 # implicitly export all symbols.
15520 save_LDFLAGS="$LDFLAGS"
15521 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524 int foo(void) {}
15525 _ACEOF
15526 if ac_fn_c_try_link "$LINENO"; then :
15527 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'
15530 rm -f core conftest.err conftest.$ac_objext \
15531 conftest$ac_exeext conftest.$ac_ext
15532 LDFLAGS="$save_LDFLAGS"
15533 else
15534 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'
15535 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'
15537 archive_cmds_need_lc='no'
15538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15539 hardcode_libdir_separator=:
15540 inherit_rpath=yes
15541 link_all_deplibs=yes
15544 netbsd*)
15545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15547 else
15548 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15550 hardcode_libdir_flag_spec='-R$libdir'
15551 hardcode_direct=yes
15552 hardcode_shlibpath_var=no
15555 newsos6)
15556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15557 hardcode_direct=yes
15558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15559 hardcode_libdir_separator=:
15560 hardcode_shlibpath_var=no
15563 *nto* | *qnx*)
15566 openbsd*)
15567 if test -f /usr/libexec/ld.so; then
15568 hardcode_direct=yes
15569 hardcode_shlibpath_var=no
15570 hardcode_direct_absolute=yes
15571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15573 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15575 export_dynamic_flag_spec='${wl}-E'
15576 else
15577 case $host_os in
15578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15580 hardcode_libdir_flag_spec='-R$libdir'
15583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15586 esac
15588 else
15589 ld_shlibs=no
15593 os2*)
15594 hardcode_libdir_flag_spec='-L$libdir'
15595 hardcode_minus_L=yes
15596 allow_undefined_flag=unsupported
15597 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'
15598 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15601 osf3*)
15602 if test "$GCC" = yes; then
15603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15604 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'
15605 else
15606 allow_undefined_flag=' -expect_unresolved \*'
15607 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'
15609 archive_cmds_need_lc='no'
15610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15611 hardcode_libdir_separator=:
15614 osf4* | osf5*) # as osf3* with the addition of -msym flag
15615 if test "$GCC" = yes; then
15616 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15617 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'
15618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15619 else
15620 allow_undefined_flag=' -expect_unresolved \*'
15621 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'
15622 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~
15623 $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'
15625 # Both c and cxx compiler support -rpath directly
15626 hardcode_libdir_flag_spec='-rpath $libdir'
15628 archive_cmds_need_lc='no'
15629 hardcode_libdir_separator=:
15632 solaris*)
15633 no_undefined_flag=' -z defs'
15634 if test "$GCC" = yes; then
15635 wlarc='${wl}'
15636 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15638 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15639 else
15640 case `$CC -V 2>&1` in
15641 *"Compilers 5.0"*)
15642 wlarc=''
15643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15648 wlarc='${wl}'
15649 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15651 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15653 esac
15655 hardcode_libdir_flag_spec='-R$libdir'
15656 hardcode_shlibpath_var=no
15657 case $host_os in
15658 solaris2.[0-5] | solaris2.[0-5].*) ;;
15660 # The compiler driver will combine and reorder linker options,
15661 # but understands `-z linker_flag'. GCC discards it without `$wl',
15662 # but is careful enough not to reorder.
15663 # Supported since Solaris 2.6 (maybe 2.5.1?)
15664 if test "$GCC" = yes; then
15665 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15666 else
15667 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15670 esac
15671 link_all_deplibs=yes
15674 sunos4*)
15675 if test "x$host_vendor" = xsequent; then
15676 # Use $CC to link under sequent, because it throws in some extra .o
15677 # files that make .init and .fini sections work.
15678 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15679 else
15680 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15682 hardcode_libdir_flag_spec='-L$libdir'
15683 hardcode_direct=yes
15684 hardcode_minus_L=yes
15685 hardcode_shlibpath_var=no
15688 sysv4)
15689 case $host_vendor in
15690 sni)
15691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15692 hardcode_direct=yes # is this really true???
15694 siemens)
15695 ## LD is ld it makes a PLAMLIB
15696 ## CC just makes a GrossModule.
15697 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15698 reload_cmds='$CC -r -o $output$reload_objs'
15699 hardcode_direct=no
15701 motorola)
15702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15703 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15705 esac
15706 runpath_var='LD_RUN_PATH'
15707 hardcode_shlibpath_var=no
15710 sysv4.3*)
15711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15712 hardcode_shlibpath_var=no
15713 export_dynamic_flag_spec='-Bexport'
15716 sysv4*MP*)
15717 if test -d /usr/nec; then
15718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15719 hardcode_shlibpath_var=no
15720 runpath_var=LD_RUN_PATH
15721 hardcode_runpath_var=yes
15722 ld_shlibs=yes
15726 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15727 no_undefined_flag='${wl}-z,text'
15728 archive_cmds_need_lc=no
15729 hardcode_shlibpath_var=no
15730 runpath_var='LD_RUN_PATH'
15732 if test "$GCC" = yes; then
15733 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15734 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15735 else
15736 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15737 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15741 sysv5* | sco3.2v5* | sco5v6*)
15742 # Note: We can NOT use -z defs as we might desire, because we do not
15743 # link with -lc, and that would cause any symbols used from libc to
15744 # always be unresolved, which means just about no library would
15745 # ever link correctly. If we're not using GNU ld we use -z text
15746 # though, which does catch some bad symbols but isn't as heavy-handed
15747 # as -z defs.
15748 no_undefined_flag='${wl}-z,text'
15749 allow_undefined_flag='${wl}-z,nodefs'
15750 archive_cmds_need_lc=no
15751 hardcode_shlibpath_var=no
15752 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15753 hardcode_libdir_separator=':'
15754 link_all_deplibs=yes
15755 export_dynamic_flag_spec='${wl}-Bexport'
15756 runpath_var='LD_RUN_PATH'
15758 if test "$GCC" = yes; then
15759 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15760 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15761 else
15762 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15763 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15767 uts4*)
15768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15769 hardcode_libdir_flag_spec='-L$libdir'
15770 hardcode_shlibpath_var=no
15774 ld_shlibs=no
15776 esac
15778 if test x$host_vendor = xsni; then
15779 case $host in
15780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15781 export_dynamic_flag_spec='${wl}-Blargedynsym'
15783 esac
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15788 $as_echo "$ld_shlibs" >&6; }
15789 test "$ld_shlibs" = no && can_build_shared=no
15791 with_gnu_ld=$with_gnu_ld
15808 # Do we need to explicitly link libc?
15810 case "x$archive_cmds_need_lc" in
15811 x|xyes)
15812 # Assume -lc should be added
15813 archive_cmds_need_lc=yes
15815 if test "$enable_shared" = yes && test "$GCC" = yes; then
15816 case $archive_cmds in
15817 *'~'*)
15818 # FIXME: we may have to deal with multi-command sequences.
15820 '$CC '*)
15821 # Test whether the compiler implicitly links with -lc since on some
15822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15823 # to ld, don't add -lc before -lgcc.
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15825 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15826 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15827 $as_echo_n "(cached) " >&6
15828 else
15829 $RM conftest*
15830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15833 (eval $ac_compile) 2>&5
15834 ac_status=$?
15835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836 test $ac_status = 0; } 2>conftest.err; then
15837 soname=conftest
15838 lib=conftest
15839 libobjs=conftest.$ac_objext
15840 deplibs=
15841 wl=$lt_prog_compiler_wl
15842 pic_flag=$lt_prog_compiler_pic
15843 compiler_flags=-v
15844 linker_flags=-v
15845 verstring=
15846 output_objdir=.
15847 libname=conftest
15848 lt_save_allow_undefined_flag=$allow_undefined_flag
15849 allow_undefined_flag=
15850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15851 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15852 ac_status=$?
15853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15854 test $ac_status = 0; }
15855 then
15856 lt_cv_archive_cmds_need_lc=no
15857 else
15858 lt_cv_archive_cmds_need_lc=yes
15860 allow_undefined_flag=$lt_save_allow_undefined_flag
15861 else
15862 cat conftest.err 1>&5
15864 $RM conftest*
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15868 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15869 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15871 esac
15874 esac
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16033 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16035 if test "$GCC" = yes; then
16036 case $host_os in
16037 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16038 *) lt_awk_arg="/^libraries:/" ;;
16039 esac
16040 case $host_os in
16041 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16042 *) lt_sed_strip_eq="s,=/,/,g" ;;
16043 esac
16044 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16045 case $lt_search_path_spec in
16046 *\;*)
16047 # if the path contains ";" then we assume it to be the separator
16048 # otherwise default to the standard path separator (i.e. ":") - it is
16049 # assumed that no part of a normal pathname contains ";" but that should
16050 # okay in the real world where ";" in dirpaths is itself problematic.
16051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16056 esac
16057 # Ok, now we have the path, separated by spaces, we can step through it
16058 # and add multilib dir if necessary.
16059 lt_tmp_lt_search_path_spec=
16060 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16061 for lt_sys_path in $lt_search_path_spec; do
16062 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16064 else
16065 test -d "$lt_sys_path" && \
16066 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16068 done
16069 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16070 BEGIN {RS=" "; FS="/|\n";} {
16071 lt_foo="";
16072 lt_count=0;
16073 for (lt_i = NF; lt_i > 0; lt_i--) {
16074 if ($lt_i != "" && $lt_i != ".") {
16075 if ($lt_i == "..") {
16076 lt_count++;
16077 } else {
16078 if (lt_count == 0) {
16079 lt_foo="/" $lt_i lt_foo;
16080 } else {
16081 lt_count--;
16086 if (lt_foo != "") { lt_freq[lt_foo]++; }
16087 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16089 # AWK program above erroneously prepends '/' to C:/dos/paths
16090 # for these hosts.
16091 case $host_os in
16092 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16093 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16094 esac
16095 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16096 else
16097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16099 library_names_spec=
16100 libname_spec='lib$name'
16101 soname_spec=
16102 shrext_cmds=".so"
16103 postinstall_cmds=
16104 postuninstall_cmds=
16105 finish_cmds=
16106 finish_eval=
16107 shlibpath_var=
16108 shlibpath_overrides_runpath=unknown
16109 version_type=none
16110 dynamic_linker="$host_os ld.so"
16111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16112 need_lib_prefix=unknown
16113 hardcode_into_libs=no
16115 # when you set need_version to no, make sure it does not cause -set_version
16116 # flags to be left without arguments
16117 need_version=unknown
16119 case $host_os in
16120 aix3*)
16121 version_type=linux
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16123 shlibpath_var=LIBPATH
16125 # AIX 3 has no versioning support, so we append a major version to the name.
16126 soname_spec='${libname}${release}${shared_ext}$major'
16129 aix[4-9]*)
16130 version_type=linux
16131 need_lib_prefix=no
16132 need_version=no
16133 hardcode_into_libs=yes
16134 if test "$host_cpu" = ia64; then
16135 # AIX 5 supports IA64
16136 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 else
16139 # With GCC up to 2.95.x, collect2 would create an import file
16140 # for dependence libraries. The import file would start with
16141 # the line `#! .'. This would cause the generated library to
16142 # depend on `.', always an invalid library. This was fixed in
16143 # development snapshots of GCC prior to 3.0.
16144 case $host_os in
16145 aix4 | aix4.[01] | aix4.[01].*)
16146 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16147 echo ' yes '
16148 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16150 else
16151 can_build_shared=no
16154 esac
16155 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16156 # soname into executable. Probably we can add versioning support to
16157 # collect2, so additional links can be useful in future.
16158 if test "$aix_use_runtimelinking" = yes; then
16159 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16160 # instead of lib<name>.a to let people know that these are not
16161 # typical AIX shared libraries.
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16163 else
16164 # We preserve .a as extension for shared libraries through AIX4.2
16165 # and later when we are not doing run time linking.
16166 library_names_spec='${libname}${release}.a $libname.a'
16167 soname_spec='${libname}${release}${shared_ext}$major'
16169 shlibpath_var=LIBPATH
16173 amigaos*)
16174 case $host_cpu in
16175 powerpc)
16176 # Since July 2007 AmigaOS4 officially supports .so libraries.
16177 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180 m68k)
16181 library_names_spec='$libname.ixlibrary $libname.a'
16182 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16183 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'
16185 esac
16188 beos*)
16189 library_names_spec='${libname}${shared_ext}'
16190 dynamic_linker="$host_os ld.so"
16191 shlibpath_var=LIBRARY_PATH
16194 bsdi[45]*)
16195 version_type=linux
16196 need_version=no
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16203 # the default ld.so.conf also contains /usr/contrib/lib and
16204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16205 # libtool to hard-code these into programs
16208 cygwin* | mingw* | pw32* | cegcc*)
16209 version_type=windows
16210 shrext_cmds=".dll"
16211 need_version=no
16212 need_lib_prefix=no
16214 case $GCC,$host_os in
16215 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16216 library_names_spec='$libname.dll.a'
16217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16218 postinstall_cmds='base_file=`basename \${file}`~
16219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16220 dldir=$destdir/`dirname \$dlpath`~
16221 test -d \$dldir || mkdir -p \$dldir~
16222 $install_prog $dir/$dlname \$dldir/$dlname~
16223 chmod a+x \$dldir/$dlname~
16224 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16225 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16228 dlpath=$dir/\$dldll~
16229 $RM \$dlpath'
16230 shlibpath_overrides_runpath=yes
16232 case $host_os in
16233 cygwin*)
16234 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16235 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16239 mingw* | cegcc*)
16240 # MinGW DLLs use traditional 'lib' prefix
16241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16243 pw32*)
16244 # pw32 DLLs use 'pw' prefix rather than 'lib'
16245 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16247 esac
16251 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16253 esac
16254 dynamic_linker='Win32 ld.exe'
16255 # FIXME: first we should search . and the directory the executable is in
16256 shlibpath_var=PATH
16259 darwin* | rhapsody*)
16260 dynamic_linker="$host_os dyld"
16261 version_type=darwin
16262 need_lib_prefix=no
16263 need_version=no
16264 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16265 soname_spec='${libname}${release}${major}$shared_ext'
16266 shlibpath_overrides_runpath=yes
16267 shlibpath_var=DYLD_LIBRARY_PATH
16268 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16270 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16274 dgux*)
16275 version_type=linux
16276 need_lib_prefix=no
16277 need_version=no
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 shlibpath_var=LD_LIBRARY_PATH
16283 freebsd1*)
16284 dynamic_linker=no
16287 freebsd* | dragonfly*)
16288 # DragonFly does not have aout. When/if they implement a new
16289 # versioning mechanism, adjust this.
16290 if test -x /usr/bin/objformat; then
16291 objformat=`/usr/bin/objformat`
16292 else
16293 case $host_os in
16294 freebsd[123]*) objformat=aout ;;
16295 *) objformat=elf ;;
16296 esac
16298 version_type=freebsd-$objformat
16299 case $version_type in
16300 freebsd-elf*)
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16302 need_version=no
16303 need_lib_prefix=no
16305 freebsd-*)
16306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16307 need_version=yes
16309 esac
16310 shlibpath_var=LD_LIBRARY_PATH
16311 case $host_os in
16312 freebsd2*)
16313 shlibpath_overrides_runpath=yes
16315 freebsd3.[01]* | freebsdelf3.[01]*)
16316 shlibpath_overrides_runpath=yes
16317 hardcode_into_libs=yes
16319 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16320 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16321 shlibpath_overrides_runpath=no
16322 hardcode_into_libs=yes
16324 *) # from 4.6 on, and DragonFly
16325 shlibpath_overrides_runpath=yes
16326 hardcode_into_libs=yes
16328 esac
16331 gnu*)
16332 version_type=linux
16333 need_lib_prefix=no
16334 need_version=no
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16336 soname_spec='${libname}${release}${shared_ext}$major'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 hardcode_into_libs=yes
16341 haiku*)
16342 version_type=linux
16343 need_lib_prefix=no
16344 need_version=no
16345 dynamic_linker="$host_os runtime_loader"
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 shlibpath_var=LIBRARY_PATH
16349 shlibpath_overrides_runpath=yes
16350 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16351 hardcode_into_libs=yes
16354 hpux9* | hpux10* | hpux11*)
16355 # Give a soname corresponding to the major version so that dld.sl refuses to
16356 # link against other versions.
16357 version_type=sunos
16358 need_lib_prefix=no
16359 need_version=no
16360 case $host_cpu in
16361 ia64*)
16362 shrext_cmds='.so'
16363 hardcode_into_libs=yes
16364 dynamic_linker="$host_os dld.so"
16365 shlibpath_var=LD_LIBRARY_PATH
16366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368 soname_spec='${libname}${release}${shared_ext}$major'
16369 if test "X$HPUX_IA64_MODE" = X32; then
16370 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16371 else
16372 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16376 hppa*64*)
16377 shrext_cmds='.sl'
16378 hardcode_into_libs=yes
16379 dynamic_linker="$host_os dld.sl"
16380 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16381 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16388 shrext_cmds='.sl'
16389 dynamic_linker="$host_os dld.sl"
16390 shlibpath_var=SHLIB_PATH
16391 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16395 esac
16396 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16397 postinstall_cmds='chmod 555 $lib'
16398 # or fails outright, so override atomically:
16399 install_override_mode=555
16402 interix[3-9]*)
16403 version_type=linux
16404 need_lib_prefix=no
16405 need_version=no
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=no
16411 hardcode_into_libs=yes
16414 irix5* | irix6* | nonstopux*)
16415 case $host_os in
16416 nonstopux*) version_type=nonstopux ;;
16418 if test "$lt_cv_prog_gnu_ld" = yes; then
16419 version_type=linux
16420 else
16421 version_type=irix
16422 fi ;;
16423 esac
16424 need_lib_prefix=no
16425 need_version=no
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16428 case $host_os in
16429 irix5* | nonstopux*)
16430 libsuff= shlibsuff=
16433 case $LD in # libtool.m4 will add one of these switches to LD
16434 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16435 libsuff= shlibsuff= libmagic=32-bit;;
16436 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16437 libsuff=32 shlibsuff=N32 libmagic=N32;;
16438 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16439 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16440 *) libsuff= shlibsuff= libmagic=never-match;;
16441 esac
16443 esac
16444 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16445 shlibpath_overrides_runpath=no
16446 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16447 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16448 hardcode_into_libs=yes
16451 # No shared lib support for Linux oldld, aout, or coff.
16452 linux*oldld* | linux*aout* | linux*coff*)
16453 dynamic_linker=no
16456 # This must be Linux ELF.
16457 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16458 version_type=linux
16459 need_lib_prefix=no
16460 need_version=no
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16462 soname_spec='${libname}${release}${shared_ext}$major'
16463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 shlibpath_overrides_runpath=no
16467 # Some binutils ld are patched to set DT_RUNPATH
16468 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 lt_cv_shlibpath_overrides_runpath=no
16472 save_LDFLAGS=$LDFLAGS
16473 save_libdir=$libdir
16474 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16475 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16480 main ()
16484 return 0;
16486 _ACEOF
16487 if ac_fn_c_try_link "$LINENO"; then :
16488 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16489 lt_cv_shlibpath_overrides_runpath=yes
16492 rm -f core conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext conftest.$ac_ext
16494 LDFLAGS=$save_LDFLAGS
16495 libdir=$save_libdir
16499 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16501 # This implies no fast_install, which is unacceptable.
16502 # Some rework will be needed to allow for fast_install
16503 # before this can be enabled.
16504 hardcode_into_libs=yes
16506 # Append ld.so.conf contents to the search path
16507 if test -f /etc/ld.so.conf; then
16508 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' ' '`
16509 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16512 # We used to test for /lib/ld.so.1 and disable shared libraries on
16513 # powerpc, because MkLinux only supported shared libraries with the
16514 # GNU dynamic linker. Since this was broken with cross compilers,
16515 # most powerpc-linux boxes support dynamic linking these days and
16516 # people can always --disable-shared, the test was removed, and we
16517 # assume the GNU/Linux dynamic linker is in use.
16518 dynamic_linker='GNU/Linux ld.so'
16521 netbsd*)
16522 version_type=sunos
16523 need_lib_prefix=no
16524 need_version=no
16525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16528 dynamic_linker='NetBSD (a.out) ld.so'
16529 else
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 dynamic_linker='NetBSD ld.elf_so'
16534 shlibpath_var=LD_LIBRARY_PATH
16535 shlibpath_overrides_runpath=yes
16536 hardcode_into_libs=yes
16539 newsos6)
16540 version_type=linux
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 shlibpath_var=LD_LIBRARY_PATH
16543 shlibpath_overrides_runpath=yes
16546 *nto* | *qnx*)
16547 version_type=qnx
16548 need_lib_prefix=no
16549 need_version=no
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
16553 shlibpath_overrides_runpath=no
16554 hardcode_into_libs=yes
16555 dynamic_linker='ldqnx.so'
16558 openbsd*)
16559 version_type=sunos
16560 sys_lib_dlsearch_path_spec="/usr/lib"
16561 need_lib_prefix=no
16562 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16563 case $host_os in
16564 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16565 *) need_version=no ;;
16566 esac
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16569 shlibpath_var=LD_LIBRARY_PATH
16570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16571 case $host_os in
16572 openbsd2.[89] | openbsd2.[89].*)
16573 shlibpath_overrides_runpath=no
16576 shlibpath_overrides_runpath=yes
16578 esac
16579 else
16580 shlibpath_overrides_runpath=yes
16584 os2*)
16585 libname_spec='$name'
16586 shrext_cmds=".dll"
16587 need_lib_prefix=no
16588 library_names_spec='$libname${shared_ext} $libname.a'
16589 dynamic_linker='OS/2 ld.exe'
16590 shlibpath_var=LIBPATH
16593 osf3* | osf4* | osf5*)
16594 version_type=osf
16595 need_lib_prefix=no
16596 need_version=no
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16599 shlibpath_var=LD_LIBRARY_PATH
16600 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16601 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16604 rdos*)
16605 dynamic_linker=no
16608 solaris*)
16609 version_type=linux
16610 need_lib_prefix=no
16611 need_version=no
16612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613 soname_spec='${libname}${release}${shared_ext}$major'
16614 shlibpath_var=LD_LIBRARY_PATH
16615 shlibpath_overrides_runpath=yes
16616 hardcode_into_libs=yes
16617 # ldd complains unless libraries are executable
16618 postinstall_cmds='chmod +x $lib'
16621 sunos4*)
16622 version_type=sunos
16623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 shlibpath_overrides_runpath=yes
16627 if test "$with_gnu_ld" = yes; then
16628 need_lib_prefix=no
16630 need_version=yes
16633 sysv4 | sysv4.3*)
16634 version_type=linux
16635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16636 soname_spec='${libname}${release}${shared_ext}$major'
16637 shlibpath_var=LD_LIBRARY_PATH
16638 case $host_vendor in
16639 sni)
16640 shlibpath_overrides_runpath=no
16641 need_lib_prefix=no
16642 runpath_var=LD_RUN_PATH
16644 siemens)
16645 need_lib_prefix=no
16647 motorola)
16648 need_lib_prefix=no
16649 need_version=no
16650 shlibpath_overrides_runpath=no
16651 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16653 esac
16656 sysv4*MP*)
16657 if test -d /usr/nec ;then
16658 version_type=linux
16659 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16660 soname_spec='$libname${shared_ext}.$major'
16661 shlibpath_var=LD_LIBRARY_PATH
16665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16666 version_type=freebsd-elf
16667 need_lib_prefix=no
16668 need_version=no
16669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16670 soname_spec='${libname}${release}${shared_ext}$major'
16671 shlibpath_var=LD_LIBRARY_PATH
16672 shlibpath_overrides_runpath=yes
16673 hardcode_into_libs=yes
16674 if test "$with_gnu_ld" = yes; then
16675 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16676 else
16677 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16678 case $host_os in
16679 sco3.2v5*)
16680 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16682 esac
16684 sys_lib_dlsearch_path_spec='/usr/lib'
16687 tpf*)
16688 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16689 version_type=linux
16690 need_lib_prefix=no
16691 need_version=no
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 shlibpath_overrides_runpath=no
16695 hardcode_into_libs=yes
16698 uts4*)
16699 version_type=linux
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701 soname_spec='${libname}${release}${shared_ext}$major'
16702 shlibpath_var=LD_LIBRARY_PATH
16706 dynamic_linker=no
16708 esac
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16710 $as_echo "$dynamic_linker" >&6; }
16711 test "$dynamic_linker" = no && can_build_shared=no
16713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16714 if test "$GCC" = yes; then
16715 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16718 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16719 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16721 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16722 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16817 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16818 hardcode_action=
16819 if test -n "$hardcode_libdir_flag_spec" ||
16820 test -n "$runpath_var" ||
16821 test "X$hardcode_automatic" = "Xyes" ; then
16823 # We can hardcode non-existent directories.
16824 if test "$hardcode_direct" != no &&
16825 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16826 # have to relink, otherwise we might link with an installed library
16827 # when we should be linking with a yet-to-be-installed one
16828 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16829 test "$hardcode_minus_L" != no; then
16830 # Linking always hardcodes the temporary library directory.
16831 hardcode_action=relink
16832 else
16833 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16834 hardcode_action=immediate
16836 else
16837 # We cannot hardcode anything, or else we can only hardcode existing
16838 # directories.
16839 hardcode_action=unsupported
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16842 $as_echo "$hardcode_action" >&6; }
16844 if test "$hardcode_action" = relink ||
16845 test "$inherit_rpath" = yes; then
16846 # Fast installation is not supported
16847 enable_fast_install=no
16848 elif test "$shlibpath_overrides_runpath" = yes ||
16849 test "$enable_shared" = no; then
16850 # Fast installation is not necessary
16851 enable_fast_install=needless
16859 if test "x$enable_dlopen" != xyes; then
16860 enable_dlopen=unknown
16861 enable_dlopen_self=unknown
16862 enable_dlopen_self_static=unknown
16863 else
16864 lt_cv_dlopen=no
16865 lt_cv_dlopen_libs=
16867 case $host_os in
16868 beos*)
16869 lt_cv_dlopen="load_add_on"
16870 lt_cv_dlopen_libs=
16871 lt_cv_dlopen_self=yes
16874 mingw* | pw32* | cegcc*)
16875 lt_cv_dlopen="LoadLibrary"
16876 lt_cv_dlopen_libs=
16879 cygwin*)
16880 lt_cv_dlopen="dlopen"
16881 lt_cv_dlopen_libs=
16884 darwin*)
16885 # if libdl is installed we need to link against it
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16887 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16888 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16889 $as_echo_n "(cached) " >&6
16890 else
16891 ac_check_lib_save_LIBS=$LIBS
16892 LIBS="-ldl $LIBS"
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16896 /* Override any GCC internal prototype to avoid an error.
16897 Use char because int might match the return type of a GCC
16898 builtin and then its argument prototype would still apply. */
16899 #ifdef __cplusplus
16900 extern "C"
16901 #endif
16902 char dlopen ();
16904 main ()
16906 return dlopen ();
16908 return 0;
16910 _ACEOF
16911 if ac_fn_c_try_link "$LINENO"; then :
16912 ac_cv_lib_dl_dlopen=yes
16913 else
16914 ac_cv_lib_dl_dlopen=no
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext conftest.$ac_ext
16918 LIBS=$ac_check_lib_save_LIBS
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16921 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16922 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16924 else
16926 lt_cv_dlopen="dyld"
16927 lt_cv_dlopen_libs=
16928 lt_cv_dlopen_self=yes
16935 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16936 if test "x$ac_cv_func_shl_load" = x""yes; then :
16937 lt_cv_dlopen="shl_load"
16938 else
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16940 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16941 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16942 $as_echo_n "(cached) " >&6
16943 else
16944 ac_check_lib_save_LIBS=$LIBS
16945 LIBS="-ldld $LIBS"
16946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16949 /* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16952 #ifdef __cplusplus
16953 extern "C"
16954 #endif
16955 char shl_load ();
16957 main ()
16959 return shl_load ();
16961 return 0;
16963 _ACEOF
16964 if ac_fn_c_try_link "$LINENO"; then :
16965 ac_cv_lib_dld_shl_load=yes
16966 else
16967 ac_cv_lib_dld_shl_load=no
16969 rm -f core conftest.err conftest.$ac_objext \
16970 conftest$ac_exeext conftest.$ac_ext
16971 LIBS=$ac_check_lib_save_LIBS
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16974 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16975 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16976 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16977 else
16978 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16979 if test "x$ac_cv_func_dlopen" = x""yes; then :
16980 lt_cv_dlopen="dlopen"
16981 else
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16983 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987 ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-ldl $LIBS"
16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16992 /* Override any GCC internal prototype to avoid an error.
16993 Use char because int might match the return type of a GCC
16994 builtin and then its argument prototype would still apply. */
16995 #ifdef __cplusplus
16996 extern "C"
16997 #endif
16998 char dlopen ();
17000 main ()
17002 return dlopen ();
17004 return 0;
17006 _ACEOF
17007 if ac_fn_c_try_link "$LINENO"; then :
17008 ac_cv_lib_dl_dlopen=yes
17009 else
17010 ac_cv_lib_dl_dlopen=no
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17014 LIBS=$ac_check_lib_save_LIBS
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17017 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17018 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17020 else
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17022 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17023 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17024 $as_echo_n "(cached) " >&6
17025 else
17026 ac_check_lib_save_LIBS=$LIBS
17027 LIBS="-lsvld $LIBS"
17028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17029 /* end confdefs.h. */
17031 /* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
17034 #ifdef __cplusplus
17035 extern "C"
17036 #endif
17037 char dlopen ();
17039 main ()
17041 return dlopen ();
17043 return 0;
17045 _ACEOF
17046 if ac_fn_c_try_link "$LINENO"; then :
17047 ac_cv_lib_svld_dlopen=yes
17048 else
17049 ac_cv_lib_svld_dlopen=no
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17056 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17057 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17058 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17059 else
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17061 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17062 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17063 $as_echo_n "(cached) " >&6
17064 else
17065 ac_check_lib_save_LIBS=$LIBS
17066 LIBS="-ldld $LIBS"
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17073 #ifdef __cplusplus
17074 extern "C"
17075 #endif
17076 char dld_link ();
17078 main ()
17080 return dld_link ();
17082 return 0;
17084 _ACEOF
17085 if ac_fn_c_try_link "$LINENO"; then :
17086 ac_cv_lib_dld_dld_link=yes
17087 else
17088 ac_cv_lib_dld_dld_link=no
17090 rm -f core conftest.err conftest.$ac_objext \
17091 conftest$ac_exeext conftest.$ac_ext
17092 LIBS=$ac_check_lib_save_LIBS
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17095 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17096 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17097 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17116 esac
17118 if test "x$lt_cv_dlopen" != xno; then
17119 enable_dlopen=yes
17120 else
17121 enable_dlopen=no
17124 case $lt_cv_dlopen in
17125 dlopen)
17126 save_CPPFLAGS="$CPPFLAGS"
17127 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17129 save_LDFLAGS="$LDFLAGS"
17130 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17132 save_LIBS="$LIBS"
17133 LIBS="$lt_cv_dlopen_libs $LIBS"
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17136 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17137 if test "${lt_cv_dlopen_self+set}" = set; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17140 if test "$cross_compiling" = yes; then :
17141 lt_cv_dlopen_self=cross
17142 else
17143 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17144 lt_status=$lt_dlunknown
17145 cat > conftest.$ac_ext <<_LT_EOF
17146 #line 17146 "configure"
17147 #include "confdefs.h"
17149 #if HAVE_DLFCN_H
17150 #include <dlfcn.h>
17151 #endif
17153 #include <stdio.h>
17155 #ifdef RTLD_GLOBAL
17156 # define LT_DLGLOBAL RTLD_GLOBAL
17157 #else
17158 # ifdef DL_GLOBAL
17159 # define LT_DLGLOBAL DL_GLOBAL
17160 # else
17161 # define LT_DLGLOBAL 0
17162 # endif
17163 #endif
17165 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17166 find out it does not work in some platform. */
17167 #ifndef LT_DLLAZY_OR_NOW
17168 # ifdef RTLD_LAZY
17169 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17170 # else
17171 # ifdef DL_LAZY
17172 # define LT_DLLAZY_OR_NOW DL_LAZY
17173 # else
17174 # ifdef RTLD_NOW
17175 # define LT_DLLAZY_OR_NOW RTLD_NOW
17176 # else
17177 # ifdef DL_NOW
17178 # define LT_DLLAZY_OR_NOW DL_NOW
17179 # else
17180 # define LT_DLLAZY_OR_NOW 0
17181 # endif
17182 # endif
17183 # endif
17184 # endif
17185 #endif
17187 /* When -fvisbility=hidden is used, assume the code has been annotated
17188 correspondingly for the symbols needed. */
17189 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17190 void fnord () __attribute__((visibility("default")));
17191 #endif
17193 void fnord () { int i=42; }
17194 int main ()
17196 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17197 int status = $lt_dlunknown;
17199 if (self)
17201 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17202 else
17204 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17205 else puts (dlerror ());
17207 /* dlclose (self); */
17209 else
17210 puts (dlerror ());
17212 return status;
17214 _LT_EOF
17215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17216 (eval $ac_link) 2>&5
17217 ac_status=$?
17218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17219 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17220 (./conftest; exit; ) >&5 2>/dev/null
17221 lt_status=$?
17222 case x$lt_status in
17223 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17224 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17225 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17226 esac
17227 else :
17228 # compilation failed
17229 lt_cv_dlopen_self=no
17232 rm -fr conftest*
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17237 $as_echo "$lt_cv_dlopen_self" >&6; }
17239 if test "x$lt_cv_dlopen_self" = xyes; then
17240 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17242 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17243 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17244 $as_echo_n "(cached) " >&6
17245 else
17246 if test "$cross_compiling" = yes; then :
17247 lt_cv_dlopen_self_static=cross
17248 else
17249 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17250 lt_status=$lt_dlunknown
17251 cat > conftest.$ac_ext <<_LT_EOF
17252 #line 17252 "configure"
17253 #include "confdefs.h"
17255 #if HAVE_DLFCN_H
17256 #include <dlfcn.h>
17257 #endif
17259 #include <stdio.h>
17261 #ifdef RTLD_GLOBAL
17262 # define LT_DLGLOBAL RTLD_GLOBAL
17263 #else
17264 # ifdef DL_GLOBAL
17265 # define LT_DLGLOBAL DL_GLOBAL
17266 # else
17267 # define LT_DLGLOBAL 0
17268 # endif
17269 #endif
17271 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17272 find out it does not work in some platform. */
17273 #ifndef LT_DLLAZY_OR_NOW
17274 # ifdef RTLD_LAZY
17275 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17276 # else
17277 # ifdef DL_LAZY
17278 # define LT_DLLAZY_OR_NOW DL_LAZY
17279 # else
17280 # ifdef RTLD_NOW
17281 # define LT_DLLAZY_OR_NOW RTLD_NOW
17282 # else
17283 # ifdef DL_NOW
17284 # define LT_DLLAZY_OR_NOW DL_NOW
17285 # else
17286 # define LT_DLLAZY_OR_NOW 0
17287 # endif
17288 # endif
17289 # endif
17290 # endif
17291 #endif
17293 /* When -fvisbility=hidden is used, assume the code has been annotated
17294 correspondingly for the symbols needed. */
17295 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17296 void fnord () __attribute__((visibility("default")));
17297 #endif
17299 void fnord () { int i=42; }
17300 int main ()
17302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17303 int status = $lt_dlunknown;
17305 if (self)
17307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17308 else
17310 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17311 else puts (dlerror ());
17313 /* dlclose (self); */
17315 else
17316 puts (dlerror ());
17318 return status;
17320 _LT_EOF
17321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17322 (eval $ac_link) 2>&5
17323 ac_status=$?
17324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17325 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17326 (./conftest; exit; ) >&5 2>/dev/null
17327 lt_status=$?
17328 case x$lt_status in
17329 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17330 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17331 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17332 esac
17333 else :
17334 # compilation failed
17335 lt_cv_dlopen_self_static=no
17338 rm -fr conftest*
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17343 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17346 CPPFLAGS="$save_CPPFLAGS"
17347 LDFLAGS="$save_LDFLAGS"
17348 LIBS="$save_LIBS"
17350 esac
17352 case $lt_cv_dlopen_self in
17353 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17354 *) enable_dlopen_self=unknown ;;
17355 esac
17357 case $lt_cv_dlopen_self_static in
17358 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17359 *) enable_dlopen_self_static=unknown ;;
17360 esac
17379 striplib=
17380 old_striplib=
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17382 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17383 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17384 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17385 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17387 $as_echo "yes" >&6; }
17388 else
17389 # FIXME - insert some real tests, host_os isn't really good enough
17390 case $host_os in
17391 darwin*)
17392 if test -n "$STRIP" ; then
17393 striplib="$STRIP -x"
17394 old_striplib="$STRIP -S"
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17396 $as_echo "yes" >&6; }
17397 else
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17399 $as_echo "no" >&6; }
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17404 $as_echo "no" >&6; }
17406 esac
17420 # Report which library types will actually be built
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17422 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17424 $as_echo "$can_build_shared" >&6; }
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17427 $as_echo_n "checking whether to build shared libraries... " >&6; }
17428 test "$can_build_shared" = "no" && enable_shared=no
17430 # On AIX, shared libraries and static libraries use the same namespace, and
17431 # are all built from PIC.
17432 case $host_os in
17433 aix3*)
17434 test "$enable_shared" = yes && enable_static=no
17435 if test -n "$RANLIB"; then
17436 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17437 postinstall_cmds='$RANLIB $lib'
17441 aix[4-9]*)
17442 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17443 test "$enable_shared" = yes && enable_static=no
17446 esac
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17448 $as_echo "$enable_shared" >&6; }
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17451 $as_echo_n "checking whether to build static libraries... " >&6; }
17452 # Make sure either enable_shared or enable_static is yes.
17453 test "$enable_shared" = yes || enable_static=yes
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17455 $as_echo "$enable_static" >&6; }
17461 ac_ext=c
17462 ac_cpp='$CPP $CPPFLAGS'
17463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17467 CC="$lt_save_CC"
17469 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17470 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17471 (test "X$CXX" != "Xg++"))) ; then
17472 ac_ext=cpp
17473 ac_cpp='$CXXCPP $CPPFLAGS'
17474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17478 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17479 if test -z "$CXXCPP"; then
17480 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17481 $as_echo_n "(cached) " >&6
17482 else
17483 # Double quotes because CXXCPP needs to be expanded
17484 for CXXCPP in "$CXX -E" "/lib/cpp"
17486 ac_preproc_ok=false
17487 for ac_cxx_preproc_warn_flag in '' yes
17489 # Use a header file that comes with gcc, so configuring glibc
17490 # with a fresh cross-compiler works.
17491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17492 # <limits.h> exists even on freestanding compilers.
17493 # On the NeXT, cc -E runs the code through the compiler's parser,
17494 # not just through cpp. "Syntax error" is here to catch this case.
17495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17496 /* end confdefs.h. */
17497 #ifdef __STDC__
17498 # include <limits.h>
17499 #else
17500 # include <assert.h>
17501 #endif
17502 Syntax error
17503 _ACEOF
17504 if ac_fn_cxx_try_cpp "$LINENO"; then :
17506 else
17507 # Broken: fails on valid input.
17508 continue
17510 rm -f conftest.err conftest.$ac_ext
17512 # OK, works on sane cases. Now check whether nonexistent headers
17513 # can be detected and how.
17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17516 #include <ac_nonexistent.h>
17517 _ACEOF
17518 if ac_fn_cxx_try_cpp "$LINENO"; then :
17519 # Broken: success on invalid input.
17520 continue
17521 else
17522 # Passes both tests.
17523 ac_preproc_ok=:
17524 break
17526 rm -f conftest.err conftest.$ac_ext
17528 done
17529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17530 rm -f conftest.err conftest.$ac_ext
17531 if $ac_preproc_ok; then :
17532 break
17535 done
17536 ac_cv_prog_CXXCPP=$CXXCPP
17539 CXXCPP=$ac_cv_prog_CXXCPP
17540 else
17541 ac_cv_prog_CXXCPP=$CXXCPP
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17544 $as_echo "$CXXCPP" >&6; }
17545 ac_preproc_ok=false
17546 for ac_cxx_preproc_warn_flag in '' yes
17548 # Use a header file that comes with gcc, so configuring glibc
17549 # with a fresh cross-compiler works.
17550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17551 # <limits.h> exists even on freestanding compilers.
17552 # On the NeXT, cc -E runs the code through the compiler's parser,
17553 # not just through cpp. "Syntax error" is here to catch this case.
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17556 #ifdef __STDC__
17557 # include <limits.h>
17558 #else
17559 # include <assert.h>
17560 #endif
17561 Syntax error
17562 _ACEOF
17563 if ac_fn_cxx_try_cpp "$LINENO"; then :
17565 else
17566 # Broken: fails on valid input.
17567 continue
17569 rm -f conftest.err conftest.$ac_ext
17571 # OK, works on sane cases. Now check whether nonexistent headers
17572 # can be detected and how.
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17575 #include <ac_nonexistent.h>
17576 _ACEOF
17577 if ac_fn_cxx_try_cpp "$LINENO"; then :
17578 # Broken: success on invalid input.
17579 continue
17580 else
17581 # Passes both tests.
17582 ac_preproc_ok=:
17583 break
17585 rm -f conftest.err conftest.$ac_ext
17587 done
17588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17589 rm -f conftest.err conftest.$ac_ext
17590 if $ac_preproc_ok; then :
17592 else
17593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17595 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17596 See \`config.log' for more details." "$LINENO" 5; }
17599 ac_ext=c
17600 ac_cpp='$CPP $CPPFLAGS'
17601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17605 else
17606 _lt_caught_CXX_error=yes
17609 ac_ext=cpp
17610 ac_cpp='$CXXCPP $CPPFLAGS'
17611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17615 archive_cmds_need_lc_CXX=no
17616 allow_undefined_flag_CXX=
17617 always_export_symbols_CXX=no
17618 archive_expsym_cmds_CXX=
17619 compiler_needs_object_CXX=no
17620 export_dynamic_flag_spec_CXX=
17621 hardcode_direct_CXX=no
17622 hardcode_direct_absolute_CXX=no
17623 hardcode_libdir_flag_spec_CXX=
17624 hardcode_libdir_flag_spec_ld_CXX=
17625 hardcode_libdir_separator_CXX=
17626 hardcode_minus_L_CXX=no
17627 hardcode_shlibpath_var_CXX=unsupported
17628 hardcode_automatic_CXX=no
17629 inherit_rpath_CXX=no
17630 module_cmds_CXX=
17631 module_expsym_cmds_CXX=
17632 link_all_deplibs_CXX=unknown
17633 old_archive_cmds_CXX=$old_archive_cmds
17634 reload_flag_CXX=$reload_flag
17635 reload_cmds_CXX=$reload_cmds
17636 no_undefined_flag_CXX=
17637 whole_archive_flag_spec_CXX=
17638 enable_shared_with_static_runtimes_CXX=no
17640 # Source file extension for C++ test sources.
17641 ac_ext=cpp
17643 # Object file extension for compiled C++ test sources.
17644 objext=o
17645 objext_CXX=$objext
17647 # No sense in running all these tests if we already determined that
17648 # the CXX compiler isn't working. Some variables (like enable_shared)
17649 # are currently assumed to apply to all compilers on this platform,
17650 # and will be corrupted by setting them based on a non-working compiler.
17651 if test "$_lt_caught_CXX_error" != yes; then
17652 # Code to be used in simple compile tests
17653 lt_simple_compile_test_code="int some_variable = 0;"
17655 # Code to be used in simple link tests
17656 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17658 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17665 # If no C compiler was specified, use CC.
17666 LTCC=${LTCC-"$CC"}
17668 # If no C compiler flags were specified, use CFLAGS.
17669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17671 # Allow CC to be a program name with arguments.
17672 compiler=$CC
17675 # save warnings/boilerplate of simple test code
17676 ac_outfile=conftest.$ac_objext
17677 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17679 _lt_compiler_boilerplate=`cat conftest.err`
17680 $RM conftest*
17682 ac_outfile=conftest.$ac_objext
17683 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17685 _lt_linker_boilerplate=`cat conftest.err`
17686 $RM -r conftest*
17689 # Allow CC to be a program name with arguments.
17690 lt_save_CC=$CC
17691 lt_save_LD=$LD
17692 lt_save_GCC=$GCC
17693 GCC=$GXX
17694 lt_save_with_gnu_ld=$with_gnu_ld
17695 lt_save_path_LD=$lt_cv_path_LD
17696 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17697 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17698 else
17699 $as_unset lt_cv_prog_gnu_ld
17701 if test -n "${lt_cv_path_LDCXX+set}"; then
17702 lt_cv_path_LD=$lt_cv_path_LDCXX
17703 else
17704 $as_unset lt_cv_path_LD
17706 test -z "${LDCXX+set}" || LD=$LDCXX
17707 CC=${CXX-"c++"}
17708 compiler=$CC
17709 compiler_CXX=$CC
17710 for cc_temp in $compiler""; do
17711 case $cc_temp in
17712 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17713 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17714 \-*) ;;
17715 *) break;;
17716 esac
17717 done
17718 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17721 if test -n "$compiler"; then
17722 # We don't want -fno-exception when compiling C++ code, so set the
17723 # no_builtin_flag separately
17724 if test "$GXX" = yes; then
17725 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17726 else
17727 lt_prog_compiler_no_builtin_flag_CXX=
17730 if test "$GXX" = yes; then
17731 # Set up default GNU C++ configuration
17735 # Check whether --with-gnu-ld was given.
17736 if test "${with_gnu_ld+set}" = set; then :
17737 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17738 else
17739 with_gnu_ld=no
17742 ac_prog=ld
17743 if test "$GCC" = yes; then
17744 # Check if gcc -print-prog-name=ld gives a path.
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17746 $as_echo_n "checking for ld used by $CC... " >&6; }
17747 case $host in
17748 *-*-mingw*)
17749 # gcc leaves a trailing carriage return which upsets mingw
17750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17753 esac
17754 case $ac_prog in
17755 # Accept absolute paths.
17756 [\\/]* | ?:[\\/]*)
17757 re_direlt='/[^/][^/]*/\.\./'
17758 # Canonicalize the pathname of ld
17759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17761 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17762 done
17763 test -z "$LD" && LD="$ac_prog"
17766 # If it fails, then pretend we aren't using GCC.
17767 ac_prog=ld
17770 # If it is relative, then search for the first ld in PATH.
17771 with_gnu_ld=unknown
17773 esac
17774 elif test "$with_gnu_ld" = yes; then
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17776 $as_echo_n "checking for GNU ld... " >&6; }
17777 else
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17779 $as_echo_n "checking for non-GNU ld... " >&6; }
17781 if test "${lt_cv_path_LD+set}" = set; then :
17782 $as_echo_n "(cached) " >&6
17783 else
17784 if test -z "$LD"; then
17785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17786 for ac_dir in $PATH; do
17787 IFS="$lt_save_ifs"
17788 test -z "$ac_dir" && ac_dir=.
17789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17790 lt_cv_path_LD="$ac_dir/$ac_prog"
17791 # Check to see if the program is GNU ld. I'd rather use --version,
17792 # but apparently some variants of GNU ld only accept -v.
17793 # Break only if it was the GNU/non-GNU ld that we prefer.
17794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17795 *GNU* | *'with BFD'*)
17796 test "$with_gnu_ld" != no && break
17799 test "$with_gnu_ld" != yes && break
17801 esac
17803 done
17804 IFS="$lt_save_ifs"
17805 else
17806 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17810 LD="$lt_cv_path_LD"
17811 if test -n "$LD"; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17813 $as_echo "$LD" >&6; }
17814 else
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17818 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17820 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17821 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17822 $as_echo_n "(cached) " >&6
17823 else
17824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17825 case `$LD -v 2>&1 </dev/null` in
17826 *GNU* | *'with BFD'*)
17827 lt_cv_prog_gnu_ld=yes
17830 lt_cv_prog_gnu_ld=no
17832 esac
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17835 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17836 with_gnu_ld=$lt_cv_prog_gnu_ld
17844 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17845 # archiving commands below assume that GNU ld is being used.
17846 if test "$with_gnu_ld" = yes; then
17847 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17848 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'
17850 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17851 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17853 # If archive_cmds runs LD, not CC, wlarc should be empty
17854 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17855 # investigate it a little bit more. (MM)
17856 wlarc='${wl}'
17858 # ancient GNU ld didn't support --whole-archive et. al.
17859 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17860 $GREP 'no-whole-archive' > /dev/null; then
17861 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17862 else
17863 whole_archive_flag_spec_CXX=
17865 else
17866 with_gnu_ld=no
17867 wlarc=
17869 # A generic and very simple default shared library creation
17870 # command for GNU C++ for the case where it uses the native
17871 # linker, instead of GNU ld. If possible, this setting should
17872 # overridden to take advantage of the native linker features on
17873 # the platform it is being used on.
17874 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17877 # Commands to make compiler produce verbose output that lists
17878 # what "hidden" libraries, object files and flags are used when
17879 # linking a shared library.
17880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17882 else
17883 GXX=no
17884 with_gnu_ld=no
17885 wlarc=
17888 # PORTME: fill in a description of your system's C++ link characteristics
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17890 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17891 ld_shlibs_CXX=yes
17892 case $host_os in
17893 aix3*)
17894 # FIXME: insert proper C++ library support
17895 ld_shlibs_CXX=no
17897 aix[4-9]*)
17898 if test "$host_cpu" = ia64; then
17899 # On IA64, the linker does run time linking by default, so we don't
17900 # have to do anything special.
17901 aix_use_runtimelinking=no
17902 exp_sym_flag='-Bexport'
17903 no_entry_flag=""
17904 else
17905 aix_use_runtimelinking=no
17907 # Test if we are trying to use run time linking or normal
17908 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17909 # need to do runtime linking.
17910 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17911 for ld_flag in $LDFLAGS; do
17912 case $ld_flag in
17913 *-brtl*)
17914 aix_use_runtimelinking=yes
17915 break
17917 esac
17918 done
17920 esac
17922 exp_sym_flag='-bexport'
17923 no_entry_flag='-bnoentry'
17926 # When large executables or shared objects are built, AIX ld can
17927 # have problems creating the table of contents. If linking a library
17928 # or program results in "error TOC overflow" add -mminimal-toc to
17929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17932 archive_cmds_CXX=''
17933 hardcode_direct_CXX=yes
17934 hardcode_direct_absolute_CXX=yes
17935 hardcode_libdir_separator_CXX=':'
17936 link_all_deplibs_CXX=yes
17937 file_list_spec_CXX='${wl}-f,'
17939 if test "$GXX" = yes; then
17940 case $host_os in aix4.[012]|aix4.[012].*)
17941 # We only want to do this on AIX 4.2 and lower, the check
17942 # below for broken collect2 doesn't work under 4.3+
17943 collect2name=`${CC} -print-prog-name=collect2`
17944 if test -f "$collect2name" &&
17945 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17946 then
17947 # We have reworked collect2
17949 else
17950 # We have old collect2
17951 hardcode_direct_CXX=unsupported
17952 # It fails to find uninstalled libraries when the uninstalled
17953 # path is not listed in the libpath. Setting hardcode_minus_L
17954 # to unsupported forces relinking
17955 hardcode_minus_L_CXX=yes
17956 hardcode_libdir_flag_spec_CXX='-L$libdir'
17957 hardcode_libdir_separator_CXX=
17959 esac
17960 shared_flag='-shared'
17961 if test "$aix_use_runtimelinking" = yes; then
17962 shared_flag="$shared_flag "'${wl}-G'
17964 else
17965 # not using gcc
17966 if test "$host_cpu" = ia64; then
17967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17968 # chokes on -Wl,-G. The following line is correct:
17969 shared_flag='-G'
17970 else
17971 if test "$aix_use_runtimelinking" = yes; then
17972 shared_flag='${wl}-G'
17973 else
17974 shared_flag='${wl}-bM:SRE'
17979 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17980 # It seems that -bexpall does not export symbols beginning with
17981 # underscore (_), so it is better to generate a list of symbols to
17982 # export.
17983 always_export_symbols_CXX=yes
17984 if test "$aix_use_runtimelinking" = yes; then
17985 # Warning - without using the other runtime loading flags (-brtl),
17986 # -berok will link without error, but may produce a broken library.
17987 allow_undefined_flag_CXX='-berok'
17988 # Determine the default libpath from the value encoded in an empty
17989 # executable.
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17994 main ()
17998 return 0;
18000 _ACEOF
18001 if ac_fn_cxx_try_link "$LINENO"; then :
18003 lt_aix_libpath_sed='
18004 /Import File Strings/,/^$/ {
18005 /^0/ {
18006 s/^0 *\(.*\)$/\1/
18010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18011 # Check for a 64-bit object if we didn't find anything.
18012 if test -z "$aix_libpath"; then
18013 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18016 rm -f core conftest.err conftest.$ac_objext \
18017 conftest$ac_exeext conftest.$ac_ext
18018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18020 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18022 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"
18023 else
18024 if test "$host_cpu" = ia64; then
18025 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18026 allow_undefined_flag_CXX="-z nodefs"
18027 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"
18028 else
18029 # Determine the default libpath from the value encoded in an
18030 # empty executable.
18031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032 /* end confdefs.h. */
18035 main ()
18039 return 0;
18041 _ACEOF
18042 if ac_fn_cxx_try_link "$LINENO"; then :
18044 lt_aix_libpath_sed='
18045 /Import File Strings/,/^$/ {
18046 /^0/ {
18047 s/^0 *\(.*\)$/\1/
18051 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18052 # Check for a 64-bit object if we didn't find anything.
18053 if test -z "$aix_libpath"; then
18054 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18057 rm -f core conftest.err conftest.$ac_objext \
18058 conftest$ac_exeext conftest.$ac_ext
18059 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18061 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18062 # Warning - without using the other run time loading flags,
18063 # -berok will link without error, but may produce a broken library.
18064 no_undefined_flag_CXX=' ${wl}-bernotok'
18065 allow_undefined_flag_CXX=' ${wl}-berok'
18066 if test "$with_gnu_ld" = yes; then
18067 # We only use this code for GNU lds that support --whole-archive.
18068 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18069 else
18070 # Exported symbols can be pulled into shared objects from archives
18071 whole_archive_flag_spec_CXX='$convenience'
18073 archive_cmds_need_lc_CXX=yes
18074 # This is similar to how AIX traditionally builds its shared
18075 # libraries.
18076 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'
18081 beos*)
18082 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18083 allow_undefined_flag_CXX=unsupported
18084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18085 # support --undefined. This deserves some investigation. FIXME
18086 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18087 else
18088 ld_shlibs_CXX=no
18092 chorus*)
18093 case $cc_basename in
18095 # FIXME: insert proper C++ library support
18096 ld_shlibs_CXX=no
18098 esac
18101 cygwin* | mingw* | pw32* | cegcc*)
18102 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18103 # as there is no search path for DLLs.
18104 hardcode_libdir_flag_spec_CXX='-L$libdir'
18105 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18106 allow_undefined_flag_CXX=unsupported
18107 always_export_symbols_CXX=no
18108 enable_shared_with_static_runtimes_CXX=yes
18110 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18111 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'
18112 # If the export-symbols file already is a .def file (1st line
18113 # is EXPORTS), use it as is; otherwise, prepend...
18114 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18115 cp $export_symbols $output_objdir/$soname.def;
18116 else
18117 echo EXPORTS > $output_objdir/$soname.def;
18118 cat $export_symbols >> $output_objdir/$soname.def;
18120 $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'
18121 else
18122 ld_shlibs_CXX=no
18125 darwin* | rhapsody*)
18128 archive_cmds_need_lc_CXX=no
18129 hardcode_direct_CXX=no
18130 hardcode_automatic_CXX=yes
18131 hardcode_shlibpath_var_CXX=unsupported
18132 if test "$lt_cv_ld_force_load" = "yes"; then
18133 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\"`'
18134 else
18135 whole_archive_flag_spec_CXX=''
18137 link_all_deplibs_CXX=yes
18138 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18139 case $cc_basename in
18140 ifort*) _lt_dar_can_shared=yes ;;
18141 *) _lt_dar_can_shared=$GCC ;;
18142 esac
18143 if test "$_lt_dar_can_shared" = "yes"; then
18144 output_verbose_link_cmd=func_echo_all
18145 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}"
18146 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18147 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}"
18148 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}"
18149 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18150 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}"
18151 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}"
18154 else
18155 ld_shlibs_CXX=no
18160 dgux*)
18161 case $cc_basename in
18162 ec++*)
18163 # FIXME: insert proper C++ library support
18164 ld_shlibs_CXX=no
18166 ghcx*)
18167 # Green Hills C++ Compiler
18168 # FIXME: insert proper C++ library support
18169 ld_shlibs_CXX=no
18172 # FIXME: insert proper C++ library support
18173 ld_shlibs_CXX=no
18175 esac
18178 freebsd[12]*)
18179 # C++ shared libraries reported to be fairly broken before
18180 # switch to ELF
18181 ld_shlibs_CXX=no
18184 freebsd-elf*)
18185 archive_cmds_need_lc_CXX=no
18188 freebsd* | dragonfly*)
18189 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18190 # conventions
18191 ld_shlibs_CXX=yes
18194 gnu*)
18197 haiku*)
18198 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18199 link_all_deplibs_CXX=yes
18202 hpux9*)
18203 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18204 hardcode_libdir_separator_CXX=:
18205 export_dynamic_flag_spec_CXX='${wl}-E'
18206 hardcode_direct_CXX=yes
18207 hardcode_minus_L_CXX=yes # Not in the search PATH,
18208 # but as the default
18209 # location of the library.
18211 case $cc_basename in
18212 CC*)
18213 # FIXME: insert proper C++ library support
18214 ld_shlibs_CXX=no
18216 aCC*)
18217 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'
18218 # Commands to make compiler produce verbose output that lists
18219 # what "hidden" libraries, object files and flags are used when
18220 # linking a shared library.
18222 # There doesn't appear to be a way to prevent this compiler from
18223 # explicitly linking system object files so we need to strip them
18224 # from the output so that they don't get included in the library
18225 # dependencies.
18226 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"'
18229 if test "$GXX" = yes; then
18230 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'
18231 else
18232 # FIXME: insert proper C++ library support
18233 ld_shlibs_CXX=no
18236 esac
18239 hpux10*|hpux11*)
18240 if test $with_gnu_ld = no; then
18241 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18242 hardcode_libdir_separator_CXX=:
18244 case $host_cpu in
18245 hppa*64*|ia64*)
18248 export_dynamic_flag_spec_CXX='${wl}-E'
18250 esac
18252 case $host_cpu in
18253 hppa*64*|ia64*)
18254 hardcode_direct_CXX=no
18255 hardcode_shlibpath_var_CXX=no
18258 hardcode_direct_CXX=yes
18259 hardcode_direct_absolute_CXX=yes
18260 hardcode_minus_L_CXX=yes # Not in the search PATH,
18261 # but as the default
18262 # location of the library.
18264 esac
18266 case $cc_basename in
18267 CC*)
18268 # FIXME: insert proper C++ library support
18269 ld_shlibs_CXX=no
18271 aCC*)
18272 case $host_cpu in
18273 hppa*64*)
18274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18276 ia64*)
18277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18282 esac
18283 # Commands to make compiler produce verbose output that lists
18284 # what "hidden" libraries, object files and flags are used when
18285 # linking a shared library.
18287 # There doesn't appear to be a way to prevent this compiler from
18288 # explicitly linking system object files so we need to strip them
18289 # from the output so that they don't get included in the library
18290 # dependencies.
18291 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"'
18294 if test "$GXX" = yes; then
18295 if test $with_gnu_ld = no; then
18296 case $host_cpu in
18297 hppa*64*)
18298 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18300 ia64*)
18301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18304 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'
18306 esac
18308 else
18309 # FIXME: insert proper C++ library support
18310 ld_shlibs_CXX=no
18313 esac
18316 interix[3-9]*)
18317 hardcode_direct_CXX=no
18318 hardcode_shlibpath_var_CXX=no
18319 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18320 export_dynamic_flag_spec_CXX='${wl}-E'
18321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18322 # Instead, shared libraries are loaded at an image base (0x10000000 by
18323 # default) and relocated if they conflict, which is a slow very memory
18324 # consuming and fragmenting process. To avoid this, we pick a random,
18325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18326 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18327 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'
18328 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'
18330 irix5* | irix6*)
18331 case $cc_basename in
18332 CC*)
18333 # SGI C++
18334 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'
18336 # Archives containing C++ object files must be created using
18337 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18338 # necessary to make sure instantiated templates are included
18339 # in the archive.
18340 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18343 if test "$GXX" = yes; then
18344 if test "$with_gnu_ld" = no; then
18345 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'
18346 else
18347 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'
18350 link_all_deplibs_CXX=yes
18352 esac
18353 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18354 hardcode_libdir_separator_CXX=:
18355 inherit_rpath_CXX=yes
18358 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18359 case $cc_basename in
18360 KCC*)
18361 # Kuck and Associates, Inc. (KAI) C++ Compiler
18363 # KCC will only create a shared library if the output file
18364 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18365 # to its proper name (with version) after linking.
18366 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'
18367 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'
18368 # Commands to make compiler produce verbose output that lists
18369 # what "hidden" libraries, object files and flags are used when
18370 # linking a shared library.
18372 # There doesn't appear to be a way to prevent this compiler from
18373 # explicitly linking system object files so we need to strip them
18374 # from the output so that they don't get included in the library
18375 # dependencies.
18376 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"'
18378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18381 # Archives containing C++ object files must be created using
18382 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18383 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18385 icpc* | ecpc* )
18386 # Intel C++
18387 with_gnu_ld=yes
18388 # version 8.0 and above of icpc choke on multiply defined symbols
18389 # if we add $predep_objects and $postdep_objects, however 7.1 and
18390 # earlier do not add the objects themselves.
18391 case `$CC -V 2>&1` in
18392 *"Version 7."*)
18393 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18394 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'
18396 *) # Version 8.0 or newer
18397 tmp_idyn=
18398 case $host_cpu in
18399 ia64*) tmp_idyn=' -i_dynamic';;
18400 esac
18401 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18402 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'
18404 esac
18405 archive_cmds_need_lc_CXX=no
18406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18407 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18408 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18410 pgCC* | pgcpp*)
18411 # Portland Group C++ compiler
18412 case `$CC -V` in
18413 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18414 prelink_cmds_CXX='tpldir=Template.dir~
18415 rm -rf $tpldir~
18416 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18417 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18418 old_archive_cmds_CXX='tpldir=Template.dir~
18419 rm -rf $tpldir~
18420 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18421 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18422 $RANLIB $oldlib'
18423 archive_cmds_CXX='tpldir=Template.dir~
18424 rm -rf $tpldir~
18425 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18426 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18427 archive_expsym_cmds_CXX='tpldir=Template.dir~
18428 rm -rf $tpldir~
18429 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18430 $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'
18432 *) # Version 6 and above use weak symbols
18433 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18434 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'
18436 esac
18438 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18440 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'
18442 cxx*)
18443 # Compaq C++
18444 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18445 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'
18447 runpath_var=LD_RUN_PATH
18448 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18449 hardcode_libdir_separator_CXX=:
18451 # Commands to make compiler produce verbose output that lists
18452 # what "hidden" libraries, object files and flags are used when
18453 # linking a shared library.
18455 # There doesn't appear to be a way to prevent this compiler from
18456 # explicitly linking system object files so we need to strip them
18457 # from the output so that they don't get included in the library
18458 # dependencies.
18459 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'
18461 xl* | mpixl* | bgxl*)
18462 # IBM XL 8.0 on PPC, with GNU ld
18463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18464 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18465 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18466 if test "x$supports_anon_versioning" = xyes; then
18467 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18468 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18469 echo "local: *; };" >> $output_objdir/$libname.ver~
18470 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18474 case `$CC -V 2>&1 | sed 5q` in
18475 *Sun\ C*)
18476 # Sun C++ 5.9
18477 no_undefined_flag_CXX=' -zdefs'
18478 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18479 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'
18480 hardcode_libdir_flag_spec_CXX='-R$libdir'
18481 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'
18482 compiler_needs_object_CXX=yes
18484 # Not sure whether something based on
18485 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18486 # would be better.
18487 output_verbose_link_cmd='func_echo_all'
18489 # Archives containing C++ object files must be created using
18490 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18491 # necessary to make sure instantiated templates are included
18492 # in the archive.
18493 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18495 esac
18497 esac
18500 lynxos*)
18501 # FIXME: insert proper C++ library support
18502 ld_shlibs_CXX=no
18505 m88k*)
18506 # FIXME: insert proper C++ library support
18507 ld_shlibs_CXX=no
18510 mvs*)
18511 case $cc_basename in
18512 cxx*)
18513 # FIXME: insert proper C++ library support
18514 ld_shlibs_CXX=no
18517 # FIXME: insert proper C++ library support
18518 ld_shlibs_CXX=no
18520 esac
18523 netbsd*)
18524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18525 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18526 wlarc=
18527 hardcode_libdir_flag_spec_CXX='-R$libdir'
18528 hardcode_direct_CXX=yes
18529 hardcode_shlibpath_var_CXX=no
18531 # Workaround some broken pre-1.5 toolchains
18532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18535 *nto* | *qnx*)
18536 ld_shlibs_CXX=yes
18539 openbsd2*)
18540 # C++ shared libraries are fairly broken
18541 ld_shlibs_CXX=no
18544 openbsd*)
18545 if test -f /usr/libexec/ld.so; then
18546 hardcode_direct_CXX=yes
18547 hardcode_shlibpath_var_CXX=no
18548 hardcode_direct_absolute_CXX=yes
18549 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18550 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18551 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18552 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18553 export_dynamic_flag_spec_CXX='${wl}-E'
18554 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18556 output_verbose_link_cmd=func_echo_all
18557 else
18558 ld_shlibs_CXX=no
18562 osf3* | osf4* | osf5*)
18563 case $cc_basename in
18564 KCC*)
18565 # Kuck and Associates, Inc. (KAI) C++ Compiler
18567 # KCC will only create a shared library if the output file
18568 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18569 # to its proper name (with version) after linking.
18570 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'
18572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18573 hardcode_libdir_separator_CXX=:
18575 # Archives containing C++ object files must be created using
18576 # the KAI C++ compiler.
18577 case $host in
18578 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18579 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18580 esac
18582 RCC*)
18583 # Rational C++ 2.4.1
18584 # FIXME: insert proper C++ library support
18585 ld_shlibs_CXX=no
18587 cxx*)
18588 case $host in
18589 osf3*)
18590 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18591 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'
18592 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18595 allow_undefined_flag_CXX=' -expect_unresolved \*'
18596 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'
18597 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18598 echo "-hidden">> $lib.exp~
18599 $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~
18600 $RM $lib.exp'
18601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18603 esac
18605 hardcode_libdir_separator_CXX=:
18607 # Commands to make compiler produce verbose output that lists
18608 # what "hidden" libraries, object files and flags are used when
18609 # linking a shared library.
18611 # There doesn't appear to be a way to prevent this compiler from
18612 # explicitly linking system object files so we need to strip them
18613 # from the output so that they don't get included in the library
18614 # dependencies.
18615 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"'
18618 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18619 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18620 case $host in
18621 osf3*)
18622 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'
18625 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'
18627 esac
18629 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18630 hardcode_libdir_separator_CXX=:
18632 # Commands to make compiler produce verbose output that lists
18633 # what "hidden" libraries, object files and flags are used when
18634 # linking a shared library.
18635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18637 else
18638 # FIXME: insert proper C++ library support
18639 ld_shlibs_CXX=no
18642 esac
18645 psos*)
18646 # FIXME: insert proper C++ library support
18647 ld_shlibs_CXX=no
18650 sunos4*)
18651 case $cc_basename in
18652 CC*)
18653 # Sun C++ 4.x
18654 # FIXME: insert proper C++ library support
18655 ld_shlibs_CXX=no
18657 lcc*)
18658 # Lucid
18659 # FIXME: insert proper C++ library support
18660 ld_shlibs_CXX=no
18663 # FIXME: insert proper C++ library support
18664 ld_shlibs_CXX=no
18666 esac
18669 solaris*)
18670 case $cc_basename in
18671 CC*)
18672 # Sun C++ 4.2, 5.x and Centerline C++
18673 archive_cmds_need_lc_CXX=yes
18674 no_undefined_flag_CXX=' -zdefs'
18675 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18676 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18677 $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'
18679 hardcode_libdir_flag_spec_CXX='-R$libdir'
18680 hardcode_shlibpath_var_CXX=no
18681 case $host_os in
18682 solaris2.[0-5] | solaris2.[0-5].*) ;;
18684 # The compiler driver will combine and reorder linker options,
18685 # but understands `-z linker_flag'.
18686 # Supported since Solaris 2.6 (maybe 2.5.1?)
18687 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18689 esac
18690 link_all_deplibs_CXX=yes
18692 output_verbose_link_cmd='func_echo_all'
18694 # Archives containing C++ object files must be created using
18695 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18696 # necessary to make sure instantiated templates are included
18697 # in the archive.
18698 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18700 gcx*)
18701 # Green Hills C++ Compiler
18702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18704 # The C++ compiler must be used to create the archive.
18705 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18708 # GNU C++ compiler with Solaris linker
18709 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18710 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18711 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18712 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18713 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18714 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18716 # Commands to make compiler produce verbose output that lists
18717 # what "hidden" libraries, object files and flags are used when
18718 # linking a shared library.
18719 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18720 else
18721 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18722 # platform.
18723 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18724 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18725 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18727 # Commands to make compiler produce verbose output that lists
18728 # what "hidden" libraries, object files and flags are used when
18729 # linking a shared library.
18730 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18733 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18734 case $host_os in
18735 solaris2.[0-5] | solaris2.[0-5].*) ;;
18737 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18739 esac
18742 esac
18745 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18746 no_undefined_flag_CXX='${wl}-z,text'
18747 archive_cmds_need_lc_CXX=no
18748 hardcode_shlibpath_var_CXX=no
18749 runpath_var='LD_RUN_PATH'
18751 case $cc_basename in
18752 CC*)
18753 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18754 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18757 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18758 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18760 esac
18763 sysv5* | sco3.2v5* | sco5v6*)
18764 # Note: We can NOT use -z defs as we might desire, because we do not
18765 # link with -lc, and that would cause any symbols used from libc to
18766 # always be unresolved, which means just about no library would
18767 # ever link correctly. If we're not using GNU ld we use -z text
18768 # though, which does catch some bad symbols but isn't as heavy-handed
18769 # as -z defs.
18770 no_undefined_flag_CXX='${wl}-z,text'
18771 allow_undefined_flag_CXX='${wl}-z,nodefs'
18772 archive_cmds_need_lc_CXX=no
18773 hardcode_shlibpath_var_CXX=no
18774 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18775 hardcode_libdir_separator_CXX=':'
18776 link_all_deplibs_CXX=yes
18777 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18778 runpath_var='LD_RUN_PATH'
18780 case $cc_basename in
18781 CC*)
18782 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18783 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18784 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18785 '"$old_archive_cmds_CXX"
18786 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18787 '"$reload_cmds_CXX"
18790 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18793 esac
18796 tandem*)
18797 case $cc_basename in
18798 NCC*)
18799 # NonStop-UX NCC 3.20
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18804 # FIXME: insert proper C++ library support
18805 ld_shlibs_CXX=no
18807 esac
18810 vxworks*)
18811 # FIXME: insert proper C++ library support
18812 ld_shlibs_CXX=no
18816 # FIXME: insert proper C++ library support
18817 ld_shlibs_CXX=no
18819 esac
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18822 $as_echo "$ld_shlibs_CXX" >&6; }
18823 test "$ld_shlibs_CXX" = no && can_build_shared=no
18825 GCC_CXX="$GXX"
18826 LD_CXX="$LD"
18828 ## CAVEAT EMPTOR:
18829 ## There is no encapsulation within the following macros, do not change
18830 ## the running order or otherwise move them around unless you know exactly
18831 ## what you are doing...
18832 # Dependencies to place before and after the object being linked:
18833 predep_objects_CXX=
18834 postdep_objects_CXX=
18835 predeps_CXX=
18836 postdeps_CXX=
18837 compiler_lib_search_path_CXX=
18839 cat > conftest.$ac_ext <<_LT_EOF
18840 class Foo
18842 public:
18843 Foo (void) { a = 0; }
18844 private:
18845 int a;
18847 _LT_EOF
18849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18850 (eval $ac_compile) 2>&5
18851 ac_status=$?
18852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18853 test $ac_status = 0; }; then
18854 # Parse the compiler output and extract the necessary
18855 # objects, libraries and library flags.
18857 # Sentinel used to keep track of whether or not we are before
18858 # the conftest object file.
18859 pre_test_object_deps_done=no
18861 for p in `eval "$output_verbose_link_cmd"`; do
18862 case $p in
18864 -L* | -R* | -l*)
18865 # Some compilers place space between "-{L,R}" and the path.
18866 # Remove the space.
18867 if test $p = "-L" ||
18868 test $p = "-R"; then
18869 prev=$p
18870 continue
18871 else
18872 prev=
18875 if test "$pre_test_object_deps_done" = no; then
18876 case $p in
18877 -L* | -R*)
18878 # Internal compiler library paths should come after those
18879 # provided the user. The postdeps already come after the
18880 # user supplied libs so there is no need to process them.
18881 if test -z "$compiler_lib_search_path_CXX"; then
18882 compiler_lib_search_path_CXX="${prev}${p}"
18883 else
18884 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18887 # The "-l" case would never come before the object being
18888 # linked, so don't bother handling this case.
18889 esac
18890 else
18891 if test -z "$postdeps_CXX"; then
18892 postdeps_CXX="${prev}${p}"
18893 else
18894 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18899 *.$objext)
18900 # This assumes that the test object file only shows up
18901 # once in the compiler output.
18902 if test "$p" = "conftest.$objext"; then
18903 pre_test_object_deps_done=yes
18904 continue
18907 if test "$pre_test_object_deps_done" = no; then
18908 if test -z "$predep_objects_CXX"; then
18909 predep_objects_CXX="$p"
18910 else
18911 predep_objects_CXX="$predep_objects_CXX $p"
18913 else
18914 if test -z "$postdep_objects_CXX"; then
18915 postdep_objects_CXX="$p"
18916 else
18917 postdep_objects_CXX="$postdep_objects_CXX $p"
18922 *) ;; # Ignore the rest.
18924 esac
18925 done
18927 # Clean up.
18928 rm -f a.out a.exe
18929 else
18930 echo "libtool.m4: error: problem compiling CXX test program"
18933 $RM -f confest.$objext
18935 # PORTME: override above test on systems where it is broken
18936 case $host_os in
18937 interix[3-9]*)
18938 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18939 # hack all around it, let's just trust "g++" to DTRT.
18940 predep_objects_CXX=
18941 postdep_objects_CXX=
18942 postdeps_CXX=
18945 linux*)
18946 case `$CC -V 2>&1 | sed 5q` in
18947 *Sun\ C*)
18948 # Sun C++ 5.9
18950 # The more standards-conforming stlport4 library is
18951 # incompatible with the Cstd library. Avoid specifying
18952 # it if it's in CXXFLAGS. Ignore libCrun as
18953 # -library=stlport4 depends on it.
18954 case " $CXX $CXXFLAGS " in
18955 *" -library=stlport4 "*)
18956 solaris_use_stlport4=yes
18958 esac
18960 if test "$solaris_use_stlport4" != yes; then
18961 postdeps_CXX='-library=Cstd -library=Crun'
18964 esac
18967 solaris*)
18968 case $cc_basename in
18969 CC*)
18970 # The more standards-conforming stlport4 library is
18971 # incompatible with the Cstd library. Avoid specifying
18972 # it if it's in CXXFLAGS. Ignore libCrun as
18973 # -library=stlport4 depends on it.
18974 case " $CXX $CXXFLAGS " in
18975 *" -library=stlport4 "*)
18976 solaris_use_stlport4=yes
18978 esac
18980 # Adding this requires a known-good setup of shared libraries for
18981 # Sun compiler versions before 5.6, else PIC objects from an old
18982 # archive will be linked into the output, leading to subtle bugs.
18983 if test "$solaris_use_stlport4" != yes; then
18984 postdeps_CXX='-library=Cstd -library=Crun'
18987 esac
18989 esac
18992 case " $postdeps_CXX " in
18993 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18994 esac
18995 compiler_lib_search_dirs_CXX=
18996 if test -n "${compiler_lib_search_path_CXX}"; then
18997 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19030 lt_prog_compiler_wl_CXX=
19031 lt_prog_compiler_pic_CXX=
19032 lt_prog_compiler_static_CXX=
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19035 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19037 # C++ specific cases for pic, static, wl, etc.
19038 if test "$GXX" = yes; then
19039 lt_prog_compiler_wl_CXX='-Wl,'
19040 lt_prog_compiler_static_CXX='-static'
19042 case $host_os in
19043 aix*)
19044 # All AIX code is PIC.
19045 if test "$host_cpu" = ia64; then
19046 # AIX 5 now supports IA64 processor
19047 lt_prog_compiler_static_CXX='-Bstatic'
19051 amigaos*)
19052 case $host_cpu in
19053 powerpc)
19054 # see comment about AmigaOS4 .so support
19055 lt_prog_compiler_pic_CXX='-fPIC'
19057 m68k)
19058 # FIXME: we need at least 68020 code to build shared libraries, but
19059 # adding the `-m68020' flag to GCC prevents building anything better,
19060 # like `-m68040'.
19061 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19063 esac
19066 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19067 # PIC is the default for these OSes.
19069 mingw* | cygwin* | os2* | pw32* | cegcc*)
19070 # This hack is so that the source file can tell whether it is being
19071 # built for inclusion in a dll (and should export symbols for example).
19072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19073 # (--disable-auto-import) libraries
19074 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19076 darwin* | rhapsody*)
19077 # PIC is the default on this platform
19078 # Common symbols not allowed in MH_DYLIB files
19079 lt_prog_compiler_pic_CXX='-fno-common'
19081 *djgpp*)
19082 # DJGPP does not support shared libraries at all
19083 lt_prog_compiler_pic_CXX=
19085 haiku*)
19086 # PIC is the default for Haiku.
19087 # The "-static" flag exists, but is broken.
19088 lt_prog_compiler_static_CXX=
19090 interix[3-9]*)
19091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19092 # Instead, we relocate shared libraries at runtime.
19094 sysv4*MP*)
19095 if test -d /usr/nec; then
19096 lt_prog_compiler_pic_CXX=-Kconform_pic
19099 hpux*)
19100 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19101 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19102 # sets the default TLS model and affects inlining.
19103 case $host_cpu in
19104 hppa*64*)
19107 lt_prog_compiler_pic_CXX='-fPIC'
19109 esac
19111 *qnx* | *nto*)
19112 # QNX uses GNU C++, but need to define -shared option too, otherwise
19113 # it will coredump.
19114 lt_prog_compiler_pic_CXX='-fPIC -shared'
19117 lt_prog_compiler_pic_CXX='-fPIC'
19119 esac
19120 else
19121 case $host_os in
19122 aix[4-9]*)
19123 # All AIX code is PIC.
19124 if test "$host_cpu" = ia64; then
19125 # AIX 5 now supports IA64 processor
19126 lt_prog_compiler_static_CXX='-Bstatic'
19127 else
19128 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19131 chorus*)
19132 case $cc_basename in
19133 cxch68*)
19134 # Green Hills C++ Compiler
19135 # _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"
19137 esac
19139 dgux*)
19140 case $cc_basename in
19141 ec++*)
19142 lt_prog_compiler_pic_CXX='-KPIC'
19144 ghcx*)
19145 # Green Hills C++ Compiler
19146 lt_prog_compiler_pic_CXX='-pic'
19150 esac
19152 freebsd* | dragonfly*)
19153 # FreeBSD uses GNU C++
19155 hpux9* | hpux10* | hpux11*)
19156 case $cc_basename in
19157 CC*)
19158 lt_prog_compiler_wl_CXX='-Wl,'
19159 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19160 if test "$host_cpu" != ia64; then
19161 lt_prog_compiler_pic_CXX='+Z'
19164 aCC*)
19165 lt_prog_compiler_wl_CXX='-Wl,'
19166 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19167 case $host_cpu in
19168 hppa*64*|ia64*)
19169 # +Z the default
19172 lt_prog_compiler_pic_CXX='+Z'
19174 esac
19178 esac
19180 interix*)
19181 # This is c89, which is MS Visual C++ (no shared libs)
19182 # Anyone wants to do a port?
19184 irix5* | irix6* | nonstopux*)
19185 case $cc_basename in
19186 CC*)
19187 lt_prog_compiler_wl_CXX='-Wl,'
19188 lt_prog_compiler_static_CXX='-non_shared'
19189 # CC pic flag -KPIC is the default.
19193 esac
19195 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19196 case $cc_basename in
19197 KCC*)
19198 # KAI C++ Compiler
19199 lt_prog_compiler_wl_CXX='--backend -Wl,'
19200 lt_prog_compiler_pic_CXX='-fPIC'
19202 ecpc* )
19203 # old Intel C++ for x86_64 which still supported -KPIC.
19204 lt_prog_compiler_wl_CXX='-Wl,'
19205 lt_prog_compiler_pic_CXX='-KPIC'
19206 lt_prog_compiler_static_CXX='-static'
19208 icpc* )
19209 # Intel C++, used to be incompatible with GCC.
19210 # ICC 10 doesn't accept -KPIC any more.
19211 lt_prog_compiler_wl_CXX='-Wl,'
19212 lt_prog_compiler_pic_CXX='-fPIC'
19213 lt_prog_compiler_static_CXX='-static'
19215 pgCC* | pgcpp*)
19216 # Portland Group C++ compiler
19217 lt_prog_compiler_wl_CXX='-Wl,'
19218 lt_prog_compiler_pic_CXX='-fpic'
19219 lt_prog_compiler_static_CXX='-Bstatic'
19221 cxx*)
19222 # Compaq C++
19223 # Make sure the PIC flag is empty. It appears that all Alpha
19224 # Linux and Compaq Tru64 Unix objects are PIC.
19225 lt_prog_compiler_pic_CXX=
19226 lt_prog_compiler_static_CXX='-non_shared'
19228 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19229 # IBM XL 8.0, 9.0 on PPC and BlueGene
19230 lt_prog_compiler_wl_CXX='-Wl,'
19231 lt_prog_compiler_pic_CXX='-qpic'
19232 lt_prog_compiler_static_CXX='-qstaticlink'
19235 case `$CC -V 2>&1 | sed 5q` in
19236 *Sun\ C*)
19237 # Sun C++ 5.9
19238 lt_prog_compiler_pic_CXX='-KPIC'
19239 lt_prog_compiler_static_CXX='-Bstatic'
19240 lt_prog_compiler_wl_CXX='-Qoption ld '
19242 esac
19244 esac
19246 lynxos*)
19248 m88k*)
19250 mvs*)
19251 case $cc_basename in
19252 cxx*)
19253 lt_prog_compiler_pic_CXX='-W c,exportall'
19257 esac
19259 netbsd*)
19261 *qnx* | *nto*)
19262 # QNX uses GNU C++, but need to define -shared option too, otherwise
19263 # it will coredump.
19264 lt_prog_compiler_pic_CXX='-fPIC -shared'
19266 osf3* | osf4* | osf5*)
19267 case $cc_basename in
19268 KCC*)
19269 lt_prog_compiler_wl_CXX='--backend -Wl,'
19271 RCC*)
19272 # Rational C++ 2.4.1
19273 lt_prog_compiler_pic_CXX='-pic'
19275 cxx*)
19276 # Digital/Compaq C++
19277 lt_prog_compiler_wl_CXX='-Wl,'
19278 # Make sure the PIC flag is empty. It appears that all Alpha
19279 # Linux and Compaq Tru64 Unix objects are PIC.
19280 lt_prog_compiler_pic_CXX=
19281 lt_prog_compiler_static_CXX='-non_shared'
19285 esac
19287 psos*)
19289 solaris*)
19290 case $cc_basename in
19291 CC*)
19292 # Sun C++ 4.2, 5.x and Centerline C++
19293 lt_prog_compiler_pic_CXX='-KPIC'
19294 lt_prog_compiler_static_CXX='-Bstatic'
19295 lt_prog_compiler_wl_CXX='-Qoption ld '
19297 gcx*)
19298 # Green Hills C++ Compiler
19299 lt_prog_compiler_pic_CXX='-PIC'
19303 esac
19305 sunos4*)
19306 case $cc_basename in
19307 CC*)
19308 # Sun C++ 4.x
19309 lt_prog_compiler_pic_CXX='-pic'
19310 lt_prog_compiler_static_CXX='-Bstatic'
19312 lcc*)
19313 # Lucid
19314 lt_prog_compiler_pic_CXX='-pic'
19318 esac
19320 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19321 case $cc_basename in
19322 CC*)
19323 lt_prog_compiler_wl_CXX='-Wl,'
19324 lt_prog_compiler_pic_CXX='-KPIC'
19325 lt_prog_compiler_static_CXX='-Bstatic'
19327 esac
19329 tandem*)
19330 case $cc_basename in
19331 NCC*)
19332 # NonStop-UX NCC 3.20
19333 lt_prog_compiler_pic_CXX='-KPIC'
19337 esac
19339 vxworks*)
19342 lt_prog_compiler_can_build_shared_CXX=no
19344 esac
19347 case $host_os in
19348 # For platforms which do not support PIC, -DPIC is meaningless:
19349 *djgpp*)
19350 lt_prog_compiler_pic_CXX=
19353 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19355 esac
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19357 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19362 # Check to make sure the PIC flag actually works.
19364 if test -n "$lt_prog_compiler_pic_CXX"; then
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19366 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19367 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19368 $as_echo_n "(cached) " >&6
19369 else
19370 lt_cv_prog_compiler_pic_works_CXX=no
19371 ac_outfile=conftest.$ac_objext
19372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19373 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19374 # Insert the option either (1) after the last *FLAGS variable, or
19375 # (2) before a word containing "conftest.", or (3) at the end.
19376 # Note that $ac_compile itself does not contain backslashes and begins
19377 # with a dollar sign (not a hyphen), so the echo should work correctly.
19378 # The option is referenced via a variable to avoid confusing sed.
19379 lt_compile=`echo "$ac_compile" | $SED \
19380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19382 -e 's:$: $lt_compiler_flag:'`
19383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19384 (eval "$lt_compile" 2>conftest.err)
19385 ac_status=$?
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 if (exit $ac_status) && test -s "$ac_outfile"; then
19389 # The compiler can only warn and ignore the option if not recognized
19390 # So say no if there are warnings other than the usual output.
19391 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19393 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19394 lt_cv_prog_compiler_pic_works_CXX=yes
19397 $RM conftest*
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19401 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19403 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19404 case $lt_prog_compiler_pic_CXX in
19405 "" | " "*) ;;
19406 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19407 esac
19408 else
19409 lt_prog_compiler_pic_CXX=
19410 lt_prog_compiler_can_build_shared_CXX=no
19418 # Check to make sure the static flag actually works.
19420 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19422 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19423 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19424 $as_echo_n "(cached) " >&6
19425 else
19426 lt_cv_prog_compiler_static_works_CXX=no
19427 save_LDFLAGS="$LDFLAGS"
19428 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19429 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19431 # The linker can only warn and ignore the option if not recognized
19432 # So say no if there are warnings
19433 if test -s conftest.err; then
19434 # Append any errors to the config.log.
19435 cat conftest.err 1>&5
19436 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19438 if diff conftest.exp conftest.er2 >/dev/null; then
19439 lt_cv_prog_compiler_static_works_CXX=yes
19441 else
19442 lt_cv_prog_compiler_static_works_CXX=yes
19445 $RM -r conftest*
19446 LDFLAGS="$save_LDFLAGS"
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19450 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19452 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19454 else
19455 lt_prog_compiler_static_CXX=
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19463 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19464 $as_echo_n "(cached) " >&6
19465 else
19466 lt_cv_prog_compiler_c_o_CXX=no
19467 $RM -r conftest 2>/dev/null
19468 mkdir conftest
19469 cd conftest
19470 mkdir out
19471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19473 lt_compiler_flag="-o out/conftest2.$ac_objext"
19474 # Insert the option either (1) after the last *FLAGS variable, or
19475 # (2) before a word containing "conftest.", or (3) at the end.
19476 # Note that $ac_compile itself does not contain backslashes and begins
19477 # with a dollar sign (not a hyphen), so the echo should work correctly.
19478 lt_compile=`echo "$ac_compile" | $SED \
19479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19481 -e 's:$: $lt_compiler_flag:'`
19482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19483 (eval "$lt_compile" 2>out/conftest.err)
19484 ac_status=$?
19485 cat out/conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19488 then
19489 # The compiler can only warn and ignore the option if not recognized
19490 # So say no if there are warnings
19491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19494 lt_cv_prog_compiler_c_o_CXX=yes
19497 chmod u+w . 2>&5
19498 $RM conftest*
19499 # SGI C++ compiler will create directory out/ii_files/ for
19500 # template instantiation
19501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19502 $RM out/* && rmdir out
19503 cd ..
19504 $RM -r conftest
19505 $RM conftest*
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19509 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19515 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19516 $as_echo_n "(cached) " >&6
19517 else
19518 lt_cv_prog_compiler_c_o_CXX=no
19519 $RM -r conftest 2>/dev/null
19520 mkdir conftest
19521 cd conftest
19522 mkdir out
19523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19525 lt_compiler_flag="-o out/conftest2.$ac_objext"
19526 # Insert the option either (1) after the last *FLAGS variable, or
19527 # (2) before a word containing "conftest.", or (3) at the end.
19528 # Note that $ac_compile itself does not contain backslashes and begins
19529 # with a dollar sign (not a hyphen), so the echo should work correctly.
19530 lt_compile=`echo "$ac_compile" | $SED \
19531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19533 -e 's:$: $lt_compiler_flag:'`
19534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19535 (eval "$lt_compile" 2>out/conftest.err)
19536 ac_status=$?
19537 cat out/conftest.err >&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19540 then
19541 # The compiler can only warn and ignore the option if not recognized
19542 # So say no if there are warnings
19543 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19546 lt_cv_prog_compiler_c_o_CXX=yes
19549 chmod u+w . 2>&5
19550 $RM conftest*
19551 # SGI C++ compiler will create directory out/ii_files/ for
19552 # template instantiation
19553 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19554 $RM out/* && rmdir out
19555 cd ..
19556 $RM -r conftest
19557 $RM conftest*
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19561 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19566 hard_links="nottested"
19567 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19568 # do not overwrite the value of need_locks provided by the user
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19570 $as_echo_n "checking if we can lock with hard links... " >&6; }
19571 hard_links=yes
19572 $RM conftest*
19573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19574 touch conftest.a
19575 ln conftest.a conftest.b 2>&5 || hard_links=no
19576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19578 $as_echo "$hard_links" >&6; }
19579 if test "$hard_links" = no; then
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19581 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19582 need_locks=warn
19584 else
19585 need_locks=no
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19591 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19593 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19594 case $host_os in
19595 aix[4-9]*)
19596 # If we're using GNU nm, then we don't want the "-C" option.
19597 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19598 # Also, AIX nm treats weak defined symbols like other global defined
19599 # symbols, whereas GNU nm marks them as "W".
19600 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19601 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'
19602 else
19603 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'
19606 pw32*)
19607 export_symbols_cmds_CXX="$ltdll_cmds"
19609 cygwin* | mingw* | cegcc*)
19610 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'
19613 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19615 esac
19616 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19619 $as_echo "$ld_shlibs_CXX" >&6; }
19620 test "$ld_shlibs_CXX" = no && can_build_shared=no
19622 with_gnu_ld_CXX=$with_gnu_ld
19630 # Do we need to explicitly link libc?
19632 case "x$archive_cmds_need_lc_CXX" in
19633 x|xyes)
19634 # Assume -lc should be added
19635 archive_cmds_need_lc_CXX=yes
19637 if test "$enable_shared" = yes && test "$GCC" = yes; then
19638 case $archive_cmds_CXX in
19639 *'~'*)
19640 # FIXME: we may have to deal with multi-command sequences.
19642 '$CC '*)
19643 # Test whether the compiler implicitly links with -lc since on some
19644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19645 # to ld, don't add -lc before -lgcc.
19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19647 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19648 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19649 $as_echo_n "(cached) " >&6
19650 else
19651 $RM conftest*
19652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19655 (eval $ac_compile) 2>&5
19656 ac_status=$?
19657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19658 test $ac_status = 0; } 2>conftest.err; then
19659 soname=conftest
19660 lib=conftest
19661 libobjs=conftest.$ac_objext
19662 deplibs=
19663 wl=$lt_prog_compiler_wl_CXX
19664 pic_flag=$lt_prog_compiler_pic_CXX
19665 compiler_flags=-v
19666 linker_flags=-v
19667 verstring=
19668 output_objdir=.
19669 libname=conftest
19670 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19671 allow_undefined_flag_CXX=
19672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19673 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19674 ac_status=$?
19675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19676 test $ac_status = 0; }
19677 then
19678 lt_cv_archive_cmds_need_lc_CXX=no
19679 else
19680 lt_cv_archive_cmds_need_lc_CXX=yes
19682 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19683 else
19684 cat conftest.err 1>&5
19686 $RM conftest*
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19690 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19691 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19693 esac
19696 esac
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19764 library_names_spec=
19765 libname_spec='lib$name'
19766 soname_spec=
19767 shrext_cmds=".so"
19768 postinstall_cmds=
19769 postuninstall_cmds=
19770 finish_cmds=
19771 finish_eval=
19772 shlibpath_var=
19773 shlibpath_overrides_runpath=unknown
19774 version_type=none
19775 dynamic_linker="$host_os ld.so"
19776 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19777 need_lib_prefix=unknown
19778 hardcode_into_libs=no
19780 # when you set need_version to no, make sure it does not cause -set_version
19781 # flags to be left without arguments
19782 need_version=unknown
19784 case $host_os in
19785 aix3*)
19786 version_type=linux
19787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19788 shlibpath_var=LIBPATH
19790 # AIX 3 has no versioning support, so we append a major version to the name.
19791 soname_spec='${libname}${release}${shared_ext}$major'
19794 aix[4-9]*)
19795 version_type=linux
19796 need_lib_prefix=no
19797 need_version=no
19798 hardcode_into_libs=yes
19799 if test "$host_cpu" = ia64; then
19800 # AIX 5 supports IA64
19801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19802 shlibpath_var=LD_LIBRARY_PATH
19803 else
19804 # With GCC up to 2.95.x, collect2 would create an import file
19805 # for dependence libraries. The import file would start with
19806 # the line `#! .'. This would cause the generated library to
19807 # depend on `.', always an invalid library. This was fixed in
19808 # development snapshots of GCC prior to 3.0.
19809 case $host_os in
19810 aix4 | aix4.[01] | aix4.[01].*)
19811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19812 echo ' yes '
19813 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19815 else
19816 can_build_shared=no
19819 esac
19820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19821 # soname into executable. Probably we can add versioning support to
19822 # collect2, so additional links can be useful in future.
19823 if test "$aix_use_runtimelinking" = yes; then
19824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19825 # instead of lib<name>.a to let people know that these are not
19826 # typical AIX shared libraries.
19827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19828 else
19829 # We preserve .a as extension for shared libraries through AIX4.2
19830 # and later when we are not doing run time linking.
19831 library_names_spec='${libname}${release}.a $libname.a'
19832 soname_spec='${libname}${release}${shared_ext}$major'
19834 shlibpath_var=LIBPATH
19838 amigaos*)
19839 case $host_cpu in
19840 powerpc)
19841 # Since July 2007 AmigaOS4 officially supports .so libraries.
19842 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19845 m68k)
19846 library_names_spec='$libname.ixlibrary $libname.a'
19847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19848 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'
19850 esac
19853 beos*)
19854 library_names_spec='${libname}${shared_ext}'
19855 dynamic_linker="$host_os ld.so"
19856 shlibpath_var=LIBRARY_PATH
19859 bsdi[45]*)
19860 version_type=linux
19861 need_version=no
19862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19863 soname_spec='${libname}${release}${shared_ext}$major'
19864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19865 shlibpath_var=LD_LIBRARY_PATH
19866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19868 # the default ld.so.conf also contains /usr/contrib/lib and
19869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19870 # libtool to hard-code these into programs
19873 cygwin* | mingw* | pw32* | cegcc*)
19874 version_type=windows
19875 shrext_cmds=".dll"
19876 need_version=no
19877 need_lib_prefix=no
19879 case $GCC,$host_os in
19880 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19881 library_names_spec='$libname.dll.a'
19882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19883 postinstall_cmds='base_file=`basename \${file}`~
19884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19885 dldir=$destdir/`dirname \$dlpath`~
19886 test -d \$dldir || mkdir -p \$dldir~
19887 $install_prog $dir/$dlname \$dldir/$dlname~
19888 chmod a+x \$dldir/$dlname~
19889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19892 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19893 dlpath=$dir/\$dldll~
19894 $RM \$dlpath'
19895 shlibpath_overrides_runpath=yes
19897 case $host_os in
19898 cygwin*)
19899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19900 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19903 mingw* | cegcc*)
19904 # MinGW DLLs use traditional 'lib' prefix
19905 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19907 pw32*)
19908 # pw32 DLLs use 'pw' prefix rather than 'lib'
19909 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19911 esac
19915 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19917 esac
19918 dynamic_linker='Win32 ld.exe'
19919 # FIXME: first we should search . and the directory the executable is in
19920 shlibpath_var=PATH
19923 darwin* | rhapsody*)
19924 dynamic_linker="$host_os dyld"
19925 version_type=darwin
19926 need_lib_prefix=no
19927 need_version=no
19928 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19929 soname_spec='${libname}${release}${major}$shared_ext'
19930 shlibpath_overrides_runpath=yes
19931 shlibpath_var=DYLD_LIBRARY_PATH
19932 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19937 dgux*)
19938 version_type=linux
19939 need_lib_prefix=no
19940 need_version=no
19941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19942 soname_spec='${libname}${release}${shared_ext}$major'
19943 shlibpath_var=LD_LIBRARY_PATH
19946 freebsd1*)
19947 dynamic_linker=no
19950 freebsd* | dragonfly*)
19951 # DragonFly does not have aout. When/if they implement a new
19952 # versioning mechanism, adjust this.
19953 if test -x /usr/bin/objformat; then
19954 objformat=`/usr/bin/objformat`
19955 else
19956 case $host_os in
19957 freebsd[123]*) objformat=aout ;;
19958 *) objformat=elf ;;
19959 esac
19961 version_type=freebsd-$objformat
19962 case $version_type in
19963 freebsd-elf*)
19964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19965 need_version=no
19966 need_lib_prefix=no
19968 freebsd-*)
19969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19970 need_version=yes
19972 esac
19973 shlibpath_var=LD_LIBRARY_PATH
19974 case $host_os in
19975 freebsd2*)
19976 shlibpath_overrides_runpath=yes
19978 freebsd3.[01]* | freebsdelf3.[01]*)
19979 shlibpath_overrides_runpath=yes
19980 hardcode_into_libs=yes
19982 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19983 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19984 shlibpath_overrides_runpath=no
19985 hardcode_into_libs=yes
19987 *) # from 4.6 on, and DragonFly
19988 shlibpath_overrides_runpath=yes
19989 hardcode_into_libs=yes
19991 esac
19994 gnu*)
19995 version_type=linux
19996 need_lib_prefix=no
19997 need_version=no
19998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19999 soname_spec='${libname}${release}${shared_ext}$major'
20000 shlibpath_var=LD_LIBRARY_PATH
20001 hardcode_into_libs=yes
20004 haiku*)
20005 version_type=linux
20006 need_lib_prefix=no
20007 need_version=no
20008 dynamic_linker="$host_os runtime_loader"
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20010 soname_spec='${libname}${release}${shared_ext}$major'
20011 shlibpath_var=LIBRARY_PATH
20012 shlibpath_overrides_runpath=yes
20013 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20014 hardcode_into_libs=yes
20017 hpux9* | hpux10* | hpux11*)
20018 # Give a soname corresponding to the major version so that dld.sl refuses to
20019 # link against other versions.
20020 version_type=sunos
20021 need_lib_prefix=no
20022 need_version=no
20023 case $host_cpu in
20024 ia64*)
20025 shrext_cmds='.so'
20026 hardcode_into_libs=yes
20027 dynamic_linker="$host_os dld.so"
20028 shlibpath_var=LD_LIBRARY_PATH
20029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20031 soname_spec='${libname}${release}${shared_ext}$major'
20032 if test "X$HPUX_IA64_MODE" = X32; then
20033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20034 else
20035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20039 hppa*64*)
20040 shrext_cmds='.sl'
20041 hardcode_into_libs=yes
20042 dynamic_linker="$host_os dld.sl"
20043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20051 shrext_cmds='.sl'
20052 dynamic_linker="$host_os dld.sl"
20053 shlibpath_var=SHLIB_PATH
20054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20056 soname_spec='${libname}${release}${shared_ext}$major'
20058 esac
20059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20060 postinstall_cmds='chmod 555 $lib'
20061 # or fails outright, so override atomically:
20062 install_override_mode=555
20065 interix[3-9]*)
20066 version_type=linux
20067 need_lib_prefix=no
20068 need_version=no
20069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20070 soname_spec='${libname}${release}${shared_ext}$major'
20071 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20072 shlibpath_var=LD_LIBRARY_PATH
20073 shlibpath_overrides_runpath=no
20074 hardcode_into_libs=yes
20077 irix5* | irix6* | nonstopux*)
20078 case $host_os in
20079 nonstopux*) version_type=nonstopux ;;
20081 if test "$lt_cv_prog_gnu_ld" = yes; then
20082 version_type=linux
20083 else
20084 version_type=irix
20085 fi ;;
20086 esac
20087 need_lib_prefix=no
20088 need_version=no
20089 soname_spec='${libname}${release}${shared_ext}$major'
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20091 case $host_os in
20092 irix5* | nonstopux*)
20093 libsuff= shlibsuff=
20096 case $LD in # libtool.m4 will add one of these switches to LD
20097 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20098 libsuff= shlibsuff= libmagic=32-bit;;
20099 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20100 libsuff=32 shlibsuff=N32 libmagic=N32;;
20101 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20102 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20103 *) libsuff= shlibsuff= libmagic=never-match;;
20104 esac
20106 esac
20107 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20108 shlibpath_overrides_runpath=no
20109 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20110 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20111 hardcode_into_libs=yes
20114 # No shared lib support for Linux oldld, aout, or coff.
20115 linux*oldld* | linux*aout* | linux*coff*)
20116 dynamic_linker=no
20119 # This must be Linux ELF.
20120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20121 version_type=linux
20122 need_lib_prefix=no
20123 need_version=no
20124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20125 soname_spec='${libname}${release}${shared_ext}$major'
20126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20127 shlibpath_var=LD_LIBRARY_PATH
20128 shlibpath_overrides_runpath=no
20130 # Some binutils ld are patched to set DT_RUNPATH
20131 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20132 $as_echo_n "(cached) " >&6
20133 else
20134 lt_cv_shlibpath_overrides_runpath=no
20135 save_LDFLAGS=$LDFLAGS
20136 save_libdir=$libdir
20137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20140 /* end confdefs.h. */
20143 main ()
20147 return 0;
20149 _ACEOF
20150 if ac_fn_cxx_try_link "$LINENO"; then :
20151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20152 lt_cv_shlibpath_overrides_runpath=yes
20155 rm -f core conftest.err conftest.$ac_objext \
20156 conftest$ac_exeext conftest.$ac_ext
20157 LDFLAGS=$save_LDFLAGS
20158 libdir=$save_libdir
20162 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20164 # This implies no fast_install, which is unacceptable.
20165 # Some rework will be needed to allow for fast_install
20166 # before this can be enabled.
20167 hardcode_into_libs=yes
20169 # Append ld.so.conf contents to the search path
20170 if test -f /etc/ld.so.conf; then
20171 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' ' '`
20172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20175 # We used to test for /lib/ld.so.1 and disable shared libraries on
20176 # powerpc, because MkLinux only supported shared libraries with the
20177 # GNU dynamic linker. Since this was broken with cross compilers,
20178 # most powerpc-linux boxes support dynamic linking these days and
20179 # people can always --disable-shared, the test was removed, and we
20180 # assume the GNU/Linux dynamic linker is in use.
20181 dynamic_linker='GNU/Linux ld.so'
20184 netbsd*)
20185 version_type=sunos
20186 need_lib_prefix=no
20187 need_version=no
20188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20191 dynamic_linker='NetBSD (a.out) ld.so'
20192 else
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20194 soname_spec='${libname}${release}${shared_ext}$major'
20195 dynamic_linker='NetBSD ld.elf_so'
20197 shlibpath_var=LD_LIBRARY_PATH
20198 shlibpath_overrides_runpath=yes
20199 hardcode_into_libs=yes
20202 newsos6)
20203 version_type=linux
20204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 shlibpath_overrides_runpath=yes
20209 *nto* | *qnx*)
20210 version_type=qnx
20211 need_lib_prefix=no
20212 need_version=no
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20214 soname_spec='${libname}${release}${shared_ext}$major'
20215 shlibpath_var=LD_LIBRARY_PATH
20216 shlibpath_overrides_runpath=no
20217 hardcode_into_libs=yes
20218 dynamic_linker='ldqnx.so'
20221 openbsd*)
20222 version_type=sunos
20223 sys_lib_dlsearch_path_spec="/usr/lib"
20224 need_lib_prefix=no
20225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20226 case $host_os in
20227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20228 *) need_version=no ;;
20229 esac
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20232 shlibpath_var=LD_LIBRARY_PATH
20233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20234 case $host_os in
20235 openbsd2.[89] | openbsd2.[89].*)
20236 shlibpath_overrides_runpath=no
20239 shlibpath_overrides_runpath=yes
20241 esac
20242 else
20243 shlibpath_overrides_runpath=yes
20247 os2*)
20248 libname_spec='$name'
20249 shrext_cmds=".dll"
20250 need_lib_prefix=no
20251 library_names_spec='$libname${shared_ext} $libname.a'
20252 dynamic_linker='OS/2 ld.exe'
20253 shlibpath_var=LIBPATH
20256 osf3* | osf4* | osf5*)
20257 version_type=osf
20258 need_lib_prefix=no
20259 need_version=no
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20262 shlibpath_var=LD_LIBRARY_PATH
20263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20267 rdos*)
20268 dynamic_linker=no
20271 solaris*)
20272 version_type=linux
20273 need_lib_prefix=no
20274 need_version=no
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276 soname_spec='${libname}${release}${shared_ext}$major'
20277 shlibpath_var=LD_LIBRARY_PATH
20278 shlibpath_overrides_runpath=yes
20279 hardcode_into_libs=yes
20280 # ldd complains unless libraries are executable
20281 postinstall_cmds='chmod +x $lib'
20284 sunos4*)
20285 version_type=sunos
20286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 shlibpath_overrides_runpath=yes
20290 if test "$with_gnu_ld" = yes; then
20291 need_lib_prefix=no
20293 need_version=yes
20296 sysv4 | sysv4.3*)
20297 version_type=linux
20298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20299 soname_spec='${libname}${release}${shared_ext}$major'
20300 shlibpath_var=LD_LIBRARY_PATH
20301 case $host_vendor in
20302 sni)
20303 shlibpath_overrides_runpath=no
20304 need_lib_prefix=no
20305 runpath_var=LD_RUN_PATH
20307 siemens)
20308 need_lib_prefix=no
20310 motorola)
20311 need_lib_prefix=no
20312 need_version=no
20313 shlibpath_overrides_runpath=no
20314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20316 esac
20319 sysv4*MP*)
20320 if test -d /usr/nec ;then
20321 version_type=linux
20322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20323 soname_spec='$libname${shared_ext}.$major'
20324 shlibpath_var=LD_LIBRARY_PATH
20328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20329 version_type=freebsd-elf
20330 need_lib_prefix=no
20331 need_version=no
20332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20333 soname_spec='${libname}${release}${shared_ext}$major'
20334 shlibpath_var=LD_LIBRARY_PATH
20335 shlibpath_overrides_runpath=yes
20336 hardcode_into_libs=yes
20337 if test "$with_gnu_ld" = yes; then
20338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20339 else
20340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20341 case $host_os in
20342 sco3.2v5*)
20343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20345 esac
20347 sys_lib_dlsearch_path_spec='/usr/lib'
20350 tpf*)
20351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20352 version_type=linux
20353 need_lib_prefix=no
20354 need_version=no
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 shlibpath_var=LD_LIBRARY_PATH
20357 shlibpath_overrides_runpath=no
20358 hardcode_into_libs=yes
20361 uts4*)
20362 version_type=linux
20363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20364 soname_spec='${libname}${release}${shared_ext}$major'
20365 shlibpath_var=LD_LIBRARY_PATH
20369 dynamic_linker=no
20371 esac
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20373 $as_echo "$dynamic_linker" >&6; }
20374 test "$dynamic_linker" = no && can_build_shared=no
20376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20377 if test "$GCC" = yes; then
20378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20381 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20382 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20384 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20385 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20426 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20427 hardcode_action_CXX=
20428 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20429 test -n "$runpath_var_CXX" ||
20430 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20432 # We can hardcode non-existent directories.
20433 if test "$hardcode_direct_CXX" != no &&
20434 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20435 # have to relink, otherwise we might link with an installed library
20436 # when we should be linking with a yet-to-be-installed one
20437 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20438 test "$hardcode_minus_L_CXX" != no; then
20439 # Linking always hardcodes the temporary library directory.
20440 hardcode_action_CXX=relink
20441 else
20442 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20443 hardcode_action_CXX=immediate
20445 else
20446 # We cannot hardcode anything, or else we can only hardcode existing
20447 # directories.
20448 hardcode_action_CXX=unsupported
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20451 $as_echo "$hardcode_action_CXX" >&6; }
20453 if test "$hardcode_action_CXX" = relink ||
20454 test "$inherit_rpath_CXX" = yes; then
20455 # Fast installation is not supported
20456 enable_fast_install=no
20457 elif test "$shlibpath_overrides_runpath" = yes ||
20458 test "$enable_shared" = no; then
20459 # Fast installation is not necessary
20460 enable_fast_install=needless
20469 fi # test -n "$compiler"
20471 CC=$lt_save_CC
20472 LDCXX=$LD
20473 LD=$lt_save_LD
20474 GCC=$lt_save_GCC
20475 with_gnu_ld=$lt_save_with_gnu_ld
20476 lt_cv_path_LDCXX=$lt_cv_path_LD
20477 lt_cv_path_LD=$lt_save_path_LD
20478 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20479 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20480 fi # test "$_lt_caught_CXX_error" != yes
20482 ac_ext=c
20483 ac_cpp='$CPP $CPPFLAGS'
20484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20503 # Only expand once:
20509 # Identify the assembler which will work hand-in-glove with the newly
20510 # built GCC, so that we can examine its features. This is the assembler
20511 # which will be driven by the driver program.
20513 # If build != host, and we aren't building gas in-tree, we identify a
20514 # build->target assembler and hope that it will have the same features
20515 # as the host->target assembler we'll be using.
20516 gcc_cv_gas_major_version=
20517 gcc_cv_gas_minor_version=
20518 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20520 if test "${gcc_cv_as+set}" = set; then :
20522 else
20524 if test -x "$DEFAULT_ASSEMBLER"; then
20525 gcc_cv_as="$DEFAULT_ASSEMBLER"
20526 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20527 && test -f ../gas/Makefile \
20528 && test x$build = x$host; then
20529 gcc_cv_as=../gas/as-new$build_exeext
20530 elif test -x as$build_exeext; then
20531 # Build using assembler in the current directory.
20532 gcc_cv_as=./as$build_exeext
20533 elif test -x $AS_FOR_TARGET; then
20534 gcc_cv_as="$AS_FOR_TARGET"
20535 else
20536 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20537 set dummy $AS_FOR_TARGET; ac_word=$2
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20539 $as_echo_n "checking for $ac_word... " >&6; }
20540 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20541 $as_echo_n "(cached) " >&6
20542 else
20543 case $gcc_cv_as in
20544 [\\/]* | ?:[\\/]*)
20545 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20549 for as_dir in $PATH
20551 IFS=$as_save_IFS
20552 test -z "$as_dir" && as_dir=.
20553 for ac_exec_ext in '' $ac_executable_extensions; do
20554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20555 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20557 break 2
20559 done
20560 done
20561 IFS=$as_save_IFS
20564 esac
20566 gcc_cv_as=$ac_cv_path_gcc_cv_as
20567 if test -n "$gcc_cv_as"; then
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20569 $as_echo "$gcc_cv_as" >&6; }
20570 else
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20572 $as_echo "no" >&6; }
20579 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20581 case "$ORIGINAL_AS_FOR_TARGET" in
20582 ./as | ./as$build_exeext) ;;
20583 *) ac_config_files="$ac_config_files as:exec-tool.in"
20585 esac
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20588 $as_echo_n "checking what assembler to use... " >&6; }
20589 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20590 # Single tree build which includes gas. We want to prefer it
20591 # over whatever linker top-level may have detected, since
20592 # we'll use what we're building after installation anyway.
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20594 $as_echo "newly built gas" >&6; }
20595 in_tree_gas=yes
20596 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20597 for f in $gcc_cv_as_bfd_srcdir/configure \
20598 $gcc_cv_as_gas_srcdir/configure \
20599 $gcc_cv_as_gas_srcdir/configure.in \
20600 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20601 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20602 if test x$gcc_cv_gas_version != x; then
20603 break
20605 done
20606 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20607 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20608 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20609 case $gcc_cv_gas_patch_version in
20610 "") gcc_cv_gas_patch_version="0" ;;
20611 esac
20612 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20613 + $gcc_cv_gas_minor_version \) \* 1000 \
20614 + $gcc_cv_gas_patch_version`
20616 in_tree_gas_is_elf=no
20617 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20618 || (grep 'obj_format = multi' ../gas/Makefile \
20619 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20620 then
20621 in_tree_gas_is_elf=yes
20623 else
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20625 $as_echo "$gcc_cv_as" >&6; }
20626 in_tree_gas=no
20629 # Identify the linker which will work hand-in-glove with the newly
20630 # built GCC, so that we can examine its features. This is the linker
20631 # which will be driven by the driver program.
20633 # If build != host, and we aren't building gas in-tree, we identify a
20634 # build->target linker and hope that it will have the same features
20635 # as the host->target linker we'll be using.
20636 gcc_cv_gld_major_version=
20637 gcc_cv_gld_minor_version=
20638 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20639 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20641 if test "${gcc_cv_ld+set}" = set; then :
20643 else
20645 if test -x "$DEFAULT_LINKER"; then
20646 gcc_cv_ld="$DEFAULT_LINKER"
20647 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20648 && test -f ../ld/Makefile \
20649 && test x$build = x$host; then
20650 gcc_cv_ld=../ld/ld-new$build_exeext
20651 elif test -x collect-ld$build_exeext; then
20652 # Build using linker in the current directory.
20653 gcc_cv_ld=./collect-ld$build_exeext
20654 elif test -x $LD_FOR_TARGET; then
20655 gcc_cv_ld="$LD_FOR_TARGET"
20656 else
20657 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20658 set dummy $LD_FOR_TARGET; ac_word=$2
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20660 $as_echo_n "checking for $ac_word... " >&6; }
20661 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20662 $as_echo_n "(cached) " >&6
20663 else
20664 case $gcc_cv_ld in
20665 [\\/]* | ?:[\\/]*)
20666 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20670 for as_dir in $PATH
20672 IFS=$as_save_IFS
20673 test -z "$as_dir" && as_dir=.
20674 for ac_exec_ext in '' $ac_executable_extensions; do
20675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20676 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20678 break 2
20680 done
20681 done
20682 IFS=$as_save_IFS
20685 esac
20687 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20688 if test -n "$gcc_cv_ld"; then
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20690 $as_echo "$gcc_cv_ld" >&6; }
20691 else
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20693 $as_echo "no" >&6; }
20700 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20701 PLUGIN_LD=`basename $gcc_cv_ld`
20703 # Check whether --with-plugin-ld was given.
20704 if test "${with_plugin_ld+set}" = set; then :
20705 withval=$with_plugin_ld; if test x"$withval" != x; then
20706 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20707 PLUGIN_LD="$withval"
20713 cat >>confdefs.h <<_ACEOF
20714 #define PLUGIN_LD "$PLUGIN_LD"
20715 _ACEOF
20718 # Check to see if we are using gold instead of ld
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20720 $as_echo_n "checking whether we are using gold... " >&6; }
20721 ld_is_gold=no
20722 if test x$gcc_cv_ld != x; then
20723 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20724 | grep "GNU gold" > /dev/null; then
20725 ld_is_gold=yes
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20729 $as_echo "$ld_is_gold" >&6; }
20731 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20733 case "$ORIGINAL_LD_FOR_TARGET" in
20734 ./collect-ld | ./collect-ld$build_exeext) ;;
20735 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20737 esac
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20740 $as_echo_n "checking what linker to use... " >&6; }
20741 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20742 # Single tree build which includes ld. We want to prefer it
20743 # over whatever linker top-level may have detected, since
20744 # we'll use what we're building after installation anyway.
20745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20746 $as_echo "newly built ld" >&6; }
20747 in_tree_ld=yes
20748 in_tree_ld_is_elf=no
20749 if (grep 'EMUL = .*elf' ../ld/Makefile \
20750 || grep 'EMUL = .*linux' ../ld/Makefile \
20751 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20752 in_tree_ld_is_elf=yes
20754 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
20756 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20757 if test x$gcc_cv_gld_version != x; then
20758 break
20760 done
20761 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20762 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20763 else
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20765 $as_echo "$gcc_cv_ld" >&6; }
20766 in_tree_ld=no
20769 # Figure out what nm we will be using.
20770 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20771 if test "${gcc_cv_nm+set}" = set; then :
20773 else
20775 if test -f $gcc_cv_binutils_srcdir/configure.in \
20776 && test -f ../binutils/Makefile \
20777 && test x$build = x$host; then
20778 gcc_cv_nm=../binutils/nm-new$build_exeext
20779 elif test -x nm$build_exeext; then
20780 gcc_cv_nm=./nm$build_exeext
20781 elif test -x $NM_FOR_TARGET; then
20782 gcc_cv_nm="$NM_FOR_TARGET"
20783 else
20784 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20785 set dummy $NM_FOR_TARGET; ac_word=$2
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20787 $as_echo_n "checking for $ac_word... " >&6; }
20788 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20789 $as_echo_n "(cached) " >&6
20790 else
20791 case $gcc_cv_nm in
20792 [\\/]* | ?:[\\/]*)
20793 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20797 for as_dir in $PATH
20799 IFS=$as_save_IFS
20800 test -z "$as_dir" && as_dir=.
20801 for ac_exec_ext in '' $ac_executable_extensions; do
20802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20803 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20805 break 2
20807 done
20808 done
20809 IFS=$as_save_IFS
20812 esac
20814 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20815 if test -n "$gcc_cv_nm"; then
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20817 $as_echo "$gcc_cv_nm" >&6; }
20818 else
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20820 $as_echo "no" >&6; }
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20828 $as_echo_n "checking what nm to use... " >&6; }
20829 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20830 # Single tree build which includes binutils.
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20832 $as_echo "newly built nm" >&6; }
20833 in_tree_nm=yes
20834 else
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20836 $as_echo "$gcc_cv_nm" >&6; }
20837 in_tree_nm=no
20840 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20842 case "$ORIGINAL_NM_FOR_TARGET" in
20843 ./nm | ./nm$build_exeext) ;;
20844 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20846 esac
20849 # Figure out what objdump we will be using.
20850 if test "${gcc_cv_objdump+set}" = set; then :
20852 else
20854 if test -f $gcc_cv_binutils_srcdir/configure.in \
20855 && test -f ../binutils/Makefile \
20856 && test x$build = x$host; then
20857 # Single tree build which includes binutils.
20858 gcc_cv_objdump=../binutils/objdump$build_exeext
20859 elif test -x objdump$build_exeext; then
20860 gcc_cv_objdump=./objdump$build_exeext
20861 elif test -x $OBJDUMP_FOR_TARGET; then
20862 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20863 else
20864 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20865 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20867 $as_echo_n "checking for $ac_word... " >&6; }
20868 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20869 $as_echo_n "(cached) " >&6
20870 else
20871 case $gcc_cv_objdump in
20872 [\\/]* | ?:[\\/]*)
20873 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20877 for as_dir in $PATH
20879 IFS=$as_save_IFS
20880 test -z "$as_dir" && as_dir=.
20881 for ac_exec_ext in '' $ac_executable_extensions; do
20882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20883 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20885 break 2
20887 done
20888 done
20889 IFS=$as_save_IFS
20892 esac
20894 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20895 if test -n "$gcc_cv_objdump"; then
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20897 $as_echo "$gcc_cv_objdump" >&6; }
20898 else
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20900 $as_echo "no" >&6; }
20907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20908 $as_echo_n "checking what objdump to use... " >&6; }
20909 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20910 # Single tree build which includes binutils.
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20912 $as_echo "newly built objdump" >&6; }
20913 elif test x$gcc_cv_objdump = x; then
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20915 $as_echo "not found" >&6; }
20916 else
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20918 $as_echo "$gcc_cv_objdump" >&6; }
20921 # Figure out what readelf we will be using.
20922 if test "${gcc_cv_readelf+set}" = set; then :
20924 else
20926 if test -f $gcc_cv_binutils_srcdir/configure.in \
20927 && test -f ../binutils/Makefile \
20928 && test x$build = x$host; then
20929 # Single tree build which includes binutils.
20930 gcc_cv_readelf=../binutils/readelf$build_exeext
20931 elif test -x readelf$build_exeext; then
20932 gcc_cv_readelf=./readelf$build_exeext
20933 else
20934 # Extract the first word of "readelf", so it can be a program name with args.
20935 set dummy readelf; ac_word=$2
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20937 $as_echo_n "checking for $ac_word... " >&6; }
20938 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20939 $as_echo_n "(cached) " >&6
20940 else
20941 case $gcc_cv_readelf in
20942 [\\/]* | ?:[\\/]*)
20943 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20947 for as_dir in $PATH
20949 IFS=$as_save_IFS
20950 test -z "$as_dir" && as_dir=.
20951 for ac_exec_ext in '' $ac_executable_extensions; do
20952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20953 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20955 break 2
20957 done
20958 done
20959 IFS=$as_save_IFS
20962 esac
20964 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20965 if test -n "$gcc_cv_readelf"; then
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20967 $as_echo "$gcc_cv_readelf" >&6; }
20968 else
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20978 $as_echo_n "checking what readelf to use... " >&6; }
20979 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20980 # Single tree build which includes binutils.
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20982 $as_echo "newly built readelf" >&6; }
20983 elif test x$gcc_cv_readelf = x; then
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20985 $as_echo "not found" >&6; }
20986 else
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20988 $as_echo "$gcc_cv_readelf" >&6; }
20991 # Figure out what assembler alignment features are present.
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20993 $as_echo_n "checking assembler flags... " >&6; }
20994 if test "${gcc_cv_as_flags+set}" = set; then :
20995 $as_echo_n "(cached) " >&6
20996 else
20997 case "$target" in
20998 i[34567]86-*-linux*)
20999 gcc_cv_as_flags="--32"
21002 gcc_cv_as_flags=" "
21004 esac
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21007 $as_echo "$gcc_cv_as_flags" >&6; }
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21010 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21011 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
21013 else
21014 gcc_cv_as_balign_and_p2align=no
21015 if test $in_tree_gas = yes; then
21016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21017 then gcc_cv_as_balign_and_p2align=yes
21019 elif test x$gcc_cv_as != x; then
21020 echo '.balign 4
21021 .p2align 2' > conftest.s
21022 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21024 (eval $ac_try) 2>&5
21025 ac_status=$?
21026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21027 test $ac_status = 0; }; }
21028 then
21029 gcc_cv_as_balign_and_p2align=yes
21030 else
21031 echo "configure: failed program was" >&5
21032 cat conftest.s >&5
21034 rm -f conftest.o conftest.s
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21038 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21039 if test $gcc_cv_as_balign_and_p2align = yes; then
21041 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21046 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21047 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21048 $as_echo_n "(cached) " >&6
21049 else
21050 gcc_cv_as_max_skip_p2align=no
21051 if test $in_tree_gas = yes; then
21052 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21053 then gcc_cv_as_max_skip_p2align=yes
21055 elif test x$gcc_cv_as != x; then
21056 echo '.p2align 4,,7' > conftest.s
21057 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21059 (eval $ac_try) 2>&5
21060 ac_status=$?
21061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21062 test $ac_status = 0; }; }
21063 then
21064 gcc_cv_as_max_skip_p2align=yes
21065 else
21066 echo "configure: failed program was" >&5
21067 cat conftest.s >&5
21069 rm -f conftest.o conftest.s
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21073 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21074 if test $gcc_cv_as_max_skip_p2align = yes; then
21076 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21081 $as_echo_n "checking assembler for .literal16... " >&6; }
21082 if test "${gcc_cv_as_literal16+set}" = set; then :
21083 $as_echo_n "(cached) " >&6
21084 else
21085 gcc_cv_as_literal16=no
21086 if test $in_tree_gas = yes; then
21087 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21088 then gcc_cv_as_literal16=yes
21090 elif test x$gcc_cv_as != x; then
21091 echo '.literal16' > conftest.s
21092 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21094 (eval $ac_try) 2>&5
21095 ac_status=$?
21096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21097 test $ac_status = 0; }; }
21098 then
21099 gcc_cv_as_literal16=yes
21100 else
21101 echo "configure: failed program was" >&5
21102 cat conftest.s >&5
21104 rm -f conftest.o conftest.s
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21108 $as_echo "$gcc_cv_as_literal16" >&6; }
21109 if test $gcc_cv_as_literal16 = yes; then
21111 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21116 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21117 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21118 $as_echo_n "(cached) " >&6
21119 else
21120 gcc_cv_as_subsection_m1=no
21121 if test $in_tree_gas = yes; then
21122 if test $in_tree_gas_is_elf = yes \
21123 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21124 then gcc_cv_as_subsection_m1=yes
21126 elif test x$gcc_cv_as != x; then
21127 echo 'conftest_label1: .word 0
21128 .subsection -1
21129 conftest_label2: .word 0
21130 .previous' > conftest.s
21131 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21133 (eval $ac_try) 2>&5
21134 ac_status=$?
21135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21136 test $ac_status = 0; }; }
21137 then
21138 if test x$gcc_cv_nm != x; then
21139 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21140 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21141 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21142 then :
21143 else gcc_cv_as_subsection_m1=yes
21145 rm -f conftest.nm1 conftest.nm2
21147 else
21148 echo "configure: failed program was" >&5
21149 cat conftest.s >&5
21151 rm -f conftest.o conftest.s
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21155 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21156 if test $gcc_cv_as_subsection_m1 = yes; then
21158 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21163 $as_echo_n "checking assembler for .weak... " >&6; }
21164 if test "${gcc_cv_as_weak+set}" = set; then :
21165 $as_echo_n "(cached) " >&6
21166 else
21167 gcc_cv_as_weak=no
21168 if test $in_tree_gas = yes; then
21169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21170 then gcc_cv_as_weak=yes
21172 elif test x$gcc_cv_as != x; then
21173 echo ' .weak foobar' > conftest.s
21174 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21179 test $ac_status = 0; }; }
21180 then
21181 gcc_cv_as_weak=yes
21182 else
21183 echo "configure: failed program was" >&5
21184 cat conftest.s >&5
21186 rm -f conftest.o conftest.s
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21190 $as_echo "$gcc_cv_as_weak" >&6; }
21191 if test $gcc_cv_as_weak = yes; then
21193 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21198 $as_echo_n "checking assembler for .weakref... " >&6; }
21199 if test "${gcc_cv_as_weakref+set}" = set; then :
21200 $as_echo_n "(cached) " >&6
21201 else
21202 gcc_cv_as_weakref=no
21203 if test $in_tree_gas = yes; then
21204 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21205 then gcc_cv_as_weakref=yes
21207 elif test x$gcc_cv_as != x; then
21208 echo ' .weakref foobar, barfnot' > conftest.s
21209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21214 test $ac_status = 0; }; }
21215 then
21216 gcc_cv_as_weakref=yes
21217 else
21218 echo "configure: failed program was" >&5
21219 cat conftest.s >&5
21221 rm -f conftest.o conftest.s
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21225 $as_echo "$gcc_cv_as_weakref" >&6; }
21226 if test $gcc_cv_as_weakref = yes; then
21228 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21233 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21234 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21235 $as_echo_n "(cached) " >&6
21236 else
21237 gcc_cv_as_nsubspa_comdat=no
21238 if test $in_tree_gas = yes; then
21239 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21240 then gcc_cv_as_nsubspa_comdat=yes
21242 elif test x$gcc_cv_as != x; then
21243 echo ' .SPACE $TEXT$
21244 .NSUBSPA $CODE$,COMDAT' > conftest.s
21245 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21250 test $ac_status = 0; }; }
21251 then
21252 gcc_cv_as_nsubspa_comdat=yes
21253 else
21254 echo "configure: failed program was" >&5
21255 cat conftest.s >&5
21257 rm -f conftest.o conftest.s
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21261 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21262 if test $gcc_cv_as_nsubspa_comdat = yes; then
21264 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21268 # .hidden needs to be supported in both the assembler and the linker,
21269 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21270 # This is irritatingly difficult to feature test for; we have to check the
21271 # date string after the version number. If we've got an in-tree
21272 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21273 # to be safe.
21274 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21276 $as_echo_n "checking assembler for .hidden... " >&6; }
21277 if test "${gcc_cv_as_hidden+set}" = set; then :
21278 $as_echo_n "(cached) " >&6
21279 else
21280 gcc_cv_as_hidden=no
21281 if test $in_tree_gas = yes; then
21282 if test $in_tree_gas_is_elf = yes \
21283 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21284 then gcc_cv_as_hidden=yes
21286 elif test x$gcc_cv_as != x; then
21287 echo ' .hidden foobar
21288 foobar:' > conftest.s
21289 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21294 test $ac_status = 0; }; }
21295 then
21297 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21298 # STV_HIDDEN, so disable .hidden support if so.
21299 case "${target}" in
21300 i?86-*-solaris2*)
21301 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21302 cat > conftest.s <<EOF
21303 .globl hidden
21304 .hidden hidden
21305 hidden:
21306 .globl default
21307 .set default,hidden
21309 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21310 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21311 grep '\.hidden default' > /dev/null; then
21312 gcc_cv_as_hidden=no
21313 else
21314 gcc_cv_as_hidden=yes
21316 else
21317 # Assume bug is present if objdump is missing.
21318 gcc_cv_as_hidden=no
21322 gcc_cv_as_hidden=yes
21324 esac
21325 else
21326 echo "configure: failed program was" >&5
21327 cat conftest.s >&5
21329 rm -f conftest.o conftest.s
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21333 $as_echo "$gcc_cv_as_hidden" >&6; }
21336 # gnu_indirect_function type is an extension proposed at
21337 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21338 # selection of function implementation
21339 # Check whether --enable-gnu-indirect-function was given.
21340 if test "${enable_gnu_indirect_function+set}" = set; then :
21341 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21342 yes | no) ;;
21343 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21344 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21345 esac
21346 else
21347 enable_gnu_indirect_function="$default_gnu_indirect_function"
21350 if test x$enable_gnu_indirect_function = xyes; then
21352 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21356 if test $in_tree_ld != yes ; then
21357 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21358 if test x"$ld_is_gold" = xyes; then
21359 gcc_cv_ld_hidden=yes
21360 elif echo "$ld_ver" | grep GNU > /dev/null; then
21361 ld_vers=`echo $ld_ver | sed -n \
21362 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21363 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'`
21364 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21365 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21366 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21367 else
21368 case "${target}" in
21369 *-*-solaris2*)
21371 # Solaris 2 ld -V output looks like this for a regular version:
21373 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21375 # but test versions add stuff at the end:
21377 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21379 ld_ver=`$gcc_cv_ld -V 2>&1`
21380 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21381 ld_vers=`echo $ld_ver | sed -n \
21382 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21383 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21384 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21387 esac
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21392 $as_echo_n "checking linker for .hidden support... " >&6; }
21393 if test "${gcc_cv_ld_hidden+set}" = set; then :
21394 $as_echo_n "(cached) " >&6
21395 else
21396 if test $in_tree_ld = yes ; then
21397 gcc_cv_ld_hidden=no
21398 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 \
21399 && test $in_tree_ld_is_elf = yes; then
21400 gcc_cv_ld_hidden=yes
21402 else
21403 gcc_cv_ld_hidden=yes
21404 if echo "$ld_ver" | grep GNU > /dev/null; then
21405 if test 0"$ld_date" -lt 20020404; then
21406 if test -n "$ld_date"; then
21407 # If there was date string, but was earlier than 2002-04-04, fail
21408 gcc_cv_ld_hidden=no
21409 elif test -z "$ld_vers"; then
21410 # If there was no date string nor ld version number, something is wrong
21411 gcc_cv_ld_hidden=no
21412 else
21413 test -z "$ld_vers_patch" && ld_vers_patch=0
21414 if test "$ld_vers_major" -lt 2; then
21415 gcc_cv_ld_hidden=no
21416 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21417 gcc_cv_ld_hidden="no"
21418 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21419 gcc_cv_ld_hidden=no
21423 else
21424 case "${target}" in
21425 hppa64*-*-hpux* | ia64*-*-hpux*)
21426 gcc_cv_ld_hidden=yes
21428 *-*-solaris2.8*)
21429 # .hidden support was backported to Solaris 8, starting with ld
21430 # version 1.276.
21431 if test "$ld_vers_minor" -ge 276; then
21432 gcc_cv_ld_hidden=yes
21433 else
21434 gcc_cv_ld_hidden=no
21437 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21438 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21439 # .symbolic was only added in Solaris 9 12/02.
21440 gcc_cv_ld_hidden=yes
21443 gcc_cv_ld_hidden=no
21445 esac
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21450 $as_echo "$gcc_cv_ld_hidden" >&6; }
21451 libgcc_visibility=no
21454 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21455 libgcc_visibility=yes
21457 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21462 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21463 gcc_cv_ld_ro_rw_mix=unknown
21464 if test $in_tree_ld = yes ; then
21465 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 \
21466 && test $in_tree_ld_is_elf = yes; then
21467 gcc_cv_ld_ro_rw_mix=read-write
21469 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21470 echo '.section myfoosect, "a"' > conftest1.s
21471 echo '.section myfoosect, "aw"' > conftest2.s
21472 echo '.byte 1' >> conftest2.s
21473 echo '.section myfoosect, "a"' > conftest3.s
21474 echo '.byte 0' >> conftest3.s
21475 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21476 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21477 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21478 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21479 conftest2.o conftest3.o > /dev/null 2>&1; then
21480 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21481 | sed -e '/myfoosect/!d' -e N`
21482 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21483 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21484 gcc_cv_ld_ro_rw_mix=read-only
21485 else
21486 gcc_cv_ld_ro_rw_mix=read-write
21490 rm -f conftest.* conftest[123].*
21492 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21494 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21498 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21500 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21502 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21503 if test "${gcc_cv_as_leb128+set}" = set; then :
21504 $as_echo_n "(cached) " >&6
21505 else
21506 gcc_cv_as_leb128=no
21507 if test $in_tree_gas = yes; then
21508 if test $in_tree_gas_is_elf = yes \
21509 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21510 then gcc_cv_as_leb128=yes
21512 elif test x$gcc_cv_as != x; then
21513 echo ' .data
21514 .uleb128 L2 - L1
21516 .uleb128 1280
21517 .sleb128 -1010
21518 L2:' > conftest.s
21519 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21521 (eval $ac_try) 2>&5
21522 ac_status=$?
21523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21524 test $ac_status = 0; }; }
21525 then
21526 # GAS versions before 2.11 do not support uleb128,
21527 # despite appearing to.
21528 # ??? There exists an elf-specific test that will crash
21529 # the assembler. Perhaps it's better to figure out whether
21530 # arbitrary sections are supported and try the test.
21531 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21532 if echo "$as_ver" | grep GNU > /dev/null; then
21533 as_vers=`echo $as_ver | sed -n \
21534 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21535 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21536 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21537 if test $as_major -eq 2 && test $as_minor -lt 11
21538 then :
21539 else gcc_cv_as_leb128=yes
21542 else
21543 echo "configure: failed program was" >&5
21544 cat conftest.s >&5
21546 rm -f conftest.o conftest.s
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21550 $as_echo "$gcc_cv_as_leb128" >&6; }
21551 if test $gcc_cv_as_leb128 = yes; then
21553 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21557 # Check if we have assembler support for unwind directives.
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21559 $as_echo_n "checking assembler for cfi directives... " >&6; }
21560 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21561 $as_echo_n "(cached) " >&6
21562 else
21563 gcc_cv_as_cfi_directive=no
21564 if test x$gcc_cv_as != x; then
21565 echo ' .text
21566 .cfi_startproc
21567 .cfi_offset 0, 0
21568 .cfi_same_value 1
21569 .cfi_def_cfa 1, 2
21570 .cfi_escape 1, 2, 3, 4, 5
21571 .cfi_endproc' > conftest.s
21572 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21574 (eval $ac_try) 2>&5
21575 ac_status=$?
21576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21577 test $ac_status = 0; }; }
21578 then
21579 case "$target" in
21580 *-*-solaris*)
21581 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21582 # read-only and read-write sections, we need to make sure that the
21583 # assembler used emits read-write .eh_frame sections.
21584 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21585 if test "x$gcc_cv_objdump" != x; then
21586 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21587 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21588 gcc_cv_as_cfi_directive=no
21589 else
21590 case "$target" in
21591 i?86-*-solaris2.1[0-9]*)
21592 # On Solaris/x86, make sure that GCC and gas agree on using
21593 # read-only .eh_frame sections for 64-bit.
21594 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21595 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21596 sed -e /.eh_frame/!d -e N | \
21597 grep READONLY > /dev/null; then
21598 gcc_cv_as_cfi_directive=yes
21599 else
21600 gcc_cv_as_cfi_directive=no
21604 gcc_cv_as_cfi_directive=yes
21606 esac
21608 else
21609 # no objdump, err on the side of caution
21610 gcc_cv_as_cfi_directive=no
21612 else
21613 gcc_cv_as_cfi_directive=yes
21616 *-*-*)
21617 gcc_cv_as_cfi_directive=yes
21619 esac
21620 else
21621 echo "configure: failed program was" >&5
21622 cat conftest.s >&5
21624 rm -f conftest.o conftest.s
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21628 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21630 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21632 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21633 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21634 $as_echo_n "(cached) " >&6
21635 else
21636 gcc_cv_as_cfi_advance_working=no
21637 if test x$gcc_cv_as != x; then
21638 echo ' .text
21639 .cfi_startproc
21640 .cfi_adjust_cfa_offset 64
21641 .skip 75040, 0
21642 .cfi_adjust_cfa_offset 128
21643 .cfi_endproc' > conftest.s
21644 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21649 test $ac_status = 0; }; }
21650 then
21652 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
21653 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21654 gcc_cv_as_cfi_advance_working=yes
21657 else
21658 echo "configure: failed program was" >&5
21659 cat conftest.s >&5
21661 rm -f conftest.o conftest.s
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21665 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21667 else
21668 # no objdump, err on the side of caution
21669 gcc_cv_as_cfi_advance_working=no
21673 cat >>confdefs.h <<_ACEOF
21674 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21675 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21676 _ACEOF
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21681 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21682 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21683 $as_echo_n "(cached) " >&6
21684 else
21685 gcc_cv_as_cfi_personality_directive=no
21686 if test x$gcc_cv_as != x; then
21687 echo ' .text
21688 .cfi_startproc
21689 .cfi_personality 0, symbol
21690 .cfi_endproc' > conftest.s
21691 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21693 (eval $ac_try) 2>&5
21694 ac_status=$?
21695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21696 test $ac_status = 0; }; }
21697 then
21698 gcc_cv_as_cfi_personality_directive=yes
21699 else
21700 echo "configure: failed program was" >&5
21701 cat conftest.s >&5
21703 rm -f conftest.o conftest.s
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21707 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21710 cat >>confdefs.h <<_ACEOF
21711 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21712 then echo 1; else echo 0; fi`
21713 _ACEOF
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21717 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21718 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21719 $as_echo_n "(cached) " >&6
21720 else
21721 gcc_cv_as_cfi_sections_directive=no
21722 if test x$gcc_cv_as != x; then
21723 echo ' .text
21724 .cfi_sections .debug_frame, .eh_frame
21725 .cfi_startproc
21726 .cfi_endproc' > conftest.s
21727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21729 (eval $ac_try) 2>&5
21730 ac_status=$?
21731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21732 test $ac_status = 0; }; }
21733 then
21734 case $target_os in
21735 win32 | pe | cygwin* | mingw32* | uwin*)
21736 # Need to check that we generated the correct relocation for the
21737 # .debug_frame section. This was fixed for binutils 2.21.
21738 gcc_cv_as_cfi_sections_directive=no
21739 if test "x$gcc_cv_objdump" != x; then
21740 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
21741 grep secrel > /dev/null; then
21742 gcc_cv_as_cfi_sections_directive=yes
21747 gcc_cv_as_cfi_sections_directive=yes
21749 esac
21750 else
21751 echo "configure: failed program was" >&5
21752 cat conftest.s >&5
21754 rm -f conftest.o conftest.s
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21758 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21762 cat >>confdefs.h <<_ACEOF
21763 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21764 then echo 1; else echo 0; fi`
21765 _ACEOF
21768 # GAS versions up to and including 2.11.0 may mis-optimize
21769 # .eh_frame data.
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21771 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21772 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21773 $as_echo_n "(cached) " >&6
21774 else
21775 gcc_cv_as_eh_frame=no
21776 if test $in_tree_gas = yes; then
21777 if test $in_tree_gas_is_elf = yes \
21778 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21779 then gcc_cv_as_eh_frame=yes
21781 elif test x$gcc_cv_as != x; then
21782 echo ' .text
21783 .LFB1:
21784 .4byte 0
21785 .L1:
21786 .4byte 0
21787 .LFE1:
21788 .section .eh_frame,"aw",@progbits
21789 __FRAME_BEGIN__:
21790 .4byte .LECIE1-.LSCIE1
21791 .LSCIE1:
21792 .4byte 0x0
21793 .byte 0x1
21794 .ascii "z\0"
21795 .byte 0x1
21796 .byte 0x78
21797 .byte 0x1a
21798 .byte 0x0
21799 .byte 0x4
21800 .4byte 1
21801 .p2align 1
21802 .LECIE1:
21803 .LSFDE1:
21804 .4byte .LEFDE1-.LASFDE1
21805 .LASFDE1:
21806 .4byte .LASFDE1-__FRAME_BEGIN__
21807 .4byte .LFB1
21808 .4byte .LFE1-.LFB1
21809 .byte 0x4
21810 .4byte .LFE1-.LFB1
21811 .byte 0x4
21812 .4byte .L1-.LFB1
21813 .LEFDE1:' > conftest.s
21814 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21819 test $ac_status = 0; }; }
21820 then
21821 cat > conftest.lit <<EOF
21822 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21823 0010 01000000 12000000 18000000 00000000 ................
21824 0020 08000000 04080000 0044 .........D
21826 cat > conftest.big <<EOF
21827 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21828 0010 00000001 00000012 00000018 00000000 ................
21829 0020 00000008 04000000 0844 .........D
21831 # If the assembler didn't choke, and we can objdump,
21832 # and we got the correct data, then succeed.
21833 # The text in the here-document typically retains its unix-style line
21834 # endings, while the output of objdump will use host line endings.
21835 # Therefore, use diff -b for the comparisons.
21836 if test x$gcc_cv_objdump != x \
21837 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21838 | tail -3 > conftest.got \
21839 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21840 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21841 then
21842 gcc_cv_as_eh_frame=yes
21843 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21848 test $ac_status = 0; }; }; then
21849 gcc_cv_as_eh_frame=buggy
21850 else
21851 # Uh oh, what do we do now?
21852 gcc_cv_as_eh_frame=no
21854 else
21855 echo "configure: failed program was" >&5
21856 cat conftest.s >&5
21858 rm -f conftest.o conftest.s
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21862 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21865 if test $gcc_cv_as_eh_frame = buggy; then
21867 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21872 $as_echo_n "checking assembler for section merging support... " >&6; }
21873 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21874 $as_echo_n "(cached) " >&6
21875 else
21876 gcc_cv_as_shf_merge=no
21877 if test $in_tree_gas = yes; then
21878 if test $in_tree_gas_is_elf = yes \
21879 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21880 then gcc_cv_as_shf_merge=yes
21882 elif test x$gcc_cv_as != x; then
21883 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21884 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21889 test $ac_status = 0; }; }
21890 then
21891 gcc_cv_as_shf_merge=yes
21892 else
21893 echo "configure: failed program was" >&5
21894 cat conftest.s >&5
21896 rm -f conftest.o conftest.s
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21900 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21902 if test $gcc_cv_as_shf_merge = no; then
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21904 $as_echo_n "checking assembler for section merging support... " >&6; }
21905 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21906 $as_echo_n "(cached) " >&6
21907 else
21908 gcc_cv_as_shf_merge=no
21909 if test $in_tree_gas = yes; then
21910 if test $in_tree_gas_is_elf = yes \
21911 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21912 then gcc_cv_as_shf_merge=yes
21914 elif test x$gcc_cv_as != x; then
21915 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21916 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21918 (eval $ac_try) 2>&5
21919 ac_status=$?
21920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21921 test $ac_status = 0; }; }
21922 then
21923 gcc_cv_as_shf_merge=yes
21924 else
21925 echo "configure: failed program was" >&5
21926 cat conftest.s >&5
21928 rm -f conftest.o conftest.s
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21932 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21936 cat >>confdefs.h <<_ACEOF
21937 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21938 _ACEOF
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21942 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21943 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21944 $as_echo_n "(cached) " >&6
21945 else
21946 gcc_cv_as_comdat_group=no
21947 if test $in_tree_gas = yes; then
21948 if test $in_tree_gas_is_elf = yes \
21949 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21950 then gcc_cv_as_comdat_group=yes
21952 elif test x$gcc_cv_as != x; then
21953 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21956 (eval $ac_try) 2>&5
21957 ac_status=$?
21958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21959 test $ac_status = 0; }; }
21960 then
21961 gcc_cv_as_comdat_group=yes
21962 else
21963 echo "configure: failed program was" >&5
21964 cat conftest.s >&5
21966 rm -f conftest.o conftest.s
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21970 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21972 if test $gcc_cv_as_comdat_group = yes; then
21973 gcc_cv_as_comdat_group_percent=no
21974 else
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21976 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21977 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21978 $as_echo_n "(cached) " >&6
21979 else
21980 gcc_cv_as_comdat_group_percent=no
21981 if test $in_tree_gas = yes; then
21982 if test $in_tree_gas_is_elf = yes \
21983 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21984 then gcc_cv_as_comdat_group_percent=yes
21986 elif test x$gcc_cv_as != x; then
21987 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21990 (eval $ac_try) 2>&5
21991 ac_status=$?
21992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21993 test $ac_status = 0; }; }
21994 then
21995 gcc_cv_as_comdat_group_percent=yes
21996 else
21997 echo "configure: failed program was" >&5
21998 cat conftest.s >&5
22000 rm -f conftest.o conftest.s
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22004 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22007 if test x"$ld_is_gold" = xyes; then
22008 comdat_group=yes
22009 elif test $in_tree_ld = yes ; then
22010 comdat_group=no
22011 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 \
22012 && test $in_tree_ld_is_elf = yes; then
22013 comdat_group=yes
22015 elif echo "$ld_ver" | grep GNU > /dev/null; then
22016 comdat_group=yes
22017 if test 0"$ld_date" -lt 20050308; then
22018 if test -n "$ld_date"; then
22019 # If there was date string, but was earlier than 2005-03-08, fail
22020 comdat_group=no
22021 elif test "$ld_vers_major" -lt 2; then
22022 comdat_group=no
22023 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22024 comdat_group=no
22027 else
22028 case "${target}" in
22029 *-*-solaris2.1[1-9]*)
22030 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22031 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22032 # version 1.688.
22034 # FIXME: Maybe need to refine later when COMDAT group support with
22035 # Sun as is implemented.
22036 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22037 comdat_group=yes
22038 else
22039 comdat_group=no
22043 # Assume linkers other than GNU ld don't support COMDAT group.
22044 comdat_group=no
22046 esac
22048 # Allow overriding the automatic COMDAT group tests above.
22049 # Check whether --enable-comdat was given.
22050 if test "${enable_comdat+set}" = set; then :
22051 enableval=$enable_comdat; comdat_group="$enable_comdat"
22054 if test $comdat_group = no; then
22055 gcc_cv_as_comdat_group=no
22056 gcc_cv_as_comdat_group_percent=no
22059 cat >>confdefs.h <<_ACEOF
22060 #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`
22061 _ACEOF
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22065 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22066 if test "${gcc_cv_as_discriminator+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 gcc_cv_as_discriminator=no
22070 if test $in_tree_gas = yes; then
22071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22072 then gcc_cv_as_discriminator=yes
22074 elif test x$gcc_cv_as != x; then
22075 echo ' .text
22076 .file 1 "conf.c"
22077 .loc 1 1 0 discriminator 1' > conftest.s
22078 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080 (eval $ac_try) 2>&5
22081 ac_status=$?
22082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083 test $ac_status = 0; }; }
22084 then
22085 gcc_cv_as_discriminator=yes
22086 else
22087 echo "configure: failed program was" >&5
22088 cat conftest.s >&5
22090 rm -f conftest.o conftest.s
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22094 $as_echo "$gcc_cv_as_discriminator" >&6; }
22095 if test $gcc_cv_as_discriminator = yes; then
22097 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22101 # Thread-local storage - the check is heavily parameterized.
22102 conftest_s=
22103 tls_first_major=
22104 tls_first_minor=
22105 tls_as_opt=
22106 case "$target" in
22107 alpha*-*-*)
22108 conftest_s='
22109 .section ".tdata","awT",@progbits
22110 foo: .long 25
22111 .text
22112 ldq $27,__tls_get_addr($29) !literal!1
22113 lda $16,foo($29) !tlsgd!1
22114 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22115 ldq $27,__tls_get_addr($29) !literal!2
22116 lda $16,foo($29) !tlsldm!2
22117 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22118 ldq $1,foo($29) !gotdtprel
22119 ldah $2,foo($29) !dtprelhi
22120 lda $3,foo($2) !dtprello
22121 lda $4,foo($29) !dtprel
22122 ldq $1,foo($29) !gottprel
22123 ldah $2,foo($29) !tprelhi
22124 lda $3,foo($2) !tprello
22125 lda $4,foo($29) !tprel'
22126 tls_first_major=2
22127 tls_first_minor=13
22128 tls_as_opt=--fatal-warnings
22130 cris-*-*|crisv32-*-*)
22131 conftest_s='
22132 .section ".tdata","awT",@progbits
22133 x: .long 25
22134 .text
22135 move.d x:IE,$r10
22136 nop'
22137 tls_first_major=2
22138 tls_first_minor=20
22139 tls_as_opt=--fatal-warnings
22141 frv*-*-*)
22142 conftest_s='
22143 .section ".tdata","awT",@progbits
22144 x: .long 25
22145 .text
22146 call #gettlsoff(x)'
22147 tls_first_major=2
22148 tls_first_minor=14
22150 hppa*-*-linux*)
22151 conftest_s='
22152 t1: .reg %r20
22153 t2: .reg %r21
22154 gp: .reg %r19
22155 .section ".tdata","awT",@progbits
22156 foo: .long 25
22157 .text
22158 .align 4
22159 addil LT%foo-$tls_gdidx$,gp
22160 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22161 b __tls_get_addr
22163 addil LT%foo-$tls_ldidx$,gp
22164 b __tls_get_addr
22165 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22166 addil LR%foo-$tls_dtpoff$,%ret0
22167 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22168 mfctl %cr27,%t1
22169 addil LT%foo-$tls_ieoff$,gp
22170 ldw RT%foo-$tls_ieoff$(%r1),%t2
22171 add %t1,%t2,%t3
22172 mfctl %cr27,%t1
22173 addil LR%foo-$tls_leoff$,%t1
22174 ldo RR%foo-$tls_leoff$(%r1),%t2'
22175 tls_first_major=2
22176 tls_first_minor=15
22177 tls_as_opt=--fatal-warnings
22179 arm*-*-*)
22180 conftest_s='
22181 .section ".tdata","awT",%progbits
22182 foo: .long 25
22183 .text
22184 .word foo(gottpoff)
22185 .word foo(tpoff)
22186 .word foo(tlsgd)
22187 .word foo(tlsldm)
22188 .word foo(tlsldo)'
22189 tls_first_major=2
22190 tls_first_minor=17
22192 i[34567]86-*-*)
22193 case "$target" in
22194 i[34567]86-*-solaris2.*)
22195 on_solaris=yes
22196 tga_func=___tls_get_addr
22199 on_solaris=no
22201 esac
22202 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22203 conftest_s='
22204 .section .tdata,"awt",@progbits'
22205 tls_first_major=0
22206 tls_first_minor=0
22208 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22210 else
22211 conftest_s='
22212 .section ".tdata","awT",@progbits'
22213 tls_first_major=2
22214 tls_first_minor=14
22215 tls_as_opt="--fatal-warnings"
22217 conftest_s="$conftest_s
22218 foo: .long 25
22219 .text
22220 movl %gs:0, %eax
22221 leal foo@tlsgd(,%ebx,1), %eax
22222 leal foo@tlsldm(%ebx), %eax
22223 leal foo@dtpoff(%eax), %edx
22224 movl foo@gottpoff(%ebx), %eax
22225 subl foo@gottpoff(%ebx), %eax
22226 addl foo@gotntpoff(%ebx), %eax
22227 movl foo@indntpoff, %eax
22228 movl \$foo@tpoff, %eax
22229 subl \$foo@tpoff, %eax
22230 leal foo@ntpoff(%ecx), %eax"
22232 x86_64-*-*)
22233 conftest_s='
22234 .section ".tdata","awT",@progbits
22235 foo: .long 25
22236 .text
22237 movq %fs:0, %rax
22238 leaq foo@TLSGD(%rip), %rdi
22239 leaq foo@TLSLD(%rip), %rdi
22240 leaq foo@DTPOFF(%rax), %rdx
22241 movq foo@GOTTPOFF(%rip), %rax
22242 movq $foo@TPOFF, %rax'
22243 tls_first_major=2
22244 tls_first_minor=14
22245 tls_as_opt=--fatal-warnings
22247 ia64-*-*)
22248 conftest_s='
22249 .section ".tdata","awT",@progbits
22250 foo: data8 25
22251 .text
22252 addl r16 = @ltoff(@dtpmod(foo#)), gp
22253 addl r17 = @ltoff(@dtprel(foo#)), gp
22254 addl r18 = @ltoff(@tprel(foo#)), gp
22255 addl r19 = @dtprel(foo#), gp
22256 adds r21 = @dtprel(foo#), r13
22257 movl r23 = @dtprel(foo#)
22258 addl r20 = @tprel(foo#), gp
22259 adds r22 = @tprel(foo#), r13
22260 movl r24 = @tprel(foo#)'
22261 tls_first_major=2
22262 tls_first_minor=13
22263 tls_as_opt=--fatal-warnings
22265 mips*-*-*)
22266 conftest_s='
22267 .section .tdata,"awT",@progbits
22269 .word 2
22270 .text
22271 addiu $4, $28, %tlsgd(x)
22272 addiu $4, $28, %tlsldm(x)
22273 lui $4, %dtprel_hi(x)
22274 addiu $4, $4, %dtprel_lo(x)
22275 lw $4, %gottprel(x)($28)
22276 lui $4, %tprel_hi(x)
22277 addiu $4, $4, %tprel_lo(x)'
22278 tls_first_major=2
22279 tls_first_minor=16
22280 tls_as_opt='-32 --fatal-warnings'
22282 m68k-*-*)
22283 conftest_s='
22284 .section .tdata,"awT",@progbits
22286 .word 2
22287 .text
22288 foo:
22289 move.l x@TLSGD(%a5),%a0
22290 move.l x@TLSLDM(%a5),%a0
22291 move.l x@TLSLDO(%a5),%a0
22292 move.l x@TLSIE(%a5),%a0
22293 move.l x@TLSLE(%a5),%a0'
22294 tls_first_major=2
22295 tls_first_minor=19
22296 tls_as_opt='--fatal-warnings'
22298 powerpc-*-*)
22299 conftest_s='
22300 .section ".tdata","awT",@progbits
22301 .align 2
22302 ld0: .space 4
22303 ld1: .space 4
22304 x1: .space 4
22305 x2: .space 4
22306 x3: .space 4
22307 .text
22308 addi 3,31,ld0@got@tlsgd
22309 bl __tls_get_addr
22310 addi 3,31,x1@got@tlsld
22311 bl __tls_get_addr
22312 addi 9,3,x1@dtprel
22313 addis 9,3,x2@dtprel@ha
22314 addi 9,9,x2@dtprel@l
22315 lwz 9,x3@got@tprel(31)
22316 add 9,9,x@tls
22317 addi 9,2,x1@tprel
22318 addis 9,2,x2@tprel@ha
22319 addi 9,9,x2@tprel@l'
22320 tls_first_major=2
22321 tls_first_minor=14
22322 tls_as_opt="-a32 --fatal-warnings"
22324 powerpc64-*-*)
22325 conftest_s='
22326 .section ".tdata","awT",@progbits
22327 .align 3
22328 ld0: .space 8
22329 ld1: .space 8
22330 x1: .space 8
22331 x2: .space 8
22332 x3: .space 8
22333 .text
22334 addi 3,2,ld0@got@tlsgd
22335 bl .__tls_get_addr
22337 addi 3,2,ld1@toc
22338 bl .__tls_get_addr
22340 addi 3,2,x1@got@tlsld
22341 bl .__tls_get_addr
22343 addi 9,3,x1@dtprel
22344 bl .__tls_get_addr
22346 addis 9,3,x2@dtprel@ha
22347 addi 9,9,x2@dtprel@l
22348 bl .__tls_get_addr
22350 ld 9,x3@got@dtprel(2)
22351 add 9,9,3
22352 bl .__tls_get_addr
22353 nop'
22354 tls_first_major=2
22355 tls_first_minor=14
22356 tls_as_opt="-a64 --fatal-warnings"
22358 s390-*-*)
22359 conftest_s='
22360 .section ".tdata","awT",@progbits
22361 foo: .long 25
22362 .text
22363 .long foo@TLSGD
22364 .long foo@TLSLDM
22365 .long foo@DTPOFF
22366 .long foo@NTPOFF
22367 .long foo@GOTNTPOFF
22368 .long foo@INDNTPOFF
22369 l %r1,foo@GOTNTPOFF(%r12)
22370 l %r1,0(%r1):tls_load:foo
22371 bas %r14,0(%r1,%r13):tls_gdcall:foo
22372 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22373 tls_first_major=2
22374 tls_first_minor=14
22375 tls_as_opt="-m31 --fatal-warnings"
22377 s390x-*-*)
22378 conftest_s='
22379 .section ".tdata","awT",@progbits
22380 foo: .long 25
22381 .text
22382 .quad foo@TLSGD
22383 .quad foo@TLSLDM
22384 .quad foo@DTPOFF
22385 .quad foo@NTPOFF
22386 .quad foo@GOTNTPOFF
22387 lg %r1,foo@GOTNTPOFF(%r12)
22388 larl %r1,foo@INDNTPOFF
22389 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22390 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22391 tls_first_major=2
22392 tls_first_minor=14
22393 tls_as_opt="-m64 -Aesame --fatal-warnings"
22395 sh-*-* | sh[34]-*-*)
22396 conftest_s='
22397 .section ".tdata","awT",@progbits
22398 foo: .long 25
22399 .text
22400 .long foo@TLSGD
22401 .long foo@TLSLDM
22402 .long foo@DTPOFF
22403 .long foo@GOTTPOFF
22404 .long foo@TPOFF'
22405 tls_first_major=2
22406 tls_first_minor=13
22407 tls_as_opt=--fatal-warnings
22409 sparc*-*-*)
22410 case "$target" in
22411 sparc*-sun-solaris2.*)
22412 on_solaris=yes
22413 tga_func=__tls_get_addr
22416 on_solaris=no
22418 esac
22419 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22420 conftest_s='
22421 .section ".tdata",#alloc,#write,#tls'
22422 tls_first_major=0
22423 tls_first_minor=0
22424 else
22425 conftest_s='
22426 .section ".tdata","awT",@progbits'
22427 tls_first_major=2
22428 tls_first_minor=14
22429 tls_as_opt="-32 --fatal-warnings"
22431 conftest_s="$conftest_s
22432 foo: .long 25
22433 .text
22434 sethi %tgd_hi22(foo), %o0
22435 add %o0, %tgd_lo10(foo), %o1
22436 add %l7, %o1, %o0, %tgd_add(foo)
22437 call __tls_get_addr, %tgd_call(foo)
22438 sethi %tldm_hi22(foo), %l1
22439 add %l1, %tldm_lo10(foo), %l2
22440 add %l7, %l2, %o0, %tldm_add(foo)
22441 call __tls_get_addr, %tldm_call(foo)
22442 sethi %tldo_hix22(foo), %l3
22443 xor %l3, %tldo_lox10(foo), %l4
22444 add %o0, %l4, %l5, %tldo_add(foo)
22445 sethi %tie_hi22(foo), %o3
22446 add %o3, %tie_lo10(foo), %o3
22447 ld [%l7 + %o3], %o2, %tie_ld(foo)
22448 add %g7, %o2, %o4, %tie_add(foo)
22449 sethi %tle_hix22(foo), %l1
22450 xor %l1, %tle_lox10(foo), %o5
22451 ld [%g7 + %o5], %o1"
22453 xtensa*-*-*)
22454 conftest_s='
22455 .section ".tdata","awT",@progbits
22456 foo: .long 25
22457 .text
22458 movi a8, foo@TLSFUNC
22459 movi a10, foo@TLSARG
22460 callx8.tls a8, foo@TLSCALL'
22461 tls_first_major=2
22462 tls_first_minor=19
22464 esac
22465 set_have_as_tls=no
22466 if test "x$enable_tls" = xno ; then
22467 : # TLS explicitly disabled.
22468 elif test "x$enable_tls" = xyes ; then
22469 set_have_as_tls=yes # TLS explicitly enabled.
22470 elif test -z "$tls_first_major"; then
22471 : # If we don't have a check, assume no support.
22472 else
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22474 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22475 if test "${gcc_cv_as_tls+set}" = set; then :
22476 $as_echo_n "(cached) " >&6
22477 else
22478 gcc_cv_as_tls=no
22479 if test $in_tree_gas = yes; then
22480 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22481 then gcc_cv_as_tls=yes
22483 elif test x$gcc_cv_as != x; then
22484 echo "$conftest_s" > conftest.s
22485 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22487 (eval $ac_try) 2>&5
22488 ac_status=$?
22489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22490 test $ac_status = 0; }; }
22491 then
22492 gcc_cv_as_tls=yes
22493 else
22494 echo "configure: failed program was" >&5
22495 cat conftest.s >&5
22497 rm -f conftest.o conftest.s
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22501 $as_echo "$gcc_cv_as_tls" >&6; }
22502 if test $gcc_cv_as_tls = yes; then
22503 set_have_as_tls=yes
22506 case "$target" in
22507 # TLS was introduced in the Solaris 9 FCS release and backported to
22508 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22509 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22510 # ld and GCC don't support any longer.
22511 *-*-solaris2.*)
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22513 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22514 ld_tls_support=no
22515 # Check ld and ld.so.1 TLS support.
22516 if echo "$ld_ver" | grep GNU > /dev/null; then
22517 # Assume all interesting versions of GNU ld have TLS support.
22518 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22519 ld_tls_support=yes
22520 else
22521 case "$target" in
22522 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22523 i?86-*-solaris2.8)
22524 min_tls_ld_vers_minor=280
22526 # Solaris 8/SPARC ld has TLS support since version 1.272.
22527 sparc*-*-solaris2.8)
22528 min_tls_ld_vers_minor=272
22530 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22531 i?86-*-solaris2.9)
22532 min_tls_ld_vers_minor=374
22534 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22535 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22536 min_tls_ld_vers_minor=343
22538 esac
22539 if test "$ld_vers_major" -gt 1 || \
22540 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22541 ld_tls_support=yes
22542 else
22543 set_have_as_tls=no
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22547 $as_echo "$ld_tls_support" >&6; }
22549 save_LIBS="$LIBS"
22550 save_LDFLAGS="$LDFLAGS"
22551 LIBS=
22552 LDFLAGS=
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22555 $as_echo_n "checking alternate thread library... " >&6; }
22556 case "$target" in
22557 # TLS support was backported to Solaris 8 patches, but only lives in
22558 # the alternate thread library which became the default in Solaris 9.
22559 # We want to always use that, irrespective of TLS support.
22560 *-*-solaris2.8)
22561 # Take multilib subdir into account. There's no spec to handle
22562 # this. The 64 symlink exists since Solaris 8.
22563 lwp_dir=/usr/lib/lwp
22564 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22565 LDFLAGS="-L$lwp_dir -R$lwp_dir"
22567 *-*-solaris2*)
22568 lwp_dir="none"
22569 lwp_spec=""
22571 esac
22572 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22574 cat >>confdefs.h <<_ACEOF
22575 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22576 _ACEOF
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22579 $as_echo "$lwp_dir" >&6; }
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22582 $as_echo_n "checking library containing $tga_func... " >&6; }
22583 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22584 # (32-bit x86) only lived in libthread, so check for that. Keep
22585 # set_have_as_tls if found, disable if not.
22586 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22588 $as_echo_n "checking for library containing $tga_func... " >&6; }
22589 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22590 $as_echo_n "(cached) " >&6
22591 else
22592 ac_func_search_save_LIBS=$LIBS
22593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22594 /* end confdefs.h. */
22596 /* Override any GCC internal prototype to avoid an error.
22597 Use char because int might match the return type of a GCC
22598 builtin and then its argument prototype would still apply. */
22599 #ifdef __cplusplus
22600 extern "C"
22601 #endif
22602 char $tga_func ();
22604 main ()
22606 return $tga_func ();
22608 return 0;
22610 _ACEOF
22611 for ac_lib in '' thread; do
22612 if test -z "$ac_lib"; then
22613 ac_res="none required"
22614 else
22615 ac_res=-l$ac_lib
22616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22618 if ac_fn_c_try_link "$LINENO"; then :
22619 eval "$as_ac_Search=\$ac_res"
22621 rm -f core conftest.err conftest.$ac_objext \
22622 conftest$ac_exeext
22623 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22624 break
22626 done
22627 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22629 else
22630 eval "$as_ac_Search=no"
22632 rm conftest.$ac_ext
22633 LIBS=$ac_func_search_save_LIBS
22635 eval ac_res=\$$as_ac_Search
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22637 $as_echo "$ac_res" >&6; }
22638 eval ac_res=\$$as_ac_Search
22639 if test "$ac_res" != no; then :
22640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22642 else
22643 set_have_as_tls=no
22646 # Clear LIBS if we cannot support TLS.
22647 if test $set_have_as_tls = no; then
22648 LIBS=
22650 # Always define LIB_TLS_SPEC, even without TLS support.
22652 cat >>confdefs.h <<_ACEOF
22653 #define LIB_TLS_SPEC "$LIBS"
22654 _ACEOF
22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22657 $as_echo "$LIBS" >&6; }
22659 LIBS="$save_LIBS"
22660 LDFLAGS="$save_LDFLAGS"
22662 esac
22663 if test $set_have_as_tls = yes ; then
22665 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22669 # Target-specific assembler checks.
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22672 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22673 gcc_cv_ld_static_dynamic=no
22674 if test $in_tree_ld = yes ; then
22675 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
22676 gcc_cv_ld_static_dynamic=yes
22678 elif test x$gcc_cv_ld != x; then
22679 # Check if linker supports -Bstatic/-Bdynamic option
22680 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22681 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22682 gcc_cv_ld_static_dynamic=yes
22685 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22687 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22691 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22693 if test x"$demangler_in_ld" = xyes; then
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22695 $as_echo_n "checking linker --demangle support... " >&6; }
22696 gcc_cv_ld_demangle=no
22697 if test $in_tree_ld = yes; then
22698 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 \
22699 gcc_cv_ld_demangle=yes
22701 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22702 # Check if the GNU linker supports --demangle option
22703 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22704 gcc_cv_ld_demangle=yes
22707 if test x"$gcc_cv_ld_demangle" = xyes; then
22709 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22713 $as_echo "$gcc_cv_ld_demangle" >&6; }
22716 case "$target" in
22717 # All TARGET_ABI_OSF targets.
22718 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22720 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22721 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22722 $as_echo_n "(cached) " >&6
22723 else
22724 gcc_cv_as_alpha_explicit_relocs=no
22725 if test $in_tree_gas = yes; then
22726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22727 then gcc_cv_as_alpha_explicit_relocs=yes
22729 elif test x$gcc_cv_as != x; then
22730 echo ' .set nomacro
22731 .text
22732 extbl $3, $2, $3 !lituse_bytoff!1
22733 ldq $2, a($29) !literal!1
22734 ldq $4, b($29) !literal!2
22735 ldq_u $3, 0($2) !lituse_base!1
22736 ldq $27, f($29) !literal!5
22737 jsr $26, ($27), f !lituse_jsr!5
22738 ldah $29, 0($26) !gpdisp!3
22739 lda $0, c($29) !gprel
22740 ldah $1, d($29) !gprelhigh
22741 lda $1, d($1) !gprellow
22742 lda $29, 0($29) !gpdisp!3' > conftest.s
22743 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }
22749 then
22750 gcc_cv_as_alpha_explicit_relocs=yes
22751 else
22752 echo "configure: failed program was" >&5
22753 cat conftest.s >&5
22755 rm -f conftest.o conftest.s
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22759 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22760 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22762 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22766 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22767 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22768 $as_echo_n "(cached) " >&6
22769 else
22770 gcc_cv_as_alpha_jsrdirect_relocs=no
22771 if test $in_tree_gas = yes; then
22772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22773 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22775 elif test x$gcc_cv_as != x; then
22776 echo ' .set nomacro
22777 .text
22778 ldq $27, a($29) !literal!1
22779 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22780 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22782 (eval $ac_try) 2>&5
22783 ac_status=$?
22784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22785 test $ac_status = 0; }; }
22786 then
22787 gcc_cv_as_alpha_jsrdirect_relocs=yes
22788 else
22789 echo "configure: failed program was" >&5
22790 cat conftest.s >&5
22792 rm -f conftest.o conftest.s
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22796 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22797 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22799 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22804 cris-*-*)
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22806 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22807 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22808 $as_echo_n "(cached) " >&6
22809 else
22810 gcc_cv_as_cris_no_mul_bug=no
22811 if test $in_tree_gas = yes; then
22812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22813 then gcc_cv_as_cris_no_mul_bug=yes
22815 elif test x$gcc_cv_as != x; then
22816 echo '.text' > conftest.s
22817 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22819 (eval $ac_try) 2>&5
22820 ac_status=$?
22821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22822 test $ac_status = 0; }; }
22823 then
22824 gcc_cv_as_cris_no_mul_bug=yes
22825 else
22826 echo "configure: failed program was" >&5
22827 cat conftest.s >&5
22829 rm -f conftest.o conftest.s
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22833 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22834 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22836 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22841 sparc*-*-*)
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22843 $as_echo_n "checking assembler for .register... " >&6; }
22844 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22845 $as_echo_n "(cached) " >&6
22846 else
22847 gcc_cv_as_sparc_register_op=no
22848 if test x$gcc_cv_as != x; then
22849 echo '.register %g2, #scratch' > conftest.s
22850 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22852 (eval $ac_try) 2>&5
22853 ac_status=$?
22854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22855 test $ac_status = 0; }; }
22856 then
22857 gcc_cv_as_sparc_register_op=yes
22858 else
22859 echo "configure: failed program was" >&5
22860 cat conftest.s >&5
22862 rm -f conftest.o conftest.s
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22866 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22867 if test $gcc_cv_as_sparc_register_op = yes; then
22869 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22874 $as_echo_n "checking assembler for -relax option... " >&6; }
22875 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22876 $as_echo_n "(cached) " >&6
22877 else
22878 gcc_cv_as_sparc_relax=no
22879 if test x$gcc_cv_as != x; then
22880 echo '.text' > conftest.s
22881 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22883 (eval $ac_try) 2>&5
22884 ac_status=$?
22885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22886 test $ac_status = 0; }; }
22887 then
22888 gcc_cv_as_sparc_relax=yes
22889 else
22890 echo "configure: failed program was" >&5
22891 cat conftest.s >&5
22893 rm -f conftest.o conftest.s
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22897 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22898 if test $gcc_cv_as_sparc_relax = yes; then
22900 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22905 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22906 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22907 $as_echo_n "(cached) " >&6
22908 else
22909 gcc_cv_as_sparc_gotdata_op=no
22910 if test x$gcc_cv_as != x; then
22911 echo '.text
22912 foo:
22914 bar:
22915 sethi %gdop_hix22(foo), %g1
22916 xor %g1, %gdop_lox10(foo), %g1
22917 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920 (eval $ac_try) 2>&5
22921 ac_status=$?
22922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923 test $ac_status = 0; }; }
22924 then
22925 if test x$gcc_cv_ld != x \
22926 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22927 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22928 if test x$gcc_cv_objdump != x; then
22929 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22930 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22931 gcc_cv_as_sparc_gotdata_op=no
22932 else
22933 gcc_cv_as_sparc_gotdata_op=yes
22936 else
22937 gcc_cv_as_sparc_gotdata_op=yes
22940 rm -f conftest
22941 else
22942 echo "configure: failed program was" >&5
22943 cat conftest.s >&5
22945 rm -f conftest.o conftest.s
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22949 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22950 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22952 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22957 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22958 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22960 else
22961 gcc_cv_as_sparc_ua_pcrel=no
22962 if test x$gcc_cv_as != x; then
22963 echo '.text
22964 foo:
22966 .data
22967 .align 4
22968 .byte 0
22969 .uaword %r_disp32(foo)' > conftest.s
22970 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22975 test $ac_status = 0; }; }
22976 then
22977 if test x$gcc_cv_ld != x \
22978 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22979 gcc_cv_as_sparc_ua_pcrel=yes
22981 rm -f conftest
22982 else
22983 echo "configure: failed program was" >&5
22984 cat conftest.s >&5
22986 rm -f conftest.o conftest.s
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22990 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22991 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22993 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22997 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22998 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22999 $as_echo_n "(cached) " >&6
23000 else
23001 gcc_cv_as_sparc_ua_pcrel_hidden=no
23002 if test x$gcc_cv_as != x; then
23003 echo '.data
23004 .align 4
23005 .byte 0x31
23006 .uaword %r_disp32(foo)
23007 .byte 0x32, 0x33, 0x34
23008 .global foo
23009 .hidden foo
23010 foo:
23011 .skip 4' > conftest.s
23012 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23017 test $ac_status = 0; }; }
23018 then
23019 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23020 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23021 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23022 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23023 if $gcc_cv_objdump -R conftest 2> /dev/null \
23024 | grep 'DISP32' > /dev/null 2>&1; then
23026 else
23027 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23030 rm -f conftest
23031 else
23032 echo "configure: failed program was" >&5
23033 cat conftest.s >&5
23035 rm -f conftest.o conftest.s
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23039 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23040 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23042 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23046 fi # unaligned pcrel relocs
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23049 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23050 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23051 $as_echo_n "(cached) " >&6
23052 else
23053 gcc_cv_as_sparc_offsetable_lo10=no
23054 if test x$gcc_cv_as != x; then
23055 echo '.text
23056 or %g1, %lo(ab) + 12, %g1
23057 or %g1, %lo(ab + 12), %g1' > conftest.s
23058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23063 test $ac_status = 0; }; }
23064 then
23065 if test x$gcc_cv_objdump != x \
23066 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23067 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23068 gcc_cv_as_sparc_offsetable_lo10=yes
23070 else
23071 echo "configure: failed program was" >&5
23072 cat conftest.s >&5
23074 rm -f conftest.o conftest.s
23077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23078 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23079 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23081 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23086 i[34567]86-*-* | x86_64-*-*)
23087 case $target_os in
23088 cygwin*)
23089 # Full C++ conformance when using a shared libstdc++-v3 requires some
23090 # support from the Cygwin DLL, which in more recent versions exports
23091 # wrappers to aid in interposing and redirecting operators new, delete,
23092 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23093 # are configuring for a version of Cygwin that exports the wrappers.
23094 if test x$host = x$target; then
23095 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23096 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23097 gcc_ac_cygwin_dll_wrappers=yes
23098 else
23099 gcc_ac_cygwin_dll_wrappers=no
23102 else
23103 # Can't check presence of libc functions during cross-compile, so
23104 # we just have to assume we're building for an up-to-date target.
23105 gcc_ac_cygwin_dll_wrappers=yes
23108 cat >>confdefs.h <<_ACEOF
23109 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23110 _ACEOF
23112 esac
23113 case $target_os in
23114 cygwin* | pe | mingw32*)
23115 # Recent binutils allows the three-operand form of ".comm" on PE. This
23116 # definition is used unconditionally to initialise the default state of
23117 # the target option variable that governs usage of the feature.
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23119 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23120 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23121 $as_echo_n "(cached) " >&6
23122 else
23123 gcc_cv_as_comm_has_align=no
23124 if test $in_tree_gas = yes; then
23125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23126 then gcc_cv_as_comm_has_align=yes
23128 elif test x$gcc_cv_as != x; then
23129 echo '.comm foo,1,32' > conftest.s
23130 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_comm_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_comm_has_align" >&5
23146 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23149 cat >>confdefs.h <<_ACEOF
23150 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23151 _ACEOF
23153 # Used for DWARF 2 in PE
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23155 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23156 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23157 $as_echo_n "(cached) " >&6
23158 else
23159 gcc_cv_as_ix86_pe_secrel32=no
23160 if test $in_tree_gas = yes; then
23161 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23162 then gcc_cv_as_ix86_pe_secrel32=yes
23164 elif test x$gcc_cv_as != x; then
23165 echo '.text
23166 foo: nop
23167 .data
23168 .secrel32 foo' > conftest.s
23169 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23171 (eval $ac_try) 2>&5
23172 ac_status=$?
23173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23174 test $ac_status = 0; }; }
23175 then
23176 if test x$gcc_cv_ld != x \
23177 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23178 gcc_cv_as_ix86_pe_secrel32=yes
23180 rm -f conftest
23181 else
23182 echo "configure: failed program was" >&5
23183 cat conftest.s >&5
23185 rm -f conftest.o conftest.s
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23189 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23190 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23192 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23195 # Test if the assembler supports the extended form of the .section
23196 # directive that specifies section alignment. LTO support uses this,
23197 # but normally only after installation, so we warn but don't fail the
23198 # configure if LTO is enabled but the assembler does not support it.
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23200 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23201 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23202 $as_echo_n "(cached) " >&6
23203 else
23204 gcc_cv_as_section_has_align=no
23205 if test $in_tree_gas = yes; then
23206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23207 then gcc_cv_as_section_has_align=yes
23209 elif test x$gcc_cv_as != x; then
23210 echo '.section lto_test,"dr0"' > conftest.s
23211 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23213 (eval $ac_try) 2>&5
23214 ac_status=$?
23215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23216 test $ac_status = 0; }; }
23217 then
23218 gcc_cv_as_section_has_align=yes
23219 else
23220 echo "configure: failed program was" >&5
23221 cat conftest.s >&5
23223 rm -f conftest.o conftest.s
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23227 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23229 if test x$gcc_cv_as_section_has_align != xyes; then
23230 case ",$enable_languages," in
23231 *,lto,*)
23232 { $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
23233 $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;}
23235 esac
23238 esac
23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23241 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23242 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23243 $as_echo_n "(cached) " >&6
23244 else
23245 gcc_cv_as_ix86_filds=no
23246 if test x$gcc_cv_as != x; then
23247 echo 'filds mem; fists mem' > conftest.s
23248 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23250 (eval $ac_try) 2>&5
23251 ac_status=$?
23252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23253 test $ac_status = 0; }; }
23254 then
23255 gcc_cv_as_ix86_filds=yes
23256 else
23257 echo "configure: failed program was" >&5
23258 cat conftest.s >&5
23260 rm -f conftest.o conftest.s
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23264 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23265 if test $gcc_cv_as_ix86_filds = yes; then
23267 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23272 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23273 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23274 $as_echo_n "(cached) " >&6
23275 else
23276 gcc_cv_as_ix86_fildq=no
23277 if test x$gcc_cv_as != x; then
23278 echo 'fildq mem; fistpq mem' > conftest.s
23279 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23285 then
23286 gcc_cv_as_ix86_fildq=yes
23287 else
23288 echo "configure: failed program was" >&5
23289 cat conftest.s >&5
23291 rm -f conftest.o conftest.s
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23295 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23296 if test $gcc_cv_as_ix86_fildq = yes; then
23298 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23303 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23304 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23305 $as_echo_n "(cached) " >&6
23306 else
23307 gcc_cv_as_ix86_cmov_sun_syntax=no
23308 if test x$gcc_cv_as != x; then
23309 echo 'cmovl.l %edx, %eax' > conftest.s
23310 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23312 (eval $ac_try) 2>&5
23313 ac_status=$?
23314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23315 test $ac_status = 0; }; }
23316 then
23317 gcc_cv_as_ix86_cmov_sun_syntax=yes
23318 else
23319 echo "configure: failed program was" >&5
23320 cat conftest.s >&5
23322 rm -f conftest.o conftest.s
23325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23326 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23327 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23329 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23334 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23335 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23336 $as_echo_n "(cached) " >&6
23337 else
23338 gcc_cv_as_ix86_ffreep=no
23339 if test x$gcc_cv_as != x; then
23340 echo 'ffreep %st(1)' > conftest.s
23341 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23346 test $ac_status = 0; }; }
23347 then
23348 gcc_cv_as_ix86_ffreep=yes
23349 else
23350 echo "configure: failed program was" >&5
23351 cat conftest.s >&5
23353 rm -f conftest.o conftest.s
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23357 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23358 if test $gcc_cv_as_ix86_ffreep = yes; then
23360 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23365 $as_echo_n "checking assembler for .quad directive... " >&6; }
23366 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23367 $as_echo_n "(cached) " >&6
23368 else
23369 gcc_cv_as_ix86_quad=no
23370 if test x$gcc_cv_as != x; then
23371 echo '.quad 0' > conftest.s
23372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23377 test $ac_status = 0; }; }
23378 then
23379 gcc_cv_as_ix86_quad=yes
23380 else
23381 echo "configure: failed program was" >&5
23382 cat conftest.s >&5
23384 rm -f conftest.o conftest.s
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23388 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23389 if test $gcc_cv_as_ix86_quad = yes; then
23391 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23396 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23397 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23398 $as_echo_n "(cached) " >&6
23399 else
23400 gcc_cv_as_ix86_sahf=no
23401 if test x$gcc_cv_as != x; then
23402 echo '.code64
23403 sahf' > conftest.s
23404 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23409 test $ac_status = 0; }; }
23410 then
23411 gcc_cv_as_ix86_sahf=yes
23412 else
23413 echo "configure: failed program was" >&5
23414 cat conftest.s >&5
23416 rm -f conftest.o conftest.s
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23420 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23421 if test $gcc_cv_as_ix86_sahf = yes; then
23423 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23428 $as_echo_n "checking assembler for swap suffix... " >&6; }
23429 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23430 $as_echo_n "(cached) " >&6
23431 else
23432 gcc_cv_as_ix86_swap=no
23433 if test x$gcc_cv_as != x; then
23434 echo 'movl.s %esp, %ebp' > conftest.s
23435 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23437 (eval $ac_try) 2>&5
23438 ac_status=$?
23439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23440 test $ac_status = 0; }; }
23441 then
23442 gcc_cv_as_ix86_swap=yes
23443 else
23444 echo "configure: failed program was" >&5
23445 cat conftest.s >&5
23447 rm -f conftest.o conftest.s
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23451 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23452 if test $gcc_cv_as_ix86_swap = yes; then
23454 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23459 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23460 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23461 $as_echo_n "(cached) " >&6
23462 else
23463 gcc_cv_as_ix86_diff_sect_delta=no
23464 if test x$gcc_cv_as != x; then
23465 echo '.section .rodata
23466 .L1:
23467 .long .L2-.L1
23468 .long .L3-.L1
23469 .text
23470 .L3: nop
23471 .L2: nop' > conftest.s
23472 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23474 (eval $ac_try) 2>&5
23475 ac_status=$?
23476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23477 test $ac_status = 0; }; }
23478 then
23479 gcc_cv_as_ix86_diff_sect_delta=yes
23480 else
23481 echo "configure: failed program was" >&5
23482 cat conftest.s >&5
23484 rm -f conftest.o conftest.s
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23488 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23489 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23491 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23495 # These two are used unconditionally by i386.[ch]; it is to be defined
23496 # to 1 if the feature is present, 0 otherwise.
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23498 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23499 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23501 else
23502 gcc_cv_as_ix86_gotoff_in_data=no
23503 if test $in_tree_gas = yes; then
23504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23505 then gcc_cv_as_ix86_gotoff_in_data=yes
23507 elif test x$gcc_cv_as != x; then
23508 echo ' .text
23509 .L0:
23511 .data
23512 .long .L0@GOTOFF' > conftest.s
23513 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23515 (eval $ac_try) 2>&5
23516 ac_status=$?
23517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23518 test $ac_status = 0; }; }
23519 then
23520 gcc_cv_as_ix86_gotoff_in_data=yes
23521 else
23522 echo "configure: failed program was" >&5
23523 cat conftest.s >&5
23525 rm -f conftest.o conftest.s
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23529 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23532 cat >>confdefs.h <<_ACEOF
23533 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23534 _ACEOF
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23538 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23539 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23540 $as_echo_n "(cached) " >&6
23541 else
23542 gcc_cv_as_ix86_rep_lock_prefix=no
23543 if test x$gcc_cv_as != x; then
23544 echo 'rep movsl
23545 lock addl %edi, (%eax,%esi)
23546 lock orl $0, (%esp)' > conftest.s
23547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; }
23553 then
23554 gcc_cv_as_ix86_rep_lock_prefix=yes
23555 else
23556 echo "configure: failed program was" >&5
23557 cat conftest.s >&5
23559 rm -f conftest.o conftest.s
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23563 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23564 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23566 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23572 ia64*-*-*)
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23574 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23575 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23576 $as_echo_n "(cached) " >&6
23577 else
23578 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23579 if test $in_tree_gas = yes; then
23580 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23581 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23583 elif test x$gcc_cv_as != x; then
23584 echo ' .text
23585 addl r15 = @ltoffx(x#), gp
23587 ld8.mov r16 = [r15], x#' > 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_ia64_ltoffx_ldxmov_relocs=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_ia64_ltoffx_ldxmov_relocs" >&5
23604 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23605 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23607 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23613 powerpc*-*-*)
23614 case $target in
23615 *-*-aix*) conftest_s=' .machine "pwr5"
23616 .csect .text[PR]
23617 mfcr 3,128';;
23618 *-*-darwin*)
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23620 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23621 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23622 $as_echo_n "(cached) " >&6
23623 else
23624 gcc_cv_as_machine_directive=no
23625 if test x$gcc_cv_as != x; then
23626 echo ' .machine ppc7400' > conftest.s
23627 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23629 (eval $ac_try) 2>&5
23630 ac_status=$?
23631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23632 test $ac_status = 0; }; }
23633 then
23634 gcc_cv_as_machine_directive=yes
23635 else
23636 echo "configure: failed program was" >&5
23637 cat conftest.s >&5
23639 rm -f conftest.o conftest.s
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23643 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23645 if test x$gcc_cv_as_machine_directive != xyes; then
23646 echo "*** This target requires an assembler supporting \".machine\"" >&2
23647 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23648 test x$build = x$target && exit 1
23650 conftest_s=' .text
23651 mfcr r3,128';;
23652 *) conftest_s=' .machine power4
23653 .text
23654 mfcr 3,128';;
23655 esac
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23658 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23659 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23660 $as_echo_n "(cached) " >&6
23661 else
23662 gcc_cv_as_powerpc_mfcrf=no
23663 if test $in_tree_gas = yes; then
23664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23665 then gcc_cv_as_powerpc_mfcrf=yes
23667 elif test x$gcc_cv_as != x; then
23668 echo "$conftest_s" > conftest.s
23669 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23674 test $ac_status = 0; }; }
23675 then
23676 gcc_cv_as_powerpc_mfcrf=yes
23677 else
23678 echo "configure: failed program was" >&5
23679 cat conftest.s >&5
23681 rm -f conftest.o conftest.s
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23685 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23686 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23688 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23692 case $target in
23693 *-*-aix*) conftest_s=' .machine "pwr5"
23694 .csect .text[PR]
23695 popcntb 3,3';;
23696 *) conftest_s=' .machine power5
23697 .text
23698 popcntb 3,3';;
23699 esac
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23702 $as_echo_n "checking assembler for popcntb support... " >&6; }
23703 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23704 $as_echo_n "(cached) " >&6
23705 else
23706 gcc_cv_as_powerpc_popcntb=no
23707 if test $in_tree_gas = yes; then
23708 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23709 then gcc_cv_as_powerpc_popcntb=yes
23711 elif test x$gcc_cv_as != x; then
23712 echo "$conftest_s" > conftest.s
23713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23718 test $ac_status = 0; }; }
23719 then
23720 gcc_cv_as_powerpc_popcntb=yes
23721 else
23722 echo "configure: failed program was" >&5
23723 cat conftest.s >&5
23725 rm -f conftest.o conftest.s
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23729 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23730 if test $gcc_cv_as_powerpc_popcntb = yes; then
23732 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23736 case $target in
23737 *-*-aix*) conftest_s=' .machine "pwr5x"
23738 .csect .text[PR]
23739 frin 1,1';;
23740 *) conftest_s=' .machine power5
23741 .text
23742 frin 1,1';;
23743 esac
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23746 $as_echo_n "checking assembler for fp round support... " >&6; }
23747 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23748 $as_echo_n "(cached) " >&6
23749 else
23750 gcc_cv_as_powerpc_fprnd=no
23751 if test $in_tree_gas = yes; then
23752 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23753 then gcc_cv_as_powerpc_fprnd=yes
23755 elif test x$gcc_cv_as != x; then
23756 echo "$conftest_s" > conftest.s
23757 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23759 (eval $ac_try) 2>&5
23760 ac_status=$?
23761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23762 test $ac_status = 0; }; }
23763 then
23764 gcc_cv_as_powerpc_fprnd=yes
23765 else
23766 echo "configure: failed program was" >&5
23767 cat conftest.s >&5
23769 rm -f conftest.o conftest.s
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23773 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23774 if test $gcc_cv_as_powerpc_fprnd = yes; then
23776 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23780 case $target in
23781 *-*-aix*) conftest_s=' .machine "pwr6"
23782 .csect .text[PR]
23783 mffgpr 1,3';;
23784 *) conftest_s=' .machine power6
23785 .text
23786 mffgpr 1,3';;
23787 esac
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23790 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23791 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23792 $as_echo_n "(cached) " >&6
23793 else
23794 gcc_cv_as_powerpc_mfpgpr=no
23795 if test $in_tree_gas = yes; then
23796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23797 then gcc_cv_as_powerpc_mfpgpr=yes
23799 elif test x$gcc_cv_as != x; then
23800 echo "$conftest_s" > conftest.s
23801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23803 (eval $ac_try) 2>&5
23804 ac_status=$?
23805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23806 test $ac_status = 0; }; }
23807 then
23808 gcc_cv_as_powerpc_mfpgpr=yes
23809 else
23810 echo "configure: failed program was" >&5
23811 cat conftest.s >&5
23813 rm -f conftest.o conftest.s
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23817 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23818 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23820 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23824 case $target in
23825 *-*-aix*) conftest_s=' .csect .text[PR]
23826 LCF..0:
23827 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23828 *-*-darwin*)
23829 conftest_s=' .text
23830 LCF0:
23831 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23832 *) conftest_s=' .text
23833 .LCF0:
23834 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23835 esac
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23838 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23839 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23840 $as_echo_n "(cached) " >&6
23841 else
23842 gcc_cv_as_powerpc_rel16=no
23843 if test $in_tree_gas = yes; then
23844 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23845 then gcc_cv_as_powerpc_rel16=yes
23847 elif test x$gcc_cv_as != x; then
23848 echo "$conftest_s" > conftest.s
23849 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23854 test $ac_status = 0; }; }
23855 then
23856 gcc_cv_as_powerpc_rel16=yes
23857 else
23858 echo "configure: failed program was" >&5
23859 cat conftest.s >&5
23861 rm -f conftest.o conftest.s
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23865 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23866 if test $gcc_cv_as_powerpc_rel16 = yes; then
23868 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23872 case $target in
23873 *-*-aix*) conftest_s=' .machine "pwr6"
23874 .csect .text[PR]
23875 cmpb 3,4,5';;
23876 *) conftest_s=' .machine power6
23877 .text
23878 cmpb 3,4,5';;
23879 esac
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23882 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23883 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23884 $as_echo_n "(cached) " >&6
23885 else
23886 gcc_cv_as_powerpc_cmpb=no
23887 if test $in_tree_gas = yes; then
23888 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23889 then gcc_cv_as_powerpc_cmpb=yes
23891 elif test x$gcc_cv_as != x; then
23892 echo "$conftest_s" > conftest.s
23893 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23895 (eval $ac_try) 2>&5
23896 ac_status=$?
23897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23898 test $ac_status = 0; }; }
23899 then
23900 gcc_cv_as_powerpc_cmpb=yes
23901 else
23902 echo "configure: failed program was" >&5
23903 cat conftest.s >&5
23905 rm -f conftest.o conftest.s
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23909 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23910 if test $gcc_cv_as_powerpc_cmpb = yes; then
23912 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23916 case $target in
23917 *-*-aix*) conftest_s=' .machine "pwr6"
23918 .csect .text[PR]
23919 dadd 1,2,3';;
23920 *) conftest_s=' .machine power6
23921 .text
23922 dadd 1,2,3';;
23923 esac
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23926 $as_echo_n "checking assembler for decimal float support... " >&6; }
23927 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23928 $as_echo_n "(cached) " >&6
23929 else
23930 gcc_cv_as_powerpc_dfp=no
23931 if test $in_tree_gas = yes; then
23932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23933 then gcc_cv_as_powerpc_dfp=yes
23935 elif test x$gcc_cv_as != x; then
23936 echo "$conftest_s" > conftest.s
23937 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23939 (eval $ac_try) 2>&5
23940 ac_status=$?
23941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23942 test $ac_status = 0; }; }
23943 then
23944 gcc_cv_as_powerpc_dfp=yes
23945 else
23946 echo "configure: failed program was" >&5
23947 cat conftest.s >&5
23949 rm -f conftest.o conftest.s
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23953 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23954 if test $gcc_cv_as_powerpc_dfp = yes; then
23956 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23960 case $target in
23961 *-*-aix*) conftest_s=' .machine "pwr7"
23962 .csect .text[PR]
23963 lxvd2x 1,2,3';;
23964 *) conftest_s=' .machine power7
23965 .text
23966 lxvd2x 1,2,3';;
23967 esac
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23970 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23971 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23972 $as_echo_n "(cached) " >&6
23973 else
23974 gcc_cv_as_powerpc_vsx=no
23975 if test $in_tree_gas = yes; then
23976 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23977 then gcc_cv_as_powerpc_vsx=yes
23979 elif test x$gcc_cv_as != x; then
23980 echo "$conftest_s" > conftest.s
23981 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23983 (eval $ac_try) 2>&5
23984 ac_status=$?
23985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23986 test $ac_status = 0; }; }
23987 then
23988 gcc_cv_as_powerpc_vsx=yes
23989 else
23990 echo "configure: failed program was" >&5
23991 cat conftest.s >&5
23993 rm -f conftest.o conftest.s
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23997 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23998 if test $gcc_cv_as_powerpc_vsx = yes; then
24000 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24004 case $target in
24005 *-*-aix*) conftest_s=' .machine "pwr7"
24006 .csect .text[PR]
24007 popcntd 3,3';;
24008 *) conftest_s=' .machine power7
24009 .text
24010 popcntd 3,3';;
24011 esac
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24014 $as_echo_n "checking assembler for popcntd support... " >&6; }
24015 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24016 $as_echo_n "(cached) " >&6
24017 else
24018 gcc_cv_as_powerpc_popcntd=no
24019 if test $in_tree_gas = yes; then
24020 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24021 then gcc_cv_as_powerpc_popcntd=yes
24023 elif test x$gcc_cv_as != x; then
24024 echo "$conftest_s" > conftest.s
24025 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24027 (eval $ac_try) 2>&5
24028 ac_status=$?
24029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24030 test $ac_status = 0; }; }
24031 then
24032 gcc_cv_as_powerpc_popcntd=yes
24033 else
24034 echo "configure: failed program was" >&5
24035 cat conftest.s >&5
24037 rm -f conftest.o conftest.s
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24041 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24042 if test $gcc_cv_as_powerpc_popcntd = yes; then
24044 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24048 case $target in
24049 *-*-aix*) conftest_s=' .csect .text[PR]
24050 lwsync';;
24051 *) conftest_s=' .text
24052 lwsync';;
24053 esac
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24056 $as_echo_n "checking assembler for lwsync support... " >&6; }
24057 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
24059 else
24060 gcc_cv_as_powerpc_lwsync=no
24061 if test $in_tree_gas = yes; then
24062 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24063 then gcc_cv_as_powerpc_lwsync=yes
24065 elif test x$gcc_cv_as != x; then
24066 echo "$conftest_s" > conftest.s
24067 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24069 (eval $ac_try) 2>&5
24070 ac_status=$?
24071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24072 test $ac_status = 0; }; }
24073 then
24074 gcc_cv_as_powerpc_lwsync=yes
24075 else
24076 echo "configure: failed program was" >&5
24077 cat conftest.s >&5
24079 rm -f conftest.o conftest.s
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24083 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24084 if test $gcc_cv_as_powerpc_lwsync = yes; then
24086 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24090 case $target in
24091 *-*-aix*) conftest_s=' .machine "476"
24092 .csect .text[PR]
24093 dci 0';;
24094 *) conftest_s=' .machine "476"
24095 .text
24096 dci 0';;
24097 esac
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24100 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24101 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24102 $as_echo_n "(cached) " >&6
24103 else
24104 gcc_cv_as_powerpc_dci=no
24105 if test $in_tree_gas = yes; then
24106 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24107 then gcc_cv_as_powerpc_dci=yes
24109 elif test x$gcc_cv_as != x; then
24110 echo "$conftest_s" > conftest.s
24111 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24113 (eval $ac_try) 2>&5
24114 ac_status=$?
24115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24116 test $ac_status = 0; }; }
24117 then
24118 gcc_cv_as_powerpc_dci=yes
24119 else
24120 echo "configure: failed program was" >&5
24121 cat conftest.s >&5
24123 rm -f conftest.o conftest.s
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24127 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24128 if test $gcc_cv_as_powerpc_dci = yes; then
24130 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24135 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24136 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24137 $as_echo_n "(cached) " >&6
24138 else
24139 gcc_cv_as_powerpc_gnu_attribute=no
24140 if test $in_tree_gas = yes; then
24141 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24142 then gcc_cv_as_powerpc_gnu_attribute=yes
24144 elif test x$gcc_cv_as != x; then
24145 echo '.gnu_attribute 4,1' > conftest.s
24146 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24148 (eval $ac_try) 2>&5
24149 ac_status=$?
24150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24151 test $ac_status = 0; }; }
24152 then
24153 gcc_cv_as_powerpc_gnu_attribute=yes
24154 else
24155 echo "configure: failed program was" >&5
24156 cat conftest.s >&5
24158 rm -f conftest.o conftest.s
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24162 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24163 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24165 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24170 $as_echo_n "checking assembler for tls marker support... " >&6; }
24171 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24172 $as_echo_n "(cached) " >&6
24173 else
24174 gcc_cv_as_powerpc_tls_markers=no
24175 if test $in_tree_gas = yes; then
24176 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24177 then gcc_cv_as_powerpc_tls_markers=yes
24179 elif test x$gcc_cv_as != x; then
24180 echo ' bl __tls_get_addr(x@tlsgd)' > 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_powerpc_tls_markers=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_powerpc_tls_markers" >&5
24197 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24198 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24200 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24204 case $target in
24205 *-*-aix*)
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24207 $as_echo_n "checking assembler for .ref support... " >&6; }
24208 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24210 else
24211 gcc_cv_as_aix_ref=no
24212 if test $in_tree_gas = yes; then
24213 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24214 then :
24216 elif test x$gcc_cv_as != x; then
24217 echo ' .csect stuff[rw]
24218 stuff:
24219 .long 1
24220 .extern sym
24221 .ref sym
24222 ' > conftest.s
24223 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24228 test $ac_status = 0; }; }
24229 then
24230 gcc_cv_as_aix_ref=yes
24231 else
24232 echo "configure: failed program was" >&5
24233 cat conftest.s >&5
24235 rm -f conftest.o conftest.s
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24239 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24240 if test $gcc_cv_as_aix_ref = yes; then
24242 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24246 esac
24249 mips*-*-*)
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24251 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24252 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24253 $as_echo_n "(cached) " >&6
24254 else
24255 gcc_cv_as_mips_explicit_relocs=no
24256 if test $in_tree_gas = yes; then
24257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24258 then gcc_cv_as_mips_explicit_relocs=yes
24260 elif test x$gcc_cv_as != x; then
24261 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24262 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24264 (eval $ac_try) 2>&5
24265 ac_status=$?
24266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24267 test $ac_status = 0; }; }
24268 then
24269 gcc_cv_as_mips_explicit_relocs=yes
24270 else
24271 echo "configure: failed program was" >&5
24272 cat conftest.s >&5
24274 rm -f conftest.o conftest.s
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24278 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24279 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24280 if test x$target_cpu_default = x
24281 then target_cpu_default=MASK_EXPLICIT_RELOCS
24282 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24286 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24287 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24288 $as_echo_n "(cached) " >&6
24289 else
24290 gcc_cv_as_mips_no_shared=no
24291 if test $in_tree_gas = yes; then
24292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24293 then gcc_cv_as_mips_no_shared=yes
24295 elif test x$gcc_cv_as != x; then
24296 echo 'nop' > conftest.s
24297 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24302 test $ac_status = 0; }; }
24303 then
24304 gcc_cv_as_mips_no_shared=yes
24305 else
24306 echo "configure: failed program was" >&5
24307 cat conftest.s >&5
24309 rm -f conftest.o conftest.s
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24313 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24314 if test $gcc_cv_as_mips_no_shared = yes; then
24316 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24321 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24322 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24323 $as_echo_n "(cached) " >&6
24324 else
24325 gcc_cv_as_mips_gnu_attribute=no
24326 if test $in_tree_gas = yes; then
24327 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24328 then gcc_cv_as_mips_gnu_attribute=yes
24330 elif test x$gcc_cv_as != x; then
24331 echo '.gnu_attribute 4,1' > conftest.s
24332 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24334 (eval $ac_try) 2>&5
24335 ac_status=$?
24336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24337 test $ac_status = 0; }; }
24338 then
24339 gcc_cv_as_mips_gnu_attribute=yes
24340 else
24341 echo "configure: failed program was" >&5
24342 cat conftest.s >&5
24344 rm -f conftest.o conftest.s
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24348 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24349 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24351 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24356 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24357 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24358 $as_echo_n "(cached) " >&6
24359 else
24360 gcc_cv_as_mips_dtprelword=no
24361 if test $in_tree_gas = yes; then
24362 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24363 then gcc_cv_as_mips_dtprelword=yes
24365 elif test x$gcc_cv_as != x; then
24366 echo '.section .tdata,"awT",@progbits
24368 .word 2
24369 .text
24370 .dtprelword x+0x8000' > conftest.s
24371 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24373 (eval $ac_try) 2>&5
24374 ac_status=$?
24375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24376 test $ac_status = 0; }; }
24377 then
24378 gcc_cv_as_mips_dtprelword=yes
24379 else
24380 echo "configure: failed program was" >&5
24381 cat conftest.s >&5
24383 rm -f conftest.o conftest.s
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24387 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24388 if test $gcc_cv_as_mips_dtprelword = yes; then
24390 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24395 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24396 gcc_cv_as_ld_jalr_reloc=no
24397 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24398 if test $in_tree_ld = yes ; then
24399 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 \
24400 && test $in_tree_ld_is_elf = yes; then
24401 gcc_cv_as_ld_jalr_reloc=yes
24403 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24404 echo ' .ent x' > conftest.s
24405 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24406 echo ' ld $25,%call16(y)($28)' >> conftest.s
24407 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24408 echo '1: jalr $25' >> conftest.s
24409 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24410 echo '1: jalr $25' >> conftest.s
24411 echo ' .end x' >> conftest.s
24412 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24413 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24414 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24415 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24416 gcc_cv_as_ld_jalr_reloc=yes
24419 rm -f conftest.*
24422 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24423 if test x$target_cpu_default = x; then
24424 target_cpu_default=MASK_RELAX_PIC_CALLS
24425 else
24426 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24430 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24433 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24434 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 gcc_cv_ld_mips_personality_relaxation=no
24438 if test $in_tree_ld = yes ; then
24439 if test "$gcc_cv_gld_major_version" -eq 2 \
24440 -a "$gcc_cv_gld_minor_version" -ge 21 \
24441 -o "$gcc_cv_gld_major_version" -gt 2; then
24442 gcc_cv_ld_mips_personality_relaxation=yes
24444 elif test x$gcc_cv_as != x \
24445 -a x$gcc_cv_ld != x \
24446 -a x$gcc_cv_readelf != x ; then
24447 cat > conftest.s <<EOF
24448 .cfi_startproc
24449 .cfi_personality 0x80,indirect_ptr
24450 .ent test
24451 test:
24453 .end test
24454 .cfi_endproc
24456 .section .data,"aw",@progbits
24457 indirect_ptr:
24458 .dc.a personality
24460 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24461 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24462 if $gcc_cv_readelf -d conftest 2>&1 \
24463 | grep TEXTREL > /dev/null 2>&1; then
24465 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24466 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24468 else
24469 gcc_cv_ld_mips_personality_relaxation=yes
24473 rm -f conftest.s conftest.o conftest
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24476 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24477 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24479 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24483 esac
24485 # Mips and HP-UX need the GNU assembler.
24486 # Linux on IA64 might be able to use the Intel assembler.
24488 case "$target" in
24489 mips*-*-* | *-*-hpux* )
24490 if test x$gas_flag = xyes \
24491 || test x"$host" != x"$build" \
24492 || test ! -x "$gcc_cv_as" \
24493 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24495 else
24496 echo "*** This configuration requires the GNU assembler" >&2
24497 exit 1
24500 esac
24502 # ??? Not all targets support dwarf2 debug_line, even within a version
24503 # of gas. Moreover, we need to emit a valid instruction to trigger any
24504 # info to the output file. So, as supported targets are added to gas 2.11,
24505 # add some instruction here to (also) show we expect this might work.
24506 # ??? Once 2.11 is released, probably need to add first known working
24507 # version to the per-target configury.
24508 case "$cpu_type" in
24509 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24510 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24511 insn="nop"
24513 ia64 | s390)
24514 insn="nop 0"
24516 mmix)
24517 insn="swym 0"
24519 esac
24520 if test x"$insn" != x; then
24521 conftest_s="\
24522 .file 1 \"conftest.s\"
24523 .loc 1 3 0
24524 $insn"
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24526 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24527 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24528 $as_echo_n "(cached) " >&6
24529 else
24530 gcc_cv_as_dwarf2_debug_line=no
24531 if test $in_tree_gas = yes; then
24532 if test $in_tree_gas_is_elf = yes \
24533 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24534 then gcc_cv_as_dwarf2_debug_line=yes
24536 elif test x$gcc_cv_as != x; then
24537 echo "$conftest_s" > conftest.s
24538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24540 (eval $ac_try) 2>&5
24541 ac_status=$?
24542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24543 test $ac_status = 0; }; }
24544 then
24545 if test x$gcc_cv_objdump != x \
24546 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24547 | grep debug_line > /dev/null 2>&1; then
24548 gcc_cv_as_dwarf2_debug_line=yes
24550 else
24551 echo "configure: failed program was" >&5
24552 cat conftest.s >&5
24554 rm -f conftest.o conftest.s
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24558 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24561 # The .debug_line file table must be in the exact order that
24562 # we specified the files, since these indices are also used
24563 # by DW_AT_decl_file. Approximate this test by testing if
24564 # the assembler bitches if the same index is assigned twice.
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24566 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24567 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24568 $as_echo_n "(cached) " >&6
24569 else
24570 gcc_cv_as_dwarf2_file_buggy=no
24571 if test x$gcc_cv_as != x; then
24572 echo ' .file 1 "foo.s"
24573 .file 1 "bar.s"' > conftest.s
24574 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24577 ac_status=$?
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; }
24580 then
24581 gcc_cv_as_dwarf2_file_buggy=yes
24582 else
24583 echo "configure: failed program was" >&5
24584 cat conftest.s >&5
24586 rm -f conftest.o conftest.s
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24590 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24593 if test $gcc_cv_as_dwarf2_debug_line = yes \
24594 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24596 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24601 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24602 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 gcc_cv_as_gdwarf2_flag=no
24606 if test $in_tree_gas = yes; then
24607 if test $in_tree_gas_is_elf = yes \
24608 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24609 then gcc_cv_as_gdwarf2_flag=yes
24611 elif test x$gcc_cv_as != x; then
24612 echo "$insn" > conftest.s
24613 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24618 test $ac_status = 0; }; }
24619 then
24620 gcc_cv_as_gdwarf2_flag=yes
24621 else
24622 echo "configure: failed program was" >&5
24623 cat conftest.s >&5
24625 rm -f conftest.o conftest.s
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24629 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24630 if test $gcc_cv_as_gdwarf2_flag = yes; then
24632 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24637 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24638 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24639 $as_echo_n "(cached) " >&6
24640 else
24641 gcc_cv_as_gstabs_flag=no
24642 if test $in_tree_gas = yes; then
24643 if test $in_tree_gas_is_elf = yes \
24644 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24645 then gcc_cv_as_gstabs_flag=yes
24647 elif test x$gcc_cv_as != x; then
24648 echo "$insn" > conftest.s
24649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24654 test $ac_status = 0; }; }
24655 then
24656 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24657 # and warns about it, but still exits successfully. So check for
24658 # this.
24659 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24661 (eval $ac_try) 2>&5
24662 ac_status=$?
24663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24664 test $ac_status = 0; }; }
24665 then :
24666 else gcc_cv_as_gstabs_flag=yes
24668 else
24669 echo "configure: failed program was" >&5
24670 cat conftest.s >&5
24672 rm -f conftest.o conftest.s
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24676 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24677 if test $gcc_cv_as_gstabs_flag = yes; then
24679 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24684 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24685 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24686 $as_echo_n "(cached) " >&6
24687 else
24688 gcc_cv_as_debug_prefix_map_flag=no
24689 if test $in_tree_gas = yes; then
24690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24691 then gcc_cv_as_debug_prefix_map_flag=yes
24693 elif test x$gcc_cv_as != x; then
24694 echo "$insn" > conftest.s
24695 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24698 ac_status=$?
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24701 then
24702 gcc_cv_as_debug_prefix_map_flag=yes
24703 else
24704 echo "configure: failed program was" >&5
24705 cat conftest.s >&5
24707 rm -f conftest.o conftest.s
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24711 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24712 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24714 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24720 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24721 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24723 else
24724 gcc_cv_as_lcomm_with_alignment=no
24725 if test x$gcc_cv_as != x; then
24726 echo '.lcomm bar,4,16' > conftest.s
24727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24729 (eval $ac_try) 2>&5
24730 ac_status=$?
24731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24732 test $ac_status = 0; }; }
24733 then
24734 gcc_cv_as_lcomm_with_alignment=yes
24735 else
24736 echo "configure: failed program was" >&5
24737 cat conftest.s >&5
24739 rm -f conftest.o conftest.s
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24743 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24744 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24746 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24750 # Check whether --enable-gnu-unique-object was given.
24751 if test "${enable_gnu_unique_object+set}" = set; then :
24752 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24753 yes | no) ;;
24754 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24755 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24756 esac
24757 else
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24759 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24760 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24761 $as_echo_n "(cached) " >&6
24762 else
24763 gcc_cv_as_gnu_unique_object=no
24764 if test $in_tree_gas = yes; then
24765 if test $in_tree_gas_is_elf = yes \
24766 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24767 then gcc_cv_as_gnu_unique_object=yes
24769 elif test x$gcc_cv_as != x; then
24770 echo '.type foo, @gnu_unique_object' > conftest.s
24771 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24776 test $ac_status = 0; }; }
24777 then
24778 gcc_cv_as_gnu_unique_object=yes
24779 else
24780 echo "configure: failed program was" >&5
24781 cat conftest.s >&5
24783 rm -f conftest.o conftest.s
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24787 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24788 if test $gcc_cv_as_gnu_unique_object = yes; then
24789 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24790 if test x$host = x$build -a x$host = x$target &&
24791 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24792 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24793 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24794 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24795 if test "$glibcnum" -ge 2011 ; then
24796 enable_gnu_unique_object=yes
24802 if test x$enable_gnu_unique_object = xyes; then
24804 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24809 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24810 if test "${gcc_cv_as_line_zero+set}" = set; then :
24811 $as_echo_n "(cached) " >&6
24812 else
24813 gcc_cv_as_line_zero=no
24814 if test $in_tree_gas = yes; then
24815 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24816 then gcc_cv_as_line_zero=yes
24818 elif test "x$gcc_cv_as" != x; then
24819 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24820 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24822 (eval $ac_try) 2>&5
24823 ac_status=$?
24824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24825 test $ac_status = 0; }; } &&
24826 test "x`cat conftest.out`" = x
24827 then
24828 gcc_cv_as_line_zero=yes
24829 else
24830 echo "configure: failed program was" >&5
24831 cat conftest.s >&5
24832 echo "configure: error output was" >&5
24833 cat conftest.out >&5
24835 rm -f conftest.o conftest.s conftest.out
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24839 $as_echo "$gcc_cv_as_line_zero" >&6; }
24840 if test "x$gcc_cv_as_line_zero" = xyes; then
24842 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24847 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24848 gcc_cv_ld_eh_frame_hdr=no
24849 if test $in_tree_ld = yes ; then
24850 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 \
24851 && test $in_tree_ld_is_elf = yes; then
24852 gcc_cv_ld_eh_frame_hdr=yes
24854 elif test x$gcc_cv_ld != x; then
24855 # Check if linker supports --eh-frame-hdr option
24856 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24857 gcc_cv_ld_eh_frame_hdr=yes
24861 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24863 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24867 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24870 $as_echo_n "checking linker position independent executable support... " >&6; }
24871 gcc_cv_ld_pie=no
24872 if test $in_tree_ld = yes ; then
24873 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 \
24874 && test $in_tree_ld_is_elf = yes; then
24875 gcc_cv_ld_pie=yes
24877 elif test x$gcc_cv_ld != x; then
24878 # Check if linker supports -pie option
24879 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24880 gcc_cv_ld_pie=yes
24883 if test x"$gcc_cv_ld_pie" = xyes; then
24885 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24889 $as_echo "$gcc_cv_ld_pie" >&6; }
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24892 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24893 gcc_cv_ld_eh_gc_sections=no
24894 if test $in_tree_ld = yes ; then
24895 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 \
24896 && test $in_tree_ld_is_elf = yes; then
24897 gcc_cv_ld_eh_gc_sections=yes
24899 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24900 cat > conftest.s <<EOF
24901 .section .text
24902 .globl _start
24903 .type _start, @function
24904 _start:
24905 .long foo
24906 .size _start, .-_start
24907 .section .text.foo,"ax",@progbits
24908 .type foo, @function
24909 foo:
24910 .long 0
24911 .size foo, .-foo
24912 .section .gcc_except_table.foo,"a",@progbits
24913 .L0:
24914 .long 0
24915 .section .eh_frame,"a",@progbits
24916 .long .L0
24918 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24919 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24920 | grep "gc-sections option ignored" > /dev/null; then
24921 gcc_cv_ld_eh_gc_sections=no
24922 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24923 | grep gcc_except_table > /dev/null; then
24924 gcc_cv_ld_eh_gc_sections=yes
24925 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24926 if test x$gcc_cv_as_comdat_group != xyes; then
24927 gcc_cv_ld_eh_gc_sections=no
24928 cat > conftest.s <<EOF
24929 .section .text
24930 .globl _start
24931 .type _start, @function
24932 _start:
24933 .long foo
24934 .size _start, .-_start
24935 .section .gnu.linkonce.t.foo,"ax",@progbits
24936 .type foo, @function
24937 foo:
24938 .long 0
24939 .size foo, .-foo
24940 .section .gcc_except_table.foo,"a",@progbits
24941 .L0:
24942 .long 0
24943 .section .eh_frame,"a",@progbits
24944 .long .L0
24946 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24947 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24948 | grep "gc-sections option ignored" > /dev/null; then
24949 gcc_cv_ld_eh_gc_sections=no
24950 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24951 | grep gcc_except_table > /dev/null; then
24952 gcc_cv_ld_eh_gc_sections=yes
24958 rm -f conftest.s conftest.o conftest
24960 case "$target" in
24961 hppa*-*-linux*)
24962 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24963 gcc_cv_ld_eh_gc_sections=no
24965 esac
24966 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24968 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24972 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24974 # --------
24975 # UNSORTED
24976 # --------
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24979 $as_echo_n "checking linker --as-needed support... " >&6; }
24980 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24981 $as_echo_n "(cached) " >&6
24982 else
24983 gcc_cv_ld_as_needed=no
24984 if test $in_tree_ld = yes ; then
24985 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 \
24986 && test $in_tree_ld_is_elf = yes; then
24987 gcc_cv_ld_as_needed=yes
24989 elif test x$gcc_cv_ld != x; then
24990 # Check if linker supports --as-needed and --no-as-needed options
24991 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24992 gcc_cv_ld_as_needed=yes
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24998 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24999 if test x"$gcc_cv_ld_as_needed" = xyes; then
25001 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25005 case "$target:$tm_file" in
25006 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25008 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25009 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25010 $as_echo_n "(cached) " >&6
25011 else
25012 gcc_cv_ld_no_dot_syms=no
25013 if test $in_tree_ld = yes ; then
25014 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
25015 gcc_cv_ld_no_dot_syms=yes
25017 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25018 cat > conftest1.s <<EOF
25019 .text
25020 bl .foo
25022 cat > conftest2.s <<EOF
25023 .section ".opd","aw"
25024 .align 3
25025 .globl foo
25026 .type foo,@function
25027 foo:
25028 .quad .LEfoo,.TOC.@tocbase,0
25029 .text
25030 .LEfoo:
25032 .size foo,.-.LEfoo
25034 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25035 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25036 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25037 gcc_cv_ld_no_dot_syms=yes
25039 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25044 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25045 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25047 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25052 $as_echo_n "checking linker large toc support... " >&6; }
25053 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25055 else
25056 gcc_cv_ld_large_toc=no
25057 if test $in_tree_ld = yes ; then
25058 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
25059 gcc_cv_ld_large_toc=yes
25061 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25062 cat > conftest.s <<EOF
25063 .section ".tbss","awT",@nobits
25064 .align 3
25065 ie0: .space 8
25066 .global _start
25067 .text
25068 _start:
25069 addis 9,13,ie0@got@tprel@ha
25070 ld 9,ie0@got@tprel@l(9)
25072 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25073 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25074 gcc_cv_ld_large_toc=yes
25076 rm -f conftest conftest.o conftest.s
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25081 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25082 if test x"$gcc_cv_ld_large_toc" = xyes; then
25084 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25088 esac
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25091 $as_echo_n "checking linker --build-id support... " >&6; }
25092 if test "${gcc_cv_ld_buildid+set}" = set; then :
25093 $as_echo_n "(cached) " >&6
25094 else
25095 gcc_cv_ld_buildid=no
25096 if test $in_tree_ld = yes ; then
25097 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25098 "$gcc_cv_gld_minor_version" -ge 18 -o \
25099 "$gcc_cv_gld_major_version" -gt 2 \
25100 && test $in_tree_ld_is_elf = yes; then
25101 gcc_cv_ld_buildid=yes
25103 elif test x$gcc_cv_ld != x; then
25104 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25105 gcc_cv_ld_buildid=yes
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25110 $as_echo "$gcc_cv_ld_buildid" >&6; }
25111 if test x"$gcc_cv_ld_buildid" = xyes; then
25113 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25117 # Check whether --enable-linker-build-id was given.
25118 if test "${enable_linker_build_id+set}" = set; then :
25119 enableval=$enable_linker_build_id;
25120 else
25121 enable_linker_build_id=no
25125 if test x"$enable_linker_build_id" = xyes; then
25126 if test x"$gcc_cv_ld_buildid" = xyes; then
25128 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25130 else
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25132 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25136 # In binutils 2.21, GNU ld gained support for new emulations fully
25137 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25139 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25140 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25141 $as_echo_n "(cached) " >&6
25142 else
25143 gcc_cv_ld_sol2_emulation=no
25144 if test $in_tree_ld = yes ; then
25145 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25146 "$gcc_cv_gld_minor_version" -ge 21 -o \
25147 "$gcc_cv_gld_major_version" -gt 2 \
25148 && test $in_tree_ld_is_elf = yes; then
25149 gcc_cv_ld_sol2_emulation=yes
25151 elif test x$gcc_cv_ld != x; then
25152 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25153 grep _sol2 > /dev/null; then
25154 gcc_cv_ld_sol2_emulation=yes
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25159 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25160 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25162 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25167 $as_echo_n "checking linker --sysroot support... " >&6; }
25168 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25169 $as_echo_n "(cached) " >&6
25170 else
25171 gcc_cv_ld_sysroot=no
25172 if test $in_tree_ld = yes ; then
25173 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
25174 gcc_cv_ld_sysroot=yes
25176 elif test x$gcc_cv_ld != x; then
25177 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25178 gcc_cv_ld_sysroot=yes
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25183 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25184 if test x"$gcc_cv_ld_sysroot" = xyes; then
25186 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25190 if test x$with_sysroot = x && test x$host = x$target \
25191 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25192 && test "$prefix" != "NONE"; then
25194 cat >>confdefs.h <<_ACEOF
25195 #define PREFIX_INCLUDE_DIR "$prefix/include"
25196 _ACEOF
25200 # Test for stack protector support in target C library.
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25202 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25203 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25205 else
25206 gcc_cv_libc_provides_ssp=no
25207 case "$target" in
25208 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25209 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25210 if test "x$with_headers" != x; then
25211 glibc_header_dir=$with_headers
25212 elif test "x$with_sysroot" = x; then
25213 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25214 elif test "x$with_build_sysroot" != "x"; then
25215 glibc_header_dir="${with_build_sysroot}/usr/include"
25216 elif test "x$with_sysroot" = xyes; then
25217 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25218 else
25219 glibc_header_dir="${with_sysroot}/usr/include"
25221 else
25222 glibc_header_dir=/usr/include
25224 # glibc 2.4 and later provides __stack_chk_fail and
25225 # either __stack_chk_guard, or TLS access to stack guard canary.
25226 if test -f $glibc_header_dir/features.h \
25227 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25228 $glibc_header_dir/features.h > /dev/null; then
25229 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25230 $glibc_header_dir/features.h > /dev/null; then
25231 gcc_cv_libc_provides_ssp=yes
25232 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25233 $glibc_header_dir/features.h > /dev/null \
25234 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25235 $glibc_header_dir/features.h > /dev/null; then
25236 gcc_cv_libc_provides_ssp=yes
25237 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25238 $glibc_header_dir/features.h > /dev/null && \
25239 test -f $glibc_header_dir/bits/uClibc_config.h && \
25240 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25241 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25242 gcc_cv_libc_provides_ssp=yes
25246 *-*-gnu*)
25247 # Avoid complicated tests (see
25248 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25249 # simply assert that glibc does provide this, which is true for all
25250 # realistically usable GNU/Hurd configurations.
25251 gcc_cv_libc_provides_ssp=yes;;
25252 *-*-darwin* | *-*-freebsd*)
25253 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25254 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25255 gcc_cv_libc_provides_ssp=yes
25256 else
25257 echo "no __stack_chk_fail on this target"
25261 *) gcc_cv_libc_provides_ssp=no ;;
25262 esac
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25265 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25267 if test x$gcc_cv_libc_provides_ssp = xyes; then
25269 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25273 # Check if TFmode long double should be used by default or not.
25274 # Some glibc targets used DFmode long double, but with glibc 2.4
25275 # and later they can use TFmode.
25276 case "$target" in
25277 powerpc*-*-linux* | \
25278 powerpc*-*-gnu* | \
25279 sparc*-*-linux* | \
25280 s390*-*-linux* | \
25281 alpha*-*-linux*)
25283 # Check whether --with-long-double-128 was given.
25284 if test "${with_long_double_128+set}" = set; then :
25285 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25286 else
25287 gcc_cv_target_ldbl128=no
25288 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25289 if test "x$with_sysroot" = x; then
25290 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25291 elif test "x$with_build_sysroot" != "x"; then
25292 glibc_header_dir="${with_build_sysroot}/usr/include"
25293 elif test "x$with_sysroot" = xyes; then
25294 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25295 else
25296 glibc_header_dir="${with_sysroot}/usr/include"
25298 else
25299 glibc_header_dir=/usr/include
25301 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25302 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25303 && gcc_cv_target_ldbl128=yes
25308 esac
25309 if test x$gcc_cv_target_ldbl128 = xyes; then
25311 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25315 # Find out what GC implementation we want, or may, use.
25317 # Check whether --with-gc was given.
25318 if test "${with_gc+set}" = set; then :
25319 withval=$with_gc; case "$withval" in
25320 page)
25321 GGC=ggc-$withval
25323 zone)
25324 GGC=ggc-$withval
25326 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25330 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25332 esac
25333 else
25334 GGC=ggc-page
25338 echo "Using $GGC for garbage collection."
25340 # Libraries to use on the host. This will normally be set by the top
25341 # level Makefile. Here we simply capture the value for our Makefile.
25342 if test -z "${HOST_LIBS+set}"; then
25343 HOST_LIBS=
25347 # Use the system's zlib library.
25348 zlibdir=-L../zlib
25349 zlibinc="-I\$(srcdir)/../zlib"
25351 # Check whether --with-system-zlib was given.
25352 if test "${with_system_zlib+set}" = set; then :
25353 withval=$with_system_zlib; zlibdir=
25354 zlibinc=
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25363 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25364 # Check whether --enable-maintainer-mode was given.
25365 if test "${enable_maintainer_mode+set}" = set; then :
25366 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25367 else
25368 maintainer_mode=no
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25373 $as_echo "$maintainer_mode" >&6; }
25375 if test "$maintainer_mode" = "yes"; then
25376 MAINT=''
25377 else
25378 MAINT='#'
25381 # --------------
25382 # Language hooks
25383 # --------------
25385 # Make empty files to contain the specs and options for each language.
25386 # Then add #include lines to for a compiler that has specs and/or options.
25388 subdirs=
25389 lang_opt_files=
25390 lang_specs_files=
25391 lang_tree_files=
25392 # These (without "all_") are set in each config-lang.in.
25393 # `language' must be a single word so is spelled singularly.
25394 all_languages=
25395 all_compilers=
25396 all_outputs='Makefile'
25397 # List of language makefile fragments.
25398 all_lang_makefrags=
25399 # Additional files for gengtype
25400 all_gtfiles="$target_gtfiles"
25402 # These are the languages that are set in --enable-languages,
25403 # and are available in the GCC tree.
25404 all_selected_languages=
25406 # Add the language fragments.
25407 # Languages are added via two mechanisms. Some information must be
25408 # recorded in makefile variables, these are defined in config-lang.in.
25409 # We accumulate them and plug them into the main Makefile.
25410 # The other mechanism is a set of hooks for each of the main targets
25411 # like `clean', `install', etc.
25413 language_hooks="Make-hooks"
25415 for lang in ${srcdir}/*/config-lang.in
25417 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25419 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25420 if test "x$lang_alias" = x
25421 then
25422 echo "$lang doesn't set \$language." 1>&2
25423 exit 1
25425 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25426 subdirs="$subdirs $subdir"
25428 # $gcc_subdir is where the gcc integration files are to be found
25429 # for a language, both for internal compiler purposes (compiler
25430 # sources implementing front-end to GCC tree converters), and for
25431 # build infrastructure purposes (Make-lang.in, etc.)
25433 # This will be <subdir> (relative to $srcdir) if a line like
25434 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25435 # is found in <langdir>/config-lang.in, and will remain <langdir>
25436 # otherwise.
25438 # Except for the language alias (fetched above), the regular
25439 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25440 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25441 # only this and the language alias.
25443 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25444 if [ "$gcc_subdir" = "" ]; then
25445 gcc_subdir="$subdir"
25448 case ",$enable_languages," in
25449 *,$lang_alias,*)
25450 all_selected_languages="$all_selected_languages $lang_alias"
25451 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25452 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25455 esac
25457 language=
25458 boot_language=
25459 compilers=
25460 outputs=
25461 gtfiles=
25462 subdir_requires=
25463 . ${srcdir}/$gcc_subdir/config-lang.in
25464 if test "x$language" = x
25465 then
25466 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25467 exit 1
25470 ok=:
25471 case ",$enable_languages," in
25472 *,$lang_alias,*) ;;
25474 for i in $subdir_requires; do
25475 test -f "${srcdir}/$i/config-lang.in" && continue
25476 ok=false
25477 break
25478 done
25480 esac
25481 $ok || continue
25483 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25484 if test -f $srcdir/$gcc_subdir/lang.opt; then
25485 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25487 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25488 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25490 all_languages="$all_languages $language"
25491 all_compilers="$all_compilers $compilers"
25492 all_outputs="$all_outputs $outputs"
25493 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25494 case ",$enable_languages," in
25495 *,lto,*)
25497 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25499 enable_lto=yes
25501 # LTO needs to speak the platform's object file format, and has a
25502 # number of implementations of the required binary file access APIs.
25503 # ELF is the most common, and default. We only link libelf if ELF
25504 # is indeed the selected format.
25505 LTO_BINARY_READER=${lto_binary_reader}
25506 LTO_USE_LIBELF=-lelf
25507 if test "x$lto_binary_reader" != "xlto-elf" ; then
25508 LTO_USE_LIBELF=
25513 *) ;;
25514 esac
25515 done
25517 # Pick up gtfiles for c
25518 gtfiles=
25519 . ${srcdir}/c-config-lang.in
25520 all_gtfiles="$all_gtfiles [c] $gtfiles"
25522 check_languages=
25523 for language in $all_selected_languages
25525 check_languages="$check_languages check-$language"
25526 done
25528 # We link each language in with a set of hooks, reached indirectly via
25529 # lang.${target}. Only do so for selected languages.
25531 rm -f Make-hooks
25532 touch Make-hooks
25533 target_list="all.cross start.encap rest.encap tags \
25534 install-common install-man install-info install-pdf install-html dvi \
25535 pdf html uninstall info man srcextra srcman srcinfo \
25536 mostlyclean clean distclean maintainer-clean install-plugin"
25538 for t in $target_list
25541 for lang in $all_selected_languages
25543 x="$x $lang.$t"
25544 done
25545 echo "lang.$t: $x" >> Make-hooks
25546 done
25548 # --------
25549 # UNSORTED
25550 # --------
25552 # Create .gdbinit.
25554 echo "dir ." > .gdbinit
25555 echo "dir ${srcdir}" >> .gdbinit
25556 if test x$gdb_needs_out_file_path = xyes
25557 then
25558 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25560 if test "x$subdirs" != x; then
25561 for s in $subdirs
25563 echo "dir ${srcdir}/$s" >> .gdbinit
25564 done
25566 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25568 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25572 # Find a directory in which to install a shared libgcc.
25574 # Check whether --enable-version-specific-runtime-libs was given.
25575 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25576 enableval=$enable_version_specific_runtime_libs;
25581 # Check whether --with-slibdir was given.
25582 if test "${with_slibdir+set}" = set; then :
25583 withval=$with_slibdir; slibdir="$with_slibdir"
25584 else
25585 if test "${enable_version_specific_runtime_libs+set}" = set; then
25586 slibdir='$(libsubdir)'
25587 elif test "$host" != "$target"; then
25588 slibdir='$(build_tooldir)/lib'
25589 else
25590 slibdir='$(libdir)'
25596 # Substitute configuration variables
25659 # Echo link setup.
25660 if test x${build} = x${host} ; then
25661 if test x${host} = x${target} ; then
25662 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25663 else
25664 echo "Links are now set up to build a cross-compiler" 1>&2
25665 echo " from ${host} to ${target}." 1>&2
25667 else
25668 if test x${host} = x${target} ; then
25669 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25670 echo " for ${target}." 1>&2
25671 else
25672 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25673 echo " from ${host} to ${target}." 1>&2
25685 if test "x${CLOOGLIBS}" != "x" ; then
25687 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25693 if test "x${LIBELFLIBS}" != "x" ; then
25695 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25699 # Check for plugin support
25700 # Check whether --enable-plugin was given.
25701 if test "${enable_plugin+set}" = set; then :
25702 enableval=$enable_plugin; enable_plugin=$enableval
25703 else
25704 enable_plugin=yes; default_plugin=yes
25708 pluginlibs=
25710 case "${host}" in
25711 *-*-darwin*)
25712 if test x$build = x$host; then
25713 export_sym_check="nm${exeext} -g"
25714 elif test x$host = x$target; then
25715 export_sym_check="$gcc_cv_nm -g"
25716 else
25717 export_sym_check=
25721 if test x$build = x$host; then
25722 export_sym_check="objdump${exeext} -T"
25723 elif test x$host = x$target; then
25724 export_sym_check="$gcc_cv_objdump -T"
25725 else
25726 export_sym_check=
25729 esac
25731 if test x"$enable_plugin" = x"yes"; then
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25734 $as_echo_n "checking for exported symbols... " >&6; }
25735 if test "x$export_sym_check" != x; then
25736 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25737 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25738 if $export_sym_check conftest | grep foobar > /dev/null; then
25739 : # No need to use a flag
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25741 $as_echo "yes" >&6; }
25742 else
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25744 $as_echo "yes" >&6; }
25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25746 $as_echo_n "checking for -rdynamic... " >&6; }
25747 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25748 if $export_sym_check conftest | grep foobar > /dev/null; then
25749 plugin_rdynamic=yes
25750 pluginlibs="-rdynamic"
25751 else
25752 plugin_rdynamic=no
25753 enable_plugin=no
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25756 $as_echo "$plugin_rdynamic" >&6; }
25758 else
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
25760 $as_echo "unable to check" >&6; }
25763 # Check -ldl
25764 saved_LIBS="$LIBS"
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25766 $as_echo_n "checking for library containing dlopen... " >&6; }
25767 if test "${ac_cv_search_dlopen+set}" = set; then :
25768 $as_echo_n "(cached) " >&6
25769 else
25770 ac_func_search_save_LIBS=$LIBS
25771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772 /* end confdefs.h. */
25774 /* Override any GCC internal prototype to avoid an error.
25775 Use char because int might match the return type of a GCC
25776 builtin and then its argument prototype would still apply. */
25777 #ifdef __cplusplus
25778 extern "C"
25779 #endif
25780 char dlopen ();
25782 main ()
25784 return dlopen ();
25786 return 0;
25788 _ACEOF
25789 for ac_lib in '' dl; do
25790 if test -z "$ac_lib"; then
25791 ac_res="none required"
25792 else
25793 ac_res=-l$ac_lib
25794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25796 if ac_fn_c_try_link "$LINENO"; then :
25797 ac_cv_search_dlopen=$ac_res
25799 rm -f core conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext
25801 if test "${ac_cv_search_dlopen+set}" = set; then :
25802 break
25804 done
25805 if test "${ac_cv_search_dlopen+set}" = set; then :
25807 else
25808 ac_cv_search_dlopen=no
25810 rm conftest.$ac_ext
25811 LIBS=$ac_func_search_save_LIBS
25813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25814 $as_echo "$ac_cv_search_dlopen" >&6; }
25815 ac_res=$ac_cv_search_dlopen
25816 if test "$ac_res" != no; then :
25817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25821 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25822 pluginlibs="$pluginlibs -ldl"
25824 LIBS="$saved_LIBS"
25826 # Check that we can build shared objects with -fPIC -shared
25827 saved_LDFLAGS="$LDFLAGS"
25828 case "${host}" in
25829 *-*-darwin*)
25830 LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25833 LDFLAGS="$LDFLAGS -fPIC -shared"
25835 esac
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25837 $as_echo_n "checking for -fPIC -shared... " >&6; }
25838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25839 /* end confdefs.h. */
25840 extern int X;
25842 main ()
25844 return X == 0;
25846 return 0;
25848 _ACEOF
25849 if ac_fn_c_try_link "$LINENO"; then :
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25851 $as_echo "yes" >&6; }; have_pic_shared=yes
25852 else
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25854 $as_echo "no" >&6; }; have_pic_shared=no
25856 rm -f core conftest.err conftest.$ac_objext \
25857 conftest$ac_exeext conftest.$ac_ext
25858 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25859 pluginlibs=
25860 enable_plugin=no
25862 LDFLAGS="$saved_LDFLAGS"
25864 # If plugin support had been requested but not available, fail.
25865 if test x"$enable_plugin" = x"no" ; then
25866 if test x"$default_plugin" != x"yes"; then
25867 as_fn_error "
25868 Building GCC with plugin support requires a host that supports
25869 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25876 if test x"$enable_plugin" = x"yes"; then
25878 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25882 # Configure the subdirectories
25883 # AC_CONFIG_SUBDIRS($subdirs)
25885 # Create the Makefile
25886 # and configure language subdirectories
25887 ac_config_files="$ac_config_files $all_outputs"
25890 ac_config_commands="$ac_config_commands default"
25892 cat >confcache <<\_ACEOF
25893 # This file is a shell script that caches the results of configure
25894 # tests run on this system so they can be shared between configure
25895 # scripts and configure runs, see configure's option --config-cache.
25896 # It is not useful on other systems. If it contains results you don't
25897 # want to keep, you may remove or edit it.
25899 # config.status only pays attention to the cache file if you give it
25900 # the --recheck option to rerun configure.
25902 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25903 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25904 # following values.
25906 _ACEOF
25908 # The following way of writing the cache mishandles newlines in values,
25909 # but we know of no workaround that is simple, portable, and efficient.
25910 # So, we kill variables containing newlines.
25911 # Ultrix sh set writes to stderr and can't be redirected directly,
25912 # and sets the high bit in the cache file unless we assign to the vars.
25914 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25915 eval ac_val=\$$ac_var
25916 case $ac_val in #(
25917 *${as_nl}*)
25918 case $ac_var in #(
25919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25920 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25921 esac
25922 case $ac_var in #(
25923 _ | IFS | as_nl) ;; #(
25924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25925 *) { eval $ac_var=; unset $ac_var;} ;;
25926 esac ;;
25927 esac
25928 done
25930 (set) 2>&1 |
25931 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25932 *${as_nl}ac_space=\ *)
25933 # `set' does not quote correctly, so add quotes: double-quote
25934 # substitution turns \\\\ into \\, and sed turns \\ into \.
25935 sed -n \
25936 "s/'/'\\\\''/g;
25937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25938 ;; #(
25940 # `set' quotes correctly as required by POSIX, so do not add quotes.
25941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25943 esac |
25944 sort
25946 sed '
25947 /^ac_cv_env_/b end
25948 t clear
25949 :clear
25950 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25951 t end
25952 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25953 :end' >>confcache
25954 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25955 if test -w "$cache_file"; then
25956 test "x$cache_file" != "x/dev/null" &&
25957 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25958 $as_echo "$as_me: updating cache $cache_file" >&6;}
25959 cat confcache >$cache_file
25960 else
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25962 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25965 rm -f confcache
25967 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25968 # Let make expand exec_prefix.
25969 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25971 DEFS=-DHAVE_CONFIG_H
25973 ac_libobjs=
25974 ac_ltlibobjs=
25975 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25976 # 1. Remove the extension, and $U if already installed.
25977 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25978 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25979 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25980 # will be set to the directory where LIBOBJS objects are built.
25981 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25982 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25983 done
25984 LIBOBJS=$ac_libobjs
25986 LTLIBOBJS=$ac_ltlibobjs
25991 : ${CONFIG_STATUS=./config.status}
25992 ac_write_fail=0
25993 ac_clean_files_save=$ac_clean_files
25994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25996 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25997 as_write_fail=0
25998 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25999 #! $SHELL
26000 # Generated by $as_me.
26001 # Run this file to recreate the current configuration.
26002 # Compiler output produced by configure, useful for debugging
26003 # configure, is in config.log if it exists.
26005 debug=false
26006 ac_cs_recheck=false
26007 ac_cs_silent=false
26009 SHELL=\${CONFIG_SHELL-$SHELL}
26010 export SHELL
26011 _ASEOF
26012 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26013 ## -------------------- ##
26014 ## M4sh Initialization. ##
26015 ## -------------------- ##
26017 # Be more Bourne compatible
26018 DUALCASE=1; export DUALCASE # for MKS sh
26019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26020 emulate sh
26021 NULLCMD=:
26022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26023 # is contrary to our usage. Disable this feature.
26024 alias -g '${1+"$@"}'='"$@"'
26025 setopt NO_GLOB_SUBST
26026 else
26027 case `(set -o) 2>/dev/null` in #(
26028 *posix*) :
26029 set -o posix ;; #(
26030 *) :
26032 esac
26036 as_nl='
26038 export as_nl
26039 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26040 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26043 # Prefer a ksh shell builtin over an external printf program on Solaris,
26044 # but without wasting forks for bash or zsh.
26045 if test -z "$BASH_VERSION$ZSH_VERSION" \
26046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26047 as_echo='print -r --'
26048 as_echo_n='print -rn --'
26049 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26050 as_echo='printf %s\n'
26051 as_echo_n='printf %s'
26052 else
26053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26055 as_echo_n='/usr/ucb/echo -n'
26056 else
26057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26058 as_echo_n_body='eval
26059 arg=$1;
26060 case $arg in #(
26061 *"$as_nl"*)
26062 expr "X$arg" : "X\\(.*\\)$as_nl";
26063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26064 esac;
26065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26067 export as_echo_n_body
26068 as_echo_n='sh -c $as_echo_n_body as_echo'
26070 export as_echo_body
26071 as_echo='sh -c $as_echo_body as_echo'
26074 # The user is always right.
26075 if test "${PATH_SEPARATOR+set}" != set; then
26076 PATH_SEPARATOR=:
26077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26079 PATH_SEPARATOR=';'
26084 # IFS
26085 # We need space, tab and new line, in precisely that order. Quoting is
26086 # there to prevent editors from complaining about space-tab.
26087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26088 # splitting by setting IFS to empty value.)
26089 IFS=" "" $as_nl"
26091 # Find who we are. Look in the path if we contain no directory separator.
26092 case $0 in #((
26093 *[\\/]* ) as_myself=$0 ;;
26094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26095 for as_dir in $PATH
26097 IFS=$as_save_IFS
26098 test -z "$as_dir" && as_dir=.
26099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26100 done
26101 IFS=$as_save_IFS
26104 esac
26105 # We did not find ourselves, most probably we were run as `sh COMMAND'
26106 # in which case we are not to be found in the path.
26107 if test "x$as_myself" = x; then
26108 as_myself=$0
26110 if test ! -f "$as_myself"; then
26111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26112 exit 1
26115 # Unset variables that we do not need and which cause bugs (e.g. in
26116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26117 # suppresses any "Segmentation fault" message there. '((' could
26118 # trigger a bug in pdksh 5.2.14.
26119 for as_var in BASH_ENV ENV MAIL MAILPATH
26120 do eval test x\${$as_var+set} = xset \
26121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26122 done
26123 PS1='$ '
26124 PS2='> '
26125 PS4='+ '
26127 # NLS nuisances.
26128 LC_ALL=C
26129 export LC_ALL
26130 LANGUAGE=C
26131 export LANGUAGE
26133 # CDPATH.
26134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26137 # as_fn_error ERROR [LINENO LOG_FD]
26138 # ---------------------------------
26139 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26140 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26141 # script with status $?, using 1 if that was 0.
26142 as_fn_error ()
26144 as_status=$?; test $as_status -eq 0 && as_status=1
26145 if test "$3"; then
26146 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26147 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26149 $as_echo "$as_me: error: $1" >&2
26150 as_fn_exit $as_status
26151 } # as_fn_error
26154 # as_fn_set_status STATUS
26155 # -----------------------
26156 # Set $? to STATUS, without forking.
26157 as_fn_set_status ()
26159 return $1
26160 } # as_fn_set_status
26162 # as_fn_exit STATUS
26163 # -----------------
26164 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26165 as_fn_exit ()
26167 set +e
26168 as_fn_set_status $1
26169 exit $1
26170 } # as_fn_exit
26172 # as_fn_unset VAR
26173 # ---------------
26174 # Portably unset VAR.
26175 as_fn_unset ()
26177 { eval $1=; unset $1;}
26179 as_unset=as_fn_unset
26180 # as_fn_append VAR VALUE
26181 # ----------------------
26182 # Append the text in VALUE to the end of the definition contained in VAR. Take
26183 # advantage of any shell optimizations that allow amortized linear growth over
26184 # repeated appends, instead of the typical quadratic growth present in naive
26185 # implementations.
26186 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26187 eval 'as_fn_append ()
26189 eval $1+=\$2
26191 else
26192 as_fn_append ()
26194 eval $1=\$$1\$2
26196 fi # as_fn_append
26198 # as_fn_arith ARG...
26199 # ------------------
26200 # Perform arithmetic evaluation on the ARGs, and store the result in the
26201 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26202 # must be portable across $(()) and expr.
26203 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26204 eval 'as_fn_arith ()
26206 as_val=$(( $* ))
26208 else
26209 as_fn_arith ()
26211 as_val=`expr "$@" || test $? -eq 1`
26213 fi # as_fn_arith
26216 if expr a : '\(a\)' >/dev/null 2>&1 &&
26217 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26218 as_expr=expr
26219 else
26220 as_expr=false
26223 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26224 as_basename=basename
26225 else
26226 as_basename=false
26229 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26230 as_dirname=dirname
26231 else
26232 as_dirname=false
26235 as_me=`$as_basename -- "$0" ||
26236 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26237 X"$0" : 'X\(//\)$' \| \
26238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26239 $as_echo X/"$0" |
26240 sed '/^.*\/\([^/][^/]*\)\/*$/{
26241 s//\1/
26244 /^X\/\(\/\/\)$/{
26245 s//\1/
26248 /^X\/\(\/\).*/{
26249 s//\1/
26252 s/.*/./; q'`
26254 # Avoid depending upon Character Ranges.
26255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26258 as_cr_digits='0123456789'
26259 as_cr_alnum=$as_cr_Letters$as_cr_digits
26261 ECHO_C= ECHO_N= ECHO_T=
26262 case `echo -n x` in #(((((
26263 -n*)
26264 case `echo 'xy\c'` in
26265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26266 xy) ECHO_C='\c';;
26267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26268 ECHO_T=' ';;
26269 esac;;
26271 ECHO_N='-n';;
26272 esac
26274 rm -f conf$$ conf$$.exe conf$$.file
26275 if test -d conf$$.dir; then
26276 rm -f conf$$.dir/conf$$.file
26277 else
26278 rm -f conf$$.dir
26279 mkdir conf$$.dir 2>/dev/null
26281 if (echo >conf$$.file) 2>/dev/null; then
26282 if ln -s conf$$.file conf$$ 2>/dev/null; then
26283 as_ln_s='ln -s'
26284 # ... but there are two gotchas:
26285 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26286 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26287 # In both cases, we have to default to `cp -p'.
26288 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26289 as_ln_s='cp -p'
26290 elif ln conf$$.file conf$$ 2>/dev/null; then
26291 as_ln_s=ln
26292 else
26293 as_ln_s='cp -p'
26295 else
26296 as_ln_s='cp -p'
26298 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26299 rmdir conf$$.dir 2>/dev/null
26302 # as_fn_mkdir_p
26303 # -------------
26304 # Create "$as_dir" as a directory, including parents if necessary.
26305 as_fn_mkdir_p ()
26308 case $as_dir in #(
26309 -*) as_dir=./$as_dir;;
26310 esac
26311 test -d "$as_dir" || eval $as_mkdir_p || {
26312 as_dirs=
26313 while :; do
26314 case $as_dir in #(
26315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26316 *) as_qdir=$as_dir;;
26317 esac
26318 as_dirs="'$as_qdir' $as_dirs"
26319 as_dir=`$as_dirname -- "$as_dir" ||
26320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26321 X"$as_dir" : 'X\(//\)[^/]' \| \
26322 X"$as_dir" : 'X\(//\)$' \| \
26323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26324 $as_echo X"$as_dir" |
26325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26326 s//\1/
26329 /^X\(\/\/\)[^/].*/{
26330 s//\1/
26333 /^X\(\/\/\)$/{
26334 s//\1/
26337 /^X\(\/\).*/{
26338 s//\1/
26341 s/.*/./; q'`
26342 test -d "$as_dir" && break
26343 done
26344 test -z "$as_dirs" || eval "mkdir $as_dirs"
26345 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26348 } # as_fn_mkdir_p
26349 if mkdir -p . 2>/dev/null; then
26350 as_mkdir_p='mkdir -p "$as_dir"'
26351 else
26352 test -d ./-p && rmdir ./-p
26353 as_mkdir_p=false
26356 if test -x / >/dev/null 2>&1; then
26357 as_test_x='test -x'
26358 else
26359 if ls -dL / >/dev/null 2>&1; then
26360 as_ls_L_option=L
26361 else
26362 as_ls_L_option=
26364 as_test_x='
26365 eval sh -c '\''
26366 if test -d "$1"; then
26367 test -d "$1/.";
26368 else
26369 case $1 in #(
26370 -*)set "./$1";;
26371 esac;
26372 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26373 ???[sx]*):;;*)false;;esac;fi
26374 '\'' sh
26377 as_executable_p=$as_test_x
26379 # Sed expression to map a string onto a valid CPP name.
26380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26382 # Sed expression to map a string onto a valid variable name.
26383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26386 exec 6>&1
26387 ## ----------------------------------- ##
26388 ## Main body of $CONFIG_STATUS script. ##
26389 ## ----------------------------------- ##
26390 _ASEOF
26391 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26394 # Save the log message, to keep $0 and so on meaningful, and to
26395 # report actual input values of CONFIG_FILES etc. instead of their
26396 # values after options handling.
26397 ac_log="
26398 This file was extended by $as_me, which was
26399 generated by GNU Autoconf 2.64. Invocation command line was
26401 CONFIG_FILES = $CONFIG_FILES
26402 CONFIG_HEADERS = $CONFIG_HEADERS
26403 CONFIG_LINKS = $CONFIG_LINKS
26404 CONFIG_COMMANDS = $CONFIG_COMMANDS
26405 $ $0 $@
26407 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26410 _ACEOF
26412 case $ac_config_files in *"
26413 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26414 esac
26416 case $ac_config_headers in *"
26417 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26418 esac
26421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26422 # Files that config.status was made for.
26423 config_files="$ac_config_files"
26424 config_headers="$ac_config_headers"
26425 config_commands="$ac_config_commands"
26427 _ACEOF
26429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26430 ac_cs_usage="\
26431 \`$as_me' instantiates files and other configuration actions
26432 from templates according to the current configuration. Unless the files
26433 and actions are specified as TAGs, all are instantiated by default.
26435 Usage: $0 [OPTION]... [TAG]...
26437 -h, --help print this help, then exit
26438 -V, --version print version number and configuration settings, then exit
26439 -q, --quiet, --silent
26440 do not print progress messages
26441 -d, --debug don't remove temporary files
26442 --recheck update $as_me by reconfiguring in the same conditions
26443 --file=FILE[:TEMPLATE]
26444 instantiate the configuration file FILE
26445 --header=FILE[:TEMPLATE]
26446 instantiate the configuration header FILE
26448 Configuration files:
26449 $config_files
26451 Configuration headers:
26452 $config_headers
26454 Configuration commands:
26455 $config_commands
26457 Report bugs to the package provider."
26459 _ACEOF
26460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26461 ac_cs_version="\\
26462 config.status
26463 configured by $0, generated by GNU Autoconf 2.64,
26464 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26466 Copyright (C) 2009 Free Software Foundation, Inc.
26467 This config.status script is free software; the Free Software Foundation
26468 gives unlimited permission to copy, distribute and modify it."
26470 ac_pwd='$ac_pwd'
26471 srcdir='$srcdir'
26472 AWK='$AWK'
26473 test -n "\$AWK" || AWK=awk
26474 _ACEOF
26476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26477 # The default lists apply if the user does not specify any file.
26478 ac_need_defaults=:
26479 while test $# != 0
26481 case $1 in
26482 --*=*)
26483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26484 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26485 ac_shift=:
26488 ac_option=$1
26489 ac_optarg=$2
26490 ac_shift=shift
26492 esac
26494 case $ac_option in
26495 # Handling of the options.
26496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26497 ac_cs_recheck=: ;;
26498 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26499 $as_echo "$ac_cs_version"; exit ;;
26500 --debug | --debu | --deb | --de | --d | -d )
26501 debug=: ;;
26502 --file | --fil | --fi | --f )
26503 $ac_shift
26504 case $ac_optarg in
26505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26506 esac
26507 as_fn_append CONFIG_FILES " '$ac_optarg'"
26508 ac_need_defaults=false;;
26509 --header | --heade | --head | --hea )
26510 $ac_shift
26511 case $ac_optarg in
26512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26513 esac
26514 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26515 ac_need_defaults=false;;
26516 --he | --h)
26517 # Conflict between --help and --header
26518 as_fn_error "ambiguous option: \`$1'
26519 Try \`$0 --help' for more information.";;
26520 --help | --hel | -h )
26521 $as_echo "$ac_cs_usage"; exit ;;
26522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26523 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26524 ac_cs_silent=: ;;
26526 # This is an error.
26527 -*) as_fn_error "unrecognized option: \`$1'
26528 Try \`$0 --help' for more information." ;;
26530 *) as_fn_append ac_config_targets " $1"
26531 ac_need_defaults=false ;;
26533 esac
26534 shift
26535 done
26537 ac_configure_extra_args=
26539 if $ac_cs_silent; then
26540 exec 6>/dev/null
26541 ac_configure_extra_args="$ac_configure_extra_args --silent"
26544 _ACEOF
26545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26546 if \$ac_cs_recheck; then
26547 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26548 shift
26549 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26550 CONFIG_SHELL='$SHELL'
26551 export CONFIG_SHELL
26552 exec "\$@"
26555 _ACEOF
26556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26557 exec 5>>config.log
26559 echo
26560 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26561 ## Running $as_me. ##
26562 _ASBOX
26563 $as_echo "$ac_log"
26564 } >&5
26566 _ACEOF
26567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26569 # INIT-COMMANDS
26571 subdirs='$subdirs'
26573 _ACEOF
26575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26577 # Handling of arguments.
26578 for ac_config_target in $ac_config_targets
26580 case $ac_config_target in
26581 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26582 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26583 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26584 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26585 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26586 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26588 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26589 esac
26590 done
26593 # If the user did not use the arguments to specify the items to instantiate,
26594 # then the envvar interface is used. Set only those that are not.
26595 # We use the long form for the default assignment because of an extremely
26596 # bizarre bug on SunOS 4.1.3.
26597 if $ac_need_defaults; then
26598 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26599 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26600 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26603 # Have a temporary directory for convenience. Make it in the build tree
26604 # simply because there is no reason against having it here, and in addition,
26605 # creating and moving files from /tmp can sometimes cause problems.
26606 # Hook for its removal unless debugging.
26607 # Note that there is a small window in which the directory will not be cleaned:
26608 # after its creation but before its name has been assigned to `$tmp'.
26609 $debug ||
26611 tmp=
26612 trap 'exit_status=$?
26613 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26615 trap 'as_fn_exit 1' 1 2 13 15
26617 # Create a (secure) tmp directory for tmp files.
26620 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26621 test -n "$tmp" && test -d "$tmp"
26622 } ||
26624 tmp=./conf$$-$RANDOM
26625 (umask 077 && mkdir "$tmp")
26626 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26628 # Set up the scripts for CONFIG_FILES section.
26629 # No need to generate them if there are no CONFIG_FILES.
26630 # This happens for instance with `./config.status config.h'.
26631 if test -n "$CONFIG_FILES"; then
26633 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26634 ac_cs_awk_getline=:
26635 ac_cs_awk_pipe_init=
26636 ac_cs_awk_read_file='
26637 while ((getline aline < (F[key])) > 0)
26638 print(aline)
26639 close(F[key])'
26640 ac_cs_awk_pipe_fini=
26641 else
26642 ac_cs_awk_getline=false
26643 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26644 ac_cs_awk_read_file='
26645 print "|#_!!_#|"
26646 print "cat " F[key] " &&"
26647 '$ac_cs_awk_pipe_init
26648 # The final `:' finishes the AND list.
26649 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26651 ac_cr=`echo X | tr X '\015'`
26652 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26653 # But we know of no other shell where ac_cr would be empty at this
26654 # point, so we can use a bashism as a fallback.
26655 if test "x$ac_cr" = x; then
26656 eval ac_cr=\$\'\\r\'
26658 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26659 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26660 ac_cs_awk_cr='\r'
26661 else
26662 ac_cs_awk_cr=$ac_cr
26665 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26666 _ACEOF
26668 # Create commands to substitute file output variables.
26670 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26671 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26672 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26673 echo "_ACAWK" &&
26674 echo "_ACEOF"
26675 } >conf$$files.sh &&
26676 . ./conf$$files.sh ||
26677 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26678 rm -f conf$$files.sh
26681 echo "cat >conf$$subs.awk <<_ACEOF" &&
26682 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26683 echo "_ACEOF"
26684 } >conf$$subs.sh ||
26685 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26686 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26687 ac_delim='%!_!# '
26688 for ac_last_try in false false false false false :; do
26689 . ./conf$$subs.sh ||
26690 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26692 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26693 if test $ac_delim_n = $ac_delim_num; then
26694 break
26695 elif $ac_last_try; then
26696 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26697 else
26698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26700 done
26701 rm -f conf$$subs.sh
26703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26704 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26705 _ACEOF
26706 sed -n '
26708 s/^/S["/; s/!.*/"]=/
26711 s/^[^!]*!//
26712 :repl
26713 t repl
26714 s/'"$ac_delim"'$//
26715 t delim
26718 s/\(.\{148\}\).*/\1/
26719 t more1
26720 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26723 b repl
26724 :more1
26725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26728 s/.\{148\}//
26729 t nl
26730 :delim
26732 s/\(.\{148\}\).*/\1/
26733 t more2
26734 s/["\\]/\\&/g; s/^/"/; s/$/"/
26737 :more2
26738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26741 s/.\{148\}//
26742 t delim
26743 ' <conf$$subs.awk | sed '
26744 /^[^""]/{
26746 s/\n//
26748 ' >>$CONFIG_STATUS || ac_write_fail=1
26749 rm -f conf$$subs.awk
26750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26751 _ACAWK
26752 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26753 for (key in S) S_is_set[key] = 1
26754 FS = "\a"
26755 \$ac_cs_awk_pipe_init
26758 line = $ 0
26759 nfields = split(line, field, "@")
26760 substed = 0
26761 len = length(field[1])
26762 for (i = 2; i < nfields; i++) {
26763 key = field[i]
26764 keylen = length(key)
26765 if (S_is_set[key]) {
26766 value = S[key]
26767 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26768 len += length(value) + length(field[++i])
26769 substed = 1
26770 } else
26771 len += 1 + keylen
26773 if (nfields == 3 && !substed) {
26774 key = field[2]
26775 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26776 \$ac_cs_awk_read_file
26777 next
26780 print line
26782 \$ac_cs_awk_pipe_fini
26783 _ACAWK
26784 _ACEOF
26785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26786 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26787 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26788 else
26790 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26791 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26792 _ACEOF
26794 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26795 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26796 # trailing colons and then remove the whole line if VPATH becomes empty
26797 # (actually we leave an empty line to preserve line numbers).
26798 if test "x$srcdir" = x.; then
26799 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26800 s/:*\$(srcdir):*/:/
26801 s/:*\${srcdir}:*/:/
26802 s/:*@srcdir@:*/:/
26803 s/^\([^=]*=[ ]*\):*/\1/
26804 s/:*$//
26805 s/^[^=]*=[ ]*$//
26809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26810 fi # test -n "$CONFIG_FILES"
26812 # Set up the scripts for CONFIG_HEADERS section.
26813 # No need to generate them if there are no CONFIG_HEADERS.
26814 # This happens for instance with `./config.status Makefile'.
26815 if test -n "$CONFIG_HEADERS"; then
26816 cat >"$tmp/defines.awk" <<\_ACAWK ||
26817 BEGIN {
26818 _ACEOF
26820 # Transform confdefs.h into an awk script `defines.awk', embedded as
26821 # here-document in config.status, that substitutes the proper values into
26822 # config.h.in to produce config.h.
26824 # Create a delimiter string that does not exist in confdefs.h, to ease
26825 # handling of long lines.
26826 ac_delim='%!_!# '
26827 for ac_last_try in false false :; do
26828 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26829 if test -z "$ac_t"; then
26830 break
26831 elif $ac_last_try; then
26832 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26833 else
26834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26836 done
26838 # For the awk script, D is an array of macro values keyed by name,
26839 # likewise P contains macro parameters if any. Preserve backslash
26840 # newline sequences.
26842 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26843 sed -n '
26844 s/.\{148\}/&'"$ac_delim"'/g
26845 t rset
26846 :rset
26847 s/^[ ]*#[ ]*define[ ][ ]*/ /
26848 t def
26850 :def
26851 s/\\$//
26852 t bsnl
26853 s/["\\]/\\&/g
26854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26855 D["\1"]=" \3"/p
26856 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26858 :bsnl
26859 s/["\\]/\\&/g
26860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26861 D["\1"]=" \3\\\\\\n"\\/p
26862 t cont
26863 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26864 t cont
26866 :cont
26868 s/.\{148\}/&'"$ac_delim"'/g
26869 t clear
26870 :clear
26871 s/\\$//
26872 t bsnlc
26873 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26875 :bsnlc
26876 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26877 b cont
26878 ' <confdefs.h | sed '
26879 s/'"$ac_delim"'/"\\\
26880 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26883 for (key in D) D_is_set[key] = 1
26884 FS = "\a"
26886 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26887 line = \$ 0
26888 split(line, arg, " ")
26889 if (arg[1] == "#") {
26890 defundef = arg[2]
26891 mac1 = arg[3]
26892 } else {
26893 defundef = substr(arg[1], 2)
26894 mac1 = arg[2]
26896 split(mac1, mac2, "(") #)
26897 macro = mac2[1]
26898 prefix = substr(line, 1, index(line, defundef) - 1)
26899 if (D_is_set[macro]) {
26900 # Preserve the white space surrounding the "#".
26901 print prefix "define", macro P[macro] D[macro]
26902 next
26903 } else {
26904 # Replace #undef with comments. This is necessary, for example,
26905 # in the case of _POSIX_SOURCE, which is predefined and required
26906 # on some systems where configure will not decide to define it.
26907 if (defundef == "undef") {
26908 print "/*", prefix defundef, macro, "*/"
26909 next
26913 { print }
26914 _ACAWK
26915 _ACEOF
26916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26917 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26918 fi # test -n "$CONFIG_HEADERS"
26921 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26922 shift
26923 for ac_tag
26925 case $ac_tag in
26926 :[FHLC]) ac_mode=$ac_tag; continue;;
26927 esac
26928 case $ac_mode$ac_tag in
26929 :[FHL]*:*);;
26930 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26931 :[FH]-) ac_tag=-:-;;
26932 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26933 esac
26934 ac_save_IFS=$IFS
26935 IFS=:
26936 set x $ac_tag
26937 IFS=$ac_save_IFS
26938 shift
26939 ac_file=$1
26940 shift
26942 case $ac_mode in
26943 :L) ac_source=$1;;
26944 :[FH])
26945 ac_file_inputs=
26946 for ac_f
26948 case $ac_f in
26949 -) ac_f="$tmp/stdin";;
26950 *) # Look for the file first in the build tree, then in the source tree
26951 # (if the path is not absolute). The absolute path cannot be DOS-style,
26952 # because $ac_f cannot contain `:'.
26953 test -f "$ac_f" ||
26954 case $ac_f in
26955 [\\/$]*) false;;
26956 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26957 esac ||
26958 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26959 esac
26960 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26961 as_fn_append ac_file_inputs " '$ac_f'"
26962 done
26964 # Let's still pretend it is `configure' which instantiates (i.e., don't
26965 # use $as_me), people would be surprised to read:
26966 # /* config.h. Generated by config.status. */
26967 configure_input='Generated from '`
26968 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26969 `' by configure.'
26970 if test x"$ac_file" != x-; then
26971 configure_input="$ac_file. $configure_input"
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26973 $as_echo "$as_me: creating $ac_file" >&6;}
26975 # Neutralize special characters interpreted by sed in replacement strings.
26976 case $configure_input in #(
26977 *\&* | *\|* | *\\* )
26978 ac_sed_conf_input=`$as_echo "$configure_input" |
26979 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26980 *) ac_sed_conf_input=$configure_input;;
26981 esac
26983 case $ac_tag in
26984 *:-:* | *:-) cat >"$tmp/stdin" \
26985 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26986 esac
26988 esac
26990 ac_dir=`$as_dirname -- "$ac_file" ||
26991 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26992 X"$ac_file" : 'X\(//\)[^/]' \| \
26993 X"$ac_file" : 'X\(//\)$' \| \
26994 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26995 $as_echo X"$ac_file" |
26996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26997 s//\1/
27000 /^X\(\/\/\)[^/].*/{
27001 s//\1/
27004 /^X\(\/\/\)$/{
27005 s//\1/
27008 /^X\(\/\).*/{
27009 s//\1/
27012 s/.*/./; q'`
27013 as_dir="$ac_dir"; as_fn_mkdir_p
27014 ac_builddir=.
27016 case "$ac_dir" in
27017 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27019 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27020 # A ".." for each directory in $ac_dir_suffix.
27021 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27022 case $ac_top_builddir_sub in
27023 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27024 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27025 esac ;;
27026 esac
27027 ac_abs_top_builddir=$ac_pwd
27028 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27029 # for backward compatibility:
27030 ac_top_builddir=$ac_top_build_prefix
27032 case $srcdir in
27033 .) # We are building in place.
27034 ac_srcdir=.
27035 ac_top_srcdir=$ac_top_builddir_sub
27036 ac_abs_top_srcdir=$ac_pwd ;;
27037 [\\/]* | ?:[\\/]* ) # Absolute name.
27038 ac_srcdir=$srcdir$ac_dir_suffix;
27039 ac_top_srcdir=$srcdir
27040 ac_abs_top_srcdir=$srcdir ;;
27041 *) # Relative name.
27042 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27043 ac_top_srcdir=$ac_top_build_prefix$srcdir
27044 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27045 esac
27046 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27049 case $ac_mode in
27052 # CONFIG_FILE
27055 _ACEOF
27057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27058 # If the template does not know about datarootdir, expand it.
27059 # FIXME: This hack should be removed a few years after 2.60.
27060 ac_datarootdir_hack=; ac_datarootdir_seen=
27061 ac_sed_dataroot='
27062 /datarootdir/ {
27066 /@datadir@/p
27067 /@docdir@/p
27068 /@infodir@/p
27069 /@localedir@/p
27070 /@mandir@/p'
27071 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27072 *datarootdir*) ac_datarootdir_seen=yes;;
27073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27075 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27076 _ACEOF
27077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27078 ac_datarootdir_hack='
27079 s&@datadir@&$datadir&g
27080 s&@docdir@&$docdir&g
27081 s&@infodir@&$infodir&g
27082 s&@localedir@&$localedir&g
27083 s&@mandir@&$mandir&g
27084 s&\\\${datarootdir}&$datarootdir&g' ;;
27085 esac
27086 _ACEOF
27088 # Neutralize VPATH when `$srcdir' = `.'.
27089 # Shell code in configure.ac might set extrasub.
27090 # FIXME: do we really want to maintain this feature?
27091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27092 ac_sed_extra="$ac_vpsub
27093 $extrasub
27094 _ACEOF
27095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27098 s|@configure_input@|$ac_sed_conf_input|;t t
27099 s&@top_builddir@&$ac_top_builddir_sub&;t t
27100 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27101 s&@srcdir@&$ac_srcdir&;t t
27102 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27103 s&@top_srcdir@&$ac_top_srcdir&;t t
27104 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27105 s&@builddir@&$ac_builddir&;t t
27106 s&@abs_builddir@&$ac_abs_builddir&;t t
27107 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27108 $ac_datarootdir_hack
27110 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27111 if $ac_cs_awk_getline; then
27112 $AWK -f "$tmp/subs.awk"
27113 else
27114 $AWK -f "$tmp/subs.awk" | $SHELL
27115 fi >$tmp/out \
27116 || as_fn_error "could not create $ac_file" "$LINENO" 5
27118 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27119 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27120 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27122 which seems to be undefined. Please make sure it is defined." >&5
27123 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27124 which seems to be undefined. Please make sure it is defined." >&2;}
27126 rm -f "$tmp/stdin"
27127 case $ac_file in
27128 -) cat "$tmp/out" && rm -f "$tmp/out";;
27129 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27130 esac \
27131 || as_fn_error "could not create $ac_file" "$LINENO" 5
27135 # CONFIG_HEADER
27137 if test x"$ac_file" != x-; then
27139 $as_echo "/* $configure_input */" \
27140 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27141 } >"$tmp/config.h" \
27142 || as_fn_error "could not create $ac_file" "$LINENO" 5
27143 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27145 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27146 else
27147 rm -f "$ac_file"
27148 mv "$tmp/config.h" "$ac_file" \
27149 || as_fn_error "could not create $ac_file" "$LINENO" 5
27151 else
27152 $as_echo "/* $configure_input */" \
27153 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27154 || as_fn_error "could not create -" "$LINENO" 5
27158 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27159 $as_echo "$as_me: executing $ac_file commands" >&6;}
27161 esac
27164 case $ac_file$ac_mode in
27165 "as":F) chmod +x as ;;
27166 "collect-ld":F) chmod +x collect-ld ;;
27167 "nm":F) chmod +x nm ;;
27168 "default":C)
27169 case ${CONFIG_HEADERS} in
27170 *auto-host.h:config.in*)
27171 echo > cstamp-h ;;
27172 esac
27173 # Make sure all the subdirs exist.
27174 for d in $subdirs doc build c-family
27176 test -d $d || mkdir $d
27177 done
27180 esac
27181 done # for ac_tag
27184 as_fn_exit 0
27185 _ACEOF
27186 ac_clean_files=$ac_clean_files_save
27188 test $ac_write_fail = 0 ||
27189 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27192 # configure is writing to config.log, and then calls config.status.
27193 # config.status does its own redirection, appending to config.log.
27194 # Unfortunately, on DOS this fails, as config.log is still kept open
27195 # by configure, so config.status won't be able to write to it; its
27196 # output is simply discarded. So we exec the FD to /dev/null,
27197 # effectively closing config.log, so it can be properly (re)opened and
27198 # appended to by config.status. When coming back to configure, we
27199 # need to make the FD available again.
27200 if test "$no_create" != yes; then
27201 ac_cs_success=:
27202 ac_config_status_args=
27203 test "$silent" = yes &&
27204 ac_config_status_args="$ac_config_status_args --quiet"
27205 exec 5>/dev/null
27206 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27207 exec 5>>config.log
27208 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27209 # would make configure fail if this is the last instruction.
27210 $ac_cs_success || as_fn_exit $?
27212 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27214 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}