* call.c (type_decays_to): Call cv_unqualified for non-class type.
[official-gcc.git] / gcc / configure
blobe32454a1e72a31494c0fad7da83cbee93c0d6f1d
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 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefiles
666 all_lang_makefrags
667 all_gtfiles
668 all_compilers
669 srcdir
670 subdirs
671 slibdir
672 dollar
673 gcc_tooldir
674 enable_lto
675 MAINT
676 zlibinc
677 zlibdir
678 HOST_LIBS
680 libgcc_visibility
681 gcc_cv_readelf
682 gcc_cv_objdump
683 ORIGINAL_NM_FOR_TARGET
684 gcc_cv_nm
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
687 gcc_cv_ld
688 ORIGINAL_AS_FOR_TARGET
689 gcc_cv_as
690 enable_fast_install
691 objdir
692 CXXCPP
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 STRIP
699 OBJDUMP
700 ac_ct_DUMPBIN
701 DUMPBIN
703 FGREP
705 LIBTOOL
706 collect2
707 STMP_FIXINC
708 BUILD_LDFLAGS
709 BUILD_CFLAGS
710 CC_FOR_BUILD
711 inhibit_libc
712 SYSTEM_HEADER_DIR
714 CROSS
715 CATOBJEXT
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATALOGS
720 POSUB
721 GMSGFMT
722 XGETTEXT
723 INCINTL
724 LIBINTL_DEP
725 LIBINTL
726 USE_NLS
727 extra_opt_files
728 extra_modes_file
729 gthread_flags
730 objext
731 manext
732 LIBICONV_DEP
733 LTLIBICONV
734 LIBICONV
735 LDEXP_LIB
736 GNAT_LIBEXC
737 COLLECT2_LIBS
740 BISON
741 FLEX
742 GENERATED_MANPAGES
743 BUILD_INFO
744 MAKEINFO
745 have_mktemp_command
746 make_compare_target
747 INSTALL_DATA
748 INSTALL_PROGRAM
749 INSTALL
750 ranlib_flags
751 RANLIB
753 LN_S
755 SET_MAKE
756 REPORT_BUGS_TEXI
757 REPORT_BUGS_TO
758 PKGVERSION
759 onestep
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 enable_multilib
768 ENABLE_BUILD_WITH_CXX
769 coverage_flags
770 valgrind_command
771 valgrind_path_defines
772 valgrind_path
773 TREEBROWSER
774 nocommon_flag
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
784 OUTPUT_OPTION
785 NO_MINUS_C_MINUS_O
786 GNATMAKE
787 GNATBIND
788 ac_ct_CXX
789 CXXFLAGS
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
798 GENINSRC
799 target_subdir
800 host_subdir
801 build_subdir
802 build_libsubdir
803 target_noncanonical
804 target_os
805 target_vendor
806 target_cpu
807 target
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files='language_hooks'
855 ac_user_opts='
856 enable_option_checking
857 with_build_libsubdir
858 with_local_prefix
859 with_gxx_include_dir
860 with_cpp_install_dir
861 enable_generated_files_in_srcdir
862 with_gnu_ld
863 with_ld
864 with_demangler_in_ld
865 with_gnu_as
866 with_as
867 enable_werror_always
868 enable_checking
869 enable_coverage
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
872 with_stabs
873 enable_multilib
874 enable___cxa_atexit
875 enable_decimal_float
876 enable_fixed_point
877 enable_threads
878 enable_tls
879 enable_objc_gc
880 with_dwarf2
881 enable_shared
882 with_build_sysroot
883 with_sysroot
884 with_specs
885 enable_intermodule
886 with_pkgversion
887 with_bugurl
888 enable_languages
889 with_multilib_list
890 enable_rpath
891 with_libiconv_prefix
892 enable_initfini_array
893 enable_sjlj_exceptions
894 with_system_libunwind
895 enable_secureplt
896 enable_cld
897 enable_win32_registry
898 enable_static
899 with_pic
900 enable_fast_install
901 enable_libtool_lock
902 with_plugin_ld
903 enable_comdat
904 enable_gnu_unique_object
905 enable_linker_build_id
906 with_long_double_128
907 with_gc
908 with_system_zlib
909 enable_maintainer_mode
910 enable_version_specific_runtime_libs
911 with_slibdir
912 enable_plugin
914 ac_precious_vars='build_alias
915 host_alias
916 target_alias
918 CFLAGS
919 LDFLAGS
920 LIBS
921 CPPFLAGS
923 CXXFLAGS
926 CXXCPP
927 GMPLIBS
928 GMPINC
929 PPLLIBS
930 PPLINC
931 CLOOGLIBS
932 CLOOGINC
933 LIBELFLIBS
934 LIBELFINC'
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
985 ac_prev=
986 ac_dashdash=
987 for ac_option
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1005 ac_dashdash=yes ;;
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1075 "*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1269 -with-* | --with-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1278 "with_$ac_useropt"
1279 "*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=\$ac_optarg ;;
1285 -without-* | --without-*)
1286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1294 "with_$ac_useropt"
1295 "*) ;;
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1298 esac
1299 eval with_$ac_useropt=no ;;
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1319 -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' | [0-9]* | *[!_$as_cr_alnum]* )
1328 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329 esac
1330 eval $ac_envvar=\$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 esac
1342 done
1344 if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error "missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1351 no) ;;
1352 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354 esac
1357 # Check all directory arguments for consistency.
1358 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val=\$$ac_var
1364 # Remove trailing slashes.
1365 case $ac_val in
1366 */ )
1367 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\$ac_val;;
1369 esac
1370 # Be sure to have absolute directory names.
1371 case $ac_val in
1372 [\\/$]* | ?:[\\/]* ) continue;;
1373 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374 esac
1375 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387 if test "x$build_alias" = x; then
1388 cross_compiling=maybe
1389 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390 If a cross compiler is detected then cross compile mode will be used." >&2
1391 elif test "x$build_alias" != "x$host_alias"; then
1392 cross_compiling=yes
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399 test "$silent" = yes && exec 6>/dev/null
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405 as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 as_fn_error "pwd does not report name of working directory"
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412 ac_srcdir_defaulted=yes
1413 # Try the directory containing this script, then the parent directory.
1414 ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416 X"$as_myself" : 'X\(//\)[^/]' \| \
1417 X"$as_myself" : 'X\(//\)$' \| \
1418 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 s//\1/
1424 /^X\(\/\/\)[^/].*/{
1425 s//\1/
1428 /^X\(\/\/\)$/{
1429 s//\1/
1432 /^X\(\/\).*/{
1433 s//\1/
1436 s/.*/./; q'`
1437 srcdir=$ac_confdir
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 srcdir=..
1441 else
1442 ac_srcdir_defaulted=no
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451 pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 srcdir=.
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_env_${ac_var}_value=\$${ac_var}
1465 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1470 # Report the --help message.
1472 if test "$ac_init_help" = "long"; then
1473 # Omit some internal or obsolete options to make the list less imposing.
1474 # This message is too long to be a string in the A/UX 3.1 sh.
1475 cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE. See below for descriptions of some of the useful variables.
1483 Defaults for the options are specified in brackets.
1485 Configuration:
1486 -h, --help display this help and exit
1487 --help=short display options specific to this package
1488 --help=recursive display the short help of all the included packages
1489 -V, --version display version information and exit
1490 -q, --quiet, --silent do not print \`checking...' messages
1491 --cache-file=FILE cache test results in FILE [disabled]
1492 -C, --config-cache alias for \`--cache-file=config.cache'
1493 -n, --no-create do not create output files
1494 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1496 Installation directories:
1497 --prefix=PREFIX install architecture-independent files in PREFIX
1498 [$ac_default_prefix]
1499 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 [PREFIX]
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1507 For better control, use the options below.
1509 Fine tuning of the installation directories:
1510 --bindir=DIR user executables [EPREFIX/bin]
1511 --sbindir=DIR system admin executables [EPREFIX/sbin]
1512 --libexecdir=DIR program executables [EPREFIX/libexec]
1513 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1514 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1515 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1516 --libdir=DIR object code libraries [EPREFIX/lib]
1517 --includedir=DIR C header files [PREFIX/include]
1518 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1519 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1520 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1521 --infodir=DIR info documentation [DATAROOTDIR/info]
1522 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1523 --mandir=DIR man documentation [DATAROOTDIR/man]
1524 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1525 --htmldir=DIR html documentation [DOCDIR]
1526 --dvidir=DIR dvi documentation [DOCDIR]
1527 --pdfdir=DIR pdf documentation [DOCDIR]
1528 --psdir=DIR ps documentation [DOCDIR]
1529 _ACEOF
1531 cat <<\_ACEOF
1533 Program names:
1534 --program-prefix=PREFIX prepend PREFIX to installed program names
1535 --program-suffix=SUFFIX append SUFFIX to installed program names
1536 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1538 System types:
1539 --build=BUILD configure for building on BUILD [guessed]
1540 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 --target=TARGET configure for building compilers for TARGET [HOST]
1542 _ACEOF
1545 if test -n "$ac_init_help"; then
1547 cat <<\_ACEOF
1549 Optional Features:
1550 --disable-option-checking ignore unrecognized --enable/--with options
1551 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553 --enable-generated-files-in-srcdir
1554 put copies of generated files in source dir
1555 intended for creating source tarballs for users
1556 without texinfo bison or flex.
1557 --enable-werror-always enable -Werror despite compiler version
1558 --enable-checking=LIST
1559 enable expensive run-time checks. With LIST,
1560 enable only specific categories of checks.
1561 Categories are: yes,no,all,none,release.
1562 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1563 rtlflag,rtl,runtime,tree,valgrind,types.
1564 --enable-coverage=LEVEL
1565 enable compiler's code coverage collection.
1566 Use to measure compiler performance and locate
1567 unused parts of the compiler. With LEVEL, specify
1568 optimization. Values are opt, noopt,
1569 default is noopt
1570 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1571 --enable-build-with-cxx build with C++ compiler instead of C compiler
1572 --enable-multilib enable library support for multiple ABIs
1573 --enable-__cxa_atexit enable __cxa_atexit for C++
1574 --enable-decimal-float={no,yes,bid,dpd}
1575 enable decimal float extension to C. Selecting 'bid'
1576 or 'dpd' choses which decimal floating point format
1577 to use
1578 --enable-fixed-point enable fixed-point arithmetic extension to C
1579 --enable-threads enable thread usage for target GCC
1580 --enable-threads=LIB use LIB thread package for target GCC
1581 --enable-tls enable or disable generation of tls code
1582 overriding the assembler check for tls support
1583 --enable-objc-gc enable the use of Boehm's garbage collector with
1584 the GNU Objective-C runtime
1585 --disable-shared don't provide a shared libgcc
1586 --enable-intermodule build the compiler in one step
1587 --enable-languages=LIST specify which front-ends to build
1588 --disable-rpath do not hardcode runtime library paths
1589 --enable-initfini-array use .init_array/.fini_array sections
1590 --enable-sjlj-exceptions
1591 arrange to use setjmp/longjmp exception handling
1592 --enable-secureplt enable -msecure-plt by default for PowerPC
1593 --enable-cld enable -mcld by default for 32bit x86
1594 --disable-win32-registry
1595 disable lookup of installation paths in the
1596 Registry on Windows hosts
1597 --enable-win32-registry enable registry lookup (default)
1598 --enable-win32-registry=KEY
1599 use KEY instead of GCC version as the last portion
1600 of the registry key
1601 --enable-shared[=PKGS] build shared libraries [default=yes]
1602 --enable-static[=PKGS] build static libraries [default=yes]
1603 --enable-fast-install[=PKGS]
1604 optimize for fast installation [default=yes]
1605 --disable-libtool-lock avoid locking (might break parallel builds)
1606 --enable-comdat enable COMDAT group support
1607 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1608 glibc systems
1609 --enable-linker-build-id
1610 compiler will always pass --build-id to linker
1611 --enable-maintainer-mode
1612 enable make rules and dependencies not useful
1613 (and sometimes confusing) to the casual installer
1614 --enable-version-specific-runtime-libs
1615 specify that runtime libraries should be
1616 installed in a compiler-specific directory
1617 --enable-plugin enable plugin support
1619 Optional Packages:
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-build-libsubdir=DIR Directory where to find libraries for build system
1623 --with-local-prefix=DIR specifies directory to put local include
1624 --with-gxx-include-dir=DIR
1625 specifies directory to put g++ header files
1626 --with-cpp-install-dir=DIR
1627 install the user visible C preprocessor in DIR
1628 (relative to PREFIX) as well as PREFIX/bin
1629 --with-gnu-ld arrange to work with GNU ld.
1630 --with-ld arrange to use the specified ld (full pathname)
1631 --with-demangler-in-ld try to use demangler in GNU ld.
1632 --with-gnu-as arrange to work with GNU as
1633 --with-as arrange to use the specified as (full pathname)
1634 --with-stabs arrange to use stabs instead of host debug format
1635 --with-dwarf2 force the default debug format to be DWARF 2
1636 --with-build-sysroot=sysroot
1637 use sysroot as the system root during the build
1638 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1639 --with-specs=SPECS add SPECS to driver command-line processing
1640 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1641 --with-bugurl=URL Direct users to URL to report a bug
1642 --with-multilib-list Select multilibs (SH only)
1643 --with-gnu-ld assume the C compiler uses GNU ld default=no
1644 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1645 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1646 --with-system-libunwind use installed libunwind
1647 --with-pic try to use only PIC/non-PIC objects [default=use
1648 both]
1649 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1650 --with-plugin-ld=[ARG] specify the plugin linker
1651 --with-long-double-128 Use 128-bit long double by default.
1652 --with-gc={page,zone} choose the garbage collection mechanism to use
1653 with the compiler
1654 --with-system-zlib use installed libz
1655 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1657 Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1667 CPP C preprocessor
1668 CXXCPP C++ preprocessor
1669 GMPLIBS How to link GMP
1670 GMPINC How to find GMP include files
1671 PPLLIBS How to link PPL
1672 PPLINC How to find PPL include files
1673 CLOOGLIBS How to link CLOOG
1674 CLOOGINC How to find CLOOG include files
1675 LIBELFLIBS How to link libelf
1676 LIBELFINC How to find libelf include files
1678 Use these variables to override the choices made by `configure' or to help
1679 it to find libraries and programs with nonstandard names/locations.
1681 Report bugs to the package provider.
1682 _ACEOF
1683 ac_status=$?
1686 if test "$ac_init_help" = "recursive"; then
1687 # If there are subdirs, report their specific --help.
1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1689 test -d "$ac_dir" ||
1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1691 continue
1692 ac_builddir=.
1694 case "$ac_dir" in
1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1698 # A ".." for each directory in $ac_dir_suffix.
1699 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1700 case $ac_top_builddir_sub in
1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1703 esac ;;
1704 esac
1705 ac_abs_top_builddir=$ac_pwd
1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1707 # for backward compatibility:
1708 ac_top_builddir=$ac_top_build_prefix
1710 case $srcdir in
1711 .) # We are building in place.
1712 ac_srcdir=.
1713 ac_top_srcdir=$ac_top_builddir_sub
1714 ac_abs_top_srcdir=$ac_pwd ;;
1715 [\\/]* | ?:[\\/]* ) # Absolute name.
1716 ac_srcdir=$srcdir$ac_dir_suffix;
1717 ac_top_srcdir=$srcdir
1718 ac_abs_top_srcdir=$srcdir ;;
1719 *) # Relative name.
1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1721 ac_top_srcdir=$ac_top_build_prefix$srcdir
1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1723 esac
1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726 cd "$ac_dir" || { ac_status=$?; continue; }
1727 # Check for guested configure.
1728 if test -f "$ac_srcdir/configure.gnu"; then
1729 echo &&
1730 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1731 elif test -f "$ac_srcdir/configure"; then
1732 echo &&
1733 $SHELL "$ac_srcdir/configure" --help=recursive
1734 else
1735 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1736 fi || ac_status=$?
1737 cd "$ac_pwd" || { ac_status=$?; break; }
1738 done
1741 test -n "$ac_init_help" && exit $ac_status
1742 if $ac_init_version; then
1743 cat <<\_ACEOF
1744 configure
1745 generated by GNU Autoconf 2.64
1747 Copyright (C) 2009 Free Software Foundation, Inc.
1748 This configure script is free software; the Free Software Foundation
1749 gives unlimited permission to copy, distribute and modify it.
1750 _ACEOF
1751 exit
1754 ## ------------------------ ##
1755 ## Autoconf initialization. ##
1756 ## ------------------------ ##
1758 # ac_fn_c_try_compile LINENO
1759 # --------------------------
1760 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_compile ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1789 ac_retval=1
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1794 } # ac_fn_c_try_compile
1796 # ac_fn_cxx_try_compile LINENO
1797 # ----------------------------
1798 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1799 ac_fn_cxx_try_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext
1803 if { { ac_try="$ac_compile"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_compile") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest.$ac_objext; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1832 } # ac_fn_cxx_try_compile
1834 # ac_fn_c_try_cpp LINENO
1835 # ----------------------
1836 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_cpp ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if { { ac_try="$ac_cpp conftest.$ac_ext"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } >/dev/null && {
1856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1869 } # ac_fn_c_try_cpp
1871 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1874 # the include files in INCLUDES and setting the cache variable VAR
1875 # accordingly.
1876 ac_fn_c_check_header_mongrel ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 else
1889 # Is the header compilable?
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1891 $as_echo_n "checking $2 usability... " >&6; }
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1895 #include <$2>
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898 ac_header_compiler=yes
1899 else
1900 ac_header_compiler=no
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1904 $as_echo "$ac_header_compiler" >&6; }
1906 # Is the header present?
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1908 $as_echo_n "checking $2 presence... " >&6; }
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_cpp "$LINENO"; then :
1914 ac_header_preproc=yes
1915 else
1916 ac_header_preproc=no
1918 rm -f conftest.err conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1920 $as_echo "$ac_header_preproc" >&6; }
1922 # So? What about this header?
1923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1924 yes:no: )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1926 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 no:yes:* )
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1932 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1934 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1936 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1938 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1940 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 esac
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 $as_echo_n "(cached) " >&6
1947 else
1948 eval "$3=\$ac_header_compiler"
1950 eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_header_mongrel
1958 # ac_fn_c_try_run LINENO
1959 # ----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1961 # that executables *can* be run.
1962 ac_fn_c_try_run ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_link"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>&5
1973 ac_status=$?
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1976 { { case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_try") 2>&5
1983 ac_status=$?
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; }; }; then :
1986 ac_retval=0
1987 else
1988 $as_echo "$as_me: program exited with status $ac_status" >&5
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1992 ac_retval=$ac_status
1994 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 return $ac_retval
1998 } # ac_fn_c_try_run
2000 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists and can be compiled using the include files in
2003 # INCLUDES, setting the cache variable VAR accordingly.
2004 ac_fn_c_check_header_compile ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$3=yes"
2019 else
2020 eval "$3=no"
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 } # ac_fn_c_check_header_compile
2031 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2032 # --------------------------------------------
2033 # Tries to find the compile-time value of EXPR in a program that includes
2034 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2035 # computed
2036 ac_fn_c_compute_int ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if test "$cross_compiling" = yes; then
2040 # Depending upon the size, compute the lo and hi bounds.
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2045 main ()
2047 static int test_array [1 - 2 * !(($2) >= 0)];
2048 test_array [0] = 0
2051 return 0;
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_lo=0 ac_mid=0
2056 while :; do
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2061 main ()
2063 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064 test_array [0] = 0
2067 return 0;
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_hi=$ac_mid; break
2072 else
2073 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2074 if test $ac_lo -le $ac_mid; then
2075 ac_lo= ac_hi=
2076 break
2078 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082 else
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 main ()
2089 static int test_array [1 - 2 * !(($2) < 0)];
2090 test_array [0] = 0
2093 return 0;
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_hi=-1 ac_mid=-1
2098 while :; do
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2103 main ()
2105 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2106 test_array [0] = 0
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_lo=$ac_mid; break
2114 else
2115 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2116 if test $ac_mid -le $ac_hi; then
2117 ac_lo= ac_hi=
2118 break
2120 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 done
2124 else
2125 ac_lo= ac_hi=
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0
2143 return 0;
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid
2148 else
2149 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 done
2153 case $ac_lo in #((
2154 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2155 '') ac_retval=1 ;;
2156 esac
2157 else
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2163 #include <stdio.h>
2164 #include <stdlib.h>
2166 main ()
2169 FILE *f = fopen ("conftest.val", "w");
2170 if (! f)
2171 return 1;
2172 if (($2) < 0)
2174 long int i = longval ();
2175 if (i != ($2))
2176 return 1;
2177 fprintf (f, "%ld", i);
2179 else
2181 unsigned long int i = ulongval ();
2182 if (i != ($2))
2183 return 1;
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2191 return 0;
2193 _ACEOF
2194 if ac_fn_c_try_run "$LINENO"; then :
2195 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2196 else
2197 ac_retval=1
2199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200 conftest.$ac_objext conftest.beam conftest.$ac_ext
2201 rm -f conftest.val
2204 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205 return $ac_retval
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2210 # -------------------------------------------
2211 # Tests whether TYPE exists after having included INCLUDES, setting cache
2212 # variable VAR accordingly.
2213 ac_fn_c_check_type ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2219 $as_echo_n "(cached) " >&6
2220 else
2221 eval "$3=no"
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2226 main ()
2228 if (sizeof ($2))
2229 return 0;
2231 return 0;
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2239 main ()
2241 if (sizeof (($2)))
2242 return 0;
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2249 else
2250 eval "$3=yes"
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_type
2263 # ac_fn_c_find_intX_t LINENO BITS VAR
2264 # -----------------------------------
2265 # Finds a signed integer type with width BITS, setting cache variable VAR
2266 # accordingly.
2267 ac_fn_c_find_intX_t ()
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2271 $as_echo_n "checking for int$2_t... " >&6; }
2272 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2273 $as_echo_n "(cached) " >&6
2274 else
2275 eval "$3=no"
2276 for ac_type in int$2_t 'int' 'long int' \
2277 'long long int' 'short int' 'signed char'; do
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 $ac_includes_default
2282 main ()
2284 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2285 test_array [0] = 0
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2293 /* end confdefs.h. */
2294 $ac_includes_default
2296 main ()
2298 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2299 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2300 test_array [0] = 0
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2308 else
2309 case $ac_type in #(
2310 int$2_t) :
2311 eval "$3=yes" ;; #(
2312 *) :
2313 eval "$3=\$ac_type" ;;
2314 esac
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 eval as_val=\$$3
2320 if test "x$as_val" = x""no; then :
2322 else
2323 break
2325 done
2327 eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 } # ac_fn_c_find_intX_t
2334 # ac_fn_c_try_link LINENO
2335 # -----------------------
2336 # Try to link conftest.$ac_ext, and return whether this succeeded.
2337 ac_fn_c_try_link ()
2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340 rm -f conftest.$ac_objext conftest$ac_exeext
2341 if { { ac_try="$ac_link"
2342 case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345 esac
2346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347 $as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_link") 2>conftest.err
2349 ac_status=$?
2350 if test -s conftest.err; then
2351 grep -v '^ *+' conftest.err >conftest.er1
2352 cat conftest.er1 >&5
2353 mv -f conftest.er1 conftest.err
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && {
2357 test -z "$ac_c_werror_flag" ||
2358 test ! -s conftest.err
2359 } && test -s conftest$ac_exeext && {
2360 test "$cross_compiling" = yes ||
2361 $as_test_x conftest$ac_exeext
2362 }; then :
2363 ac_retval=0
2364 else
2365 $as_echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 ac_retval=1
2370 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2371 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2372 # interfere with the next link command; also delete a directory that is
2373 # left behind by Apple's compiler. We do this before executing the actions.
2374 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2375 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 return $ac_retval
2378 } # ac_fn_c_try_link
2380 # ac_fn_c_find_uintX_t LINENO BITS VAR
2381 # ------------------------------------
2382 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2383 # accordingly.
2384 ac_fn_c_find_uintX_t ()
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2388 $as_echo_n "checking for uint$2_t... " >&6; }
2389 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 eval "$3=no"
2393 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2394 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $ac_includes_default
2399 main ()
2401 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2402 test_array [0] = 0
2405 return 0;
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409 case $ac_type in #(
2410 uint$2_t) :
2411 eval "$3=yes" ;; #(
2412 *) :
2413 eval "$3=\$ac_type" ;;
2414 esac
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 eval as_val=\$$3
2418 if test "x$as_val" = x""no; then :
2420 else
2421 break
2423 done
2425 eval ac_res=\$$3
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 } # ac_fn_c_find_uintX_t
2432 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2433 # ----------------------------------------------
2434 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2435 ac_fn_c_check_header_preproc ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2442 else
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 #include <$2>
2446 _ACEOF
2447 if ac_fn_c_try_cpp "$LINENO"; then :
2448 eval "$3=yes"
2449 else
2450 eval "$3=no"
2452 rm -f conftest.err conftest.$ac_ext
2454 eval ac_res=\$$3
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2456 $as_echo "$ac_res" >&6; }
2457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 } # ac_fn_c_check_header_preproc
2461 # ac_fn_c_check_func LINENO FUNC VAR
2462 # ----------------------------------
2463 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2464 ac_fn_c_check_func ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2476 #define $2 innocuous_$2
2478 /* System header to define __stub macros and hopefully few prototypes,
2479 which can conflict with char $2 (); below.
2480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2481 <limits.h> exists even on freestanding compilers. */
2483 #ifdef __STDC__
2484 # include <limits.h>
2485 #else
2486 # include <assert.h>
2487 #endif
2489 #undef $2
2491 /* Override any GCC internal prototype to avoid an error.
2492 Use char because int might match the return type of a GCC
2493 builtin and then its argument prototype would still apply. */
2494 #ifdef __cplusplus
2495 extern "C"
2496 #endif
2497 char $2 ();
2498 /* The GNU C library defines this for functions which it implements
2499 to always fail with ENOSYS. Some functions are actually named
2500 something starting with __ and the normal name is an alias. */
2501 #if defined __stub_$2 || defined __stub___$2
2502 choke me
2503 #endif
2506 main ()
2508 return $2 ();
2510 return 0;
2512 _ACEOF
2513 if ac_fn_c_try_link "$LINENO"; then :
2514 eval "$3=yes"
2515 else
2516 eval "$3=no"
2518 rm -f core conftest.err conftest.$ac_objext \
2519 conftest$ac_exeext conftest.$ac_ext
2521 eval ac_res=\$$3
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2523 $as_echo "$ac_res" >&6; }
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 } # ac_fn_c_check_func
2528 # ac_fn_cxx_try_cpp LINENO
2529 # ------------------------
2530 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2531 ac_fn_cxx_try_cpp ()
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 if { { ac_try="$ac_cpp conftest.$ac_ext"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2540 $as_echo "$ac_try_echo"; } >&5
2541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2542 ac_status=$?
2543 if test -s conftest.err; then
2544 grep -v '^ *+' conftest.err >conftest.er1
2545 cat conftest.er1 >&5
2546 mv -f conftest.er1 conftest.err
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; } >/dev/null && {
2550 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2551 test ! -s conftest.err
2552 }; then :
2553 ac_retval=0
2554 else
2555 $as_echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2558 ac_retval=1
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2561 return $ac_retval
2563 } # ac_fn_cxx_try_cpp
2565 # ac_fn_cxx_try_link LINENO
2566 # -------------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded.
2568 ac_fn_cxx_try_link ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 rm -f conftest.$ac_objext conftest$ac_exeext
2572 if { { ac_try="$ac_link"
2573 case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576 esac
2577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>conftest.err
2580 ac_status=$?
2581 if test -s conftest.err; then
2582 grep -v '^ *+' conftest.err >conftest.er1
2583 cat conftest.er1 >&5
2584 mv -f conftest.er1 conftest.err
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; } && {
2588 test -z "$ac_cxx_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest$ac_exeext && {
2591 test "$cross_compiling" = yes ||
2592 $as_test_x conftest$ac_exeext
2593 }; then :
2594 ac_retval=0
2595 else
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 ac_retval=1
2601 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2602 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2603 # interfere with the next link command; also delete a directory that is
2604 # left behind by Apple's compiler. We do this before executing the actions.
2605 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607 return $ac_retval
2609 } # ac_fn_cxx_try_link
2610 cat >config.log <<_ACEOF
2611 This file contains any messages produced by compilers while
2612 running configure, to aid debugging if configure makes a mistake.
2614 It was created by $as_me, which was
2615 generated by GNU Autoconf 2.64. Invocation command line was
2617 $ $0 $@
2619 _ACEOF
2620 exec 5>>config.log
2622 cat <<_ASUNAME
2623 ## --------- ##
2624 ## Platform. ##
2625 ## --------- ##
2627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2644 _ASUNAME
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 $as_echo "PATH: $as_dir"
2652 done
2653 IFS=$as_save_IFS
2655 } >&5
2657 cat >&5 <<_ACEOF
2660 ## ----------- ##
2661 ## Core tests. ##
2662 ## ----------- ##
2664 _ACEOF
2667 # Keep a trace of the command line.
2668 # Strip out --no-create and --no-recursion so they do not pile up.
2669 # Strip out --silent because we don't want to record it for future runs.
2670 # Also quote any args containing shell meta-characters.
2671 # Make two passes to allow for proper duplicate-argument suppression.
2672 ac_configure_args=
2673 ac_configure_args0=
2674 ac_configure_args1=
2675 ac_must_keep_next=false
2676 for ac_pass in 1 2
2678 for ac_arg
2680 case $ac_arg in
2681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2683 | -silent | --silent | --silen | --sile | --sil)
2684 continue ;;
2685 *\'*)
2686 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2687 esac
2688 case $ac_pass in
2689 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2691 as_fn_append ac_configure_args1 " '$ac_arg'"
2692 if test $ac_must_keep_next = true; then
2693 ac_must_keep_next=false # Got value, back to normal.
2694 else
2695 case $ac_arg in
2696 *=* | --config-cache | -C | -disable-* | --disable-* \
2697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2699 | -with-* | --with-* | -without-* | --without-* | --x)
2700 case "$ac_configure_args0 " in
2701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2702 esac
2704 -* ) ac_must_keep_next=true ;;
2705 esac
2707 as_fn_append ac_configure_args " '$ac_arg'"
2709 esac
2710 done
2711 done
2712 { ac_configure_args0=; unset ac_configure_args0;}
2713 { ac_configure_args1=; unset ac_configure_args1;}
2715 # When interrupted or exit'd, cleanup temporary files, and complete
2716 # config.log. We remove comments because anyway the quotes in there
2717 # would cause problems or look ugly.
2718 # WARNING: Use '\'' to represent an apostrophe within the trap.
2719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2720 trap 'exit_status=$?
2721 # Save into config.log some information that might help in debugging.
2723 echo
2725 cat <<\_ASBOX
2726 ## ---------------- ##
2727 ## Cache variables. ##
2728 ## ---------------- ##
2729 _ASBOX
2730 echo
2731 # The following way of writing the cache mishandles newlines in values,
2733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2734 eval ac_val=\$$ac_var
2735 case $ac_val in #(
2736 *${as_nl}*)
2737 case $ac_var in #(
2738 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2739 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2740 esac
2741 case $ac_var in #(
2742 _ | IFS | as_nl) ;; #(
2743 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2744 *) { eval $ac_var=; unset $ac_var;} ;;
2745 esac ;;
2746 esac
2747 done
2748 (set) 2>&1 |
2749 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2750 *${as_nl}ac_space=\ *)
2751 sed -n \
2752 "s/'\''/'\''\\\\'\'''\''/g;
2753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2754 ;; #(
2756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2758 esac |
2759 sort
2761 echo
2763 cat <<\_ASBOX
2764 ## ----------------- ##
2765 ## Output variables. ##
2766 ## ----------------- ##
2767 _ASBOX
2768 echo
2769 for ac_var in $ac_subst_vars
2771 eval ac_val=\$$ac_var
2772 case $ac_val in
2773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774 esac
2775 $as_echo "$ac_var='\''$ac_val'\''"
2776 done | sort
2777 echo
2779 if test -n "$ac_subst_files"; then
2780 cat <<\_ASBOX
2781 ## ------------------- ##
2782 ## File substitutions. ##
2783 ## ------------------- ##
2784 _ASBOX
2785 echo
2786 for ac_var in $ac_subst_files
2788 eval ac_val=\$$ac_var
2789 case $ac_val in
2790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791 esac
2792 $as_echo "$ac_var='\''$ac_val'\''"
2793 done | sort
2794 echo
2797 if test -s confdefs.h; then
2798 cat <<\_ASBOX
2799 ## ----------- ##
2800 ## confdefs.h. ##
2801 ## ----------- ##
2802 _ASBOX
2803 echo
2804 cat confdefs.h
2805 echo
2807 test "$ac_signal" != 0 &&
2808 $as_echo "$as_me: caught signal $ac_signal"
2809 $as_echo "$as_me: exit $exit_status"
2810 } >&5
2811 rm -f core *.core core.conftest.* &&
2812 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2813 exit $exit_status
2815 for ac_signal in 1 2 13 15; do
2816 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2817 done
2818 ac_signal=0
2820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2821 rm -f -r conftest* confdefs.h
2823 $as_echo "/* confdefs.h */" > confdefs.h
2825 # Predefined preprocessor variables.
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_NAME "$PACKAGE_NAME"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2833 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2837 _ACEOF
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_STRING "$PACKAGE_STRING"
2841 _ACEOF
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2845 _ACEOF
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_URL "$PACKAGE_URL"
2849 _ACEOF
2852 # Let the site file select an alternate cache file if it wants to.
2853 # Prefer an explicitly selected file to automatically selected ones.
2854 ac_site_file1=NONE
2855 ac_site_file2=NONE
2856 if test -n "$CONFIG_SITE"; then
2857 ac_site_file1=$CONFIG_SITE
2858 elif test "x$prefix" != xNONE; then
2859 ac_site_file1=$prefix/share/config.site
2860 ac_site_file2=$prefix/etc/config.site
2861 else
2862 ac_site_file1=$ac_default_prefix/share/config.site
2863 ac_site_file2=$ac_default_prefix/etc/config.site
2865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2867 test "x$ac_site_file" = xNONE && continue
2868 if test -r "$ac_site_file"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2871 sed 's/^/| /' "$ac_site_file" >&5
2872 . "$ac_site_file"
2874 done
2876 if test -r "$cache_file"; then
2877 # Some versions of bash will fail to source /dev/null (special
2878 # files actually), so we avoid doing that.
2879 if test -f "$cache_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881 $as_echo "$as_me: loading cache $cache_file" >&6;}
2882 case $cache_file in
2883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884 *) . "./$cache_file";;
2885 esac
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889 $as_echo "$as_me: creating cache $cache_file" >&6;}
2890 >$cache_file
2893 # Check that the precious variables saved in the cache have kept the same
2894 # value.
2895 ac_cache_corrupted=false
2896 for ac_var in $ac_precious_vars; do
2897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2898 eval ac_new_set=\$ac_env_${ac_var}_set
2899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2900 eval ac_new_val=\$ac_env_${ac_var}_value
2901 case $ac_old_set,$ac_new_set in
2902 set,)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2904 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2905 ac_cache_corrupted=: ;;
2906 ,set)
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2908 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2910 ,);;
2912 if test "x$ac_old_val" != "x$ac_new_val"; then
2913 # differences in whitespace do not lead to failure.
2914 ac_old_val_w=`echo x $ac_old_val`
2915 ac_new_val_w=`echo x $ac_new_val`
2916 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2918 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2919 ac_cache_corrupted=:
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2922 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2923 eval $ac_var=\$ac_old_val
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2926 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2928 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2929 fi;;
2930 esac
2931 # Pass precious variables to config.status.
2932 if test "$ac_new_set" = set; then
2933 case $ac_new_val in
2934 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2935 *) ac_arg=$ac_var=$ac_new_val ;;
2936 esac
2937 case " $ac_configure_args " in
2938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2939 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2940 esac
2942 done
2943 if $ac_cache_corrupted; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2947 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2948 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2950 ## -------------------- ##
2951 ## Main body of script. ##
2952 ## -------------------- ##
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2968 gcc_version=`cat $srcdir/BASE-VER`
2970 # Determine the host, build, and target systems
2971 ac_aux_dir=
2972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2973 for ac_t in install-sh install.sh shtool; do
2974 if test -f "$ac_dir/$ac_t"; then
2975 ac_aux_dir=$ac_dir
2976 ac_install_sh="$ac_aux_dir/$ac_t -c"
2977 break 2
2979 done
2980 done
2981 if test -z "$ac_aux_dir"; then
2982 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2985 # These three variables are undocumented and unsupported,
2986 # and are intended to be withdrawn in a future Autoconf release.
2987 # They can cause serious problems if a builder's source tree is in a directory
2988 # whose full name contains unusual characters.
2989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2994 # Make sure we can run config.sub.
2995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2996 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2999 $as_echo_n "checking build system type... " >&6; }
3000 if test "${ac_cv_build+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3002 else
3003 ac_build_alias=$build_alias
3004 test "x$ac_build_alias" = x &&
3005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3006 test "x$ac_build_alias" = x &&
3007 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3008 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3009 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3013 $as_echo "$ac_cv_build" >&6; }
3014 case $ac_cv_build in
3015 *-*-*) ;;
3016 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3017 esac
3018 build=$ac_cv_build
3019 ac_save_IFS=$IFS; IFS='-'
3020 set x $ac_cv_build
3021 shift
3022 build_cpu=$1
3023 build_vendor=$2
3024 shift; shift
3025 # Remember, the first character of IFS is used to create $*,
3026 # except with old shells:
3027 build_os=$*
3028 IFS=$ac_save_IFS
3029 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3033 $as_echo_n "checking host system type... " >&6; }
3034 if test "${ac_cv_host+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test "x$host_alias" = x; then
3038 ac_cv_host=$ac_cv_build
3039 else
3040 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3041 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3046 $as_echo "$ac_cv_host" >&6; }
3047 case $ac_cv_host in
3048 *-*-*) ;;
3049 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3050 esac
3051 host=$ac_cv_host
3052 ac_save_IFS=$IFS; IFS='-'
3053 set x $ac_cv_host
3054 shift
3055 host_cpu=$1
3056 host_vendor=$2
3057 shift; shift
3058 # Remember, the first character of IFS is used to create $*,
3059 # except with old shells:
3060 host_os=$*
3061 IFS=$ac_save_IFS
3062 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3066 $as_echo_n "checking target system type... " >&6; }
3067 if test "${ac_cv_target+set}" = set; then :
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test "x$target_alias" = x; then
3071 ac_cv_target=$ac_cv_host
3072 else
3073 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3074 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3079 $as_echo "$ac_cv_target" >&6; }
3080 case $ac_cv_target in
3081 *-*-*) ;;
3082 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3083 esac
3084 target=$ac_cv_target
3085 ac_save_IFS=$IFS; IFS='-'
3086 set x $ac_cv_target
3087 shift
3088 target_cpu=$1
3089 target_vendor=$2
3090 shift; shift
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3093 target_os=$*
3094 IFS=$ac_save_IFS
3095 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3098 # The aliases save the names the user supplied, while $host etc.
3099 # will get canonicalized.
3100 test -n "$target_alias" &&
3101 test "$program_prefix$program_suffix$program_transform_name" = \
3102 NONENONEs,x,x, &&
3103 program_prefix=${target_alias}-
3105 # Determine the noncanonical target name, for directory use.
3106 case ${build_alias} in
3107 "") build_noncanonical=${build} ;;
3108 *) build_noncanonical=${build_alias} ;;
3109 esac
3111 case ${host_alias} in
3112 "") host_noncanonical=${build_noncanonical} ;;
3113 *) host_noncanonical=${host_alias} ;;
3114 esac
3116 case ${target_alias} in
3117 "") target_noncanonical=${host_noncanonical} ;;
3118 *) target_noncanonical=${target_alias} ;;
3119 esac
3124 # Determine the target- and build-specific subdirectories
3126 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3127 # have matching libraries, they should use host libraries: Makefile.tpl
3128 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3129 # However, they still use the build modules, because the corresponding
3130 # host modules (e.g. bison) are only built for the host when bootstrap
3131 # finishes. So:
3132 # - build_subdir is where we find build modules, and never changes.
3133 # - build_libsubdir is where we find build libraries, and can be overridden.
3135 # Prefix 'build-' so this never conflicts with target_subdir.
3136 build_subdir="build-${build_noncanonical}"
3138 # Check whether --with-build-libsubdir was given.
3139 if test "${with_build_libsubdir+set}" = set; then :
3140 withval=$with_build_libsubdir; build_libsubdir="$withval"
3141 else
3142 build_libsubdir="$build_subdir"
3145 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3146 if ( test $srcdir = . && test -d gcc ) \
3147 || test -d $srcdir/../host-${host_noncanonical}; then
3148 host_subdir="host-${host_noncanonical}"
3149 else
3150 host_subdir=.
3152 # No prefix.
3153 target_subdir=${target_noncanonical}
3156 # Set program_transform_name
3157 test "$program_prefix" != NONE &&
3158 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3159 # Use a double $ so make ignores it.
3160 test "$program_suffix" != NONE &&
3161 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3162 # Double any \ or $.
3163 # By default was `s,x,x', remove it if useless.
3164 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3165 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3168 # Check for bogus environment variables.
3169 # Test if LIBRARY_PATH contains the notation for the current directory
3170 # since this would lead to problems installing/building glibc.
3171 # LIBRARY_PATH contains the current directory if one of the following
3172 # is true:
3173 # - one of the terminals (":" and ";") is the first or last sign
3174 # - two terminals occur directly after each other
3175 # - the path contains an element with a dot in it
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3177 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3178 case ${LIBRARY_PATH} in
3179 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3180 library_path_setting="contains current directory"
3183 library_path_setting="ok"
3185 esac
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3187 $as_echo "$library_path_setting" >&6; }
3188 if test "$library_path_setting" != "ok"; then
3189 as_fn_error "
3190 *** LIBRARY_PATH shouldn't contain the current directory when
3191 *** building gcc. Please change the environment variable
3192 *** and run configure again." "$LINENO" 5
3195 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3196 # since this would lead to problems installing/building glibc.
3197 # GCC_EXEC_PREFIX contains the current directory if one of the following
3198 # is true:
3199 # - one of the terminals (":" and ";") is the first or last sign
3200 # - two terminals occur directly after each other
3201 # - the path contains an element with a dot in it
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3203 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3204 case ${GCC_EXEC_PREFIX} in
3205 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3206 gcc_exec_prefix_setting="contains current directory"
3209 gcc_exec_prefix_setting="ok"
3211 esac
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3213 $as_echo "$gcc_exec_prefix_setting" >&6; }
3214 if test "$gcc_exec_prefix_setting" != "ok"; then
3215 as_fn_error "
3216 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3217 *** building gcc. Please change the environment variable
3218 *** and run configure again." "$LINENO" 5
3221 # -----------
3222 # Directories
3223 # -----------
3225 # Specify the local prefix
3226 local_prefix=
3228 # Check whether --with-local-prefix was given.
3229 if test "${with_local_prefix+set}" = set; then :
3230 withval=$with_local_prefix; case "${withval}" in
3231 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3232 no) ;;
3233 *) local_prefix=$with_local_prefix ;;
3234 esac
3238 # Default local prefix if it is empty
3239 if test x$local_prefix = x; then
3240 local_prefix=/usr/local
3243 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3244 # passed in by the toplevel make and thus we'd get different behavior
3245 # depending on where we built the sources.
3246 gcc_gxx_include_dir=
3247 # Specify the g++ header file directory
3249 # Check whether --with-gxx-include-dir was given.
3250 if test "${with_gxx_include_dir+set}" = set; then :
3251 withval=$with_gxx_include_dir; case "${withval}" in
3252 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3253 no) ;;
3254 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3255 esac
3259 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3260 if test x${gcc_gxx_include_dir} = x; then
3261 if test x${enable_version_specific_runtime_libs} = xyes; then
3262 gcc_gxx_include_dir='${libsubdir}/include/c++'
3263 else
3264 libstdcxx_incdir='include/c++/$(version)'
3265 if test x$host != x$target; then
3266 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3268 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3273 # Check whether --with-cpp_install_dir was given.
3274 if test "${with_cpp_install_dir+set}" = set; then :
3275 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3276 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3277 elif test x$withval != xno; then
3278 cpp_install_dir=$withval
3283 # We would like to our source tree to be readonly. However when releases or
3284 # pre-releases are generated, the flex/bison generated files as well as the
3285 # various formats of manuals need to be included along with the rest of the
3286 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3287 # just that.
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3290 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3291 # Check whether --enable-generated-files-in-srcdir was given.
3292 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3293 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3294 else
3295 generated_files_in_srcdir=no
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3300 $as_echo "$generated_files_in_srcdir" >&6; }
3302 if test "$generated_files_in_srcdir" = "yes"; then
3303 GENINSRC=''
3304 else
3305 GENINSRC='#'
3309 # -------------------
3310 # Find default linker
3311 # -------------------
3313 # With GNU ld
3315 # Check whether --with-gnu-ld was given.
3316 if test "${with_gnu_ld+set}" = set; then :
3317 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3318 else
3319 gnu_ld_flag=no
3323 # With pre-defined ld
3325 # Check whether --with-ld was given.
3326 if test "${with_ld+set}" = set; then :
3327 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3330 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3331 if test ! -x "$DEFAULT_LINKER"; then
3332 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3333 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3334 gnu_ld_flag=yes
3337 cat >>confdefs.h <<_ACEOF
3338 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3339 _ACEOF
3343 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3345 cat >>confdefs.h <<_ACEOF
3346 #define HAVE_GNU_LD $gnu_ld
3347 _ACEOF
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3351 $as_echo_n "checking whether a default linker was specified... " >&6; }
3352 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3353 if test x"$gnu_ld_flag" = x"no"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3355 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3358 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3365 # With demangler in GNU ld
3367 # Check whether --with-demangler-in-ld was given.
3368 if test "${with_demangler_in_ld+set}" = set; then :
3369 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3370 else
3371 demangler_in_ld=no
3375 # ----------------------
3376 # Find default assembler
3377 # ----------------------
3379 # With GNU as
3381 # Check whether --with-gnu-as was given.
3382 if test "${with_gnu_as+set}" = set; then :
3383 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3384 else
3385 gas_flag=no
3390 # Check whether --with-as was given.
3391 if test "${with_as+set}" = set; then :
3392 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3395 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3396 if test ! -x "$DEFAULT_ASSEMBLER"; then
3397 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3398 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3399 gas_flag=yes
3402 cat >>confdefs.h <<_ACEOF
3403 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3404 _ACEOF
3408 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3410 cat >>confdefs.h <<_ACEOF
3411 #define HAVE_GNU_AS $gnu_as
3412 _ACEOF
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3416 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3417 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3418 if test x"$gas_flag" = x"no"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3420 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3423 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3430 # ---------------
3431 # Find C compiler
3432 # ---------------
3434 # If a non-executable a.out is present (e.g. created by GNU as above even if
3435 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3436 # file, even when creating an executable, so an execution test fails.
3437 # Remove possible default executable files to avoid this.
3439 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3440 # Autoconf includes it.
3441 rm -f a.out a.exe b.out
3443 # Find the native compiler
3444 ac_ext=c
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 if test -n "$ac_tool_prefix"; then
3450 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3451 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if test "${ac_cv_prog_CC+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3471 done
3472 done
3473 IFS=$as_save_IFS
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3488 if test -z "$ac_cv_prog_CC"; then
3489 ac_ct_CC=$CC
3490 # Extract the first word of "gcc", so it can be a program name with args.
3491 set dummy gcc; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC="gcc"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3511 done
3512 done
3513 IFS=$as_save_IFS
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3521 else
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3526 if test "x$ac_ct_CC" = x; then
3527 CC=""
3528 else
3529 case $cross_compiling:$ac_tool_warned in
3530 yes:)
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533 ac_tool_warned=yes ;;
3534 esac
3535 CC=$ac_ct_CC
3537 else
3538 CC="$ac_cv_prog_CC"
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}cc; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_CC+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$CC"; then
3551 ac_cv_prog_CC="$CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_CC="${ac_tool_prefix}cc"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3582 if test -z "$CC"; then
3583 # Extract the first word of "cc", so it can be a program name with args.
3584 set dummy cc; ac_word=$2
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 $as_echo_n "checking for $ac_word... " >&6; }
3587 if test "${ac_cv_prog_CC+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 else
3593 ac_prog_rejected=no
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3602 ac_prog_rejected=yes
3603 continue
3605 ac_cv_prog_CC="cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3613 if test $ac_prog_rejected = yes; then
3614 # We found a bogon in the path, so make sure we never use it.
3615 set dummy $ac_cv_prog_CC
3616 shift
3617 if test $# != 0; then
3618 # We chose a different compiler from the bogus one.
3619 # However, it has the same basename, so the bogon will be chosen
3620 # first if we set CC to just the basename; use the full file name.
3621 shift
3622 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 for ac_prog in cl.exe
3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_CC+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 $as_echo "$CC" >&6; }
3673 else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3679 test -n "$CC" && break
3680 done
3682 if test -z "$CC"; then
3683 ac_ct_CC=$CC
3684 for ac_prog in cl.exe
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$ac_ct_CC"; then
3694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_prog_ac_ct_CC="$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3707 done
3708 done
3709 IFS=$as_save_IFS
3713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3714 if test -n "$ac_ct_CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3716 $as_echo "$ac_ct_CC" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$ac_ct_CC" && break
3724 done
3726 if test "x$ac_ct_CC" = x; then
3727 CC=""
3728 else
3729 case $cross_compiling:$ac_tool_warned in
3730 yes:)
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3733 ac_tool_warned=yes ;;
3734 esac
3735 CC=$ac_ct_CC
3742 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error "no acceptable C compiler found in \$PATH
3745 See \`config.log' for more details." "$LINENO" 5; }
3747 # Provide some information about the compiler.
3748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3749 set X $ac_compile
3750 ac_compiler=$2
3751 for ac_option in --version -v -V -qversion; do
3752 { { ac_try="$ac_compiler $ac_option >&5"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3760 ac_status=$?
3761 if test -s conftest.err; then
3762 sed '10a\
3763 ... rest of stderr output deleted ...
3764 10q' conftest.err >conftest.er1
3765 cat conftest.er1 >&5
3766 rm -f conftest.er1 conftest.err
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }
3770 done
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3776 main ()
3780 return 0;
3782 _ACEOF
3783 ac_clean_files_save=$ac_clean_files
3784 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3785 # Try to create an executable without -o first, disregard a.out.
3786 # It will help us diagnose broken compilers, and finding out an intuition
3787 # of exeext.
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3789 $as_echo_n "checking for C compiler default output file name... " >&6; }
3790 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3792 # The possible output files:
3793 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3795 ac_rmfiles=
3796 for ac_file in $ac_files
3798 case $ac_file in
3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3800 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3801 esac
3802 done
3803 rm -f $ac_rmfiles
3805 if { { ac_try="$ac_link_default"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_link_default") 2>&5
3813 ac_status=$?
3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815 test $ac_status = 0; }; then :
3816 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3817 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3818 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3819 # so that the user can short-circuit this test for compilers unknown to
3820 # Autoconf.
3821 for ac_file in $ac_files ''
3823 test -f "$ac_file" || continue
3824 case $ac_file in
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3827 [ab].out )
3828 # We found the default executable, but exeext='' is most
3829 # certainly right.
3830 break;;
3831 *.* )
3832 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3833 then :; else
3834 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 # We set ac_cv_exeext here because the later test for it is not
3837 # safe: cross compilers may not add the suffix if given an `-o'
3838 # argument, so we may need to know it at that point already.
3839 # Even if this section looks crufty: it has the advantage of
3840 # actually working.
3841 break;;
3843 break;;
3844 esac
3845 done
3846 test "$ac_cv_exeext" = no && ac_cv_exeext=
3848 else
3849 ac_file=''
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3852 $as_echo "$ac_file" >&6; }
3853 if test -z "$ac_file"; then :
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859 { as_fn_set_status 77
3860 as_fn_error "C compiler cannot create executables
3861 See \`config.log' for more details." "$LINENO" 5; }; }
3863 ac_exeext=$ac_cv_exeext
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3868 $as_echo_n "checking whether the C compiler works... " >&6; }
3869 # If not cross compiling, check that we can run a simple program.
3870 if test "$cross_compiling" != yes; then
3871 if { ac_try='./$ac_file'
3872 { { case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875 esac
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_try") 2>&5
3879 ac_status=$?
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; }; then
3882 cross_compiling=no
3883 else
3884 if test "$cross_compiling" = maybe; then
3885 cross_compiling=yes
3886 else
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error "cannot run C compiled programs.
3890 If you meant to cross compile, use \`--host'.
3891 See \`config.log' for more details." "$LINENO" 5; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896 $as_echo "yes" >&6; }
3898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3899 ac_clean_files=$ac_clean_files_save
3900 # Check that the compiler produces executables we can run. If not, either
3901 # the compiler is broken, or we cross compile.
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3903 $as_echo_n "checking whether we are cross compiling... " >&6; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3905 $as_echo "$cross_compiling" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3908 $as_echo_n "checking for suffix of executables... " >&6; }
3909 if { { ac_try="$ac_link"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_link") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; then :
3920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3922 # work properly (i.e., refer to `conftest.exe'), while it won't with
3923 # `rm'.
3924 for ac_file in conftest.exe conftest conftest.*; do
3925 test -f "$ac_file" || continue
3926 case $ac_file in
3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3929 break;;
3930 * ) break;;
3931 esac
3932 done
3933 else
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error "cannot compute suffix of executables: cannot compile and link
3937 See \`config.log' for more details." "$LINENO" 5; }
3939 rm -f conftest$ac_cv_exeext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3941 $as_echo "$ac_cv_exeext" >&6; }
3943 rm -f conftest.$ac_ext
3944 EXEEXT=$ac_cv_exeext
3945 ac_exeext=$EXEEXT
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3947 $as_echo_n "checking for suffix of object files... " >&6; }
3948 if test "${ac_cv_objext+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3955 main ()
3959 return 0;
3961 _ACEOF
3962 rm -f conftest.o conftest.obj
3963 if { { ac_try="$ac_compile"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_compile") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 for ac_file in conftest.o conftest.obj conftest.*; do
3975 test -f "$ac_file" || continue;
3976 case $ac_file in
3977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3978 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3979 break;;
3980 esac
3981 done
3982 else
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error "cannot compute suffix of object files: cannot compile
3989 See \`config.log' for more details." "$LINENO" 5; }
3991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3994 $as_echo "$ac_cv_objext" >&6; }
3995 OBJEXT=$ac_cv_objext
3996 ac_objext=$OBJEXT
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3999 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4006 main ()
4008 #ifndef __GNUC__
4009 choke me
4010 #endif
4013 return 0;
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_compiler_gnu=yes
4018 else
4019 ac_compiler_gnu=no
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027 if test $ac_compiler_gnu = yes; then
4028 GCC=yes
4029 else
4030 GCC=
4032 ac_test_CFLAGS=${CFLAGS+set}
4033 ac_save_CFLAGS=$CFLAGS
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4036 if test "${ac_cv_prog_cc_g+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4041 ac_cv_prog_cc_g=no
4042 CFLAGS="-g"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4047 main ()
4051 return 0;
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_g=yes
4056 else
4057 CFLAGS=""
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4062 main ()
4066 return 0;
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4071 else
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4078 main ()
4082 return 0;
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_g=yes
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096 $as_echo "$ac_cv_prog_cc_g" >&6; }
4097 if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099 elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4101 CFLAGS="-g -O2"
4102 else
4103 CFLAGS="-g"
4105 else
4106 if test "$GCC" = yes; then
4107 CFLAGS="-O2"
4108 else
4109 CFLAGS=
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4114 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 ac_cv_prog_cc_c89=no
4118 ac_save_CC=$CC
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #include <stdarg.h>
4122 #include <stdio.h>
4123 #include <sys/types.h>
4124 #include <sys/stat.h>
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4129 char **p;
4130 int i;
4132 return p[i];
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4136 char *s;
4137 va_list v;
4138 va_start (v,p);
4139 s = g (p, va_arg (v,int));
4140 va_end (v);
4141 return s;
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4155 #define FOO(x) 'x'
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162 int argc;
4163 char **argv;
4165 main ()
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4169 return 0;
4171 _ACEOF
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4181 done
4182 rm -f conftest.$ac_ext
4183 CC=$ac_save_CC
4186 # AC_CACHE_VAL
4187 case "x$ac_cv_prog_cc_c89" in
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4191 xno)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4198 esac
4199 if test "x$ac_cv_prog_cc_c89" != xno; then :
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 if test "x$CC" != xcc; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4211 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4214 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4216 set dummy $CC; ac_cc=`$as_echo "$2" |
4217 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4218 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4225 main ()
4229 return 0;
4231 _ACEOF
4232 # Make sure it works both with $CC and with simple cc.
4233 # We do the test twice because some compilers refuse to overwrite an
4234 # existing .o file with -o, though they will create one.
4235 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4236 rm -f conftest2.*
4237 if { { case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; } &&
4247 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250 esac
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_try") 2>&5
4254 ac_status=$?
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; };
4257 then
4258 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4259 if test "x$CC" != xcc; then
4260 # Test first that cc exists at all.
4261 if { ac_try='cc -c conftest.$ac_ext >&5'
4262 { { case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267 $as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; }; then
4272 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4273 rm -f conftest2.*
4274 if { { case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280 (eval "$ac_try") 2>&5
4281 ac_status=$?
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; } &&
4284 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_try") 2>&5
4291 ac_status=$?
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; };
4294 then
4295 # cc works too.
4297 else
4298 # cc exists but doesn't like -o.
4299 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4303 else
4304 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4306 rm -f core conftest*
4309 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4311 $as_echo "yes" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4316 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4320 # expand $ac_aux_dir to an absolute path
4321 am_aux_dir=`cd $ac_aux_dir && pwd`
4323 # FIXME: we rely on the cache variable name because
4324 # there is no other way.
4325 set dummy $CC
4326 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4327 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4328 if test "$am_t" != yes; then
4329 # Losing compiler, so override with the script.
4330 # FIXME: It is wrong to rewrite CC.
4331 # But if we don't then we get into trouble of one sort or another.
4332 # A longer-term fix would be to have automake use am__CC in this case,
4333 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4334 CC="$am_aux_dir/compile $CC"
4338 ac_ext=cpp
4339 ac_cpp='$CXXCPP $CPPFLAGS'
4340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4343 if test -z "$CXX"; then
4344 if test -n "$CCC"; then
4345 CXX=$CCC
4346 else
4347 if test -n "$ac_tool_prefix"; then
4348 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_CXX+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$CXX"; then
4358 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 CXX=$ac_cv_prog_CXX
4378 if test -n "$CXX"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4380 $as_echo "$CXX" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$CXX" && break
4388 done
4390 if test -z "$CXX"; then
4391 ac_ct_CXX=$CXX
4392 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$ac_ct_CXX"; then
4402 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_CXX="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4415 done
4416 done
4417 IFS=$as_save_IFS
4421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4422 if test -n "$ac_ct_CXX"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4424 $as_echo "$ac_ct_CXX" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$ac_ct_CXX" && break
4432 done
4434 if test "x$ac_ct_CXX" = x; then
4435 CXX="g++"
4436 else
4437 case $cross_compiling:$ac_tool_warned in
4438 yes:)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4442 esac
4443 CXX=$ac_ct_CXX
4449 # Provide some information about the compiler.
4450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4451 set X $ac_compile
4452 ac_compiler=$2
4453 for ac_option in --version -v -V -qversion; do
4454 { { ac_try="$ac_compiler $ac_option >&5"
4455 case "(($ac_try" in
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4458 esac
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4462 ac_status=$?
4463 if test -s conftest.err; then
4464 sed '10a\
4465 ... rest of stderr output deleted ...
4466 10q' conftest.err >conftest.er1
4467 cat conftest.er1 >&5
4468 rm -f conftest.er1 conftest.err
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; }
4472 done
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4475 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4476 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4483 main ()
4485 #ifndef __GNUC__
4486 choke me
4487 #endif
4490 return 0;
4492 _ACEOF
4493 if ac_fn_cxx_try_compile "$LINENO"; then :
4494 ac_compiler_gnu=yes
4495 else
4496 ac_compiler_gnu=no
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4503 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4504 if test $ac_compiler_gnu = yes; then
4505 GXX=yes
4506 else
4507 GXX=
4509 ac_test_CXXFLAGS=${CXXFLAGS+set}
4510 ac_save_CXXFLAGS=$CXXFLAGS
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4512 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4513 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4517 ac_cxx_werror_flag=yes
4518 ac_cv_prog_cxx_g=no
4519 CXXFLAGS="-g"
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4524 main ()
4528 return 0;
4530 _ACEOF
4531 if ac_fn_cxx_try_compile "$LINENO"; then :
4532 ac_cv_prog_cxx_g=yes
4533 else
4534 CXXFLAGS=""
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4539 main ()
4543 return 0;
4545 _ACEOF
4546 if ac_fn_cxx_try_compile "$LINENO"; then :
4548 else
4549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4550 CXXFLAGS="-g"
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4555 main ()
4559 return 0;
4561 _ACEOF
4562 if ac_fn_cxx_try_compile "$LINENO"; then :
4563 ac_cv_prog_cxx_g=yes
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4573 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4574 if test "$ac_test_CXXFLAGS" = set; then
4575 CXXFLAGS=$ac_save_CXXFLAGS
4576 elif test $ac_cv_prog_cxx_g = yes; then
4577 if test "$GXX" = yes; then
4578 CXXFLAGS="-g -O2"
4579 else
4580 CXXFLAGS="-g"
4582 else
4583 if test "$GXX" = yes; then
4584 CXXFLAGS="-O2"
4585 else
4586 CXXFLAGS=
4589 ac_ext=c
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -n "$GNATBIND"; then
4607 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4626 GNATBIND=$ac_cv_prog_GNATBIND
4627 if test -n "$GNATBIND"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4629 $as_echo "$GNATBIND" >&6; }
4630 else
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4637 if test -z "$ac_cv_prog_GNATBIND"; then
4638 ac_ct_GNATBIND=$GNATBIND
4639 # Extract the first word of "gnatbind", so it can be a program name with args.
4640 set dummy gnatbind; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$ac_ct_GNATBIND"; then
4647 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4667 if test -n "$ac_ct_GNATBIND"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4669 $as_echo "$ac_ct_GNATBIND" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4675 if test "x$ac_ct_GNATBIND" = x; then
4676 GNATBIND="no"
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684 GNATBIND=$ac_ct_GNATBIND
4686 else
4687 GNATBIND="$ac_cv_prog_GNATBIND"
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4692 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$GNATMAKE"; then
4699 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 GNATMAKE=$ac_cv_prog_GNATMAKE
4719 if test -n "$GNATMAKE"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4721 $as_echo "$GNATMAKE" >&6; }
4722 else
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4729 if test -z "$ac_cv_prog_GNATMAKE"; then
4730 ac_ct_GNATMAKE=$GNATMAKE
4731 # Extract the first word of "gnatmake", so it can be a program name with args.
4732 set dummy gnatmake; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$ac_ct_GNATMAKE"; then
4739 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4759 if test -n "$ac_ct_GNATMAKE"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4761 $as_echo "$ac_ct_GNATMAKE" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4767 if test "x$ac_ct_GNATMAKE" = x; then
4768 GNATMAKE="no"
4769 else
4770 case $cross_compiling:$ac_tool_warned in
4771 yes:)
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774 ac_tool_warned=yes ;;
4775 esac
4776 GNATMAKE=$ac_ct_GNATMAKE
4778 else
4779 GNATMAKE="$ac_cv_prog_GNATMAKE"
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4783 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4784 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 cat >conftest.adb <<EOF
4788 procedure conftest is begin null; end conftest;
4790 acx_cv_cc_gcc_supports_ada=no
4791 # There is a bug in old released versions of GCC which causes the
4792 # driver to exit successfully when the appropriate language module
4793 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4794 # Therefore we must check for the error message as well as an
4795 # unsuccessful exit.
4796 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4797 # given a .adb file, but produce no object file. So we must check
4798 # if an object file was really produced to guard against this.
4799 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4800 if test x"$errors" = x && test -f conftest.$ac_objext; then
4801 acx_cv_cc_gcc_supports_ada=yes
4803 rm -f conftest.*
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4806 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4808 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4809 have_gnat=yes
4810 else
4811 have_gnat=no
4815 # autoconf is lame and doesn't give us any substitution variable for this.
4816 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4817 NO_MINUS_C_MINUS_O=yes
4818 else
4819 OUTPUT_OPTION='-o $@'
4824 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4825 # optimizations to be activated explicitly by the toplevel.
4826 case "$CC" in
4827 */prev-gcc/xgcc*) ;;
4828 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4829 esac
4832 # -------------------------
4833 # Check C compiler features
4834 # -------------------------
4837 ac_ext=c
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4844 # On Suns, sometimes $CPP names a directory.
4845 if test -n "$CPP" && test -d "$CPP"; then
4846 CPP=
4848 if test -z "$CPP"; then
4849 if test "${ac_cv_prog_CPP+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 # Double quotes because CPP needs to be expanded
4853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4855 ac_preproc_ok=false
4856 for ac_c_preproc_warn_flag in '' yes
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #ifdef __STDC__
4867 # include <limits.h>
4868 #else
4869 # include <assert.h>
4870 #endif
4871 Syntax error
4872 _ACEOF
4873 if ac_fn_c_try_cpp "$LINENO"; then :
4875 else
4876 # Broken: fails on valid input.
4877 continue
4879 rm -f conftest.err conftest.$ac_ext
4881 # OK, works on sane cases. Now check whether nonexistent headers
4882 # can be detected and how.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4886 _ACEOF
4887 if ac_fn_c_try_cpp "$LINENO"; then :
4888 # Broken: success on invalid input.
4889 continue
4890 else
4891 # Passes both tests.
4892 ac_preproc_ok=:
4893 break
4895 rm -f conftest.err conftest.$ac_ext
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then :
4901 break
4904 done
4905 ac_cv_prog_CPP=$CPP
4908 CPP=$ac_cv_prog_CPP
4909 else
4910 ac_cv_prog_CPP=$CPP
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4913 $as_echo "$CPP" >&6; }
4914 ac_preproc_ok=false
4915 for ac_c_preproc_warn_flag in '' yes
4917 # Use a header file that comes with gcc, so configuring glibc
4918 # with a fresh cross-compiler works.
4919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920 # <limits.h> exists even on freestanding compilers.
4921 # On the NeXT, cc -E runs the code through the compiler's parser,
4922 # not just through cpp. "Syntax error" is here to catch this case.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 #ifdef __STDC__
4926 # include <limits.h>
4927 #else
4928 # include <assert.h>
4929 #endif
4930 Syntax error
4931 _ACEOF
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4934 else
4935 # Broken: fails on valid input.
4936 continue
4938 rm -f conftest.err conftest.$ac_ext
4940 # OK, works on sane cases. Now check whether nonexistent headers
4941 # can be detected and how.
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 #include <ac_nonexistent.h>
4945 _ACEOF
4946 if ac_fn_c_try_cpp "$LINENO"; then :
4947 # Broken: success on invalid input.
4948 continue
4949 else
4950 # Passes both tests.
4951 ac_preproc_ok=:
4952 break
4954 rm -f conftest.err conftest.$ac_ext
4956 done
4957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4958 rm -f conftest.err conftest.$ac_ext
4959 if $ac_preproc_ok; then :
4961 else
4962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4964 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4965 See \`config.log' for more details." "$LINENO" 5; }
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4977 if test "${ac_cv_path_GREP+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 if test -z "$GREP"; then
4981 ac_path_GREP_found=false
4982 # Loop through the user's path and test for each of PROGNAME-LIST
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_prog in grep ggrep; do
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4991 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4992 # Check for GNU ac_path_GREP and select it if it is found.
4993 # Check for GNU $ac_path_GREP
4994 case `"$ac_path_GREP" --version 2>&1` in
4995 *GNU*)
4996 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4998 ac_count=0
4999 $as_echo_n 0123456789 >"conftest.in"
5000 while :
5002 cat "conftest.in" "conftest.in" >"conftest.tmp"
5003 mv "conftest.tmp" "conftest.in"
5004 cp "conftest.in" "conftest.nl"
5005 $as_echo 'GREP' >> "conftest.nl"
5006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5008 as_fn_arith $ac_count + 1 && ac_count=$as_val
5009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5010 # Best one so far, save it but keep looking for a better one
5011 ac_cv_path_GREP="$ac_path_GREP"
5012 ac_path_GREP_max=$ac_count
5014 # 10*(2^10) chars as input seems more than enough
5015 test $ac_count -gt 10 && break
5016 done
5017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5018 esac
5020 $ac_path_GREP_found && break 3
5021 done
5022 done
5023 done
5024 IFS=$as_save_IFS
5025 if test -z "$ac_cv_path_GREP"; then
5026 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5028 else
5029 ac_cv_path_GREP=$GREP
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5034 $as_echo "$ac_cv_path_GREP" >&6; }
5035 GREP="$ac_cv_path_GREP"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5039 $as_echo_n "checking for egrep... " >&6; }
5040 if test "${ac_cv_path_EGREP+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5044 then ac_cv_path_EGREP="$GREP -E"
5045 else
5046 if test -z "$EGREP"; then
5047 ac_path_EGREP_found=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_prog in egrep; do
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5058 # Check for GNU ac_path_EGREP and select it if it is found.
5059 # Check for GNU $ac_path_EGREP
5060 case `"$ac_path_EGREP" --version 2>&1` in
5061 *GNU*)
5062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5064 ac_count=0
5065 $as_echo_n 0123456789 >"conftest.in"
5066 while :
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo 'EGREP' >> "conftest.nl"
5072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5074 as_fn_arith $ac_count + 1 && ac_count=$as_val
5075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_EGREP="$ac_path_EGREP"
5078 ac_path_EGREP_max=$ac_count
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5082 done
5083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5084 esac
5086 $ac_path_EGREP_found && break 3
5087 done
5088 done
5089 done
5090 IFS=$as_save_IFS
5091 if test -z "$ac_cv_path_EGREP"; then
5092 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5094 else
5095 ac_cv_path_EGREP=$EGREP
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5101 $as_echo "$ac_cv_path_EGREP" >&6; }
5102 EGREP="$ac_cv_path_EGREP"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5106 $as_echo_n "checking for ANSI C header files... " >&6; }
5107 if test "${ac_cv_header_stdc+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 #include <stdlib.h>
5113 #include <stdarg.h>
5114 #include <string.h>
5115 #include <float.h>
5118 main ()
5122 return 0;
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_header_stdc=yes
5127 else
5128 ac_cv_header_stdc=no
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 if test $ac_cv_header_stdc = yes; then
5133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 #include <string.h>
5138 _ACEOF
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "memchr" >/dev/null 2>&1; then :
5142 else
5143 ac_cv_header_stdc=no
5145 rm -f conftest*
5149 if test $ac_cv_header_stdc = yes; then
5150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #include <stdlib.h>
5155 _ACEOF
5156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5157 $EGREP "free" >/dev/null 2>&1; then :
5159 else
5160 ac_cv_header_stdc=no
5162 rm -f conftest*
5166 if test $ac_cv_header_stdc = yes; then
5167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5168 if test "$cross_compiling" = yes; then :
5170 else
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 #include <ctype.h>
5174 #include <stdlib.h>
5175 #if ((' ' & 0x0FF) == 0x020)
5176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5178 #else
5179 # define ISLOWER(c) \
5180 (('a' <= (c) && (c) <= 'i') \
5181 || ('j' <= (c) && (c) <= 'r') \
5182 || ('s' <= (c) && (c) <= 'z'))
5183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5184 #endif
5186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5188 main ()
5190 int i;
5191 for (i = 0; i < 256; i++)
5192 if (XOR (islower (i), ISLOWER (i))
5193 || toupper (i) != TOUPPER (i))
5194 return 2;
5195 return 0;
5197 _ACEOF
5198 if ac_fn_c_try_run "$LINENO"; then :
5200 else
5201 ac_cv_header_stdc=no
5203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5204 conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5210 $as_echo "$ac_cv_header_stdc" >&6; }
5211 if test $ac_cv_header_stdc = yes; then
5213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5219 inttypes.h stdint.h unistd.h
5220 do :
5221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5224 eval as_val=\$$as_ac_Header
5225 if test "x$as_val" = x""yes; then :
5226 cat >>confdefs.h <<_ACEOF
5227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5228 _ACEOF
5232 done
5236 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5237 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5238 MINIX=yes
5239 else
5240 MINIX=
5244 if test "$MINIX" = yes; then
5246 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5249 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5252 $as_echo "#define _MINIX 1" >>confdefs.h
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5258 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5259 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5265 # define __EXTENSIONS__ 1
5266 $ac_includes_default
5268 main ()
5272 return 0;
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276 ac_cv_safe_to_define___extensions__=yes
5277 else
5278 ac_cv_safe_to_define___extensions__=no
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5283 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5284 test $ac_cv_safe_to_define___extensions__ = yes &&
5285 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5287 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5289 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5293 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5296 ac_ext=c
5297 ac_cpp='$CPP $CPPFLAGS'
5298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5302 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5303 # On Suns, sometimes $CPP names a directory.
5304 if test -n "$CPP" && test -d "$CPP"; then
5305 CPP=
5307 if test -z "$CPP"; then
5308 if test "${ac_cv_prog_CPP+set}" = set; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 # Double quotes because CPP needs to be expanded
5312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5314 ac_preproc_ok=false
5315 for ac_c_preproc_warn_flag in '' yes
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5325 #ifdef __STDC__
5326 # include <limits.h>
5327 #else
5328 # include <assert.h>
5329 #endif
5330 Syntax error
5331 _ACEOF
5332 if ac_fn_c_try_cpp "$LINENO"; then :
5334 else
5335 # Broken: fails on valid input.
5336 continue
5338 rm -f conftest.err conftest.$ac_ext
5340 # OK, works on sane cases. Now check whether nonexistent headers
5341 # can be detected and how.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <ac_nonexistent.h>
5345 _ACEOF
5346 if ac_fn_c_try_cpp "$LINENO"; then :
5347 # Broken: success on invalid input.
5348 continue
5349 else
5350 # Passes both tests.
5351 ac_preproc_ok=:
5352 break
5354 rm -f conftest.err conftest.$ac_ext
5356 done
5357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5358 rm -f conftest.err conftest.$ac_ext
5359 if $ac_preproc_ok; then :
5360 break
5363 done
5364 ac_cv_prog_CPP=$CPP
5367 CPP=$ac_cv_prog_CPP
5368 else
5369 ac_cv_prog_CPP=$CPP
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5372 $as_echo "$CPP" >&6; }
5373 ac_preproc_ok=false
5374 for ac_c_preproc_warn_flag in '' yes
5376 # Use a header file that comes with gcc, so configuring glibc
5377 # with a fresh cross-compiler works.
5378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5379 # <limits.h> exists even on freestanding compilers.
5380 # On the NeXT, cc -E runs the code through the compiler's parser,
5381 # not just through cpp. "Syntax error" is here to catch this case.
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5384 #ifdef __STDC__
5385 # include <limits.h>
5386 #else
5387 # include <assert.h>
5388 #endif
5389 Syntax error
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5393 else
5394 # Broken: fails on valid input.
5395 continue
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <ac_nonexistent.h>
5404 _ACEOF
5405 if ac_fn_c_try_cpp "$LINENO"; then :
5406 # Broken: success on invalid input.
5407 continue
5408 else
5409 # Passes both tests.
5410 ac_preproc_ok=:
5411 break
5413 rm -f conftest.err conftest.$ac_ext
5415 done
5416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5417 rm -f conftest.err conftest.$ac_ext
5418 if $ac_preproc_ok; then :
5420 else
5421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5423 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5424 See \`config.log' for more details." "$LINENO" 5; }
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5434 $as_echo_n "checking for inline... " >&6; }
5435 if test "${ac_cv_c_inline+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 ac_cv_c_inline=no
5439 for ac_kw in inline __inline__ __inline; do
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442 #ifndef __cplusplus
5443 typedef int foo_t;
5444 static $ac_kw foo_t static_foo () {return 0; }
5445 $ac_kw foo_t foo () {return 0; }
5446 #endif
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 ac_cv_c_inline=$ac_kw
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 test "$ac_cv_c_inline" != no && break
5454 done
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5458 $as_echo "$ac_cv_c_inline" >&6; }
5460 case $ac_cv_c_inline in
5461 inline | yes) ;;
5463 case $ac_cv_c_inline in
5464 no) ac_val=;;
5465 *) ac_val=$ac_cv_c_inline;;
5466 esac
5467 cat >>confdefs.h <<_ACEOF
5468 #ifndef __cplusplus
5469 #define inline $ac_val
5470 #endif
5471 _ACEOF
5473 esac
5476 # sizeof(char) is 1 by definition.
5477 # The cast to long int works around a bug in the HP C Compiler
5478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5480 # This bug is HP SR number 8606223364.
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5482 $as_echo_n "checking size of void *... " >&6; }
5483 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5488 else
5489 if test "$ac_cv_type_void_p" = yes; then
5490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5492 { as_fn_set_status 77
5493 as_fn_error "cannot compute sizeof (void *)
5494 See \`config.log' for more details." "$LINENO" 5; }; }
5495 else
5496 ac_cv_sizeof_void_p=0
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5502 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5506 cat >>confdefs.h <<_ACEOF
5507 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5508 _ACEOF
5511 # The cast to long int works around a bug in the HP C Compiler
5512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5514 # This bug is HP SR number 8606223364.
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5516 $as_echo_n "checking size of short... " >&6; }
5517 if test "${ac_cv_sizeof_short+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5522 else
5523 if test "$ac_cv_type_short" = yes; then
5524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5526 { as_fn_set_status 77
5527 as_fn_error "cannot compute sizeof (short)
5528 See \`config.log' for more details." "$LINENO" 5; }; }
5529 else
5530 ac_cv_sizeof_short=0
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5536 $as_echo "$ac_cv_sizeof_short" >&6; }
5540 cat >>confdefs.h <<_ACEOF
5541 #define SIZEOF_SHORT $ac_cv_sizeof_short
5542 _ACEOF
5545 # The cast to long int works around a bug in the HP C Compiler
5546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5548 # This bug is HP SR number 8606223364.
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5550 $as_echo_n "checking size of int... " >&6; }
5551 if test "${ac_cv_sizeof_int+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5556 else
5557 if test "$ac_cv_type_int" = yes; then
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5560 { as_fn_set_status 77
5561 as_fn_error "cannot compute sizeof (int)
5562 See \`config.log' for more details." "$LINENO" 5; }; }
5563 else
5564 ac_cv_sizeof_int=0
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5570 $as_echo "$ac_cv_sizeof_int" >&6; }
5574 cat >>confdefs.h <<_ACEOF
5575 #define SIZEOF_INT $ac_cv_sizeof_int
5576 _ACEOF
5579 # The cast to long int works around a bug in the HP C Compiler
5580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5582 # This bug is HP SR number 8606223364.
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5584 $as_echo_n "checking size of long... " >&6; }
5585 if test "${ac_cv_sizeof_long+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5590 else
5591 if test "$ac_cv_type_long" = yes; then
5592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 { as_fn_set_status 77
5595 as_fn_error "cannot compute sizeof (long)
5596 See \`config.log' for more details." "$LINENO" 5; }; }
5597 else
5598 ac_cv_sizeof_long=0
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5604 $as_echo "$ac_cv_sizeof_long" >&6; }
5608 cat >>confdefs.h <<_ACEOF
5609 #define SIZEOF_LONG $ac_cv_sizeof_long
5610 _ACEOF
5613 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5614 if test "x$ac_cv_type_long_long" = x""yes; then :
5616 cat >>confdefs.h <<_ACEOF
5617 #define HAVE_LONG_LONG 1
5618 _ACEOF
5620 # The cast to long int works around a bug in the HP C Compiler
5621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5623 # This bug is HP SR number 8606223364.
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5625 $as_echo_n "checking size of long long... " >&6; }
5626 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5631 else
5632 if test "$ac_cv_type_long_long" = yes; then
5633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5635 { as_fn_set_status 77
5636 as_fn_error "cannot compute sizeof (long long)
5637 See \`config.log' for more details." "$LINENO" 5; }; }
5638 else
5639 ac_cv_sizeof_long_long=0
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5645 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5649 cat >>confdefs.h <<_ACEOF
5650 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5651 _ACEOF
5656 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5657 if test "x$ac_cv_type___int64" = x""yes; then :
5659 cat >>confdefs.h <<_ACEOF
5660 #define HAVE___INT64 1
5661 _ACEOF
5663 # The cast to long int works around a bug in the HP C Compiler
5664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5666 # This bug is HP SR number 8606223364.
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5668 $as_echo_n "checking size of __int64... " >&6; }
5669 if test "${ac_cv_sizeof___int64+set}" = set; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5674 else
5675 if test "$ac_cv_type___int64" = yes; then
5676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5678 { as_fn_set_status 77
5679 as_fn_error "cannot compute sizeof (__int64)
5680 See \`config.log' for more details." "$LINENO" 5; }; }
5681 else
5682 ac_cv_sizeof___int64=0
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5688 $as_echo "$ac_cv_sizeof___int64" >&6; }
5692 cat >>confdefs.h <<_ACEOF
5693 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5694 _ACEOF
5699 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5700 case $ac_cv_c_int8_t in #(
5701 no|yes) ;; #(
5704 cat >>confdefs.h <<_ACEOF
5705 #define int8_t $ac_cv_c_int8_t
5706 _ACEOF
5708 esac
5710 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5711 case $ac_cv_c_int16_t in #(
5712 no|yes) ;; #(
5715 cat >>confdefs.h <<_ACEOF
5716 #define int16_t $ac_cv_c_int16_t
5717 _ACEOF
5719 esac
5721 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5722 case $ac_cv_c_int32_t in #(
5723 no|yes) ;; #(
5726 cat >>confdefs.h <<_ACEOF
5727 #define int32_t $ac_cv_c_int32_t
5728 _ACEOF
5730 esac
5732 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5733 case $ac_cv_c_int64_t in #(
5734 no|yes) ;; #(
5737 cat >>confdefs.h <<_ACEOF
5738 #define int64_t $ac_cv_c_int64_t
5739 _ACEOF
5741 esac
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5745 $as_echo_n "checking for long long int... " >&6; }
5746 if test "${ac_cv_type_long_long_int+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 /* For now, do not test the preprocessor; as of 2007 there are too many
5753 implementations with broken preprocessors. Perhaps this can
5754 be revisited in 2012. In the meantime, code should not expect
5755 #if to work with literals wider than 32 bits. */
5756 /* Test literals. */
5757 long long int ll = 9223372036854775807ll;
5758 long long int nll = -9223372036854775807LL;
5759 unsigned long long int ull = 18446744073709551615ULL;
5760 /* Test constant expressions. */
5761 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5762 ? 1 : -1)];
5763 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5764 ? 1 : -1)];
5765 int i = 63;
5767 main ()
5769 /* Test availability of runtime routines for shift and division. */
5770 long long int llmax = 9223372036854775807ll;
5771 unsigned long long int ullmax = 18446744073709551615ull;
5772 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5773 | (llmax / ll) | (llmax % ll)
5774 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5775 | (ullmax / ull) | (ullmax % ull));
5777 return 0;
5780 _ACEOF
5781 if ac_fn_c_try_link "$LINENO"; then :
5782 if test "$cross_compiling" = yes; then :
5783 ac_cv_type_long_long_int=yes
5784 else
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <limits.h>
5788 #ifndef LLONG_MAX
5789 # define HALF \
5790 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5791 # define LLONG_MAX (HALF - 1 + HALF)
5792 #endif
5794 main ()
5796 long long int n = 1;
5797 int i;
5798 for (i = 0; ; i++)
5800 long long int m = n << i;
5801 if (m >> i != n)
5802 return 1;
5803 if (LLONG_MAX / 2 < m)
5804 break;
5806 return 0;
5808 return 0;
5810 _ACEOF
5811 if ac_fn_c_try_run "$LINENO"; then :
5812 ac_cv_type_long_long_int=yes
5813 else
5814 ac_cv_type_long_long_int=no
5816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5817 conftest.$ac_objext conftest.beam conftest.$ac_ext
5820 else
5821 ac_cv_type_long_long_int=no
5823 rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5827 $as_echo "$ac_cv_type_long_long_int" >&6; }
5828 if test $ac_cv_type_long_long_int = yes; then
5830 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5836 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5837 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5839 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5841 else
5842 test $ac_cv_type_long_long_int = yes \
5843 && ac_type='long long int' \
5844 || ac_type='long int'
5846 cat >>confdefs.h <<_ACEOF
5847 #define intmax_t $ac_type
5848 _ACEOF
5854 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5855 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5857 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5859 else
5860 for ac_type in 'int' 'long int' 'long long int'; do
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 $ac_includes_default
5865 main ()
5867 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5868 test_array [0] = 0
5871 return 0;
5873 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"; then :
5876 cat >>confdefs.h <<_ACEOF
5877 #define intptr_t $ac_type
5878 _ACEOF
5880 ac_type=
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 test -z "$ac_type" && break
5884 done
5888 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5889 case $ac_cv_c_uint8_t in #(
5890 no|yes) ;; #(
5893 $as_echo "#define _UINT8_T 1" >>confdefs.h
5896 cat >>confdefs.h <<_ACEOF
5897 #define uint8_t $ac_cv_c_uint8_t
5898 _ACEOF
5900 esac
5902 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5903 case $ac_cv_c_uint16_t in #(
5904 no|yes) ;; #(
5908 cat >>confdefs.h <<_ACEOF
5909 #define uint16_t $ac_cv_c_uint16_t
5910 _ACEOF
5912 esac
5914 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5915 case $ac_cv_c_uint32_t in #(
5916 no|yes) ;; #(
5919 $as_echo "#define _UINT32_T 1" >>confdefs.h
5922 cat >>confdefs.h <<_ACEOF
5923 #define uint32_t $ac_cv_c_uint32_t
5924 _ACEOF
5926 esac
5928 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5929 case $ac_cv_c_uint64_t in #(
5930 no|yes) ;; #(
5933 $as_echo "#define _UINT64_T 1" >>confdefs.h
5936 cat >>confdefs.h <<_ACEOF
5937 #define uint64_t $ac_cv_c_uint64_t
5938 _ACEOF
5940 esac
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5944 $as_echo_n "checking for unsigned long long int... " >&6; }
5945 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5947 else
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5951 /* For now, do not test the preprocessor; as of 2007 there are too many
5952 implementations with broken preprocessors. Perhaps this can
5953 be revisited in 2012. In the meantime, code should not expect
5954 #if to work with literals wider than 32 bits. */
5955 /* Test literals. */
5956 long long int ll = 9223372036854775807ll;
5957 long long int nll = -9223372036854775807LL;
5958 unsigned long long int ull = 18446744073709551615ULL;
5959 /* Test constant expressions. */
5960 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5961 ? 1 : -1)];
5962 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5963 ? 1 : -1)];
5964 int i = 63;
5966 main ()
5968 /* Test availability of runtime routines for shift and division. */
5969 long long int llmax = 9223372036854775807ll;
5970 unsigned long long int ullmax = 18446744073709551615ull;
5971 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5972 | (llmax / ll) | (llmax % ll)
5973 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5974 | (ullmax / ull) | (ullmax % ull));
5976 return 0;
5979 _ACEOF
5980 if ac_fn_c_try_link "$LINENO"; then :
5981 ac_cv_type_unsigned_long_long_int=yes
5982 else
5983 ac_cv_type_unsigned_long_long_int=no
5985 rm -f core conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5989 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5990 if test $ac_cv_type_unsigned_long_long_int = yes; then
5992 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5998 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
5999 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6001 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6003 else
6004 test $ac_cv_type_unsigned_long_long_int = yes \
6005 && ac_type='unsigned long long int' \
6006 || ac_type='unsigned long int'
6008 cat >>confdefs.h <<_ACEOF
6009 #define uintmax_t $ac_type
6010 _ACEOF
6016 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6017 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6019 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6021 else
6022 for ac_type in 'unsigned int' 'unsigned long int' \
6023 'unsigned long long int'; do
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 $ac_includes_default
6028 main ()
6030 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6031 test_array [0] = 0
6034 return 0;
6036 _ACEOF
6037 if ac_fn_c_try_compile "$LINENO"; then :
6039 cat >>confdefs.h <<_ACEOF
6040 #define uintptr_t $ac_type
6041 _ACEOF
6043 ac_type=
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 test -z "$ac_type" && break
6047 done
6064 # ---------------------
6065 # Warnings and checking
6066 # ---------------------
6068 # Check $CC warning features (if it's GCC).
6069 # We want to use -pedantic, but we don't want warnings about
6070 # * 'long long'
6071 # * variadic macros
6072 # * overlong strings
6073 # So, we only use -pedantic if we can disable those warnings.
6075 loose_warn=
6076 save_CFLAGS="$CFLAGS"
6077 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6078 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6081 $as_echo_n "checking whether $CC supports $option... " >&6; }
6082 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 CFLAGS="$option"
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6090 main ()
6094 return 0;
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 eval "$as_acx_Woption=yes"
6099 else
6100 eval "$as_acx_Woption=no"
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 eval ac_res=\$$as_acx_Woption
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6107 $as_echo "$ac_res" >&6; }
6108 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6109 loose_warn="$loose_warn${loose_warn:+ }$option"
6111 done
6112 CFLAGS="$save_CFLAGS"
6114 c_loose_warn=
6115 save_CFLAGS="$CFLAGS"
6116 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6117 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6120 $as_echo_n "checking whether $CC supports $option... " >&6; }
6121 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 CFLAGS="$option"
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6129 main ()
6133 return 0;
6135 _ACEOF
6136 if ac_fn_c_try_compile "$LINENO"; then :
6137 eval "$as_acx_Woption=yes"
6138 else
6139 eval "$as_acx_Woption=no"
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 eval ac_res=\$$as_acx_Woption
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6146 $as_echo "$ac_res" >&6; }
6147 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6148 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6150 done
6151 CFLAGS="$save_CFLAGS"
6153 strict_warn=
6154 save_CFLAGS="$CFLAGS"
6155 for option in -Wmissing-format-attribute; do
6156 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6159 $as_echo_n "checking whether $CC supports $option... " >&6; }
6160 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 CFLAGS="$option"
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6168 main ()
6172 return 0;
6174 _ACEOF
6175 if ac_fn_c_try_compile "$LINENO"; then :
6176 eval "$as_acx_Woption=yes"
6177 else
6178 eval "$as_acx_Woption=no"
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 eval ac_res=\$$as_acx_Woption
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6185 $as_echo "$ac_res" >&6; }
6186 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6187 strict_warn="$strict_warn${strict_warn:+ }$option"
6189 done
6190 CFLAGS="$save_CFLAGS"
6192 c_strict_warn=
6193 save_CFLAGS="$CFLAGS"
6194 for option in -Wold-style-definition -Wc++-compat; do
6195 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6198 $as_echo_n "checking whether $CC supports $option... " >&6; }
6199 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 CFLAGS="$option"
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6207 main ()
6211 return 0;
6213 _ACEOF
6214 if ac_fn_c_try_compile "$LINENO"; then :
6215 eval "$as_acx_Woption=yes"
6216 else
6217 eval "$as_acx_Woption=no"
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222 eval ac_res=\$$as_acx_Woption
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6224 $as_echo "$ac_res" >&6; }
6225 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6226 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6228 done
6229 CFLAGS="$save_CFLAGS"
6231 if test "$GCC" = yes; then :
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6233 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6234 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 save_CFLAGS="$CFLAGS"
6238 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6243 main ()
6247 return 0;
6249 _ACEOF
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6252 else
6253 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 CFLAGS="$save_CFLAGS"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6259 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6260 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6261 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6266 # Check whether --enable-werror-always was given.
6267 if test "${enable_werror_always+set}" = set; then :
6268 enableval=$enable_werror_always;
6269 else
6270 enable_werror_always=no
6273 if test $enable_werror_always = yes; then :
6274 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6279 # The above macros do nothing if the compiler is not GCC. However, the
6280 # Makefile has more goo to add other flags, so these variables are used
6281 # to enable warnings only for GCC.
6282 warn_cflags=
6283 warn_cxxflags=
6284 if test "x$GCC" = "xyes"; then
6285 warn_cflags='$(GCC_WARN_CFLAGS)'
6286 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6291 # Enable expensive internal checks
6292 is_release=
6293 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6294 is_release=yes
6297 # Check whether --enable-checking was given.
6298 if test "${enable_checking+set}" = set; then :
6299 enableval=$enable_checking; ac_checking_flags="${enableval}"
6300 else
6302 # Determine the default checks.
6303 if test x$is_release = x ; then
6304 ac_checking_flags=yes
6305 else
6306 ac_checking_flags=release
6310 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6311 for check in release $ac_checking_flags
6313 case $check in
6314 # these set all the flags to specific states
6315 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6316 ac_fold_checking= ; ac_gc_checking=1 ;
6317 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6318 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6319 ac_tree_checking=1 ; ac_valgrind_checking= ;
6320 ac_types_checking=1 ;;
6321 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6322 ac_fold_checking= ; ac_gc_checking= ;
6323 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6324 ac_rtlflag_checking= ; ac_runtime_checking= ;
6325 ac_tree_checking= ; ac_valgrind_checking= ;
6326 ac_types_checking= ;;
6327 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6328 ac_fold_checking=1 ; ac_gc_checking=1 ;
6329 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6330 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6331 ac_tree_checking=1 ; ac_valgrind_checking= ;
6332 ac_types_checking=1 ;;
6333 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6334 ac_fold_checking= ; ac_gc_checking= ;
6335 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6336 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6337 ac_tree_checking= ; ac_valgrind_checking= ;
6338 ac_types_checking= ;;
6339 # these enable particular checks
6340 assert) ac_assert_checking=1 ;;
6341 df) ac_df_checking=1 ;;
6342 fold) ac_fold_checking=1 ;;
6343 gc) ac_gc_checking=1 ;;
6344 gcac) ac_gc_always_collect=1 ;;
6345 gimple) ac_gimple_checking=1 ;;
6346 misc) ac_checking=1 ;;
6347 rtl) ac_rtl_checking=1 ;;
6348 rtlflag) ac_rtlflag_checking=1 ;;
6349 runtime) ac_runtime_checking=1 ;;
6350 tree) ac_tree_checking=1 ;;
6351 types) ac_types_checking=1 ;;
6352 valgrind) ac_valgrind_checking=1 ;;
6353 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6354 esac
6355 done
6356 IFS="$ac_save_IFS"
6358 nocommon_flag=""
6359 if test x$ac_checking != x ; then
6361 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6363 nocommon_flag=-fno-common
6366 if test x$ac_df_checking != x ; then
6368 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6371 if test x$ac_assert_checking != x ; then
6373 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6376 if test x$ac_gimple_checking != x ; then
6378 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6382 if test x$ac_runtime_checking != x ; then
6384 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6387 if test x$ac_tree_checking != x ; then
6389 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6391 TREEBROWSER=tree-browser.o
6393 if test x$ac_types_checking != x ; then
6395 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6399 if test x$ac_rtl_checking != x ; then
6401 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6404 if test x$ac_rtlflag_checking != x ; then
6406 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6409 if test x$ac_gc_checking != x ; then
6411 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6414 if test x$ac_gc_always_collect != x ; then
6416 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6419 if test x$ac_fold_checking != x ; then
6421 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6424 valgrind_path_defines=
6425 valgrind_command=
6427 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6428 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6429 have_valgrind_h=yes
6430 else
6431 have_valgrind_h=no
6436 if test x$ac_valgrind_checking != x ; then
6437 # It is certainly possible that there's valgrind but no valgrind.h.
6438 # GCC relies on making annotations so we must have both.
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6440 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6443 #include <valgrind/memcheck.h>
6444 #ifndef VALGRIND_DISCARD
6445 #error VALGRIND_DISCARD not defined
6446 #endif
6447 _ACEOF
6448 if ac_fn_c_try_cpp "$LINENO"; then :
6449 gcc_cv_header_valgrind_memcheck_h=yes
6450 else
6451 gcc_cv_header_valgrind_memcheck_h=no
6453 rm -f conftest.err conftest.$ac_ext
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6455 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6457 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #include <memcheck.h>
6461 #ifndef VALGRIND_DISCARD
6462 #error VALGRIND_DISCARD not defined
6463 #endif
6464 _ACEOF
6465 if ac_fn_c_try_cpp "$LINENO"; then :
6466 gcc_cv_header_memcheck_h=yes
6467 else
6468 gcc_cv_header_memcheck_h=no
6470 rm -f conftest.err conftest.$ac_ext
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6472 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6474 # Prepare PATH_SEPARATOR.
6475 # The user is always right.
6476 if test "${PATH_SEPARATOR+set}" != set; then
6477 echo "#! /bin/sh" >conf$$.sh
6478 echo "exit 0" >>conf$$.sh
6479 chmod +x conf$$.sh
6480 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6481 PATH_SEPARATOR=';'
6482 else
6483 PATH_SEPARATOR=:
6485 rm -f conf$$.sh
6488 # Find out how to test for executable files. Don't use a zero-byte file,
6489 # as systems may use methods other than mode bits to determine executability.
6490 cat >conf$$.file <<_ASEOF
6491 #! /bin/sh
6492 exit 0
6493 _ASEOF
6494 chmod +x conf$$.file
6495 if test -x conf$$.file >/dev/null 2>&1; then
6496 ac_executable_p="test -x"
6497 else
6498 ac_executable_p="test -f"
6500 rm -f conf$$.file
6502 # Extract the first word of "valgrind", so it can be a program name with args.
6503 set dummy valgrind; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 case "$valgrind_path" in
6510 [\\/]* | ?:[\\/]*)
6511 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6514 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6515 for ac_dir in $PATH; do
6516 IFS="$ac_save_IFS"
6517 test -z "$ac_dir" && ac_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6520 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6521 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6522 break 2
6525 done
6526 done
6527 IFS="$ac_save_IFS"
6529 esac
6531 valgrind_path="$ac_cv_path_valgrind_path"
6532 if test -n "$valgrind_path"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6534 $as_echo "$valgrind_path" >&6; }
6535 else
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6540 if test "x$valgrind_path" = "x" \
6541 || (test $have_valgrind_h = no \
6542 && test $gcc_cv_header_memcheck_h = no \
6543 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6544 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6546 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6547 valgrind_command="$valgrind_path -q"
6549 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6551 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6553 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6556 if test $gcc_cv_header_memcheck_h = yes; then
6558 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6565 # Enable code coverage collection
6566 # Check whether --enable-coverage was given.
6567 if test "${enable_coverage+set}" = set; then :
6568 enableval=$enable_coverage; case "${enableval}" in
6569 yes|noopt)
6570 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6572 opt)
6573 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6576 # a.k.a. --disable-coverage
6577 coverage_flags=""
6580 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6582 esac
6583 else
6584 coverage_flags=""
6589 # Check whether --enable-gather-detailed-mem-stats was given.
6590 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6591 enableval=$enable_gather_detailed_mem_stats;
6592 else
6593 enable_gather_detailed_mem_stats=no
6596 if test x$enable_gather_detailed_mem_stats = xyes ; then
6598 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6602 # -------------------------------
6603 # Miscenalleous configure options
6604 # -------------------------------
6606 # See if we are building gcc with C++.
6607 # Check whether --enable-build-with-cxx was given.
6608 if test "${enable_build_with_cxx+set}" = set; then :
6609 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6610 else
6611 ENABLE_BUILD_WITH_CXX=no
6616 # With stabs
6618 # Check whether --with-stabs was given.
6619 if test "${with_stabs+set}" = set; then :
6620 withval=$with_stabs; stabs="$with_stabs"
6621 else
6622 stabs=no
6626 # Determine whether or not multilibs are enabled.
6627 # Check whether --enable-multilib was given.
6628 if test "${enable_multilib+set}" = set; then :
6629 enableval=$enable_multilib;
6630 else
6631 enable_multilib=yes
6636 # Enable __cxa_atexit for C++.
6637 # Check whether --enable-__cxa_atexit was given.
6638 if test "${enable___cxa_atexit+set}" = set; then :
6639 enableval=$enable___cxa_atexit;
6643 # Enable C extension for decimal float if target supports it.
6644 # Check whether --enable-decimal-float was given.
6645 if test "${enable_decimal_float+set}" = set; then :
6646 enableval=$enable_decimal_float;
6647 case $enable_decimal_float in
6648 yes | no | bid | dpd) ;;
6649 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6650 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6651 esac
6653 else
6655 case $target in
6656 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6657 enable_decimal_float=yes
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6661 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6662 enable_decimal_float=no
6664 esac
6669 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6671 cat >>confdefs.h <<_ACEOF
6672 #define ENABLE_DECIMAL_FLOAT $dfp
6673 _ACEOF
6676 # x86's use BID format instead of DPD
6677 case x$enable_decimal_float in
6678 xyes)
6679 case $target in
6680 i?86*-*-linux* | x86_64*-*-linux*)
6681 enable_decimal_float=bid
6684 enable_decimal_float=dpd
6686 esac
6688 xno)
6689 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6690 # dependency on libdecnumber.
6691 enable_decimal_float=dpd
6693 esac
6696 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6698 cat >>confdefs.h <<_ACEOF
6699 #define ENABLE_DECIMAL_BID_FORMAT $bid
6700 _ACEOF
6703 # Enable C extension for fixed-point arithmetic.
6704 # Check whether --enable-fixed-point was given.
6705 if test "${enable_fixed_point+set}" = set; then :
6706 enableval=$enable_fixed_point;
6708 else
6710 case $target in
6711 mips*-*-*)
6712 case $host in
6713 mips*-sgi-irix*)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6715 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6716 enable_fixed_point=no
6719 enable_fixed_point=yes
6721 esac
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6725 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6726 enable_fixed_point=no
6728 esac
6734 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6736 cat >>confdefs.h <<_ACEOF
6737 #define ENABLE_FIXED_POINT $fixedpoint
6738 _ACEOF
6741 # Enable threads
6742 # Pass with no value to take the default
6743 # Pass with a value to specify a thread package
6744 # Check whether --enable-threads was given.
6745 if test "${enable_threads+set}" = set; then :
6746 enableval=$enable_threads;
6747 else
6748 enable_threads=''
6752 # Check whether --enable-tls was given.
6753 if test "${enable_tls+set}" = set; then :
6754 enableval=$enable_tls;
6755 case $enable_tls in
6756 yes | no) ;;
6757 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6758 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6759 esac
6761 else
6762 enable_tls=''
6766 # Check whether --enable-objc-gc was given.
6767 if test "${enable_objc_gc+set}" = set; then :
6768 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6769 objc_boehm_gc=''
6770 else
6771 objc_boehm_gc=1
6773 else
6774 objc_boehm_gc=''
6779 # Check whether --with-dwarf2 was given.
6780 if test "${with_dwarf2+set}" = set; then :
6781 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6782 else
6783 dwarf2=no
6787 # Check whether --enable-shared was given.
6788 if test "${enable_shared+set}" = set; then :
6789 enableval=$enable_shared;
6790 case $enable_shared in
6791 yes | no) ;;
6793 enable_shared=no
6794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6795 for pkg in $enableval; do
6796 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6797 enable_shared=yes
6799 done
6800 IFS="$ac_save_ifs"
6802 esac
6804 else
6805 enable_shared=yes
6811 # Check whether --with-build-sysroot was given.
6812 if test "${with_build_sysroot+set}" = set; then :
6813 withval=$with_build_sysroot;
6818 # Check whether --with-sysroot was given.
6819 if test "${with_sysroot+set}" = set; then :
6820 withval=$with_sysroot;
6821 case ${with_sysroot} in
6822 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6823 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6824 esac
6826 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6827 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6829 if test "x$prefix" = xNONE; then
6830 test_prefix=/usr/local
6831 else
6832 test_prefix=$prefix
6834 if test "x$exec_prefix" = xNONE; then
6835 test_exec_prefix=$test_prefix
6836 else
6837 test_exec_prefix=$exec_prefix
6839 case ${TARGET_SYSTEM_ROOT} in
6840 "${test_prefix}"|"${test_prefix}/"*|\
6841 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6842 '${prefix}'|'${prefix}/'*|\
6843 '${exec_prefix}'|'${exec_prefix}/'*)
6844 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6845 TARGET_SYSTEM_ROOT_DEFINE="$t"
6847 esac
6849 else
6851 TARGET_SYSTEM_ROOT=
6852 TARGET_SYSTEM_ROOT_DEFINE=
6853 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6862 # Check whether --with-specs was given.
6863 if test "${with_specs+set}" = set; then :
6864 withval=$with_specs; CONFIGURE_SPECS=$withval
6865 else
6866 CONFIGURE_SPECS=
6872 # Build with intermodule optimisations
6873 # Check whether --enable-intermodule was given.
6874 if test "${enable_intermodule+set}" = set; then :
6875 enableval=$enable_intermodule; case ${enable_intermodule} in
6876 yes) onestep="-onestep";;
6877 *) onestep="";;
6878 esac
6879 else
6880 onestep=""
6887 # Check whether --with-pkgversion was given.
6888 if test "${with_pkgversion+set}" = set; then :
6889 withval=$with_pkgversion; case "$withval" in
6890 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6891 no) PKGVERSION= ;;
6892 *) PKGVERSION="($withval) " ;;
6893 esac
6894 else
6895 PKGVERSION="(GCC) "
6903 # Check whether --with-bugurl was given.
6904 if test "${with_bugurl+set}" = set; then :
6905 withval=$with_bugurl; case "$withval" in
6906 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6907 no) BUGURL=
6909 *) BUGURL="$withval"
6911 esac
6912 else
6913 BUGURL="http://gcc.gnu.org/bugs.html"
6917 case ${BUGURL} in
6919 REPORT_BUGS_TO=
6920 REPORT_BUGS_TEXI=
6923 REPORT_BUGS_TO="<$BUGURL>"
6924 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6926 esac;
6931 # Sanity check enable_languages in case someone does not run the toplevel
6932 # configure # script.
6933 # Check whether --enable-languages was given.
6934 if test "${enable_languages+set}" = set; then :
6935 enableval=$enable_languages; case ,${enable_languages}, in
6936 ,,|,yes,)
6937 # go safe -- we cannot be much sure without the toplevel
6938 # configure's
6939 # analysis of which target libs are present and usable
6940 enable_languages=c
6942 *,all,*)
6943 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6945 *,c,*)
6948 enable_languages=c,${enable_languages}
6950 esac
6951 else
6952 enable_languages=c
6957 # Check whether --with-multilib-list was given.
6958 if test "${with_multilib_list+set}" = set; then :
6959 withval=$with_multilib_list; :
6960 else
6961 with_multilib_list=default
6965 # -------------------------
6966 # Checks for other programs
6967 # -------------------------
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6971 set x ${MAKE-make}
6972 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6973 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 cat >conftest.make <<\_ACEOF
6977 SHELL = /bin/sh
6978 all:
6979 @echo '@@@%%%=$(MAKE)=@@@%%%'
6980 _ACEOF
6981 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6983 *@@@%%%=?*=@@@%%%*)
6984 eval ac_cv_prog_make_${ac_make}_set=yes;;
6986 eval ac_cv_prog_make_${ac_make}_set=no;;
6987 esac
6988 rm -f conftest.make
6990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6993 SET_MAKE=
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 SET_MAKE="MAKE=${MAKE-make}"
7001 # Find some useful tools
7002 for ac_prog in gawk mawk nawk awk
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_AWK+set}" = set; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 if test -n "$AWK"; then
7012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_prog_AWK="$ac_prog"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023 break 2
7025 done
7026 done
7027 IFS=$as_save_IFS
7031 AWK=$ac_cv_prog_AWK
7032 if test -n "$AWK"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7034 $as_echo "$AWK" >&6; }
7035 else
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7041 test -n "$AWK" && break
7042 done
7044 # We need awk to create options.c and options.h.
7045 # Bail out if it's missing.
7046 case ${AWK} in
7047 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7048 esac
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7051 $as_echo_n "checking whether ln -s works... " >&6; }
7052 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 rm -f conftestdata_t
7056 echo >conftestdata_f
7057 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7058 then
7059 gcc_cv_prog_LN_S="ln -s"
7060 else
7061 if ln conftestdata_f conftestdata_t 2>/dev/null
7062 then
7063 gcc_cv_prog_LN_S=ln
7064 else
7065 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7066 then
7067 gcc_cv_prog_LN_S="cp -p"
7068 else
7069 gcc_cv_prog_LN_S=cp
7073 rm -f conftestdata_f conftestdata_t
7076 LN_S="$gcc_cv_prog_LN_S"
7077 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7079 $as_echo "yes" >&6; }
7080 else
7081 if test "$gcc_cv_prog_LN_S" = "ln"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7083 $as_echo "no, using ln" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7086 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7091 $as_echo_n "checking whether ln works... " >&6; }
7092 if test "${acx_cv_prog_LN+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 rm -f conftestdata_t
7096 echo >conftestdata_f
7097 if ln conftestdata_f conftestdata_t 2>/dev/null
7098 then
7099 acx_cv_prog_LN=ln
7100 else
7101 acx_cv_prog_LN=no
7103 rm -f conftestdata_f conftestdata_t
7106 if test $acx_cv_prog_LN = no; then
7107 LN="$LN_S"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7109 $as_echo "no, using $LN" >&6; }
7110 else
7111 LN="$acx_cv_prog_LN"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$RANLIB"; then
7125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7138 done
7139 done
7140 IFS=$as_save_IFS
7144 RANLIB=$ac_cv_prog_RANLIB
7145 if test -n "$RANLIB"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7147 $as_echo "$RANLIB" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156 ac_ct_RANLIB=$RANLIB
7157 # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if test -n "$ac_ct_RANLIB"; then
7165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7170 IFS=$as_save_IFS
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_RANLIB="ranlib"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 break 2
7178 done
7179 done
7180 IFS=$as_save_IFS
7184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7187 $as_echo "$ac_ct_RANLIB" >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7193 if test "x$ac_ct_RANLIB" = x; then
7194 RANLIB=":"
7195 else
7196 case $cross_compiling:$ac_tool_warned in
7197 yes:)
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7201 esac
7202 RANLIB=$ac_ct_RANLIB
7204 else
7205 RANLIB="$ac_cv_prog_RANLIB"
7208 case "${host}" in
7209 *-*-darwin*)
7210 # By default, the Darwin ranlib will not treat common symbols as
7211 # definitions when building the archive table of contents. Other
7212 # ranlibs do that; pass an option to the Darwin ranlib that makes
7213 # it behave similarly.
7214 ranlib_flags="-c"
7217 ranlib_flags=""
7218 esac
7221 # Find a good install program. We prefer a C program (faster),
7222 # so one script is as good as another. But avoid the broken or
7223 # incompatible versions:
7224 # SysV /etc/install, /usr/sbin/install
7225 # SunOS /usr/etc/install
7226 # IRIX /sbin/install
7227 # AIX /bin/install
7228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230 # ./install, which can be erroneously created by make from ./install.sh.
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7232 $as_echo_n "checking for a BSD compatible install... " >&6; }
7233 if test -z "$INSTALL"; then
7234 if test "${ac_cv_path_install+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7238 for ac_dir in $PATH; do
7239 # Account for people who put trailing slashes in PATH elements.
7240 case "$ac_dir/" in
7241 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7243 # OSF1 and SCO ODT 3.0 have their own names for install.
7244 for ac_prog in ginstall scoinst install; do
7245 if test -f $ac_dir/$ac_prog; then
7246 if test $ac_prog = install &&
7247 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7248 # AIX install. It has an incompatible calling convention.
7249 # OSF/1 installbsd also uses dspmsg, but is usable.
7251 else
7252 ac_cv_path_install="$ac_dir/$ac_prog -c"
7253 break 2
7256 done
7258 esac
7259 done
7260 IFS="$ac_save_IFS"
7263 if test "${ac_cv_path_install+set}" = set; then
7264 INSTALL="$ac_cv_path_install"
7265 else
7266 # As a last resort, use the slow shell script. We don't cache a
7267 # path for INSTALL within a source directory, because that will
7268 # break other packages using the cache if that directory is
7269 # removed, or if the path is relative.
7270 INSTALL="$ac_install_sh"
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7274 $as_echo "$INSTALL" >&6; }
7276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7277 # It thinks the first close brace ends the variable substitution.
7278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7283 # See if cmp has --ignore-initial.
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7285 $as_echo_n "checking for cmp's capabilities... " >&6; }
7286 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 echo abfoo >t1
7290 echo cdfoo >t2
7291 gcc_cv_prog_cmp_skip=slowcompare
7292 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7293 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7295 else
7296 gcc_cv_prog_cmp_skip=gnucompare
7299 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7300 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7301 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7303 else
7304 gcc_cv_prog_cmp_skip=fastcompare
7308 rm t1 t2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7312 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7313 make_compare_target=$gcc_cv_prog_cmp_skip
7317 # See if we have the mktemp command.
7318 # Extract the first word of "mktemp", so it can be a program name with args.
7319 set dummy mktemp; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$have_mktemp_command"; then
7326 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_have_mktemp_command="yes"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7339 done
7340 done
7341 IFS=$as_save_IFS
7343 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7346 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7347 if test -n "$have_mktemp_command"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7349 $as_echo "$have_mktemp_command" >&6; }
7350 else
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7357 # See if makeinfo has been installed and is modern enough
7358 # that we can use it.
7360 # Extract the first word of "makeinfo", so it can be a program name with args.
7361 set dummy makeinfo; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$MAKEINFO"; then
7368 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_MAKEINFO="makeinfo"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7381 done
7382 done
7383 IFS=$as_save_IFS
7387 MAKEINFO=$ac_cv_prog_MAKEINFO
7388 if test -n "$MAKEINFO"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7390 $as_echo "$MAKEINFO" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7397 if test -n "$MAKEINFO"; then
7398 # Found it, now check the version.
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7400 $as_echo_n "checking for modern makeinfo... " >&6; }
7401 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7405 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7407 case $ac_prog_version in
7408 '') gcc_cv_prog_makeinfo_modern=no;;
7409 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7410 *) gcc_cv_prog_makeinfo_modern=no;;
7411 esac
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7415 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7416 else
7417 gcc_cv_prog_makeinfo_modern=no
7419 if test $gcc_cv_prog_makeinfo_modern = no; then
7420 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7423 if test $gcc_cv_prog_makeinfo_modern = no; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7425 *** Makeinfo is missing or too old.
7426 *** Info documentation will not be built." >&5
7427 $as_echo "$as_me: WARNING:
7428 *** Makeinfo is missing or too old.
7429 *** Info documentation will not be built." >&2;}
7430 BUILD_INFO=
7431 else
7432 BUILD_INFO=info
7436 # Is pod2man recent enough to regenerate manpages?
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7438 $as_echo_n "checking for recent Pod::Man... " >&6; }
7439 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7441 $as_echo "yes" >&6; }
7442 GENERATED_MANPAGES=generated-manpages
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 GENERATED_MANPAGES=
7450 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7452 # How about lex?
7453 for ac_prog in flex
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy $ac_prog; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if test "${ac_cv_prog_FLEX+set}" = set; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$FLEX"; then
7463 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_FLEX="$ac_prog"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7476 done
7477 done
7478 IFS=$as_save_IFS
7482 FLEX=$ac_cv_prog_FLEX
7483 if test -n "$FLEX"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7485 $as_echo "$FLEX" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7492 test -n "$FLEX" && break
7493 done
7494 test -n "$FLEX" || FLEX="$MISSING flex"
7497 # Bison?
7498 for ac_prog in bison
7500 # Extract the first word of "$ac_prog", so it can be a program name with args.
7501 set dummy $ac_prog; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_prog_BISON+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 if test -n "$BISON"; then
7508 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517 ac_cv_prog_BISON="$ac_prog"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7521 done
7522 done
7523 IFS=$as_save_IFS
7527 BISON=$ac_cv_prog_BISON
7528 if test -n "$BISON"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7530 $as_echo "$BISON" >&6; }
7531 else
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7537 test -n "$BISON" && break
7538 done
7539 test -n "$BISON" || BISON="$MISSING bison"
7542 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7543 # check for build == host before using them.
7545 # NM
7546 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7547 && test -d ../binutils ; then
7548 NM='$(objdir)/../binutils/nm-new'
7549 else
7550 # Extract the first word of "nm", so it can be a program name with args.
7551 set dummy nm; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if test "${ac_cv_prog_NM+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 if test -n "$NM"; then
7558 ac_cv_prog_NM="$NM" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7563 IFS=$as_save_IFS
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7567 ac_cv_prog_NM="nm"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 break 2
7571 done
7572 done
7573 IFS=$as_save_IFS
7575 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7578 NM=$ac_cv_prog_NM
7579 if test -n "$NM"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7581 $as_echo "$NM" >&6; }
7582 else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7590 # AR
7591 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7592 && test -d ../binutils ; then
7593 AR='$(objdir)/../binutils/ar'
7594 else
7595 # Extract the first word of "ar", so it can be a program name with args.
7596 set dummy ar; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if test "${ac_cv_prog_AR+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7601 else
7602 if test -n "$AR"; then
7603 ac_cv_prog_AR="$AR" # Let the user override the test.
7604 else
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 for as_dir in $PATH
7608 IFS=$as_save_IFS
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612 ac_cv_prog_AR="ar"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 break 2
7616 done
7617 done
7618 IFS=$as_save_IFS
7620 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7623 AR=$ac_cv_prog_AR
7624 if test -n "$AR"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7626 $as_echo "$AR" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7636 # --------------------
7637 # Checks for C headers
7638 # --------------------
7640 # Need to reject headers which give warnings, so that the -Werror bootstrap
7641 # works later. *sigh* This needs to come before all header checks.
7643 ac_c_preproc_warn_flag=yes
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7646 $as_echo_n "checking for ANSI C header files... " >&6; }
7647 if test "${ac_cv_header_stdc+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <stdlib.h>
7653 #include <stdarg.h>
7654 #include <string.h>
7655 #include <float.h>
7658 main ()
7662 return 0;
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"; then :
7666 ac_cv_header_stdc=yes
7667 else
7668 ac_cv_header_stdc=no
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 if test $ac_cv_header_stdc = yes; then
7673 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 #include <string.h>
7678 _ACEOF
7679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7680 $EGREP "memchr" >/dev/null 2>&1; then :
7682 else
7683 ac_cv_header_stdc=no
7685 rm -f conftest*
7689 if test $ac_cv_header_stdc = yes; then
7690 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 #include <stdlib.h>
7695 _ACEOF
7696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697 $EGREP "free" >/dev/null 2>&1; then :
7699 else
7700 ac_cv_header_stdc=no
7702 rm -f conftest*
7706 if test $ac_cv_header_stdc = yes; then
7707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7708 if test "$cross_compiling" = yes; then :
7710 else
7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712 /* end confdefs.h. */
7713 #include <ctype.h>
7714 #include <stdlib.h>
7715 #if ((' ' & 0x0FF) == 0x020)
7716 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7717 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7718 #else
7719 # define ISLOWER(c) \
7720 (('a' <= (c) && (c) <= 'i') \
7721 || ('j' <= (c) && (c) <= 'r') \
7722 || ('s' <= (c) && (c) <= 'z'))
7723 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7724 #endif
7726 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7728 main ()
7730 int i;
7731 for (i = 0; i < 256; i++)
7732 if (XOR (islower (i), ISLOWER (i))
7733 || toupper (i) != TOUPPER (i))
7734 return 2;
7735 return 0;
7737 _ACEOF
7738 if ac_fn_c_try_run "$LINENO"; then :
7740 else
7741 ac_cv_header_stdc=no
7743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7744 conftest.$ac_objext conftest.beam conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7750 $as_echo "$ac_cv_header_stdc" >&6; }
7751 if test $ac_cv_header_stdc = yes; then
7753 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7758 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7759 if test "${ac_cv_header_time+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 #include <sys/types.h>
7765 #include <sys/time.h>
7766 #include <time.h>
7769 main ()
7771 if ((struct tm *) 0)
7772 return 0;
7774 return 0;
7776 _ACEOF
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778 ac_cv_header_time=yes
7779 else
7780 ac_cv_header_time=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7785 $as_echo "$ac_cv_header_time" >&6; }
7786 if test $ac_cv_header_time = yes; then
7788 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7793 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7794 if test "${gcc_cv_header_string+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 #include <string.h>
7800 #include <strings.h>
7802 main ()
7806 return 0;
7808 _ACEOF
7809 if ac_fn_c_try_compile "$LINENO"; then :
7810 gcc_cv_header_string=yes
7811 else
7812 gcc_cv_header_string=no
7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7817 $as_echo "$gcc_cv_header_string" >&6; }
7818 if test $gcc_cv_header_string = yes; then
7820 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7825 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7826 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <sys/wait.h>
7833 #ifndef WEXITSTATUS
7834 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7835 #endif
7836 #ifndef WIFEXITED
7837 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7838 #endif
7841 main ()
7843 int s;
7844 wait (&s);
7845 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7847 return 0;
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851 ac_cv_header_sys_wait_h=yes
7852 else
7853 ac_cv_header_sys_wait_h=no
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7858 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7859 if test $ac_cv_header_sys_wait_h = yes; then
7861 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7865 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7866 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7867 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7868 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7869 do :
7870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7871 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7872 eval as_val=\$$as_ac_Header
7873 if test "x$as_val" = x""yes; then :
7874 cat >>confdefs.h <<_ACEOF
7875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7876 _ACEOF
7879 done
7882 # Check for thread headers.
7883 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7884 if test "x$ac_cv_header_thread_h" = x""yes; then :
7885 have_thread_h=yes
7886 else
7887 have_thread_h=
7890 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7891 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7892 have_pthread_h=yes
7893 else
7894 have_pthread_h=
7898 # These tests can't be done till we know if we have limits.h.
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7900 $as_echo_n "checking for CHAR_BIT... " >&6; }
7901 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #ifdef HAVE_LIMITS_H
7907 #include <limits.h>
7908 #endif
7909 #ifdef CHAR_BIT
7910 found
7911 #endif
7912 _ACEOF
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914 $EGREP "found" >/dev/null 2>&1; then :
7915 gcc_cv_decl_char_bit=yes
7916 else
7917 gcc_cv_decl_char_bit=no
7919 rm -f conftest*
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7924 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7925 if test $gcc_cv_decl_char_bit = no; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7927 $as_echo_n "checking number of bits in a byte... " >&6; }
7928 if test "${gcc_cv_c_nbby+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7932 gcc_cv_c_nbby=
7933 while test $i -lt 65; do
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7938 main ()
7940 switch(0) {
7941 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7942 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7945 return 0;
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 gcc_cv_c_nbby=$i; break
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 i=`expr $i + 1`
7953 done
7954 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7958 $as_echo "$gcc_cv_c_nbby" >&6; }
7959 if test $gcc_cv_c_nbby = failed; then
7960 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7961 else
7963 cat >>confdefs.h <<_ACEOF
7964 #define CHAR_BIT $gcc_cv_c_nbby
7965 _ACEOF
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7970 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7971 if test "${ac_cv_c_bigendian+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 ac_cv_c_bigendian=unknown
7975 # See if we're dealing with a universal compiler.
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 #ifndef __APPLE_CC__
7979 not a universal capable compiler
7980 #endif
7981 typedef int dummy;
7983 _ACEOF
7984 if ac_fn_c_try_compile "$LINENO"; then :
7986 # Check for potential -arch flags. It is not universal unless
7987 # there are at least two -arch flags with different values.
7988 ac_arch=
7989 ac_prev=
7990 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7991 if test -n "$ac_prev"; then
7992 case $ac_word in
7993 i?86 | x86_64 | ppc | ppc64)
7994 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7995 ac_arch=$ac_word
7996 else
7997 ac_cv_c_bigendian=universal
7998 break
8001 esac
8002 ac_prev=
8003 elif test "x$ac_word" = "x-arch"; then
8004 ac_prev=arch
8006 done
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 if test $ac_cv_c_bigendian = unknown; then
8010 # See if sys/param.h defines the BYTE_ORDER macro.
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <sys/types.h>
8014 #include <sys/param.h>
8017 main ()
8019 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8020 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8021 && LITTLE_ENDIAN)
8022 bogus endian macros
8023 #endif
8026 return 0;
8028 _ACEOF
8029 if ac_fn_c_try_compile "$LINENO"; then :
8030 # It does; now see whether it defined to BIG_ENDIAN or not.
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 #include <sys/types.h>
8034 #include <sys/param.h>
8037 main ()
8039 #if BYTE_ORDER != BIG_ENDIAN
8040 not big endian
8041 #endif
8044 return 0;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048 ac_cv_c_bigendian=yes
8049 else
8050 ac_cv_c_bigendian=no
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8056 if test $ac_cv_c_bigendian = unknown; then
8057 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8060 #include <limits.h>
8063 main ()
8065 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8066 bogus endian macros
8067 #endif
8070 return 0;
8072 _ACEOF
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 # It does; now see whether it defined to _BIG_ENDIAN or not.
8075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076 /* end confdefs.h. */
8077 #include <limits.h>
8080 main ()
8082 #ifndef _BIG_ENDIAN
8083 not big endian
8084 #endif
8087 return 0;
8089 _ACEOF
8090 if ac_fn_c_try_compile "$LINENO"; then :
8091 ac_cv_c_bigendian=yes
8092 else
8093 ac_cv_c_bigendian=no
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 if test $ac_cv_c_bigendian = unknown; then
8100 # Compile a test program.
8101 if test "$cross_compiling" = yes; then :
8102 # Try to guess by grepping values from an object file.
8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 short int ascii_mm[] =
8106 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8107 short int ascii_ii[] =
8108 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8109 int use_ascii (int i) {
8110 return ascii_mm[i] + ascii_ii[i];
8112 short int ebcdic_ii[] =
8113 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8114 short int ebcdic_mm[] =
8115 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8116 int use_ebcdic (int i) {
8117 return ebcdic_mm[i] + ebcdic_ii[i];
8119 extern int foo;
8122 main ()
8124 return use_ascii (foo) == use_ebcdic (foo);
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_compile "$LINENO"; then :
8130 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8131 ac_cv_c_bigendian=yes
8133 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8134 if test "$ac_cv_c_bigendian" = unknown; then
8135 ac_cv_c_bigendian=no
8136 else
8137 # finding both strings is unlikely to happen, but who knows?
8138 ac_cv_c_bigendian=unknown
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 else
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8146 $ac_includes_default
8148 main ()
8151 /* Are we little or big endian? From Harbison&Steele. */
8152 union
8154 long int l;
8155 char c[sizeof (long int)];
8156 } u;
8157 u.l = 1;
8158 return u.c[sizeof (long int) - 1] == 1;
8161 return 0;
8163 _ACEOF
8164 if ac_fn_c_try_run "$LINENO"; then :
8165 ac_cv_c_bigendian=no
8166 else
8167 ac_cv_c_bigendian=yes
8169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8170 conftest.$ac_objext conftest.beam conftest.$ac_ext
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8176 $as_echo "$ac_cv_c_bigendian" >&6; }
8177 case $ac_cv_c_bigendian in #(
8178 yes)
8179 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8180 ;; #(
8182 ;; #(
8183 universal)
8185 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8187 ;; #(
8189 as_fn_error "unknown endianness
8190 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8191 esac
8194 # --------
8195 # UNSORTED
8196 # --------
8199 # These libraries may be used by collect2.
8200 # We may need a special search path to get them linked.
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8202 $as_echo_n "checking for collect2 libraries... " >&6; }
8203 if test "${gcc_cv_collect2_libs+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8205 else
8206 save_LIBS="$LIBS"
8207 for libs in '' -lld -lmld \
8208 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8209 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8211 LIBS="$libs"
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8215 /* Override any GCC internal prototype to avoid an error.
8216 Use char because int might match the return type of a GCC
8217 builtin and then its argument prototype would still apply. */
8218 #ifdef __cplusplus
8219 extern "C"
8220 #endif
8221 char ldopen ();
8223 main ()
8225 return ldopen ();
8227 return 0;
8229 _ACEOF
8230 if ac_fn_c_try_link "$LINENO"; then :
8231 gcc_cv_collect2_libs="$libs"; break
8233 rm -f core conftest.err conftest.$ac_objext \
8234 conftest$ac_exeext conftest.$ac_ext
8235 done
8236 LIBS="$save_LIBS"
8237 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8240 $as_echo "$gcc_cv_collect2_libs" >&6; }
8241 case $gcc_cv_collect2_libs in
8242 "none required") ;;
8243 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8244 esac
8247 # When building Ada code on Alpha, we need exc_resume which is usually in
8248 # -lexc. So test for it.
8249 save_LIBS="$LIBS"
8250 LIBS=
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8252 $as_echo_n "checking for library containing exc_resume... " >&6; }
8253 if test "${ac_cv_search_exc_resume+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 ac_func_search_save_LIBS=$LIBS
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8260 /* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8263 #ifdef __cplusplus
8264 extern "C"
8265 #endif
8266 char exc_resume ();
8268 main ()
8270 return exc_resume ();
8272 return 0;
8274 _ACEOF
8275 for ac_lib in '' exc; do
8276 if test -z "$ac_lib"; then
8277 ac_res="none required"
8278 else
8279 ac_res=-l$ac_lib
8280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 ac_cv_search_exc_resume=$ac_res
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext
8287 if test "${ac_cv_search_exc_resume+set}" = set; then :
8288 break
8290 done
8291 if test "${ac_cv_search_exc_resume+set}" = set; then :
8293 else
8294 ac_cv_search_exc_resume=no
8296 rm conftest.$ac_ext
8297 LIBS=$ac_func_search_save_LIBS
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8300 $as_echo "$ac_cv_search_exc_resume" >&6; }
8301 ac_res=$ac_cv_search_exc_resume
8302 if test "$ac_res" != no; then :
8303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8307 GNAT_LIBEXC="$LIBS"
8308 LIBS="$save_LIBS"
8311 # Some systems put ldexp and frexp in libm instead of libc; assume
8312 # they're both in the same place. jcf-dump needs them.
8313 save_LIBS="$LIBS"
8314 LIBS=
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8316 $as_echo_n "checking for library containing ldexp... " >&6; }
8317 if test "${ac_cv_search_ldexp+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 ac_func_search_save_LIBS=$LIBS
8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h. */
8324 /* Override any GCC internal prototype to avoid an error.
8325 Use char because int might match the return type of a GCC
8326 builtin and then its argument prototype would still apply. */
8327 #ifdef __cplusplus
8328 extern "C"
8329 #endif
8330 char ldexp ();
8332 main ()
8334 return ldexp ();
8336 return 0;
8338 _ACEOF
8339 for ac_lib in '' m; do
8340 if test -z "$ac_lib"; then
8341 ac_res="none required"
8342 else
8343 ac_res=-l$ac_lib
8344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8346 if ac_fn_c_try_link "$LINENO"; then :
8347 ac_cv_search_ldexp=$ac_res
8349 rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext
8351 if test "${ac_cv_search_ldexp+set}" = set; then :
8352 break
8354 done
8355 if test "${ac_cv_search_ldexp+set}" = set; then :
8357 else
8358 ac_cv_search_ldexp=no
8360 rm conftest.$ac_ext
8361 LIBS=$ac_func_search_save_LIBS
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8364 $as_echo "$ac_cv_search_ldexp" >&6; }
8365 ac_res=$ac_cv_search_ldexp
8366 if test "$ac_res" != no; then :
8367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8371 LDEXP_LIB="$LIBS"
8372 LIBS="$save_LIBS"
8375 # Use <inttypes.h> only if it exists,
8376 # doesn't clash with <sys/types.h>, and declares intmax_t.
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8378 $as_echo_n "checking for inttypes.h... " >&6; }
8379 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #include <sys/types.h>
8385 #include <inttypes.h>
8387 main ()
8389 intmax_t i = -1;
8391 return 0;
8393 _ACEOF
8394 if ac_fn_c_try_compile "$LINENO"; then :
8395 gcc_cv_header_inttypes_h=yes
8396 else
8397 gcc_cv_header_inttypes_h=no
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8403 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8404 if test $gcc_cv_header_inttypes_h = yes; then
8406 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8412 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8413 sysconf strsignal getrusage nl_langinfo \
8414 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8415 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
8416 do :
8417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8419 eval as_val=\$$as_ac_var
8420 if test "x$as_val" = x""yes; then :
8421 cat >>confdefs.h <<_ACEOF
8422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8423 _ACEOF
8426 done
8429 if test x$ac_cv_func_mbstowcs = xyes; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8431 $as_echo_n "checking whether mbstowcs works... " >&6; }
8432 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test "$cross_compiling" = yes; then :
8436 gcc_cv_func_mbstowcs_works=yes
8437 else
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <stdlib.h>
8441 int main()
8443 mbstowcs(0, "", 0);
8444 return 0;
8446 _ACEOF
8447 if ac_fn_c_try_run "$LINENO"; then :
8448 gcc_cv_func_mbstowcs_works=yes
8449 else
8450 gcc_cv_func_mbstowcs_works=no
8452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8453 conftest.$ac_objext conftest.beam conftest.$ac_ext
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8458 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8459 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8461 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8466 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8467 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8469 else
8471 cat >>confdefs.h <<_ACEOF
8472 #define ssize_t int
8473 _ACEOF
8477 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8478 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8480 else
8482 cat >>confdefs.h <<_ACEOF
8483 #define caddr_t char *
8484 _ACEOF
8490 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8491 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8492 gcc_header_sys_mman_h=yes
8493 else
8494 gcc_header_sys_mman_h=no
8497 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8498 if test "x$ac_cv_func_mmap" = x""yes; then :
8499 gcc_func_mmap=yes
8500 else
8501 gcc_func_mmap=no
8504 if test "$gcc_header_sys_mman_h" != yes \
8505 || test "$gcc_func_mmap" != yes; then
8506 gcc_cv_func_mmap_file=no
8507 gcc_cv_func_mmap_dev_zero=no
8508 gcc_cv_func_mmap_anon=no
8509 else
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8511 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8512 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 # Add a system to this blacklist if
8516 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8517 # memory area containing the same data that you'd get if you applied
8518 # read() to the same fd. The only system known to have a problem here
8519 # is VMS, where text files have record structure.
8520 case "$host_os" in
8521 vms* | ultrix*)
8522 gcc_cv_func_mmap_file=no ;;
8524 gcc_cv_func_mmap_file=yes;;
8525 esac
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8528 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8530 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8531 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8532 $as_echo_n "(cached) " >&6
8533 else
8534 # Add a system to this blacklist if it has mmap() but /dev/zero
8535 # does not exist, or if mmapping /dev/zero does not give anonymous
8536 # zeroed pages with both the following properties:
8537 # 1. If you map N consecutive pages in with one call, and then
8538 # unmap any subset of those pages, the pages that were not
8539 # explicitly unmapped remain accessible.
8540 # 2. If you map two adjacent blocks of memory and then unmap them
8541 # both at once, they must both go away.
8542 # Systems known to be in this category are Windows (all variants),
8543 # VMS, and Darwin.
8544 case "$host_os" in
8545 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8546 gcc_cv_func_mmap_dev_zero=no ;;
8548 gcc_cv_func_mmap_dev_zero=yes;;
8549 esac
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8552 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8554 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8556 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8557 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8562 #include <sys/types.h>
8563 #include <sys/mman.h>
8564 #include <unistd.h>
8566 #ifndef MAP_ANONYMOUS
8567 #define MAP_ANONYMOUS MAP_ANON
8568 #endif
8571 main ()
8573 int n = MAP_ANONYMOUS;
8575 return 0;
8577 _ACEOF
8578 if ac_fn_c_try_compile "$LINENO"; then :
8579 gcc_cv_decl_map_anon=yes
8580 else
8581 gcc_cv_decl_map_anon=no
8583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8586 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8588 if test $gcc_cv_decl_map_anon = no; then
8589 gcc_cv_func_mmap_anon=no
8590 else
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8592 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8593 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8597 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8598 # doesn't give anonymous zeroed pages with the same properties listed
8599 # above for use of /dev/zero.
8600 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8601 case "$host_os" in
8602 vms* | cygwin* | pe | mingw* | sco* | udk* )
8603 gcc_cv_func_mmap_anon=no ;;
8605 gcc_cv_func_mmap_anon=yes;;
8606 esac
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8609 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8613 if test $gcc_cv_func_mmap_file = yes; then
8615 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8618 if test $gcc_cv_func_mmap_dev_zero = yes; then
8620 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8623 if test $gcc_cv_func_mmap_anon = yes; then
8625 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8630 case "${host}" in
8631 *-*-*vms*)
8632 # Under VMS, vfork works very differently than on Unix. The standard test
8633 # won't work, and it isn't easily adaptable. It makes more sense to
8634 # just force it.
8635 ac_cv_func_vfork_works=yes
8637 esac
8638 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8639 if test "x$ac_cv_type_pid_t" = x""yes; then :
8641 else
8643 cat >>confdefs.h <<_ACEOF
8644 #define pid_t int
8645 _ACEOF
8649 for ac_header in vfork.h
8650 do :
8651 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8652 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_VFORK_H 1
8655 _ACEOF
8658 done
8660 for ac_func in fork vfork
8661 do :
8662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8663 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8664 eval as_val=\$$as_ac_var
8665 if test "x$as_val" = x""yes; then :
8666 cat >>confdefs.h <<_ACEOF
8667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8668 _ACEOF
8671 done
8673 if test "x$ac_cv_func_fork" = xyes; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8675 $as_echo_n "checking for working fork... " >&6; }
8676 if test "${ac_cv_func_fork_works+set}" = set; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 if test "$cross_compiling" = yes; then :
8680 ac_cv_func_fork_works=cross
8681 else
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 $ac_includes_default
8686 main ()
8689 /* By Ruediger Kuhlmann. */
8690 return fork () < 0;
8693 return 0;
8695 _ACEOF
8696 if ac_fn_c_try_run "$LINENO"; then :
8697 ac_cv_func_fork_works=yes
8698 else
8699 ac_cv_func_fork_works=no
8701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8702 conftest.$ac_objext conftest.beam conftest.$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8707 $as_echo "$ac_cv_func_fork_works" >&6; }
8709 else
8710 ac_cv_func_fork_works=$ac_cv_func_fork
8712 if test "x$ac_cv_func_fork_works" = xcross; then
8713 case $host in
8714 *-*-amigaos* | *-*-msdosdjgpp*)
8715 # Override, as these systems have only a dummy fork() stub
8716 ac_cv_func_fork_works=no
8719 ac_cv_func_fork_works=yes
8721 esac
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8723 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8725 ac_cv_func_vfork_works=$ac_cv_func_vfork
8726 if test "x$ac_cv_func_vfork" = xyes; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8728 $as_echo_n "checking for working vfork... " >&6; }
8729 if test "${ac_cv_func_vfork_works+set}" = set; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 if test "$cross_compiling" = yes; then :
8733 ac_cv_func_vfork_works=cross
8734 else
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737 /* Thanks to Paul Eggert for this test. */
8738 $ac_includes_default
8739 #include <sys/wait.h>
8740 #ifdef HAVE_VFORK_H
8741 # include <vfork.h>
8742 #endif
8743 /* On some sparc systems, changes by the child to local and incoming
8744 argument registers are propagated back to the parent. The compiler
8745 is told about this with #include <vfork.h>, but some compilers
8746 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8747 static variable whose address is put into a register that is
8748 clobbered by the vfork. */
8749 static void
8750 #ifdef __cplusplus
8751 sparc_address_test (int arg)
8752 # else
8753 sparc_address_test (arg) int arg;
8754 #endif
8756 static pid_t child;
8757 if (!child) {
8758 child = vfork ();
8759 if (child < 0) {
8760 perror ("vfork");
8761 _exit(2);
8763 if (!child) {
8764 arg = getpid();
8765 write(-1, "", 0);
8766 _exit (arg);
8772 main ()
8774 pid_t parent = getpid ();
8775 pid_t child;
8777 sparc_address_test (0);
8779 child = vfork ();
8781 if (child == 0) {
8782 /* Here is another test for sparc vfork register problems. This
8783 test uses lots of local variables, at least as many local
8784 variables as main has allocated so far including compiler
8785 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8786 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8787 reuse the register of parent for one of the local variables,
8788 since it will think that parent can't possibly be used any more
8789 in this routine. Assigning to the local variable will thus
8790 munge parent in the parent process. */
8791 pid_t
8792 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8793 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8794 /* Convince the compiler that p..p7 are live; otherwise, it might
8795 use the same hardware register for all 8 local variables. */
8796 if (p != p1 || p != p2 || p != p3 || p != p4
8797 || p != p5 || p != p6 || p != p7)
8798 _exit(1);
8800 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8801 from child file descriptors. If the child closes a descriptor
8802 before it execs or exits, this munges the parent's descriptor
8803 as well. Test for this by closing stdout in the child. */
8804 _exit(close(fileno(stdout)) != 0);
8805 } else {
8806 int status;
8807 struct stat st;
8809 while (wait(&status) != child)
8811 return (
8812 /* Was there some problem with vforking? */
8813 child < 0
8815 /* Did the child fail? (This shouldn't happen.) */
8816 || status
8818 /* Did the vfork/compiler bug occur? */
8819 || parent != getpid()
8821 /* Did the file descriptor bug occur? */
8822 || fstat(fileno(stdout), &st) != 0
8826 _ACEOF
8827 if ac_fn_c_try_run "$LINENO"; then :
8828 ac_cv_func_vfork_works=yes
8829 else
8830 ac_cv_func_vfork_works=no
8832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8833 conftest.$ac_objext conftest.beam conftest.$ac_ext
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8838 $as_echo "$ac_cv_func_vfork_works" >&6; }
8841 if test "x$ac_cv_func_fork_works" = xcross; then
8842 ac_cv_func_vfork_works=$ac_cv_func_vfork
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8844 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8847 if test "x$ac_cv_func_vfork_works" = xyes; then
8849 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8851 else
8853 $as_echo "#define vfork fork" >>confdefs.h
8856 if test "x$ac_cv_func_fork_works" = xyes; then
8858 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8864 if test "X$prefix" = "XNONE"; then
8865 acl_final_prefix="$ac_default_prefix"
8866 else
8867 acl_final_prefix="$prefix"
8869 if test "X$exec_prefix" = "XNONE"; then
8870 acl_final_exec_prefix='${prefix}'
8871 else
8872 acl_final_exec_prefix="$exec_prefix"
8874 acl_save_prefix="$prefix"
8875 prefix="$acl_final_prefix"
8876 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8877 prefix="$acl_save_prefix"
8880 # Check whether --with-gnu-ld was given.
8881 if test "${with_gnu_ld+set}" = set; then :
8882 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8883 else
8884 with_gnu_ld=no
8887 # Prepare PATH_SEPARATOR.
8888 # The user is always right.
8889 if test "${PATH_SEPARATOR+set}" != set; then
8890 echo "#! /bin/sh" >conf$$.sh
8891 echo "exit 0" >>conf$$.sh
8892 chmod +x conf$$.sh
8893 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8894 PATH_SEPARATOR=';'
8895 else
8896 PATH_SEPARATOR=:
8898 rm -f conf$$.sh
8900 ac_prog=ld
8901 if test "$GCC" = yes; then
8902 # Check if gcc -print-prog-name=ld gives a path.
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8904 $as_echo_n "checking for ld used by GCC... " >&6; }
8905 case $host in
8906 *-*-mingw*)
8907 # gcc leaves a trailing carriage return which upsets mingw
8908 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8910 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8911 esac
8912 case $ac_prog in
8913 # Accept absolute paths.
8914 [\\/]* | [A-Za-z]:[\\/]*)
8915 re_direlt='/[^/][^/]*/\.\./'
8916 # Canonicalize the path of ld
8917 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8918 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8919 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8920 done
8921 test -z "$LD" && LD="$ac_prog"
8924 # If it fails, then pretend we aren't using GCC.
8925 ac_prog=ld
8928 # If it is relative, then search for the first ld in PATH.
8929 with_gnu_ld=unknown
8931 esac
8932 elif test "$with_gnu_ld" = yes; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8934 $as_echo_n "checking for GNU ld... " >&6; }
8935 else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8937 $as_echo_n "checking for non-GNU ld... " >&6; }
8939 if test "${acl_cv_path_LD+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 if test -z "$LD"; then
8943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8944 for ac_dir in $PATH; do
8945 test -z "$ac_dir" && ac_dir=.
8946 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8947 acl_cv_path_LD="$ac_dir/$ac_prog"
8948 # Check to see if the program is GNU ld. I'd rather use --version,
8949 # but apparently some GNU ld's only accept -v.
8950 # Break only if it was the GNU/non-GNU ld that we prefer.
8951 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8952 test "$with_gnu_ld" != no && break
8953 else
8954 test "$with_gnu_ld" != yes && break
8957 done
8958 IFS="$ac_save_ifs"
8959 else
8960 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8964 LD="$acl_cv_path_LD"
8965 if test -n "$LD"; then
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8967 $as_echo "$LD" >&6; }
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8972 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8974 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8975 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8979 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8980 acl_cv_prog_gnu_ld=yes
8981 else
8982 acl_cv_prog_gnu_ld=no
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8986 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8987 with_gnu_ld=$acl_cv_prog_gnu_ld
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8992 $as_echo_n "checking for shared library run path origin... " >&6; }
8993 if test "${acl_cv_rpath+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8997 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8998 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8999 . ./conftest.sh
9000 rm -f ./conftest.sh
9001 acl_cv_rpath=done
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9005 $as_echo "$acl_cv_rpath" >&6; }
9006 wl="$acl_cv_wl"
9007 libext="$acl_cv_libext"
9008 shlibext="$acl_cv_shlibext"
9009 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9010 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9011 hardcode_direct="$acl_cv_hardcode_direct"
9012 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9013 # Check whether --enable-rpath was given.
9014 if test "${enable_rpath+set}" = set; then :
9015 enableval=$enable_rpath; :
9016 else
9017 enable_rpath=yes
9027 use_additional=yes
9029 acl_save_prefix="$prefix"
9030 prefix="$acl_final_prefix"
9031 acl_save_exec_prefix="$exec_prefix"
9032 exec_prefix="$acl_final_exec_prefix"
9034 eval additional_includedir=\"$includedir\"
9035 eval additional_libdir=\"$libdir\"
9037 exec_prefix="$acl_save_exec_prefix"
9038 prefix="$acl_save_prefix"
9041 # Check whether --with-libiconv-prefix was given.
9042 if test "${with_libiconv_prefix+set}" = set; then :
9043 withval=$with_libiconv_prefix;
9044 if test "X$withval" = "Xno"; then
9045 use_additional=no
9046 else
9047 if test "X$withval" = "X"; then
9049 acl_save_prefix="$prefix"
9050 prefix="$acl_final_prefix"
9051 acl_save_exec_prefix="$exec_prefix"
9052 exec_prefix="$acl_final_exec_prefix"
9054 eval additional_includedir=\"$includedir\"
9055 eval additional_libdir=\"$libdir\"
9057 exec_prefix="$acl_save_exec_prefix"
9058 prefix="$acl_save_prefix"
9060 else
9061 additional_includedir="$withval/include"
9062 additional_libdir="$withval/lib"
9068 LIBICONV=
9069 LTLIBICONV=
9070 INCICONV=
9071 rpathdirs=
9072 ltrpathdirs=
9073 names_already_handled=
9074 names_next_round='iconv '
9075 while test -n "$names_next_round"; do
9076 names_this_round="$names_next_round"
9077 names_next_round=
9078 for name in $names_this_round; do
9079 already_handled=
9080 for n in $names_already_handled; do
9081 if test "$n" = "$name"; then
9082 already_handled=yes
9083 break
9085 done
9086 if test -z "$already_handled"; then
9087 names_already_handled="$names_already_handled $name"
9088 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9089 eval value=\"\$HAVE_LIB$uppername\"
9090 if test -n "$value"; then
9091 if test "$value" = yes; then
9092 eval value=\"\$LIB$uppername\"
9093 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9094 eval value=\"\$LTLIB$uppername\"
9095 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9096 else
9099 else
9100 found_dir=
9101 found_la=
9102 found_so=
9103 found_a=
9104 if test $use_additional = yes; then
9105 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9106 found_dir="$additional_libdir"
9107 found_so="$additional_libdir/lib$name.$shlibext"
9108 if test -f "$additional_libdir/lib$name.la"; then
9109 found_la="$additional_libdir/lib$name.la"
9111 else
9112 if test -f "$additional_libdir/lib$name.$libext"; then
9113 found_dir="$additional_libdir"
9114 found_a="$additional_libdir/lib$name.$libext"
9115 if test -f "$additional_libdir/lib$name.la"; then
9116 found_la="$additional_libdir/lib$name.la"
9121 if test "X$found_dir" = "X"; then
9122 for x in $LDFLAGS $LTLIBICONV; do
9124 acl_save_prefix="$prefix"
9125 prefix="$acl_final_prefix"
9126 acl_save_exec_prefix="$exec_prefix"
9127 exec_prefix="$acl_final_exec_prefix"
9128 eval x=\"$x\"
9129 exec_prefix="$acl_save_exec_prefix"
9130 prefix="$acl_save_prefix"
9132 case "$x" in
9133 -L*)
9134 dir=`echo "X$x" | sed -e 's/^X-L//'`
9135 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9136 found_dir="$dir"
9137 found_so="$dir/lib$name.$shlibext"
9138 if test -f "$dir/lib$name.la"; then
9139 found_la="$dir/lib$name.la"
9141 else
9142 if test -f "$dir/lib$name.$libext"; then
9143 found_dir="$dir"
9144 found_a="$dir/lib$name.$libext"
9145 if test -f "$dir/lib$name.la"; then
9146 found_la="$dir/lib$name.la"
9151 esac
9152 if test "X$found_dir" != "X"; then
9153 break
9155 done
9157 if test "X$found_dir" != "X"; then
9158 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9159 if test "X$found_so" != "X"; then
9160 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9161 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9162 else
9163 haveit=
9164 for x in $ltrpathdirs; do
9165 if test "X$x" = "X$found_dir"; then
9166 haveit=yes
9167 break
9169 done
9170 if test -z "$haveit"; then
9171 ltrpathdirs="$ltrpathdirs $found_dir"
9173 if test "$hardcode_direct" = yes; then
9174 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9175 else
9176 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9177 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9178 haveit=
9179 for x in $rpathdirs; do
9180 if test "X$x" = "X$found_dir"; then
9181 haveit=yes
9182 break
9184 done
9185 if test -z "$haveit"; then
9186 rpathdirs="$rpathdirs $found_dir"
9188 else
9189 haveit=
9190 for x in $LDFLAGS $LIBICONV; do
9192 acl_save_prefix="$prefix"
9193 prefix="$acl_final_prefix"
9194 acl_save_exec_prefix="$exec_prefix"
9195 exec_prefix="$acl_final_exec_prefix"
9196 eval x=\"$x\"
9197 exec_prefix="$acl_save_exec_prefix"
9198 prefix="$acl_save_prefix"
9200 if test "X$x" = "X-L$found_dir"; then
9201 haveit=yes
9202 break
9204 done
9205 if test -z "$haveit"; then
9206 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9208 if test "$hardcode_minus_L" != no; then
9209 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9210 else
9211 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9216 else
9217 if test "X$found_a" != "X"; then
9218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9219 else
9220 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9223 additional_includedir=
9224 case "$found_dir" in
9225 */lib | */lib/)
9226 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9227 additional_includedir="$basedir/include"
9229 esac
9230 if test "X$additional_includedir" != "X"; then
9231 if test "X$additional_includedir" != "X/usr/include"; then
9232 haveit=
9233 if test "X$additional_includedir" = "X/usr/local/include"; then
9234 if test -n "$GCC"; then
9235 case $host_os in
9236 linux*) haveit=yes;;
9237 esac
9240 if test -z "$haveit"; then
9241 for x in $CPPFLAGS $INCICONV; do
9243 acl_save_prefix="$prefix"
9244 prefix="$acl_final_prefix"
9245 acl_save_exec_prefix="$exec_prefix"
9246 exec_prefix="$acl_final_exec_prefix"
9247 eval x=\"$x\"
9248 exec_prefix="$acl_save_exec_prefix"
9249 prefix="$acl_save_prefix"
9251 if test "X$x" = "X-I$additional_includedir"; then
9252 haveit=yes
9253 break
9255 done
9256 if test -z "$haveit"; then
9257 if test -d "$additional_includedir"; then
9258 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9264 if test -n "$found_la"; then
9265 save_libdir="$libdir"
9266 case "$found_la" in
9267 */* | *\\*) . "$found_la" ;;
9268 *) . "./$found_la" ;;
9269 esac
9270 libdir="$save_libdir"
9271 for dep in $dependency_libs; do
9272 case "$dep" in
9273 -L*)
9274 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9275 if test "X$additional_libdir" != "X/usr/lib"; then
9276 haveit=
9277 if test "X$additional_libdir" = "X/usr/local/lib"; then
9278 if test -n "$GCC"; then
9279 case $host_os in
9280 linux*) haveit=yes;;
9281 esac
9284 if test -z "$haveit"; then
9285 haveit=
9286 for x in $LDFLAGS $LIBICONV; do
9288 acl_save_prefix="$prefix"
9289 prefix="$acl_final_prefix"
9290 acl_save_exec_prefix="$exec_prefix"
9291 exec_prefix="$acl_final_exec_prefix"
9292 eval x=\"$x\"
9293 exec_prefix="$acl_save_exec_prefix"
9294 prefix="$acl_save_prefix"
9296 if test "X$x" = "X-L$additional_libdir"; then
9297 haveit=yes
9298 break
9300 done
9301 if test -z "$haveit"; then
9302 if test -d "$additional_libdir"; then
9303 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9306 haveit=
9307 for x in $LDFLAGS $LTLIBICONV; do
9309 acl_save_prefix="$prefix"
9310 prefix="$acl_final_prefix"
9311 acl_save_exec_prefix="$exec_prefix"
9312 exec_prefix="$acl_final_exec_prefix"
9313 eval x=\"$x\"
9314 exec_prefix="$acl_save_exec_prefix"
9315 prefix="$acl_save_prefix"
9317 if test "X$x" = "X-L$additional_libdir"; then
9318 haveit=yes
9319 break
9321 done
9322 if test -z "$haveit"; then
9323 if test -d "$additional_libdir"; then
9324 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9330 -R*)
9331 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9332 if test "$enable_rpath" != no; then
9333 haveit=
9334 for x in $rpathdirs; do
9335 if test "X$x" = "X$dir"; then
9336 haveit=yes
9337 break
9339 done
9340 if test -z "$haveit"; then
9341 rpathdirs="$rpathdirs $dir"
9343 haveit=
9344 for x in $ltrpathdirs; do
9345 if test "X$x" = "X$dir"; then
9346 haveit=yes
9347 break
9349 done
9350 if test -z "$haveit"; then
9351 ltrpathdirs="$ltrpathdirs $dir"
9355 -l*)
9356 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9358 *.la)
9359 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9362 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9363 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9365 esac
9366 done
9368 else
9369 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9370 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9374 done
9375 done
9376 if test "X$rpathdirs" != "X"; then
9377 if test -n "$hardcode_libdir_separator"; then
9378 alldirs=
9379 for found_dir in $rpathdirs; do
9380 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9381 done
9382 acl_save_libdir="$libdir"
9383 libdir="$alldirs"
9384 eval flag=\"$hardcode_libdir_flag_spec\"
9385 libdir="$acl_save_libdir"
9386 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9387 else
9388 for found_dir in $rpathdirs; do
9389 acl_save_libdir="$libdir"
9390 libdir="$found_dir"
9391 eval flag=\"$hardcode_libdir_flag_spec\"
9392 libdir="$acl_save_libdir"
9393 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9394 done
9397 if test "X$ltrpathdirs" != "X"; then
9398 for found_dir in $ltrpathdirs; do
9399 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9400 done
9409 am_save_CPPFLAGS="$CPPFLAGS"
9411 for element in $INCICONV; do
9412 haveit=
9413 for x in $CPPFLAGS; do
9415 acl_save_prefix="$prefix"
9416 prefix="$acl_final_prefix"
9417 acl_save_exec_prefix="$exec_prefix"
9418 exec_prefix="$acl_final_exec_prefix"
9419 eval x=\"$x\"
9420 exec_prefix="$acl_save_exec_prefix"
9421 prefix="$acl_save_prefix"
9423 if test "X$x" = "X$element"; then
9424 haveit=yes
9425 break
9427 done
9428 if test -z "$haveit"; then
9429 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9431 done
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9435 $as_echo_n "checking for iconv... " >&6; }
9436 if test "${am_cv_func_iconv+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9440 am_cv_func_iconv="no, consider installing GNU libiconv"
9441 am_cv_lib_iconv=no
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 #include <stdlib.h>
9445 #include <iconv.h>
9447 main ()
9449 iconv_t cd = iconv_open("","");
9450 iconv(cd,NULL,NULL,NULL,NULL);
9451 iconv_close(cd);
9453 return 0;
9455 _ACEOF
9456 if ac_fn_c_try_link "$LINENO"; then :
9457 am_cv_func_iconv=yes
9459 rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 if test "$am_cv_func_iconv" != yes; then
9462 am_save_LIBS="$LIBS"
9463 LIBS="$LIBS $LIBICONV"
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9466 #include <stdlib.h>
9467 #include <iconv.h>
9469 main ()
9471 iconv_t cd = iconv_open("","");
9472 iconv(cd,NULL,NULL,NULL,NULL);
9473 iconv_close(cd);
9475 return 0;
9477 _ACEOF
9478 if ac_fn_c_try_link "$LINENO"; then :
9479 am_cv_lib_iconv=yes
9480 am_cv_func_iconv=yes
9482 rm -f core conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484 LIBS="$am_save_LIBS"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9489 $as_echo "$am_cv_func_iconv" >&6; }
9490 if test "$am_cv_func_iconv" = yes; then
9492 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9495 if test "$am_cv_lib_iconv" = yes; then
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9497 $as_echo_n "checking how to link with libiconv... " >&6; }
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9499 $as_echo "$LIBICONV" >&6; }
9500 else
9501 CPPFLAGS="$am_save_CPPFLAGS"
9502 LIBICONV=
9503 LTLIBICONV=
9508 if test "$am_cv_func_iconv" = yes; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9510 $as_echo_n "checking for iconv declaration... " >&6; }
9511 if test "${am_cv_proto_iconv+set}" = set; then :
9512 $as_echo_n "(cached) " >&6
9513 else
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9518 #include <stdlib.h>
9519 #include <iconv.h>
9520 extern
9521 #ifdef __cplusplus
9523 #endif
9524 #if defined(__STDC__) || defined(__cplusplus)
9525 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9526 #else
9527 size_t iconv();
9528 #endif
9531 main ()
9535 return 0;
9537 _ACEOF
9538 if ac_fn_c_try_compile "$LINENO"; then :
9539 am_cv_proto_iconv_arg1=""
9540 else
9541 am_cv_proto_iconv_arg1="const"
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9544 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);"
9547 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9549 }$am_cv_proto_iconv" >&5
9550 $as_echo "${ac_t:-
9551 }$am_cv_proto_iconv" >&6; }
9553 cat >>confdefs.h <<_ACEOF
9554 #define ICONV_CONST $am_cv_proto_iconv_arg1
9555 _ACEOF
9559 # Until we have in-tree GNU iconv:
9560 LIBICONV_DEP=
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9565 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9566 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9567 $as_echo_n "(cached) " >&6
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 #include <locale.h>
9573 main ()
9575 return LC_MESSAGES
9577 return 0;
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 am_cv_val_LC_MESSAGES=yes
9582 else
9583 am_cv_val_LC_MESSAGES=no
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9589 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9590 if test $am_cv_val_LC_MESSAGES = yes; then
9592 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9599 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9600 if test "${am_cv_langinfo_codeset+set}" = set; then :
9601 $as_echo_n "(cached) " >&6
9602 else
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 #include <langinfo.h>
9607 main ()
9609 char* cs = nl_langinfo(CODESET);
9611 return 0;
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615 am_cv_langinfo_codeset=yes
9616 else
9617 am_cv_langinfo_codeset=no
9619 rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9624 $as_echo "$am_cv_langinfo_codeset" >&6; }
9625 if test $am_cv_langinfo_codeset = yes; then
9627 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9632 # We will need to find libiberty.h and ansidecl.h
9633 saved_CFLAGS="$CFLAGS"
9634 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9635 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9636 strsignal strstr strverscmp \
9637 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9638 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
9640 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9642 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9643 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9644 $as_echo_n "(cached) " >&6
9645 else
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 #undef $ac_tr_decl
9649 #define $ac_tr_decl 1
9651 #include "ansidecl.h"
9652 #include "system.h"
9655 main ()
9657 #ifndef $ac_func
9658 char *(*pfn) = (char *(*)) $ac_func ;
9659 #endif
9661 return 0;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665 eval "gcc_cv_have_decl_$ac_func=yes"
9666 else
9667 eval "gcc_cv_have_decl_$ac_func=no"
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9672 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9674 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9675 #define $ac_tr_decl 1
9676 _ACEOF
9678 else
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9681 #define $ac_tr_decl 0
9682 _ACEOF
9686 done
9689 for ac_func in getrlimit setrlimit getrusage
9691 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9693 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9694 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 #undef $ac_tr_decl
9700 #define $ac_tr_decl 1
9702 #include "ansidecl.h"
9703 #include "system.h"
9704 #ifdef HAVE_SYS_RESOURCE_H
9705 #include <sys/resource.h>
9706 #endif
9710 main ()
9712 #ifndef $ac_func
9713 char *(*pfn) = (char *(*)) $ac_func ;
9714 #endif
9716 return 0;
9718 _ACEOF
9719 if ac_fn_c_try_compile "$LINENO"; then :
9720 eval "gcc_cv_have_decl_$ac_func=yes"
9721 else
9722 eval "gcc_cv_have_decl_$ac_func=no"
9724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9729 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9730 #define $ac_tr_decl 1
9731 _ACEOF
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9736 #define $ac_tr_decl 0
9737 _ACEOF
9741 done
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9747 #include "ansidecl.h"
9748 #include "system.h"
9749 #ifdef HAVE_SYS_RESOURCE_H
9750 #include <sys/resource.h>
9751 #endif
9754 main ()
9756 rlim_t l = 0;
9758 return 0;
9760 _ACEOF
9761 if ac_fn_c_try_compile "$LINENO"; then :
9763 else
9765 $as_echo "#define rlim_t long" >>confdefs.h
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9770 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9771 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9772 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9773 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9774 for ac_func in ldgetname
9776 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9778 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9779 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 #undef $ac_tr_decl
9785 #define $ac_tr_decl 1
9787 #include "ansidecl.h"
9788 #include "system.h"
9789 #ifdef HAVE_LDFCN_H
9790 #undef FREAD
9791 #undef FWRITE
9792 #include <ldfcn.h>
9793 #endif
9797 main ()
9799 #ifndef $ac_func
9800 char *(*pfn) = (char *(*)) $ac_func ;
9801 #endif
9803 return 0;
9805 _ACEOF
9806 if ac_fn_c_try_compile "$LINENO"; then :
9807 eval "gcc_cv_have_decl_$ac_func=yes"
9808 else
9809 eval "gcc_cv_have_decl_$ac_func=no"
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9816 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9817 #define $ac_tr_decl 1
9818 _ACEOF
9820 else
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9822 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9823 #define $ac_tr_decl 0
9824 _ACEOF
9828 done
9831 for ac_func in times
9833 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9835 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9836 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 #undef $ac_tr_decl
9842 #define $ac_tr_decl 1
9844 #include "ansidecl.h"
9845 #include "system.h"
9846 #ifdef HAVE_SYS_TIMES_H
9847 #include <sys/times.h>
9848 #endif
9852 main ()
9854 #ifndef $ac_func
9855 char *(*pfn) = (char *(*)) $ac_func ;
9856 #endif
9858 return 0;
9860 _ACEOF
9861 if ac_fn_c_try_compile "$LINENO"; then :
9862 eval "gcc_cv_have_decl_$ac_func=yes"
9863 else
9864 eval "gcc_cv_have_decl_$ac_func=no"
9866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9871 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9872 #define $ac_tr_decl 1
9873 _ACEOF
9875 else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9878 #define $ac_tr_decl 0
9879 _ACEOF
9883 done
9886 for ac_func in sigaltstack
9888 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9890 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9891 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9896 #undef $ac_tr_decl
9897 #define $ac_tr_decl 1
9899 #include "ansidecl.h"
9900 #include "system.h"
9901 #include <signal.h>
9905 main ()
9907 #ifndef $ac_func
9908 char *(*pfn) = (char *(*)) $ac_func ;
9909 #endif
9911 return 0;
9913 _ACEOF
9914 if ac_fn_c_try_compile "$LINENO"; then :
9915 eval "gcc_cv_have_decl_$ac_func=yes"
9916 else
9917 eval "gcc_cv_have_decl_$ac_func=no"
9919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9925 #define $ac_tr_decl 1
9926 _ACEOF
9928 else
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9931 #define $ac_tr_decl 0
9932 _ACEOF
9936 done
9939 # More time-related stuff.
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9941 $as_echo_n "checking for struct tms... " >&6; }
9942 if test "${ac_cv_struct_tms+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9949 #include "ansidecl.h"
9950 #include "system.h"
9951 #ifdef HAVE_SYS_TIMES_H
9952 #include <sys/times.h>
9953 #endif
9956 main ()
9958 struct tms tms;
9960 return 0;
9962 _ACEOF
9963 if ac_fn_c_try_compile "$LINENO"; then :
9964 ac_cv_struct_tms=yes
9965 else
9966 ac_cv_struct_tms=no
9968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9971 $as_echo "$ac_cv_struct_tms" >&6; }
9972 if test $ac_cv_struct_tms = yes; then
9974 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9978 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9979 # revisit after autoconf 2.50.
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9981 $as_echo_n "checking for clock_t... " >&6; }
9982 if test "${gcc_cv_type_clock_t+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9989 #include "ansidecl.h"
9990 #include "system.h"
9993 main ()
9995 clock_t x;
9997 return 0;
9999 _ACEOF
10000 if ac_fn_c_try_compile "$LINENO"; then :
10001 gcc_cv_type_clock_t=yes
10002 else
10003 gcc_cv_type_clock_t=no
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10008 $as_echo "$gcc_cv_type_clock_t" >&6; }
10009 if test $gcc_cv_type_clock_t = yes; then
10011 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10015 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10016 CFLAGS="$saved_CFLAGS"
10018 # Check whether --enable-initfini-array was given.
10019 if test "${enable_initfini_array+set}" = set; then :
10020 enableval=$enable_initfini_array;
10021 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10024 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10025 if test "${gcc_cv_initfini_array+set}" = set; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 if test "$cross_compiling" = yes; then :
10029 gcc_cv_initfini_array=no
10030 else
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10034 static int x = -1;
10035 int main (void) { return x; }
10036 int foo (void) { x = 0; }
10037 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10038 _ACEOF
10039 if ac_fn_c_try_run "$LINENO"; then :
10040 gcc_cv_initfini_array=yes
10041 else
10042 gcc_cv_initfini_array=no
10044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10045 conftest.$ac_objext conftest.beam conftest.$ac_ext
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10050 $as_echo "$gcc_cv_initfini_array" >&6; }
10051 enable_initfini_array=$gcc_cv_initfini_array
10055 if test $enable_initfini_array = yes; then
10057 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10061 # mkdir takes a single argument on some systems.
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10063 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10064 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
10066 else
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10070 #include <sys/types.h>
10071 #ifdef HAVE_SYS_STAT_H
10072 # include <sys/stat.h>
10073 #endif
10074 #ifdef HAVE_UNISTD_H
10075 # include <unistd.h>
10076 #endif
10077 #ifdef HAVE_DIRECT_H
10078 # include <direct.h>
10079 #endif
10081 main ()
10083 mkdir ("foo", 0);
10085 return 0;
10087 _ACEOF
10088 if ac_fn_c_try_compile "$LINENO"; then :
10089 gcc_cv_mkdir_takes_one_arg=no
10090 else
10091 gcc_cv_mkdir_takes_one_arg=yes
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10096 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10097 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10099 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10104 # File extensions
10105 manext='.1'
10106 objext='.o'
10110 # With Setjmp/Longjmp based exception handling.
10111 # Check whether --enable-sjlj-exceptions was given.
10112 if test "${enable_sjlj_exceptions+set}" = set; then :
10113 enableval=$enable_sjlj_exceptions; case $target in
10114 *-*-hpux10*)
10115 if test $enableval != yes; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10117 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10118 enableval=yes
10121 esac
10122 force_sjlj_exceptions=yes
10123 else
10124 case $target in
10125 *-*-hpux10*)
10126 force_sjlj_exceptions=yes
10127 enableval=yes
10130 force_sjlj_exceptions=no
10132 esac
10135 if test $force_sjlj_exceptions = yes; then
10136 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10138 cat >>confdefs.h <<_ACEOF
10139 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10140 _ACEOF
10144 # For platforms with the unwind ABI which includes an unwind library,
10145 # libunwind, we can choose to use the system libunwind.
10146 # config.gcc also contains tests of with_system_libunwind.
10149 # Check whether --with-system-libunwind was given.
10150 if test "${with_system_libunwind+set}" = set; then :
10151 withval=$with_system_libunwind;
10154 # If system-libunwind was not specifically set, pick a default setting.
10155 if test x$with_system_libunwind = x; then
10156 case ${target} in
10157 ia64-*-hpux*) with_system_libunwind=yes ;;
10158 *) with_system_libunwind=no ;;
10159 esac
10161 # Based on system-libunwind and target, do we have ipinfo?
10162 if test x$with_system_libunwind = xyes; then
10163 case ${target} in
10164 ia64-*-*) have_unwind_getipinfo=no ;;
10165 *) have_unwind_getipinfo=yes ;;
10166 esac
10167 else
10168 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10170 case ${target} in
10171 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10172 *) have_unwind_getipinfo=yes ;;
10173 esac
10177 if test x$have_unwind_getipinfo = xyes; then
10179 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10184 # --------------------------------------------------------
10185 # Build, host, and target specific configuration fragments
10186 # --------------------------------------------------------
10188 # Collect build-machine-specific information.
10189 . ${srcdir}/config.build
10191 # Collect host-machine-specific information.
10192 . ${srcdir}/config.host
10194 target_gtfiles=
10196 # Collect target-machine-specific information.
10197 . ${srcdir}/config.gcc
10199 extra_objs="${host_extra_objs} ${extra_objs}"
10200 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10202 # Default the target-machine variables that were not explicitly set.
10203 if test x"$tm_file" = x
10204 then tm_file=$cpu_type/$cpu_type.h; fi
10206 if test x"$extra_headers" = x
10207 then extra_headers=; fi
10209 if test x$md_file = x
10210 then md_file=$cpu_type/$cpu_type.md; fi
10212 if test x$out_file = x
10213 then out_file=$cpu_type/$cpu_type.c; fi
10215 if test x"$tmake_file" = x
10216 then tmake_file=$cpu_type/t-$cpu_type
10219 if test x"$dwarf2" = xyes
10220 then tm_file="$tm_file tm-dwarf2.h"
10223 # Say what files are being used for the output code and MD file.
10224 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10225 echo "Using \`$srcdir/config/$md_file' as machine description file."
10227 # If any of the xm_file variables contain nonexistent files, warn
10228 # about them and drop them.
10231 for x in $build_xm_file; do
10232 if test -f $srcdir/config/$x
10233 then bx="$bx $x"
10234 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10235 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10237 done
10238 build_xm_file="$bx"
10241 for x in $host_xm_file; do
10242 if test -f $srcdir/config/$x
10243 then hx="$hx $x"
10244 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10245 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10247 done
10248 host_xm_file="$hx"
10251 for x in $xm_file; do
10252 if test -f $srcdir/config/$x
10253 then tx="$tx $x"
10254 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10255 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10257 done
10258 xm_file="$tx"
10260 count=a
10261 for f in $tm_file; do
10262 count=${count}x
10263 done
10264 if test $count = ax; then
10265 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10266 else
10267 echo "Using the following target machine macro files:"
10268 for f in $tm_file; do
10269 echo " $srcdir/config/$f"
10270 done
10273 if test x$need_64bit_hwint = xyes; then
10275 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10279 if test x$use_long_long_for_widest_fast_int = xyes; then
10281 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10285 count=a
10286 for f in $host_xm_file; do
10287 count=${count}x
10288 done
10289 if test $count = a; then
10291 elif test $count = ax; then
10292 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10293 else
10294 echo "Using the following host machine macro files:"
10295 for f in $host_xm_file; do
10296 echo " $srcdir/config/$f"
10297 done
10299 echo "Using ${out_host_hook_obj} for host machine hooks."
10301 if test "$host_xm_file" != "$build_xm_file"; then
10302 count=a
10303 for f in $build_xm_file; do
10304 count=${count}x
10305 done
10306 if test $count = a; then
10308 elif test $count = ax; then
10309 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10310 else
10311 echo "Using the following build machine macro files:"
10312 for f in $build_xm_file; do
10313 echo " $srcdir/config/$f"
10314 done
10318 case ${host} in
10319 powerpc*-*-darwin*)
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10321 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10322 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10328 #include <sys/cdefs.h>
10329 #include <sys/signal.h>
10330 #include <ucontext.h>
10331 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10333 _ACEOF
10334 if ac_fn_c_try_compile "$LINENO"; then :
10335 gcc_cv_mcontext_underscores=no
10336 else
10337 gcc_cv_mcontext_underscores=yes
10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10342 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10343 if test $gcc_cv_mcontext_underscores = yes; then
10345 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10349 esac
10351 # ---------
10352 # Threading
10353 # ---------
10355 # Check if a valid thread package
10356 case ${enable_threads} in
10357 "" | no)
10358 # No threads
10359 target_thread_file='single'
10361 yes)
10362 # default
10363 target_thread_file='single'
10365 aix | dce | gnat | irix | posix | posix95 | rtems | \
10366 single | solaris | vxworks | win32 | mipssde)
10367 target_thread_file=${enable_threads}
10370 echo "${enable_threads} is an unknown thread package" 1>&2
10371 exit 1
10373 esac
10375 if test x${thread_file} = x; then
10376 # No thread file set by target-specific clauses in config.gcc,
10377 # so use file chosen by default logic above
10378 thread_file=${target_thread_file}
10381 # Make gthr-default.h if we have a thread file.
10382 gthread_flags=
10383 if test $thread_file != single; then
10384 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10385 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10386 rm -f gthr-default.h-t
10387 else
10388 mv -f gthr-default.h-t gthr-default.h
10390 gthread_flags=-DHAVE_GTHR_DEFAULT
10394 # --------
10395 # UNSORTED
10396 # --------
10398 use_cxa_atexit=no
10399 if test x$enable___cxa_atexit = xyes || \
10400 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10401 if test x$host = x$target; then
10402 case $host in
10403 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10404 # keyed to flag_use_cxa_atexit
10405 *-*-mingw32*)
10406 use_cxa_atexit=yes
10409 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10410 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10411 use_cxa_atexit=yes
10412 else
10413 echo "__cxa_atexit can't be enabled on this target"
10417 esac
10418 else
10419 # We can't check for __cxa_atexit when building a cross, so assume
10420 # it is available
10421 use_cxa_atexit=yes
10423 if test x$use_cxa_atexit = xyes; then
10425 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10430 # Look for a file containing extra machine modes.
10431 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10432 extra_modes_file='$(srcdir)'/config/${extra_modes}
10435 cat >>confdefs.h <<_ACEOF
10436 #define EXTRA_MODES_FILE "config/$extra_modes"
10437 _ACEOF
10441 # Convert extra_options into a form suitable for Makefile use.
10442 extra_opt_files=
10443 for f in $extra_options; do
10444 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10445 done
10448 # auto-host.h is the file containing items generated by autoconf and is
10449 # the first file included by config.h.
10450 # If host=build, it is correct to have bconfig include auto-host.h
10451 # as well. If host!=build, we are in error and need to do more
10452 # work to find out the build config parameters.
10453 if test x$host = x$build
10454 then
10455 build_auto=auto-host.h
10456 else
10457 # We create a subdir, then run autoconf in the subdir.
10458 # To prevent recursion we set host and build for the new
10459 # invocation of configure to the build for this invocation
10460 # of configure.
10461 tempdir=build.$$
10462 rm -rf $tempdir
10463 mkdir $tempdir
10464 cd $tempdir
10465 case ${srcdir} in
10466 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10467 *) realsrcdir=../${srcdir};;
10468 esac
10469 saved_CFLAGS="${CFLAGS}"
10470 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10471 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10472 ${realsrcdir}/configure \
10473 --enable-languages=${enable_languages-all} \
10474 --target=$target_alias --host=$build_alias --build=$build_alias
10475 CFLAGS="${saved_CFLAGS}"
10477 # We just finished tests for the build machine, so rename
10478 # the file auto-build.h in the gcc directory.
10479 mv auto-host.h ../auto-build.h
10480 cd ..
10481 rm -rf $tempdir
10482 build_auto=auto-build.h
10486 tm_file="${tm_file} defaults.h"
10487 tm_p_file="${tm_p_file} tm-preds.h"
10488 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10489 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10490 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10491 # put this back in temporarily.
10492 xm_file="auto-host.h ansidecl.h ${xm_file}"
10494 # --------
10495 # UNSORTED
10496 # --------
10498 # Compile in configure arguments.
10499 if test -f configargs.h ; then
10500 # Being re-configured.
10501 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10502 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10503 else
10504 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10507 # Double all backslashes and backslash all quotes to turn
10508 # gcc_config_arguments into a C string.
10509 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10510 $gcc_config_arguments
10512 gcc_config_arguments_str=`cat conftest.out`
10513 rm -f conftest.out
10515 cat > configargs.h <<EOF
10516 /* Generated automatically. */
10517 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10518 static const char thread_model[] = "$thread_file";
10520 static const struct {
10521 const char *name, *value;
10522 } configure_default_options[] = $configure_default_options;
10525 gcc_BASEVER=`cat $srcdir/BASE-VER`
10526 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10527 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10528 if test -f $srcdir/REVISION ; then
10529 gcc_REVISION=`cat $srcdir/REVISION`
10530 else
10531 gcc_REVISION=""
10533 cat > plugin-version.h <<EOF
10534 #include "configargs.h"
10536 static char basever[] = "$gcc_BASEVER";
10537 static char datestamp[] = "$gcc_DATESTAMP";
10538 static char devphase[] = "$gcc_DEVPHASE";
10539 static char revision[] = "$gcc_REVISION";
10541 /* FIXME plugins: We should make the version information more precise.
10542 One way to do is to add a checksum. */
10544 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10545 devphase, revision,
10546 configuration_arguments};
10549 # Internationalization
10550 # If we haven't got the data from the intl directory,
10551 # assume NLS is disabled.
10552 USE_NLS=no
10553 LIBINTL=
10554 LIBINTL_DEP=
10555 INCINTL=
10556 XGETTEXT=
10557 GMSGFMT=
10558 POSUB=
10560 if test -f ../intl/config.intl; then
10561 . ../intl/config.intl
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10564 $as_echo_n "checking whether NLS is requested... " >&6; }
10565 if test x"$USE_NLS" != xyes; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567 $as_echo "no" >&6; }
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10570 $as_echo "yes" >&6; }
10572 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10576 $as_echo_n "checking for catalogs to be installed... " >&6; }
10577 # Look for .po and .gmo files in the source directory.
10578 CATALOGS=
10579 XLINGUAS=
10580 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10581 # If there aren't any .gmo files the shell will give us the
10582 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10583 # weeded out.
10584 case "$cat" in *\**)
10585 continue;;
10586 esac
10587 # The quadruple backslash is collapsed to a double backslash
10588 # by the backticks, then collapsed again by the double quotes,
10589 # leaving us with one backslash in the sed expression (right
10590 # before the dot that mustn't act as a wildcard).
10591 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10592 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10593 # The user is allowed to set LINGUAS to a list of languages to
10594 # install catalogs for. If it's empty that means "all of them."
10595 if test "x$LINGUAS" = x; then
10596 CATALOGS="$CATALOGS $cat"
10597 XLINGUAS="$XLINGUAS $lang"
10598 else
10599 case "$LINGUAS" in *$lang*)
10600 CATALOGS="$CATALOGS $cat"
10601 XLINGUAS="$XLINGUAS $lang"
10603 esac
10605 done
10606 LINGUAS="$XLINGUAS"
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10608 $as_echo "$LINGUAS" >&6; }
10611 DATADIRNAME=share
10613 INSTOBJEXT=.mo
10615 GENCAT=gencat
10617 CATOBJEXT=.gmo
10621 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10622 # -liconv on the link line twice.
10623 case "$LIBINTL" in *$LIBICONV*)
10624 LIBICONV= ;;
10625 esac
10627 # Check whether --enable-secureplt was given.
10628 if test "${enable_secureplt+set}" = set; then :
10629 enableval=$enable_secureplt;
10633 # Check whether --enable-cld was given.
10634 if test "${enable_cld+set}" = set; then :
10635 enableval=$enable_cld;
10636 else
10637 enable_cld=no
10641 # Windows32 Registry support for specifying GCC installation paths.
10642 # Check whether --enable-win32-registry was given.
10643 if test "${enable_win32_registry+set}" = set; then :
10644 enableval=$enable_win32_registry;
10648 case $host_os in
10649 win32 | pe | cygwin* | mingw32* | uwin*)
10650 if test "x$enable_win32_registry" != xno; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10652 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10653 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 ac_func_search_save_LIBS=$LIBS
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char RegOpenKeyExA ();
10668 main ()
10670 return RegOpenKeyExA ();
10672 return 0;
10674 _ACEOF
10675 for ac_lib in '' advapi32; do
10676 if test -z "$ac_lib"; then
10677 ac_res="none required"
10678 else
10679 ac_res=-l$ac_lib
10680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10682 if ac_fn_c_try_link "$LINENO"; then :
10683 ac_cv_search_RegOpenKeyExA=$ac_res
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext
10687 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10688 break
10690 done
10691 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10693 else
10694 ac_cv_search_RegOpenKeyExA=no
10696 rm conftest.$ac_ext
10697 LIBS=$ac_func_search_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10700 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10701 ac_res=$ac_cv_search_RegOpenKeyExA
10702 if test "$ac_res" != no; then :
10703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10705 else
10706 enable_win32_registry=no
10711 if test "x$enable_win32_registry" != xno; then
10713 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10716 if test "x$enable_win32_registry" != xyes \
10717 && test "x$enable_win32_registry" != x; then
10719 cat >>confdefs.h <<_ACEOF
10720 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10721 _ACEOF
10726 esac
10728 # Get an absolute path to the GCC top-level source directory
10729 holddir=`${PWDCMD-pwd}`
10730 cd $srcdir
10731 topdir=`${PWDCMD-pwd}`
10732 cd $holddir
10734 # Conditionalize the makefile for this host machine.
10735 xmake_file=
10736 for f in ${host_xmake_file}
10738 if test -f ${srcdir}/config/$f
10739 then
10740 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10742 done
10744 # Conditionalize the makefile for this target machine.
10745 tmake_file_=
10746 for f in ${tmake_file}
10748 if test -f ${srcdir}/config/$f
10749 then
10750 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10752 done
10753 tmake_file="${tmake_file_}"
10755 out_object_file=`basename $out_file .c`.o
10757 tm_file_list="options.h"
10758 tm_include_list="options.h"
10759 for f in $tm_file; do
10760 case $f in
10761 ./* )
10762 f=`echo $f | sed 's/^..//'`
10763 tm_file_list="${tm_file_list} $f"
10764 tm_include_list="${tm_include_list} $f"
10766 defaults.h )
10767 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10768 tm_include_list="${tm_include_list} $f"
10771 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10772 tm_include_list="${tm_include_list} config/$f"
10774 esac
10775 done
10777 tm_p_file_list=
10778 tm_p_include_list=
10779 for f in $tm_p_file; do
10780 case $f in
10781 tm-preds.h )
10782 tm_p_file_list="${tm_p_file_list} $f"
10783 tm_p_include_list="${tm_p_include_list} $f"
10786 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10787 tm_p_include_list="${tm_p_include_list} config/$f"
10788 esac
10789 done
10791 xm_file_list=
10792 xm_include_list=
10793 for f in $xm_file; do
10794 case $f in
10795 ansidecl.h )
10796 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10797 xm_include_list="${xm_include_list} $f"
10799 auto-host.h )
10800 xm_file_list="${xm_file_list} $f"
10801 xm_include_list="${xm_include_list} $f"
10804 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10805 xm_include_list="${xm_include_list} config/$f"
10807 esac
10808 done
10810 host_xm_file_list=
10811 host_xm_include_list=
10812 for f in $host_xm_file; do
10813 case $f in
10814 ansidecl.h )
10815 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10816 host_xm_include_list="${host_xm_include_list} $f"
10818 auto-host.h )
10819 host_xm_file_list="${host_xm_file_list} $f"
10820 host_xm_include_list="${host_xm_include_list} $f"
10823 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10824 host_xm_include_list="${host_xm_include_list} config/$f"
10826 esac
10827 done
10829 build_xm_file_list=
10830 for f in $build_xm_file; do
10831 case $f in
10832 ansidecl.h )
10833 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10834 build_xm_include_list="${build_xm_include_list} $f"
10836 auto-build.h | auto-host.h )
10837 build_xm_file_list="${build_xm_file_list} $f"
10838 build_xm_include_list="${build_xm_include_list} $f"
10841 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10842 build_xm_include_list="${build_xm_include_list} config/$f"
10844 esac
10845 done
10847 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10848 # cross-compiler which does not use the native headers and libraries.
10849 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10850 CROSS=
10851 ALL=all.internal
10852 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10854 if test "x$with_build_sysroot" != x; then
10855 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10856 else
10857 # This value is used, even on a native system, because
10858 # CROSS_SYSTEM_HEADER_DIR is just
10859 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10860 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10863 if test x$host != x$target
10864 then
10865 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10866 ALL=all.cross
10867 SYSTEM_HEADER_DIR=$build_system_header_dir
10868 case "$host","$target" in
10869 # Darwin crosses can use the host system's libraries and headers,
10870 # because of the fat library support. Of course, it must be the
10871 # same version of Darwin on both sides. Allow the user to
10872 # just say --target=foo-darwin without a version number to mean
10873 # "the version on this system".
10874 *-*-darwin*,*-*-darwin*)
10875 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10876 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10877 if test $hostos = $targetos -o $targetos = darwin ; then
10878 CROSS=
10879 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10880 with_headers=yes
10884 i?86-*-*,x86_64-*-* \
10885 | powerpc*-*-*,powerpc64*-*-*)
10886 CROSS="$CROSS -DNATIVE_CROSS" ;;
10887 esac
10888 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10889 SYSTEM_HEADER_DIR=$build_system_header_dir
10892 # If this is a cross-compiler that does not
10893 # have its own set of headers then define
10894 # inhibit_libc
10896 # If this is using newlib, without having the headers available now,
10897 # then define inhibit_libc in LIBGCC2_CFLAGS.
10898 # This prevents libgcc2 from containing any code which requires libc
10899 # support.
10900 : ${inhibit_libc=false}
10901 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10902 test x$with_newlib = xyes ; } &&
10903 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10904 inhibit_libc=true
10908 # When building gcc with a cross-compiler, we need to adjust things so
10909 # that the generator programs are still built with the native compiler.
10910 # Also, we cannot run fixincludes.
10912 # These are the normal (build=host) settings:
10913 CC_FOR_BUILD='$(CC)'
10914 BUILD_CFLAGS='$(ALL_CFLAGS)'
10915 BUILD_LDFLAGS='$(LDFLAGS)'
10916 STMP_FIXINC=stmp-fixinc
10918 # And these apply if build != host, or we are generating coverage data
10919 if test x$build != x$host || test "x$coverage_flags" != x
10920 then
10921 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10922 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10925 # Expand extra_headers to include complete path.
10926 # This substitutes for lots of t-* files.
10927 extra_headers_list=
10928 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10929 for file in ${extra_headers} ; do
10930 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10931 done
10933 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10934 if test x"$use_gcc_tgmath" = xyes
10935 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10938 # Define collect2 in Makefile.
10939 case $host_can_use_collect2 in
10940 no) collect2= ;;
10941 *) collect2='collect2$(exeext)' ;;
10942 esac
10945 # Add a definition of USE_COLLECT2 if system wants one.
10946 case $use_collect2 in
10947 no) use_collect2= ;;
10948 "") ;;
10950 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10951 xm_defines="${xm_defines} USE_COLLECT2"
10952 case $host_can_use_collect2 in
10954 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
10956 esac
10958 esac
10960 # ---------------------------
10961 # Assembler & linker features
10962 # ---------------------------
10964 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10965 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10966 # However when ld-new is first executed from the build tree, libtool will
10967 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10968 # to the build tree. While doing this we need to use the previous-stage
10969 # linker, or we have an infinite loop. The presence of a shell script as
10970 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10971 # the gcc/collect-ld script. So we need to know how libtool works, or
10972 # exec-tool will fail.
10975 case `pwd` in
10976 *\ * | *\ *)
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10978 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10979 esac
10983 macro_version='2.2.7a'
10984 macro_revision='1.3134'
10998 ltmain="$ac_aux_dir/ltmain.sh"
11000 # Backslashify metacharacters that are still active within
11001 # double-quoted strings.
11002 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11004 # Same as above, but do not quote variable references.
11005 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11007 # Sed substitution to delay expansion of an escaped shell variable in a
11008 # double_quote_subst'ed string.
11009 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11011 # Sed substitution to delay expansion of an escaped single quote.
11012 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11014 # Sed substitution to avoid accidental globbing in evaled expressions
11015 no_glob_subst='s/\*/\\\*/g'
11017 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11019 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11022 $as_echo_n "checking how to print strings... " >&6; }
11023 # Test print first, because it will be a builtin if present.
11024 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11026 ECHO='print -r --'
11027 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11028 ECHO='printf %s\n'
11029 else
11030 # Use this function as a fallback that always works.
11031 func_fallback_echo ()
11033 eval 'cat <<_LTECHO_EOF
11035 _LTECHO_EOF'
11037 ECHO='func_fallback_echo'
11040 # func_echo_all arg...
11041 # Invoke $ECHO with all args, space-separated.
11042 func_echo_all ()
11044 $ECHO ""
11047 case "$ECHO" in
11048 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11049 $as_echo "printf" >&6; } ;;
11050 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11051 $as_echo "print -r" >&6; } ;;
11052 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11053 $as_echo "cat" >&6; } ;;
11054 esac
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11070 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11071 if test "${ac_cv_path_SED+set}" = set; then :
11072 $as_echo_n "(cached) " >&6
11073 else
11074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11075 for ac_i in 1 2 3 4 5 6 7; do
11076 ac_script="$ac_script$as_nl$ac_script"
11077 done
11078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11079 { ac_script=; unset ac_script;}
11080 if test -z "$SED"; then
11081 ac_path_SED_found=false
11082 # Loop through the user's path and test for each of PROGNAME-LIST
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
11088 for ac_prog in sed gsed; do
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11091 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11092 # Check for GNU ac_path_SED and select it if it is found.
11093 # Check for GNU $ac_path_SED
11094 case `"$ac_path_SED" --version 2>&1` in
11095 *GNU*)
11096 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11098 ac_count=0
11099 $as_echo_n 0123456789 >"conftest.in"
11100 while :
11102 cat "conftest.in" "conftest.in" >"conftest.tmp"
11103 mv "conftest.tmp" "conftest.in"
11104 cp "conftest.in" "conftest.nl"
11105 $as_echo '' >> "conftest.nl"
11106 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11108 as_fn_arith $ac_count + 1 && ac_count=$as_val
11109 if test $ac_count -gt ${ac_path_SED_max-0}; then
11110 # Best one so far, save it but keep looking for a better one
11111 ac_cv_path_SED="$ac_path_SED"
11112 ac_path_SED_max=$ac_count
11114 # 10*(2^10) chars as input seems more than enough
11115 test $ac_count -gt 10 && break
11116 done
11117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11118 esac
11120 $ac_path_SED_found && break 3
11121 done
11122 done
11123 done
11124 IFS=$as_save_IFS
11125 if test -z "$ac_cv_path_SED"; then
11126 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11128 else
11129 ac_cv_path_SED=$SED
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11134 $as_echo "$ac_cv_path_SED" >&6; }
11135 SED="$ac_cv_path_SED"
11136 rm -f conftest.sed
11138 test -z "$SED" && SED=sed
11139 Xsed="$SED -e 1s/^X//"
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11152 $as_echo_n "checking for fgrep... " >&6; }
11153 if test "${ac_cv_path_FGREP+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
11155 else
11156 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11157 then ac_cv_path_FGREP="$GREP -F"
11158 else
11159 if test -z "$FGREP"; then
11160 ac_path_FGREP_found=false
11161 # Loop through the user's path and test for each of PROGNAME-LIST
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11165 IFS=$as_save_IFS
11166 test -z "$as_dir" && as_dir=.
11167 for ac_prog in fgrep; do
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11170 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11171 # Check for GNU ac_path_FGREP and select it if it is found.
11172 # Check for GNU $ac_path_FGREP
11173 case `"$ac_path_FGREP" --version 2>&1` in
11174 *GNU*)
11175 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11177 ac_count=0
11178 $as_echo_n 0123456789 >"conftest.in"
11179 while :
11181 cat "conftest.in" "conftest.in" >"conftest.tmp"
11182 mv "conftest.tmp" "conftest.in"
11183 cp "conftest.in" "conftest.nl"
11184 $as_echo 'FGREP' >> "conftest.nl"
11185 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11187 as_fn_arith $ac_count + 1 && ac_count=$as_val
11188 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11189 # Best one so far, save it but keep looking for a better one
11190 ac_cv_path_FGREP="$ac_path_FGREP"
11191 ac_path_FGREP_max=$ac_count
11193 # 10*(2^10) chars as input seems more than enough
11194 test $ac_count -gt 10 && break
11195 done
11196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11197 esac
11199 $ac_path_FGREP_found && break 3
11200 done
11201 done
11202 done
11203 IFS=$as_save_IFS
11204 if test -z "$ac_cv_path_FGREP"; then
11205 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11207 else
11208 ac_cv_path_FGREP=$FGREP
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11214 $as_echo "$ac_cv_path_FGREP" >&6; }
11215 FGREP="$ac_cv_path_FGREP"
11218 test -z "$GREP" && GREP=grep
11238 # Check whether --with-gnu-ld was given.
11239 if test "${with_gnu_ld+set}" = set; then :
11240 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11241 else
11242 with_gnu_ld=no
11245 ac_prog=ld
11246 if test "$GCC" = yes; then
11247 # Check if gcc -print-prog-name=ld gives a path.
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11249 $as_echo_n "checking for ld used by $CC... " >&6; }
11250 case $host in
11251 *-*-mingw*)
11252 # gcc leaves a trailing carriage return which upsets mingw
11253 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11255 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11256 esac
11257 case $ac_prog in
11258 # Accept absolute paths.
11259 [\\/]* | ?:[\\/]*)
11260 re_direlt='/[^/][^/]*/\.\./'
11261 # Canonicalize the pathname of ld
11262 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11263 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11264 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11265 done
11266 test -z "$LD" && LD="$ac_prog"
11269 # If it fails, then pretend we aren't using GCC.
11270 ac_prog=ld
11273 # If it is relative, then search for the first ld in PATH.
11274 with_gnu_ld=unknown
11276 esac
11277 elif test "$with_gnu_ld" = yes; then
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11279 $as_echo_n "checking for GNU ld... " >&6; }
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11282 $as_echo_n "checking for non-GNU ld... " >&6; }
11284 if test "${lt_cv_path_LD+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 if test -z "$LD"; then
11288 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11289 for ac_dir in $PATH; do
11290 IFS="$lt_save_ifs"
11291 test -z "$ac_dir" && ac_dir=.
11292 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11293 lt_cv_path_LD="$ac_dir/$ac_prog"
11294 # Check to see if the program is GNU ld. I'd rather use --version,
11295 # but apparently some variants of GNU ld only accept -v.
11296 # Break only if it was the GNU/non-GNU ld that we prefer.
11297 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11298 *GNU* | *'with BFD'*)
11299 test "$with_gnu_ld" != no && break
11302 test "$with_gnu_ld" != yes && break
11304 esac
11306 done
11307 IFS="$lt_save_ifs"
11308 else
11309 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11313 LD="$lt_cv_path_LD"
11314 if test -n "$LD"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11316 $as_echo "$LD" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11321 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11323 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11324 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11328 case `$LD -v 2>&1 </dev/null` in
11329 *GNU* | *'with BFD'*)
11330 lt_cv_prog_gnu_ld=yes
11333 lt_cv_prog_gnu_ld=no
11335 esac
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11338 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11339 with_gnu_ld=$lt_cv_prog_gnu_ld
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11350 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11351 if test "${lt_cv_path_NM+set}" = set; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 if test -n "$NM"; then
11355 # Let the user override the test.
11356 lt_cv_path_NM="$NM"
11357 else
11358 lt_nm_to_check="${ac_tool_prefix}nm"
11359 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11360 lt_nm_to_check="$lt_nm_to_check nm"
11362 for lt_tmp_nm in $lt_nm_to_check; do
11363 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11364 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11365 IFS="$lt_save_ifs"
11366 test -z "$ac_dir" && ac_dir=.
11367 tmp_nm="$ac_dir/$lt_tmp_nm"
11368 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11369 # Check to see if the nm accepts a BSD-compat flag.
11370 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11371 # nm: unknown option "B" ignored
11372 # Tru64's nm complains that /dev/null is an invalid object file
11373 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11374 */dev/null* | *'Invalid file or object type'*)
11375 lt_cv_path_NM="$tmp_nm -B"
11376 break
11379 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11380 */dev/null*)
11381 lt_cv_path_NM="$tmp_nm -p"
11382 break
11385 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11386 continue # so that we can try to find one that supports BSD flags
11388 esac
11390 esac
11392 done
11393 IFS="$lt_save_ifs"
11394 done
11395 : ${lt_cv_path_NM=no}
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11399 $as_echo "$lt_cv_path_NM" >&6; }
11400 if test "$lt_cv_path_NM" != "no"; then
11401 NM="$lt_cv_path_NM"
11402 else
11403 # Didn't find any BSD compatible name lister, look for dumpbin.
11404 if test -n "$DUMPBIN"; then :
11405 # Let the user override the test.
11406 else
11407 if test -n "$ac_tool_prefix"; then
11408 for ac_prog in dumpbin "link -dump"
11410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413 $as_echo_n "checking for $ac_word... " >&6; }
11414 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
11416 else
11417 if test -n "$DUMPBIN"; then
11418 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11419 else
11420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421 for as_dir in $PATH
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11427 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11429 break 2
11431 done
11432 done
11433 IFS=$as_save_IFS
11437 DUMPBIN=$ac_cv_prog_DUMPBIN
11438 if test -n "$DUMPBIN"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11440 $as_echo "$DUMPBIN" >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11447 test -n "$DUMPBIN" && break
11448 done
11450 if test -z "$DUMPBIN"; then
11451 ac_ct_DUMPBIN=$DUMPBIN
11452 for ac_prog in dumpbin "link -dump"
11454 # Extract the first word of "$ac_prog", so it can be a program name with args.
11455 set dummy $ac_prog; ac_word=$2
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457 $as_echo_n "checking for $ac_word... " >&6; }
11458 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 if test -n "$ac_ct_DUMPBIN"; then
11462 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11463 else
11464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11465 for as_dir in $PATH
11467 IFS=$as_save_IFS
11468 test -z "$as_dir" && as_dir=.
11469 for ac_exec_ext in '' $ac_executable_extensions; do
11470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11471 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11473 break 2
11475 done
11476 done
11477 IFS=$as_save_IFS
11481 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11482 if test -n "$ac_ct_DUMPBIN"; then
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11484 $as_echo "$ac_ct_DUMPBIN" >&6; }
11485 else
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11487 $as_echo "no" >&6; }
11491 test -n "$ac_ct_DUMPBIN" && break
11492 done
11494 if test "x$ac_ct_DUMPBIN" = x; then
11495 DUMPBIN=":"
11496 else
11497 case $cross_compiling:$ac_tool_warned in
11498 yes:)
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11501 ac_tool_warned=yes ;;
11502 esac
11503 DUMPBIN=$ac_ct_DUMPBIN
11507 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11508 *COFF*)
11509 DUMPBIN="$DUMPBIN -symbols"
11512 DUMPBIN=:
11514 esac
11517 if test "$DUMPBIN" != ":"; then
11518 NM="$DUMPBIN"
11521 test -z "$NM" && NM=nm
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11529 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11530 if test "${lt_cv_nm_interface+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 lt_cv_nm_interface="BSD nm"
11534 echo "int some_variable = 0;" > conftest.$ac_ext
11535 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11536 (eval "$ac_compile" 2>conftest.err)
11537 cat conftest.err >&5
11538 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11539 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11540 cat conftest.err >&5
11541 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11542 cat conftest.out >&5
11543 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11544 lt_cv_nm_interface="MS dumpbin"
11546 rm -f conftest*
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11549 $as_echo "$lt_cv_nm_interface" >&6; }
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11552 $as_echo_n "checking whether ln -s works... " >&6; }
11553 LN_S=$as_ln_s
11554 if test "$LN_S" = "ln -s"; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556 $as_echo "yes" >&6; }
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11559 $as_echo "no, using $LN_S" >&6; }
11562 # find the maximum length of command line arguments
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11564 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11565 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11567 else
11569 teststring="ABCD"
11571 case $build_os in
11572 msdosdjgpp*)
11573 # On DJGPP, this test can blow up pretty badly due to problems in libc
11574 # (any single argument exceeding 2000 bytes causes a buffer overrun
11575 # during glob expansion). Even if it were fixed, the result of this
11576 # check would be larger than it should be.
11577 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11580 gnu*)
11581 # Under GNU Hurd, this test is not required because there is
11582 # no limit to the length of command line arguments.
11583 # Libtool will interpret -1 as no limit whatsoever
11584 lt_cv_sys_max_cmd_len=-1;
11587 cygwin* | mingw* | cegcc*)
11588 # On Win9x/ME, this test blows up -- it succeeds, but takes
11589 # about 5 minutes as the teststring grows exponentially.
11590 # Worse, since 9x/ME are not pre-emptively multitasking,
11591 # you end up with a "frozen" computer, even though with patience
11592 # the test eventually succeeds (with a max line length of 256k).
11593 # Instead, let's just punt: use the minimum linelength reported by
11594 # all of the supported platforms: 8192 (on NT/2K/XP).
11595 lt_cv_sys_max_cmd_len=8192;
11598 mint*)
11599 # On MiNT this can take a long time and run out of memory.
11600 lt_cv_sys_max_cmd_len=8192;
11603 amigaos*)
11604 # On AmigaOS with pdksh, this test takes hours, literally.
11605 # So we just punt and use a minimum line length of 8192.
11606 lt_cv_sys_max_cmd_len=8192;
11609 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11610 # This has been around since 386BSD, at least. Likely further.
11611 if test -x /sbin/sysctl; then
11612 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11613 elif test -x /usr/sbin/sysctl; then
11614 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11615 else
11616 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11618 # And add a safety zone
11619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11623 interix*)
11624 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11625 lt_cv_sys_max_cmd_len=196608
11628 osf*)
11629 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11630 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11631 # nice to cause kernel panics so lets avoid the loop below.
11632 # First set a reasonable default.
11633 lt_cv_sys_max_cmd_len=16384
11635 if test -x /sbin/sysconfig; then
11636 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11637 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11638 esac
11641 sco3.2v5*)
11642 lt_cv_sys_max_cmd_len=102400
11644 sysv5* | sco5v6* | sysv4.2uw2*)
11645 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11646 if test -n "$kargmax"; then
11647 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11648 else
11649 lt_cv_sys_max_cmd_len=32768
11653 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11654 if test -n "$lt_cv_sys_max_cmd_len"; then
11655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11657 else
11658 # Make teststring a little bigger before we do anything with it.
11659 # a 1K string should be a reasonable start.
11660 for i in 1 2 3 4 5 6 7 8 ; do
11661 teststring=$teststring$teststring
11662 done
11663 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11664 # If test is not a shell built-in, we'll probably end up computing a
11665 # maximum length that is only half of the actual maximum length, but
11666 # we can't tell.
11667 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11668 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11669 test $i != 17 # 1/2 MB should be enough
11671 i=`expr $i + 1`
11672 teststring=$teststring$teststring
11673 done
11674 # Only check the string length outside the loop.
11675 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11676 teststring=
11677 # Add a significant safety factor because C++ compilers can tack on
11678 # massive amounts of additional arguments before passing them to the
11679 # linker. It appears as though 1/2 is a usable value.
11680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11683 esac
11687 if test -n $lt_cv_sys_max_cmd_len ; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11689 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11690 else
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11692 $as_echo "none" >&6; }
11694 max_cmd_len=$lt_cv_sys_max_cmd_len
11701 : ${CP="cp -f"}
11702 : ${MV="mv -f"}
11703 : ${RM="rm -f"}
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11706 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11707 # Try some XSI features
11708 xsi_shell=no
11709 ( _lt_dummy="a/b/c"
11710 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11711 = c,a/b,, \
11712 && eval 'test $(( 1 + 1 )) -eq 2 \
11713 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11714 && xsi_shell=yes
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11716 $as_echo "$xsi_shell" >&6; }
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11720 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11721 lt_shell_append=no
11722 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11723 >/dev/null 2>&1 \
11724 && lt_shell_append=yes
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11726 $as_echo "$lt_shell_append" >&6; }
11729 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11730 lt_unset=unset
11731 else
11732 lt_unset=false
11739 # test EBCDIC or ASCII
11740 case `echo X|tr X '\101'` in
11741 A) # ASCII based system
11742 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11743 lt_SP2NL='tr \040 \012'
11744 lt_NL2SP='tr \015\012 \040\040'
11746 *) # EBCDIC based system
11747 lt_SP2NL='tr \100 \n'
11748 lt_NL2SP='tr \r\n \100\100'
11750 esac
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11761 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11762 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 lt_cv_ld_reload_flag='-r'
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11768 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11769 reload_flag=$lt_cv_ld_reload_flag
11770 case $reload_flag in
11771 "" | " "*) ;;
11772 *) reload_flag=" $reload_flag" ;;
11773 esac
11774 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11775 case $host_os in
11776 darwin*)
11777 if test "$GCC" = yes; then
11778 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11779 else
11780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11783 esac
11793 if test -n "$ac_tool_prefix"; then
11794 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11795 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11797 $as_echo_n "checking for $ac_word... " >&6; }
11798 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test -n "$OBJDUMP"; then
11802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11811 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11815 done
11816 done
11817 IFS=$as_save_IFS
11821 OBJDUMP=$ac_cv_prog_OBJDUMP
11822 if test -n "$OBJDUMP"; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11824 $as_echo "$OBJDUMP" >&6; }
11825 else
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 $as_echo "no" >&6; }
11832 if test -z "$ac_cv_prog_OBJDUMP"; then
11833 ac_ct_OBJDUMP=$OBJDUMP
11834 # Extract the first word of "objdump", so it can be a program name with args.
11835 set dummy objdump; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11837 $as_echo_n "checking for $ac_word... " >&6; }
11838 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 if test -n "$ac_ct_OBJDUMP"; then
11842 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11843 else
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11847 IFS=$as_save_IFS
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11851 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11853 break 2
11855 done
11856 done
11857 IFS=$as_save_IFS
11861 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11862 if test -n "$ac_ct_OBJDUMP"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11864 $as_echo "$ac_ct_OBJDUMP" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11870 if test "x$ac_ct_OBJDUMP" = x; then
11871 OBJDUMP="false"
11872 else
11873 case $cross_compiling:$ac_tool_warned in
11874 yes:)
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11877 ac_tool_warned=yes ;;
11878 esac
11879 OBJDUMP=$ac_ct_OBJDUMP
11881 else
11882 OBJDUMP="$ac_cv_prog_OBJDUMP"
11885 test -z "$OBJDUMP" && OBJDUMP=objdump
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11896 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11897 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 lt_cv_file_magic_cmd='$MAGIC_CMD'
11901 lt_cv_file_magic_test_file=
11902 lt_cv_deplibs_check_method='unknown'
11903 # Need to set the preceding variable on all platforms that support
11904 # interlibrary dependencies.
11905 # 'none' -- dependencies not supported.
11906 # `unknown' -- same as none, but documents that we really don't know.
11907 # 'pass_all' -- all dependencies passed with no checks.
11908 # 'test_compile' -- check by making test program.
11909 # 'file_magic [[regex]]' -- check by looking for files in library path
11910 # which responds to the $file_magic_cmd with a given extended regex.
11911 # If you have `file' or equivalent on your system and you're not sure
11912 # whether `pass_all' will *always* work, you probably want this one.
11914 case $host_os in
11915 aix[4-9]*)
11916 lt_cv_deplibs_check_method=pass_all
11919 beos*)
11920 lt_cv_deplibs_check_method=pass_all
11923 bsdi[45]*)
11924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11925 lt_cv_file_magic_cmd='/usr/bin/file -L'
11926 lt_cv_file_magic_test_file=/shlib/libc.so
11929 cygwin*)
11930 # func_win32_libid is a shell function defined in ltmain.sh
11931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11932 lt_cv_file_magic_cmd='func_win32_libid'
11935 mingw* | pw32*)
11936 # Base MSYS/MinGW do not provide the 'file' command needed by
11937 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11938 # unless we find 'file', for example because we are cross-compiling.
11939 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11940 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11942 lt_cv_file_magic_cmd='func_win32_libid'
11943 else
11944 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11945 lt_cv_file_magic_cmd='$OBJDUMP -f'
11949 cegcc*)
11950 # use the weaker test based on 'objdump'. See mingw*.
11951 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11952 lt_cv_file_magic_cmd='$OBJDUMP -f'
11955 darwin* | rhapsody*)
11956 lt_cv_deplibs_check_method=pass_all
11959 freebsd* | dragonfly*)
11960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11961 case $host_cpu in
11962 i*86 )
11963 # Not sure whether the presence of OpenBSD here was a mistake.
11964 # Let's accept both of them until this is cleared up.
11965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11966 lt_cv_file_magic_cmd=/usr/bin/file
11967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11969 esac
11970 else
11971 lt_cv_deplibs_check_method=pass_all
11975 gnu*)
11976 lt_cv_deplibs_check_method=pass_all
11979 haiku*)
11980 lt_cv_deplibs_check_method=pass_all
11983 hpux10.20* | hpux11*)
11984 lt_cv_file_magic_cmd=/usr/bin/file
11985 case $host_cpu in
11986 ia64*)
11987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11988 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11990 hppa*64*)
11991 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]'
11992 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11996 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11998 esac
12001 interix[3-9]*)
12002 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12006 irix5* | irix6* | nonstopux*)
12007 case $LD in
12008 *-32|*"-32 ") libmagic=32-bit;;
12009 *-n32|*"-n32 ") libmagic=N32;;
12010 *-64|*"-64 ") libmagic=64-bit;;
12011 *) libmagic=never-match;;
12012 esac
12013 lt_cv_deplibs_check_method=pass_all
12016 # This must be Linux ELF.
12017 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12018 lt_cv_deplibs_check_method=pass_all
12021 netbsd*)
12022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12024 else
12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12029 newos6*)
12030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12031 lt_cv_file_magic_cmd=/usr/bin/file
12032 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12035 *nto* | *qnx*)
12036 lt_cv_deplibs_check_method=pass_all
12039 openbsd*)
12040 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12042 else
12043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12047 osf3* | osf4* | osf5*)
12048 lt_cv_deplibs_check_method=pass_all
12051 rdos*)
12052 lt_cv_deplibs_check_method=pass_all
12055 solaris*)
12056 lt_cv_deplibs_check_method=pass_all
12059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12060 lt_cv_deplibs_check_method=pass_all
12063 sysv4 | sysv4.3*)
12064 case $host_vendor in
12065 motorola)
12066 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]'
12067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12069 ncr)
12070 lt_cv_deplibs_check_method=pass_all
12072 sequent)
12073 lt_cv_file_magic_cmd='/bin/file'
12074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12076 sni)
12077 lt_cv_file_magic_cmd='/bin/file'
12078 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12079 lt_cv_file_magic_test_file=/lib/libc.so
12081 siemens)
12082 lt_cv_deplibs_check_method=pass_all
12085 lt_cv_deplibs_check_method=pass_all
12087 esac
12090 tpf*)
12091 lt_cv_deplibs_check_method=pass_all
12093 esac
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12097 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12098 file_magic_cmd=$lt_cv_file_magic_cmd
12099 deplibs_check_method=$lt_cv_deplibs_check_method
12100 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12113 if test -n "$ac_tool_prefix"; then
12114 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12115 set dummy ${ac_tool_prefix}ar; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if test "${ac_cv_prog_AR+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 if test -n "$AR"; then
12122 ac_cv_prog_AR="$AR" # Let the user override the test.
12123 else
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_prog_AR="${ac_tool_prefix}ar"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12135 done
12136 done
12137 IFS=$as_save_IFS
12141 AR=$ac_cv_prog_AR
12142 if test -n "$AR"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12144 $as_echo "$AR" >&6; }
12145 else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12152 if test -z "$ac_cv_prog_AR"; then
12153 ac_ct_AR=$AR
12154 # Extract the first word of "ar", so it can be a program name with args.
12155 set dummy ar; ac_word=$2
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12157 $as_echo_n "checking for $ac_word... " >&6; }
12158 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12160 else
12161 if test -n "$ac_ct_AR"; then
12162 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12163 else
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12171 ac_cv_prog_ac_ct_AR="ar"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12175 done
12176 done
12177 IFS=$as_save_IFS
12181 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12182 if test -n "$ac_ct_AR"; then
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12184 $as_echo "$ac_ct_AR" >&6; }
12185 else
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12187 $as_echo "no" >&6; }
12190 if test "x$ac_ct_AR" = x; then
12191 AR="false"
12192 else
12193 case $cross_compiling:$ac_tool_warned in
12194 yes:)
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12197 ac_tool_warned=yes ;;
12198 esac
12199 AR=$ac_ct_AR
12201 else
12202 AR="$ac_cv_prog_AR"
12205 test -z "$AR" && AR=ar
12206 test -z "$AR_FLAGS" && AR_FLAGS=cru
12218 if test -n "$ac_tool_prefix"; then
12219 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12220 set dummy ${ac_tool_prefix}strip; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if test "${ac_cv_prog_STRIP+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 if test -n "$STRIP"; then
12227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12228 else
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12240 done
12241 done
12242 IFS=$as_save_IFS
12246 STRIP=$ac_cv_prog_STRIP
12247 if test -n "$STRIP"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12249 $as_echo "$STRIP" >&6; }
12250 else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12257 if test -z "$ac_cv_prog_STRIP"; then
12258 ac_ct_STRIP=$STRIP
12259 # Extract the first word of "strip", so it can be a program name with args.
12260 set dummy strip; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 if test -n "$ac_ct_STRIP"; then
12267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_ac_ct_STRIP="strip"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12280 done
12281 done
12282 IFS=$as_save_IFS
12286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12287 if test -n "$ac_ct_STRIP"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12289 $as_echo "$ac_ct_STRIP" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12295 if test "x$ac_ct_STRIP" = x; then
12296 STRIP=":"
12297 else
12298 case $cross_compiling:$ac_tool_warned in
12299 yes:)
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12302 ac_tool_warned=yes ;;
12303 esac
12304 STRIP=$ac_ct_STRIP
12306 else
12307 STRIP="$ac_cv_prog_STRIP"
12310 test -z "$STRIP" && STRIP=:
12317 if test -n "$ac_tool_prefix"; then
12318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12319 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test -n "$RANLIB"; then
12326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12331 IFS=$as_save_IFS
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337 break 2
12339 done
12340 done
12341 IFS=$as_save_IFS
12345 RANLIB=$ac_cv_prog_RANLIB
12346 if test -n "$RANLIB"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12348 $as_echo "$RANLIB" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12356 if test -z "$ac_cv_prog_RANLIB"; then
12357 ac_ct_RANLIB=$RANLIB
12358 # Extract the first word of "ranlib", so it can be a program name with args.
12359 set dummy ranlib; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12363 $as_echo_n "(cached) " >&6
12364 else
12365 if test -n "$ac_ct_RANLIB"; then
12366 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12367 else
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12371 IFS=$as_save_IFS
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12375 ac_cv_prog_ac_ct_RANLIB="ranlib"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 break 2
12379 done
12380 done
12381 IFS=$as_save_IFS
12385 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12386 if test -n "$ac_ct_RANLIB"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12388 $as_echo "$ac_ct_RANLIB" >&6; }
12389 else
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12394 if test "x$ac_ct_RANLIB" = x; then
12395 RANLIB=":"
12396 else
12397 case $cross_compiling:$ac_tool_warned in
12398 yes:)
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401 ac_tool_warned=yes ;;
12402 esac
12403 RANLIB=$ac_ct_RANLIB
12405 else
12406 RANLIB="$ac_cv_prog_RANLIB"
12409 test -z "$RANLIB" && RANLIB=:
12416 # Determine commands to create old-style static archives.
12417 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12418 old_postinstall_cmds='chmod 644 $oldlib'
12419 old_postuninstall_cmds=
12421 if test -n "$RANLIB"; then
12422 case $host_os in
12423 openbsd*)
12424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12429 esac
12430 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12433 case $host_os in
12434 darwin*)
12435 lock_old_archive_extraction=yes ;;
12437 lock_old_archive_extraction=no ;;
12438 esac
12478 # If no C compiler was specified, use CC.
12479 LTCC=${LTCC-"$CC"}
12481 # If no C compiler flags were specified, use CFLAGS.
12482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12484 # Allow CC to be a program name with arguments.
12485 compiler=$CC
12488 # Check for command to grab the raw symbol name followed by C symbol from nm.
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12490 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12491 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12495 # These are sane defaults that work on at least a few old systems.
12496 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12498 # Character class describing NM global symbol codes.
12499 symcode='[BCDEGRST]'
12501 # Regexp to match symbols that can be accessed directly from C.
12502 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12504 # Define system-specific variables.
12505 case $host_os in
12506 aix*)
12507 symcode='[BCDT]'
12509 cygwin* | mingw* | pw32* | cegcc*)
12510 symcode='[ABCDGISTW]'
12512 hpux*)
12513 if test "$host_cpu" = ia64; then
12514 symcode='[ABCDEGRST]'
12517 irix* | nonstopux*)
12518 symcode='[BCDEGRST]'
12520 osf*)
12521 symcode='[BCDEGQRST]'
12523 solaris*)
12524 symcode='[BDRT]'
12526 sco3.2v5*)
12527 symcode='[DT]'
12529 sysv4.2uw2*)
12530 symcode='[DT]'
12532 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12533 symcode='[ABDT]'
12535 sysv4)
12536 symcode='[DFNSTU]'
12538 esac
12540 # If we're using GNU nm, then use its standard symbol codes.
12541 case `$NM -V 2>&1` in
12542 *GNU* | *'with BFD'*)
12543 symcode='[ABCDGIRSTW]' ;;
12544 esac
12546 # Transform an extracted symbol line into a proper C declaration.
12547 # Some systems (esp. on ia64) link data and code symbols differently,
12548 # so use this general approach.
12549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12551 # Transform an extracted symbol line into symbol name and symbol address
12552 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12553 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'"
12555 # Handle CRLF in mingw tool chain
12556 opt_cr=
12557 case $build_os in
12558 mingw*)
12559 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12561 esac
12563 # Try without a prefix underscore, then with it.
12564 for ac_symprfx in "" "_"; do
12566 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12567 symxfrm="\\1 $ac_symprfx\\2 \\2"
12569 # Write the raw and C identifiers.
12570 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12571 # Fake it for dumpbin and say T for any non-static function
12572 # and D for any global variable.
12573 # Also find C++ and __fastcall symbols from MSVC++,
12574 # which start with @ or ?.
12575 lt_cv_sys_global_symbol_pipe="$AWK '"\
12576 " {last_section=section; section=\$ 3};"\
12577 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12578 " \$ 0!~/External *\|/{next};"\
12579 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12580 " {if(hide[section]) next};"\
12581 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12582 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12583 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12584 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12585 " ' prfx=^$ac_symprfx"
12586 else
12587 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12590 # Check to see that the pipe works correctly.
12591 pipe_works=no
12593 rm -f conftest*
12594 cat > conftest.$ac_ext <<_LT_EOF
12595 #ifdef __cplusplus
12596 extern "C" {
12597 #endif
12598 char nm_test_var;
12599 void nm_test_func(void);
12600 void nm_test_func(void){}
12601 #ifdef __cplusplus
12603 #endif
12604 int main(){nm_test_var='a';nm_test_func();return(0);}
12605 _LT_EOF
12607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12608 (eval $ac_compile) 2>&5
12609 ac_status=$?
12610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12611 test $ac_status = 0; }; then
12612 # Now try to grab the symbols.
12613 nlist=conftest.nm
12614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12615 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12616 ac_status=$?
12617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12618 test $ac_status = 0; } && test -s "$nlist"; then
12619 # Try sorting and uniquifying the output.
12620 if sort "$nlist" | uniq > "$nlist"T; then
12621 mv -f "$nlist"T "$nlist"
12622 else
12623 rm -f "$nlist"T
12626 # Make sure that we snagged all the symbols we need.
12627 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12628 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12629 cat <<_LT_EOF > conftest.$ac_ext
12630 #ifdef __cplusplus
12631 extern "C" {
12632 #endif
12634 _LT_EOF
12635 # Now generate the symbol file.
12636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12638 cat <<_LT_EOF >> conftest.$ac_ext
12640 /* The mapping between symbol names and symbols. */
12641 const struct {
12642 const char *name;
12643 void *address;
12645 lt__PROGRAM__LTX_preloaded_symbols[] =
12647 { "@PROGRAM@", (void *) 0 },
12648 _LT_EOF
12649 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12650 cat <<\_LT_EOF >> conftest.$ac_ext
12651 {0, (void *) 0}
12654 /* This works around a problem in FreeBSD linker */
12655 #ifdef FREEBSD_WORKAROUND
12656 static const void *lt_preloaded_setup() {
12657 return lt__PROGRAM__LTX_preloaded_symbols;
12659 #endif
12661 #ifdef __cplusplus
12663 #endif
12664 _LT_EOF
12665 # Now try linking the two files.
12666 mv conftest.$ac_objext conftstm.$ac_objext
12667 lt_save_LIBS="$LIBS"
12668 lt_save_CFLAGS="$CFLAGS"
12669 LIBS="conftstm.$ac_objext"
12670 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12672 (eval $ac_link) 2>&5
12673 ac_status=$?
12674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12675 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12676 pipe_works=yes
12678 LIBS="$lt_save_LIBS"
12679 CFLAGS="$lt_save_CFLAGS"
12680 else
12681 echo "cannot find nm_test_func in $nlist" >&5
12683 else
12684 echo "cannot find nm_test_var in $nlist" >&5
12686 else
12687 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12689 else
12690 echo "$progname: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12693 rm -rf conftest* conftst*
12695 # Do not use the global_symbol_pipe unless it works.
12696 if test "$pipe_works" = yes; then
12697 break
12698 else
12699 lt_cv_sys_global_symbol_pipe=
12701 done
12705 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12706 lt_cv_sys_global_symbol_to_cdecl=
12708 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12710 $as_echo "failed" >&6; }
12711 else
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12713 $as_echo "ok" >&6; }
12737 # Check whether --enable-libtool-lock was given.
12738 if test "${enable_libtool_lock+set}" = set; then :
12739 enableval=$enable_libtool_lock;
12742 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12744 # Some flags need to be propagated to the compiler or linker for good
12745 # libtool support.
12746 case $host in
12747 ia64-*-hpux*)
12748 # Find out which ABI we are using.
12749 echo 'int i;' > conftest.$ac_ext
12750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12751 (eval $ac_compile) 2>&5
12752 ac_status=$?
12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754 test $ac_status = 0; }; then
12755 case `/usr/bin/file conftest.$ac_objext` in
12756 *ELF-32*)
12757 HPUX_IA64_MODE="32"
12759 *ELF-64*)
12760 HPUX_IA64_MODE="64"
12762 esac
12764 rm -rf conftest*
12766 *-*-irix6*)
12767 # Find out which ABI we are using.
12768 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12770 (eval $ac_compile) 2>&5
12771 ac_status=$?
12772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773 test $ac_status = 0; }; then
12774 if test "$lt_cv_prog_gnu_ld" = yes; then
12775 case `/usr/bin/file conftest.$ac_objext` in
12776 *32-bit*)
12777 LD="${LD-ld} -melf32bsmip"
12779 *N32*)
12780 LD="${LD-ld} -melf32bmipn32"
12782 *64-bit*)
12783 LD="${LD-ld} -melf64bmip"
12785 esac
12786 else
12787 case `/usr/bin/file conftest.$ac_objext` in
12788 *32-bit*)
12789 LD="${LD-ld} -32"
12791 *N32*)
12792 LD="${LD-ld} -n32"
12794 *64-bit*)
12795 LD="${LD-ld} -64"
12797 esac
12800 rm -rf conftest*
12803 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12804 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12805 # Find out which ABI we are using.
12806 echo 'int i;' > conftest.$ac_ext
12807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12808 (eval $ac_compile) 2>&5
12809 ac_status=$?
12810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12811 test $ac_status = 0; }; then
12812 case `/usr/bin/file conftest.o` in
12813 *32-bit*)
12814 case $host in
12815 x86_64-*kfreebsd*-gnu)
12816 LD="${LD-ld} -m elf_i386_fbsd"
12818 x86_64-*linux*)
12819 LD="${LD-ld} -m elf_i386"
12821 ppc64-*linux*|powerpc64-*linux*)
12822 LD="${LD-ld} -m elf32ppclinux"
12824 s390x-*linux*)
12825 LD="${LD-ld} -m elf_s390"
12827 sparc64-*linux*)
12828 LD="${LD-ld} -m elf32_sparc"
12830 esac
12832 *64-bit*)
12833 case $host in
12834 x86_64-*kfreebsd*-gnu)
12835 LD="${LD-ld} -m elf_x86_64_fbsd"
12837 x86_64-*linux*)
12838 LD="${LD-ld} -m elf_x86_64"
12840 ppc*-*linux*|powerpc*-*linux*)
12841 LD="${LD-ld} -m elf64ppc"
12843 s390*-*linux*|s390*-*tpf*)
12844 LD="${LD-ld} -m elf64_s390"
12846 sparc*-*linux*)
12847 LD="${LD-ld} -m elf64_sparc"
12849 esac
12851 esac
12853 rm -rf conftest*
12856 *-*-sco3.2v5*)
12857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12858 SAVE_CFLAGS="$CFLAGS"
12859 CFLAGS="$CFLAGS -belf"
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12861 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12862 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
12864 else
12865 ac_ext=c
12866 ac_cpp='$CPP $CPPFLAGS'
12867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12875 main ()
12879 return 0;
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"; then :
12883 lt_cv_cc_needs_belf=yes
12884 else
12885 lt_cv_cc_needs_belf=no
12887 rm -f core conftest.err conftest.$ac_objext \
12888 conftest$ac_exeext conftest.$ac_ext
12889 ac_ext=c
12890 ac_cpp='$CPP $CPPFLAGS'
12891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12897 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12900 CFLAGS="$SAVE_CFLAGS"
12903 sparc*-*solaris*)
12904 # Find out which ABI we are using.
12905 echo 'int i;' > conftest.$ac_ext
12906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12907 (eval $ac_compile) 2>&5
12908 ac_status=$?
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; }; then
12911 case `/usr/bin/file conftest.o` in
12912 *64-bit*)
12913 case $lt_cv_prog_gnu_ld in
12914 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12916 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12917 LD="${LD-ld} -64"
12920 esac
12922 esac
12924 rm -rf conftest*
12926 esac
12928 need_locks="$enable_libtool_lock"
12931 case $host_os in
12932 rhapsody* | darwin*)
12933 if test -n "$ac_tool_prefix"; then
12934 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12935 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12937 $as_echo_n "checking for $ac_word... " >&6; }
12938 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12939 $as_echo_n "(cached) " >&6
12940 else
12941 if test -n "$DSYMUTIL"; then
12942 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12943 else
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12947 IFS=$as_save_IFS
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12951 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12953 break 2
12955 done
12956 done
12957 IFS=$as_save_IFS
12961 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12962 if test -n "$DSYMUTIL"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12964 $as_echo "$DSYMUTIL" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12972 if test -z "$ac_cv_prog_DSYMUTIL"; then
12973 ac_ct_DSYMUTIL=$DSYMUTIL
12974 # Extract the first word of "dsymutil", so it can be a program name with args.
12975 set dummy dsymutil; ac_word=$2
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12977 $as_echo_n "checking for $ac_word... " >&6; }
12978 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12979 $as_echo_n "(cached) " >&6
12980 else
12981 if test -n "$ac_ct_DSYMUTIL"; then
12982 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12983 else
12984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12987 IFS=$as_save_IFS
12988 test -z "$as_dir" && as_dir=.
12989 for ac_exec_ext in '' $ac_executable_extensions; do
12990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12991 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 break 2
12995 done
12996 done
12997 IFS=$as_save_IFS
13001 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13002 if test -n "$ac_ct_DSYMUTIL"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13004 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13005 else
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13007 $as_echo "no" >&6; }
13010 if test "x$ac_ct_DSYMUTIL" = x; then
13011 DSYMUTIL=":"
13012 else
13013 case $cross_compiling:$ac_tool_warned in
13014 yes:)
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13017 ac_tool_warned=yes ;;
13018 esac
13019 DSYMUTIL=$ac_ct_DSYMUTIL
13021 else
13022 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13025 if test -n "$ac_tool_prefix"; then
13026 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13027 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13031 $as_echo_n "(cached) " >&6
13032 else
13033 if test -n "$NMEDIT"; then
13034 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13035 else
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13043 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 break 2
13047 done
13048 done
13049 IFS=$as_save_IFS
13053 NMEDIT=$ac_cv_prog_NMEDIT
13054 if test -n "$NMEDIT"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13056 $as_echo "$NMEDIT" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13064 if test -z "$ac_cv_prog_NMEDIT"; then
13065 ac_ct_NMEDIT=$NMEDIT
13066 # Extract the first word of "nmedit", so it can be a program name with args.
13067 set dummy nmedit; ac_word=$2
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13069 $as_echo_n "checking for $ac_word... " >&6; }
13070 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 if test -n "$ac_ct_NMEDIT"; then
13074 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13075 else
13076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077 for as_dir in $PATH
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13083 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13087 done
13088 done
13089 IFS=$as_save_IFS
13093 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13094 if test -n "$ac_ct_NMEDIT"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13096 $as_echo "$ac_ct_NMEDIT" >&6; }
13097 else
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13102 if test "x$ac_ct_NMEDIT" = x; then
13103 NMEDIT=":"
13104 else
13105 case $cross_compiling:$ac_tool_warned in
13106 yes:)
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13109 ac_tool_warned=yes ;;
13110 esac
13111 NMEDIT=$ac_ct_NMEDIT
13113 else
13114 NMEDIT="$ac_cv_prog_NMEDIT"
13117 if test -n "$ac_tool_prefix"; then
13118 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13119 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13121 $as_echo_n "checking for $ac_word... " >&6; }
13122 if test "${ac_cv_prog_LIPO+set}" = set; then :
13123 $as_echo_n "(cached) " >&6
13124 else
13125 if test -n "$LIPO"; then
13126 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13127 else
13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13129 for as_dir in $PATH
13131 IFS=$as_save_IFS
13132 test -z "$as_dir" && as_dir=.
13133 for ac_exec_ext in '' $ac_executable_extensions; do
13134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13135 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13137 break 2
13139 done
13140 done
13141 IFS=$as_save_IFS
13145 LIPO=$ac_cv_prog_LIPO
13146 if test -n "$LIPO"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13148 $as_echo "$LIPO" >&6; }
13149 else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13156 if test -z "$ac_cv_prog_LIPO"; then
13157 ac_ct_LIPO=$LIPO
13158 # Extract the first word of "lipo", so it can be a program name with args.
13159 set dummy lipo; ac_word=$2
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161 $as_echo_n "checking for $ac_word... " >&6; }
13162 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165 if test -n "$ac_ct_LIPO"; then
13166 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13167 else
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169 for as_dir in $PATH
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13175 ac_cv_prog_ac_ct_LIPO="lipo"
13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13177 break 2
13179 done
13180 done
13181 IFS=$as_save_IFS
13185 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13186 if test -n "$ac_ct_LIPO"; then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13188 $as_echo "$ac_ct_LIPO" >&6; }
13189 else
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13194 if test "x$ac_ct_LIPO" = x; then
13195 LIPO=":"
13196 else
13197 case $cross_compiling:$ac_tool_warned in
13198 yes:)
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13201 ac_tool_warned=yes ;;
13202 esac
13203 LIPO=$ac_ct_LIPO
13205 else
13206 LIPO="$ac_cv_prog_LIPO"
13209 if test -n "$ac_tool_prefix"; then
13210 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13211 set dummy ${ac_tool_prefix}otool; ac_word=$2
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13213 $as_echo_n "checking for $ac_word... " >&6; }
13214 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 if test -n "$OTOOL"; then
13218 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13219 else
13220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13223 IFS=$as_save_IFS
13224 test -z "$as_dir" && as_dir=.
13225 for ac_exec_ext in '' $ac_executable_extensions; do
13226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13227 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229 break 2
13231 done
13232 done
13233 IFS=$as_save_IFS
13237 OTOOL=$ac_cv_prog_OTOOL
13238 if test -n "$OTOOL"; then
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13240 $as_echo "$OTOOL" >&6; }
13241 else
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13248 if test -z "$ac_cv_prog_OTOOL"; then
13249 ac_ct_OTOOL=$OTOOL
13250 # Extract the first word of "otool", so it can be a program name with args.
13251 set dummy otool; ac_word=$2
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253 $as_echo_n "checking for $ac_word... " >&6; }
13254 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 if test -n "$ac_ct_OTOOL"; then
13258 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13259 else
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261 for as_dir in $PATH
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13267 ac_cv_prog_ac_ct_OTOOL="otool"
13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13269 break 2
13271 done
13272 done
13273 IFS=$as_save_IFS
13277 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13278 if test -n "$ac_ct_OTOOL"; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13280 $as_echo "$ac_ct_OTOOL" >&6; }
13281 else
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283 $as_echo "no" >&6; }
13286 if test "x$ac_ct_OTOOL" = x; then
13287 OTOOL=":"
13288 else
13289 case $cross_compiling:$ac_tool_warned in
13290 yes:)
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13293 ac_tool_warned=yes ;;
13294 esac
13295 OTOOL=$ac_ct_OTOOL
13297 else
13298 OTOOL="$ac_cv_prog_OTOOL"
13301 if test -n "$ac_tool_prefix"; then
13302 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13303 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305 $as_echo_n "checking for $ac_word... " >&6; }
13306 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13307 $as_echo_n "(cached) " >&6
13308 else
13309 if test -n "$OTOOL64"; then
13310 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13311 else
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13323 done
13324 done
13325 IFS=$as_save_IFS
13329 OTOOL64=$ac_cv_prog_OTOOL64
13330 if test -n "$OTOOL64"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13332 $as_echo "$OTOOL64" >&6; }
13333 else
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335 $as_echo "no" >&6; }
13340 if test -z "$ac_cv_prog_OTOOL64"; then
13341 ac_ct_OTOOL64=$OTOOL64
13342 # Extract the first word of "otool64", so it can be a program name with args.
13343 set dummy otool64; ac_word=$2
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13345 $as_echo_n "checking for $ac_word... " >&6; }
13346 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13347 $as_echo_n "(cached) " >&6
13348 else
13349 if test -n "$ac_ct_OTOOL64"; then
13350 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13355 IFS=$as_save_IFS
13356 test -z "$as_dir" && as_dir=.
13357 for ac_exec_ext in '' $ac_executable_extensions; do
13358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13359 ac_cv_prog_ac_ct_OTOOL64="otool64"
13360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13361 break 2
13363 done
13364 done
13365 IFS=$as_save_IFS
13369 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13370 if test -n "$ac_ct_OTOOL64"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13372 $as_echo "$ac_ct_OTOOL64" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13378 if test "x$ac_ct_OTOOL64" = x; then
13379 OTOOL64=":"
13380 else
13381 case $cross_compiling:$ac_tool_warned in
13382 yes:)
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13385 ac_tool_warned=yes ;;
13386 esac
13387 OTOOL64=$ac_ct_OTOOL64
13389 else
13390 OTOOL64="$ac_cv_prog_OTOOL64"
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13420 $as_echo_n "checking for -single_module linker flag... " >&6; }
13421 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 lt_cv_apple_cc_single_mod=no
13425 if test -z "${LT_MULTI_MODULE}"; then
13426 # By default we will add the -single_module flag. You can override
13427 # by either setting the environment variable LT_MULTI_MODULE
13428 # non-empty at configure time, or by adding -multi_module to the
13429 # link flags.
13430 rm -rf libconftest.dylib*
13431 echo "int foo(void){return 1;}" > conftest.c
13432 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13433 -dynamiclib -Wl,-single_module conftest.c" >&5
13434 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13435 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13436 _lt_result=$?
13437 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13438 lt_cv_apple_cc_single_mod=yes
13439 else
13440 cat conftest.err >&5
13442 rm -rf libconftest.dylib*
13443 rm -f conftest.*
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13447 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13449 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13450 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 lt_cv_ld_exported_symbols_list=no
13454 save_LDFLAGS=$LDFLAGS
13455 echo "_main" > conftest.sym
13456 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13461 main ()
13465 return 0;
13467 _ACEOF
13468 if ac_fn_c_try_link "$LINENO"; then :
13469 lt_cv_ld_exported_symbols_list=yes
13470 else
13471 lt_cv_ld_exported_symbols_list=no
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475 LDFLAGS="$save_LDFLAGS"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13479 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13481 $as_echo_n "checking for -force_load linker flag... " >&6; }
13482 if test "${lt_cv_ld_force_load+set}" = set; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 lt_cv_ld_force_load=no
13486 cat > conftest.c << _LT_EOF
13487 int forced_loaded() { return 2;}
13488 _LT_EOF
13489 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13490 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13491 echo "$AR cru libconftest.a conftest.o" >&5
13492 $AR cru libconftest.a conftest.o 2>&5
13493 cat > conftest.c << _LT_EOF
13494 int main() { return 0;}
13495 _LT_EOF
13496 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13497 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13498 _lt_result=$?
13499 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13500 lt_cv_ld_force_load=yes
13501 else
13502 cat conftest.err >&5
13504 rm -f conftest.err libconftest.a conftest conftest.c
13505 rm -rf conftest.dSYM
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13509 $as_echo "$lt_cv_ld_force_load" >&6; }
13510 case $host_os in
13511 rhapsody* | darwin1.[012])
13512 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13513 darwin1.*)
13514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13515 darwin*) # darwin 5.x on
13516 # if running on 10.5 or later, the deployment target defaults
13517 # to the OS version, if on x86, and 10.4, the deployment
13518 # target defaults to 10.4. Don't you love it?
13519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13520 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13522 10.[012]*)
13523 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13524 10.*)
13525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13526 esac
13528 esac
13529 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13530 _lt_dar_single_mod='$single_module'
13532 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13533 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13534 else
13535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13537 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13538 _lt_dsymutil='~$DSYMUTIL $lib || :'
13539 else
13540 _lt_dsymutil=
13543 esac
13545 for ac_header in dlfcn.h
13546 do :
13547 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13548 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13549 cat >>confdefs.h <<_ACEOF
13550 #define HAVE_DLFCN_H 1
13551 _ACEOF
13554 done
13561 # Set options
13565 enable_dlopen=no
13568 enable_win32_dll=no
13571 # Check whether --enable-shared was given.
13572 if test "${enable_shared+set}" = set; then :
13573 enableval=$enable_shared; p=${PACKAGE-default}
13574 case $enableval in
13575 yes) enable_shared=yes ;;
13576 no) enable_shared=no ;;
13578 enable_shared=no
13579 # Look at the argument we got. We use all the common list separators.
13580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13581 for pkg in $enableval; do
13582 IFS="$lt_save_ifs"
13583 if test "X$pkg" = "X$p"; then
13584 enable_shared=yes
13586 done
13587 IFS="$lt_save_ifs"
13589 esac
13590 else
13591 enable_shared=yes
13602 # Check whether --enable-static was given.
13603 if test "${enable_static+set}" = set; then :
13604 enableval=$enable_static; p=${PACKAGE-default}
13605 case $enableval in
13606 yes) enable_static=yes ;;
13607 no) enable_static=no ;;
13609 enable_static=no
13610 # Look at the argument we got. We use all the common list separators.
13611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13612 for pkg in $enableval; do
13613 IFS="$lt_save_ifs"
13614 if test "X$pkg" = "X$p"; then
13615 enable_static=yes
13617 done
13618 IFS="$lt_save_ifs"
13620 esac
13621 else
13622 enable_static=yes
13634 # Check whether --with-pic was given.
13635 if test "${with_pic+set}" = set; then :
13636 withval=$with_pic; pic_mode="$withval"
13637 else
13638 pic_mode=default
13642 test -z "$pic_mode" && pic_mode=default
13650 # Check whether --enable-fast-install was given.
13651 if test "${enable_fast_install+set}" = set; then :
13652 enableval=$enable_fast_install; p=${PACKAGE-default}
13653 case $enableval in
13654 yes) enable_fast_install=yes ;;
13655 no) enable_fast_install=no ;;
13657 enable_fast_install=no
13658 # Look at the argument we got. We use all the common list separators.
13659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13660 for pkg in $enableval; do
13661 IFS="$lt_save_ifs"
13662 if test "X$pkg" = "X$p"; then
13663 enable_fast_install=yes
13665 done
13666 IFS="$lt_save_ifs"
13668 esac
13669 else
13670 enable_fast_install=yes
13683 # This can be used to rebuild libtool when needed
13684 LIBTOOL_DEPS="$ltmain"
13686 # Always use our own libtool.
13687 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13714 test -z "$LN_S" && LN_S="ln -s"
13729 if test -n "${ZSH_VERSION+set}" ; then
13730 setopt NO_GLOB_SUBST
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13734 $as_echo_n "checking for objdir... " >&6; }
13735 if test "${lt_cv_objdir+set}" = set; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 rm -f .libs 2>/dev/null
13739 mkdir .libs 2>/dev/null
13740 if test -d .libs; then
13741 lt_cv_objdir=.libs
13742 else
13743 # MS-DOS does not allow filenames that begin with a dot.
13744 lt_cv_objdir=_libs
13746 rmdir .libs 2>/dev/null
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13749 $as_echo "$lt_cv_objdir" >&6; }
13750 objdir=$lt_cv_objdir
13756 cat >>confdefs.h <<_ACEOF
13757 #define LT_OBJDIR "$lt_cv_objdir/"
13758 _ACEOF
13763 case $host_os in
13764 aix3*)
13765 # AIX sometimes has problems with the GCC collect2 program. For some
13766 # reason, if we set the COLLECT_NAMES environment variable, the problems
13767 # vanish in a puff of smoke.
13768 if test "X${COLLECT_NAMES+set}" != Xset; then
13769 COLLECT_NAMES=
13770 export COLLECT_NAMES
13773 esac
13775 # Global variables:
13776 ofile=libtool
13777 can_build_shared=yes
13779 # All known linkers require a `.a' archive for static linking (except MSVC,
13780 # which needs '.lib').
13781 libext=a
13783 with_gnu_ld="$lt_cv_prog_gnu_ld"
13785 old_CC="$CC"
13786 old_CFLAGS="$CFLAGS"
13788 # Set sane defaults for various variables
13789 test -z "$CC" && CC=cc
13790 test -z "$LTCC" && LTCC=$CC
13791 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13792 test -z "$LD" && LD=ld
13793 test -z "$ac_objext" && ac_objext=o
13795 for cc_temp in $compiler""; do
13796 case $cc_temp in
13797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13799 \-*) ;;
13800 *) break;;
13801 esac
13802 done
13803 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13806 # Only perform the check for file, if the check method requires it
13807 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13808 case $deplibs_check_method in
13809 file_magic*)
13810 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13812 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13813 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 case $MAGIC_CMD in
13817 [\\/*] | ?:[\\/]*)
13818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13821 lt_save_MAGIC_CMD="$MAGIC_CMD"
13822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13824 for ac_dir in $ac_dummy; do
13825 IFS="$lt_save_ifs"
13826 test -z "$ac_dir" && ac_dir=.
13827 if test -f $ac_dir/${ac_tool_prefix}file; then
13828 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13829 if test -n "$file_magic_test_file"; then
13830 case $deplibs_check_method in
13831 "file_magic "*)
13832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13835 $EGREP "$file_magic_regex" > /dev/null; then
13837 else
13838 cat <<_LT_EOF 1>&2
13840 *** Warning: the command libtool uses to detect shared libraries,
13841 *** $file_magic_cmd, produces output that libtool cannot recognize.
13842 *** The result is that libtool may fail to recognize shared libraries
13843 *** as such. This will affect the creation of libtool libraries that
13844 *** depend on shared libraries, but programs linked with such libtool
13845 *** libraries will work regardless of this problem. Nevertheless, you
13846 *** may want to report the problem to your system manager and/or to
13847 *** bug-libtool@gnu.org
13849 _LT_EOF
13850 fi ;;
13851 esac
13853 break
13855 done
13856 IFS="$lt_save_ifs"
13857 MAGIC_CMD="$lt_save_MAGIC_CMD"
13859 esac
13862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13863 if test -n "$MAGIC_CMD"; then
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13865 $as_echo "$MAGIC_CMD" >&6; }
13866 else
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868 $as_echo "no" >&6; }
13875 if test -z "$lt_cv_path_MAGIC_CMD"; then
13876 if test -n "$ac_tool_prefix"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13878 $as_echo_n "checking for file... " >&6; }
13879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13880 $as_echo_n "(cached) " >&6
13881 else
13882 case $MAGIC_CMD in
13883 [\\/*] | ?:[\\/]*)
13884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13887 lt_save_MAGIC_CMD="$MAGIC_CMD"
13888 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13889 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13890 for ac_dir in $ac_dummy; do
13891 IFS="$lt_save_ifs"
13892 test -z "$ac_dir" && ac_dir=.
13893 if test -f $ac_dir/file; then
13894 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13895 if test -n "$file_magic_test_file"; then
13896 case $deplibs_check_method in
13897 "file_magic "*)
13898 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13899 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13900 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13901 $EGREP "$file_magic_regex" > /dev/null; then
13903 else
13904 cat <<_LT_EOF 1>&2
13906 *** Warning: the command libtool uses to detect shared libraries,
13907 *** $file_magic_cmd, produces output that libtool cannot recognize.
13908 *** The result is that libtool may fail to recognize shared libraries
13909 *** as such. This will affect the creation of libtool libraries that
13910 *** depend on shared libraries, but programs linked with such libtool
13911 *** libraries will work regardless of this problem. Nevertheless, you
13912 *** may want to report the problem to your system manager and/or to
13913 *** bug-libtool@gnu.org
13915 _LT_EOF
13916 fi ;;
13917 esac
13919 break
13921 done
13922 IFS="$lt_save_ifs"
13923 MAGIC_CMD="$lt_save_MAGIC_CMD"
13925 esac
13928 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13929 if test -n "$MAGIC_CMD"; then
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13931 $as_echo "$MAGIC_CMD" >&6; }
13932 else
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13934 $as_echo "no" >&6; }
13938 else
13939 MAGIC_CMD=:
13945 esac
13947 # Use C for the default configuration in the libtool script
13949 lt_save_CC="$CC"
13950 ac_ext=c
13951 ac_cpp='$CPP $CPPFLAGS'
13952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13957 # Source file extension for C test sources.
13958 ac_ext=c
13960 # Object file extension for compiled C test sources.
13961 objext=o
13962 objext=$objext
13964 # Code to be used in simple compile tests
13965 lt_simple_compile_test_code="int some_variable = 0;"
13967 # Code to be used in simple link tests
13968 lt_simple_link_test_code='int main(){return(0);}'
13976 # If no C compiler was specified, use CC.
13977 LTCC=${LTCC-"$CC"}
13979 # If no C compiler flags were specified, use CFLAGS.
13980 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13982 # Allow CC to be a program name with arguments.
13983 compiler=$CC
13985 # Save the default compiler, since it gets overwritten when the other
13986 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13987 compiler_DEFAULT=$CC
13989 # save warnings/boilerplate of simple test code
13990 ac_outfile=conftest.$ac_objext
13991 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13992 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13993 _lt_compiler_boilerplate=`cat conftest.err`
13994 $RM conftest*
13996 ac_outfile=conftest.$ac_objext
13997 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13998 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13999 _lt_linker_boilerplate=`cat conftest.err`
14000 $RM -r conftest*
14003 ## CAVEAT EMPTOR:
14004 ## There is no encapsulation within the following macros, do not change
14005 ## the running order or otherwise move them around unless you know exactly
14006 ## what you are doing...
14007 if test -n "$compiler"; then
14009 lt_prog_compiler_no_builtin_flag=
14011 if test "$GCC" = yes; then
14012 case $cc_basename in
14013 nvcc*)
14014 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14016 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14017 esac
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14020 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14021 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 lt_cv_prog_compiler_rtti_exceptions=no
14025 ac_outfile=conftest.$ac_objext
14026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027 lt_compiler_flag="-fno-rtti -fno-exceptions"
14028 # Insert the option either (1) after the last *FLAGS variable, or
14029 # (2) before a word containing "conftest.", or (3) at the end.
14030 # Note that $ac_compile itself does not contain backslashes and begins
14031 # with a dollar sign (not a hyphen), so the echo should work correctly.
14032 # The option is referenced via a variable to avoid confusing sed.
14033 lt_compile=`echo "$ac_compile" | $SED \
14034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036 -e 's:$: $lt_compiler_flag:'`
14037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14038 (eval "$lt_compile" 2>conftest.err)
14039 ac_status=$?
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 if (exit $ac_status) && test -s "$ac_outfile"; then
14043 # The compiler can only warn and ignore the option if not recognized
14044 # So say no if there are warnings other than the usual output.
14045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14048 lt_cv_prog_compiler_rtti_exceptions=yes
14051 $RM conftest*
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14055 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14057 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14058 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14059 else
14070 lt_prog_compiler_wl=
14071 lt_prog_compiler_pic=
14072 lt_prog_compiler_static=
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14075 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14077 if test "$GCC" = yes; then
14078 lt_prog_compiler_wl='-Wl,'
14079 lt_prog_compiler_static='-static'
14081 case $host_os in
14082 aix*)
14083 # All AIX code is PIC.
14084 if test "$host_cpu" = ia64; then
14085 # AIX 5 now supports IA64 processor
14086 lt_prog_compiler_static='-Bstatic'
14090 amigaos*)
14091 case $host_cpu in
14092 powerpc)
14093 # see comment about AmigaOS4 .so support
14094 lt_prog_compiler_pic='-fPIC'
14096 m68k)
14097 # FIXME: we need at least 68020 code to build shared libraries, but
14098 # adding the `-m68020' flag to GCC prevents building anything better,
14099 # like `-m68040'.
14100 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14102 esac
14105 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14106 # PIC is the default for these OSes.
14109 mingw* | cygwin* | pw32* | os2* | cegcc*)
14110 # This hack is so that the source file can tell whether it is being
14111 # built for inclusion in a dll (and should export symbols for example).
14112 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14113 # (--disable-auto-import) libraries
14114 lt_prog_compiler_pic='-DDLL_EXPORT'
14117 darwin* | rhapsody*)
14118 # PIC is the default on this platform
14119 # Common symbols not allowed in MH_DYLIB files
14120 lt_prog_compiler_pic='-fno-common'
14123 haiku*)
14124 # PIC is the default for Haiku.
14125 # The "-static" flag exists, but is broken.
14126 lt_prog_compiler_static=
14129 hpux*)
14130 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14131 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14132 # sets the default TLS model and affects inlining.
14133 case $host_cpu in
14134 hppa*64*)
14135 # +Z the default
14138 lt_prog_compiler_pic='-fPIC'
14140 esac
14143 interix[3-9]*)
14144 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14145 # Instead, we relocate shared libraries at runtime.
14148 msdosdjgpp*)
14149 # Just because we use GCC doesn't mean we suddenly get shared libraries
14150 # on systems that don't support them.
14151 lt_prog_compiler_can_build_shared=no
14152 enable_shared=no
14155 *nto* | *qnx*)
14156 # QNX uses GNU C++, but need to define -shared option too, otherwise
14157 # it will coredump.
14158 lt_prog_compiler_pic='-fPIC -shared'
14161 sysv4*MP*)
14162 if test -d /usr/nec; then
14163 lt_prog_compiler_pic=-Kconform_pic
14168 lt_prog_compiler_pic='-fPIC'
14170 esac
14172 case $cc_basename in
14173 nvcc*) # Cuda Compiler Driver 2.2
14174 lt_prog_compiler_wl='-Xlinker '
14175 lt_prog_compiler_pic='-Xcompiler -fPIC'
14177 esac
14178 else
14179 # PORTME Check for flag to pass linker flags through the system compiler.
14180 case $host_os in
14181 aix*)
14182 lt_prog_compiler_wl='-Wl,'
14183 if test "$host_cpu" = ia64; then
14184 # AIX 5 now supports IA64 processor
14185 lt_prog_compiler_static='-Bstatic'
14186 else
14187 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14191 mingw* | cygwin* | pw32* | os2* | cegcc*)
14192 # This hack is so that the source file can tell whether it is being
14193 # built for inclusion in a dll (and should export symbols for example).
14194 lt_prog_compiler_pic='-DDLL_EXPORT'
14197 hpux9* | hpux10* | hpux11*)
14198 lt_prog_compiler_wl='-Wl,'
14199 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14200 # not for PA HP-UX.
14201 case $host_cpu in
14202 hppa*64*|ia64*)
14203 # +Z the default
14206 lt_prog_compiler_pic='+Z'
14208 esac
14209 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14210 lt_prog_compiler_static='${wl}-a ${wl}archive'
14213 irix5* | irix6* | nonstopux*)
14214 lt_prog_compiler_wl='-Wl,'
14215 # PIC (with -KPIC) is the default.
14216 lt_prog_compiler_static='-non_shared'
14219 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14220 case $cc_basename in
14221 # old Intel for x86_64 which still supported -KPIC.
14222 ecc*)
14223 lt_prog_compiler_wl='-Wl,'
14224 lt_prog_compiler_pic='-KPIC'
14225 lt_prog_compiler_static='-static'
14227 # icc used to be incompatible with GCC.
14228 # ICC 10 doesn't accept -KPIC any more.
14229 icc* | ifort*)
14230 lt_prog_compiler_wl='-Wl,'
14231 lt_prog_compiler_pic='-fPIC'
14232 lt_prog_compiler_static='-static'
14234 # Lahey Fortran 8.1.
14235 lf95*)
14236 lt_prog_compiler_wl='-Wl,'
14237 lt_prog_compiler_pic='--shared'
14238 lt_prog_compiler_static='--static'
14240 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14241 # Portland Group compilers (*not* the Pentium gcc compiler,
14242 # which looks to be a dead project)
14243 lt_prog_compiler_wl='-Wl,'
14244 lt_prog_compiler_pic='-fpic'
14245 lt_prog_compiler_static='-Bstatic'
14247 ccc*)
14248 lt_prog_compiler_wl='-Wl,'
14249 # All Alpha code is PIC.
14250 lt_prog_compiler_static='-non_shared'
14252 xl* | bgxl* | bgf* | mpixl*)
14253 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14254 lt_prog_compiler_wl='-Wl,'
14255 lt_prog_compiler_pic='-qpic'
14256 lt_prog_compiler_static='-qstaticlink'
14259 case `$CC -V 2>&1 | sed 5q` in
14260 *Sun\ F* | *Sun*Fortran*)
14261 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14262 lt_prog_compiler_pic='-KPIC'
14263 lt_prog_compiler_static='-Bstatic'
14264 lt_prog_compiler_wl=''
14266 *Sun\ C*)
14267 # Sun C 5.9
14268 lt_prog_compiler_pic='-KPIC'
14269 lt_prog_compiler_static='-Bstatic'
14270 lt_prog_compiler_wl='-Wl,'
14272 esac
14274 esac
14277 newsos6)
14278 lt_prog_compiler_pic='-KPIC'
14279 lt_prog_compiler_static='-Bstatic'
14282 *nto* | *qnx*)
14283 # QNX uses GNU C++, but need to define -shared option too, otherwise
14284 # it will coredump.
14285 lt_prog_compiler_pic='-fPIC -shared'
14288 osf3* | osf4* | osf5*)
14289 lt_prog_compiler_wl='-Wl,'
14290 # All OSF/1 code is PIC.
14291 lt_prog_compiler_static='-non_shared'
14294 rdos*)
14295 lt_prog_compiler_static='-non_shared'
14298 solaris*)
14299 lt_prog_compiler_pic='-KPIC'
14300 lt_prog_compiler_static='-Bstatic'
14301 case $cc_basename in
14302 f77* | f90* | f95*)
14303 lt_prog_compiler_wl='-Qoption ld ';;
14305 lt_prog_compiler_wl='-Wl,';;
14306 esac
14309 sunos4*)
14310 lt_prog_compiler_wl='-Qoption ld '
14311 lt_prog_compiler_pic='-PIC'
14312 lt_prog_compiler_static='-Bstatic'
14315 sysv4 | sysv4.2uw2* | sysv4.3*)
14316 lt_prog_compiler_wl='-Wl,'
14317 lt_prog_compiler_pic='-KPIC'
14318 lt_prog_compiler_static='-Bstatic'
14321 sysv4*MP*)
14322 if test -d /usr/nec ;then
14323 lt_prog_compiler_pic='-Kconform_pic'
14324 lt_prog_compiler_static='-Bstatic'
14328 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14329 lt_prog_compiler_wl='-Wl,'
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-Bstatic'
14334 unicos*)
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_can_build_shared=no
14339 uts4*)
14340 lt_prog_compiler_pic='-pic'
14341 lt_prog_compiler_static='-Bstatic'
14345 lt_prog_compiler_can_build_shared=no
14347 esac
14350 case $host_os in
14351 # For platforms which do not support PIC, -DPIC is meaningless:
14352 *djgpp*)
14353 lt_prog_compiler_pic=
14356 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14358 esac
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14360 $as_echo "$lt_prog_compiler_pic" >&6; }
14368 # Check to make sure the PIC flag actually works.
14370 if test -n "$lt_prog_compiler_pic"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14372 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14373 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14374 $as_echo_n "(cached) " >&6
14375 else
14376 lt_cv_prog_compiler_pic_works=no
14377 ac_outfile=conftest.$ac_objext
14378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14379 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14380 # Insert the option either (1) after the last *FLAGS variable, or
14381 # (2) before a word containing "conftest.", or (3) at the end.
14382 # Note that $ac_compile itself does not contain backslashes and begins
14383 # with a dollar sign (not a hyphen), so the echo should work correctly.
14384 # The option is referenced via a variable to avoid confusing sed.
14385 lt_compile=`echo "$ac_compile" | $SED \
14386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14388 -e 's:$: $lt_compiler_flag:'`
14389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14390 (eval "$lt_compile" 2>conftest.err)
14391 ac_status=$?
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 if (exit $ac_status) && test -s "$ac_outfile"; then
14395 # The compiler can only warn and ignore the option if not recognized
14396 # So say no if there are warnings other than the usual output.
14397 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14400 lt_cv_prog_compiler_pic_works=yes
14403 $RM conftest*
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14407 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14409 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14410 case $lt_prog_compiler_pic in
14411 "" | " "*) ;;
14412 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14413 esac
14414 else
14415 lt_prog_compiler_pic=
14416 lt_prog_compiler_can_build_shared=no
14427 # Check to make sure the static flag actually works.
14429 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14431 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14432 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14434 else
14435 lt_cv_prog_compiler_static_works=no
14436 save_LDFLAGS="$LDFLAGS"
14437 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14438 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14440 # The linker can only warn and ignore the option if not recognized
14441 # So say no if there are warnings
14442 if test -s conftest.err; then
14443 # Append any errors to the config.log.
14444 cat conftest.err 1>&5
14445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14447 if diff conftest.exp conftest.er2 >/dev/null; then
14448 lt_cv_prog_compiler_static_works=yes
14450 else
14451 lt_cv_prog_compiler_static_works=yes
14454 $RM -r conftest*
14455 LDFLAGS="$save_LDFLAGS"
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14459 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14461 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14463 else
14464 lt_prog_compiler_static=
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14474 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14475 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 lt_cv_prog_compiler_c_o=no
14479 $RM -r conftest 2>/dev/null
14480 mkdir conftest
14481 cd conftest
14482 mkdir out
14483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14485 lt_compiler_flag="-o out/conftest2.$ac_objext"
14486 # Insert the option either (1) after the last *FLAGS variable, or
14487 # (2) before a word containing "conftest.", or (3) at the end.
14488 # Note that $ac_compile itself does not contain backslashes and begins
14489 # with a dollar sign (not a hyphen), so the echo should work correctly.
14490 lt_compile=`echo "$ac_compile" | $SED \
14491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14493 -e 's:$: $lt_compiler_flag:'`
14494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14495 (eval "$lt_compile" 2>out/conftest.err)
14496 ac_status=$?
14497 cat out/conftest.err >&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14500 then
14501 # The compiler can only warn and ignore the option if not recognized
14502 # So say no if there are warnings
14503 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14504 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14505 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14506 lt_cv_prog_compiler_c_o=yes
14509 chmod u+w . 2>&5
14510 $RM conftest*
14511 # SGI C++ compiler will create directory out/ii_files/ for
14512 # template instantiation
14513 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14514 $RM out/* && rmdir out
14515 cd ..
14516 $RM -r conftest
14517 $RM conftest*
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14521 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14529 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14530 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14531 $as_echo_n "(cached) " >&6
14532 else
14533 lt_cv_prog_compiler_c_o=no
14534 $RM -r conftest 2>/dev/null
14535 mkdir conftest
14536 cd conftest
14537 mkdir out
14538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14540 lt_compiler_flag="-o out/conftest2.$ac_objext"
14541 # Insert the option either (1) after the last *FLAGS variable, or
14542 # (2) before a word containing "conftest.", or (3) at the end.
14543 # Note that $ac_compile itself does not contain backslashes and begins
14544 # with a dollar sign (not a hyphen), so the echo should work correctly.
14545 lt_compile=`echo "$ac_compile" | $SED \
14546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14548 -e 's:$: $lt_compiler_flag:'`
14549 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14550 (eval "$lt_compile" 2>out/conftest.err)
14551 ac_status=$?
14552 cat out/conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14555 then
14556 # The compiler can only warn and ignore the option if not recognized
14557 # So say no if there are warnings
14558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14559 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14560 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14561 lt_cv_prog_compiler_c_o=yes
14564 chmod u+w . 2>&5
14565 $RM conftest*
14566 # SGI C++ compiler will create directory out/ii_files/ for
14567 # template instantiation
14568 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14569 $RM out/* && rmdir out
14570 cd ..
14571 $RM -r conftest
14572 $RM conftest*
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14576 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14581 hard_links="nottested"
14582 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14583 # do not overwrite the value of need_locks provided by the user
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14585 $as_echo_n "checking if we can lock with hard links... " >&6; }
14586 hard_links=yes
14587 $RM conftest*
14588 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14589 touch conftest.a
14590 ln conftest.a conftest.b 2>&5 || hard_links=no
14591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14593 $as_echo "$hard_links" >&6; }
14594 if test "$hard_links" = no; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14596 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14597 need_locks=warn
14599 else
14600 need_locks=no
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14609 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14611 runpath_var=
14612 allow_undefined_flag=
14613 always_export_symbols=no
14614 archive_cmds=
14615 archive_expsym_cmds=
14616 compiler_needs_object=no
14617 enable_shared_with_static_runtimes=no
14618 export_dynamic_flag_spec=
14619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14620 hardcode_automatic=no
14621 hardcode_direct=no
14622 hardcode_direct_absolute=no
14623 hardcode_libdir_flag_spec=
14624 hardcode_libdir_flag_spec_ld=
14625 hardcode_libdir_separator=
14626 hardcode_minus_L=no
14627 hardcode_shlibpath_var=unsupported
14628 inherit_rpath=no
14629 link_all_deplibs=unknown
14630 module_cmds=
14631 module_expsym_cmds=
14632 old_archive_from_new_cmds=
14633 old_archive_from_expsyms_cmds=
14634 thread_safe_flag_spec=
14635 whole_archive_flag_spec=
14636 # include_expsyms should be a list of space-separated symbols to be *always*
14637 # included in the symbol list
14638 include_expsyms=
14639 # exclude_expsyms can be an extended regexp of symbols to exclude
14640 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14641 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14642 # as well as any symbol that contains `d'.
14643 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14644 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14645 # platforms (ab)use it in PIC code, but their linkers get confused if
14646 # the symbol is explicitly referenced. Since portable code cannot
14647 # rely on this symbol name, it's probably fine to never include it in
14648 # preloaded symbol tables.
14649 # Exclude shared library initialization/finalization symbols.
14650 extract_expsyms_cmds=
14652 case $host_os in
14653 cygwin* | mingw* | pw32* | cegcc*)
14654 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14655 # When not using gcc, we currently assume that we are using
14656 # Microsoft Visual C++.
14657 if test "$GCC" != yes; then
14658 with_gnu_ld=no
14661 interix*)
14662 # we just hope/assume this is gcc and not c89 (= MSVC++)
14663 with_gnu_ld=yes
14665 openbsd*)
14666 with_gnu_ld=no
14668 esac
14670 ld_shlibs=yes
14672 # On some targets, GNU ld is compatible enough with the native linker
14673 # that we're better off using the native interface for both.
14674 lt_use_gnu_ld_interface=no
14675 if test "$with_gnu_ld" = yes; then
14676 case $host_os in
14677 aix*)
14678 # The AIX port of GNU ld has always aspired to compatibility
14679 # with the native linker. However, as the warning in the GNU ld
14680 # block says, versions before 2.19.5* couldn't really create working
14681 # shared libraries, regardless of the interface used.
14682 case `$LD -v 2>&1` in
14683 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14684 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14685 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14687 lt_use_gnu_ld_interface=yes
14689 esac
14692 lt_use_gnu_ld_interface=yes
14694 esac
14697 if test "$lt_use_gnu_ld_interface" = yes; then
14698 # If archive_cmds runs LD, not CC, wlarc should be empty
14699 wlarc='${wl}'
14701 # Set some defaults for GNU ld with shared library support. These
14702 # are reset later if shared libraries are not supported. Putting them
14703 # here allows them to be overridden if necessary.
14704 runpath_var=LD_RUN_PATH
14705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14706 export_dynamic_flag_spec='${wl}--export-dynamic'
14707 # ancient GNU ld didn't support --whole-archive et. al.
14708 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14709 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14710 else
14711 whole_archive_flag_spec=
14713 supports_anon_versioning=no
14714 case `$LD -v 2>&1` in
14715 *GNU\ gold*) supports_anon_versioning=yes ;;
14716 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14717 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14718 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14719 *\ 2.11.*) ;; # other 2.11 versions
14720 *) supports_anon_versioning=yes ;;
14721 esac
14723 # See if GNU ld supports shared libraries.
14724 case $host_os in
14725 aix[3-9]*)
14726 # On AIX/PPC, the GNU linker is very broken
14727 if test "$host_cpu" != ia64; then
14728 ld_shlibs=no
14729 cat <<_LT_EOF 1>&2
14731 *** Warning: the GNU linker, at least up to release 2.19, is reported
14732 *** to be unable to reliably create shared libraries on AIX.
14733 *** Therefore, libtool is disabling shared libraries support. If you
14734 *** really care for shared libraries, you may want to install binutils
14735 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14736 *** You will then need to restart the configuration process.
14738 _LT_EOF
14742 amigaos*)
14743 case $host_cpu in
14744 powerpc)
14745 # see comment about AmigaOS4 .so support
14746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14747 archive_expsym_cmds=''
14749 m68k)
14750 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)'
14751 hardcode_libdir_flag_spec='-L$libdir'
14752 hardcode_minus_L=yes
14754 esac
14757 beos*)
14758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14759 allow_undefined_flag=unsupported
14760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14761 # support --undefined. This deserves some investigation. FIXME
14762 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763 else
14764 ld_shlibs=no
14768 cygwin* | mingw* | pw32* | cegcc*)
14769 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14770 # as there is no search path for DLLs.
14771 hardcode_libdir_flag_spec='-L$libdir'
14772 export_dynamic_flag_spec='${wl}--export-all-symbols'
14773 allow_undefined_flag=unsupported
14774 always_export_symbols=no
14775 enable_shared_with_static_runtimes=yes
14776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14778 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14780 # If the export-symbols file already is a .def file (1st line
14781 # is EXPORTS), use it as is; otherwise, prepend...
14782 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14783 cp $export_symbols $output_objdir/$soname.def;
14784 else
14785 echo EXPORTS > $output_objdir/$soname.def;
14786 cat $export_symbols >> $output_objdir/$soname.def;
14788 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14789 else
14790 ld_shlibs=no
14794 haiku*)
14795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14796 link_all_deplibs=yes
14799 interix[3-9]*)
14800 hardcode_direct=no
14801 hardcode_shlibpath_var=no
14802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14803 export_dynamic_flag_spec='${wl}-E'
14804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14805 # Instead, shared libraries are loaded at an image base (0x10000000 by
14806 # default) and relocated if they conflict, which is a slow very memory
14807 # consuming and fragmenting process. To avoid this, we pick a random,
14808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14810 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14811 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'
14814 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14815 tmp_diet=no
14816 if test "$host_os" = linux-dietlibc; then
14817 case $cc_basename in
14818 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14819 esac
14821 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14822 && test "$tmp_diet" = no
14823 then
14824 tmp_addflag=
14825 tmp_sharedflag='-shared'
14826 case $cc_basename,$host_cpu in
14827 pgcc*) # Portland Group C compiler
14828 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'
14829 tmp_addflag=' $pic_flag'
14831 pgf77* | pgf90* | pgf95* | pgfortran*)
14832 # Portland Group f77 and f90 compilers
14833 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'
14834 tmp_addflag=' $pic_flag -Mnomain' ;;
14835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14836 tmp_addflag=' -i_dynamic' ;;
14837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14838 tmp_addflag=' -i_dynamic -nofor_main' ;;
14839 ifc* | ifort*) # Intel Fortran compiler
14840 tmp_addflag=' -nofor_main' ;;
14841 lf95*) # Lahey Fortran 8.1
14842 whole_archive_flag_spec=
14843 tmp_sharedflag='--shared' ;;
14844 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14845 tmp_sharedflag='-qmkshrobj'
14846 tmp_addflag= ;;
14847 nvcc*) # Cuda Compiler Driver 2.2
14848 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'
14849 compiler_needs_object=yes
14851 esac
14852 case `$CC -V 2>&1 | sed 5q` in
14853 *Sun\ C*) # Sun C 5.9
14854 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'
14855 compiler_needs_object=yes
14856 tmp_sharedflag='-G' ;;
14857 *Sun\ F*) # Sun Fortran 8.3
14858 tmp_sharedflag='-G' ;;
14859 esac
14860 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14862 if test "x$supports_anon_versioning" = xyes; then
14863 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14864 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14865 echo "local: *; };" >> $output_objdir/$libname.ver~
14866 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14869 case $cc_basename in
14870 xlf* | bgf* | bgxlf* | mpixlf*)
14871 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14872 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14873 hardcode_libdir_flag_spec=
14874 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14875 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14876 if test "x$supports_anon_versioning" = xyes; then
14877 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14879 echo "local: *; };" >> $output_objdir/$libname.ver~
14880 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14883 esac
14884 else
14885 ld_shlibs=no
14889 netbsd*)
14890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14891 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14892 wlarc=
14893 else
14894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14895 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14899 solaris*)
14900 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14901 ld_shlibs=no
14902 cat <<_LT_EOF 1>&2
14904 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14905 *** create shared libraries on Solaris systems. Therefore, libtool
14906 *** is disabling shared libraries support. We urge you to upgrade GNU
14907 *** binutils to release 2.9.1 or newer. Another option is to modify
14908 *** your PATH or compiler configuration so that the native linker is
14909 *** used, and then restart.
14911 _LT_EOF
14912 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14915 else
14916 ld_shlibs=no
14920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14921 case `$LD -v 2>&1` in
14922 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14923 ld_shlibs=no
14924 cat <<_LT_EOF 1>&2
14926 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14927 *** reliably create shared libraries on SCO systems. Therefore, libtool
14928 *** is disabling shared libraries support. We urge you to upgrade GNU
14929 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14930 *** your PATH or compiler configuration so that the native linker is
14931 *** used, and then restart.
14933 _LT_EOF
14936 # For security reasons, it is highly recommended that you always
14937 # use absolute paths for naming shared libraries, and exclude the
14938 # DT_RUNPATH tag from executables and libraries. But doing so
14939 # requires that you compile everything twice, which is a pain.
14940 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14942 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14943 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14944 else
14945 ld_shlibs=no
14948 esac
14951 sunos4*)
14952 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14953 wlarc=
14954 hardcode_direct=yes
14955 hardcode_shlibpath_var=no
14959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14962 else
14963 ld_shlibs=no
14966 esac
14968 if test "$ld_shlibs" = no; then
14969 runpath_var=
14970 hardcode_libdir_flag_spec=
14971 export_dynamic_flag_spec=
14972 whole_archive_flag_spec=
14974 else
14975 # PORTME fill in a description of your system's linker (not GNU ld)
14976 case $host_os in
14977 aix3*)
14978 allow_undefined_flag=unsupported
14979 always_export_symbols=yes
14980 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'
14981 # Note: this linker hardcodes the directories in LIBPATH if there
14982 # are no directories specified by -L.
14983 hardcode_minus_L=yes
14984 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14985 # Neither direct hardcoding nor static linking is supported with a
14986 # broken collect2.
14987 hardcode_direct=unsupported
14991 aix[4-9]*)
14992 if test "$host_cpu" = ia64; then
14993 # On IA64, the linker does run time linking by default, so we don't
14994 # have to do anything special.
14995 aix_use_runtimelinking=no
14996 exp_sym_flag='-Bexport'
14997 no_entry_flag=""
14998 else
14999 # If we're using GNU nm, then we don't want the "-C" option.
15000 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15001 # Also, AIX nm treats weak defined symbols like other global
15002 # defined symbols, whereas GNU nm marks them as "W".
15003 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15004 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'
15005 else
15006 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'
15008 aix_use_runtimelinking=no
15010 # Test if we are trying to use run time linking or normal
15011 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15012 # need to do runtime linking.
15013 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15014 for ld_flag in $LDFLAGS; do
15015 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15016 aix_use_runtimelinking=yes
15017 break
15019 done
15021 esac
15023 exp_sym_flag='-bexport'
15024 no_entry_flag='-bnoentry'
15027 # When large executables or shared objects are built, AIX ld can
15028 # have problems creating the table of contents. If linking a library
15029 # or program results in "error TOC overflow" add -mminimal-toc to
15030 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15031 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15033 archive_cmds=''
15034 hardcode_direct=yes
15035 hardcode_direct_absolute=yes
15036 hardcode_libdir_separator=':'
15037 link_all_deplibs=yes
15038 file_list_spec='${wl}-f,'
15040 if test "$GCC" = yes; then
15041 case $host_os in aix4.[012]|aix4.[012].*)
15042 # We only want to do this on AIX 4.2 and lower, the check
15043 # below for broken collect2 doesn't work under 4.3+
15044 collect2name=`${CC} -print-prog-name=collect2`
15045 if test -f "$collect2name" &&
15046 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15047 then
15048 # We have reworked collect2
15050 else
15051 # We have old collect2
15052 hardcode_direct=unsupported
15053 # It fails to find uninstalled libraries when the uninstalled
15054 # path is not listed in the libpath. Setting hardcode_minus_L
15055 # to unsupported forces relinking
15056 hardcode_minus_L=yes
15057 hardcode_libdir_flag_spec='-L$libdir'
15058 hardcode_libdir_separator=
15061 esac
15062 shared_flag='-shared'
15063 if test "$aix_use_runtimelinking" = yes; then
15064 shared_flag="$shared_flag "'${wl}-G'
15066 else
15067 # not using gcc
15068 if test "$host_cpu" = ia64; then
15069 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15070 # chokes on -Wl,-G. The following line is correct:
15071 shared_flag='-G'
15072 else
15073 if test "$aix_use_runtimelinking" = yes; then
15074 shared_flag='${wl}-G'
15075 else
15076 shared_flag='${wl}-bM:SRE'
15081 export_dynamic_flag_spec='${wl}-bexpall'
15082 # It seems that -bexpall does not export symbols beginning with
15083 # underscore (_), so it is better to generate a list of symbols to export.
15084 always_export_symbols=yes
15085 if test "$aix_use_runtimelinking" = yes; then
15086 # Warning - without using the other runtime loading flags (-brtl),
15087 # -berok will link without error, but may produce a broken library.
15088 allow_undefined_flag='-berok'
15089 # Determine the default libpath from the value encoded in an
15090 # empty executable.
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15095 main ()
15099 return 0;
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15104 lt_aix_libpath_sed='
15105 /Import File Strings/,/^$/ {
15106 /^0/ {
15107 s/^0 *\(.*\)$/\1/
15111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15112 # Check for a 64-bit object if we didn't find anything.
15113 if test -z "$aix_libpath"; then
15114 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15117 rm -f core conftest.err conftest.$ac_objext \
15118 conftest$ac_exeext conftest.$ac_ext
15119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15122 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"
15123 else
15124 if test "$host_cpu" = ia64; then
15125 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15126 allow_undefined_flag="-z nodefs"
15127 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"
15128 else
15129 # Determine the default libpath from the value encoded in an
15130 # empty executable.
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15135 main ()
15139 return 0;
15141 _ACEOF
15142 if ac_fn_c_try_link "$LINENO"; then :
15144 lt_aix_libpath_sed='
15145 /Import File Strings/,/^$/ {
15146 /^0/ {
15147 s/^0 *\(.*\)$/\1/
15151 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15152 # Check for a 64-bit object if we didn't find anything.
15153 if test -z "$aix_libpath"; then
15154 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15157 rm -f core conftest.err conftest.$ac_objext \
15158 conftest$ac_exeext conftest.$ac_ext
15159 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15161 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15162 # Warning - without using the other run time loading flags,
15163 # -berok will link without error, but may produce a broken library.
15164 no_undefined_flag=' ${wl}-bernotok'
15165 allow_undefined_flag=' ${wl}-berok'
15166 if test "$with_gnu_ld" = yes; then
15167 # We only use this code for GNU lds that support --whole-archive.
15168 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15169 else
15170 # Exported symbols can be pulled into shared objects from archives
15171 whole_archive_flag_spec='$convenience'
15173 archive_cmds_need_lc=yes
15174 # This is similar to how AIX traditionally builds its shared libraries.
15175 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'
15180 amigaos*)
15181 case $host_cpu in
15182 powerpc)
15183 # see comment about AmigaOS4 .so support
15184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185 archive_expsym_cmds=''
15187 m68k)
15188 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)'
15189 hardcode_libdir_flag_spec='-L$libdir'
15190 hardcode_minus_L=yes
15192 esac
15195 bsdi[45]*)
15196 export_dynamic_flag_spec=-rdynamic
15199 cygwin* | mingw* | pw32* | cegcc*)
15200 # When not using gcc, we currently assume that we are using
15201 # Microsoft Visual C++.
15202 # hardcode_libdir_flag_spec is actually meaningless, as there is
15203 # no search path for DLLs.
15204 hardcode_libdir_flag_spec=' '
15205 allow_undefined_flag=unsupported
15206 # Tell ltmain to make .lib files, not .a files.
15207 libext=lib
15208 # Tell ltmain to make .dll files, not .so files.
15209 shrext_cmds=".dll"
15210 # FIXME: Setting linknames here is a bad hack.
15211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15212 # The linker will automatically build a .lib file if we build a DLL.
15213 old_archive_from_new_cmds='true'
15214 # FIXME: Should let the user specify the lib program.
15215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15216 fix_srcfile_path='`cygpath -w "$srcfile"`'
15217 enable_shared_with_static_runtimes=yes
15220 darwin* | rhapsody*)
15223 archive_cmds_need_lc=no
15224 hardcode_direct=no
15225 hardcode_automatic=yes
15226 hardcode_shlibpath_var=unsupported
15227 if test "$lt_cv_ld_force_load" = "yes"; then
15228 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\"`'
15229 else
15230 whole_archive_flag_spec=''
15232 link_all_deplibs=yes
15233 allow_undefined_flag="$_lt_dar_allow_undefined"
15234 case $cc_basename in
15235 ifort*) _lt_dar_can_shared=yes ;;
15236 *) _lt_dar_can_shared=$GCC ;;
15237 esac
15238 if test "$_lt_dar_can_shared" = "yes"; then
15239 output_verbose_link_cmd=func_echo_all
15240 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15241 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15242 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}"
15243 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}"
15245 else
15246 ld_shlibs=no
15251 dgux*)
15252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15253 hardcode_libdir_flag_spec='-L$libdir'
15254 hardcode_shlibpath_var=no
15257 freebsd1*)
15258 ld_shlibs=no
15261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15262 # support. Future versions do this automatically, but an explicit c++rt0.o
15263 # does not break anything, and helps significantly (at the cost of a little
15264 # extra space).
15265 freebsd2.2*)
15266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15267 hardcode_libdir_flag_spec='-R$libdir'
15268 hardcode_direct=yes
15269 hardcode_shlibpath_var=no
15272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15273 freebsd2*)
15274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15275 hardcode_direct=yes
15276 hardcode_minus_L=yes
15277 hardcode_shlibpath_var=no
15280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15281 freebsd* | dragonfly*)
15282 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15283 hardcode_libdir_flag_spec='-R$libdir'
15284 hardcode_direct=yes
15285 hardcode_shlibpath_var=no
15288 hpux9*)
15289 if test "$GCC" = yes; then
15290 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'
15291 else
15292 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'
15294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15295 hardcode_libdir_separator=:
15296 hardcode_direct=yes
15298 # hardcode_minus_L: Not really in the search PATH,
15299 # but as the default location of the library.
15300 hardcode_minus_L=yes
15301 export_dynamic_flag_spec='${wl}-E'
15304 hpux10*)
15305 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15306 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15307 else
15308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15310 if test "$with_gnu_ld" = no; then
15311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15312 hardcode_libdir_flag_spec_ld='+b $libdir'
15313 hardcode_libdir_separator=:
15314 hardcode_direct=yes
15315 hardcode_direct_absolute=yes
15316 export_dynamic_flag_spec='${wl}-E'
15317 # hardcode_minus_L: Not really in the search PATH,
15318 # but as the default location of the library.
15319 hardcode_minus_L=yes
15323 hpux11*)
15324 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15325 case $host_cpu in
15326 hppa*64*)
15327 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15329 ia64*)
15330 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15333 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15335 esac
15336 else
15337 case $host_cpu in
15338 hppa*64*)
15339 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15341 ia64*)
15342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15346 # Older versions of the 11.00 compiler do not understand -b yet
15347 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15349 $as_echo_n "checking if $CC understands -b... " >&6; }
15350 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15352 else
15353 lt_cv_prog_compiler__b=no
15354 save_LDFLAGS="$LDFLAGS"
15355 LDFLAGS="$LDFLAGS -b"
15356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15358 # The linker can only warn and ignore the option if not recognized
15359 # So say no if there are warnings
15360 if test -s conftest.err; then
15361 # Append any errors to the config.log.
15362 cat conftest.err 1>&5
15363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15365 if diff conftest.exp conftest.er2 >/dev/null; then
15366 lt_cv_prog_compiler__b=yes
15368 else
15369 lt_cv_prog_compiler__b=yes
15372 $RM -r conftest*
15373 LDFLAGS="$save_LDFLAGS"
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15377 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15379 if test x"$lt_cv_prog_compiler__b" = xyes; then
15380 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15381 else
15382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15386 esac
15388 if test "$with_gnu_ld" = no; then
15389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15390 hardcode_libdir_separator=:
15392 case $host_cpu in
15393 hppa*64*|ia64*)
15394 hardcode_direct=no
15395 hardcode_shlibpath_var=no
15398 hardcode_direct=yes
15399 hardcode_direct_absolute=yes
15400 export_dynamic_flag_spec='${wl}-E'
15402 # hardcode_minus_L: Not really in the search PATH,
15403 # but as the default location of the library.
15404 hardcode_minus_L=yes
15406 esac
15410 irix5* | irix6* | nonstopux*)
15411 if test "$GCC" = yes; then
15412 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'
15413 # Try to use the -exported_symbol ld option, if it does not
15414 # work, assume that -exports_file does not work either and
15415 # implicitly export all symbols.
15416 save_LDFLAGS="$LDFLAGS"
15417 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15420 int foo(void) {}
15421 _ACEOF
15422 if ac_fn_c_try_link "$LINENO"; then :
15423 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'
15426 rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 LDFLAGS="$save_LDFLAGS"
15429 else
15430 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'
15431 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'
15433 archive_cmds_need_lc='no'
15434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15435 hardcode_libdir_separator=:
15436 inherit_rpath=yes
15437 link_all_deplibs=yes
15440 netbsd*)
15441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15443 else
15444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15446 hardcode_libdir_flag_spec='-R$libdir'
15447 hardcode_direct=yes
15448 hardcode_shlibpath_var=no
15451 newsos6)
15452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15453 hardcode_direct=yes
15454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15455 hardcode_libdir_separator=:
15456 hardcode_shlibpath_var=no
15459 *nto* | *qnx*)
15462 openbsd*)
15463 if test -f /usr/libexec/ld.so; then
15464 hardcode_direct=yes
15465 hardcode_shlibpath_var=no
15466 hardcode_direct_absolute=yes
15467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15471 export_dynamic_flag_spec='${wl}-E'
15472 else
15473 case $host_os in
15474 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15476 hardcode_libdir_flag_spec='-R$libdir'
15479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15482 esac
15484 else
15485 ld_shlibs=no
15489 os2*)
15490 hardcode_libdir_flag_spec='-L$libdir'
15491 hardcode_minus_L=yes
15492 allow_undefined_flag=unsupported
15493 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'
15494 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15497 osf3*)
15498 if test "$GCC" = yes; then
15499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15500 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'
15501 else
15502 allow_undefined_flag=' -expect_unresolved \*'
15503 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'
15505 archive_cmds_need_lc='no'
15506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15507 hardcode_libdir_separator=:
15510 osf4* | osf5*) # as osf3* with the addition of -msym flag
15511 if test "$GCC" = yes; then
15512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15513 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'
15514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15515 else
15516 allow_undefined_flag=' -expect_unresolved \*'
15517 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'
15518 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~
15519 $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'
15521 # Both c and cxx compiler support -rpath directly
15522 hardcode_libdir_flag_spec='-rpath $libdir'
15524 archive_cmds_need_lc='no'
15525 hardcode_libdir_separator=:
15528 solaris*)
15529 no_undefined_flag=' -z defs'
15530 if test "$GCC" = yes; then
15531 wlarc='${wl}'
15532 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15534 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15535 else
15536 case `$CC -V 2>&1` in
15537 *"Compilers 5.0"*)
15538 wlarc=''
15539 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15544 wlarc='${wl}'
15545 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15547 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15549 esac
15551 hardcode_libdir_flag_spec='-R$libdir'
15552 hardcode_shlibpath_var=no
15553 case $host_os in
15554 solaris2.[0-5] | solaris2.[0-5].*) ;;
15556 # The compiler driver will combine and reorder linker options,
15557 # but understands `-z linker_flag'. GCC discards it without `$wl',
15558 # but is careful enough not to reorder.
15559 # Supported since Solaris 2.6 (maybe 2.5.1?)
15560 if test "$GCC" = yes; then
15561 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15562 else
15563 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15566 esac
15567 link_all_deplibs=yes
15570 sunos4*)
15571 if test "x$host_vendor" = xsequent; then
15572 # Use $CC to link under sequent, because it throws in some extra .o
15573 # files that make .init and .fini sections work.
15574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15575 else
15576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15578 hardcode_libdir_flag_spec='-L$libdir'
15579 hardcode_direct=yes
15580 hardcode_minus_L=yes
15581 hardcode_shlibpath_var=no
15584 sysv4)
15585 case $host_vendor in
15586 sni)
15587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15588 hardcode_direct=yes # is this really true???
15590 siemens)
15591 ## LD is ld it makes a PLAMLIB
15592 ## CC just makes a GrossModule.
15593 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15594 reload_cmds='$CC -r -o $output$reload_objs'
15595 hardcode_direct=no
15597 motorola)
15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15601 esac
15602 runpath_var='LD_RUN_PATH'
15603 hardcode_shlibpath_var=no
15606 sysv4.3*)
15607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 hardcode_shlibpath_var=no
15609 export_dynamic_flag_spec='-Bexport'
15612 sysv4*MP*)
15613 if test -d /usr/nec; then
15614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 hardcode_shlibpath_var=no
15616 runpath_var=LD_RUN_PATH
15617 hardcode_runpath_var=yes
15618 ld_shlibs=yes
15622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15623 no_undefined_flag='${wl}-z,text'
15624 archive_cmds_need_lc=no
15625 hardcode_shlibpath_var=no
15626 runpath_var='LD_RUN_PATH'
15628 if test "$GCC" = yes; then
15629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631 else
15632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 sysv5* | sco3.2v5* | sco5v6*)
15638 # Note: We can NOT use -z defs as we might desire, because we do not
15639 # link with -lc, and that would cause any symbols used from libc to
15640 # always be unresolved, which means just about no library would
15641 # ever link correctly. If we're not using GNU ld we use -z text
15642 # though, which does catch some bad symbols but isn't as heavy-handed
15643 # as -z defs.
15644 no_undefined_flag='${wl}-z,text'
15645 allow_undefined_flag='${wl}-z,nodefs'
15646 archive_cmds_need_lc=no
15647 hardcode_shlibpath_var=no
15648 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15649 hardcode_libdir_separator=':'
15650 link_all_deplibs=yes
15651 export_dynamic_flag_spec='${wl}-Bexport'
15652 runpath_var='LD_RUN_PATH'
15654 if test "$GCC" = yes; then
15655 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15657 else
15658 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663 uts4*)
15664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_libdir_flag_spec='-L$libdir'
15666 hardcode_shlibpath_var=no
15670 ld_shlibs=no
15672 esac
15674 if test x$host_vendor = xsni; then
15675 case $host in
15676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15677 export_dynamic_flag_spec='${wl}-Blargedynsym'
15679 esac
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15684 $as_echo "$ld_shlibs" >&6; }
15685 test "$ld_shlibs" = no && can_build_shared=no
15687 with_gnu_ld=$with_gnu_ld
15704 # Do we need to explicitly link libc?
15706 case "x$archive_cmds_need_lc" in
15707 x|xyes)
15708 # Assume -lc should be added
15709 archive_cmds_need_lc=yes
15711 if test "$enable_shared" = yes && test "$GCC" = yes; then
15712 case $archive_cmds in
15713 *'~'*)
15714 # FIXME: we may have to deal with multi-command sequences.
15716 '$CC '*)
15717 # Test whether the compiler implicitly links with -lc since on some
15718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15719 # to ld, don't add -lc before -lgcc.
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15721 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15722 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15724 else
15725 $RM conftest*
15726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15729 (eval $ac_compile) 2>&5
15730 ac_status=$?
15731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15732 test $ac_status = 0; } 2>conftest.err; then
15733 soname=conftest
15734 lib=conftest
15735 libobjs=conftest.$ac_objext
15736 deplibs=
15737 wl=$lt_prog_compiler_wl
15738 pic_flag=$lt_prog_compiler_pic
15739 compiler_flags=-v
15740 linker_flags=-v
15741 verstring=
15742 output_objdir=.
15743 libname=conftest
15744 lt_save_allow_undefined_flag=$allow_undefined_flag
15745 allow_undefined_flag=
15746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15747 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15748 ac_status=$?
15749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15750 test $ac_status = 0; }
15751 then
15752 lt_cv_archive_cmds_need_lc=no
15753 else
15754 lt_cv_archive_cmds_need_lc=yes
15756 allow_undefined_flag=$lt_save_allow_undefined_flag
15757 else
15758 cat conftest.err 1>&5
15760 $RM conftest*
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15764 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15765 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15767 esac
15770 esac
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15929 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15931 if test "$GCC" = yes; then
15932 case $host_os in
15933 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15934 *) lt_awk_arg="/^libraries:/" ;;
15935 esac
15936 case $host_os in
15937 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15938 *) lt_sed_strip_eq="s,=/,/,g" ;;
15939 esac
15940 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15941 case $lt_search_path_spec in
15942 *\;*)
15943 # if the path contains ";" then we assume it to be the separator
15944 # otherwise default to the standard path separator (i.e. ":") - it is
15945 # assumed that no part of a normal pathname contains ";" but that should
15946 # okay in the real world where ";" in dirpaths is itself problematic.
15947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15950 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15952 esac
15953 # Ok, now we have the path, separated by spaces, we can step through it
15954 # and add multilib dir if necessary.
15955 lt_tmp_lt_search_path_spec=
15956 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15957 for lt_sys_path in $lt_search_path_spec; do
15958 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15959 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15960 else
15961 test -d "$lt_sys_path" && \
15962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15964 done
15965 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15966 BEGIN {RS=" "; FS="/|\n";} {
15967 lt_foo="";
15968 lt_count=0;
15969 for (lt_i = NF; lt_i > 0; lt_i--) {
15970 if ($lt_i != "" && $lt_i != ".") {
15971 if ($lt_i == "..") {
15972 lt_count++;
15973 } else {
15974 if (lt_count == 0) {
15975 lt_foo="/" $lt_i lt_foo;
15976 } else {
15977 lt_count--;
15982 if (lt_foo != "") { lt_freq[lt_foo]++; }
15983 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15985 # AWK program above erroneously prepends '/' to C:/dos/paths
15986 # for these hosts.
15987 case $host_os in
15988 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15989 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15990 esac
15991 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15992 else
15993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15995 library_names_spec=
15996 libname_spec='lib$name'
15997 soname_spec=
15998 shrext_cmds=".so"
15999 postinstall_cmds=
16000 postuninstall_cmds=
16001 finish_cmds=
16002 finish_eval=
16003 shlibpath_var=
16004 shlibpath_overrides_runpath=unknown
16005 version_type=none
16006 dynamic_linker="$host_os ld.so"
16007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16008 need_lib_prefix=unknown
16009 hardcode_into_libs=no
16011 # when you set need_version to no, make sure it does not cause -set_version
16012 # flags to be left without arguments
16013 need_version=unknown
16015 case $host_os in
16016 aix3*)
16017 version_type=linux
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16019 shlibpath_var=LIBPATH
16021 # AIX 3 has no versioning support, so we append a major version to the name.
16022 soname_spec='${libname}${release}${shared_ext}$major'
16025 aix[4-9]*)
16026 version_type=linux
16027 need_lib_prefix=no
16028 need_version=no
16029 hardcode_into_libs=yes
16030 if test "$host_cpu" = ia64; then
16031 # AIX 5 supports IA64
16032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16033 shlibpath_var=LD_LIBRARY_PATH
16034 else
16035 # With GCC up to 2.95.x, collect2 would create an import file
16036 # for dependence libraries. The import file would start with
16037 # the line `#! .'. This would cause the generated library to
16038 # depend on `.', always an invalid library. This was fixed in
16039 # development snapshots of GCC prior to 3.0.
16040 case $host_os in
16041 aix4 | aix4.[01] | aix4.[01].*)
16042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16043 echo ' yes '
16044 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16046 else
16047 can_build_shared=no
16050 esac
16051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16052 # soname into executable. Probably we can add versioning support to
16053 # collect2, so additional links can be useful in future.
16054 if test "$aix_use_runtimelinking" = yes; then
16055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16056 # instead of lib<name>.a to let people know that these are not
16057 # typical AIX shared libraries.
16058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 else
16060 # We preserve .a as extension for shared libraries through AIX4.2
16061 # and later when we are not doing run time linking.
16062 library_names_spec='${libname}${release}.a $libname.a'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16065 shlibpath_var=LIBPATH
16069 amigaos*)
16070 case $host_cpu in
16071 powerpc)
16072 # Since July 2007 AmigaOS4 officially supports .so libraries.
16073 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 m68k)
16077 library_names_spec='$libname.ixlibrary $libname.a'
16078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16079 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'
16081 esac
16084 beos*)
16085 library_names_spec='${libname}${shared_ext}'
16086 dynamic_linker="$host_os ld.so"
16087 shlibpath_var=LIBRARY_PATH
16090 bsdi[45]*)
16091 version_type=linux
16092 need_version=no
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16096 shlibpath_var=LD_LIBRARY_PATH
16097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16099 # the default ld.so.conf also contains /usr/contrib/lib and
16100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16101 # libtool to hard-code these into programs
16104 cygwin* | mingw* | pw32* | cegcc*)
16105 version_type=windows
16106 shrext_cmds=".dll"
16107 need_version=no
16108 need_lib_prefix=no
16110 case $GCC,$host_os in
16111 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16112 library_names_spec='$libname.dll.a'
16113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16114 postinstall_cmds='base_file=`basename \${file}`~
16115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16116 dldir=$destdir/`dirname \$dlpath`~
16117 test -d \$dldir || mkdir -p \$dldir~
16118 $install_prog $dir/$dlname \$dldir/$dlname~
16119 chmod a+x \$dldir/$dlname~
16120 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16121 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16124 dlpath=$dir/\$dldll~
16125 $RM \$dlpath'
16126 shlibpath_overrides_runpath=yes
16128 case $host_os in
16129 cygwin*)
16130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16131 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16133 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16135 mingw* | cegcc*)
16136 # MinGW DLLs use traditional 'lib' prefix
16137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16139 pw32*)
16140 # pw32 DLLs use 'pw' prefix rather than 'lib'
16141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16143 esac
16147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16149 esac
16150 dynamic_linker='Win32 ld.exe'
16151 # FIXME: first we should search . and the directory the executable is in
16152 shlibpath_var=PATH
16155 darwin* | rhapsody*)
16156 dynamic_linker="$host_os dyld"
16157 version_type=darwin
16158 need_lib_prefix=no
16159 need_version=no
16160 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16161 soname_spec='${libname}${release}${major}$shared_ext'
16162 shlibpath_overrides_runpath=yes
16163 shlibpath_var=DYLD_LIBRARY_PATH
16164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16170 dgux*)
16171 version_type=linux
16172 need_lib_prefix=no
16173 need_version=no
16174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16175 soname_spec='${libname}${release}${shared_ext}$major'
16176 shlibpath_var=LD_LIBRARY_PATH
16179 freebsd1*)
16180 dynamic_linker=no
16183 freebsd* | dragonfly*)
16184 # DragonFly does not have aout. When/if they implement a new
16185 # versioning mechanism, adjust this.
16186 if test -x /usr/bin/objformat; then
16187 objformat=`/usr/bin/objformat`
16188 else
16189 case $host_os in
16190 freebsd[123]*) objformat=aout ;;
16191 *) objformat=elf ;;
16192 esac
16194 version_type=freebsd-$objformat
16195 case $version_type in
16196 freebsd-elf*)
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16198 need_version=no
16199 need_lib_prefix=no
16201 freebsd-*)
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16203 need_version=yes
16205 esac
16206 shlibpath_var=LD_LIBRARY_PATH
16207 case $host_os in
16208 freebsd2*)
16209 shlibpath_overrides_runpath=yes
16211 freebsd3.[01]* | freebsdelf3.[01]*)
16212 shlibpath_overrides_runpath=yes
16213 hardcode_into_libs=yes
16215 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16216 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16217 shlibpath_overrides_runpath=no
16218 hardcode_into_libs=yes
16220 *) # from 4.6 on, and DragonFly
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16224 esac
16227 gnu*)
16228 version_type=linux
16229 need_lib_prefix=no
16230 need_version=no
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 shlibpath_var=LD_LIBRARY_PATH
16234 hardcode_into_libs=yes
16237 haiku*)
16238 version_type=linux
16239 need_lib_prefix=no
16240 need_version=no
16241 dynamic_linker="$host_os runtime_loader"
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LIBRARY_PATH
16245 shlibpath_overrides_runpath=yes
16246 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16247 hardcode_into_libs=yes
16250 hpux9* | hpux10* | hpux11*)
16251 # Give a soname corresponding to the major version so that dld.sl refuses to
16252 # link against other versions.
16253 version_type=sunos
16254 need_lib_prefix=no
16255 need_version=no
16256 case $host_cpu in
16257 ia64*)
16258 shrext_cmds='.so'
16259 hardcode_into_libs=yes
16260 dynamic_linker="$host_os dld.so"
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 if test "X$HPUX_IA64_MODE" = X32; then
16266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16267 else
16268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16272 hppa*64*)
16273 shrext_cmds='.sl'
16274 hardcode_into_libs=yes
16275 dynamic_linker="$host_os dld.sl"
16276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16284 shrext_cmds='.sl'
16285 dynamic_linker="$host_os dld.sl"
16286 shlibpath_var=SHLIB_PATH
16287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16291 esac
16292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16293 postinstall_cmds='chmod 555 $lib'
16294 # or fails outright, so override atomically:
16295 install_override_mode=555
16298 interix[3-9]*)
16299 version_type=linux
16300 need_lib_prefix=no
16301 need_version=no
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16303 soname_spec='${libname}${release}${shared_ext}$major'
16304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath=no
16307 hardcode_into_libs=yes
16310 irix5* | irix6* | nonstopux*)
16311 case $host_os in
16312 nonstopux*) version_type=nonstopux ;;
16314 if test "$lt_cv_prog_gnu_ld" = yes; then
16315 version_type=linux
16316 else
16317 version_type=irix
16318 fi ;;
16319 esac
16320 need_lib_prefix=no
16321 need_version=no
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16324 case $host_os in
16325 irix5* | nonstopux*)
16326 libsuff= shlibsuff=
16329 case $LD in # libtool.m4 will add one of these switches to LD
16330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16331 libsuff= shlibsuff= libmagic=32-bit;;
16332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16333 libsuff=32 shlibsuff=N32 libmagic=N32;;
16334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16336 *) libsuff= shlibsuff= libmagic=never-match;;
16337 esac
16339 esac
16340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16341 shlibpath_overrides_runpath=no
16342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16344 hardcode_into_libs=yes
16347 # No shared lib support for Linux oldld, aout, or coff.
16348 linux*oldld* | linux*aout* | linux*coff*)
16349 dynamic_linker=no
16352 # This must be Linux ELF.
16353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16354 version_type=linux
16355 need_lib_prefix=no
16356 need_version=no
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16363 # Some binutils ld are patched to set DT_RUNPATH
16364 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16365 $as_echo_n "(cached) " >&6
16366 else
16367 lt_cv_shlibpath_overrides_runpath=no
16368 save_LDFLAGS=$LDFLAGS
16369 save_libdir=$libdir
16370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16376 main ()
16380 return 0;
16382 _ACEOF
16383 if ac_fn_c_try_link "$LINENO"; then :
16384 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16385 lt_cv_shlibpath_overrides_runpath=yes
16388 rm -f core conftest.err conftest.$ac_objext \
16389 conftest$ac_exeext conftest.$ac_ext
16390 LDFLAGS=$save_LDFLAGS
16391 libdir=$save_libdir
16395 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16397 # This implies no fast_install, which is unacceptable.
16398 # Some rework will be needed to allow for fast_install
16399 # before this can be enabled.
16400 hardcode_into_libs=yes
16402 # Append ld.so.conf contents to the search path
16403 if test -f /etc/ld.so.conf; then
16404 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' ' '`
16405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16408 # We used to test for /lib/ld.so.1 and disable shared libraries on
16409 # powerpc, because MkLinux only supported shared libraries with the
16410 # GNU dynamic linker. Since this was broken with cross compilers,
16411 # most powerpc-linux boxes support dynamic linking these days and
16412 # people can always --disable-shared, the test was removed, and we
16413 # assume the GNU/Linux dynamic linker is in use.
16414 dynamic_linker='GNU/Linux ld.so'
16417 netbsd*)
16418 version_type=sunos
16419 need_lib_prefix=no
16420 need_version=no
16421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16424 dynamic_linker='NetBSD (a.out) ld.so'
16425 else
16426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16427 soname_spec='${libname}${release}${shared_ext}$major'
16428 dynamic_linker='NetBSD ld.elf_so'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath=yes
16432 hardcode_into_libs=yes
16435 newsos6)
16436 version_type=linux
16437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=yes
16442 *nto* | *qnx*)
16443 version_type=qnx
16444 need_lib_prefix=no
16445 need_version=no
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 soname_spec='${libname}${release}${shared_ext}$major'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=no
16450 hardcode_into_libs=yes
16451 dynamic_linker='ldqnx.so'
16454 openbsd*)
16455 version_type=sunos
16456 sys_lib_dlsearch_path_spec="/usr/lib"
16457 need_lib_prefix=no
16458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16459 case $host_os in
16460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16461 *) need_version=no ;;
16462 esac
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16467 case $host_os in
16468 openbsd2.[89] | openbsd2.[89].*)
16469 shlibpath_overrides_runpath=no
16472 shlibpath_overrides_runpath=yes
16474 esac
16475 else
16476 shlibpath_overrides_runpath=yes
16480 os2*)
16481 libname_spec='$name'
16482 shrext_cmds=".dll"
16483 need_lib_prefix=no
16484 library_names_spec='$libname${shared_ext} $libname.a'
16485 dynamic_linker='OS/2 ld.exe'
16486 shlibpath_var=LIBPATH
16489 osf3* | osf4* | osf5*)
16490 version_type=osf
16491 need_lib_prefix=no
16492 need_version=no
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16495 shlibpath_var=LD_LIBRARY_PATH
16496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16500 rdos*)
16501 dynamic_linker=no
16504 solaris*)
16505 version_type=linux
16506 need_lib_prefix=no
16507 need_version=no
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 shlibpath_overrides_runpath=yes
16512 hardcode_into_libs=yes
16513 # ldd complains unless libraries are executable
16514 postinstall_cmds='chmod +x $lib'
16517 sunos4*)
16518 version_type=sunos
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 shlibpath_overrides_runpath=yes
16523 if test "$with_gnu_ld" = yes; then
16524 need_lib_prefix=no
16526 need_version=yes
16529 sysv4 | sysv4.3*)
16530 version_type=linux
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16532 soname_spec='${libname}${release}${shared_ext}$major'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 case $host_vendor in
16535 sni)
16536 shlibpath_overrides_runpath=no
16537 need_lib_prefix=no
16538 runpath_var=LD_RUN_PATH
16540 siemens)
16541 need_lib_prefix=no
16543 motorola)
16544 need_lib_prefix=no
16545 need_version=no
16546 shlibpath_overrides_runpath=no
16547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16549 esac
16552 sysv4*MP*)
16553 if test -d /usr/nec ;then
16554 version_type=linux
16555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16556 soname_spec='$libname${shared_ext}.$major'
16557 shlibpath_var=LD_LIBRARY_PATH
16561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16562 version_type=freebsd-elf
16563 need_lib_prefix=no
16564 need_version=no
16565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16566 soname_spec='${libname}${release}${shared_ext}$major'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 shlibpath_overrides_runpath=yes
16569 hardcode_into_libs=yes
16570 if test "$with_gnu_ld" = yes; then
16571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16572 else
16573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16574 case $host_os in
16575 sco3.2v5*)
16576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16578 esac
16580 sys_lib_dlsearch_path_spec='/usr/lib'
16583 tpf*)
16584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16585 version_type=linux
16586 need_lib_prefix=no
16587 need_version=no
16588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath=no
16591 hardcode_into_libs=yes
16594 uts4*)
16595 version_type=linux
16596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597 soname_spec='${libname}${release}${shared_ext}$major'
16598 shlibpath_var=LD_LIBRARY_PATH
16602 dynamic_linker=no
16604 esac
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16606 $as_echo "$dynamic_linker" >&6; }
16607 test "$dynamic_linker" = no && can_build_shared=no
16609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16610 if test "$GCC" = yes; then
16611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16615 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16617 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16618 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16713 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16714 hardcode_action=
16715 if test -n "$hardcode_libdir_flag_spec" ||
16716 test -n "$runpath_var" ||
16717 test "X$hardcode_automatic" = "Xyes" ; then
16719 # We can hardcode non-existent directories.
16720 if test "$hardcode_direct" != no &&
16721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16722 # have to relink, otherwise we might link with an installed library
16723 # when we should be linking with a yet-to-be-installed one
16724 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16725 test "$hardcode_minus_L" != no; then
16726 # Linking always hardcodes the temporary library directory.
16727 hardcode_action=relink
16728 else
16729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16730 hardcode_action=immediate
16732 else
16733 # We cannot hardcode anything, or else we can only hardcode existing
16734 # directories.
16735 hardcode_action=unsupported
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16738 $as_echo "$hardcode_action" >&6; }
16740 if test "$hardcode_action" = relink ||
16741 test "$inherit_rpath" = yes; then
16742 # Fast installation is not supported
16743 enable_fast_install=no
16744 elif test "$shlibpath_overrides_runpath" = yes ||
16745 test "$enable_shared" = no; then
16746 # Fast installation is not necessary
16747 enable_fast_install=needless
16755 if test "x$enable_dlopen" != xyes; then
16756 enable_dlopen=unknown
16757 enable_dlopen_self=unknown
16758 enable_dlopen_self_static=unknown
16759 else
16760 lt_cv_dlopen=no
16761 lt_cv_dlopen_libs=
16763 case $host_os in
16764 beos*)
16765 lt_cv_dlopen="load_add_on"
16766 lt_cv_dlopen_libs=
16767 lt_cv_dlopen_self=yes
16770 mingw* | pw32* | cegcc*)
16771 lt_cv_dlopen="LoadLibrary"
16772 lt_cv_dlopen_libs=
16775 cygwin*)
16776 lt_cv_dlopen="dlopen"
16777 lt_cv_dlopen_libs=
16780 darwin*)
16781 # if libdl is installed we need to link against it
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16785 $as_echo_n "(cached) " >&6
16786 else
16787 ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-ldl $LIBS"
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16792 /* Override any GCC internal prototype to avoid an error.
16793 Use char because int might match the return type of a GCC
16794 builtin and then its argument prototype would still apply. */
16795 #ifdef __cplusplus
16796 extern "C"
16797 #endif
16798 char dlopen ();
16800 main ()
16802 return dlopen ();
16804 return 0;
16806 _ACEOF
16807 if ac_fn_c_try_link "$LINENO"; then :
16808 ac_cv_lib_dl_dlopen=yes
16809 else
16810 ac_cv_lib_dl_dlopen=no
16812 rm -f core conftest.err conftest.$ac_objext \
16813 conftest$ac_exeext conftest.$ac_ext
16814 LIBS=$ac_check_lib_save_LIBS
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16818 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16820 else
16822 lt_cv_dlopen="dyld"
16823 lt_cv_dlopen_libs=
16824 lt_cv_dlopen_self=yes
16831 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16832 if test "x$ac_cv_func_shl_load" = x""yes; then :
16833 lt_cv_dlopen="shl_load"
16834 else
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16836 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16837 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16840 ac_check_lib_save_LIBS=$LIBS
16841 LIBS="-ldld $LIBS"
16842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h. */
16845 /* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
16848 #ifdef __cplusplus
16849 extern "C"
16850 #endif
16851 char shl_load ();
16853 main ()
16855 return shl_load ();
16857 return 0;
16859 _ACEOF
16860 if ac_fn_c_try_link "$LINENO"; then :
16861 ac_cv_lib_dld_shl_load=yes
16862 else
16863 ac_cv_lib_dld_shl_load=no
16865 rm -f core conftest.err conftest.$ac_objext \
16866 conftest$ac_exeext conftest.$ac_ext
16867 LIBS=$ac_check_lib_save_LIBS
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16870 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16871 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16873 else
16874 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16875 if test "x$ac_cv_func_dlopen" = x""yes; then :
16876 lt_cv_dlopen="dlopen"
16877 else
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16880 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16881 $as_echo_n "(cached) " >&6
16882 else
16883 ac_check_lib_save_LIBS=$LIBS
16884 LIBS="-ldl $LIBS"
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16888 /* Override any GCC internal prototype to avoid an error.
16889 Use char because int might match the return type of a GCC
16890 builtin and then its argument prototype would still apply. */
16891 #ifdef __cplusplus
16892 extern "C"
16893 #endif
16894 char dlopen ();
16896 main ()
16898 return dlopen ();
16900 return 0;
16902 _ACEOF
16903 if ac_fn_c_try_link "$LINENO"; then :
16904 ac_cv_lib_dl_dlopen=yes
16905 else
16906 ac_cv_lib_dl_dlopen=no
16908 rm -f core conftest.err conftest.$ac_objext \
16909 conftest$ac_exeext conftest.$ac_ext
16910 LIBS=$ac_check_lib_save_LIBS
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16914 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16916 else
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16918 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16919 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16920 $as_echo_n "(cached) " >&6
16921 else
16922 ac_check_lib_save_LIBS=$LIBS
16923 LIBS="-lsvld $LIBS"
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925 /* end confdefs.h. */
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char dlopen ();
16935 main ()
16937 return dlopen ();
16939 return 0;
16941 _ACEOF
16942 if ac_fn_c_try_link "$LINENO"; then :
16943 ac_cv_lib_svld_dlopen=yes
16944 else
16945 ac_cv_lib_svld_dlopen=no
16947 rm -f core conftest.err conftest.$ac_objext \
16948 conftest$ac_exeext conftest.$ac_ext
16949 LIBS=$ac_check_lib_save_LIBS
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16952 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16953 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
16954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16955 else
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16957 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16958 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961 ac_check_lib_save_LIBS=$LIBS
16962 LIBS="-ldld $LIBS"
16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16969 #ifdef __cplusplus
16970 extern "C"
16971 #endif
16972 char dld_link ();
16974 main ()
16976 return dld_link ();
16978 return 0;
16980 _ACEOF
16981 if ac_fn_c_try_link "$LINENO"; then :
16982 ac_cv_lib_dld_dld_link=yes
16983 else
16984 ac_cv_lib_dld_dld_link=no
16986 rm -f core conftest.err conftest.$ac_objext \
16987 conftest$ac_exeext conftest.$ac_ext
16988 LIBS=$ac_check_lib_save_LIBS
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16991 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16992 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16993 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17012 esac
17014 if test "x$lt_cv_dlopen" != xno; then
17015 enable_dlopen=yes
17016 else
17017 enable_dlopen=no
17020 case $lt_cv_dlopen in
17021 dlopen)
17022 save_CPPFLAGS="$CPPFLAGS"
17023 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17025 save_LDFLAGS="$LDFLAGS"
17026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17028 save_LIBS="$LIBS"
17029 LIBS="$lt_cv_dlopen_libs $LIBS"
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17032 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17033 if test "${lt_cv_dlopen_self+set}" = set; then :
17034 $as_echo_n "(cached) " >&6
17035 else
17036 if test "$cross_compiling" = yes; then :
17037 lt_cv_dlopen_self=cross
17038 else
17039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17040 lt_status=$lt_dlunknown
17041 cat > conftest.$ac_ext <<_LT_EOF
17042 #line 17042 "configure"
17043 #include "confdefs.h"
17045 #if HAVE_DLFCN_H
17046 #include <dlfcn.h>
17047 #endif
17049 #include <stdio.h>
17051 #ifdef RTLD_GLOBAL
17052 # define LT_DLGLOBAL RTLD_GLOBAL
17053 #else
17054 # ifdef DL_GLOBAL
17055 # define LT_DLGLOBAL DL_GLOBAL
17056 # else
17057 # define LT_DLGLOBAL 0
17058 # endif
17059 #endif
17061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17062 find out it does not work in some platform. */
17063 #ifndef LT_DLLAZY_OR_NOW
17064 # ifdef RTLD_LAZY
17065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17066 # else
17067 # ifdef DL_LAZY
17068 # define LT_DLLAZY_OR_NOW DL_LAZY
17069 # else
17070 # ifdef RTLD_NOW
17071 # define LT_DLLAZY_OR_NOW RTLD_NOW
17072 # else
17073 # ifdef DL_NOW
17074 # define LT_DLLAZY_OR_NOW DL_NOW
17075 # else
17076 # define LT_DLLAZY_OR_NOW 0
17077 # endif
17078 # endif
17079 # endif
17080 # endif
17081 #endif
17083 /* When -fvisbility=hidden is used, assume the code has been annotated
17084 correspondingly for the symbols needed. */
17085 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17086 void fnord () __attribute__((visibility("default")));
17087 #endif
17089 void fnord () { int i=42; }
17090 int main ()
17092 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17093 int status = $lt_dlunknown;
17095 if (self)
17097 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17098 else
17100 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17101 else puts (dlerror ());
17103 /* dlclose (self); */
17105 else
17106 puts (dlerror ());
17108 return status;
17110 _LT_EOF
17111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17112 (eval $ac_link) 2>&5
17113 ac_status=$?
17114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17116 (./conftest; exit; ) >&5 2>/dev/null
17117 lt_status=$?
17118 case x$lt_status in
17119 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17120 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17121 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17122 esac
17123 else :
17124 # compilation failed
17125 lt_cv_dlopen_self=no
17128 rm -fr conftest*
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17133 $as_echo "$lt_cv_dlopen_self" >&6; }
17135 if test "x$lt_cv_dlopen_self" = xyes; then
17136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17139 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17140 $as_echo_n "(cached) " >&6
17141 else
17142 if test "$cross_compiling" = yes; then :
17143 lt_cv_dlopen_self_static=cross
17144 else
17145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17146 lt_status=$lt_dlunknown
17147 cat > conftest.$ac_ext <<_LT_EOF
17148 #line 17148 "configure"
17149 #include "confdefs.h"
17151 #if HAVE_DLFCN_H
17152 #include <dlfcn.h>
17153 #endif
17155 #include <stdio.h>
17157 #ifdef RTLD_GLOBAL
17158 # define LT_DLGLOBAL RTLD_GLOBAL
17159 #else
17160 # ifdef DL_GLOBAL
17161 # define LT_DLGLOBAL DL_GLOBAL
17162 # else
17163 # define LT_DLGLOBAL 0
17164 # endif
17165 #endif
17167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17168 find out it does not work in some platform. */
17169 #ifndef LT_DLLAZY_OR_NOW
17170 # ifdef RTLD_LAZY
17171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17172 # else
17173 # ifdef DL_LAZY
17174 # define LT_DLLAZY_OR_NOW DL_LAZY
17175 # else
17176 # ifdef RTLD_NOW
17177 # define LT_DLLAZY_OR_NOW RTLD_NOW
17178 # else
17179 # ifdef DL_NOW
17180 # define LT_DLLAZY_OR_NOW DL_NOW
17181 # else
17182 # define LT_DLLAZY_OR_NOW 0
17183 # endif
17184 # endif
17185 # endif
17186 # endif
17187 #endif
17189 /* When -fvisbility=hidden is used, assume the code has been annotated
17190 correspondingly for the symbols needed. */
17191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17192 void fnord () __attribute__((visibility("default")));
17193 #endif
17195 void fnord () { int i=42; }
17196 int main ()
17198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17199 int status = $lt_dlunknown;
17201 if (self)
17203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17204 else
17206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17207 else puts (dlerror ());
17209 /* dlclose (self); */
17211 else
17212 puts (dlerror ());
17214 return status;
17216 _LT_EOF
17217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17218 (eval $ac_link) 2>&5
17219 ac_status=$?
17220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17222 (./conftest; exit; ) >&5 2>/dev/null
17223 lt_status=$?
17224 case x$lt_status in
17225 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17226 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17227 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17228 esac
17229 else :
17230 # compilation failed
17231 lt_cv_dlopen_self_static=no
17234 rm -fr conftest*
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17239 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17242 CPPFLAGS="$save_CPPFLAGS"
17243 LDFLAGS="$save_LDFLAGS"
17244 LIBS="$save_LIBS"
17246 esac
17248 case $lt_cv_dlopen_self in
17249 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17250 *) enable_dlopen_self=unknown ;;
17251 esac
17253 case $lt_cv_dlopen_self_static in
17254 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17255 *) enable_dlopen_self_static=unknown ;;
17256 esac
17275 striplib=
17276 old_striplib=
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17278 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17279 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17280 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17281 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17283 $as_echo "yes" >&6; }
17284 else
17285 # FIXME - insert some real tests, host_os isn't really good enough
17286 case $host_os in
17287 darwin*)
17288 if test -n "$STRIP" ; then
17289 striplib="$STRIP -x"
17290 old_striplib="$STRIP -S"
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17292 $as_echo "yes" >&6; }
17293 else
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17295 $as_echo "no" >&6; }
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17302 esac
17316 # Report which library types will actually be built
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17318 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17320 $as_echo "$can_build_shared" >&6; }
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17323 $as_echo_n "checking whether to build shared libraries... " >&6; }
17324 test "$can_build_shared" = "no" && enable_shared=no
17326 # On AIX, shared libraries and static libraries use the same namespace, and
17327 # are all built from PIC.
17328 case $host_os in
17329 aix3*)
17330 test "$enable_shared" = yes && enable_static=no
17331 if test -n "$RANLIB"; then
17332 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17333 postinstall_cmds='$RANLIB $lib'
17337 aix[4-9]*)
17338 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17339 test "$enable_shared" = yes && enable_static=no
17342 esac
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17344 $as_echo "$enable_shared" >&6; }
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17347 $as_echo_n "checking whether to build static libraries... " >&6; }
17348 # Make sure either enable_shared or enable_static is yes.
17349 test "$enable_shared" = yes || enable_static=yes
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17351 $as_echo "$enable_static" >&6; }
17357 ac_ext=c
17358 ac_cpp='$CPP $CPPFLAGS'
17359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17363 CC="$lt_save_CC"
17365 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17366 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17367 (test "X$CXX" != "Xg++"))) ; then
17368 ac_ext=cpp
17369 ac_cpp='$CXXCPP $CPPFLAGS'
17370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17374 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17375 if test -z "$CXXCPP"; then
17376 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17377 $as_echo_n "(cached) " >&6
17378 else
17379 # Double quotes because CXXCPP needs to be expanded
17380 for CXXCPP in "$CXX -E" "/lib/cpp"
17382 ac_preproc_ok=false
17383 for ac_cxx_preproc_warn_flag in '' yes
17385 # Use a header file that comes with gcc, so configuring glibc
17386 # with a fresh cross-compiler works.
17387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388 # <limits.h> exists even on freestanding compilers.
17389 # On the NeXT, cc -E runs the code through the compiler's parser,
17390 # not just through cpp. "Syntax error" is here to catch this case.
17391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17393 #ifdef __STDC__
17394 # include <limits.h>
17395 #else
17396 # include <assert.h>
17397 #endif
17398 Syntax error
17399 _ACEOF
17400 if ac_fn_cxx_try_cpp "$LINENO"; then :
17402 else
17403 # Broken: fails on valid input.
17404 continue
17406 rm -f conftest.err conftest.$ac_ext
17408 # OK, works on sane cases. Now check whether nonexistent headers
17409 # can be detected and how.
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17412 #include <ac_nonexistent.h>
17413 _ACEOF
17414 if ac_fn_cxx_try_cpp "$LINENO"; then :
17415 # Broken: success on invalid input.
17416 continue
17417 else
17418 # Passes both tests.
17419 ac_preproc_ok=:
17420 break
17422 rm -f conftest.err conftest.$ac_ext
17424 done
17425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17426 rm -f conftest.err conftest.$ac_ext
17427 if $ac_preproc_ok; then :
17428 break
17431 done
17432 ac_cv_prog_CXXCPP=$CXXCPP
17435 CXXCPP=$ac_cv_prog_CXXCPP
17436 else
17437 ac_cv_prog_CXXCPP=$CXXCPP
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17440 $as_echo "$CXXCPP" >&6; }
17441 ac_preproc_ok=false
17442 for ac_cxx_preproc_warn_flag in '' yes
17444 # Use a header file that comes with gcc, so configuring glibc
17445 # with a fresh cross-compiler works.
17446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17447 # <limits.h> exists even on freestanding compilers.
17448 # On the NeXT, cc -E runs the code through the compiler's parser,
17449 # not just through cpp. "Syntax error" is here to catch this case.
17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17451 /* end confdefs.h. */
17452 #ifdef __STDC__
17453 # include <limits.h>
17454 #else
17455 # include <assert.h>
17456 #endif
17457 Syntax error
17458 _ACEOF
17459 if ac_fn_cxx_try_cpp "$LINENO"; then :
17461 else
17462 # Broken: fails on valid input.
17463 continue
17465 rm -f conftest.err conftest.$ac_ext
17467 # OK, works on sane cases. Now check whether nonexistent headers
17468 # can be detected and how.
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 #include <ac_nonexistent.h>
17472 _ACEOF
17473 if ac_fn_cxx_try_cpp "$LINENO"; then :
17474 # Broken: success on invalid input.
17475 continue
17476 else
17477 # Passes both tests.
17478 ac_preproc_ok=:
17479 break
17481 rm -f conftest.err conftest.$ac_ext
17483 done
17484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17485 rm -f conftest.err conftest.$ac_ext
17486 if $ac_preproc_ok; then :
17488 else
17489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17491 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17492 See \`config.log' for more details." "$LINENO" 5; }
17495 ac_ext=c
17496 ac_cpp='$CPP $CPPFLAGS'
17497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17501 else
17502 _lt_caught_CXX_error=yes
17505 ac_ext=cpp
17506 ac_cpp='$CXXCPP $CPPFLAGS'
17507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17511 archive_cmds_need_lc_CXX=no
17512 allow_undefined_flag_CXX=
17513 always_export_symbols_CXX=no
17514 archive_expsym_cmds_CXX=
17515 compiler_needs_object_CXX=no
17516 export_dynamic_flag_spec_CXX=
17517 hardcode_direct_CXX=no
17518 hardcode_direct_absolute_CXX=no
17519 hardcode_libdir_flag_spec_CXX=
17520 hardcode_libdir_flag_spec_ld_CXX=
17521 hardcode_libdir_separator_CXX=
17522 hardcode_minus_L_CXX=no
17523 hardcode_shlibpath_var_CXX=unsupported
17524 hardcode_automatic_CXX=no
17525 inherit_rpath_CXX=no
17526 module_cmds_CXX=
17527 module_expsym_cmds_CXX=
17528 link_all_deplibs_CXX=unknown
17529 old_archive_cmds_CXX=$old_archive_cmds
17530 reload_flag_CXX=$reload_flag
17531 reload_cmds_CXX=$reload_cmds
17532 no_undefined_flag_CXX=
17533 whole_archive_flag_spec_CXX=
17534 enable_shared_with_static_runtimes_CXX=no
17536 # Source file extension for C++ test sources.
17537 ac_ext=cpp
17539 # Object file extension for compiled C++ test sources.
17540 objext=o
17541 objext_CXX=$objext
17543 # No sense in running all these tests if we already determined that
17544 # the CXX compiler isn't working. Some variables (like enable_shared)
17545 # are currently assumed to apply to all compilers on this platform,
17546 # and will be corrupted by setting them based on a non-working compiler.
17547 if test "$_lt_caught_CXX_error" != yes; then
17548 # Code to be used in simple compile tests
17549 lt_simple_compile_test_code="int some_variable = 0;"
17551 # Code to be used in simple link tests
17552 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17554 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17561 # If no C compiler was specified, use CC.
17562 LTCC=${LTCC-"$CC"}
17564 # If no C compiler flags were specified, use CFLAGS.
17565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17567 # Allow CC to be a program name with arguments.
17568 compiler=$CC
17571 # save warnings/boilerplate of simple test code
17572 ac_outfile=conftest.$ac_objext
17573 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17574 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17575 _lt_compiler_boilerplate=`cat conftest.err`
17576 $RM conftest*
17578 ac_outfile=conftest.$ac_objext
17579 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17580 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17581 _lt_linker_boilerplate=`cat conftest.err`
17582 $RM -r conftest*
17585 # Allow CC to be a program name with arguments.
17586 lt_save_CC=$CC
17587 lt_save_LD=$LD
17588 lt_save_GCC=$GCC
17589 GCC=$GXX
17590 lt_save_with_gnu_ld=$with_gnu_ld
17591 lt_save_path_LD=$lt_cv_path_LD
17592 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17593 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17594 else
17595 $as_unset lt_cv_prog_gnu_ld
17597 if test -n "${lt_cv_path_LDCXX+set}"; then
17598 lt_cv_path_LD=$lt_cv_path_LDCXX
17599 else
17600 $as_unset lt_cv_path_LD
17602 test -z "${LDCXX+set}" || LD=$LDCXX
17603 CC=${CXX-"c++"}
17604 compiler=$CC
17605 compiler_CXX=$CC
17606 for cc_temp in $compiler""; do
17607 case $cc_temp in
17608 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17609 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17610 \-*) ;;
17611 *) break;;
17612 esac
17613 done
17614 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17617 if test -n "$compiler"; then
17618 # We don't want -fno-exception when compiling C++ code, so set the
17619 # no_builtin_flag separately
17620 if test "$GXX" = yes; then
17621 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17622 else
17623 lt_prog_compiler_no_builtin_flag_CXX=
17626 if test "$GXX" = yes; then
17627 # Set up default GNU C++ configuration
17631 # Check whether --with-gnu-ld was given.
17632 if test "${with_gnu_ld+set}" = set; then :
17633 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17634 else
17635 with_gnu_ld=no
17638 ac_prog=ld
17639 if test "$GCC" = yes; then
17640 # Check if gcc -print-prog-name=ld gives a path.
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17642 $as_echo_n "checking for ld used by $CC... " >&6; }
17643 case $host in
17644 *-*-mingw*)
17645 # gcc leaves a trailing carriage return which upsets mingw
17646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17649 esac
17650 case $ac_prog in
17651 # Accept absolute paths.
17652 [\\/]* | ?:[\\/]*)
17653 re_direlt='/[^/][^/]*/\.\./'
17654 # Canonicalize the pathname of ld
17655 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17656 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17657 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17658 done
17659 test -z "$LD" && LD="$ac_prog"
17662 # If it fails, then pretend we aren't using GCC.
17663 ac_prog=ld
17666 # If it is relative, then search for the first ld in PATH.
17667 with_gnu_ld=unknown
17669 esac
17670 elif test "$with_gnu_ld" = yes; then
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17672 $as_echo_n "checking for GNU ld... " >&6; }
17673 else
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17675 $as_echo_n "checking for non-GNU ld... " >&6; }
17677 if test "${lt_cv_path_LD+set}" = set; then :
17678 $as_echo_n "(cached) " >&6
17679 else
17680 if test -z "$LD"; then
17681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17682 for ac_dir in $PATH; do
17683 IFS="$lt_save_ifs"
17684 test -z "$ac_dir" && ac_dir=.
17685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17686 lt_cv_path_LD="$ac_dir/$ac_prog"
17687 # Check to see if the program is GNU ld. I'd rather use --version,
17688 # but apparently some variants of GNU ld only accept -v.
17689 # Break only if it was the GNU/non-GNU ld that we prefer.
17690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17691 *GNU* | *'with BFD'*)
17692 test "$with_gnu_ld" != no && break
17695 test "$with_gnu_ld" != yes && break
17697 esac
17699 done
17700 IFS="$lt_save_ifs"
17701 else
17702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17706 LD="$lt_cv_path_LD"
17707 if test -n "$LD"; then
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17709 $as_echo "$LD" >&6; }
17710 else
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17712 $as_echo "no" >&6; }
17714 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17716 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17717 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17718 $as_echo_n "(cached) " >&6
17719 else
17720 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17721 case `$LD -v 2>&1 </dev/null` in
17722 *GNU* | *'with BFD'*)
17723 lt_cv_prog_gnu_ld=yes
17726 lt_cv_prog_gnu_ld=no
17728 esac
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17731 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17732 with_gnu_ld=$lt_cv_prog_gnu_ld
17740 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17741 # archiving commands below assume that GNU ld is being used.
17742 if test "$with_gnu_ld" = yes; then
17743 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17744 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'
17746 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17749 # If archive_cmds runs LD, not CC, wlarc should be empty
17750 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17751 # investigate it a little bit more. (MM)
17752 wlarc='${wl}'
17754 # ancient GNU ld didn't support --whole-archive et. al.
17755 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17756 $GREP 'no-whole-archive' > /dev/null; then
17757 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17758 else
17759 whole_archive_flag_spec_CXX=
17761 else
17762 with_gnu_ld=no
17763 wlarc=
17765 # A generic and very simple default shared library creation
17766 # command for GNU C++ for the case where it uses the native
17767 # linker, instead of GNU ld. If possible, this setting should
17768 # overridden to take advantage of the native linker features on
17769 # the platform it is being used on.
17770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17773 # Commands to make compiler produce verbose output that lists
17774 # what "hidden" libraries, object files and flags are used when
17775 # linking a shared library.
17776 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17778 else
17779 GXX=no
17780 with_gnu_ld=no
17781 wlarc=
17784 # PORTME: fill in a description of your system's C++ link characteristics
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17786 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17787 ld_shlibs_CXX=yes
17788 case $host_os in
17789 aix3*)
17790 # FIXME: insert proper C++ library support
17791 ld_shlibs_CXX=no
17793 aix[4-9]*)
17794 if test "$host_cpu" = ia64; then
17795 # On IA64, the linker does run time linking by default, so we don't
17796 # have to do anything special.
17797 aix_use_runtimelinking=no
17798 exp_sym_flag='-Bexport'
17799 no_entry_flag=""
17800 else
17801 aix_use_runtimelinking=no
17803 # Test if we are trying to use run time linking or normal
17804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17805 # need to do runtime linking.
17806 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17807 for ld_flag in $LDFLAGS; do
17808 case $ld_flag in
17809 *-brtl*)
17810 aix_use_runtimelinking=yes
17811 break
17813 esac
17814 done
17816 esac
17818 exp_sym_flag='-bexport'
17819 no_entry_flag='-bnoentry'
17822 # When large executables or shared objects are built, AIX ld can
17823 # have problems creating the table of contents. If linking a library
17824 # or program results in "error TOC overflow" add -mminimal-toc to
17825 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17826 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17828 archive_cmds_CXX=''
17829 hardcode_direct_CXX=yes
17830 hardcode_direct_absolute_CXX=yes
17831 hardcode_libdir_separator_CXX=':'
17832 link_all_deplibs_CXX=yes
17833 file_list_spec_CXX='${wl}-f,'
17835 if test "$GXX" = yes; then
17836 case $host_os in aix4.[012]|aix4.[012].*)
17837 # We only want to do this on AIX 4.2 and lower, the check
17838 # below for broken collect2 doesn't work under 4.3+
17839 collect2name=`${CC} -print-prog-name=collect2`
17840 if test -f "$collect2name" &&
17841 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17842 then
17843 # We have reworked collect2
17845 else
17846 # We have old collect2
17847 hardcode_direct_CXX=unsupported
17848 # It fails to find uninstalled libraries when the uninstalled
17849 # path is not listed in the libpath. Setting hardcode_minus_L
17850 # to unsupported forces relinking
17851 hardcode_minus_L_CXX=yes
17852 hardcode_libdir_flag_spec_CXX='-L$libdir'
17853 hardcode_libdir_separator_CXX=
17855 esac
17856 shared_flag='-shared'
17857 if test "$aix_use_runtimelinking" = yes; then
17858 shared_flag="$shared_flag "'${wl}-G'
17860 else
17861 # not using gcc
17862 if test "$host_cpu" = ia64; then
17863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17864 # chokes on -Wl,-G. The following line is correct:
17865 shared_flag='-G'
17866 else
17867 if test "$aix_use_runtimelinking" = yes; then
17868 shared_flag='${wl}-G'
17869 else
17870 shared_flag='${wl}-bM:SRE'
17875 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17876 # It seems that -bexpall does not export symbols beginning with
17877 # underscore (_), so it is better to generate a list of symbols to
17878 # export.
17879 always_export_symbols_CXX=yes
17880 if test "$aix_use_runtimelinking" = yes; then
17881 # Warning - without using the other runtime loading flags (-brtl),
17882 # -berok will link without error, but may produce a broken library.
17883 allow_undefined_flag_CXX='-berok'
17884 # Determine the default libpath from the value encoded in an empty
17885 # executable.
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887 /* end confdefs.h. */
17890 main ()
17894 return 0;
17896 _ACEOF
17897 if ac_fn_cxx_try_link "$LINENO"; then :
17899 lt_aix_libpath_sed='
17900 /Import File Strings/,/^$/ {
17901 /^0/ {
17902 s/^0 *\(.*\)$/\1/
17906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17907 # Check for a 64-bit object if we didn't find anything.
17908 if test -z "$aix_libpath"; then
17909 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17912 rm -f core conftest.err conftest.$ac_objext \
17913 conftest$ac_exeext conftest.$ac_ext
17914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17916 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17918 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"
17919 else
17920 if test "$host_cpu" = ia64; then
17921 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17922 allow_undefined_flag_CXX="-z nodefs"
17923 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"
17924 else
17925 # Determine the default libpath from the value encoded in an
17926 # empty executable.
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17931 main ()
17935 return 0;
17937 _ACEOF
17938 if ac_fn_cxx_try_link "$LINENO"; then :
17940 lt_aix_libpath_sed='
17941 /Import File Strings/,/^$/ {
17942 /^0/ {
17943 s/^0 *\(.*\)$/\1/
17947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17948 # Check for a 64-bit object if we didn't find anything.
17949 if test -z "$aix_libpath"; then
17950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17953 rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17957 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17958 # Warning - without using the other run time loading flags,
17959 # -berok will link without error, but may produce a broken library.
17960 no_undefined_flag_CXX=' ${wl}-bernotok'
17961 allow_undefined_flag_CXX=' ${wl}-berok'
17962 if test "$with_gnu_ld" = yes; then
17963 # We only use this code for GNU lds that support --whole-archive.
17964 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17965 else
17966 # Exported symbols can be pulled into shared objects from archives
17967 whole_archive_flag_spec_CXX='$convenience'
17969 archive_cmds_need_lc_CXX=yes
17970 # This is similar to how AIX traditionally builds its shared
17971 # libraries.
17972 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'
17977 beos*)
17978 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17979 allow_undefined_flag_CXX=unsupported
17980 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17981 # support --undefined. This deserves some investigation. FIXME
17982 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17983 else
17984 ld_shlibs_CXX=no
17988 chorus*)
17989 case $cc_basename in
17991 # FIXME: insert proper C++ library support
17992 ld_shlibs_CXX=no
17994 esac
17997 cygwin* | mingw* | pw32* | cegcc*)
17998 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17999 # as there is no search path for DLLs.
18000 hardcode_libdir_flag_spec_CXX='-L$libdir'
18001 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18002 allow_undefined_flag_CXX=unsupported
18003 always_export_symbols_CXX=no
18004 enable_shared_with_static_runtimes_CXX=yes
18006 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18007 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'
18008 # If the export-symbols file already is a .def file (1st line
18009 # is EXPORTS), use it as is; otherwise, prepend...
18010 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18011 cp $export_symbols $output_objdir/$soname.def;
18012 else
18013 echo EXPORTS > $output_objdir/$soname.def;
18014 cat $export_symbols >> $output_objdir/$soname.def;
18016 $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'
18017 else
18018 ld_shlibs_CXX=no
18021 darwin* | rhapsody*)
18024 archive_cmds_need_lc_CXX=no
18025 hardcode_direct_CXX=no
18026 hardcode_automatic_CXX=yes
18027 hardcode_shlibpath_var_CXX=unsupported
18028 if test "$lt_cv_ld_force_load" = "yes"; then
18029 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\"`'
18030 else
18031 whole_archive_flag_spec_CXX=''
18033 link_all_deplibs_CXX=yes
18034 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18035 case $cc_basename in
18036 ifort*) _lt_dar_can_shared=yes ;;
18037 *) _lt_dar_can_shared=$GCC ;;
18038 esac
18039 if test "$_lt_dar_can_shared" = "yes"; then
18040 output_verbose_link_cmd=func_echo_all
18041 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}"
18042 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18043 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}"
18044 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}"
18045 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18046 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}"
18047 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}"
18050 else
18051 ld_shlibs_CXX=no
18056 dgux*)
18057 case $cc_basename in
18058 ec++*)
18059 # FIXME: insert proper C++ library support
18060 ld_shlibs_CXX=no
18062 ghcx*)
18063 # Green Hills C++ Compiler
18064 # FIXME: insert proper C++ library support
18065 ld_shlibs_CXX=no
18068 # FIXME: insert proper C++ library support
18069 ld_shlibs_CXX=no
18071 esac
18074 freebsd[12]*)
18075 # C++ shared libraries reported to be fairly broken before
18076 # switch to ELF
18077 ld_shlibs_CXX=no
18080 freebsd-elf*)
18081 archive_cmds_need_lc_CXX=no
18084 freebsd* | dragonfly*)
18085 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18086 # conventions
18087 ld_shlibs_CXX=yes
18090 gnu*)
18093 haiku*)
18094 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18095 link_all_deplibs_CXX=yes
18098 hpux9*)
18099 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18100 hardcode_libdir_separator_CXX=:
18101 export_dynamic_flag_spec_CXX='${wl}-E'
18102 hardcode_direct_CXX=yes
18103 hardcode_minus_L_CXX=yes # Not in the search PATH,
18104 # but as the default
18105 # location of the library.
18107 case $cc_basename in
18108 CC*)
18109 # FIXME: insert proper C++ library support
18110 ld_shlibs_CXX=no
18112 aCC*)
18113 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'
18114 # Commands to make compiler produce verbose output that lists
18115 # what "hidden" libraries, object files and flags are used when
18116 # linking a shared library.
18118 # There doesn't appear to be a way to prevent this compiler from
18119 # explicitly linking system object files so we need to strip them
18120 # from the output so that they don't get included in the library
18121 # dependencies.
18122 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"'
18125 if test "$GXX" = yes; then
18126 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'
18127 else
18128 # FIXME: insert proper C++ library support
18129 ld_shlibs_CXX=no
18132 esac
18135 hpux10*|hpux11*)
18136 if test $with_gnu_ld = no; then
18137 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18138 hardcode_libdir_separator_CXX=:
18140 case $host_cpu in
18141 hppa*64*|ia64*)
18144 export_dynamic_flag_spec_CXX='${wl}-E'
18146 esac
18148 case $host_cpu in
18149 hppa*64*|ia64*)
18150 hardcode_direct_CXX=no
18151 hardcode_shlibpath_var_CXX=no
18154 hardcode_direct_CXX=yes
18155 hardcode_direct_absolute_CXX=yes
18156 hardcode_minus_L_CXX=yes # Not in the search PATH,
18157 # but as the default
18158 # location of the library.
18160 esac
18162 case $cc_basename in
18163 CC*)
18164 # FIXME: insert proper C++ library support
18165 ld_shlibs_CXX=no
18167 aCC*)
18168 case $host_cpu in
18169 hppa*64*)
18170 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18172 ia64*)
18173 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18176 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18178 esac
18179 # Commands to make compiler produce verbose output that lists
18180 # what "hidden" libraries, object files and flags are used when
18181 # linking a shared library.
18183 # There doesn't appear to be a way to prevent this compiler from
18184 # explicitly linking system object files so we need to strip them
18185 # from the output so that they don't get included in the library
18186 # dependencies.
18187 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"'
18190 if test "$GXX" = yes; then
18191 if test $with_gnu_ld = no; then
18192 case $host_cpu in
18193 hppa*64*)
18194 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18196 ia64*)
18197 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18200 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'
18202 esac
18204 else
18205 # FIXME: insert proper C++ library support
18206 ld_shlibs_CXX=no
18209 esac
18212 interix[3-9]*)
18213 hardcode_direct_CXX=no
18214 hardcode_shlibpath_var_CXX=no
18215 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18216 export_dynamic_flag_spec_CXX='${wl}-E'
18217 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18218 # Instead, shared libraries are loaded at an image base (0x10000000 by
18219 # default) and relocated if they conflict, which is a slow very memory
18220 # consuming and fragmenting process. To avoid this, we pick a random,
18221 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18222 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18223 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'
18224 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'
18226 irix5* | irix6*)
18227 case $cc_basename in
18228 CC*)
18229 # SGI C++
18230 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'
18232 # Archives containing C++ object files must be created using
18233 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18234 # necessary to make sure instantiated templates are included
18235 # in the archive.
18236 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18239 if test "$GXX" = yes; then
18240 if test "$with_gnu_ld" = no; then
18241 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'
18242 else
18243 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'
18246 link_all_deplibs_CXX=yes
18248 esac
18249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18250 hardcode_libdir_separator_CXX=:
18251 inherit_rpath_CXX=yes
18254 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18255 case $cc_basename in
18256 KCC*)
18257 # Kuck and Associates, Inc. (KAI) C++ Compiler
18259 # KCC will only create a shared library if the output file
18260 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18261 # to its proper name (with version) after linking.
18262 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'
18263 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'
18264 # Commands to make compiler produce verbose output that lists
18265 # what "hidden" libraries, object files and flags are used when
18266 # linking a shared library.
18268 # There doesn't appear to be a way to prevent this compiler from
18269 # explicitly linking system object files so we need to strip them
18270 # from the output so that they don't get included in the library
18271 # dependencies.
18272 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"'
18274 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18275 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18277 # Archives containing C++ object files must be created using
18278 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18279 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18281 icpc* | ecpc* )
18282 # Intel C++
18283 with_gnu_ld=yes
18284 # version 8.0 and above of icpc choke on multiply defined symbols
18285 # if we add $predep_objects and $postdep_objects, however 7.1 and
18286 # earlier do not add the objects themselves.
18287 case `$CC -V 2>&1` in
18288 *"Version 7."*)
18289 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18290 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'
18292 *) # Version 8.0 or newer
18293 tmp_idyn=
18294 case $host_cpu in
18295 ia64*) tmp_idyn=' -i_dynamic';;
18296 esac
18297 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18298 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'
18300 esac
18301 archive_cmds_need_lc_CXX=no
18302 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18303 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18304 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18306 pgCC* | pgcpp*)
18307 # Portland Group C++ compiler
18308 case `$CC -V` in
18309 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18310 prelink_cmds_CXX='tpldir=Template.dir~
18311 rm -rf $tpldir~
18312 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18313 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18314 old_archive_cmds_CXX='tpldir=Template.dir~
18315 rm -rf $tpldir~
18316 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18317 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18318 $RANLIB $oldlib'
18319 archive_cmds_CXX='tpldir=Template.dir~
18320 rm -rf $tpldir~
18321 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18322 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18323 archive_expsym_cmds_CXX='tpldir=Template.dir~
18324 rm -rf $tpldir~
18325 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18326 $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'
18328 *) # Version 6 and above use weak symbols
18329 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18330 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'
18332 esac
18334 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18335 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18336 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'
18338 cxx*)
18339 # Compaq C++
18340 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18341 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'
18343 runpath_var=LD_RUN_PATH
18344 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18345 hardcode_libdir_separator_CXX=:
18347 # Commands to make compiler produce verbose output that lists
18348 # what "hidden" libraries, object files and flags are used when
18349 # linking a shared library.
18351 # There doesn't appear to be a way to prevent this compiler from
18352 # explicitly linking system object files so we need to strip them
18353 # from the output so that they don't get included in the library
18354 # dependencies.
18355 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'
18357 xl* | mpixl* | bgxl*)
18358 # IBM XL 8.0 on PPC, with GNU ld
18359 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18360 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18361 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18362 if test "x$supports_anon_versioning" = xyes; then
18363 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18365 echo "local: *; };" >> $output_objdir/$libname.ver~
18366 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18370 case `$CC -V 2>&1 | sed 5q` in
18371 *Sun\ C*)
18372 # Sun C++ 5.9
18373 no_undefined_flag_CXX=' -zdefs'
18374 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18375 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'
18376 hardcode_libdir_flag_spec_CXX='-R$libdir'
18377 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'
18378 compiler_needs_object_CXX=yes
18380 # Not sure whether something based on
18381 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18382 # would be better.
18383 output_verbose_link_cmd='func_echo_all'
18385 # Archives containing C++ object files must be created using
18386 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18387 # necessary to make sure instantiated templates are included
18388 # in the archive.
18389 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18391 esac
18393 esac
18396 lynxos*)
18397 # FIXME: insert proper C++ library support
18398 ld_shlibs_CXX=no
18401 m88k*)
18402 # FIXME: insert proper C++ library support
18403 ld_shlibs_CXX=no
18406 mvs*)
18407 case $cc_basename in
18408 cxx*)
18409 # FIXME: insert proper C++ library support
18410 ld_shlibs_CXX=no
18413 # FIXME: insert proper C++ library support
18414 ld_shlibs_CXX=no
18416 esac
18419 netbsd*)
18420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18421 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18422 wlarc=
18423 hardcode_libdir_flag_spec_CXX='-R$libdir'
18424 hardcode_direct_CXX=yes
18425 hardcode_shlibpath_var_CXX=no
18427 # Workaround some broken pre-1.5 toolchains
18428 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18431 *nto* | *qnx*)
18432 ld_shlibs_CXX=yes
18435 openbsd2*)
18436 # C++ shared libraries are fairly broken
18437 ld_shlibs_CXX=no
18440 openbsd*)
18441 if test -f /usr/libexec/ld.so; then
18442 hardcode_direct_CXX=yes
18443 hardcode_shlibpath_var_CXX=no
18444 hardcode_direct_absolute_CXX=yes
18445 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18446 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18447 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18448 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18449 export_dynamic_flag_spec_CXX='${wl}-E'
18450 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18452 output_verbose_link_cmd=func_echo_all
18453 else
18454 ld_shlibs_CXX=no
18458 osf3* | osf4* | osf5*)
18459 case $cc_basename in
18460 KCC*)
18461 # Kuck and Associates, Inc. (KAI) C++ Compiler
18463 # KCC will only create a shared library if the output file
18464 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18465 # to its proper name (with version) after linking.
18466 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'
18468 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18469 hardcode_libdir_separator_CXX=:
18471 # Archives containing C++ object files must be created using
18472 # the KAI C++ compiler.
18473 case $host in
18474 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18475 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18476 esac
18478 RCC*)
18479 # Rational C++ 2.4.1
18480 # FIXME: insert proper C++ library support
18481 ld_shlibs_CXX=no
18483 cxx*)
18484 case $host in
18485 osf3*)
18486 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18487 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'
18488 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18491 allow_undefined_flag_CXX=' -expect_unresolved \*'
18492 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'
18493 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18494 echo "-hidden">> $lib.exp~
18495 $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~
18496 $RM $lib.exp'
18497 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18499 esac
18501 hardcode_libdir_separator_CXX=:
18503 # Commands to make compiler produce verbose output that lists
18504 # what "hidden" libraries, object files and flags are used when
18505 # linking a shared library.
18507 # There doesn't appear to be a way to prevent this compiler from
18508 # explicitly linking system object files so we need to strip them
18509 # from the output so that they don't get included in the library
18510 # dependencies.
18511 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"'
18514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18515 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18516 case $host in
18517 osf3*)
18518 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'
18521 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'
18523 esac
18525 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18526 hardcode_libdir_separator_CXX=:
18528 # Commands to make compiler produce verbose output that lists
18529 # what "hidden" libraries, object files and flags are used when
18530 # linking a shared library.
18531 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18533 else
18534 # FIXME: insert proper C++ library support
18535 ld_shlibs_CXX=no
18538 esac
18541 psos*)
18542 # FIXME: insert proper C++ library support
18543 ld_shlibs_CXX=no
18546 sunos4*)
18547 case $cc_basename in
18548 CC*)
18549 # Sun C++ 4.x
18550 # FIXME: insert proper C++ library support
18551 ld_shlibs_CXX=no
18553 lcc*)
18554 # Lucid
18555 # FIXME: insert proper C++ library support
18556 ld_shlibs_CXX=no
18559 # FIXME: insert proper C++ library support
18560 ld_shlibs_CXX=no
18562 esac
18565 solaris*)
18566 case $cc_basename in
18567 CC*)
18568 # Sun C++ 4.2, 5.x and Centerline C++
18569 archive_cmds_need_lc_CXX=yes
18570 no_undefined_flag_CXX=' -zdefs'
18571 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18572 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18573 $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'
18575 hardcode_libdir_flag_spec_CXX='-R$libdir'
18576 hardcode_shlibpath_var_CXX=no
18577 case $host_os in
18578 solaris2.[0-5] | solaris2.[0-5].*) ;;
18580 # The compiler driver will combine and reorder linker options,
18581 # but understands `-z linker_flag'.
18582 # Supported since Solaris 2.6 (maybe 2.5.1?)
18583 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18585 esac
18586 link_all_deplibs_CXX=yes
18588 output_verbose_link_cmd='func_echo_all'
18590 # Archives containing C++ object files must be created using
18591 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18592 # necessary to make sure instantiated templates are included
18593 # in the archive.
18594 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18596 gcx*)
18597 # Green Hills C++ Compiler
18598 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18600 # The C++ compiler must be used to create the archive.
18601 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18604 # GNU C++ compiler with Solaris linker
18605 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18606 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18607 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18608 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18609 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18610 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18612 # Commands to make compiler produce verbose output that lists
18613 # what "hidden" libraries, object files and flags are used when
18614 # linking a shared library.
18615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18616 else
18617 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18618 # platform.
18619 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18620 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18621 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18623 # Commands to make compiler produce verbose output that lists
18624 # what "hidden" libraries, object files and flags are used when
18625 # linking a shared library.
18626 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18629 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18630 case $host_os in
18631 solaris2.[0-5] | solaris2.[0-5].*) ;;
18633 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18635 esac
18638 esac
18641 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18642 no_undefined_flag_CXX='${wl}-z,text'
18643 archive_cmds_need_lc_CXX=no
18644 hardcode_shlibpath_var_CXX=no
18645 runpath_var='LD_RUN_PATH'
18647 case $cc_basename in
18648 CC*)
18649 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18650 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18653 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18654 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18656 esac
18659 sysv5* | sco3.2v5* | sco5v6*)
18660 # Note: We can NOT use -z defs as we might desire, because we do not
18661 # link with -lc, and that would cause any symbols used from libc to
18662 # always be unresolved, which means just about no library would
18663 # ever link correctly. If we're not using GNU ld we use -z text
18664 # though, which does catch some bad symbols but isn't as heavy-handed
18665 # as -z defs.
18666 no_undefined_flag_CXX='${wl}-z,text'
18667 allow_undefined_flag_CXX='${wl}-z,nodefs'
18668 archive_cmds_need_lc_CXX=no
18669 hardcode_shlibpath_var_CXX=no
18670 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18671 hardcode_libdir_separator_CXX=':'
18672 link_all_deplibs_CXX=yes
18673 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18674 runpath_var='LD_RUN_PATH'
18676 case $cc_basename in
18677 CC*)
18678 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18679 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18680 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18681 '"$old_archive_cmds_CXX"
18682 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18683 '"$reload_cmds_CXX"
18686 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18687 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18689 esac
18692 tandem*)
18693 case $cc_basename in
18694 NCC*)
18695 # NonStop-UX NCC 3.20
18696 # FIXME: insert proper C++ library support
18697 ld_shlibs_CXX=no
18700 # FIXME: insert proper C++ library support
18701 ld_shlibs_CXX=no
18703 esac
18706 vxworks*)
18707 # FIXME: insert proper C++ library support
18708 ld_shlibs_CXX=no
18712 # FIXME: insert proper C++ library support
18713 ld_shlibs_CXX=no
18715 esac
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18718 $as_echo "$ld_shlibs_CXX" >&6; }
18719 test "$ld_shlibs_CXX" = no && can_build_shared=no
18721 GCC_CXX="$GXX"
18722 LD_CXX="$LD"
18724 ## CAVEAT EMPTOR:
18725 ## There is no encapsulation within the following macros, do not change
18726 ## the running order or otherwise move them around unless you know exactly
18727 ## what you are doing...
18728 # Dependencies to place before and after the object being linked:
18729 predep_objects_CXX=
18730 postdep_objects_CXX=
18731 predeps_CXX=
18732 postdeps_CXX=
18733 compiler_lib_search_path_CXX=
18735 cat > conftest.$ac_ext <<_LT_EOF
18736 class Foo
18738 public:
18739 Foo (void) { a = 0; }
18740 private:
18741 int a;
18743 _LT_EOF
18745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18746 (eval $ac_compile) 2>&5
18747 ac_status=$?
18748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18749 test $ac_status = 0; }; then
18750 # Parse the compiler output and extract the necessary
18751 # objects, libraries and library flags.
18753 # Sentinel used to keep track of whether or not we are before
18754 # the conftest object file.
18755 pre_test_object_deps_done=no
18757 for p in `eval "$output_verbose_link_cmd"`; do
18758 case $p in
18760 -L* | -R* | -l*)
18761 # Some compilers place space between "-{L,R}" and the path.
18762 # Remove the space.
18763 if test $p = "-L" ||
18764 test $p = "-R"; then
18765 prev=$p
18766 continue
18767 else
18768 prev=
18771 if test "$pre_test_object_deps_done" = no; then
18772 case $p in
18773 -L* | -R*)
18774 # Internal compiler library paths should come after those
18775 # provided the user. The postdeps already come after the
18776 # user supplied libs so there is no need to process them.
18777 if test -z "$compiler_lib_search_path_CXX"; then
18778 compiler_lib_search_path_CXX="${prev}${p}"
18779 else
18780 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18783 # The "-l" case would never come before the object being
18784 # linked, so don't bother handling this case.
18785 esac
18786 else
18787 if test -z "$postdeps_CXX"; then
18788 postdeps_CXX="${prev}${p}"
18789 else
18790 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18795 *.$objext)
18796 # This assumes that the test object file only shows up
18797 # once in the compiler output.
18798 if test "$p" = "conftest.$objext"; then
18799 pre_test_object_deps_done=yes
18800 continue
18803 if test "$pre_test_object_deps_done" = no; then
18804 if test -z "$predep_objects_CXX"; then
18805 predep_objects_CXX="$p"
18806 else
18807 predep_objects_CXX="$predep_objects_CXX $p"
18809 else
18810 if test -z "$postdep_objects_CXX"; then
18811 postdep_objects_CXX="$p"
18812 else
18813 postdep_objects_CXX="$postdep_objects_CXX $p"
18818 *) ;; # Ignore the rest.
18820 esac
18821 done
18823 # Clean up.
18824 rm -f a.out a.exe
18825 else
18826 echo "libtool.m4: error: problem compiling CXX test program"
18829 $RM -f confest.$objext
18831 # PORTME: override above test on systems where it is broken
18832 case $host_os in
18833 interix[3-9]*)
18834 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18835 # hack all around it, let's just trust "g++" to DTRT.
18836 predep_objects_CXX=
18837 postdep_objects_CXX=
18838 postdeps_CXX=
18841 linux*)
18842 case `$CC -V 2>&1 | sed 5q` in
18843 *Sun\ C*)
18844 # Sun C++ 5.9
18846 # The more standards-conforming stlport4 library is
18847 # incompatible with the Cstd library. Avoid specifying
18848 # it if it's in CXXFLAGS. Ignore libCrun as
18849 # -library=stlport4 depends on it.
18850 case " $CXX $CXXFLAGS " in
18851 *" -library=stlport4 "*)
18852 solaris_use_stlport4=yes
18854 esac
18856 if test "$solaris_use_stlport4" != yes; then
18857 postdeps_CXX='-library=Cstd -library=Crun'
18860 esac
18863 solaris*)
18864 case $cc_basename in
18865 CC*)
18866 # The more standards-conforming stlport4 library is
18867 # incompatible with the Cstd library. Avoid specifying
18868 # it if it's in CXXFLAGS. Ignore libCrun as
18869 # -library=stlport4 depends on it.
18870 case " $CXX $CXXFLAGS " in
18871 *" -library=stlport4 "*)
18872 solaris_use_stlport4=yes
18874 esac
18876 # Adding this requires a known-good setup of shared libraries for
18877 # Sun compiler versions before 5.6, else PIC objects from an old
18878 # archive will be linked into the output, leading to subtle bugs.
18879 if test "$solaris_use_stlport4" != yes; then
18880 postdeps_CXX='-library=Cstd -library=Crun'
18883 esac
18885 esac
18888 case " $postdeps_CXX " in
18889 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18890 esac
18891 compiler_lib_search_dirs_CXX=
18892 if test -n "${compiler_lib_search_path_CXX}"; then
18893 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18926 lt_prog_compiler_wl_CXX=
18927 lt_prog_compiler_pic_CXX=
18928 lt_prog_compiler_static_CXX=
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18931 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18933 # C++ specific cases for pic, static, wl, etc.
18934 if test "$GXX" = yes; then
18935 lt_prog_compiler_wl_CXX='-Wl,'
18936 lt_prog_compiler_static_CXX='-static'
18938 case $host_os in
18939 aix*)
18940 # All AIX code is PIC.
18941 if test "$host_cpu" = ia64; then
18942 # AIX 5 now supports IA64 processor
18943 lt_prog_compiler_static_CXX='-Bstatic'
18947 amigaos*)
18948 case $host_cpu in
18949 powerpc)
18950 # see comment about AmigaOS4 .so support
18951 lt_prog_compiler_pic_CXX='-fPIC'
18953 m68k)
18954 # FIXME: we need at least 68020 code to build shared libraries, but
18955 # adding the `-m68020' flag to GCC prevents building anything better,
18956 # like `-m68040'.
18957 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18959 esac
18962 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18963 # PIC is the default for these OSes.
18965 mingw* | cygwin* | os2* | pw32* | cegcc*)
18966 # This hack is so that the source file can tell whether it is being
18967 # built for inclusion in a dll (and should export symbols for example).
18968 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18969 # (--disable-auto-import) libraries
18970 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18972 darwin* | rhapsody*)
18973 # PIC is the default on this platform
18974 # Common symbols not allowed in MH_DYLIB files
18975 lt_prog_compiler_pic_CXX='-fno-common'
18977 *djgpp*)
18978 # DJGPP does not support shared libraries at all
18979 lt_prog_compiler_pic_CXX=
18981 haiku*)
18982 # PIC is the default for Haiku.
18983 # The "-static" flag exists, but is broken.
18984 lt_prog_compiler_static_CXX=
18986 interix[3-9]*)
18987 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18988 # Instead, we relocate shared libraries at runtime.
18990 sysv4*MP*)
18991 if test -d /usr/nec; then
18992 lt_prog_compiler_pic_CXX=-Kconform_pic
18995 hpux*)
18996 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18997 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18998 # sets the default TLS model and affects inlining.
18999 case $host_cpu in
19000 hppa*64*)
19003 lt_prog_compiler_pic_CXX='-fPIC'
19005 esac
19007 *qnx* | *nto*)
19008 # QNX uses GNU C++, but need to define -shared option too, otherwise
19009 # it will coredump.
19010 lt_prog_compiler_pic_CXX='-fPIC -shared'
19013 lt_prog_compiler_pic_CXX='-fPIC'
19015 esac
19016 else
19017 case $host_os in
19018 aix[4-9]*)
19019 # All AIX code is PIC.
19020 if test "$host_cpu" = ia64; then
19021 # AIX 5 now supports IA64 processor
19022 lt_prog_compiler_static_CXX='-Bstatic'
19023 else
19024 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19027 chorus*)
19028 case $cc_basename in
19029 cxch68*)
19030 # Green Hills C++ Compiler
19031 # _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"
19033 esac
19035 dgux*)
19036 case $cc_basename in
19037 ec++*)
19038 lt_prog_compiler_pic_CXX='-KPIC'
19040 ghcx*)
19041 # Green Hills C++ Compiler
19042 lt_prog_compiler_pic_CXX='-pic'
19046 esac
19048 freebsd* | dragonfly*)
19049 # FreeBSD uses GNU C++
19051 hpux9* | hpux10* | hpux11*)
19052 case $cc_basename in
19053 CC*)
19054 lt_prog_compiler_wl_CXX='-Wl,'
19055 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19056 if test "$host_cpu" != ia64; then
19057 lt_prog_compiler_pic_CXX='+Z'
19060 aCC*)
19061 lt_prog_compiler_wl_CXX='-Wl,'
19062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19063 case $host_cpu in
19064 hppa*64*|ia64*)
19065 # +Z the default
19068 lt_prog_compiler_pic_CXX='+Z'
19070 esac
19074 esac
19076 interix*)
19077 # This is c89, which is MS Visual C++ (no shared libs)
19078 # Anyone wants to do a port?
19080 irix5* | irix6* | nonstopux*)
19081 case $cc_basename in
19082 CC*)
19083 lt_prog_compiler_wl_CXX='-Wl,'
19084 lt_prog_compiler_static_CXX='-non_shared'
19085 # CC pic flag -KPIC is the default.
19089 esac
19091 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19092 case $cc_basename in
19093 KCC*)
19094 # KAI C++ Compiler
19095 lt_prog_compiler_wl_CXX='--backend -Wl,'
19096 lt_prog_compiler_pic_CXX='-fPIC'
19098 ecpc* )
19099 # old Intel C++ for x86_64 which still supported -KPIC.
19100 lt_prog_compiler_wl_CXX='-Wl,'
19101 lt_prog_compiler_pic_CXX='-KPIC'
19102 lt_prog_compiler_static_CXX='-static'
19104 icpc* )
19105 # Intel C++, used to be incompatible with GCC.
19106 # ICC 10 doesn't accept -KPIC any more.
19107 lt_prog_compiler_wl_CXX='-Wl,'
19108 lt_prog_compiler_pic_CXX='-fPIC'
19109 lt_prog_compiler_static_CXX='-static'
19111 pgCC* | pgcpp*)
19112 # Portland Group C++ compiler
19113 lt_prog_compiler_wl_CXX='-Wl,'
19114 lt_prog_compiler_pic_CXX='-fpic'
19115 lt_prog_compiler_static_CXX='-Bstatic'
19117 cxx*)
19118 # Compaq C++
19119 # Make sure the PIC flag is empty. It appears that all Alpha
19120 # Linux and Compaq Tru64 Unix objects are PIC.
19121 lt_prog_compiler_pic_CXX=
19122 lt_prog_compiler_static_CXX='-non_shared'
19124 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19125 # IBM XL 8.0, 9.0 on PPC and BlueGene
19126 lt_prog_compiler_wl_CXX='-Wl,'
19127 lt_prog_compiler_pic_CXX='-qpic'
19128 lt_prog_compiler_static_CXX='-qstaticlink'
19131 case `$CC -V 2>&1 | sed 5q` in
19132 *Sun\ C*)
19133 # Sun C++ 5.9
19134 lt_prog_compiler_pic_CXX='-KPIC'
19135 lt_prog_compiler_static_CXX='-Bstatic'
19136 lt_prog_compiler_wl_CXX='-Qoption ld '
19138 esac
19140 esac
19142 lynxos*)
19144 m88k*)
19146 mvs*)
19147 case $cc_basename in
19148 cxx*)
19149 lt_prog_compiler_pic_CXX='-W c,exportall'
19153 esac
19155 netbsd*)
19157 *qnx* | *nto*)
19158 # QNX uses GNU C++, but need to define -shared option too, otherwise
19159 # it will coredump.
19160 lt_prog_compiler_pic_CXX='-fPIC -shared'
19162 osf3* | osf4* | osf5*)
19163 case $cc_basename in
19164 KCC*)
19165 lt_prog_compiler_wl_CXX='--backend -Wl,'
19167 RCC*)
19168 # Rational C++ 2.4.1
19169 lt_prog_compiler_pic_CXX='-pic'
19171 cxx*)
19172 # Digital/Compaq C++
19173 lt_prog_compiler_wl_CXX='-Wl,'
19174 # Make sure the PIC flag is empty. It appears that all Alpha
19175 # Linux and Compaq Tru64 Unix objects are PIC.
19176 lt_prog_compiler_pic_CXX=
19177 lt_prog_compiler_static_CXX='-non_shared'
19181 esac
19183 psos*)
19185 solaris*)
19186 case $cc_basename in
19187 CC*)
19188 # Sun C++ 4.2, 5.x and Centerline C++
19189 lt_prog_compiler_pic_CXX='-KPIC'
19190 lt_prog_compiler_static_CXX='-Bstatic'
19191 lt_prog_compiler_wl_CXX='-Qoption ld '
19193 gcx*)
19194 # Green Hills C++ Compiler
19195 lt_prog_compiler_pic_CXX='-PIC'
19199 esac
19201 sunos4*)
19202 case $cc_basename in
19203 CC*)
19204 # Sun C++ 4.x
19205 lt_prog_compiler_pic_CXX='-pic'
19206 lt_prog_compiler_static_CXX='-Bstatic'
19208 lcc*)
19209 # Lucid
19210 lt_prog_compiler_pic_CXX='-pic'
19214 esac
19216 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19217 case $cc_basename in
19218 CC*)
19219 lt_prog_compiler_wl_CXX='-Wl,'
19220 lt_prog_compiler_pic_CXX='-KPIC'
19221 lt_prog_compiler_static_CXX='-Bstatic'
19223 esac
19225 tandem*)
19226 case $cc_basename in
19227 NCC*)
19228 # NonStop-UX NCC 3.20
19229 lt_prog_compiler_pic_CXX='-KPIC'
19233 esac
19235 vxworks*)
19238 lt_prog_compiler_can_build_shared_CXX=no
19240 esac
19243 case $host_os in
19244 # For platforms which do not support PIC, -DPIC is meaningless:
19245 *djgpp*)
19246 lt_prog_compiler_pic_CXX=
19249 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19251 esac
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19253 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19258 # Check to make sure the PIC flag actually works.
19260 if test -n "$lt_prog_compiler_pic_CXX"; then
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19262 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19263 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19264 $as_echo_n "(cached) " >&6
19265 else
19266 lt_cv_prog_compiler_pic_works_CXX=no
19267 ac_outfile=conftest.$ac_objext
19268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19269 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19270 # Insert the option either (1) after the last *FLAGS variable, or
19271 # (2) before a word containing "conftest.", or (3) at the end.
19272 # Note that $ac_compile itself does not contain backslashes and begins
19273 # with a dollar sign (not a hyphen), so the echo should work correctly.
19274 # The option is referenced via a variable to avoid confusing sed.
19275 lt_compile=`echo "$ac_compile" | $SED \
19276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19278 -e 's:$: $lt_compiler_flag:'`
19279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19280 (eval "$lt_compile" 2>conftest.err)
19281 ac_status=$?
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 if (exit $ac_status) && test -s "$ac_outfile"; then
19285 # The compiler can only warn and ignore the option if not recognized
19286 # So say no if there are warnings other than the usual output.
19287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19290 lt_cv_prog_compiler_pic_works_CXX=yes
19293 $RM conftest*
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19297 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19299 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19300 case $lt_prog_compiler_pic_CXX in
19301 "" | " "*) ;;
19302 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19303 esac
19304 else
19305 lt_prog_compiler_pic_CXX=
19306 lt_prog_compiler_can_build_shared_CXX=no
19314 # Check to make sure the static flag actually works.
19316 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19318 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19319 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19320 $as_echo_n "(cached) " >&6
19321 else
19322 lt_cv_prog_compiler_static_works_CXX=no
19323 save_LDFLAGS="$LDFLAGS"
19324 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19325 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19326 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19327 # The linker can only warn and ignore the option if not recognized
19328 # So say no if there are warnings
19329 if test -s conftest.err; then
19330 # Append any errors to the config.log.
19331 cat conftest.err 1>&5
19332 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19334 if diff conftest.exp conftest.er2 >/dev/null; then
19335 lt_cv_prog_compiler_static_works_CXX=yes
19337 else
19338 lt_cv_prog_compiler_static_works_CXX=yes
19341 $RM -r conftest*
19342 LDFLAGS="$save_LDFLAGS"
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19346 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19348 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19350 else
19351 lt_prog_compiler_static_CXX=
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19358 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19359 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19360 $as_echo_n "(cached) " >&6
19361 else
19362 lt_cv_prog_compiler_c_o_CXX=no
19363 $RM -r conftest 2>/dev/null
19364 mkdir conftest
19365 cd conftest
19366 mkdir out
19367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19369 lt_compiler_flag="-o out/conftest2.$ac_objext"
19370 # Insert the option either (1) after the last *FLAGS variable, or
19371 # (2) before a word containing "conftest.", or (3) at the end.
19372 # Note that $ac_compile itself does not contain backslashes and begins
19373 # with a dollar sign (not a hyphen), so the echo should work correctly.
19374 lt_compile=`echo "$ac_compile" | $SED \
19375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19377 -e 's:$: $lt_compiler_flag:'`
19378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19379 (eval "$lt_compile" 2>out/conftest.err)
19380 ac_status=$?
19381 cat out/conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19384 then
19385 # The compiler can only warn and ignore the option if not recognized
19386 # So say no if there are warnings
19387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19390 lt_cv_prog_compiler_c_o_CXX=yes
19393 chmod u+w . 2>&5
19394 $RM conftest*
19395 # SGI C++ compiler will create directory out/ii_files/ for
19396 # template instantiation
19397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19398 $RM out/* && rmdir out
19399 cd ..
19400 $RM -r conftest
19401 $RM conftest*
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19405 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19411 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19412 $as_echo_n "(cached) " >&6
19413 else
19414 lt_cv_prog_compiler_c_o_CXX=no
19415 $RM -r conftest 2>/dev/null
19416 mkdir conftest
19417 cd conftest
19418 mkdir out
19419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19421 lt_compiler_flag="-o out/conftest2.$ac_objext"
19422 # Insert the option either (1) after the last *FLAGS variable, or
19423 # (2) before a word containing "conftest.", or (3) at the end.
19424 # Note that $ac_compile itself does not contain backslashes and begins
19425 # with a dollar sign (not a hyphen), so the echo should work correctly.
19426 lt_compile=`echo "$ac_compile" | $SED \
19427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19429 -e 's:$: $lt_compiler_flag:'`
19430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19431 (eval "$lt_compile" 2>out/conftest.err)
19432 ac_status=$?
19433 cat out/conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19436 then
19437 # The compiler can only warn and ignore the option if not recognized
19438 # So say no if there are warnings
19439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19442 lt_cv_prog_compiler_c_o_CXX=yes
19445 chmod u+w . 2>&5
19446 $RM conftest*
19447 # SGI C++ compiler will create directory out/ii_files/ for
19448 # template instantiation
19449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19450 $RM out/* && rmdir out
19451 cd ..
19452 $RM -r conftest
19453 $RM conftest*
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19457 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19462 hard_links="nottested"
19463 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19464 # do not overwrite the value of need_locks provided by the user
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19466 $as_echo_n "checking if we can lock with hard links... " >&6; }
19467 hard_links=yes
19468 $RM conftest*
19469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19470 touch conftest.a
19471 ln conftest.a conftest.b 2>&5 || hard_links=no
19472 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19474 $as_echo "$hard_links" >&6; }
19475 if test "$hard_links" = no; then
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19477 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19478 need_locks=warn
19480 else
19481 need_locks=no
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19487 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19490 case $host_os in
19491 aix[4-9]*)
19492 # If we're using GNU nm, then we don't want the "-C" option.
19493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19494 # Also, AIX nm treats weak defined symbols like other global defined
19495 # symbols, whereas GNU nm marks them as "W".
19496 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19497 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'
19498 else
19499 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'
19502 pw32*)
19503 export_symbols_cmds_CXX="$ltdll_cmds"
19505 cygwin* | mingw* | cegcc*)
19506 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'
19509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19511 esac
19512 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19515 $as_echo "$ld_shlibs_CXX" >&6; }
19516 test "$ld_shlibs_CXX" = no && can_build_shared=no
19518 with_gnu_ld_CXX=$with_gnu_ld
19526 # Do we need to explicitly link libc?
19528 case "x$archive_cmds_need_lc_CXX" in
19529 x|xyes)
19530 # Assume -lc should be added
19531 archive_cmds_need_lc_CXX=yes
19533 if test "$enable_shared" = yes && test "$GCC" = yes; then
19534 case $archive_cmds_CXX in
19535 *'~'*)
19536 # FIXME: we may have to deal with multi-command sequences.
19538 '$CC '*)
19539 # Test whether the compiler implicitly links with -lc since on some
19540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19541 # to ld, don't add -lc before -lgcc.
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19543 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19544 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19545 $as_echo_n "(cached) " >&6
19546 else
19547 $RM conftest*
19548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19551 (eval $ac_compile) 2>&5
19552 ac_status=$?
19553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19554 test $ac_status = 0; } 2>conftest.err; then
19555 soname=conftest
19556 lib=conftest
19557 libobjs=conftest.$ac_objext
19558 deplibs=
19559 wl=$lt_prog_compiler_wl_CXX
19560 pic_flag=$lt_prog_compiler_pic_CXX
19561 compiler_flags=-v
19562 linker_flags=-v
19563 verstring=
19564 output_objdir=.
19565 libname=conftest
19566 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19567 allow_undefined_flag_CXX=
19568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19569 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19570 ac_status=$?
19571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19572 test $ac_status = 0; }
19573 then
19574 lt_cv_archive_cmds_need_lc_CXX=no
19575 else
19576 lt_cv_archive_cmds_need_lc_CXX=yes
19578 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19579 else
19580 cat conftest.err 1>&5
19582 $RM conftest*
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19586 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19587 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19589 esac
19592 esac
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19658 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19660 library_names_spec=
19661 libname_spec='lib$name'
19662 soname_spec=
19663 shrext_cmds=".so"
19664 postinstall_cmds=
19665 postuninstall_cmds=
19666 finish_cmds=
19667 finish_eval=
19668 shlibpath_var=
19669 shlibpath_overrides_runpath=unknown
19670 version_type=none
19671 dynamic_linker="$host_os ld.so"
19672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19673 need_lib_prefix=unknown
19674 hardcode_into_libs=no
19676 # when you set need_version to no, make sure it does not cause -set_version
19677 # flags to be left without arguments
19678 need_version=unknown
19680 case $host_os in
19681 aix3*)
19682 version_type=linux
19683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19684 shlibpath_var=LIBPATH
19686 # AIX 3 has no versioning support, so we append a major version to the name.
19687 soname_spec='${libname}${release}${shared_ext}$major'
19690 aix[4-9]*)
19691 version_type=linux
19692 need_lib_prefix=no
19693 need_version=no
19694 hardcode_into_libs=yes
19695 if test "$host_cpu" = ia64; then
19696 # AIX 5 supports IA64
19697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19698 shlibpath_var=LD_LIBRARY_PATH
19699 else
19700 # With GCC up to 2.95.x, collect2 would create an import file
19701 # for dependence libraries. The import file would start with
19702 # the line `#! .'. This would cause the generated library to
19703 # depend on `.', always an invalid library. This was fixed in
19704 # development snapshots of GCC prior to 3.0.
19705 case $host_os in
19706 aix4 | aix4.[01] | aix4.[01].*)
19707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19708 echo ' yes '
19709 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19711 else
19712 can_build_shared=no
19715 esac
19716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19717 # soname into executable. Probably we can add versioning support to
19718 # collect2, so additional links can be useful in future.
19719 if test "$aix_use_runtimelinking" = yes; then
19720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19721 # instead of lib<name>.a to let people know that these are not
19722 # typical AIX shared libraries.
19723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19724 else
19725 # We preserve .a as extension for shared libraries through AIX4.2
19726 # and later when we are not doing run time linking.
19727 library_names_spec='${libname}${release}.a $libname.a'
19728 soname_spec='${libname}${release}${shared_ext}$major'
19730 shlibpath_var=LIBPATH
19734 amigaos*)
19735 case $host_cpu in
19736 powerpc)
19737 # Since July 2007 AmigaOS4 officially supports .so libraries.
19738 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19741 m68k)
19742 library_names_spec='$libname.ixlibrary $libname.a'
19743 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19744 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'
19746 esac
19749 beos*)
19750 library_names_spec='${libname}${shared_ext}'
19751 dynamic_linker="$host_os ld.so"
19752 shlibpath_var=LIBRARY_PATH
19755 bsdi[45]*)
19756 version_type=linux
19757 need_version=no
19758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19759 soname_spec='${libname}${release}${shared_ext}$major'
19760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19761 shlibpath_var=LD_LIBRARY_PATH
19762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19764 # the default ld.so.conf also contains /usr/contrib/lib and
19765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19766 # libtool to hard-code these into programs
19769 cygwin* | mingw* | pw32* | cegcc*)
19770 version_type=windows
19771 shrext_cmds=".dll"
19772 need_version=no
19773 need_lib_prefix=no
19775 case $GCC,$host_os in
19776 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19777 library_names_spec='$libname.dll.a'
19778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19779 postinstall_cmds='base_file=`basename \${file}`~
19780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19781 dldir=$destdir/`dirname \$dlpath`~
19782 test -d \$dldir || mkdir -p \$dldir~
19783 $install_prog $dir/$dlname \$dldir/$dlname~
19784 chmod a+x \$dldir/$dlname~
19785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19789 dlpath=$dir/\$dldll~
19790 $RM \$dlpath'
19791 shlibpath_overrides_runpath=yes
19793 case $host_os in
19794 cygwin*)
19795 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19796 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19799 mingw* | cegcc*)
19800 # MinGW DLLs use traditional 'lib' prefix
19801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19803 pw32*)
19804 # pw32 DLLs use 'pw' prefix rather than 'lib'
19805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19807 esac
19811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19813 esac
19814 dynamic_linker='Win32 ld.exe'
19815 # FIXME: first we should search . and the directory the executable is in
19816 shlibpath_var=PATH
19819 darwin* | rhapsody*)
19820 dynamic_linker="$host_os dyld"
19821 version_type=darwin
19822 need_lib_prefix=no
19823 need_version=no
19824 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19825 soname_spec='${libname}${release}${major}$shared_ext'
19826 shlibpath_overrides_runpath=yes
19827 shlibpath_var=DYLD_LIBRARY_PATH
19828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19833 dgux*)
19834 version_type=linux
19835 need_lib_prefix=no
19836 need_version=no
19837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19838 soname_spec='${libname}${release}${shared_ext}$major'
19839 shlibpath_var=LD_LIBRARY_PATH
19842 freebsd1*)
19843 dynamic_linker=no
19846 freebsd* | dragonfly*)
19847 # DragonFly does not have aout. When/if they implement a new
19848 # versioning mechanism, adjust this.
19849 if test -x /usr/bin/objformat; then
19850 objformat=`/usr/bin/objformat`
19851 else
19852 case $host_os in
19853 freebsd[123]*) objformat=aout ;;
19854 *) objformat=elf ;;
19855 esac
19857 version_type=freebsd-$objformat
19858 case $version_type in
19859 freebsd-elf*)
19860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19861 need_version=no
19862 need_lib_prefix=no
19864 freebsd-*)
19865 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19866 need_version=yes
19868 esac
19869 shlibpath_var=LD_LIBRARY_PATH
19870 case $host_os in
19871 freebsd2*)
19872 shlibpath_overrides_runpath=yes
19874 freebsd3.[01]* | freebsdelf3.[01]*)
19875 shlibpath_overrides_runpath=yes
19876 hardcode_into_libs=yes
19878 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19879 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19880 shlibpath_overrides_runpath=no
19881 hardcode_into_libs=yes
19883 *) # from 4.6 on, and DragonFly
19884 shlibpath_overrides_runpath=yes
19885 hardcode_into_libs=yes
19887 esac
19890 gnu*)
19891 version_type=linux
19892 need_lib_prefix=no
19893 need_version=no
19894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19895 soname_spec='${libname}${release}${shared_ext}$major'
19896 shlibpath_var=LD_LIBRARY_PATH
19897 hardcode_into_libs=yes
19900 haiku*)
19901 version_type=linux
19902 need_lib_prefix=no
19903 need_version=no
19904 dynamic_linker="$host_os runtime_loader"
19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19906 soname_spec='${libname}${release}${shared_ext}$major'
19907 shlibpath_var=LIBRARY_PATH
19908 shlibpath_overrides_runpath=yes
19909 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19910 hardcode_into_libs=yes
19913 hpux9* | hpux10* | hpux11*)
19914 # Give a soname corresponding to the major version so that dld.sl refuses to
19915 # link against other versions.
19916 version_type=sunos
19917 need_lib_prefix=no
19918 need_version=no
19919 case $host_cpu in
19920 ia64*)
19921 shrext_cmds='.so'
19922 hardcode_into_libs=yes
19923 dynamic_linker="$host_os dld.so"
19924 shlibpath_var=LD_LIBRARY_PATH
19925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19927 soname_spec='${libname}${release}${shared_ext}$major'
19928 if test "X$HPUX_IA64_MODE" = X32; then
19929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19930 else
19931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19935 hppa*64*)
19936 shrext_cmds='.sl'
19937 hardcode_into_libs=yes
19938 dynamic_linker="$host_os dld.sl"
19939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19947 shrext_cmds='.sl'
19948 dynamic_linker="$host_os dld.sl"
19949 shlibpath_var=SHLIB_PATH
19950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19952 soname_spec='${libname}${release}${shared_ext}$major'
19954 esac
19955 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19956 postinstall_cmds='chmod 555 $lib'
19957 # or fails outright, so override atomically:
19958 install_override_mode=555
19961 interix[3-9]*)
19962 version_type=linux
19963 need_lib_prefix=no
19964 need_version=no
19965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19966 soname_spec='${libname}${release}${shared_ext}$major'
19967 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19968 shlibpath_var=LD_LIBRARY_PATH
19969 shlibpath_overrides_runpath=no
19970 hardcode_into_libs=yes
19973 irix5* | irix6* | nonstopux*)
19974 case $host_os in
19975 nonstopux*) version_type=nonstopux ;;
19977 if test "$lt_cv_prog_gnu_ld" = yes; then
19978 version_type=linux
19979 else
19980 version_type=irix
19981 fi ;;
19982 esac
19983 need_lib_prefix=no
19984 need_version=no
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19987 case $host_os in
19988 irix5* | nonstopux*)
19989 libsuff= shlibsuff=
19992 case $LD in # libtool.m4 will add one of these switches to LD
19993 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19994 libsuff= shlibsuff= libmagic=32-bit;;
19995 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19996 libsuff=32 shlibsuff=N32 libmagic=N32;;
19997 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19998 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19999 *) libsuff= shlibsuff= libmagic=never-match;;
20000 esac
20002 esac
20003 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20004 shlibpath_overrides_runpath=no
20005 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20006 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20007 hardcode_into_libs=yes
20010 # No shared lib support for Linux oldld, aout, or coff.
20011 linux*oldld* | linux*aout* | linux*coff*)
20012 dynamic_linker=no
20015 # This must be Linux ELF.
20016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20017 version_type=linux
20018 need_lib_prefix=no
20019 need_version=no
20020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20021 soname_spec='${libname}${release}${shared_ext}$major'
20022 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20023 shlibpath_var=LD_LIBRARY_PATH
20024 shlibpath_overrides_runpath=no
20026 # Some binutils ld are patched to set DT_RUNPATH
20027 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20028 $as_echo_n "(cached) " >&6
20029 else
20030 lt_cv_shlibpath_overrides_runpath=no
20031 save_LDFLAGS=$LDFLAGS
20032 save_libdir=$libdir
20033 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20034 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h. */
20039 main ()
20043 return 0;
20045 _ACEOF
20046 if ac_fn_cxx_try_link "$LINENO"; then :
20047 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20048 lt_cv_shlibpath_overrides_runpath=yes
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053 LDFLAGS=$save_LDFLAGS
20054 libdir=$save_libdir
20058 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20060 # This implies no fast_install, which is unacceptable.
20061 # Some rework will be needed to allow for fast_install
20062 # before this can be enabled.
20063 hardcode_into_libs=yes
20065 # Append ld.so.conf contents to the search path
20066 if test -f /etc/ld.so.conf; then
20067 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' ' '`
20068 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20071 # We used to test for /lib/ld.so.1 and disable shared libraries on
20072 # powerpc, because MkLinux only supported shared libraries with the
20073 # GNU dynamic linker. Since this was broken with cross compilers,
20074 # most powerpc-linux boxes support dynamic linking these days and
20075 # people can always --disable-shared, the test was removed, and we
20076 # assume the GNU/Linux dynamic linker is in use.
20077 dynamic_linker='GNU/Linux ld.so'
20080 netbsd*)
20081 version_type=sunos
20082 need_lib_prefix=no
20083 need_version=no
20084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20087 dynamic_linker='NetBSD (a.out) ld.so'
20088 else
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20090 soname_spec='${libname}${release}${shared_ext}$major'
20091 dynamic_linker='NetBSD ld.elf_so'
20093 shlibpath_var=LD_LIBRARY_PATH
20094 shlibpath_overrides_runpath=yes
20095 hardcode_into_libs=yes
20098 newsos6)
20099 version_type=linux
20100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20101 shlibpath_var=LD_LIBRARY_PATH
20102 shlibpath_overrides_runpath=yes
20105 *nto* | *qnx*)
20106 version_type=qnx
20107 need_lib_prefix=no
20108 need_version=no
20109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20110 soname_spec='${libname}${release}${shared_ext}$major'
20111 shlibpath_var=LD_LIBRARY_PATH
20112 shlibpath_overrides_runpath=no
20113 hardcode_into_libs=yes
20114 dynamic_linker='ldqnx.so'
20117 openbsd*)
20118 version_type=sunos
20119 sys_lib_dlsearch_path_spec="/usr/lib"
20120 need_lib_prefix=no
20121 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20122 case $host_os in
20123 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20124 *) need_version=no ;;
20125 esac
20126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20128 shlibpath_var=LD_LIBRARY_PATH
20129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20130 case $host_os in
20131 openbsd2.[89] | openbsd2.[89].*)
20132 shlibpath_overrides_runpath=no
20135 shlibpath_overrides_runpath=yes
20137 esac
20138 else
20139 shlibpath_overrides_runpath=yes
20143 os2*)
20144 libname_spec='$name'
20145 shrext_cmds=".dll"
20146 need_lib_prefix=no
20147 library_names_spec='$libname${shared_ext} $libname.a'
20148 dynamic_linker='OS/2 ld.exe'
20149 shlibpath_var=LIBPATH
20152 osf3* | osf4* | osf5*)
20153 version_type=osf
20154 need_lib_prefix=no
20155 need_version=no
20156 soname_spec='${libname}${release}${shared_ext}$major'
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 shlibpath_var=LD_LIBRARY_PATH
20159 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20160 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20163 rdos*)
20164 dynamic_linker=no
20167 solaris*)
20168 version_type=linux
20169 need_lib_prefix=no
20170 need_version=no
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 shlibpath_var=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath=yes
20175 hardcode_into_libs=yes
20176 # ldd complains unless libraries are executable
20177 postinstall_cmds='chmod +x $lib'
20180 sunos4*)
20181 version_type=sunos
20182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20184 shlibpath_var=LD_LIBRARY_PATH
20185 shlibpath_overrides_runpath=yes
20186 if test "$with_gnu_ld" = yes; then
20187 need_lib_prefix=no
20189 need_version=yes
20192 sysv4 | sysv4.3*)
20193 version_type=linux
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 soname_spec='${libname}${release}${shared_ext}$major'
20196 shlibpath_var=LD_LIBRARY_PATH
20197 case $host_vendor in
20198 sni)
20199 shlibpath_overrides_runpath=no
20200 need_lib_prefix=no
20201 runpath_var=LD_RUN_PATH
20203 siemens)
20204 need_lib_prefix=no
20206 motorola)
20207 need_lib_prefix=no
20208 need_version=no
20209 shlibpath_overrides_runpath=no
20210 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20212 esac
20215 sysv4*MP*)
20216 if test -d /usr/nec ;then
20217 version_type=linux
20218 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20219 soname_spec='$libname${shared_ext}.$major'
20220 shlibpath_var=LD_LIBRARY_PATH
20224 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20225 version_type=freebsd-elf
20226 need_lib_prefix=no
20227 need_version=no
20228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20229 soname_spec='${libname}${release}${shared_ext}$major'
20230 shlibpath_var=LD_LIBRARY_PATH
20231 shlibpath_overrides_runpath=yes
20232 hardcode_into_libs=yes
20233 if test "$with_gnu_ld" = yes; then
20234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20235 else
20236 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20237 case $host_os in
20238 sco3.2v5*)
20239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20241 esac
20243 sys_lib_dlsearch_path_spec='/usr/lib'
20246 tpf*)
20247 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20248 version_type=linux
20249 need_lib_prefix=no
20250 need_version=no
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=no
20254 hardcode_into_libs=yes
20257 uts4*)
20258 version_type=linux
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 shlibpath_var=LD_LIBRARY_PATH
20265 dynamic_linker=no
20267 esac
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20269 $as_echo "$dynamic_linker" >&6; }
20270 test "$dynamic_linker" = no && can_build_shared=no
20272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20273 if test "$GCC" = yes; then
20274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20277 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20278 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20280 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20281 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20322 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20323 hardcode_action_CXX=
20324 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20325 test -n "$runpath_var_CXX" ||
20326 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20328 # We can hardcode non-existent directories.
20329 if test "$hardcode_direct_CXX" != no &&
20330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20331 # have to relink, otherwise we might link with an installed library
20332 # when we should be linking with a yet-to-be-installed one
20333 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20334 test "$hardcode_minus_L_CXX" != no; then
20335 # Linking always hardcodes the temporary library directory.
20336 hardcode_action_CXX=relink
20337 else
20338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20339 hardcode_action_CXX=immediate
20341 else
20342 # We cannot hardcode anything, or else we can only hardcode existing
20343 # directories.
20344 hardcode_action_CXX=unsupported
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20347 $as_echo "$hardcode_action_CXX" >&6; }
20349 if test "$hardcode_action_CXX" = relink ||
20350 test "$inherit_rpath_CXX" = yes; then
20351 # Fast installation is not supported
20352 enable_fast_install=no
20353 elif test "$shlibpath_overrides_runpath" = yes ||
20354 test "$enable_shared" = no; then
20355 # Fast installation is not necessary
20356 enable_fast_install=needless
20365 fi # test -n "$compiler"
20367 CC=$lt_save_CC
20368 LDCXX=$LD
20369 LD=$lt_save_LD
20370 GCC=$lt_save_GCC
20371 with_gnu_ld=$lt_save_with_gnu_ld
20372 lt_cv_path_LDCXX=$lt_cv_path_LD
20373 lt_cv_path_LD=$lt_save_path_LD
20374 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20375 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20376 fi # test "$_lt_caught_CXX_error" != yes
20378 ac_ext=c
20379 ac_cpp='$CPP $CPPFLAGS'
20380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20399 # Only expand once:
20405 # Identify the assembler which will work hand-in-glove with the newly
20406 # built GCC, so that we can examine its features. This is the assembler
20407 # which will be driven by the driver program.
20409 # If build != host, and we aren't building gas in-tree, we identify a
20410 # build->target assembler and hope that it will have the same features
20411 # as the host->target assembler we'll be using.
20412 gcc_cv_gas_major_version=
20413 gcc_cv_gas_minor_version=
20414 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20416 if test "${gcc_cv_as+set}" = set; then :
20418 else
20420 if test -x "$DEFAULT_ASSEMBLER"; then
20421 gcc_cv_as="$DEFAULT_ASSEMBLER"
20422 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20423 && test -f ../gas/Makefile \
20424 && test x$build = x$host; then
20425 gcc_cv_as=../gas/as-new$build_exeext
20426 elif test -x as$build_exeext; then
20427 # Build using assembler in the current directory.
20428 gcc_cv_as=./as$build_exeext
20429 elif test -x $AS_FOR_TARGET; then
20430 gcc_cv_as="$AS_FOR_TARGET"
20431 else
20432 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20433 set dummy $AS_FOR_TARGET; ac_word=$2
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20435 $as_echo_n "checking for $ac_word... " >&6; }
20436 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20437 $as_echo_n "(cached) " >&6
20438 else
20439 case $gcc_cv_as in
20440 [\\/]* | ?:[\\/]*)
20441 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20445 for as_dir in $PATH
20447 IFS=$as_save_IFS
20448 test -z "$as_dir" && as_dir=.
20449 for ac_exec_ext in '' $ac_executable_extensions; do
20450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20451 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20453 break 2
20455 done
20456 done
20457 IFS=$as_save_IFS
20460 esac
20462 gcc_cv_as=$ac_cv_path_gcc_cv_as
20463 if test -n "$gcc_cv_as"; then
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20465 $as_echo "$gcc_cv_as" >&6; }
20466 else
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 $as_echo "no" >&6; }
20475 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20477 case "$ORIGINAL_AS_FOR_TARGET" in
20478 ./as | ./as$build_exeext) ;;
20479 *) ac_config_files="$ac_config_files as:exec-tool.in"
20481 esac
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20484 $as_echo_n "checking what assembler to use... " >&6; }
20485 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20486 # Single tree build which includes gas. We want to prefer it
20487 # over whatever linker top-level may have detected, since
20488 # we'll use what we're building after installation anyway.
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20490 $as_echo "newly built gas" >&6; }
20491 in_tree_gas=yes
20492 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20493 for f in $gcc_cv_as_bfd_srcdir/configure \
20494 $gcc_cv_as_gas_srcdir/configure \
20495 $gcc_cv_as_gas_srcdir/configure.in \
20496 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20497 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20498 if test x$gcc_cv_gas_version != x; then
20499 break
20501 done
20502 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20503 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20504 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20505 case $gcc_cv_gas_patch_version in
20506 "") gcc_cv_gas_patch_version="0" ;;
20507 esac
20508 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20509 + $gcc_cv_gas_minor_version \) \* 1000 \
20510 + $gcc_cv_gas_patch_version`
20512 in_tree_gas_is_elf=no
20513 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20514 || (grep 'obj_format = multi' ../gas/Makefile \
20515 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20516 then
20517 in_tree_gas_is_elf=yes
20519 else
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20521 $as_echo "$gcc_cv_as" >&6; }
20522 in_tree_gas=no
20525 # Identify the linker which will work hand-in-glove with the newly
20526 # built GCC, so that we can examine its features. This is the linker
20527 # which will be driven by the driver program.
20529 # If build != host, and we aren't building gas in-tree, we identify a
20530 # build->target linker and hope that it will have the same features
20531 # as the host->target linker we'll be using.
20532 gcc_cv_gld_major_version=
20533 gcc_cv_gld_minor_version=
20534 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20535 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20537 if test "${gcc_cv_ld+set}" = set; then :
20539 else
20541 if test -x "$DEFAULT_LINKER"; then
20542 gcc_cv_ld="$DEFAULT_LINKER"
20543 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20544 && test -f ../ld/Makefile \
20545 && test x$build = x$host; then
20546 gcc_cv_ld=../ld/ld-new$build_exeext
20547 elif test -x collect-ld$build_exeext; then
20548 # Build using linker in the current directory.
20549 gcc_cv_ld=./collect-ld$build_exeext
20550 elif test -x $LD_FOR_TARGET; then
20551 gcc_cv_ld="$LD_FOR_TARGET"
20552 else
20553 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20554 set dummy $LD_FOR_TARGET; ac_word=$2
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20556 $as_echo_n "checking for $ac_word... " >&6; }
20557 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20558 $as_echo_n "(cached) " >&6
20559 else
20560 case $gcc_cv_ld in
20561 [\\/]* | ?:[\\/]*)
20562 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20566 for as_dir in $PATH
20568 IFS=$as_save_IFS
20569 test -z "$as_dir" && as_dir=.
20570 for ac_exec_ext in '' $ac_executable_extensions; do
20571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20572 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20574 break 2
20576 done
20577 done
20578 IFS=$as_save_IFS
20581 esac
20583 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20584 if test -n "$gcc_cv_ld"; then
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20586 $as_echo "$gcc_cv_ld" >&6; }
20587 else
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20589 $as_echo "no" >&6; }
20596 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20597 PLUGIN_LD=`basename $gcc_cv_ld`
20599 # Check whether --with-plugin-ld was given.
20600 if test "${with_plugin_ld+set}" = set; then :
20601 withval=$with_plugin_ld; if test x"$withval" != x; then
20602 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20603 PLUGIN_LD="$withval"
20609 cat >>confdefs.h <<_ACEOF
20610 #define PLUGIN_LD "$PLUGIN_LD"
20611 _ACEOF
20614 # Check to see if we are using gold instead of ld
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20616 $as_echo_n "checking whether we are using gold... " >&6; }
20617 ld_is_gold=no
20618 if test x$gcc_cv_ld != x; then
20619 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20620 | grep "GNU gold" > /dev/null; then
20621 ld_is_gold=yes
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20625 $as_echo "$ld_is_gold" >&6; }
20627 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20629 case "$ORIGINAL_LD_FOR_TARGET" in
20630 ./collect-ld | ./collect-ld$build_exeext) ;;
20631 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20633 esac
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20636 $as_echo_n "checking what linker to use... " >&6; }
20637 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20638 # Single tree build which includes ld. We want to prefer it
20639 # over whatever linker top-level may have detected, since
20640 # we'll use what we're building after installation anyway.
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20642 $as_echo "newly built ld" >&6; }
20643 in_tree_ld=yes
20644 in_tree_ld_is_elf=no
20645 if (grep 'EMUL = .*elf' ../ld/Makefile \
20646 || grep 'EMUL = .*linux' ../ld/Makefile \
20647 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20648 in_tree_ld_is_elf=yes
20650 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
20652 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20653 if test x$gcc_cv_gld_version != x; then
20654 break
20656 done
20657 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20658 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20659 else
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20661 $as_echo "$gcc_cv_ld" >&6; }
20662 in_tree_ld=no
20665 # Figure out what nm we will be using.
20666 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20667 if test "${gcc_cv_nm+set}" = set; then :
20669 else
20671 if test -f $gcc_cv_binutils_srcdir/configure.in \
20672 && test -f ../binutils/Makefile \
20673 && test x$build = x$host; then
20674 gcc_cv_nm=../binutils/nm-new$build_exeext
20675 elif test -x nm$build_exeext; then
20676 gcc_cv_nm=./nm$build_exeext
20677 elif test -x $NM_FOR_TARGET; then
20678 gcc_cv_nm="$NM_FOR_TARGET"
20679 else
20680 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20681 set dummy $NM_FOR_TARGET; ac_word=$2
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20683 $as_echo_n "checking for $ac_word... " >&6; }
20684 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20685 $as_echo_n "(cached) " >&6
20686 else
20687 case $gcc_cv_nm in
20688 [\\/]* | ?:[\\/]*)
20689 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20693 for as_dir in $PATH
20695 IFS=$as_save_IFS
20696 test -z "$as_dir" && as_dir=.
20697 for ac_exec_ext in '' $ac_executable_extensions; do
20698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20699 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20701 break 2
20703 done
20704 done
20705 IFS=$as_save_IFS
20708 esac
20710 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20711 if test -n "$gcc_cv_nm"; then
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20713 $as_echo "$gcc_cv_nm" >&6; }
20714 else
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20716 $as_echo "no" >&6; }
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20724 $as_echo_n "checking what nm to use... " >&6; }
20725 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20726 # Single tree build which includes binutils.
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20728 $as_echo "newly built nm" >&6; }
20729 in_tree_nm=yes
20730 else
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20732 $as_echo "$gcc_cv_nm" >&6; }
20733 in_tree_nm=no
20736 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20738 case "$ORIGINAL_NM_FOR_TARGET" in
20739 ./nm | ./nm$build_exeext) ;;
20740 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20742 esac
20745 # Figure out what objdump we will be using.
20746 if test "${gcc_cv_objdump+set}" = set; then :
20748 else
20750 if test -f $gcc_cv_binutils_srcdir/configure.in \
20751 && test -f ../binutils/Makefile \
20752 && test x$build = x$host; then
20753 # Single tree build which includes binutils.
20754 gcc_cv_objdump=../binutils/objdump$build_exeext
20755 elif test -x objdump$build_exeext; then
20756 gcc_cv_objdump=./objdump$build_exeext
20757 elif test -x $OBJDUMP_FOR_TARGET; then
20758 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20759 else
20760 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20761 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20763 $as_echo_n "checking for $ac_word... " >&6; }
20764 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20765 $as_echo_n "(cached) " >&6
20766 else
20767 case $gcc_cv_objdump in
20768 [\\/]* | ?:[\\/]*)
20769 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20773 for as_dir in $PATH
20775 IFS=$as_save_IFS
20776 test -z "$as_dir" && as_dir=.
20777 for ac_exec_ext in '' $ac_executable_extensions; do
20778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20779 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20781 break 2
20783 done
20784 done
20785 IFS=$as_save_IFS
20788 esac
20790 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20791 if test -n "$gcc_cv_objdump"; then
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20793 $as_echo "$gcc_cv_objdump" >&6; }
20794 else
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20796 $as_echo "no" >&6; }
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20804 $as_echo_n "checking what objdump to use... " >&6; }
20805 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20806 # Single tree build which includes binutils.
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20808 $as_echo "newly built objdump" >&6; }
20809 elif test x$gcc_cv_objdump = x; then
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20811 $as_echo "not found" >&6; }
20812 else
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20814 $as_echo "$gcc_cv_objdump" >&6; }
20817 # Figure out what readelf we will be using.
20818 if test "${gcc_cv_readelf+set}" = set; then :
20820 else
20822 if test -f $gcc_cv_binutils_srcdir/configure.in \
20823 && test -f ../binutils/Makefile \
20824 && test x$build = x$host; then
20825 # Single tree build which includes binutils.
20826 gcc_cv_readelf=../binutils/readelf$build_exeext
20827 elif test -x readelf$build_exeext; then
20828 gcc_cv_readelf=./readelf$build_exeext
20829 else
20830 # Extract the first word of "readelf", so it can be a program name with args.
20831 set dummy readelf; ac_word=$2
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20833 $as_echo_n "checking for $ac_word... " >&6; }
20834 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20835 $as_echo_n "(cached) " >&6
20836 else
20837 case $gcc_cv_readelf in
20838 [\\/]* | ?:[\\/]*)
20839 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20843 for as_dir in $PATH
20845 IFS=$as_save_IFS
20846 test -z "$as_dir" && as_dir=.
20847 for ac_exec_ext in '' $ac_executable_extensions; do
20848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20849 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20851 break 2
20853 done
20854 done
20855 IFS=$as_save_IFS
20858 esac
20860 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20861 if test -n "$gcc_cv_readelf"; then
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20863 $as_echo "$gcc_cv_readelf" >&6; }
20864 else
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20866 $as_echo "no" >&6; }
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20874 $as_echo_n "checking what readelf to use... " >&6; }
20875 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20876 # Single tree build which includes binutils.
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20878 $as_echo "newly built readelf" >&6; }
20879 elif test x$gcc_cv_readelf = x; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20881 $as_echo "not found" >&6; }
20882 else
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20884 $as_echo "$gcc_cv_readelf" >&6; }
20887 # Figure out what assembler alignment features are present.
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20889 $as_echo_n "checking assembler flags... " >&6; }
20890 if test "${gcc_cv_as_flags+set}" = set; then :
20891 $as_echo_n "(cached) " >&6
20892 else
20893 case "$target" in
20894 i[34567]86-*-linux*)
20895 gcc_cv_as_flags="--32"
20898 gcc_cv_as_flags=" "
20900 esac
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20903 $as_echo "$gcc_cv_as_flags" >&6; }
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20906 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20907 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20908 $as_echo_n "(cached) " >&6
20909 else
20910 gcc_cv_as_balign_and_p2align=no
20911 if test $in_tree_gas = yes; then
20912 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20913 then gcc_cv_as_balign_and_p2align=yes
20915 elif test x$gcc_cv_as != x; then
20916 echo '.balign 4
20917 .p2align 2' > conftest.s
20918 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20920 (eval $ac_try) 2>&5
20921 ac_status=$?
20922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20923 test $ac_status = 0; }; }
20924 then
20925 gcc_cv_as_balign_and_p2align=yes
20926 else
20927 echo "configure: failed program was" >&5
20928 cat conftest.s >&5
20930 rm -f conftest.o conftest.s
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20934 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20935 if test $gcc_cv_as_balign_and_p2align = yes; then
20937 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20942 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20943 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20944 $as_echo_n "(cached) " >&6
20945 else
20946 gcc_cv_as_max_skip_p2align=no
20947 if test $in_tree_gas = yes; then
20948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20949 then gcc_cv_as_max_skip_p2align=yes
20951 elif test x$gcc_cv_as != x; then
20952 echo '.p2align 4,,7' > conftest.s
20953 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20955 (eval $ac_try) 2>&5
20956 ac_status=$?
20957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20958 test $ac_status = 0; }; }
20959 then
20960 gcc_cv_as_max_skip_p2align=yes
20961 else
20962 echo "configure: failed program was" >&5
20963 cat conftest.s >&5
20965 rm -f conftest.o conftest.s
20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20969 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20970 if test $gcc_cv_as_max_skip_p2align = yes; then
20972 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20977 $as_echo_n "checking assembler for .literal16... " >&6; }
20978 if test "${gcc_cv_as_literal16+set}" = set; then :
20979 $as_echo_n "(cached) " >&6
20980 else
20981 gcc_cv_as_literal16=no
20982 if test $in_tree_gas = yes; then
20983 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20984 then gcc_cv_as_literal16=yes
20986 elif test x$gcc_cv_as != x; then
20987 echo '.literal16' > conftest.s
20988 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20993 test $ac_status = 0; }; }
20994 then
20995 gcc_cv_as_literal16=yes
20996 else
20997 echo "configure: failed program was" >&5
20998 cat conftest.s >&5
21000 rm -f conftest.o conftest.s
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21004 $as_echo "$gcc_cv_as_literal16" >&6; }
21005 if test $gcc_cv_as_literal16 = yes; then
21007 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21012 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21013 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21015 else
21016 gcc_cv_as_subsection_m1=no
21017 if test $in_tree_gas = yes; then
21018 if test $in_tree_gas_is_elf = yes \
21019 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21020 then gcc_cv_as_subsection_m1=yes
21022 elif test x$gcc_cv_as != x; then
21023 echo 'conftest_label1: .word 0
21024 .subsection -1
21025 conftest_label2: .word 0
21026 .previous' > conftest.s
21027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21032 test $ac_status = 0; }; }
21033 then
21034 if test x$gcc_cv_nm != x; then
21035 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21036 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21037 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21038 then :
21039 else gcc_cv_as_subsection_m1=yes
21041 rm -f conftest.nm1 conftest.nm2
21043 else
21044 echo "configure: failed program was" >&5
21045 cat conftest.s >&5
21047 rm -f conftest.o conftest.s
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21051 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21052 if test $gcc_cv_as_subsection_m1 = yes; then
21054 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21059 $as_echo_n "checking assembler for .weak... " >&6; }
21060 if test "${gcc_cv_as_weak+set}" = set; then :
21061 $as_echo_n "(cached) " >&6
21062 else
21063 gcc_cv_as_weak=no
21064 if test $in_tree_gas = yes; then
21065 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21066 then gcc_cv_as_weak=yes
21068 elif test x$gcc_cv_as != x; then
21069 echo ' .weak foobar' > conftest.s
21070 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21072 (eval $ac_try) 2>&5
21073 ac_status=$?
21074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21075 test $ac_status = 0; }; }
21076 then
21077 gcc_cv_as_weak=yes
21078 else
21079 echo "configure: failed program was" >&5
21080 cat conftest.s >&5
21082 rm -f conftest.o conftest.s
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21086 $as_echo "$gcc_cv_as_weak" >&6; }
21087 if test $gcc_cv_as_weak = yes; then
21089 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21094 $as_echo_n "checking assembler for .weakref... " >&6; }
21095 if test "${gcc_cv_as_weakref+set}" = set; then :
21096 $as_echo_n "(cached) " >&6
21097 else
21098 gcc_cv_as_weakref=no
21099 if test $in_tree_gas = yes; then
21100 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21101 then gcc_cv_as_weakref=yes
21103 elif test x$gcc_cv_as != x; then
21104 echo ' .weakref foobar, barfnot' > conftest.s
21105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21107 (eval $ac_try) 2>&5
21108 ac_status=$?
21109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21110 test $ac_status = 0; }; }
21111 then
21112 gcc_cv_as_weakref=yes
21113 else
21114 echo "configure: failed program was" >&5
21115 cat conftest.s >&5
21117 rm -f conftest.o conftest.s
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21121 $as_echo "$gcc_cv_as_weakref" >&6; }
21122 if test $gcc_cv_as_weakref = yes; then
21124 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21129 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21130 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21131 $as_echo_n "(cached) " >&6
21132 else
21133 gcc_cv_as_nsubspa_comdat=no
21134 if test $in_tree_gas = yes; then
21135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21136 then gcc_cv_as_nsubspa_comdat=yes
21138 elif test x$gcc_cv_as != x; then
21139 echo ' .SPACE $TEXT$
21140 .NSUBSPA $CODE$,COMDAT' > conftest.s
21141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21143 (eval $ac_try) 2>&5
21144 ac_status=$?
21145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21146 test $ac_status = 0; }; }
21147 then
21148 gcc_cv_as_nsubspa_comdat=yes
21149 else
21150 echo "configure: failed program was" >&5
21151 cat conftest.s >&5
21153 rm -f conftest.o conftest.s
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21157 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21158 if test $gcc_cv_as_nsubspa_comdat = yes; then
21160 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21164 # .hidden needs to be supported in both the assembler and the linker,
21165 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21166 # This is irritatingly difficult to feature test for; we have to check the
21167 # date string after the version number. If we've got an in-tree
21168 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21169 # to be safe.
21170 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21172 $as_echo_n "checking assembler for .hidden... " >&6; }
21173 if test "${gcc_cv_as_hidden+set}" = set; then :
21174 $as_echo_n "(cached) " >&6
21175 else
21176 gcc_cv_as_hidden=no
21177 if test $in_tree_gas = yes; then
21178 if test $in_tree_gas_is_elf = yes \
21179 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21180 then gcc_cv_as_hidden=yes
21182 elif test x$gcc_cv_as != x; then
21183 echo ' .hidden foobar
21184 foobar:' > conftest.s
21185 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21187 (eval $ac_try) 2>&5
21188 ac_status=$?
21189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21190 test $ac_status = 0; }; }
21191 then
21192 gcc_cv_as_hidden=yes
21193 else
21194 echo "configure: failed program was" >&5
21195 cat conftest.s >&5
21197 rm -f conftest.o conftest.s
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21201 $as_echo "$gcc_cv_as_hidden" >&6; }
21204 if test $in_tree_ld != yes ; then
21205 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21206 if test x"$ld_is_gold" = xyes; then
21207 gcc_cv_ld_hidden=yes
21208 elif echo "$ld_ver" | grep GNU > /dev/null; then
21209 ld_vers=`echo $ld_ver | sed -n \
21210 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21211 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'`
21212 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21213 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21214 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21215 else
21216 case "${target}" in
21217 *-*-solaris2*)
21219 # Solaris 2 ld -V output looks like this for a regular version:
21221 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21223 # but test versions add stuff at the end:
21225 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21227 ld_ver=`$gcc_cv_ld -V 2>&1`
21228 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21229 ld_vers=`echo $ld_ver | sed -n \
21230 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21231 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21232 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21235 esac
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21240 $as_echo_n "checking linker for .hidden support... " >&6; }
21241 if test "${gcc_cv_ld_hidden+set}" = set; then :
21242 $as_echo_n "(cached) " >&6
21243 else
21244 if test $in_tree_ld = yes ; then
21245 gcc_cv_ld_hidden=no
21246 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 \
21247 && test $in_tree_ld_is_elf = yes; then
21248 gcc_cv_ld_hidden=yes
21250 else
21251 gcc_cv_ld_hidden=yes
21252 if echo "$ld_ver" | grep GNU > /dev/null; then
21253 if test 0"$ld_date" -lt 20020404; then
21254 if test -n "$ld_date"; then
21255 # If there was date string, but was earlier than 2002-04-04, fail
21256 gcc_cv_ld_hidden=no
21257 elif test -z "$ld_vers"; then
21258 # If there was no date string nor ld version number, something is wrong
21259 gcc_cv_ld_hidden=no
21260 else
21261 test -z "$ld_vers_patch" && ld_vers_patch=0
21262 if test "$ld_vers_major" -lt 2; then
21263 gcc_cv_ld_hidden=no
21264 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21265 gcc_cv_ld_hidden="no"
21266 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21267 gcc_cv_ld_hidden=no
21271 else
21272 case "${target}" in
21273 hppa64*-*-hpux* | ia64*-*-hpux*)
21274 gcc_cv_ld_hidden=yes
21276 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21277 gcc_cv_ld_hidden=yes
21280 gcc_cv_ld_hidden=no
21282 esac
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21287 $as_echo "$gcc_cv_ld_hidden" >&6; }
21288 libgcc_visibility=no
21291 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21292 libgcc_visibility=yes
21294 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21299 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21300 gcc_cv_ld_ro_rw_mix=unknown
21301 if test $in_tree_ld = yes ; then
21302 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 \
21303 && test $in_tree_ld_is_elf = yes; then
21304 gcc_cv_ld_ro_rw_mix=read-write
21306 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21307 echo '.section myfoosect, "a"' > conftest1.s
21308 echo '.section myfoosect, "aw"' > conftest2.s
21309 echo '.byte 1' >> conftest2.s
21310 echo '.section myfoosect, "a"' > conftest3.s
21311 echo '.byte 0' >> conftest3.s
21312 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21313 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21314 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21315 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21316 conftest2.o conftest3.o > /dev/null 2>&1; then
21317 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21318 | sed -e '/myfoosect/!d' -e N`
21319 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21320 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21321 gcc_cv_ld_ro_rw_mix=read-only
21322 else
21323 gcc_cv_ld_ro_rw_mix=read-write
21327 rm -f conftest.* conftest[123].*
21329 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21331 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21335 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21337 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21339 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21340 if test "${gcc_cv_as_leb128+set}" = set; then :
21341 $as_echo_n "(cached) " >&6
21342 else
21343 gcc_cv_as_leb128=no
21344 if test $in_tree_gas = yes; then
21345 if test $in_tree_gas_is_elf = yes \
21346 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21347 then gcc_cv_as_leb128=yes
21349 elif test x$gcc_cv_as != x; then
21350 echo ' .data
21351 .uleb128 L2 - L1
21353 .uleb128 1280
21354 .sleb128 -1010
21355 L2:' > conftest.s
21356 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21358 (eval $ac_try) 2>&5
21359 ac_status=$?
21360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21361 test $ac_status = 0; }; }
21362 then
21363 # GAS versions before 2.11 do not support uleb128,
21364 # despite appearing to.
21365 # ??? There exists an elf-specific test that will crash
21366 # the assembler. Perhaps it's better to figure out whether
21367 # arbitrary sections are supported and try the test.
21368 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21369 if echo "$as_ver" | grep GNU > /dev/null; then
21370 as_vers=`echo $as_ver | sed -n \
21371 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21372 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21373 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21374 if test $as_major -eq 2 && test $as_minor -lt 11
21375 then :
21376 else gcc_cv_as_leb128=yes
21379 else
21380 echo "configure: failed program was" >&5
21381 cat conftest.s >&5
21383 rm -f conftest.o conftest.s
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21387 $as_echo "$gcc_cv_as_leb128" >&6; }
21388 if test $gcc_cv_as_leb128 = yes; then
21390 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21394 # Check if we have assembler support for unwind directives.
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21396 $as_echo_n "checking assembler for cfi directives... " >&6; }
21397 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21398 $as_echo_n "(cached) " >&6
21399 else
21400 gcc_cv_as_cfi_directive=no
21401 if test x$gcc_cv_as != x; then
21402 echo ' .text
21403 .cfi_startproc
21404 .cfi_offset 0, 0
21405 .cfi_same_value 1
21406 .cfi_def_cfa 1, 2
21407 .cfi_escape 1, 2, 3, 4, 5
21408 .cfi_endproc' > conftest.s
21409 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21414 test $ac_status = 0; }; }
21415 then
21416 case "$target" in
21417 *-*-solaris*)
21418 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21419 # read-only and read-write sections, we need to make sure that the
21420 # assembler used emits read-write .eh_frame sections.
21421 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21422 if test "x$gcc_cv_objdump" != x; then
21423 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21424 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21425 gcc_cv_as_cfi_directive=no
21426 else
21427 case "$target" in
21428 i?86-*-solaris2.1[0-9]*)
21429 # On Solaris/x86, make sure that GCC and gas agree on using
21430 # read-only .eh_frame sections for 64-bit.
21431 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21432 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21433 sed -e /.eh_frame/!d -e N | \
21434 grep READONLY > /dev/null; then
21435 gcc_cv_as_cfi_directive=yes
21436 else
21437 gcc_cv_as_cfi_directive=no
21441 gcc_cv_as_cfi_directive=yes
21443 esac
21445 else
21446 # no objdump, err on the side of caution
21447 gcc_cv_as_cfi_directive=no
21449 else
21450 gcc_cv_as_cfi_directive=yes
21453 *-*-*)
21454 gcc_cv_as_cfi_directive=yes
21456 esac
21457 else
21458 echo "configure: failed program was" >&5
21459 cat conftest.s >&5
21461 rm -f conftest.o conftest.s
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21465 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21467 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21469 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21470 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21471 $as_echo_n "(cached) " >&6
21472 else
21473 gcc_cv_as_cfi_advance_working=no
21474 if test x$gcc_cv_as != x; then
21475 echo ' .text
21476 .cfi_startproc
21477 .cfi_adjust_cfa_offset 64
21478 .skip 75040, 0
21479 .cfi_adjust_cfa_offset 128
21480 .cfi_endproc' > conftest.s
21481 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21483 (eval $ac_try) 2>&5
21484 ac_status=$?
21485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21486 test $ac_status = 0; }; }
21487 then
21489 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21490 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21491 gcc_cv_as_cfi_advance_working=yes
21494 else
21495 echo "configure: failed program was" >&5
21496 cat conftest.s >&5
21498 rm -f conftest.o conftest.s
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21502 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21504 else
21505 # no readelf, err on the side of caution
21506 gcc_cv_as_cfi_advance_working=no
21509 cat >>confdefs.h <<_ACEOF
21510 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21511 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21512 _ACEOF
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21516 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21517 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21518 $as_echo_n "(cached) " >&6
21519 else
21520 gcc_cv_as_cfi_personality_directive=no
21521 if test x$gcc_cv_as != x; then
21522 echo ' .text
21523 .cfi_startproc
21524 .cfi_personality 0, symbol
21525 .cfi_endproc' > conftest.s
21526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21528 (eval $ac_try) 2>&5
21529 ac_status=$?
21530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21531 test $ac_status = 0; }; }
21532 then
21533 gcc_cv_as_cfi_personality_directive=yes
21534 else
21535 echo "configure: failed program was" >&5
21536 cat conftest.s >&5
21538 rm -f conftest.o conftest.s
21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21542 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21545 cat >>confdefs.h <<_ACEOF
21546 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21547 then echo 1; else echo 0; fi`
21548 _ACEOF
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21552 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21553 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21555 else
21556 gcc_cv_as_cfi_sections_directive=no
21557 if test x$gcc_cv_as != x; then
21558 echo ' .text
21559 .cfi_sections .debug_frame, .eh_frame
21560 .cfi_startproc
21561 .cfi_endproc' > conftest.s
21562 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21564 (eval $ac_try) 2>&5
21565 ac_status=$?
21566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21567 test $ac_status = 0; }; }
21568 then
21569 gcc_cv_as_cfi_sections_directive=yes
21570 else
21571 echo "configure: failed program was" >&5
21572 cat conftest.s >&5
21574 rm -f conftest.o conftest.s
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21578 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21581 cat >>confdefs.h <<_ACEOF
21582 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21583 then echo 1; else echo 0; fi`
21584 _ACEOF
21587 # GAS versions up to and including 2.11.0 may mis-optimize
21588 # .eh_frame data.
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21590 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21591 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21592 $as_echo_n "(cached) " >&6
21593 else
21594 gcc_cv_as_eh_frame=no
21595 if test $in_tree_gas = yes; then
21596 if test $in_tree_gas_is_elf = yes \
21597 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21598 then gcc_cv_as_eh_frame=yes
21600 elif test x$gcc_cv_as != x; then
21601 echo ' .text
21602 .LFB1:
21603 .4byte 0
21604 .L1:
21605 .4byte 0
21606 .LFE1:
21607 .section .eh_frame,"aw",@progbits
21608 __FRAME_BEGIN__:
21609 .4byte .LECIE1-.LSCIE1
21610 .LSCIE1:
21611 .4byte 0x0
21612 .byte 0x1
21613 .ascii "z\0"
21614 .byte 0x1
21615 .byte 0x78
21616 .byte 0x1a
21617 .byte 0x0
21618 .byte 0x4
21619 .4byte 1
21620 .p2align 1
21621 .LECIE1:
21622 .LSFDE1:
21623 .4byte .LEFDE1-.LASFDE1
21624 .LASFDE1:
21625 .4byte .LASFDE1-__FRAME_BEGIN__
21626 .4byte .LFB1
21627 .4byte .LFE1-.LFB1
21628 .byte 0x4
21629 .4byte .LFE1-.LFB1
21630 .byte 0x4
21631 .4byte .L1-.LFB1
21632 .LEFDE1:' > conftest.s
21633 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21638 test $ac_status = 0; }; }
21639 then
21640 cat > conftest.lit <<EOF
21641 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21642 0010 01000000 12000000 18000000 00000000 ................
21643 0020 08000000 04080000 0044 .........D
21645 cat > conftest.big <<EOF
21646 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21647 0010 00000001 00000012 00000018 00000000 ................
21648 0020 00000008 04000000 0844 .........D
21650 # If the assembler didn't choke, and we can objdump,
21651 # and we got the correct data, then succeed.
21652 # The text in the here-document typically retains its unix-style line
21653 # endings, while the output of objdump will use host line endings.
21654 # Therefore, use diff -b for the comparisons.
21655 if test x$gcc_cv_objdump != x \
21656 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21657 | tail -3 > conftest.got \
21658 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21659 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21660 then
21661 gcc_cv_as_eh_frame=yes
21662 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21664 (eval $ac_try) 2>&5
21665 ac_status=$?
21666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21667 test $ac_status = 0; }; }; then
21668 gcc_cv_as_eh_frame=buggy
21669 else
21670 # Uh oh, what do we do now?
21671 gcc_cv_as_eh_frame=no
21673 else
21674 echo "configure: failed program was" >&5
21675 cat conftest.s >&5
21677 rm -f conftest.o conftest.s
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21681 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21684 if test $gcc_cv_as_eh_frame = buggy; then
21686 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21691 $as_echo_n "checking assembler for section merging support... " >&6; }
21692 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21693 $as_echo_n "(cached) " >&6
21694 else
21695 gcc_cv_as_shf_merge=no
21696 if test $in_tree_gas = yes; then
21697 if test $in_tree_gas_is_elf = yes \
21698 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21699 then gcc_cv_as_shf_merge=yes
21701 elif test x$gcc_cv_as != x; then
21702 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21703 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21705 (eval $ac_try) 2>&5
21706 ac_status=$?
21707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21708 test $ac_status = 0; }; }
21709 then
21710 gcc_cv_as_shf_merge=yes
21711 else
21712 echo "configure: failed program was" >&5
21713 cat conftest.s >&5
21715 rm -f conftest.o conftest.s
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21719 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21721 if test $gcc_cv_as_shf_merge = no; then
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21723 $as_echo_n "checking assembler for section merging support... " >&6; }
21724 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21725 $as_echo_n "(cached) " >&6
21726 else
21727 gcc_cv_as_shf_merge=no
21728 if test $in_tree_gas = yes; then
21729 if test $in_tree_gas_is_elf = yes \
21730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21731 then gcc_cv_as_shf_merge=yes
21733 elif test x$gcc_cv_as != x; then
21734 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21737 (eval $ac_try) 2>&5
21738 ac_status=$?
21739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21740 test $ac_status = 0; }; }
21741 then
21742 gcc_cv_as_shf_merge=yes
21743 else
21744 echo "configure: failed program was" >&5
21745 cat conftest.s >&5
21747 rm -f conftest.o conftest.s
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21751 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21755 cat >>confdefs.h <<_ACEOF
21756 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21757 _ACEOF
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21761 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21762 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21763 $as_echo_n "(cached) " >&6
21764 else
21765 gcc_cv_as_comdat_group=no
21766 if test $in_tree_gas = yes; then
21767 if test $in_tree_gas_is_elf = yes \
21768 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21769 then gcc_cv_as_comdat_group=yes
21771 elif test x$gcc_cv_as != x; then
21772 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21773 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21775 (eval $ac_try) 2>&5
21776 ac_status=$?
21777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21778 test $ac_status = 0; }; }
21779 then
21780 gcc_cv_as_comdat_group=yes
21781 else
21782 echo "configure: failed program was" >&5
21783 cat conftest.s >&5
21785 rm -f conftest.o conftest.s
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21789 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21791 if test $gcc_cv_as_comdat_group = yes; then
21792 gcc_cv_as_comdat_group_percent=no
21793 else
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21795 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21796 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21797 $as_echo_n "(cached) " >&6
21798 else
21799 gcc_cv_as_comdat_group_percent=no
21800 if test $in_tree_gas = yes; then
21801 if test $in_tree_gas_is_elf = yes \
21802 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21803 then gcc_cv_as_comdat_group_percent=yes
21805 elif test x$gcc_cv_as != x; then
21806 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21812 test $ac_status = 0; }; }
21813 then
21814 gcc_cv_as_comdat_group_percent=yes
21815 else
21816 echo "configure: failed program was" >&5
21817 cat conftest.s >&5
21819 rm -f conftest.o conftest.s
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21823 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21826 if test x"$ld_is_gold" = xyes; then
21827 comdat_group=yes
21828 elif test $in_tree_ld = yes ; then
21829 comdat_group=no
21830 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 \
21831 && test $in_tree_ld_is_elf = yes; then
21832 comdat_group=yes
21834 elif echo "$ld_ver" | grep GNU > /dev/null; then
21835 comdat_group=yes
21836 if test 0"$ld_date" -lt 20050308; then
21837 if test -n "$ld_date"; then
21838 # If there was date string, but was earlier than 2005-03-08, fail
21839 comdat_group=no
21840 elif test "$ld_vers_major" -lt 2; then
21841 comdat_group=no
21842 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21843 comdat_group=no
21846 else
21847 case "${target}" in
21848 *-*-solaris2.1[1-9]*)
21849 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21850 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21851 # version 1.688.
21853 # FIXME: Maybe need to refine later when COMDAT group support with
21854 # Sun as is implemented.
21855 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21856 comdat_group=yes
21857 else
21858 comdat_group=no
21862 # Assume linkers other than GNU ld don't support COMDAT group.
21863 comdat_group=no
21865 esac
21867 # Allow overriding the automatic COMDAT group tests above.
21868 # Check whether --enable-comdat was given.
21869 if test "${enable_comdat+set}" = set; then :
21870 enableval=$enable_comdat; comdat_group="$enable_comdat"
21873 if test $comdat_group = no; then
21874 gcc_cv_as_comdat_group=no
21875 gcc_cv_as_comdat_group_percent=no
21878 cat >>confdefs.h <<_ACEOF
21879 #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`
21880 _ACEOF
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21884 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21885 if test "${gcc_cv_as_discriminator+set}" = set; then :
21886 $as_echo_n "(cached) " >&6
21887 else
21888 gcc_cv_as_discriminator=no
21889 if test $in_tree_gas = yes; then
21890 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21891 then gcc_cv_as_discriminator=yes
21893 elif test x$gcc_cv_as != x; then
21894 echo ' .text
21895 .file 1 "conf.c"
21896 .loc 1 1 0 discriminator 1' > conftest.s
21897 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21902 test $ac_status = 0; }; }
21903 then
21904 gcc_cv_as_discriminator=yes
21905 else
21906 echo "configure: failed program was" >&5
21907 cat conftest.s >&5
21909 rm -f conftest.o conftest.s
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21913 $as_echo "$gcc_cv_as_discriminator" >&6; }
21914 if test $gcc_cv_as_discriminator = yes; then
21916 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21920 # Thread-local storage - the check is heavily parameterized.
21921 conftest_s=
21922 tls_first_major=
21923 tls_first_minor=
21924 tls_as_opt=
21925 case "$target" in
21926 alpha*-*-*)
21927 conftest_s='
21928 .section ".tdata","awT",@progbits
21929 foo: .long 25
21930 .text
21931 ldq $27,__tls_get_addr($29) !literal!1
21932 lda $16,foo($29) !tlsgd!1
21933 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21934 ldq $27,__tls_get_addr($29) !literal!2
21935 lda $16,foo($29) !tlsldm!2
21936 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21937 ldq $1,foo($29) !gotdtprel
21938 ldah $2,foo($29) !dtprelhi
21939 lda $3,foo($2) !dtprello
21940 lda $4,foo($29) !dtprel
21941 ldq $1,foo($29) !gottprel
21942 ldah $2,foo($29) !tprelhi
21943 lda $3,foo($2) !tprello
21944 lda $4,foo($29) !tprel'
21945 tls_first_major=2
21946 tls_first_minor=13
21947 tls_as_opt=--fatal-warnings
21949 cris-*-*|crisv32-*-*)
21950 conftest_s='
21951 .section ".tdata","awT",@progbits
21952 x: .long 25
21953 .text
21954 move.d x:IE,$r10
21955 nop'
21956 tls_first_major=2
21957 tls_first_minor=20
21958 tls_as_opt=--fatal-warnings
21960 frv*-*-*)
21961 conftest_s='
21962 .section ".tdata","awT",@progbits
21963 x: .long 25
21964 .text
21965 call #gettlsoff(x)'
21966 tls_first_major=2
21967 tls_first_minor=14
21969 hppa*-*-linux*)
21970 conftest_s='
21971 t1: .reg %r20
21972 t2: .reg %r21
21973 gp: .reg %r19
21974 .section ".tdata","awT",@progbits
21975 foo: .long 25
21976 .text
21977 .align 4
21978 addil LT%foo-$tls_gdidx$,gp
21979 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21980 b __tls_get_addr
21982 addil LT%foo-$tls_ldidx$,gp
21983 b __tls_get_addr
21984 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21985 addil LR%foo-$tls_dtpoff$,%ret0
21986 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21987 mfctl %cr27,%t1
21988 addil LT%foo-$tls_ieoff$,gp
21989 ldw RT%foo-$tls_ieoff$(%r1),%t2
21990 add %t1,%t2,%t3
21991 mfctl %cr27,%t1
21992 addil LR%foo-$tls_leoff$,%t1
21993 ldo RR%foo-$tls_leoff$(%r1),%t2'
21994 tls_first_major=2
21995 tls_first_minor=15
21996 tls_as_opt=--fatal-warnings
21998 arm*-*-*)
21999 conftest_s='
22000 .section ".tdata","awT",%progbits
22001 foo: .long 25
22002 .text
22003 .word foo(gottpoff)
22004 .word foo(tpoff)
22005 .word foo(tlsgd)
22006 .word foo(tlsldm)
22007 .word foo(tlsldo)'
22008 tls_first_major=2
22009 tls_first_minor=17
22011 i[34567]86-*-*)
22012 case "$target" in
22013 i[34567]86-*-solaris2.[56789]*)
22014 # TLS was introduced in the Solaris 9 4/04 release but
22015 # we do not enable it by default on Solaris 9 either.
22016 if test "x$enable_tls" = xyes ; then
22017 on_solaris=yes
22018 else
22019 enable_tls=no;
22022 i[34567]86-*-solaris2.*)
22023 on_solaris=yes
22026 on_solaris=no
22028 esac
22029 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22030 conftest_s='
22031 .section .tdata,"awt",@progbits'
22032 tls_first_major=0
22033 tls_first_minor=0
22035 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22037 else
22038 conftest_s='
22039 .section ".tdata","awT",@progbits'
22040 tls_first_major=2
22041 tls_first_minor=14
22042 tls_as_opt="--fatal-warnings"
22044 conftest_s="$conftest_s
22045 foo: .long 25
22046 .text
22047 movl %gs:0, %eax
22048 leal foo@tlsgd(,%ebx,1), %eax
22049 leal foo@tlsldm(%ebx), %eax
22050 leal foo@dtpoff(%eax), %edx
22051 movl foo@gottpoff(%ebx), %eax
22052 subl foo@gottpoff(%ebx), %eax
22053 addl foo@gotntpoff(%ebx), %eax
22054 movl foo@indntpoff, %eax
22055 movl \$foo@tpoff, %eax
22056 subl \$foo@tpoff, %eax
22057 leal foo@ntpoff(%ecx), %eax"
22059 x86_64-*-*)
22060 conftest_s='
22061 .section ".tdata","awT",@progbits
22062 foo: .long 25
22063 .text
22064 movq %fs:0, %rax
22065 leaq foo@TLSGD(%rip), %rdi
22066 leaq foo@TLSLD(%rip), %rdi
22067 leaq foo@DTPOFF(%rax), %rdx
22068 movq foo@GOTTPOFF(%rip), %rax
22069 movq $foo@TPOFF, %rax'
22070 tls_first_major=2
22071 tls_first_minor=14
22072 tls_as_opt=--fatal-warnings
22074 ia64-*-*)
22075 conftest_s='
22076 .section ".tdata","awT",@progbits
22077 foo: data8 25
22078 .text
22079 addl r16 = @ltoff(@dtpmod(foo#)), gp
22080 addl r17 = @ltoff(@dtprel(foo#)), gp
22081 addl r18 = @ltoff(@tprel(foo#)), gp
22082 addl r19 = @dtprel(foo#), gp
22083 adds r21 = @dtprel(foo#), r13
22084 movl r23 = @dtprel(foo#)
22085 addl r20 = @tprel(foo#), gp
22086 adds r22 = @tprel(foo#), r13
22087 movl r24 = @tprel(foo#)'
22088 tls_first_major=2
22089 tls_first_minor=13
22090 tls_as_opt=--fatal-warnings
22092 mips*-*-*)
22093 conftest_s='
22094 .section .tdata,"awT",@progbits
22096 .word 2
22097 .text
22098 addiu $4, $28, %tlsgd(x)
22099 addiu $4, $28, %tlsldm(x)
22100 lui $4, %dtprel_hi(x)
22101 addiu $4, $4, %dtprel_lo(x)
22102 lw $4, %gottprel(x)($28)
22103 lui $4, %tprel_hi(x)
22104 addiu $4, $4, %tprel_lo(x)'
22105 tls_first_major=2
22106 tls_first_minor=16
22107 tls_as_opt='-32 --fatal-warnings'
22109 m68k-*-*)
22110 conftest_s='
22111 .section .tdata,"awT",@progbits
22113 .word 2
22114 .text
22115 foo:
22116 move.l x@TLSGD(%a5),%a0
22117 move.l x@TLSLDM(%a5),%a0
22118 move.l x@TLSLDO(%a5),%a0
22119 move.l x@TLSIE(%a5),%a0
22120 move.l x@TLSLE(%a5),%a0'
22121 tls_first_major=2
22122 tls_first_minor=19
22123 tls_as_opt='--fatal-warnings'
22125 powerpc-*-*)
22126 conftest_s='
22127 .section ".tdata","awT",@progbits
22128 .align 2
22129 ld0: .space 4
22130 ld1: .space 4
22131 x1: .space 4
22132 x2: .space 4
22133 x3: .space 4
22134 .text
22135 addi 3,31,ld0@got@tlsgd
22136 bl __tls_get_addr
22137 addi 3,31,x1@got@tlsld
22138 bl __tls_get_addr
22139 addi 9,3,x1@dtprel
22140 addis 9,3,x2@dtprel@ha
22141 addi 9,9,x2@dtprel@l
22142 lwz 9,x3@got@tprel(31)
22143 add 9,9,x@tls
22144 addi 9,2,x1@tprel
22145 addis 9,2,x2@tprel@ha
22146 addi 9,9,x2@tprel@l'
22147 tls_first_major=2
22148 tls_first_minor=14
22149 tls_as_opt="-a32 --fatal-warnings"
22151 powerpc64-*-*)
22152 conftest_s='
22153 .section ".tdata","awT",@progbits
22154 .align 3
22155 ld0: .space 8
22156 ld1: .space 8
22157 x1: .space 8
22158 x2: .space 8
22159 x3: .space 8
22160 .text
22161 addi 3,2,ld0@got@tlsgd
22162 bl .__tls_get_addr
22164 addi 3,2,ld1@toc
22165 bl .__tls_get_addr
22167 addi 3,2,x1@got@tlsld
22168 bl .__tls_get_addr
22170 addi 9,3,x1@dtprel
22171 bl .__tls_get_addr
22173 addis 9,3,x2@dtprel@ha
22174 addi 9,9,x2@dtprel@l
22175 bl .__tls_get_addr
22177 ld 9,x3@got@dtprel(2)
22178 add 9,9,3
22179 bl .__tls_get_addr
22180 nop'
22181 tls_first_major=2
22182 tls_first_minor=14
22183 tls_as_opt="-a64 --fatal-warnings"
22185 s390-*-*)
22186 conftest_s='
22187 .section ".tdata","awT",@progbits
22188 foo: .long 25
22189 .text
22190 .long foo@TLSGD
22191 .long foo@TLSLDM
22192 .long foo@DTPOFF
22193 .long foo@NTPOFF
22194 .long foo@GOTNTPOFF
22195 .long foo@INDNTPOFF
22196 l %r1,foo@GOTNTPOFF(%r12)
22197 l %r1,0(%r1):tls_load:foo
22198 bas %r14,0(%r1,%r13):tls_gdcall:foo
22199 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22200 tls_first_major=2
22201 tls_first_minor=14
22202 tls_as_opt="-m31 --fatal-warnings"
22204 s390x-*-*)
22205 conftest_s='
22206 .section ".tdata","awT",@progbits
22207 foo: .long 25
22208 .text
22209 .quad foo@TLSGD
22210 .quad foo@TLSLDM
22211 .quad foo@DTPOFF
22212 .quad foo@NTPOFF
22213 .quad foo@GOTNTPOFF
22214 lg %r1,foo@GOTNTPOFF(%r12)
22215 larl %r1,foo@INDNTPOFF
22216 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22217 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22218 tls_first_major=2
22219 tls_first_minor=14
22220 tls_as_opt="-m64 -Aesame --fatal-warnings"
22222 sh-*-* | sh[34]-*-*)
22223 conftest_s='
22224 .section ".tdata","awT",@progbits
22225 foo: .long 25
22226 .text
22227 .long foo@TLSGD
22228 .long foo@TLSLDM
22229 .long foo@DTPOFF
22230 .long foo@GOTTPOFF
22231 .long foo@TPOFF'
22232 tls_first_major=2
22233 tls_first_minor=13
22234 tls_as_opt=--fatal-warnings
22236 sparc*-*-*)
22237 case "$target" in
22238 sparc*-sun-solaris2.[56789]*)
22239 # TLS was introduced in the Solaris 9 4/04 release but
22240 # we do not enable it by default on Solaris 9 either.
22241 if test "x$enable_tls" = xyes ; then
22242 on_solaris=yes
22243 else
22244 enable_tls=no;
22247 sparc*-sun-solaris2.*)
22248 on_solaris=yes
22251 on_solaris=no
22253 esac
22254 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22255 conftest_s='
22256 .section ".tdata",#alloc,#write,#tls
22257 foo: .long 25
22258 .text
22259 sethi %tgd_hi22(foo), %o0
22260 add %o0, %tgd_lo10(foo), %o1
22261 add %l7, %o1, %o0, %tgd_add(foo)
22262 call __tls_get_addr, %tgd_call(foo)
22263 sethi %tldm_hi22(foo), %l1
22264 add %l1, %tldm_lo10(foo), %l2
22265 add %l7, %l2, %o0, %tldm_add(foo)
22266 call __tls_get_addr, %tldm_call(foo)
22267 sethi %tldo_hix22(foo), %l3
22268 xor %l3, %tldo_lox10(foo), %l4
22269 add %o0, %l4, %l5, %tldo_add(foo)
22270 sethi %tie_hi22(foo), %o3
22271 add %o3, %tie_lo10(foo), %o3
22272 ld [%l7 + %o3], %o2, %tie_ld(foo)
22273 add %g7, %o2, %o4, %tie_add(foo)
22274 sethi %tle_hix22(foo), %l1
22275 xor %l1, %tle_lox10(foo), %o5
22276 ld [%g7 + %o5], %o1'
22277 tls_first_major=0
22278 tls_first_minor=0
22279 else
22280 conftest_s='
22281 .section ".tdata","awT",@progbits
22282 foo: .long 25
22283 .text
22284 sethi %tgd_hi22(foo), %o0
22285 add %o0, %tgd_lo10(foo), %o1
22286 add %l7, %o1, %o0, %tgd_add(foo)
22287 call __tls_get_addr, %tgd_call(foo)
22288 sethi %tldm_hi22(foo), %l1
22289 add %l1, %tldm_lo10(foo), %l2
22290 add %l7, %l2, %o0, %tldm_add(foo)
22291 call __tls_get_addr, %tldm_call(foo)
22292 sethi %tldo_hix22(foo), %l3
22293 xor %l3, %tldo_lox10(foo), %l4
22294 add %o0, %l4, %l5, %tldo_add(foo)
22295 sethi %tie_hi22(foo), %o3
22296 add %o3, %tie_lo10(foo), %o3
22297 ld [%l7 + %o3], %o2, %tie_ld(foo)
22298 add %g7, %o2, %o4, %tie_add(foo)
22299 sethi %tle_hix22(foo), %l1
22300 xor %l1, %tle_lox10(foo), %o5
22301 ld [%g7 + %o5], %o1'
22302 tls_first_major=2
22303 tls_first_minor=14
22304 tls_as_opt="-32 --fatal-warnings"
22307 xtensa*-*-*)
22308 conftest_s='
22309 .section ".tdata","awT",@progbits
22310 foo: .long 25
22311 .text
22312 movi a8, foo@TLSFUNC
22313 movi a10, foo@TLSARG
22314 callx8.tls a8, foo@TLSCALL'
22315 tls_first_major=2
22316 tls_first_minor=19
22318 esac
22319 set_have_as_tls=no
22320 if test "x$enable_tls" = xno ; then
22321 : # TLS explicitly disabled.
22322 elif test "x$enable_tls" = xyes ; then
22323 set_have_as_tls=yes # TLS explicitly enabled.
22324 elif test -z "$tls_first_major"; then
22325 : # If we don't have a check, assume no support.
22326 else
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22328 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22329 if test "${gcc_cv_as_tls+set}" = set; then :
22330 $as_echo_n "(cached) " >&6
22331 else
22332 gcc_cv_as_tls=no
22333 if test $in_tree_gas = yes; then
22334 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22335 then gcc_cv_as_tls=yes
22337 elif test x$gcc_cv_as != x; then
22338 echo "$conftest_s" > conftest.s
22339 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22341 (eval $ac_try) 2>&5
22342 ac_status=$?
22343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22344 test $ac_status = 0; }; }
22345 then
22346 gcc_cv_as_tls=yes
22347 else
22348 echo "configure: failed program was" >&5
22349 cat conftest.s >&5
22351 rm -f conftest.o conftest.s
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22355 $as_echo "$gcc_cv_as_tls" >&6; }
22356 if test $gcc_cv_as_tls = yes; then
22357 set_have_as_tls=yes
22360 if test $set_have_as_tls = yes ; then
22362 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22366 # Target-specific assembler checks.
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22369 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22370 gcc_cv_ld_static_dynamic=no
22371 if test $in_tree_ld = yes ; then
22372 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
22373 gcc_cv_ld_static_dynamic=yes
22375 elif test x$gcc_cv_ld != x; then
22376 # Check if linker supports -Bstatic/-Bdynamic option
22377 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22378 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22379 gcc_cv_ld_static_dynamic=yes
22382 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22384 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22388 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22390 if test x"$demangler_in_ld" = xyes; then
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22392 $as_echo_n "checking linker --demangle support... " >&6; }
22393 gcc_cv_ld_demangle=no
22394 if test $in_tree_ld = yes; then
22395 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 \
22396 gcc_cv_ld_demangle=yes
22398 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22399 # Check if the GNU linker supports --demangle option
22400 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22401 gcc_cv_ld_demangle=yes
22404 if test x"$gcc_cv_ld_demangle" = xyes; then
22406 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22410 $as_echo "$gcc_cv_ld_demangle" >&6; }
22413 case "$target" in
22414 # All TARGET_ABI_OSF targets.
22415 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22417 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22418 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22420 else
22421 gcc_cv_as_alpha_explicit_relocs=no
22422 if test $in_tree_gas = yes; then
22423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22424 then gcc_cv_as_alpha_explicit_relocs=yes
22426 elif test x$gcc_cv_as != x; then
22427 echo ' .set nomacro
22428 .text
22429 extbl $3, $2, $3 !lituse_bytoff!1
22430 ldq $2, a($29) !literal!1
22431 ldq $4, b($29) !literal!2
22432 ldq_u $3, 0($2) !lituse_base!1
22433 ldq $27, f($29) !literal!5
22434 jsr $26, ($27), f !lituse_jsr!5
22435 ldah $29, 0($26) !gpdisp!3
22436 lda $0, c($29) !gprel
22437 ldah $1, d($29) !gprelhigh
22438 lda $1, d($1) !gprellow
22439 lda $29, 0($29) !gpdisp!3' > conftest.s
22440 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22442 (eval $ac_try) 2>&5
22443 ac_status=$?
22444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22445 test $ac_status = 0; }; }
22446 then
22447 gcc_cv_as_alpha_explicit_relocs=yes
22448 else
22449 echo "configure: failed program was" >&5
22450 cat conftest.s >&5
22452 rm -f conftest.o conftest.s
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22456 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22457 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22459 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22463 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22464 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22465 $as_echo_n "(cached) " >&6
22466 else
22467 gcc_cv_as_alpha_jsrdirect_relocs=no
22468 if test $in_tree_gas = yes; then
22469 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22470 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22472 elif test x$gcc_cv_as != x; then
22473 echo ' .set nomacro
22474 .text
22475 ldq $27, a($29) !literal!1
22476 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22477 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22479 (eval $ac_try) 2>&5
22480 ac_status=$?
22481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22482 test $ac_status = 0; }; }
22483 then
22484 gcc_cv_as_alpha_jsrdirect_relocs=yes
22485 else
22486 echo "configure: failed program was" >&5
22487 cat conftest.s >&5
22489 rm -f conftest.o conftest.s
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22493 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22494 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22496 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22501 cris-*-*)
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22503 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22504 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22505 $as_echo_n "(cached) " >&6
22506 else
22507 gcc_cv_as_cris_no_mul_bug=no
22508 if test $in_tree_gas = yes; then
22509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22510 then gcc_cv_as_cris_no_mul_bug=yes
22512 elif test x$gcc_cv_as != x; then
22513 echo '.text' > conftest.s
22514 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22516 (eval $ac_try) 2>&5
22517 ac_status=$?
22518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22519 test $ac_status = 0; }; }
22520 then
22521 gcc_cv_as_cris_no_mul_bug=yes
22522 else
22523 echo "configure: failed program was" >&5
22524 cat conftest.s >&5
22526 rm -f conftest.o conftest.s
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22530 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22531 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22533 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22538 sparc*-*-*)
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22540 $as_echo_n "checking assembler for .register... " >&6; }
22541 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22543 else
22544 gcc_cv_as_sparc_register_op=no
22545 if test x$gcc_cv_as != x; then
22546 echo '.register %g2, #scratch' > conftest.s
22547 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549 (eval $ac_try) 2>&5
22550 ac_status=$?
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }; }
22553 then
22554 gcc_cv_as_sparc_register_op=yes
22555 else
22556 echo "configure: failed program was" >&5
22557 cat conftest.s >&5
22559 rm -f conftest.o conftest.s
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22563 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22564 if test $gcc_cv_as_sparc_register_op = yes; then
22566 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22571 $as_echo_n "checking assembler for -relax option... " >&6; }
22572 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22573 $as_echo_n "(cached) " >&6
22574 else
22575 gcc_cv_as_sparc_relax=no
22576 if test x$gcc_cv_as != x; then
22577 echo '.text' > conftest.s
22578 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22580 (eval $ac_try) 2>&5
22581 ac_status=$?
22582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22583 test $ac_status = 0; }; }
22584 then
22585 gcc_cv_as_sparc_relax=yes
22586 else
22587 echo "configure: failed program was" >&5
22588 cat conftest.s >&5
22590 rm -f conftest.o conftest.s
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22594 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22595 if test $gcc_cv_as_sparc_relax = yes; then
22597 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22602 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22603 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22605 else
22606 gcc_cv_as_sparc_gotdata_op=no
22607 if test x$gcc_cv_as != x; then
22608 echo '.text
22609 foo:
22611 bar:
22612 sethi %gdop_hix22(foo), %g1
22613 xor %g1, %gdop_lox10(foo), %g1
22614 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22615 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22617 (eval $ac_try) 2>&5
22618 ac_status=$?
22619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22620 test $ac_status = 0; }; }
22621 then
22622 if test x$gcc_cv_ld != x \
22623 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22624 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22625 if test x$gcc_cv_objdump != x; then
22626 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22627 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22628 gcc_cv_as_sparc_gotdata_op=no
22629 else
22630 gcc_cv_as_sparc_gotdata_op=yes
22633 else
22634 gcc_cv_as_sparc_gotdata_op=yes
22637 rm -f conftest
22638 else
22639 echo "configure: failed program was" >&5
22640 cat conftest.s >&5
22642 rm -f conftest.o conftest.s
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22646 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22647 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22649 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22654 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22655 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22656 $as_echo_n "(cached) " >&6
22657 else
22658 gcc_cv_as_sparc_ua_pcrel=no
22659 if test x$gcc_cv_as != x; then
22660 echo '.text
22661 foo:
22663 .data
22664 .align 4
22665 .byte 0
22666 .uaword %r_disp32(foo)' > conftest.s
22667 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22669 (eval $ac_try) 2>&5
22670 ac_status=$?
22671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22672 test $ac_status = 0; }; }
22673 then
22674 if test x$gcc_cv_ld != x \
22675 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22676 gcc_cv_as_sparc_ua_pcrel=yes
22678 rm -f conftest
22679 else
22680 echo "configure: failed program was" >&5
22681 cat conftest.s >&5
22683 rm -f conftest.o conftest.s
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22687 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22688 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22690 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22694 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22695 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22696 $as_echo_n "(cached) " >&6
22697 else
22698 gcc_cv_as_sparc_ua_pcrel_hidden=no
22699 if test x$gcc_cv_as != x; then
22700 echo '.data
22701 .align 4
22702 .byte 0x31
22703 .uaword %r_disp32(foo)
22704 .byte 0x32, 0x33, 0x34
22705 .global foo
22706 .hidden foo
22707 foo:
22708 .skip 4' > conftest.s
22709 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22711 (eval $ac_try) 2>&5
22712 ac_status=$?
22713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22714 test $ac_status = 0; }; }
22715 then
22716 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22717 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22718 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22719 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22720 if $gcc_cv_objdump -R conftest 2> /dev/null \
22721 | grep 'DISP32' > /dev/null 2>&1; then
22723 else
22724 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22727 rm -f conftest
22728 else
22729 echo "configure: failed program was" >&5
22730 cat conftest.s >&5
22732 rm -f conftest.o conftest.s
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22736 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22737 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22739 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22743 fi # unaligned pcrel relocs
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22746 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22747 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22748 $as_echo_n "(cached) " >&6
22749 else
22750 gcc_cv_as_sparc_offsetable_lo10=no
22751 if test x$gcc_cv_as != x; then
22752 echo '.text
22753 or %g1, %lo(ab) + 12, %g1
22754 or %g1, %lo(ab + 12), %g1' > conftest.s
22755 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22757 (eval $ac_try) 2>&5
22758 ac_status=$?
22759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22760 test $ac_status = 0; }; }
22761 then
22762 if test x$gcc_cv_objdump != x \
22763 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22764 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22765 gcc_cv_as_sparc_offsetable_lo10=yes
22767 else
22768 echo "configure: failed program was" >&5
22769 cat conftest.s >&5
22771 rm -f conftest.o conftest.s
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22775 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22776 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22778 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22783 i[34567]86-*-* | x86_64-*-*)
22784 case $target_os in
22785 cygwin*)
22786 # Full C++ conformance when using a shared libstdc++-v3 requires some
22787 # support from the Cygwin DLL, which in more recent versions exports
22788 # wrappers to aid in interposing and redirecting operators new, delete,
22789 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22790 # are configuring for a version of Cygwin that exports the wrappers.
22791 if test x$host = x$target; then
22792 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22793 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22794 gcc_ac_cygwin_dll_wrappers=yes
22795 else
22796 gcc_ac_cygwin_dll_wrappers=no
22799 else
22800 # Can't check presence of libc functions during cross-compile, so
22801 # we just have to assume we're building for an up-to-date target.
22802 gcc_ac_cygwin_dll_wrappers=yes
22805 cat >>confdefs.h <<_ACEOF
22806 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22807 _ACEOF
22809 esac
22810 case $target_os in
22811 cygwin* | pe | mingw32*)
22812 # Recent binutils allows the three-operand form of ".comm" on PE. This
22813 # definition is used unconditionally to initialise the default state of
22814 # the target option variable that governs usage of the feature.
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22816 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22817 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22818 $as_echo_n "(cached) " >&6
22819 else
22820 gcc_cv_as_comm_has_align=no
22821 if test $in_tree_gas = yes; then
22822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22823 then gcc_cv_as_comm_has_align=yes
22825 elif test x$gcc_cv_as != x; then
22826 echo '.comm foo,1,32' > conftest.s
22827 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22829 (eval $ac_try) 2>&5
22830 ac_status=$?
22831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22832 test $ac_status = 0; }; }
22833 then
22834 gcc_cv_as_comm_has_align=yes
22835 else
22836 echo "configure: failed program was" >&5
22837 cat conftest.s >&5
22839 rm -f conftest.o conftest.s
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22843 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22846 cat >>confdefs.h <<_ACEOF
22847 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22848 _ACEOF
22850 # Used for DWARF 2 in PE
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22852 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22853 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22854 $as_echo_n "(cached) " >&6
22855 else
22856 gcc_cv_as_ix86_pe_secrel32=no
22857 if test $in_tree_gas = yes; then
22858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22859 then gcc_cv_as_ix86_pe_secrel32=yes
22861 elif test x$gcc_cv_as != x; then
22862 echo '.text
22863 foo: nop
22864 .data
22865 .secrel32 foo' > conftest.s
22866 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22871 test $ac_status = 0; }; }
22872 then
22873 if test x$gcc_cv_ld != x \
22874 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22875 gcc_cv_as_ix86_pe_secrel32=yes
22877 rm -f conftest
22878 else
22879 echo "configure: failed program was" >&5
22880 cat conftest.s >&5
22882 rm -f conftest.o conftest.s
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22886 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22887 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22889 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22893 esac
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22896 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22897 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22898 $as_echo_n "(cached) " >&6
22899 else
22900 gcc_cv_as_ix86_filds=no
22901 if test x$gcc_cv_as != x; then
22902 echo 'filds mem; fists mem' > conftest.s
22903 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22905 (eval $ac_try) 2>&5
22906 ac_status=$?
22907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22908 test $ac_status = 0; }; }
22909 then
22910 gcc_cv_as_ix86_filds=yes
22911 else
22912 echo "configure: failed program was" >&5
22913 cat conftest.s >&5
22915 rm -f conftest.o conftest.s
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22919 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22920 if test $gcc_cv_as_ix86_filds = yes; then
22922 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22927 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22928 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22929 $as_echo_n "(cached) " >&6
22930 else
22931 gcc_cv_as_ix86_fildq=no
22932 if test x$gcc_cv_as != x; then
22933 echo 'fildq mem; fistpq mem' > conftest.s
22934 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22937 ac_status=$?
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; }
22940 then
22941 gcc_cv_as_ix86_fildq=yes
22942 else
22943 echo "configure: failed program was" >&5
22944 cat conftest.s >&5
22946 rm -f conftest.o conftest.s
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22950 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22951 if test $gcc_cv_as_ix86_fildq = yes; then
22953 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22958 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22959 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22960 $as_echo_n "(cached) " >&6
22961 else
22962 gcc_cv_as_ix86_cmov_sun_syntax=no
22963 if test x$gcc_cv_as != x; then
22964 echo 'cmovl.l %edx, %eax' > conftest.s
22965 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22970 test $ac_status = 0; }; }
22971 then
22972 gcc_cv_as_ix86_cmov_sun_syntax=yes
22973 else
22974 echo "configure: failed program was" >&5
22975 cat conftest.s >&5
22977 rm -f conftest.o conftest.s
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22981 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22982 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22984 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22989 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22990 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 gcc_cv_as_ix86_ffreep=no
22994 if test x$gcc_cv_as != x; then
22995 echo 'ffreep %st(1)' > conftest.s
22996 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22998 (eval $ac_try) 2>&5
22999 ac_status=$?
23000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23001 test $ac_status = 0; }; }
23002 then
23003 gcc_cv_as_ix86_ffreep=yes
23004 else
23005 echo "configure: failed program was" >&5
23006 cat conftest.s >&5
23008 rm -f conftest.o conftest.s
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23012 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23013 if test $gcc_cv_as_ix86_ffreep = yes; then
23015 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23020 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23021 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23022 $as_echo_n "(cached) " >&6
23023 else
23024 gcc_cv_as_ix86_sahf=no
23025 if test x$gcc_cv_as != x; then
23026 echo 'sahf' > conftest.s
23027 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23029 (eval $ac_try) 2>&5
23030 ac_status=$?
23031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23032 test $ac_status = 0; }; }
23033 then
23034 gcc_cv_as_ix86_sahf=yes
23035 else
23036 echo "configure: failed program was" >&5
23037 cat conftest.s >&5
23039 rm -f conftest.o conftest.s
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23043 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23044 if test $gcc_cv_as_ix86_sahf = yes; then
23046 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23051 $as_echo_n "checking assembler for swap suffix... " >&6; }
23052 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23053 $as_echo_n "(cached) " >&6
23054 else
23055 gcc_cv_as_ix86_swap=no
23056 if test x$gcc_cv_as != x; then
23057 echo 'movl.s %esp, %ebp' > conftest.s
23058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_ix86_swap=yes
23066 else
23067 echo "configure: failed program was" >&5
23068 cat conftest.s >&5
23070 rm -f conftest.o conftest.s
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23074 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23075 if test $gcc_cv_as_ix86_swap = yes; then
23077 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23082 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23083 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23085 else
23086 gcc_cv_as_ix86_diff_sect_delta=no
23087 if test x$gcc_cv_as != x; then
23088 echo '.section .rodata
23089 .L1:
23090 .long .L2-.L1
23091 .long .L3-.L1
23092 .text
23093 .L3: nop
23094 .L2: nop' > conftest.s
23095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23100 test $ac_status = 0; }; }
23101 then
23102 gcc_cv_as_ix86_diff_sect_delta=yes
23103 else
23104 echo "configure: failed program was" >&5
23105 cat conftest.s >&5
23107 rm -f conftest.o conftest.s
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23111 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23112 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23114 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23118 # This one is used unconditionally by i386.[ch]; it is to be defined
23119 # to 1 if the feature is present, 0 otherwise.
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23121 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23122 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23123 $as_echo_n "(cached) " >&6
23124 else
23125 gcc_cv_as_ix86_gotoff_in_data=no
23126 if test $in_tree_gas = yes; then
23127 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23128 then gcc_cv_as_ix86_gotoff_in_data=yes
23130 elif test x$gcc_cv_as != x; then
23131 echo ' .text
23132 .L0:
23134 .data
23135 .long .L0@GOTOFF' > conftest.s
23136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141 test $ac_status = 0; }; }
23142 then
23143 gcc_cv_as_ix86_gotoff_in_data=yes
23144 else
23145 echo "configure: failed program was" >&5
23146 cat conftest.s >&5
23148 rm -f conftest.o conftest.s
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23152 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23155 cat >>confdefs.h <<_ACEOF
23156 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23157 _ACEOF
23161 ia64*-*-*)
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23163 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23164 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23165 $as_echo_n "(cached) " >&6
23166 else
23167 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23168 if test $in_tree_gas = yes; then
23169 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23170 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23172 elif test x$gcc_cv_as != x; then
23173 echo ' .text
23174 addl r15 = @ltoffx(x#), gp
23176 ld8.mov r16 = [r15], x#' > conftest.s
23177 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23179 (eval $ac_try) 2>&5
23180 ac_status=$?
23181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23182 test $ac_status = 0; }; }
23183 then
23184 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23185 else
23186 echo "configure: failed program was" >&5
23187 cat conftest.s >&5
23189 rm -f conftest.o conftest.s
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23193 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23194 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23196 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23202 powerpc*-*-*)
23203 case $target in
23204 *-*-aix*) conftest_s=' .machine "pwr5"
23205 .csect .text[PR]
23206 mfcr 3,128';;
23207 *-*-darwin*)
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23209 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23210 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23211 $as_echo_n "(cached) " >&6
23212 else
23213 gcc_cv_as_machine_directive=no
23214 if test x$gcc_cv_as != x; then
23215 echo ' .machine ppc7400' > conftest.s
23216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23219 ac_status=$?
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }
23222 then
23223 gcc_cv_as_machine_directive=yes
23224 else
23225 echo "configure: failed program was" >&5
23226 cat conftest.s >&5
23228 rm -f conftest.o conftest.s
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23232 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23234 if test x$gcc_cv_as_machine_directive != xyes; then
23235 echo "*** This target requires an assembler supporting \".machine\"" >&2
23236 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23237 test x$build = x$target && exit 1
23239 conftest_s=' .text
23240 mfcr r3,128';;
23241 *) conftest_s=' .machine power4
23242 .text
23243 mfcr 3,128';;
23244 esac
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23247 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23248 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23249 $as_echo_n "(cached) " >&6
23250 else
23251 gcc_cv_as_powerpc_mfcrf=no
23252 if test $in_tree_gas = yes; then
23253 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23254 then gcc_cv_as_powerpc_mfcrf=yes
23256 elif test x$gcc_cv_as != x; then
23257 echo "$conftest_s" > conftest.s
23258 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23260 (eval $ac_try) 2>&5
23261 ac_status=$?
23262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23263 test $ac_status = 0; }; }
23264 then
23265 gcc_cv_as_powerpc_mfcrf=yes
23266 else
23267 echo "configure: failed program was" >&5
23268 cat conftest.s >&5
23270 rm -f conftest.o conftest.s
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23274 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23275 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23277 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23281 case $target in
23282 *-*-aix*) conftest_s=' .machine "pwr5"
23283 .csect .text[PR]
23284 popcntb 3,3';;
23285 *) conftest_s=' .machine power5
23286 .text
23287 popcntb 3,3';;
23288 esac
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23291 $as_echo_n "checking assembler for popcntb support... " >&6; }
23292 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23293 $as_echo_n "(cached) " >&6
23294 else
23295 gcc_cv_as_powerpc_popcntb=no
23296 if test $in_tree_gas = yes; then
23297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23298 then gcc_cv_as_powerpc_popcntb=yes
23300 elif test x$gcc_cv_as != x; then
23301 echo "$conftest_s" > conftest.s
23302 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23307 test $ac_status = 0; }; }
23308 then
23309 gcc_cv_as_powerpc_popcntb=yes
23310 else
23311 echo "configure: failed program was" >&5
23312 cat conftest.s >&5
23314 rm -f conftest.o conftest.s
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23318 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23319 if test $gcc_cv_as_powerpc_popcntb = yes; then
23321 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23325 case $target in
23326 *-*-aix*) conftest_s=' .machine "pwr5x"
23327 .csect .text[PR]
23328 frin 1,1';;
23329 *) conftest_s=' .machine power5
23330 .text
23331 frin 1,1';;
23332 esac
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23335 $as_echo_n "checking assembler for fp round support... " >&6; }
23336 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23337 $as_echo_n "(cached) " >&6
23338 else
23339 gcc_cv_as_powerpc_fprnd=no
23340 if test $in_tree_gas = yes; then
23341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23342 then gcc_cv_as_powerpc_fprnd=yes
23344 elif test x$gcc_cv_as != x; then
23345 echo "$conftest_s" > conftest.s
23346 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23348 (eval $ac_try) 2>&5
23349 ac_status=$?
23350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23351 test $ac_status = 0; }; }
23352 then
23353 gcc_cv_as_powerpc_fprnd=yes
23354 else
23355 echo "configure: failed program was" >&5
23356 cat conftest.s >&5
23358 rm -f conftest.o conftest.s
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23362 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23363 if test $gcc_cv_as_powerpc_fprnd = yes; then
23365 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23369 case $target in
23370 *-*-aix*) conftest_s=' .machine "pwr6"
23371 .csect .text[PR]
23372 mffgpr 1,3';;
23373 *) conftest_s=' .machine power6
23374 .text
23375 mffgpr 1,3';;
23376 esac
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23379 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23380 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23381 $as_echo_n "(cached) " >&6
23382 else
23383 gcc_cv_as_powerpc_mfpgpr=no
23384 if test $in_tree_gas = yes; then
23385 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23386 then gcc_cv_as_powerpc_mfpgpr=yes
23388 elif test x$gcc_cv_as != x; then
23389 echo "$conftest_s" > conftest.s
23390 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23395 test $ac_status = 0; }; }
23396 then
23397 gcc_cv_as_powerpc_mfpgpr=yes
23398 else
23399 echo "configure: failed program was" >&5
23400 cat conftest.s >&5
23402 rm -f conftest.o conftest.s
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23406 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23407 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23409 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23413 case $target in
23414 *-*-aix*) conftest_s=' .csect .text[PR]
23415 LCF..0:
23416 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23417 *-*-darwin*)
23418 conftest_s=' .text
23419 LCF0:
23420 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23421 *) conftest_s=' .text
23422 .LCF0:
23423 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23424 esac
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23427 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23428 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23429 $as_echo_n "(cached) " >&6
23430 else
23431 gcc_cv_as_powerpc_rel16=no
23432 if test $in_tree_gas = yes; then
23433 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23434 then gcc_cv_as_powerpc_rel16=yes
23436 elif test x$gcc_cv_as != x; then
23437 echo "$conftest_s" > conftest.s
23438 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23440 (eval $ac_try) 2>&5
23441 ac_status=$?
23442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23443 test $ac_status = 0; }; }
23444 then
23445 gcc_cv_as_powerpc_rel16=yes
23446 else
23447 echo "configure: failed program was" >&5
23448 cat conftest.s >&5
23450 rm -f conftest.o conftest.s
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23454 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23455 if test $gcc_cv_as_powerpc_rel16 = yes; then
23457 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23461 case $target in
23462 *-*-aix*) conftest_s=' .machine "pwr6"
23463 .csect .text[PR]
23464 cmpb 3,4,5';;
23465 *) conftest_s=' .machine power6
23466 .text
23467 cmpb 3,4,5';;
23468 esac
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23471 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23472 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23473 $as_echo_n "(cached) " >&6
23474 else
23475 gcc_cv_as_powerpc_cmpb=no
23476 if test $in_tree_gas = yes; then
23477 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23478 then gcc_cv_as_powerpc_cmpb=yes
23480 elif test x$gcc_cv_as != x; then
23481 echo "$conftest_s" > conftest.s
23482 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23487 test $ac_status = 0; }; }
23488 then
23489 gcc_cv_as_powerpc_cmpb=yes
23490 else
23491 echo "configure: failed program was" >&5
23492 cat conftest.s >&5
23494 rm -f conftest.o conftest.s
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23498 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23499 if test $gcc_cv_as_powerpc_cmpb = yes; then
23501 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23505 case $target in
23506 *-*-aix*) conftest_s=' .machine "pwr6"
23507 .csect .text[PR]
23508 dadd 1,2,3';;
23509 *) conftest_s=' .machine power6
23510 .text
23511 dadd 1,2,3';;
23512 esac
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23515 $as_echo_n "checking assembler for decimal float support... " >&6; }
23516 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23517 $as_echo_n "(cached) " >&6
23518 else
23519 gcc_cv_as_powerpc_dfp=no
23520 if test $in_tree_gas = yes; then
23521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23522 then gcc_cv_as_powerpc_dfp=yes
23524 elif test x$gcc_cv_as != x; then
23525 echo "$conftest_s" > conftest.s
23526 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23528 (eval $ac_try) 2>&5
23529 ac_status=$?
23530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23531 test $ac_status = 0; }; }
23532 then
23533 gcc_cv_as_powerpc_dfp=yes
23534 else
23535 echo "configure: failed program was" >&5
23536 cat conftest.s >&5
23538 rm -f conftest.o conftest.s
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23542 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23543 if test $gcc_cv_as_powerpc_dfp = yes; then
23545 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23549 case $target in
23550 *-*-aix*) conftest_s=' .machine "pwr7"
23551 .csect .text[PR]
23552 lxvd2x 1,2,3';;
23553 *) conftest_s=' .machine power7
23554 .text
23555 lxvd2x 1,2,3';;
23556 esac
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23559 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23560 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23561 $as_echo_n "(cached) " >&6
23562 else
23563 gcc_cv_as_powerpc_vsx=no
23564 if test $in_tree_gas = yes; then
23565 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23566 then gcc_cv_as_powerpc_vsx=yes
23568 elif test x$gcc_cv_as != x; then
23569 echo "$conftest_s" > conftest.s
23570 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23572 (eval $ac_try) 2>&5
23573 ac_status=$?
23574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23575 test $ac_status = 0; }; }
23576 then
23577 gcc_cv_as_powerpc_vsx=yes
23578 else
23579 echo "configure: failed program was" >&5
23580 cat conftest.s >&5
23582 rm -f conftest.o conftest.s
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23586 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23587 if test $gcc_cv_as_powerpc_vsx = yes; then
23589 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23593 case $target in
23594 *-*-aix*) conftest_s=' .machine "pwr7"
23595 .csect .text[PR]
23596 popcntd 3,3';;
23597 *) conftest_s=' .machine power7
23598 .text
23599 popcntd 3,3';;
23600 esac
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23603 $as_echo_n "checking assembler for popcntd support... " >&6; }
23604 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23605 $as_echo_n "(cached) " >&6
23606 else
23607 gcc_cv_as_powerpc_popcntd=no
23608 if test $in_tree_gas = yes; then
23609 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23610 then gcc_cv_as_powerpc_popcntd=yes
23612 elif test x$gcc_cv_as != x; then
23613 echo "$conftest_s" > conftest.s
23614 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23620 then
23621 gcc_cv_as_powerpc_popcntd=yes
23622 else
23623 echo "configure: failed program was" >&5
23624 cat conftest.s >&5
23626 rm -f conftest.o conftest.s
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23630 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23631 if test $gcc_cv_as_powerpc_popcntd = yes; then
23633 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23637 case $target in
23638 *-*-aix*) conftest_s=' .csect .text[PR]
23639 lwsync';;
23640 *) conftest_s=' .text
23641 lwsync';;
23642 esac
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23645 $as_echo_n "checking assembler for lwsync support... " >&6; }
23646 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23647 $as_echo_n "(cached) " >&6
23648 else
23649 gcc_cv_as_powerpc_lwsync=no
23650 if test $in_tree_gas = yes; then
23651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23652 then gcc_cv_as_powerpc_lwsync=yes
23654 elif test x$gcc_cv_as != x; then
23655 echo "$conftest_s" > conftest.s
23656 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23661 test $ac_status = 0; }; }
23662 then
23663 gcc_cv_as_powerpc_lwsync=yes
23664 else
23665 echo "configure: failed program was" >&5
23666 cat conftest.s >&5
23668 rm -f conftest.o conftest.s
23671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23672 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23673 if test $gcc_cv_as_powerpc_lwsync = yes; then
23675 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23679 case $target in
23680 *-*-aix*) conftest_s=' .machine "476"
23681 .csect .text[PR]
23682 dci 0';;
23683 *) conftest_s=' .machine "476"
23684 .text
23685 dci 0';;
23686 esac
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23689 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23690 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23691 $as_echo_n "(cached) " >&6
23692 else
23693 gcc_cv_as_powerpc_dci=no
23694 if test $in_tree_gas = yes; then
23695 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23696 then gcc_cv_as_powerpc_dci=yes
23698 elif test x$gcc_cv_as != x; then
23699 echo "$conftest_s" > conftest.s
23700 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23702 (eval $ac_try) 2>&5
23703 ac_status=$?
23704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23705 test $ac_status = 0; }; }
23706 then
23707 gcc_cv_as_powerpc_dci=yes
23708 else
23709 echo "configure: failed program was" >&5
23710 cat conftest.s >&5
23712 rm -f conftest.o conftest.s
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23716 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23717 if test $gcc_cv_as_powerpc_dci = yes; then
23719 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23724 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23725 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23726 $as_echo_n "(cached) " >&6
23727 else
23728 gcc_cv_as_powerpc_gnu_attribute=no
23729 if test $in_tree_gas = yes; then
23730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23731 then gcc_cv_as_powerpc_gnu_attribute=yes
23733 elif test x$gcc_cv_as != x; then
23734 echo '.gnu_attribute 4,1' > conftest.s
23735 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737 (eval $ac_try) 2>&5
23738 ac_status=$?
23739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740 test $ac_status = 0; }; }
23741 then
23742 gcc_cv_as_powerpc_gnu_attribute=yes
23743 else
23744 echo "configure: failed program was" >&5
23745 cat conftest.s >&5
23747 rm -f conftest.o conftest.s
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23751 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23752 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23754 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23759 $as_echo_n "checking assembler for tls marker support... " >&6; }
23760 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23761 $as_echo_n "(cached) " >&6
23762 else
23763 gcc_cv_as_powerpc_tls_markers=no
23764 if test $in_tree_gas = yes; then
23765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23766 then gcc_cv_as_powerpc_tls_markers=yes
23768 elif test x$gcc_cv_as != x; then
23769 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23770 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23772 (eval $ac_try) 2>&5
23773 ac_status=$?
23774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23775 test $ac_status = 0; }; }
23776 then
23777 gcc_cv_as_powerpc_tls_markers=yes
23778 else
23779 echo "configure: failed program was" >&5
23780 cat conftest.s >&5
23782 rm -f conftest.o conftest.s
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23786 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23787 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23789 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23793 case $target in
23794 *-*-aix*)
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
23796 $as_echo_n "checking assembler for .ref support... " >&6; }
23797 if test "${gcc_cv_as_aix_ref+set}" = set; then :
23798 $as_echo_n "(cached) " >&6
23799 else
23800 gcc_cv_as_aix_ref=no
23801 if test $in_tree_gas = yes; then
23802 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
23803 then :
23805 elif test x$gcc_cv_as != x; then
23806 echo ' .csect stuff[rw]
23807 stuff:
23808 .long 1
23809 .extern sym
23810 .ref sym
23811 ' > conftest.s
23812 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23818 then
23819 gcc_cv_as_aix_ref=yes
23820 else
23821 echo "configure: failed program was" >&5
23822 cat conftest.s >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
23828 $as_echo "$gcc_cv_as_aix_ref" >&6; }
23829 if test $gcc_cv_as_aix_ref = yes; then
23831 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
23835 esac
23838 mips*-*-*)
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23840 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23841 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23842 $as_echo_n "(cached) " >&6
23843 else
23844 gcc_cv_as_mips_explicit_relocs=no
23845 if test $in_tree_gas = yes; then
23846 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23847 then gcc_cv_as_mips_explicit_relocs=yes
23849 elif test x$gcc_cv_as != x; then
23850 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23851 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23853 (eval $ac_try) 2>&5
23854 ac_status=$?
23855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23856 test $ac_status = 0; }; }
23857 then
23858 gcc_cv_as_mips_explicit_relocs=yes
23859 else
23860 echo "configure: failed program was" >&5
23861 cat conftest.s >&5
23863 rm -f conftest.o conftest.s
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23867 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23868 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23869 if test x$target_cpu_default = x
23870 then target_cpu_default=MASK_EXPLICIT_RELOCS
23871 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23875 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23876 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23877 $as_echo_n "(cached) " >&6
23878 else
23879 gcc_cv_as_mips_no_shared=no
23880 if test $in_tree_gas = yes; then
23881 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23882 then gcc_cv_as_mips_no_shared=yes
23884 elif test x$gcc_cv_as != x; then
23885 echo 'nop' > conftest.s
23886 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
23887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23891 test $ac_status = 0; }; }
23892 then
23893 gcc_cv_as_mips_no_shared=yes
23894 else
23895 echo "configure: failed program was" >&5
23896 cat conftest.s >&5
23898 rm -f conftest.o conftest.s
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23902 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23903 if test $gcc_cv_as_mips_no_shared = yes; then
23905 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23910 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23911 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23913 else
23914 gcc_cv_as_mips_gnu_attribute=no
23915 if test $in_tree_gas = yes; then
23916 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23917 then gcc_cv_as_mips_gnu_attribute=yes
23919 elif test x$gcc_cv_as != x; then
23920 echo '.gnu_attribute 4,1' > conftest.s
23921 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23924 ac_status=$?
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; }
23927 then
23928 gcc_cv_as_mips_gnu_attribute=yes
23929 else
23930 echo "configure: failed program was" >&5
23931 cat conftest.s >&5
23933 rm -f conftest.o conftest.s
23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23937 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23938 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23940 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23945 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23946 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23947 $as_echo_n "(cached) " >&6
23948 else
23949 gcc_cv_as_mips_dtprelword=no
23950 if test $in_tree_gas = yes; then
23951 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23952 then gcc_cv_as_mips_dtprelword=yes
23954 elif test x$gcc_cv_as != x; then
23955 echo '.section .tdata,"awT",@progbits
23957 .word 2
23958 .text
23959 .dtprelword x+0x8000' > conftest.s
23960 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23962 (eval $ac_try) 2>&5
23963 ac_status=$?
23964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23965 test $ac_status = 0; }; }
23966 then
23967 gcc_cv_as_mips_dtprelword=yes
23968 else
23969 echo "configure: failed program was" >&5
23970 cat conftest.s >&5
23972 rm -f conftest.o conftest.s
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23976 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23977 if test $gcc_cv_as_mips_dtprelword = yes; then
23979 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23984 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23985 gcc_cv_as_ld_jalr_reloc=no
23986 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23987 if test $in_tree_ld = yes ; then
23988 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 \
23989 && test $in_tree_ld_is_elf = yes; then
23990 gcc_cv_as_ld_jalr_reloc=yes
23992 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23993 echo ' .ent x' > conftest.s
23994 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23995 echo ' ld $25,%call16(y)($28)' >> conftest.s
23996 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23997 echo '1: jalr $25' >> conftest.s
23998 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23999 echo '1: jalr $25' >> conftest.s
24000 echo ' .end x' >> conftest.s
24001 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24002 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24003 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
24004 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
24005 gcc_cv_as_ld_jalr_reloc=yes
24008 rm -f conftest.*
24011 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24012 if test x$target_cpu_default = x; then
24013 target_cpu_default=MASK_RELAX_PIC_CALLS
24014 else
24015 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24019 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24022 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24023 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24024 $as_echo_n "(cached) " >&6
24025 else
24026 gcc_cv_ld_mips_personality_relaxation=no
24027 if test $in_tree_ld = yes ; then
24028 if test "$gcc_cv_gld_major_version" -eq 2 \
24029 -a "$gcc_cv_gld_minor_version" -ge 21 \
24030 -o "$gcc_cv_gld_major_version" -gt 2; then
24031 gcc_cv_ld_mips_personality_relaxation=yes
24033 elif test x$gcc_cv_as != x \
24034 -a x$gcc_cv_ld != x \
24035 -a x$gcc_cv_readelf != x ; then
24036 cat > conftest.s <<EOF
24037 .cfi_startproc
24038 .cfi_personality 0x80,indirect_ptr
24039 .ent test
24040 test:
24042 .end test
24043 .cfi_endproc
24045 .section .data,"aw",@progbits
24046 indirect_ptr:
24047 .dc.a personality
24049 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24050 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24051 if $gcc_cv_readelf -d conftest 2>&1 \
24052 | grep TEXTREL > /dev/null 2>&1; then
24054 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24055 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24057 else
24058 gcc_cv_ld_mips_personality_relaxation=yes
24062 rm -f conftest.s conftest.o conftest
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24065 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24066 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24068 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24072 esac
24074 # Mips and HP-UX need the GNU assembler.
24075 # Linux on IA64 might be able to use the Intel assembler.
24077 case "$target" in
24078 mips*-*-* | *-*-hpux* )
24079 if test x$gas_flag = xyes \
24080 || test x"$host" != x"$build" \
24081 || test ! -x "$gcc_cv_as" \
24082 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24084 else
24085 echo "*** This configuration requires the GNU assembler" >&2
24086 exit 1
24089 esac
24091 # ??? Not all targets support dwarf2 debug_line, even within a version
24092 # of gas. Moreover, we need to emit a valid instruction to trigger any
24093 # info to the output file. So, as supported targets are added to gas 2.11,
24094 # add some instruction here to (also) show we expect this might work.
24095 # ??? Once 2.11 is released, probably need to add first known working
24096 # version to the per-target configury.
24097 case "$target" in
24098 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24099 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24100 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24101 | spu-*-* | fido*-*-* | m32c-*-*)
24102 insn="nop"
24104 ia64*-*-* | s390*-*-*)
24105 insn="nop 0"
24107 mmix-*-*)
24108 insn="swym 0"
24110 esac
24111 if test x"$insn" != x; then
24112 conftest_s="\
24113 .file 1 \"conftest.s\"
24114 .loc 1 3 0
24115 $insn"
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24117 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24118 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24119 $as_echo_n "(cached) " >&6
24120 else
24121 gcc_cv_as_dwarf2_debug_line=no
24122 if test $in_tree_gas = yes; then
24123 if test $in_tree_gas_is_elf = yes \
24124 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24125 then gcc_cv_as_dwarf2_debug_line=yes
24127 elif test x$gcc_cv_as != x; then
24128 echo "$conftest_s" > conftest.s
24129 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24132 ac_status=$?
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }
24135 then
24136 if test x$gcc_cv_objdump != x \
24137 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24138 | grep debug_line > /dev/null 2>&1; then
24139 gcc_cv_as_dwarf2_debug_line=yes
24141 else
24142 echo "configure: failed program was" >&5
24143 cat conftest.s >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24149 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24152 # The .debug_line file table must be in the exact order that
24153 # we specified the files, since these indices are also used
24154 # by DW_AT_decl_file. Approximate this test by testing if
24155 # the assembler bitches if the same index is assigned twice.
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24157 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24158 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24159 $as_echo_n "(cached) " >&6
24160 else
24161 gcc_cv_as_dwarf2_file_buggy=no
24162 if test x$gcc_cv_as != x; then
24163 echo ' .file 1 "foo.s"
24164 .file 1 "bar.s"' > conftest.s
24165 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24171 then
24172 gcc_cv_as_dwarf2_file_buggy=yes
24173 else
24174 echo "configure: failed program was" >&5
24175 cat conftest.s >&5
24177 rm -f conftest.o conftest.s
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24181 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24184 if test $gcc_cv_as_dwarf2_debug_line = yes \
24185 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24187 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24192 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24193 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24194 $as_echo_n "(cached) " >&6
24195 else
24196 gcc_cv_as_gdwarf2_flag=no
24197 if test $in_tree_gas = yes; then
24198 if test $in_tree_gas_is_elf = yes \
24199 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24200 then gcc_cv_as_gdwarf2_flag=yes
24202 elif test x$gcc_cv_as != x; then
24203 echo "$insn" > conftest.s
24204 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24206 (eval $ac_try) 2>&5
24207 ac_status=$?
24208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209 test $ac_status = 0; }; }
24210 then
24211 gcc_cv_as_gdwarf2_flag=yes
24212 else
24213 echo "configure: failed program was" >&5
24214 cat conftest.s >&5
24216 rm -f conftest.o conftest.s
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24220 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24221 if test $gcc_cv_as_gdwarf2_flag = yes; then
24223 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24228 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24229 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24230 $as_echo_n "(cached) " >&6
24231 else
24232 gcc_cv_as_gstabs_flag=no
24233 if test $in_tree_gas = yes; then
24234 if test $in_tree_gas_is_elf = yes \
24235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24236 then gcc_cv_as_gstabs_flag=yes
24238 elif test x$gcc_cv_as != x; then
24239 echo "$insn" > conftest.s
24240 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24246 then
24247 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24248 # and warns about it, but still exits successfully. So check for
24249 # this.
24250 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24252 (eval $ac_try) 2>&5
24253 ac_status=$?
24254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24255 test $ac_status = 0; }; }
24256 then :
24257 else gcc_cv_as_gstabs_flag=yes
24259 else
24260 echo "configure: failed program was" >&5
24261 cat conftest.s >&5
24263 rm -f conftest.o conftest.s
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24267 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24268 if test $gcc_cv_as_gstabs_flag = yes; then
24270 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24275 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24276 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24277 $as_echo_n "(cached) " >&6
24278 else
24279 gcc_cv_as_debug_prefix_map_flag=no
24280 if test $in_tree_gas = yes; then
24281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24282 then gcc_cv_as_debug_prefix_map_flag=yes
24284 elif test x$gcc_cv_as != x; then
24285 echo "$insn" > conftest.s
24286 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24288 (eval $ac_try) 2>&5
24289 ac_status=$?
24290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24291 test $ac_status = 0; }; }
24292 then
24293 gcc_cv_as_debug_prefix_map_flag=yes
24294 else
24295 echo "configure: failed program was" >&5
24296 cat conftest.s >&5
24298 rm -f conftest.o conftest.s
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24302 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24303 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24305 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24311 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24312 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24313 $as_echo_n "(cached) " >&6
24314 else
24315 gcc_cv_as_lcomm_with_alignment=no
24316 if test x$gcc_cv_as != x; then
24317 echo '.lcomm bar,4,16' > conftest.s
24318 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24320 (eval $ac_try) 2>&5
24321 ac_status=$?
24322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24323 test $ac_status = 0; }; }
24324 then
24325 gcc_cv_as_lcomm_with_alignment=yes
24326 else
24327 echo "configure: failed program was" >&5
24328 cat conftest.s >&5
24330 rm -f conftest.o conftest.s
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24334 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24335 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24337 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24341 # Check whether --enable-gnu-unique-object was given.
24342 if test "${enable_gnu_unique_object+set}" = set; then :
24343 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24344 yes | no) ;;
24345 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24346 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24347 esac
24348 else
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24350 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24351 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24352 $as_echo_n "(cached) " >&6
24353 else
24354 gcc_cv_as_gnu_unique_object=no
24355 if test $in_tree_gas = yes; then
24356 if test $in_tree_gas_is_elf = yes \
24357 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24358 then gcc_cv_as_gnu_unique_object=yes
24360 elif test x$gcc_cv_as != x; then
24361 echo '.type foo, @gnu_unique_object' > conftest.s
24362 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24367 test $ac_status = 0; }; }
24368 then
24369 gcc_cv_as_gnu_unique_object=yes
24370 else
24371 echo "configure: failed program was" >&5
24372 cat conftest.s >&5
24374 rm -f conftest.o conftest.s
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24378 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24379 if test $gcc_cv_as_gnu_unique_object = yes; then
24380 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24381 if test x$host = x$build -a x$host = x$target &&
24382 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24383 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24384 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24385 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24386 if test "$glibcnum" -ge 2011 ; then
24387 enable_gnu_unique_object=yes
24393 if test x$enable_gnu_unique_object = xyes; then
24395 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24400 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24401 if test "${gcc_cv_as_line_zero+set}" = set; then :
24402 $as_echo_n "(cached) " >&6
24403 else
24404 gcc_cv_as_line_zero=no
24405 if test $in_tree_gas = yes; then
24406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24407 then gcc_cv_as_line_zero=yes
24409 elif test "x$gcc_cv_as" != x; then
24410 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24411 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24413 (eval $ac_try) 2>&5
24414 ac_status=$?
24415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24416 test $ac_status = 0; }; } &&
24417 test "x`cat conftest.out`" = x
24418 then
24419 gcc_cv_as_line_zero=yes
24420 else
24421 echo "configure: failed program was" >&5
24422 cat conftest.s >&5
24423 echo "configure: error output was" >&5
24424 cat conftest.out >&5
24426 rm -f conftest.o conftest.s conftest.out
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24430 $as_echo "$gcc_cv_as_line_zero" >&6; }
24431 if test "x$gcc_cv_as_line_zero" = xyes; then
24433 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24438 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24439 gcc_cv_ld_eh_frame_hdr=no
24440 if test $in_tree_ld = yes ; then
24441 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 \
24442 && test $in_tree_ld_is_elf = yes; then
24443 gcc_cv_ld_eh_frame_hdr=yes
24445 elif test x$gcc_cv_ld != x; then
24446 # Check if linker supports --eh-frame-hdr option
24447 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24448 gcc_cv_ld_eh_frame_hdr=yes
24452 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24454 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24458 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24461 $as_echo_n "checking linker position independent executable support... " >&6; }
24462 gcc_cv_ld_pie=no
24463 if test $in_tree_ld = yes ; then
24464 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 \
24465 && test $in_tree_ld_is_elf = yes; then
24466 gcc_cv_ld_pie=yes
24468 elif test x$gcc_cv_ld != x; then
24469 # Check if linker supports -pie option
24470 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24471 gcc_cv_ld_pie=yes
24474 if test x"$gcc_cv_ld_pie" = xyes; then
24476 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24480 $as_echo "$gcc_cv_ld_pie" >&6; }
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24483 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24484 gcc_cv_ld_eh_gc_sections=no
24485 if test $in_tree_ld = yes ; then
24486 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 \
24487 && test $in_tree_ld_is_elf = yes; then
24488 gcc_cv_ld_eh_gc_sections=yes
24490 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24491 cat > conftest.s <<EOF
24492 .section .text
24493 .globl _start
24494 .type _start, @function
24495 _start:
24496 .long foo
24497 .size _start, .-_start
24498 .section .text.foo,"ax",@progbits
24499 .type foo, @function
24500 foo:
24501 .long 0
24502 .size foo, .-foo
24503 .section .gcc_except_table.foo,"a",@progbits
24504 .L0:
24505 .long 0
24506 .section .eh_frame,"a",@progbits
24507 .long .L0
24509 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24510 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24511 | grep "gc-sections option ignored" > /dev/null; then
24512 gcc_cv_ld_eh_gc_sections=no
24513 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24514 gcc_cv_ld_eh_gc_sections=yes
24515 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24516 if test x$gcc_cv_as_comdat_group != xyes; then
24517 gcc_cv_ld_eh_gc_sections=no
24518 cat > conftest.s <<EOF
24519 .section .text
24520 .globl _start
24521 .type _start, @function
24522 _start:
24523 .long foo
24524 .size _start, .-_start
24525 .section .gnu.linkonce.t.foo,"ax",@progbits
24526 .type foo, @function
24527 foo:
24528 .long 0
24529 .size foo, .-foo
24530 .section .gcc_except_table.foo,"a",@progbits
24531 .L0:
24532 .long 0
24533 .section .eh_frame,"a",@progbits
24534 .long .L0
24536 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24537 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24538 | grep "gc-sections option ignored" > /dev/null; then
24539 gcc_cv_ld_eh_gc_sections=no
24540 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24541 gcc_cv_ld_eh_gc_sections=yes
24547 rm -f conftest.s conftest.o conftest
24549 case "$target" in
24550 hppa*-*-linux*)
24551 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24552 gcc_cv_ld_eh_gc_sections=no
24554 esac
24555 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24557 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24561 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24563 # --------
24564 # UNSORTED
24565 # --------
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24568 $as_echo_n "checking linker --as-needed support... " >&6; }
24569 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24570 $as_echo_n "(cached) " >&6
24571 else
24572 gcc_cv_ld_as_needed=no
24573 if test $in_tree_ld = yes ; then
24574 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 \
24575 && test $in_tree_ld_is_elf = yes; then
24576 gcc_cv_ld_as_needed=yes
24578 elif test x$gcc_cv_ld != x; then
24579 # Check if linker supports --as-needed and --no-as-needed options
24580 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24581 gcc_cv_ld_as_needed=yes
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24587 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24588 if test x"$gcc_cv_ld_as_needed" = xyes; then
24590 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24594 case "$target:$tm_file" in
24595 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24597 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24598 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24600 else
24601 gcc_cv_ld_no_dot_syms=no
24602 if test $in_tree_ld = yes ; then
24603 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
24604 gcc_cv_ld_no_dot_syms=yes
24606 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24607 cat > conftest1.s <<EOF
24608 .text
24609 bl .foo
24611 cat > conftest2.s <<EOF
24612 .section ".opd","aw"
24613 .align 3
24614 .globl foo
24615 .type foo,@function
24616 foo:
24617 .quad .LEfoo,.TOC.@tocbase,0
24618 .text
24619 .LEfoo:
24621 .size foo,.-.LEfoo
24623 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24624 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24625 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24626 gcc_cv_ld_no_dot_syms=yes
24628 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24633 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24634 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24636 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24640 esac
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24643 $as_echo_n "checking linker --build-id support... " >&6; }
24644 if test "${gcc_cv_ld_buildid+set}" = set; then :
24645 $as_echo_n "(cached) " >&6
24646 else
24647 gcc_cv_ld_buildid=no
24648 if test $in_tree_ld = yes ; then
24649 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24650 "$gcc_cv_gld_minor_version" -ge 18 -o \
24651 "$gcc_cv_gld_major_version" -gt 2 \
24652 && test $in_tree_ld_is_elf = yes; then
24653 gcc_cv_ld_buildid=yes
24655 elif test x$gcc_cv_ld != x; then
24656 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24657 gcc_cv_ld_buildid=yes
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24662 $as_echo "$gcc_cv_ld_buildid" >&6; }
24663 if test x"$gcc_cv_ld_buildid" = xyes; then
24665 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24669 # Check whether --enable-linker-build-id was given.
24670 if test "${enable_linker_build_id+set}" = set; then :
24671 enableval=$enable_linker_build_id;
24672 else
24673 enable_linker_build_id=no
24677 if test x"$enable_linker_build_id" = xyes; then
24678 if test x"$gcc_cv_ld_buildid" = xyes; then
24680 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24682 else
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24684 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24689 $as_echo_n "checking linker --sysroot support... " >&6; }
24690 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24691 $as_echo_n "(cached) " >&6
24692 else
24693 gcc_cv_ld_sysroot=no
24694 if test $in_tree_ld = yes ; then
24695 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
24696 gcc_cv_ld_sysroot=yes
24698 elif test x$gcc_cv_ld != x; then
24699 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24700 gcc_cv_ld_sysroot=yes
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24705 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24706 if test x"$gcc_cv_ld_sysroot" = xyes; then
24708 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24712 if test x$with_sysroot = x && test x$host = x$target \
24713 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24714 && test "$prefix" != "NONE"; then
24716 cat >>confdefs.h <<_ACEOF
24717 #define PREFIX_INCLUDE_DIR "$prefix/include"
24718 _ACEOF
24722 # Test for stack protector support in target C library.
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24724 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24725 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24726 $as_echo_n "(cached) " >&6
24727 else
24728 gcc_cv_libc_provides_ssp=no
24729 case "$target" in
24730 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24731 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24732 if test "x$with_headers" != x; then
24733 glibc_header_dir=$with_headers
24734 elif test "x$with_sysroot" = x; then
24735 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24736 elif test "x$with_build_sysroot" != "x"; then
24737 glibc_header_dir="${with_build_sysroot}/usr/include"
24738 elif test "x$with_sysroot" = xyes; then
24739 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24740 else
24741 glibc_header_dir="${with_sysroot}/usr/include"
24743 else
24744 glibc_header_dir=/usr/include
24746 # glibc 2.4 and later provides __stack_chk_fail and
24747 # either __stack_chk_guard, or TLS access to stack guard canary.
24748 if test -f $glibc_header_dir/features.h \
24749 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24750 $glibc_header_dir/features.h > /dev/null; then
24751 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24752 $glibc_header_dir/features.h > /dev/null; then
24753 gcc_cv_libc_provides_ssp=yes
24754 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24755 $glibc_header_dir/features.h > /dev/null \
24756 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24757 $glibc_header_dir/features.h > /dev/null; then
24758 gcc_cv_libc_provides_ssp=yes
24759 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24760 $glibc_header_dir/features.h > /dev/null && \
24761 test -f $glibc_header_dir/bits/uClibc_config.h && \
24762 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24763 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24764 gcc_cv_libc_provides_ssp=yes
24768 *-*-gnu*)
24769 # Avoid complicated tests (see
24770 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24771 # simply assert that glibc does provide this, which is true for all
24772 # realistically usable GNU/Hurd configurations.
24773 gcc_cv_libc_provides_ssp=yes;;
24774 *-*-darwin* | *-*-freebsd*)
24775 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24776 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24777 gcc_cv_libc_provides_ssp=yes
24778 else
24779 echo "no __stack_chk_fail on this target"
24783 *) gcc_cv_libc_provides_ssp=no ;;
24784 esac
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24787 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24789 if test x$gcc_cv_libc_provides_ssp = xyes; then
24791 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24795 # Check if TFmode long double should be used by default or not.
24796 # Some glibc targets used DFmode long double, but with glibc 2.4
24797 # and later they can use TFmode.
24798 case "$target" in
24799 powerpc*-*-linux* | \
24800 powerpc*-*-gnu* | \
24801 sparc*-*-linux* | \
24802 s390*-*-linux* | \
24803 alpha*-*-linux*)
24805 # Check whether --with-long-double-128 was given.
24806 if test "${with_long_double_128+set}" = set; then :
24807 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24808 else
24809 gcc_cv_target_ldbl128=no
24810 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24811 if test "x$with_sysroot" = x; then
24812 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24813 elif test "x$with_build_sysroot" != "x"; then
24814 glibc_header_dir="${with_build_sysroot}/usr/include"
24815 elif test "x$with_sysroot" = xyes; then
24816 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24817 else
24818 glibc_header_dir="${with_sysroot}/usr/include"
24820 else
24821 glibc_header_dir=/usr/include
24823 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24824 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24825 && gcc_cv_target_ldbl128=yes
24830 esac
24831 if test x$gcc_cv_target_ldbl128 = xyes; then
24833 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24837 # Find out what GC implementation we want, or may, use.
24839 # Check whether --with-gc was given.
24840 if test "${with_gc+set}" = set; then :
24841 withval=$with_gc; case "$withval" in
24842 page)
24843 GGC=ggc-$withval
24845 zone)
24846 GGC=ggc-$withval
24848 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24852 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24854 esac
24855 else
24856 GGC=ggc-page
24860 echo "Using $GGC for garbage collection."
24862 # Libraries to use on the host. This will normally be set by the top
24863 # level Makefile. Here we simply capture the value for our Makefile.
24864 if test -z "${HOST_LIBS+set}"; then
24865 HOST_LIBS=
24869 # Use the system's zlib library.
24870 zlibdir=-L../zlib
24871 zlibinc="-I\$(srcdir)/../zlib"
24873 # Check whether --with-system-zlib was given.
24874 if test "${with_system_zlib+set}" = set; then :
24875 withval=$with_system_zlib; zlibdir=
24876 zlibinc=
24884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24885 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24886 # Check whether --enable-maintainer-mode was given.
24887 if test "${enable_maintainer_mode+set}" = set; then :
24888 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24889 else
24890 maintainer_mode=no
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24895 $as_echo "$maintainer_mode" >&6; }
24897 if test "$maintainer_mode" = "yes"; then
24898 MAINT=''
24899 else
24900 MAINT='#'
24903 # --------------
24904 # Language hooks
24905 # --------------
24907 # Make empty files to contain the specs and options for each language.
24908 # Then add #include lines to for a compiler that has specs and/or options.
24910 subdirs=
24911 lang_opt_files=
24912 lang_specs_files=
24913 lang_tree_files=
24914 # These (without "all_") are set in each config-lang.in.
24915 # `language' must be a single word so is spelled singularly.
24916 all_languages=
24917 all_compilers=
24918 all_outputs='Makefile gccbug'
24919 # List of language makefile fragments.
24920 all_lang_makefrags=
24921 # List of language subdirectory makefiles. Deprecated.
24922 all_lang_makefiles=
24923 # Additional files for gengtype
24924 all_gtfiles="$target_gtfiles"
24926 # These are the languages that are set in --enable-languages,
24927 # and are available in the GCC tree.
24928 all_selected_languages=
24930 # Add the language fragments.
24931 # Languages are added via two mechanisms. Some information must be
24932 # recorded in makefile variables, these are defined in config-lang.in.
24933 # We accumulate them and plug them into the main Makefile.
24934 # The other mechanism is a set of hooks for each of the main targets
24935 # like `clean', `install', etc.
24937 language_hooks="Make-hooks"
24939 for lang in ${srcdir}/*/config-lang.in
24941 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24943 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24944 if test "x$lang_alias" = x
24945 then
24946 echo "$lang doesn't set \$language." 1>&2
24947 exit 1
24949 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24950 subdirs="$subdirs $subdir"
24952 # $gcc_subdir is where the gcc integration files are to be found
24953 # for a language, both for internal compiler purposes (compiler
24954 # sources implementing front-end to GCC tree converters), and for
24955 # build infrastructure purposes (Make-lang.in, etc.)
24957 # This will be <subdir> (relative to $srcdir) if a line like
24958 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24959 # is found in <langdir>/config-lang.in, and will remain <langdir>
24960 # otherwise.
24962 # Except for the language alias (fetched above), the regular
24963 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24964 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24965 # only this and the language alias.
24967 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24968 if [ "$gcc_subdir" = "" ]; then
24969 gcc_subdir="$subdir"
24972 case ",$enable_languages," in
24973 *,$lang_alias,*)
24974 all_selected_languages="$all_selected_languages $lang_alias"
24975 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24976 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24979 esac
24981 language=
24982 boot_language=
24983 compilers=
24984 outputs=
24985 gtfiles=
24986 subdir_requires=
24987 . ${srcdir}/$gcc_subdir/config-lang.in
24988 if test "x$language" = x
24989 then
24990 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24991 exit 1
24994 ok=:
24995 case ",$enable_languages," in
24996 *,$lang_alias,*) ;;
24998 for i in $subdir_requires; do
24999 test -f "${srcdir}/$i/config-lang.in" && continue
25000 ok=false
25001 break
25002 done
25004 esac
25005 $ok || continue
25007 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25008 if test -f $srcdir/$gcc_subdir/lang.opt; then
25009 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25011 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25012 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25014 if test -f ${srcdir}/$gcc_subdir/Makefile.in
25015 then all_lang_makefiles="$gcc_subdir/Makefile"
25017 all_languages="$all_languages $language"
25018 all_compilers="$all_compilers $compilers"
25019 all_outputs="$all_outputs $outputs"
25020 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25021 case ",$enable_languages," in
25022 *,lto,*)
25024 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25026 enable_lto=yes
25029 *) ;;
25030 esac
25031 done
25033 # Pick up gtfiles for c
25034 gtfiles=
25035 . ${srcdir}/c-config-lang.in
25036 all_gtfiles="$all_gtfiles [c] $gtfiles"
25038 check_languages=
25039 for language in $all_selected_languages
25041 check_languages="$check_languages check-$language"
25042 done
25044 # We link each language in with a set of hooks, reached indirectly via
25045 # lang.${target}. Only do so for selected languages.
25047 rm -f Make-hooks
25048 touch Make-hooks
25049 target_list="all.cross start.encap rest.encap tags \
25050 install-common install-man install-info install-pdf install-html dvi \
25051 pdf html uninstall info man srcextra srcman srcinfo \
25052 mostlyclean clean distclean maintainer-clean install-plugin"
25054 for t in $target_list
25057 for lang in $all_selected_languages
25059 x="$x $lang.$t"
25060 done
25061 echo "lang.$t: $x" >> Make-hooks
25062 done
25064 # --------
25065 # UNSORTED
25066 # --------
25068 # Create .gdbinit.
25070 echo "dir ." > .gdbinit
25071 echo "dir ${srcdir}" >> .gdbinit
25072 if test x$gdb_needs_out_file_path = xyes
25073 then
25074 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25076 if test "x$subdirs" != x; then
25077 for s in $subdirs
25079 echo "dir ${srcdir}/$s" >> .gdbinit
25080 done
25082 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25084 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25088 # Find a directory in which to install a shared libgcc.
25090 # Check whether --enable-version-specific-runtime-libs was given.
25091 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25092 enableval=$enable_version_specific_runtime_libs;
25097 # Check whether --with-slibdir was given.
25098 if test "${with_slibdir+set}" = set; then :
25099 withval=$with_slibdir; slibdir="$with_slibdir"
25100 else
25101 if test "${enable_version_specific_runtime_libs+set}" = set; then
25102 slibdir='$(libsubdir)'
25103 elif test "$host" != "$target"; then
25104 slibdir='$(build_tooldir)/lib'
25105 else
25106 slibdir='$(libdir)'
25112 # Substitute configuration variables
25174 # Echo link setup.
25175 if test x${build} = x${host} ; then
25176 if test x${host} = x${target} ; then
25177 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25178 else
25179 echo "Links are now set up to build a cross-compiler" 1>&2
25180 echo " from ${host} to ${target}." 1>&2
25182 else
25183 if test x${host} = x${target} ; then
25184 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25185 echo " for ${target}." 1>&2
25186 else
25187 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25188 echo " from ${host} to ${target}." 1>&2
25200 if test "x${CLOOGLIBS}" != "x" ; then
25202 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25208 if test "x${LIBELFLIBS}" != "x" ; then
25210 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25214 # Check for plugin support
25215 # Check whether --enable-plugin was given.
25216 if test "${enable_plugin+set}" = set; then :
25217 enableval=$enable_plugin; enable_plugin=$enableval
25218 else
25219 enable_plugin=yes; default_plugin=yes
25223 pluginlibs=
25224 if test x"$enable_plugin" = x"yes"; then
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25227 $as_echo_n "checking for exported symbols... " >&6; }
25228 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25229 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25230 if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
25231 : # No need to use a flag
25232 else
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25234 $as_echo_n "checking for -rdynamic... " >&6; }
25235 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25236 if $gcc_cv_objdump -T conftest | grep foobar > /dev/null; then
25237 plugin_rdynamic=yes
25238 pluginlibs="-rdynamic"
25239 else
25240 plugin_rdynamic=no
25241 enable_plugin=no
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25244 $as_echo "$plugin_rdynamic" >&6; }
25247 # Check -ldl
25248 saved_LIBS="$LIBS"
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25250 $as_echo_n "checking for library containing dlopen... " >&6; }
25251 if test "${ac_cv_search_dlopen+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25253 else
25254 ac_func_search_save_LIBS=$LIBS
25255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25256 /* end confdefs.h. */
25258 /* Override any GCC internal prototype to avoid an error.
25259 Use char because int might match the return type of a GCC
25260 builtin and then its argument prototype would still apply. */
25261 #ifdef __cplusplus
25262 extern "C"
25263 #endif
25264 char dlopen ();
25266 main ()
25268 return dlopen ();
25270 return 0;
25272 _ACEOF
25273 for ac_lib in '' dl; do
25274 if test -z "$ac_lib"; then
25275 ac_res="none required"
25276 else
25277 ac_res=-l$ac_lib
25278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25280 if ac_fn_c_try_link "$LINENO"; then :
25281 ac_cv_search_dlopen=$ac_res
25283 rm -f core conftest.err conftest.$ac_objext \
25284 conftest$ac_exeext
25285 if test "${ac_cv_search_dlopen+set}" = set; then :
25286 break
25288 done
25289 if test "${ac_cv_search_dlopen+set}" = set; then :
25291 else
25292 ac_cv_search_dlopen=no
25294 rm conftest.$ac_ext
25295 LIBS=$ac_func_search_save_LIBS
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25298 $as_echo "$ac_cv_search_dlopen" >&6; }
25299 ac_res=$ac_cv_search_dlopen
25300 if test "$ac_res" != no; then :
25301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25305 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25306 pluginlibs="$pluginlibs -ldl"
25308 LIBS="$saved_LIBS"
25310 # Check that we can build shared objects with -fPIC -shared
25311 saved_LDFLAGS="$LDFLAGS"
25312 LDFLAGS="$LDFLAGS -fPIC -shared"
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25314 $as_echo_n "checking for -fPIC -shared... " >&6; }
25315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h. */
25317 extern int X;
25319 main ()
25321 return X == 0;
25323 return 0;
25325 _ACEOF
25326 if ac_fn_c_try_link "$LINENO"; then :
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25328 $as_echo "yes" >&6; }; have_pic_shared=yes
25329 else
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25331 $as_echo "no" >&6; }; have_pic_shared=no
25333 rm -f core conftest.err conftest.$ac_objext \
25334 conftest$ac_exeext conftest.$ac_ext
25335 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25336 pluginlibs=
25337 enable_plugin=no
25339 LDFLAGS="$saved_LDFLAGS"
25341 # If plugin support had been requested but not available, fail.
25342 if test x"$enable_plugin" = x"no" ; then
25343 if test x"$default_plugin" != x"yes"; then
25344 as_fn_error "
25345 Building GCC with plugin support requires a host that supports
25346 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25353 if test x"$enable_plugin" = x"yes"; then
25355 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25359 # Configure the subdirectories
25360 # AC_CONFIG_SUBDIRS($subdirs)
25362 # Create the Makefile
25363 # and configure language subdirectories
25364 ac_config_files="$ac_config_files $all_outputs"
25367 ac_config_commands="$ac_config_commands default"
25369 cat >confcache <<\_ACEOF
25370 # This file is a shell script that caches the results of configure
25371 # tests run on this system so they can be shared between configure
25372 # scripts and configure runs, see configure's option --config-cache.
25373 # It is not useful on other systems. If it contains results you don't
25374 # want to keep, you may remove or edit it.
25376 # config.status only pays attention to the cache file if you give it
25377 # the --recheck option to rerun configure.
25379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25381 # following values.
25383 _ACEOF
25385 # The following way of writing the cache mishandles newlines in values,
25386 # but we know of no workaround that is simple, portable, and efficient.
25387 # So, we kill variables containing newlines.
25388 # Ultrix sh set writes to stderr and can't be redirected directly,
25389 # and sets the high bit in the cache file unless we assign to the vars.
25391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25392 eval ac_val=\$$ac_var
25393 case $ac_val in #(
25394 *${as_nl}*)
25395 case $ac_var in #(
25396 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25397 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25398 esac
25399 case $ac_var in #(
25400 _ | IFS | as_nl) ;; #(
25401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25402 *) { eval $ac_var=; unset $ac_var;} ;;
25403 esac ;;
25404 esac
25405 done
25407 (set) 2>&1 |
25408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25409 *${as_nl}ac_space=\ *)
25410 # `set' does not quote correctly, so add quotes: double-quote
25411 # substitution turns \\\\ into \\, and sed turns \\ into \.
25412 sed -n \
25413 "s/'/'\\\\''/g;
25414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25415 ;; #(
25417 # `set' quotes correctly as required by POSIX, so do not add quotes.
25418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25420 esac |
25421 sort
25423 sed '
25424 /^ac_cv_env_/b end
25425 t clear
25426 :clear
25427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25428 t end
25429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25430 :end' >>confcache
25431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25432 if test -w "$cache_file"; then
25433 test "x$cache_file" != "x/dev/null" &&
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25435 $as_echo "$as_me: updating cache $cache_file" >&6;}
25436 cat confcache >$cache_file
25437 else
25438 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25439 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25442 rm -f confcache
25444 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25445 # Let make expand exec_prefix.
25446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25448 DEFS=-DHAVE_CONFIG_H
25450 ac_libobjs=
25451 ac_ltlibobjs=
25452 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25453 # 1. Remove the extension, and $U if already installed.
25454 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25455 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25456 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25457 # will be set to the directory where LIBOBJS objects are built.
25458 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25459 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25460 done
25461 LIBOBJS=$ac_libobjs
25463 LTLIBOBJS=$ac_ltlibobjs
25468 : ${CONFIG_STATUS=./config.status}
25469 ac_write_fail=0
25470 ac_clean_files_save=$ac_clean_files
25471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25473 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25474 as_write_fail=0
25475 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25476 #! $SHELL
25477 # Generated by $as_me.
25478 # Run this file to recreate the current configuration.
25479 # Compiler output produced by configure, useful for debugging
25480 # configure, is in config.log if it exists.
25482 debug=false
25483 ac_cs_recheck=false
25484 ac_cs_silent=false
25486 SHELL=\${CONFIG_SHELL-$SHELL}
25487 export SHELL
25488 _ASEOF
25489 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25490 ## -------------------- ##
25491 ## M4sh Initialization. ##
25492 ## -------------------- ##
25494 # Be more Bourne compatible
25495 DUALCASE=1; export DUALCASE # for MKS sh
25496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25497 emulate sh
25498 NULLCMD=:
25499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25500 # is contrary to our usage. Disable this feature.
25501 alias -g '${1+"$@"}'='"$@"'
25502 setopt NO_GLOB_SUBST
25503 else
25504 case `(set -o) 2>/dev/null` in #(
25505 *posix*) :
25506 set -o posix ;; #(
25507 *) :
25509 esac
25513 as_nl='
25515 export as_nl
25516 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25517 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25520 # Prefer a ksh shell builtin over an external printf program on Solaris,
25521 # but without wasting forks for bash or zsh.
25522 if test -z "$BASH_VERSION$ZSH_VERSION" \
25523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25524 as_echo='print -r --'
25525 as_echo_n='print -rn --'
25526 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25527 as_echo='printf %s\n'
25528 as_echo_n='printf %s'
25529 else
25530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25532 as_echo_n='/usr/ucb/echo -n'
25533 else
25534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25535 as_echo_n_body='eval
25536 arg=$1;
25537 case $arg in #(
25538 *"$as_nl"*)
25539 expr "X$arg" : "X\\(.*\\)$as_nl";
25540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25541 esac;
25542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25544 export as_echo_n_body
25545 as_echo_n='sh -c $as_echo_n_body as_echo'
25547 export as_echo_body
25548 as_echo='sh -c $as_echo_body as_echo'
25551 # The user is always right.
25552 if test "${PATH_SEPARATOR+set}" != set; then
25553 PATH_SEPARATOR=:
25554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25556 PATH_SEPARATOR=';'
25561 # IFS
25562 # We need space, tab and new line, in precisely that order. Quoting is
25563 # there to prevent editors from complaining about space-tab.
25564 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25565 # splitting by setting IFS to empty value.)
25566 IFS=" "" $as_nl"
25568 # Find who we are. Look in the path if we contain no directory separator.
25569 case $0 in #((
25570 *[\\/]* ) as_myself=$0 ;;
25571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25572 for as_dir in $PATH
25574 IFS=$as_save_IFS
25575 test -z "$as_dir" && as_dir=.
25576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25577 done
25578 IFS=$as_save_IFS
25581 esac
25582 # We did not find ourselves, most probably we were run as `sh COMMAND'
25583 # in which case we are not to be found in the path.
25584 if test "x$as_myself" = x; then
25585 as_myself=$0
25587 if test ! -f "$as_myself"; then
25588 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25589 exit 1
25592 # Unset variables that we do not need and which cause bugs (e.g. in
25593 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25594 # suppresses any "Segmentation fault" message there. '((' could
25595 # trigger a bug in pdksh 5.2.14.
25596 for as_var in BASH_ENV ENV MAIL MAILPATH
25597 do eval test x\${$as_var+set} = xset \
25598 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25599 done
25600 PS1='$ '
25601 PS2='> '
25602 PS4='+ '
25604 # NLS nuisances.
25605 LC_ALL=C
25606 export LC_ALL
25607 LANGUAGE=C
25608 export LANGUAGE
25610 # CDPATH.
25611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25614 # as_fn_error ERROR [LINENO LOG_FD]
25615 # ---------------------------------
25616 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25617 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25618 # script with status $?, using 1 if that was 0.
25619 as_fn_error ()
25621 as_status=$?; test $as_status -eq 0 && as_status=1
25622 if test "$3"; then
25623 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25624 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25626 $as_echo "$as_me: error: $1" >&2
25627 as_fn_exit $as_status
25628 } # as_fn_error
25631 # as_fn_set_status STATUS
25632 # -----------------------
25633 # Set $? to STATUS, without forking.
25634 as_fn_set_status ()
25636 return $1
25637 } # as_fn_set_status
25639 # as_fn_exit STATUS
25640 # -----------------
25641 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25642 as_fn_exit ()
25644 set +e
25645 as_fn_set_status $1
25646 exit $1
25647 } # as_fn_exit
25649 # as_fn_unset VAR
25650 # ---------------
25651 # Portably unset VAR.
25652 as_fn_unset ()
25654 { eval $1=; unset $1;}
25656 as_unset=as_fn_unset
25657 # as_fn_append VAR VALUE
25658 # ----------------------
25659 # Append the text in VALUE to the end of the definition contained in VAR. Take
25660 # advantage of any shell optimizations that allow amortized linear growth over
25661 # repeated appends, instead of the typical quadratic growth present in naive
25662 # implementations.
25663 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25664 eval 'as_fn_append ()
25666 eval $1+=\$2
25668 else
25669 as_fn_append ()
25671 eval $1=\$$1\$2
25673 fi # as_fn_append
25675 # as_fn_arith ARG...
25676 # ------------------
25677 # Perform arithmetic evaluation on the ARGs, and store the result in the
25678 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25679 # must be portable across $(()) and expr.
25680 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25681 eval 'as_fn_arith ()
25683 as_val=$(( $* ))
25685 else
25686 as_fn_arith ()
25688 as_val=`expr "$@" || test $? -eq 1`
25690 fi # as_fn_arith
25693 if expr a : '\(a\)' >/dev/null 2>&1 &&
25694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25695 as_expr=expr
25696 else
25697 as_expr=false
25700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25701 as_basename=basename
25702 else
25703 as_basename=false
25706 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25707 as_dirname=dirname
25708 else
25709 as_dirname=false
25712 as_me=`$as_basename -- "$0" ||
25713 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25714 X"$0" : 'X\(//\)$' \| \
25715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25716 $as_echo X/"$0" |
25717 sed '/^.*\/\([^/][^/]*\)\/*$/{
25718 s//\1/
25721 /^X\/\(\/\/\)$/{
25722 s//\1/
25725 /^X\/\(\/\).*/{
25726 s//\1/
25729 s/.*/./; q'`
25731 # Avoid depending upon Character Ranges.
25732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25735 as_cr_digits='0123456789'
25736 as_cr_alnum=$as_cr_Letters$as_cr_digits
25738 ECHO_C= ECHO_N= ECHO_T=
25739 case `echo -n x` in #(((((
25740 -n*)
25741 case `echo 'xy\c'` in
25742 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25743 xy) ECHO_C='\c';;
25744 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25745 ECHO_T=' ';;
25746 esac;;
25748 ECHO_N='-n';;
25749 esac
25751 rm -f conf$$ conf$$.exe conf$$.file
25752 if test -d conf$$.dir; then
25753 rm -f conf$$.dir/conf$$.file
25754 else
25755 rm -f conf$$.dir
25756 mkdir conf$$.dir 2>/dev/null
25758 if (echo >conf$$.file) 2>/dev/null; then
25759 if ln -s conf$$.file conf$$ 2>/dev/null; then
25760 as_ln_s='ln -s'
25761 # ... but there are two gotchas:
25762 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25763 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25764 # In both cases, we have to default to `cp -p'.
25765 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25766 as_ln_s='cp -p'
25767 elif ln conf$$.file conf$$ 2>/dev/null; then
25768 as_ln_s=ln
25769 else
25770 as_ln_s='cp -p'
25772 else
25773 as_ln_s='cp -p'
25775 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25776 rmdir conf$$.dir 2>/dev/null
25779 # as_fn_mkdir_p
25780 # -------------
25781 # Create "$as_dir" as a directory, including parents if necessary.
25782 as_fn_mkdir_p ()
25785 case $as_dir in #(
25786 -*) as_dir=./$as_dir;;
25787 esac
25788 test -d "$as_dir" || eval $as_mkdir_p || {
25789 as_dirs=
25790 while :; do
25791 case $as_dir in #(
25792 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25793 *) as_qdir=$as_dir;;
25794 esac
25795 as_dirs="'$as_qdir' $as_dirs"
25796 as_dir=`$as_dirname -- "$as_dir" ||
25797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25798 X"$as_dir" : 'X\(//\)[^/]' \| \
25799 X"$as_dir" : 'X\(//\)$' \| \
25800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25801 $as_echo X"$as_dir" |
25802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25803 s//\1/
25806 /^X\(\/\/\)[^/].*/{
25807 s//\1/
25810 /^X\(\/\/\)$/{
25811 s//\1/
25814 /^X\(\/\).*/{
25815 s//\1/
25818 s/.*/./; q'`
25819 test -d "$as_dir" && break
25820 done
25821 test -z "$as_dirs" || eval "mkdir $as_dirs"
25822 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25825 } # as_fn_mkdir_p
25826 if mkdir -p . 2>/dev/null; then
25827 as_mkdir_p='mkdir -p "$as_dir"'
25828 else
25829 test -d ./-p && rmdir ./-p
25830 as_mkdir_p=false
25833 if test -x / >/dev/null 2>&1; then
25834 as_test_x='test -x'
25835 else
25836 if ls -dL / >/dev/null 2>&1; then
25837 as_ls_L_option=L
25838 else
25839 as_ls_L_option=
25841 as_test_x='
25842 eval sh -c '\''
25843 if test -d "$1"; then
25844 test -d "$1/.";
25845 else
25846 case $1 in #(
25847 -*)set "./$1";;
25848 esac;
25849 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25850 ???[sx]*):;;*)false;;esac;fi
25851 '\'' sh
25854 as_executable_p=$as_test_x
25856 # Sed expression to map a string onto a valid CPP name.
25857 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25859 # Sed expression to map a string onto a valid variable name.
25860 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25863 exec 6>&1
25864 ## ----------------------------------- ##
25865 ## Main body of $CONFIG_STATUS script. ##
25866 ## ----------------------------------- ##
25867 _ASEOF
25868 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25871 # Save the log message, to keep $0 and so on meaningful, and to
25872 # report actual input values of CONFIG_FILES etc. instead of their
25873 # values after options handling.
25874 ac_log="
25875 This file was extended by $as_me, which was
25876 generated by GNU Autoconf 2.64. Invocation command line was
25878 CONFIG_FILES = $CONFIG_FILES
25879 CONFIG_HEADERS = $CONFIG_HEADERS
25880 CONFIG_LINKS = $CONFIG_LINKS
25881 CONFIG_COMMANDS = $CONFIG_COMMANDS
25882 $ $0 $@
25884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25887 _ACEOF
25889 case $ac_config_files in *"
25890 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25891 esac
25893 case $ac_config_headers in *"
25894 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25895 esac
25898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25899 # Files that config.status was made for.
25900 config_files="$ac_config_files"
25901 config_headers="$ac_config_headers"
25902 config_commands="$ac_config_commands"
25904 _ACEOF
25906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25907 ac_cs_usage="\
25908 \`$as_me' instantiates files and other configuration actions
25909 from templates according to the current configuration. Unless the files
25910 and actions are specified as TAGs, all are instantiated by default.
25912 Usage: $0 [OPTION]... [TAG]...
25914 -h, --help print this help, then exit
25915 -V, --version print version number and configuration settings, then exit
25916 -q, --quiet, --silent
25917 do not print progress messages
25918 -d, --debug don't remove temporary files
25919 --recheck update $as_me by reconfiguring in the same conditions
25920 --file=FILE[:TEMPLATE]
25921 instantiate the configuration file FILE
25922 --header=FILE[:TEMPLATE]
25923 instantiate the configuration header FILE
25925 Configuration files:
25926 $config_files
25928 Configuration headers:
25929 $config_headers
25931 Configuration commands:
25932 $config_commands
25934 Report bugs to the package provider."
25936 _ACEOF
25937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25938 ac_cs_version="\\
25939 config.status
25940 configured by $0, generated by GNU Autoconf 2.64,
25941 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25943 Copyright (C) 2009 Free Software Foundation, Inc.
25944 This config.status script is free software; the Free Software Foundation
25945 gives unlimited permission to copy, distribute and modify it."
25947 ac_pwd='$ac_pwd'
25948 srcdir='$srcdir'
25949 AWK='$AWK'
25950 test -n "\$AWK" || AWK=awk
25951 _ACEOF
25953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25954 # The default lists apply if the user does not specify any file.
25955 ac_need_defaults=:
25956 while test $# != 0
25958 case $1 in
25959 --*=*)
25960 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25961 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25962 ac_shift=:
25965 ac_option=$1
25966 ac_optarg=$2
25967 ac_shift=shift
25969 esac
25971 case $ac_option in
25972 # Handling of the options.
25973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25974 ac_cs_recheck=: ;;
25975 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25976 $as_echo "$ac_cs_version"; exit ;;
25977 --debug | --debu | --deb | --de | --d | -d )
25978 debug=: ;;
25979 --file | --fil | --fi | --f )
25980 $ac_shift
25981 case $ac_optarg in
25982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25983 esac
25984 as_fn_append CONFIG_FILES " '$ac_optarg'"
25985 ac_need_defaults=false;;
25986 --header | --heade | --head | --hea )
25987 $ac_shift
25988 case $ac_optarg in
25989 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25990 esac
25991 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25992 ac_need_defaults=false;;
25993 --he | --h)
25994 # Conflict between --help and --header
25995 as_fn_error "ambiguous option: \`$1'
25996 Try \`$0 --help' for more information.";;
25997 --help | --hel | -h )
25998 $as_echo "$ac_cs_usage"; exit ;;
25999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26000 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26001 ac_cs_silent=: ;;
26003 # This is an error.
26004 -*) as_fn_error "unrecognized option: \`$1'
26005 Try \`$0 --help' for more information." ;;
26007 *) as_fn_append ac_config_targets " $1"
26008 ac_need_defaults=false ;;
26010 esac
26011 shift
26012 done
26014 ac_configure_extra_args=
26016 if $ac_cs_silent; then
26017 exec 6>/dev/null
26018 ac_configure_extra_args="$ac_configure_extra_args --silent"
26021 _ACEOF
26022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26023 if \$ac_cs_recheck; then
26024 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26025 shift
26026 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26027 CONFIG_SHELL='$SHELL'
26028 export CONFIG_SHELL
26029 exec "\$@"
26032 _ACEOF
26033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26034 exec 5>>config.log
26036 echo
26037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26038 ## Running $as_me. ##
26039 _ASBOX
26040 $as_echo "$ac_log"
26041 } >&5
26043 _ACEOF
26044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26046 # INIT-COMMANDS
26048 subdirs='$subdirs'
26050 _ACEOF
26052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26054 # Handling of arguments.
26055 for ac_config_target in $ac_config_targets
26057 case $ac_config_target in
26058 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26059 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26060 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26061 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26062 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26063 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26065 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26066 esac
26067 done
26070 # If the user did not use the arguments to specify the items to instantiate,
26071 # then the envvar interface is used. Set only those that are not.
26072 # We use the long form for the default assignment because of an extremely
26073 # bizarre bug on SunOS 4.1.3.
26074 if $ac_need_defaults; then
26075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26076 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26077 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26080 # Have a temporary directory for convenience. Make it in the build tree
26081 # simply because there is no reason against having it here, and in addition,
26082 # creating and moving files from /tmp can sometimes cause problems.
26083 # Hook for its removal unless debugging.
26084 # Note that there is a small window in which the directory will not be cleaned:
26085 # after its creation but before its name has been assigned to `$tmp'.
26086 $debug ||
26088 tmp=
26089 trap 'exit_status=$?
26090 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26092 trap 'as_fn_exit 1' 1 2 13 15
26094 # Create a (secure) tmp directory for tmp files.
26097 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26098 test -n "$tmp" && test -d "$tmp"
26099 } ||
26101 tmp=./conf$$-$RANDOM
26102 (umask 077 && mkdir "$tmp")
26103 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26105 # Set up the scripts for CONFIG_FILES section.
26106 # No need to generate them if there are no CONFIG_FILES.
26107 # This happens for instance with `./config.status config.h'.
26108 if test -n "$CONFIG_FILES"; then
26110 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26111 ac_cs_awk_getline=:
26112 ac_cs_awk_pipe_init=
26113 ac_cs_awk_read_file='
26114 while ((getline aline < (F[key])) > 0)
26115 print(aline)
26116 close(F[key])'
26117 ac_cs_awk_pipe_fini=
26118 else
26119 ac_cs_awk_getline=false
26120 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26121 ac_cs_awk_read_file='
26122 print "|#_!!_#|"
26123 print "cat " F[key] " &&"
26124 '$ac_cs_awk_pipe_init
26125 # The final `:' finishes the AND list.
26126 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26128 ac_cr=`echo X | tr X '\015'`
26129 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26130 # But we know of no other shell where ac_cr would be empty at this
26131 # point, so we can use a bashism as a fallback.
26132 if test "x$ac_cr" = x; then
26133 eval ac_cr=\$\'\\r\'
26135 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26136 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26137 ac_cs_awk_cr='\r'
26138 else
26139 ac_cs_awk_cr=$ac_cr
26142 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26143 _ACEOF
26145 # Create commands to substitute file output variables.
26147 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26148 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26149 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26150 echo "_ACAWK" &&
26151 echo "_ACEOF"
26152 } >conf$$files.sh &&
26153 . ./conf$$files.sh ||
26154 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26155 rm -f conf$$files.sh
26158 echo "cat >conf$$subs.awk <<_ACEOF" &&
26159 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26160 echo "_ACEOF"
26161 } >conf$$subs.sh ||
26162 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26163 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26164 ac_delim='%!_!# '
26165 for ac_last_try in false false false false false :; do
26166 . ./conf$$subs.sh ||
26167 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26169 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26170 if test $ac_delim_n = $ac_delim_num; then
26171 break
26172 elif $ac_last_try; then
26173 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26174 else
26175 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26177 done
26178 rm -f conf$$subs.sh
26180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26181 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26182 _ACEOF
26183 sed -n '
26185 s/^/S["/; s/!.*/"]=/
26188 s/^[^!]*!//
26189 :repl
26190 t repl
26191 s/'"$ac_delim"'$//
26192 t delim
26195 s/\(.\{148\}\).*/\1/
26196 t more1
26197 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26200 b repl
26201 :more1
26202 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26205 s/.\{148\}//
26206 t nl
26207 :delim
26209 s/\(.\{148\}\).*/\1/
26210 t more2
26211 s/["\\]/\\&/g; s/^/"/; s/$/"/
26214 :more2
26215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26218 s/.\{148\}//
26219 t delim
26220 ' <conf$$subs.awk | sed '
26221 /^[^""]/{
26223 s/\n//
26225 ' >>$CONFIG_STATUS || ac_write_fail=1
26226 rm -f conf$$subs.awk
26227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26228 _ACAWK
26229 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26230 for (key in S) S_is_set[key] = 1
26231 FS = "\a"
26232 \$ac_cs_awk_pipe_init
26235 line = $ 0
26236 nfields = split(line, field, "@")
26237 substed = 0
26238 len = length(field[1])
26239 for (i = 2; i < nfields; i++) {
26240 key = field[i]
26241 keylen = length(key)
26242 if (S_is_set[key]) {
26243 value = S[key]
26244 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26245 len += length(value) + length(field[++i])
26246 substed = 1
26247 } else
26248 len += 1 + keylen
26250 if (nfields == 3 && !substed) {
26251 key = field[2]
26252 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26253 \$ac_cs_awk_read_file
26254 next
26257 print line
26259 \$ac_cs_awk_pipe_fini
26260 _ACAWK
26261 _ACEOF
26262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26263 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26265 else
26267 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26268 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26269 _ACEOF
26271 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26272 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26273 # trailing colons and then remove the whole line if VPATH becomes empty
26274 # (actually we leave an empty line to preserve line numbers).
26275 if test "x$srcdir" = x.; then
26276 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26277 s/:*\$(srcdir):*/:/
26278 s/:*\${srcdir}:*/:/
26279 s/:*@srcdir@:*/:/
26280 s/^\([^=]*=[ ]*\):*/\1/
26281 s/:*$//
26282 s/^[^=]*=[ ]*$//
26286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26287 fi # test -n "$CONFIG_FILES"
26289 # Set up the scripts for CONFIG_HEADERS section.
26290 # No need to generate them if there are no CONFIG_HEADERS.
26291 # This happens for instance with `./config.status Makefile'.
26292 if test -n "$CONFIG_HEADERS"; then
26293 cat >"$tmp/defines.awk" <<\_ACAWK ||
26294 BEGIN {
26295 _ACEOF
26297 # Transform confdefs.h into an awk script `defines.awk', embedded as
26298 # here-document in config.status, that substitutes the proper values into
26299 # config.h.in to produce config.h.
26301 # Create a delimiter string that does not exist in confdefs.h, to ease
26302 # handling of long lines.
26303 ac_delim='%!_!# '
26304 for ac_last_try in false false :; do
26305 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26306 if test -z "$ac_t"; then
26307 break
26308 elif $ac_last_try; then
26309 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26310 else
26311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26313 done
26315 # For the awk script, D is an array of macro values keyed by name,
26316 # likewise P contains macro parameters if any. Preserve backslash
26317 # newline sequences.
26319 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26320 sed -n '
26321 s/.\{148\}/&'"$ac_delim"'/g
26322 t rset
26323 :rset
26324 s/^[ ]*#[ ]*define[ ][ ]*/ /
26325 t def
26327 :def
26328 s/\\$//
26329 t bsnl
26330 s/["\\]/\\&/g
26331 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26332 D["\1"]=" \3"/p
26333 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26335 :bsnl
26336 s/["\\]/\\&/g
26337 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26338 D["\1"]=" \3\\\\\\n"\\/p
26339 t cont
26340 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26341 t cont
26343 :cont
26345 s/.\{148\}/&'"$ac_delim"'/g
26346 t clear
26347 :clear
26348 s/\\$//
26349 t bsnlc
26350 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26352 :bsnlc
26353 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26354 b cont
26355 ' <confdefs.h | sed '
26356 s/'"$ac_delim"'/"\\\
26357 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26360 for (key in D) D_is_set[key] = 1
26361 FS = "\a"
26363 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26364 line = \$ 0
26365 split(line, arg, " ")
26366 if (arg[1] == "#") {
26367 defundef = arg[2]
26368 mac1 = arg[3]
26369 } else {
26370 defundef = substr(arg[1], 2)
26371 mac1 = arg[2]
26373 split(mac1, mac2, "(") #)
26374 macro = mac2[1]
26375 prefix = substr(line, 1, index(line, defundef) - 1)
26376 if (D_is_set[macro]) {
26377 # Preserve the white space surrounding the "#".
26378 print prefix "define", macro P[macro] D[macro]
26379 next
26380 } else {
26381 # Replace #undef with comments. This is necessary, for example,
26382 # in the case of _POSIX_SOURCE, which is predefined and required
26383 # on some systems where configure will not decide to define it.
26384 if (defundef == "undef") {
26385 print "/*", prefix defundef, macro, "*/"
26386 next
26390 { print }
26391 _ACAWK
26392 _ACEOF
26393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26394 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26395 fi # test -n "$CONFIG_HEADERS"
26398 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26399 shift
26400 for ac_tag
26402 case $ac_tag in
26403 :[FHLC]) ac_mode=$ac_tag; continue;;
26404 esac
26405 case $ac_mode$ac_tag in
26406 :[FHL]*:*);;
26407 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26408 :[FH]-) ac_tag=-:-;;
26409 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26410 esac
26411 ac_save_IFS=$IFS
26412 IFS=:
26413 set x $ac_tag
26414 IFS=$ac_save_IFS
26415 shift
26416 ac_file=$1
26417 shift
26419 case $ac_mode in
26420 :L) ac_source=$1;;
26421 :[FH])
26422 ac_file_inputs=
26423 for ac_f
26425 case $ac_f in
26426 -) ac_f="$tmp/stdin";;
26427 *) # Look for the file first in the build tree, then in the source tree
26428 # (if the path is not absolute). The absolute path cannot be DOS-style,
26429 # because $ac_f cannot contain `:'.
26430 test -f "$ac_f" ||
26431 case $ac_f in
26432 [\\/$]*) false;;
26433 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26434 esac ||
26435 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26436 esac
26437 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26438 as_fn_append ac_file_inputs " '$ac_f'"
26439 done
26441 # Let's still pretend it is `configure' which instantiates (i.e., don't
26442 # use $as_me), people would be surprised to read:
26443 # /* config.h. Generated by config.status. */
26444 configure_input='Generated from '`
26445 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26446 `' by configure.'
26447 if test x"$ac_file" != x-; then
26448 configure_input="$ac_file. $configure_input"
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26450 $as_echo "$as_me: creating $ac_file" >&6;}
26452 # Neutralize special characters interpreted by sed in replacement strings.
26453 case $configure_input in #(
26454 *\&* | *\|* | *\\* )
26455 ac_sed_conf_input=`$as_echo "$configure_input" |
26456 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26457 *) ac_sed_conf_input=$configure_input;;
26458 esac
26460 case $ac_tag in
26461 *:-:* | *:-) cat >"$tmp/stdin" \
26462 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26463 esac
26465 esac
26467 ac_dir=`$as_dirname -- "$ac_file" ||
26468 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26469 X"$ac_file" : 'X\(//\)[^/]' \| \
26470 X"$ac_file" : 'X\(//\)$' \| \
26471 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26472 $as_echo X"$ac_file" |
26473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26474 s//\1/
26477 /^X\(\/\/\)[^/].*/{
26478 s//\1/
26481 /^X\(\/\/\)$/{
26482 s//\1/
26485 /^X\(\/\).*/{
26486 s//\1/
26489 s/.*/./; q'`
26490 as_dir="$ac_dir"; as_fn_mkdir_p
26491 ac_builddir=.
26493 case "$ac_dir" in
26494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26497 # A ".." for each directory in $ac_dir_suffix.
26498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26499 case $ac_top_builddir_sub in
26500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26502 esac ;;
26503 esac
26504 ac_abs_top_builddir=$ac_pwd
26505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26506 # for backward compatibility:
26507 ac_top_builddir=$ac_top_build_prefix
26509 case $srcdir in
26510 .) # We are building in place.
26511 ac_srcdir=.
26512 ac_top_srcdir=$ac_top_builddir_sub
26513 ac_abs_top_srcdir=$ac_pwd ;;
26514 [\\/]* | ?:[\\/]* ) # Absolute name.
26515 ac_srcdir=$srcdir$ac_dir_suffix;
26516 ac_top_srcdir=$srcdir
26517 ac_abs_top_srcdir=$srcdir ;;
26518 *) # Relative name.
26519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26520 ac_top_srcdir=$ac_top_build_prefix$srcdir
26521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26522 esac
26523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26526 case $ac_mode in
26529 # CONFIG_FILE
26532 _ACEOF
26534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26535 # If the template does not know about datarootdir, expand it.
26536 # FIXME: This hack should be removed a few years after 2.60.
26537 ac_datarootdir_hack=; ac_datarootdir_seen=
26538 ac_sed_dataroot='
26539 /datarootdir/ {
26543 /@datadir@/p
26544 /@docdir@/p
26545 /@infodir@/p
26546 /@localedir@/p
26547 /@mandir@/p'
26548 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26549 *datarootdir*) ac_datarootdir_seen=yes;;
26550 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26552 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26553 _ACEOF
26554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26555 ac_datarootdir_hack='
26556 s&@datadir@&$datadir&g
26557 s&@docdir@&$docdir&g
26558 s&@infodir@&$infodir&g
26559 s&@localedir@&$localedir&g
26560 s&@mandir@&$mandir&g
26561 s&\\\${datarootdir}&$datarootdir&g' ;;
26562 esac
26563 _ACEOF
26565 # Neutralize VPATH when `$srcdir' = `.'.
26566 # Shell code in configure.ac might set extrasub.
26567 # FIXME: do we really want to maintain this feature?
26568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26569 ac_sed_extra="$ac_vpsub
26570 $extrasub
26571 _ACEOF
26572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26575 s|@configure_input@|$ac_sed_conf_input|;t t
26576 s&@top_builddir@&$ac_top_builddir_sub&;t t
26577 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26578 s&@srcdir@&$ac_srcdir&;t t
26579 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26580 s&@top_srcdir@&$ac_top_srcdir&;t t
26581 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26582 s&@builddir@&$ac_builddir&;t t
26583 s&@abs_builddir@&$ac_abs_builddir&;t t
26584 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26585 $ac_datarootdir_hack
26587 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26588 if $ac_cs_awk_getline; then
26589 $AWK -f "$tmp/subs.awk"
26590 else
26591 $AWK -f "$tmp/subs.awk" | $SHELL
26592 fi >$tmp/out \
26593 || as_fn_error "could not create $ac_file" "$LINENO" 5
26595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26596 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26599 which seems to be undefined. Please make sure it is defined." >&5
26600 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26601 which seems to be undefined. Please make sure it is defined." >&2;}
26603 rm -f "$tmp/stdin"
26604 case $ac_file in
26605 -) cat "$tmp/out" && rm -f "$tmp/out";;
26606 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26607 esac \
26608 || as_fn_error "could not create $ac_file" "$LINENO" 5
26612 # CONFIG_HEADER
26614 if test x"$ac_file" != x-; then
26616 $as_echo "/* $configure_input */" \
26617 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26618 } >"$tmp/config.h" \
26619 || as_fn_error "could not create $ac_file" "$LINENO" 5
26620 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26622 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26623 else
26624 rm -f "$ac_file"
26625 mv "$tmp/config.h" "$ac_file" \
26626 || as_fn_error "could not create $ac_file" "$LINENO" 5
26628 else
26629 $as_echo "/* $configure_input */" \
26630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26631 || as_fn_error "could not create -" "$LINENO" 5
26635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26636 $as_echo "$as_me: executing $ac_file commands" >&6;}
26638 esac
26641 case $ac_file$ac_mode in
26642 "as":F) chmod +x as ;;
26643 "collect-ld":F) chmod +x collect-ld ;;
26644 "nm":F) chmod +x nm ;;
26645 "default":C)
26646 case ${CONFIG_HEADERS} in
26647 *auto-host.h:config.in*)
26648 echo > cstamp-h ;;
26649 esac
26650 # Make sure all the subdirs exist.
26651 for d in $subdirs doc build
26653 test -d $d || mkdir $d
26654 done
26657 esac
26658 done # for ac_tag
26661 as_fn_exit 0
26662 _ACEOF
26663 ac_clean_files=$ac_clean_files_save
26665 test $ac_write_fail = 0 ||
26666 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26669 # configure is writing to config.log, and then calls config.status.
26670 # config.status does its own redirection, appending to config.log.
26671 # Unfortunately, on DOS this fails, as config.log is still kept open
26672 # by configure, so config.status won't be able to write to it; its
26673 # output is simply discarded. So we exec the FD to /dev/null,
26674 # effectively closing config.log, so it can be properly (re)opened and
26675 # appended to by config.status. When coming back to configure, we
26676 # need to make the FD available again.
26677 if test "$no_create" != yes; then
26678 ac_cs_success=:
26679 ac_config_status_args=
26680 test "$silent" = yes &&
26681 ac_config_status_args="$ac_config_status_args --quiet"
26682 exec 5>/dev/null
26683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26684 exec 5>>config.log
26685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26686 # would make configure fail if this is the last instruction.
26687 $ac_cs_success || as_fn_exit $?
26689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26691 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}